Beispiel #1
0
 public void SetCachedResultBoolean(bool value)
 {
     specialCachedValue = SpecialCachedValue.CreateCachedBoolean(value);
 }
Beispiel #2
0
 public void SetCachedResultErrorCode(int errorCode)
 {
     specialCachedValue = SpecialCachedValue.CreateCachedErrorCode(errorCode);
 }
Beispiel #3
0
 public void SetCachedResultTypeEmptyString()
 {
     specialCachedValue = SpecialCachedValue.CreateCachedEmptyValue();
 }
Beispiel #4
0
 public void SetCachedResultTypeString()
 {
     specialCachedValue = SpecialCachedValue.CreateForString();
 }
Beispiel #5
0
        /**
         * Constructs a Formula record and Sets its fields appropriately.
         * Note - id must be 0x06 (NOT 0x406 see MSKB #Q184647 for an 
         * "explanation of this bug in the documentation) or an exception
         *  will be throw upon validation
         *
         * @param in the RecordInputstream to Read the record from
         */

        public FormulaRecord(RecordInputStream in1):base(in1)
        {
		        long valueLongBits  = in1.ReadLong();
		        field_5_options = in1.ReadShort();
		        specialCachedValue = SpecialCachedValue.Create(valueLongBits);
		        if (specialCachedValue == null) {
			        field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);
		        }

                field_6_zero = in1.ReadInt();
                int field_7_expression_len = in1.ReadShort();

                field_8_parsed_expr = LF.Utils.NPOI.SS.Formula.Formula.Read(field_7_expression_len, in1,in1.Available());
        }