Beispiel #1
0
 public CT_CustomColor()
 {
     this.prstClrField   = new CT_PresetColor();
     this.schemeClrField = new CT_SchemeColor();
     this.sysClrField    = new CT_SystemColor();
     this.hslClrField    = new CT_HslColor();
     this.srgbClrField   = new CT_SRgbColor();
     this.scrgbClrField  = new CT_ScRgbColor();
     this.nameField      = "";
 }
Beispiel #2
0
 public CT_TableStyleTextStyle()
 {
     this.extLstField    = new CT_OfficeArtExtensionList();
     this.prstClrField   = new CT_PresetColor();
     this.schemeClrField = new CT_SchemeColor();
     this.sysClrField    = new CT_SystemColor();
     this.hslClrField    = new CT_HslColor();
     this.srgbClrField   = new CT_SRgbColor();
     this.scrgbClrField  = new CT_ScRgbColor();
     this.fontRefField   = new CT_FontReference();
     this.fontField      = new CT_FontCollection();
     this.bField         = ST_OnOffStyleType.def;
     this.iField         = ST_OnOffStyleType.def;
 }
Beispiel #3
0
        public static CT_FontReference Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FontReference ctObj = new CT_FontReference();

            if (node.Attribute("idx") != null)
            {
                ctObj.idx = (ST_FontCollectionIndex)Enum.Parse(typeof(ST_FontCollectionIndex), node.Attribute("idx").Value);
            }
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "scrgbClr")
                {
                    ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "srgbClr")
                {
                    ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "hslClr")
                {
                    ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "sysClr")
                {
                    ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "schemeClr")
                {
                    ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "prstClr")
                {
                    ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Beispiel #4
0
        public static CT_StyleMatrixReference Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_StyleMatrixReference ctObj = new CT_StyleMatrixReference();

            ctObj.idx = XmlHelper.ReadUInt(node.Attribute("idx"));
            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "scrgbClr")
                {
                    ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "srgbClr")
                {
                    ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "hslClr")
                {
                    ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "sysClr")
                {
                    ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "schemeClr")
                {
                    ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "prstClr")
                {
                    ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }