Esempio n. 1
0
File: Text.cs Progetto: zbl960/npoi
        public static CT_TextBody Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextBody ctObj = new CT_TextBody();

            ctObj.p = new List <CT_TextParagraph>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "bodyPr")
                {
                    ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lstStyle")
                {
                    ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "p")
                {
                    ctObj.p.Add(CT_TextParagraph.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Esempio n. 2
0
        public static CT_DefaultShapeDefinition Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_DefaultShapeDefinition ctObj = new CT_DefaultShapeDefinition();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "spPr")
                {
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "bodyPr")
                {
                    ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lstStyle")
                {
                    ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "style")
                {
                    ctObj.style = CT_ShapeStyle.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Esempio n. 3
0
 public CT_DefaultShapeDefinition()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.styleField = new CT_ShapeStyle();
     this.lstStyleField = new CT_TextListStyle();
     this.bodyPrField = new CT_TextBodyProperties();
     this.spPrField = new CT_ShapeProperties();
 }
Esempio n. 4
0
 public CT_DefaultShapeDefinition()
 {
     this.extLstField   = new CT_OfficeArtExtensionList();
     this.styleField    = new CT_ShapeStyle();
     this.lstStyleField = new CT_TextListStyle();
     this.bodyPrField   = new CT_TextBodyProperties();
     this.spPrField     = new CT_ShapeProperties();
 }
Esempio n. 5
0
File: Text.cs Progetto: zbl960/npoi
        public static CT_TextListStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_TextListStyle ctObj = new CT_TextListStyle();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "defPPr")
                {
                    ctObj.defPPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl1pPr")
                {
                    ctObj.lvl1pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl2pPr")
                {
                    ctObj.lvl2pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl3pPr")
                {
                    ctObj.lvl3pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl4pPr")
                {
                    ctObj.lvl4pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl5pPr")
                {
                    ctObj.lvl5pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl6pPr")
                {
                    ctObj.lvl6pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl7pPr")
                {
                    ctObj.lvl7pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl8pPr")
                {
                    ctObj.lvl8pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lvl9pPr")
                {
                    ctObj.lvl9pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Esempio n. 6
0
 public CT_TextListStyle AddNewLstStyle()
 {
         this.lstStyleField=new CT_TextListStyle();
     return this.lstStyleField;   
 }
Esempio n. 7
0
File: Text.cs Progetto: kahinke/npoi
 public static CT_TextListStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_TextListStyle ctObj = new CT_TextListStyle();
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "defPPr")
             ctObj.defPPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl1pPr")
             ctObj.lvl1pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl2pPr")
             ctObj.lvl2pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl3pPr")
             ctObj.lvl3pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl4pPr")
             ctObj.lvl4pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl5pPr")
             ctObj.lvl5pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl6pPr")
             ctObj.lvl6pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl7pPr")
             ctObj.lvl7pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl8pPr")
             ctObj.lvl8pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "lvl9pPr")
             ctObj.lvl9pPr = CT_TextParagraphProperties.Parse(childNode, namespaceManager);
         else if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
Esempio n. 8
0
File: Text.cs Progetto: zbl960/npoi
 public CT_TextListStyle AddNewLstStyle()
 {
     this.lstStyleField = new CT_TextListStyle();
     return(this.lstStyleField);
 }