Пример #1
0
        protected override void SerializeValue(LittleEndianOutput out1)
        {
            if (specialCachedValue == null)
            {
                out1.WriteDouble(field_4_value);
            }
            else
            {
                specialCachedValue.Serialize(out1);
            }

            out1.WriteShort(Options);

            out1.WriteInt(field_6_zero); // may as well write original data back so as to minimise differences from original
            field_8_parsed_expr.Serialize(out1);
        }
Пример #2
0
        public override void Serialize(ILittleEndianOutput out1)
        {
            //out1.WriteShort(field_1_option_flag);
            //out1.WriteShort(field_2_ixals);
            //out1.WriteShort(field_3_not_used);
            //int nameLen = field_4_name.Length;
            //out1.WriteShort(nameLen);
            //StringUtil.PutCompressedUnicode(field_4_name, out1);
            //if (HasFormula)
            //{
            //    field_5_name_definition.Serialize(out1);
            //}
            //else
            //{
            //    if (_ddeValues != null)
            //    {
            //        out1.WriteByte(_nColumns - 1);
            //        out1.WriteShort(_nRows - 1);
            //        ConstantValueParser.Encode(out1, _ddeValues);
            //    }
            //}
            out1.WriteShort(field_1_option_flag);
            out1.WriteShort(field_2_ixals);
            out1.WriteShort(field_3_not_used);

            out1.WriteByte(field_4_name.Length);
            StringUtil.WriteUnicodeStringFlagAndData(out1, field_4_name);

            if (!IsOLELink && !IsStdDocumentNameIdentifier)
            {
                if (IsAutomaticLink)
                {
                    out1.WriteByte(_nColumns - 1);
                    out1.WriteShort(_nRows - 1);
                    ConstantValueParser.Encode(out1, _ddeValues);
                }
                else
                {
                    field_5_name_definition.Serialize(out1);
                }
            }
        }
Пример #3
0
 protected override void SerializeExtraData(ILittleEndianOutput out1)
 {
     out1.WriteShort(field_5_reserved);
     field_7_parsed_expr.Serialize(out1);
 }
Пример #4
0
 protected override void SerializeExtraData(NPOI.Util.IO.LittleEndianOutput out1)
 {
     out1.WriteShort(_options);
     out1.WriteInt(_field3notUsed);
     _formula.Serialize(out1);
 }