Ejemplo n.º 1
0
        protected override void WriteXmlContent(IXDLSContentWriter writer)
        {
            int num = 15;

            if (this.DataArray != null)
            {
                writer.WriteChildBinaryElement(BookmarkStart.b("尴夶䴸帺似儾⁀⽂桄⍆⡈㽊ⱌ", num), this.DataArray);
            }
        }
Ejemplo n.º 2
0
        protected virtual void WriteXmlContent(IXDLSContentWriter writer)
        {
            int num = 0x10;

            if (writer == null)
            {
                throw new ArgumentNullException(BookmarkStart.b("䄵䨷匹䠻嬽㈿", num));
            }
        }
        protected override void WriteXmlContent(IXDLSContentWriter writer)
        {
            int num = 15;

            base.WriteXmlContent(writer);
            IXDLSAttributeWriter writer2 = writer as IXDLSAttributeWriter;
            XmlWriter            writer3 = (writer as Class669).Spire.Doc.Interface.IXDLSContentWriter.get_InnerWriter();

            if ((this.dictionary_0 != null) && (this.dictionary_0.Count > 0))
            {
                foreach (string str in this.dictionary_0.Keys)
                {
                    DocumentProperty property = this.dictionary_0[str];
                    writer3.WriteStartElement(BookmarkStart.b("䔴䔶嘸䬺堼䴾㕀㩂", num));
                    writer3.WriteAttributeString(BookmarkStart.b("笴嘶吸帺", num), str);
                    PropertyType propertyType = property.PropertyType;
                    if (propertyType <= PropertyType.Bool)
                    {
                        switch (propertyType)
                        {
                        case PropertyType.Double:
                            writer3.WriteAttributeString(BookmarkStart.b("愴丶䤸帺", num), BookmarkStart.b("儴堶䰸夺儼娾", num));
                            writer2.WriteValue(BookmarkStart.b("挴嘶唸为堼", num), property.Double);
                            break;

                        case PropertyType.Bool:
                            writer3.WriteAttributeString(BookmarkStart.b("愴丶䤸帺", num), BookmarkStart.b("圴堶嘸场", num));
                            writer2.WriteValue(BookmarkStart.b("挴嘶唸为堼", num), property.Boolean);
                            break;
                        }
                    }
                    else
                    {
                        switch (propertyType)
                        {
                        case PropertyType.Int:
                            writer3.WriteAttributeString(BookmarkStart.b("愴丶䤸帺", num), BookmarkStart.b("尴夶䴸", num));
                            writer2.WriteValue(BookmarkStart.b("挴嘶唸为堼", num), property.Integer);
                            goto Label_01D4;

                        case PropertyType.String:
                            writer3.WriteAttributeString(BookmarkStart.b("愴丶䤸帺", num), BookmarkStart.b("䘴䌶䬸刺匼堾", num));
                            writer2.WriteValue(BookmarkStart.b("挴嘶唸为堼", num), property.ToString());
                            goto Label_01D4;
                        }
                        if (propertyType == PropertyType.DateTime)
                        {
                            writer3.WriteAttributeString(BookmarkStart.b("愴丶䤸帺", num), BookmarkStart.b("焴嘶䴸帺椼嘾ⱀ♂", num));
                            writer2.WriteValue(BookmarkStart.b("挴嘶唸为堼", num), property.DateTime);
                        }
                    }
Label_01D4:
                    writer3.WriteEndElement();
                }
            }
        }
Ejemplo n.º 4
0
        protected override void WriteXmlContent(IXDLSContentWriter writer)
        {
            int num = 0x13;

            base.WriteXmlContent(writer);
            if (this.DataArray != null)
            {
                writer.WriteChildBinaryElement(BookmarkStart.b("倸唺䤼娾㍀ⵂ⑄⭆摈⽊ⱌ㭎ぐ", num), this.DataArray);
            }
        }
Ejemplo n.º 5
0
        protected override void WriteXmlContent(IXDLSContentWriter writer)
        {
            int num = 0x10;

            base.WriteXmlContent(writer);
            if (this.ImageBytes != null)
            {
                writer.WriteChildBinaryElement(BookmarkStart.b("張唷嬹嬻嬽", num), this.ImageBytes);
            }
            else
            {
                (writer as Class669).method_4(this.image_0);
            }
        }
Ejemplo n.º 6
0
 public void WriteHolder(IXDLSContentWriter writer)
 {
     if (this.dictionary_0 != null)
     {
         foreach (string str in this.dictionary_0.Keys)
         {
             writer.WriteChildElement(str, this.dictionary_0[str]);
         }
     }
     if (this.dictionary_1 != null)
     {
         foreach (string str2 in this.dictionary_1.Keys)
         {
             IDocumentSerializable serializable = this.dictionary_1[str2] as IDocumentSerializable;
             if (serializable != null)
             {
                 writer.WriteChildRefElement(str2, serializable.XDLSHolder.ID);
             }
         }
     }
 }
Ejemplo n.º 7
0
 protected override void WriteXmlContent(IXDLSContentWriter writer)
 {
     base.WriteXmlContent(writer);
     writer.WriteChildStringElement(BookmarkStart.b("䘱儳丵䰷", 12), this.Text);
 }
Ejemplo n.º 8
0
 void IDocumentSerializable.WriteXmlContent(IXDLSContentWriter writer)
 {
     this.XDLSHolder.WriteHolder(writer);
     this.WriteXmlContent(writer);
 }