Exemple #1
0
        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);
        }
Exemple #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);
        }
Exemple #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();
 }
Exemple #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();
 }
Exemple #5
0
        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);
        }
Exemple #6
0
 public CT_TextListStyle AddNewLstStyle()
 {
         this.lstStyleField=new CT_TextListStyle();
     return this.lstStyleField;   
 }
Exemple #7
0
 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;
 }
Exemple #8
0
 public CT_TextListStyle AddNewLstStyle()
 {
     this.lstStyleField = new CT_TextListStyle();
     return(this.lstStyleField);
 }