Esempio n. 1
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. 2
0
        public static CT_ObjectStyleDefaults Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ObjectStyleDefaults ctObj = new CT_ObjectStyleDefaults();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "spDef")
                {
                    ctObj.spDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "lnDef")
                {
                    ctObj.lnDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "txDef")
                {
                    ctObj.txDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Esempio n. 3
0
 public CT_ObjectStyleDefaults()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.txDefField  = new CT_DefaultShapeDefinition();
     this.lnDefField  = new CT_DefaultShapeDefinition();
     this.spDefField  = new CT_DefaultShapeDefinition();
 }
Esempio n. 4
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. 5
0
 public CT_ObjectStyleDefaults()
 {
     this.extLstField = new CT_OfficeArtExtensionList();
     this.txDefField = new CT_DefaultShapeDefinition();
     this.lnDefField = new CT_DefaultShapeDefinition();
     this.spDefField = new CT_DefaultShapeDefinition();
 }