private static List <Declaration> BuildDeclarations()
        {
            List <Declaration> list = new List <Declaration>(6);

            list.Add(BaseInterleaver.GetDeclaration());
            list.Add(OpenXmlTableGridModel.GetDeclaration());
            list.Add(OpenXmlTableRowPropertiesModel.GetDeclaration());
            list.Add(OpenXmlBorderPropertiesModel.GetDeclaration());
            list.Add(HeaderFooterReferences.GetDeclaration());
            return(list);
        }
Exemple #2
0
        public virtual void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(BaseInterleaver.GetDeclaration());
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Index:
                    this._index = reader.ReadInt32();
                    break;

                case MemberName.Location:
                    this._location = reader.ReadInt64();
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }
Exemple #3
0
        public virtual void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(BaseInterleaver.GetDeclaration());
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.Index:
                    writer.Write(this._index);
                    break;

                case MemberName.Location:
                    writer.Write(this._location);
                    break;

                default:
                    WordOpenXmlUtils.FailSerializable();
                    break;
                }
            }
        }