Beispiel #1
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);
                }
            }
        }
Beispiel #2
0
 protected override void SerializeExtraData(ILittleEndianOutput out1)
 {
     out1.WriteShort(field_5_reserved);
     field_7_parsed_expr.Serialize(out1);
 }