Example #1
0
 public CT_OuterShadowEffect()
 {
     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.blurRadField = ((long)(0));
     this.distField = ((long)(0));
     this.dirField = 0;
     this.sxField = 100000;
     this.syField = 100000;
     this.kxField = 0;
     this.kyField = 0;
     this.algnField = ST_RectAlignment.b;
     this.rotWithShapeField = true;
 }
Example #2
0
 public CT_AlphaInverseEffect()
 {
     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();
 }
Example #3
0
 public CT_PresetShadowEffect()
 {
     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.distField = ((long)(0));
     this.dirField = 0;
 }
Example #4
0
        public static CT_ScRgbColor Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
                return null;
            CT_ScRgbColor ctObj = new CT_ScRgbColor();
            ctObj.r = XmlHelper.ReadInt(node.Attributes["r"]);
            ctObj.g = XmlHelper.ReadInt(node.Attributes["g"]);
            ctObj.b = XmlHelper.ReadInt(node.Attributes["b"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "alpha")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.alpha);
                else if (childNode.LocalName == "alphaMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.alphaMod);
                else if (childNode.LocalName == "alphaOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.alphaOff);
                else if (childNode.LocalName == "blue")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.blue);
                else if (childNode.LocalName == "blueMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.blueMod);
                else if (childNode.LocalName == "blueOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.blueOff);
                else if (childNode.LocalName == "comp")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.comp);
                else if (childNode.LocalName == "gamma")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.gamma);
                else if (childNode.LocalName == "gray")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.gray);
                else if (childNode.LocalName == "green")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.green);
                else if (childNode.LocalName == "greenMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.greenMod);
                else if (childNode.LocalName == "greenOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.greenOff);
                else if (childNode.LocalName == "hue")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.hue);
                else if (childNode.LocalName == "hueMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.hueMod);
                else if (childNode.LocalName == "hueOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.hueOff);
                else if (childNode.LocalName == "inv")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.inv);
                else if (childNode.LocalName == "invGamma")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.invGamma);
                else if (childNode.LocalName == "lum")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.lum);
                else if (childNode.LocalName == "lumMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.lumMod);
                else if (childNode.LocalName == "lumOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.lumOff);
                else if (childNode.LocalName == "red")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.red);
                else if (childNode.LocalName == "redMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.redMod);
                else if (childNode.LocalName == "redOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.redOff);
                else if (childNode.LocalName == "sat")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.sat);
                else if (childNode.LocalName == "satMod")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.satMod);
                else if (childNode.LocalName == "satOff")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.satOff);
                else if (childNode.LocalName == "shade")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.shade);
                else if (childNode.LocalName == "tint")
                    ctObj.ItemsElementName.Add(EG_ColorTransform.tint);

                if (childNode.Attributes["val"] != null)
                    ctObj.itemsValueField.Add(childNode.Attributes["val"].Value);
                else
                    ctObj.itemsValueField.Add(null);
            }
            return ctObj;
        }
Example #5
0
 public CT_GradientStop()
 {
     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();
 }
Example #6
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 = "";
 }
Example #7
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;
 }
Example #8
0
 public void UnsetScrgbClr()
 {
     this.scrgbClrField = null;
 }