npoi
4819 строк · 123.6 Кб
1using System;2using System.ComponentModel;3using System.Xml.Serialization;4using System.Collections.Generic;5using System.Xml;6using System.IO;7using NPOI.OpenXml4Net.Util;8
9namespace NPOI.OpenXmlFormats.Dml10{
11
12[Serializable]13[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]14[XmlRoot("blip", Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = false)]15public class CT_Blip16{17
18private List<object> itemsField;19
20private CT_OfficeArtExtensionList extLstField;21
22private string embedField;23
24private string linkField;25
26private ST_BlipCompression cstateField;27
28public CT_Blip()29{30//this.extLstField = new CT_OfficeArtExtensionList();31//this.itemsField = new List<object>();32this.embedField = "";33this.linkField = "";34this.cstateField = ST_BlipCompression.none;35}36public static CT_Blip Parse(XmlNode node, XmlNamespaceManager namespaceManager)37{38if (node == null)39return null;40CT_Blip ctObj = new CT_Blip();41ctObj.embed = XmlHelper.ReadString(node.Attributes["r:embed"]);42ctObj.link = XmlHelper.ReadString(node.Attributes["r:link"]);43if (node.Attributes["cstate"] != null)44ctObj.cstate = (ST_BlipCompression)Enum.Parse(typeof(ST_BlipCompression), node.Attributes["cstate"].Value);45ctObj.Items = new List<Object>();46foreach (XmlNode childNode in node.ChildNodes)47{48if (childNode.LocalName == "extLst")49ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);50//TODO: implement http://www.schemacentral.com/sc/ooxml/t-a_CT_Blip.html51//else if (childNode.LocalName == "Items")52// ctObj.Items.Add(Object.Parse(childNode, namespaceManager));53}54return ctObj;55}56
57
58internal void Write(StreamWriter sw, string nodeName)59{60sw.Write(string.Format("<a:{0} xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"", nodeName));61XmlHelper.WriteAttribute(sw, "r:embed", this.embed);62XmlHelper.WriteAttribute(sw, "r:link", this.link);63if(cstate!= ST_BlipCompression.none)64XmlHelper.WriteAttribute(sw, "cstate", this.cstate.ToString());65sw.Write(">");66if (this.extLst != null)67this.extLst.Write(sw, "extLst");68sw.Write(string.Format("</a:{0}>", nodeName));69}70
71[XmlElement("alphaBiLevel", typeof(CT_AlphaBiLevelEffect), Order = 0)]72[XmlElement("alphaCeiling", typeof(CT_AlphaCeilingEffect), Order = 0)]73[XmlElement("alphaFloor", typeof(CT_AlphaFloorEffect), Order = 0)]74[XmlElement("alphaInv", typeof(CT_AlphaInverseEffect), Order = 0)]75[XmlElement("alphaMod", typeof(CT_AlphaModulateEffect), Order = 0)]76[XmlElement("alphaModFix", typeof(CT_AlphaModulateFixedEffect), Order = 0)]77[XmlElement("alphaRepl", typeof(CT_AlphaReplaceEffect), Order = 0)]78[XmlElement("biLevel", typeof(CT_BiLevelEffect), Order = 0)]79[XmlElement("blur", typeof(CT_BlurEffect), Order = 0)]80[XmlElement("clrChange", typeof(CT_ColorChangeEffect), Order = 0)]81[XmlElement("clrRepl", typeof(CT_ColorReplaceEffect), Order = 0)]82[XmlElement("duotone", typeof(CT_DuotoneEffect), Order = 0)]83[XmlElement("fillOverlay", typeof(CT_FillOverlayEffect), Order = 0)]84[XmlElement("grayscl", typeof(CT_GrayscaleEffect), Order = 0)]85[XmlElement("hsl", typeof(CT_HSLEffect), Order = 0)]86[XmlElement("lum", typeof(CT_LuminanceEffect), Order = 0)]87[XmlElement("tint", typeof(CT_TintEffect), Order = 0)]88public List<object> Items89{90get91{92return this.itemsField;93}94set95{96this.itemsField = value;97}98}99
100[XmlElement(Order = 1)]101public CT_OfficeArtExtensionList extLst102{103get104{105return this.extLstField;106}107set108{109this.extLstField = value;110}111}112
113[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]114[DefaultValue("")]115public string embed116{117get118{119return this.embedField;120}121set122{123this.embedField = value;124}125}126
127[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]128[DefaultValue("")]129public string link130{131get132{133return this.linkField;134}135set136{137this.linkField = value;138}139}140
141[XmlAttribute]142[DefaultValue(ST_BlipCompression.none)]143public ST_BlipCompression cstate144{145get146{147return this.cstateField;148}149set150{151this.cstateField = value;152}153}154}155
156
157[Serializable]158[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]159[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]160public class CT_AlphaBiLevelEffect161{162
163private int threshField;164
165[XmlAttribute]166public int thresh167{168get169{170return this.threshField;171}172set173{174this.threshField = value;175}176}177}178
179
180[Serializable]181[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]182[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]183public class CT_TransformEffect184{185
186private int sxField;187
188private int syField;189
190private int kxField;191
192private int kyField;193
194private long txField;195
196private long tyField;197
198public CT_TransformEffect()199{200this.sxField = 100000;201this.syField = 100000;202this.kxField = 0;203this.kyField = 0;204this.txField = ((long)(0));205this.tyField = ((long)(0));206}207
208[XmlAttribute]209[DefaultValue(100000)]210public int sx211{212get213{214return this.sxField;215}216set217{218this.sxField = value;219}220}221
222[XmlAttribute]223[DefaultValue(100000)]224public int sy225{226get227{228return this.syField;229}230set231{232this.syField = value;233}234}235
236[XmlAttribute]237[DefaultValue(0)]238public int kx239{240get241{242return this.kxField;243}244set245{246this.kxField = value;247}248}249
250[XmlAttribute]251[DefaultValue(0)]252public int ky253{254get255{256return this.kyField;257}258set259{260this.kyField = value;261}262}263
264[XmlAttribute]265[DefaultValue(typeof(long), "0")]266public long tx267{268get269{270return this.txField;271}272set273{274this.txField = value;275}276}277
278[XmlAttribute]279[DefaultValue(typeof(long), "0")]280public long ty281{282get283{284return this.tyField;285}286set287{288this.tyField = value;289}290}291}292
293
294[Serializable]295[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]296[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]297public class CT_TintEffect298{299
300private int hueField;301
302private int amtField;303
304public CT_TintEffect()305{306this.hueField = 0;307this.amtField = 0;308}309
310[XmlAttribute]311[DefaultValue(0)]312public int hue313{314get315{316return this.hueField;317}318set319{320this.hueField = value;321}322}323
324[XmlAttribute]325[DefaultValue(0)]326public int amt327{328get329{330return this.amtField;331}332set333{334this.amtField = value;335}336}337}338
339[Serializable]340[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]341[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]342public class CT_SoftEdgesEffect343{344public static CT_SoftEdgesEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)345{346if (node == null)347return null;348CT_SoftEdgesEffect ctObj = new CT_SoftEdgesEffect();349ctObj.rad = XmlHelper.ReadLong(node.Attributes["rad"]);350return ctObj;351}352
353
354
355internal void Write(StreamWriter sw, string nodeName)356{357sw.Write(string.Format("<a:{0}", nodeName));358XmlHelper.WriteAttribute(sw, "rad", this.rad);359sw.Write(">");360sw.Write(string.Format("</a:{0}>", nodeName));361}362
363private long radField;364
365[XmlAttribute]366public long rad367{368get369{370return this.radField;371}372set373{374this.radField = value;375}376}377}378
379[Serializable]380[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]381[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]382public class CT_RelativeOffsetEffect383{384
385private int txField;386
387private int tyField;388
389public CT_RelativeOffsetEffect()390{391this.txField = 0;392this.tyField = 0;393}394
395[XmlAttribute]396[DefaultValue(0)]397public int tx398{399get400{401return this.txField;402}403set404{405this.txField = value;406}407}408
409[XmlAttribute]410[DefaultValue(0)]411public int ty412{413get414{415return this.tyField;416}417set418{419this.tyField = value;420}421}422}423
424[Serializable]425[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]426[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]427public class CT_ReflectionEffect428{429
430private long blurRadField;431
432private int stAField;433
434private int stPosField;435
436private int endAField;437
438private int endPosField;439
440private long distField;441
442private int dirField;443
444private int fadeDirField;445
446private int sxField;447
448private int syField;449
450private int kxField;451
452private int kyField;453
454private ST_RectAlignment algnField;455
456private bool rotWithShapeField;457public static CT_ReflectionEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)458{459if (node == null)460return null;461CT_ReflectionEffect ctObj = new CT_ReflectionEffect();462ctObj.blurRad = XmlHelper.ReadLong(node.Attributes["blurRad"]);463ctObj.stA = XmlHelper.ReadInt(node.Attributes["stA"]);464ctObj.stPos = XmlHelper.ReadInt(node.Attributes["stPos"]);465ctObj.endA = XmlHelper.ReadInt(node.Attributes["endA"]);466ctObj.endPos = XmlHelper.ReadInt(node.Attributes["endPos"]);467ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]);468ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]);469ctObj.fadeDir = XmlHelper.ReadInt(node.Attributes["fadeDir"]);470ctObj.sx = XmlHelper.ReadInt(node.Attributes["sx"]);471ctObj.sy = XmlHelper.ReadInt(node.Attributes["sy"]);472ctObj.kx = XmlHelper.ReadInt(node.Attributes["kx"]);473ctObj.ky = XmlHelper.ReadInt(node.Attributes["ky"]);474if (node.Attributes["algn"] != null)475ctObj.algn = (ST_RectAlignment)Enum.Parse(typeof(ST_RectAlignment), node.Attributes["algn"].Value);476ctObj.rotWithShape = XmlHelper.ReadBool(node.Attributes["rotWithShape"]);477return ctObj;478}479
480
481
482internal void Write(StreamWriter sw, string nodeName)483{484sw.Write(string.Format("<a:{0}", nodeName));485XmlHelper.WriteAttribute(sw, "blurRad", this.blurRad);486XmlHelper.WriteAttribute(sw, "stA", this.stA);487XmlHelper.WriteAttribute(sw, "stPos", this.stPos);488XmlHelper.WriteAttribute(sw, "endA", this.endA);489XmlHelper.WriteAttribute(sw, "endPos", this.endPos);490XmlHelper.WriteAttribute(sw, "dist", this.dist);491XmlHelper.WriteAttribute(sw, "dir", this.dir);492XmlHelper.WriteAttribute(sw, "fadeDir", this.fadeDir);493XmlHelper.WriteAttribute(sw, "sx", this.sx);494XmlHelper.WriteAttribute(sw, "sy", this.sy);495XmlHelper.WriteAttribute(sw, "kx", this.kx);496XmlHelper.WriteAttribute(sw, "ky", this.ky);497XmlHelper.WriteAttribute(sw, "algn", this.algn.ToString());498XmlHelper.WriteAttribute(sw, "rotWithShape", this.rotWithShape);499sw.Write(">");500sw.Write(string.Format("</a:{0}>", nodeName));501}502
503public CT_ReflectionEffect()504{505this.blurRadField = ((long)(0));506this.stAField = 100000;507this.stPosField = 0;508this.endAField = 0;509this.endPosField = 100000;510this.distField = ((long)(0));511this.dirField = 0;512this.fadeDirField = 5400000;513this.sxField = 100000;514this.syField = 100000;515this.kxField = 0;516this.kyField = 0;517this.algnField = ST_RectAlignment.b;518this.rotWithShapeField = true;519}520
521[XmlAttribute]522[DefaultValue(typeof(long), "0")]523public long blurRad524{525get526{527return this.blurRadField;528}529set530{531this.blurRadField = value;532}533}534
535[XmlAttribute]536[DefaultValue(100000)]537public int stA538{539get540{541return this.stAField;542}543set544{545this.stAField = value;546}547}548
549[XmlAttribute]550[DefaultValue(0)]551public int stPos552{553get554{555return this.stPosField;556}557set558{559this.stPosField = value;560}561}562
563[XmlAttribute]564[DefaultValue(0)]565public int endA566{567get568{569return this.endAField;570}571set572{573this.endAField = value;574}575}576
577[XmlAttribute]578[DefaultValue(100000)]579public int endPos580{581get582{583return this.endPosField;584}585set586{587this.endPosField = value;588}589}590
591[XmlAttribute]592[DefaultValue(typeof(long), "0")]593public long dist594{595get596{597return this.distField;598}599set600{601this.distField = value;602}603}604
605[XmlAttribute]606[DefaultValue(0)]607public int dir608{609get610{611return this.dirField;612}613set614{615this.dirField = value;616}617}618
619[XmlAttribute]620[DefaultValue(5400000)]621public int fadeDir622{623get624{625return this.fadeDirField;626}627set628{629this.fadeDirField = value;630}631}632
633[XmlAttribute]634[DefaultValue(100000)]635public int sx636{637get638{639return this.sxField;640}641set642{643this.sxField = value;644}645}646
647[XmlAttribute]648[DefaultValue(100000)]649public int sy650{651get652{653return this.syField;654}655set656{657this.syField = value;658}659}660
661[XmlAttribute]662[DefaultValue(0)]663public int kx664{665get666{667return this.kxField;668}669set670{671this.kxField = value;672}673}674
675[XmlAttribute]676[DefaultValue(0)]677public int ky678{679get680{681return this.kyField;682}683set684{685this.kyField = value;686}687}688
689[XmlAttribute]690[DefaultValue(ST_RectAlignment.b)]691public ST_RectAlignment algn692{693get694{695return this.algnField;696}697set698{699this.algnField = value;700}701}702
703[XmlAttribute]704[DefaultValue(true)]705public bool rotWithShape706{707get708{709return this.rotWithShapeField;710}711set712{713this.rotWithShapeField = value;714}715}716}717
718[Serializable]719[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]720[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]721public class CT_PresetShadowEffect722{723
724private CT_ScRgbColor scrgbClrField;725
726private CT_SRgbColor srgbClrField;727
728private CT_HslColor hslClrField;729
730private CT_SystemColor sysClrField;731
732private CT_SchemeColor schemeClrField;733
734private CT_PresetColor prstClrField;735
736private ST_PresetShadowVal prstField;737
738private long distField;739
740private int dirField;741public static CT_PresetShadowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)742{743if (node == null)744return null;745CT_PresetShadowEffect ctObj = new CT_PresetShadowEffect();746if (node.Attributes["prst"] != null)747ctObj.prst = (ST_PresetShadowVal)Enum.Parse(typeof(ST_PresetShadowVal), node.Attributes["prst"].Value);748ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]);749ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]);750foreach (XmlNode childNode in node.ChildNodes)751{752if (childNode.LocalName == "scrgbClr")753ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);754else if (childNode.LocalName == "srgbClr")755ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);756else if (childNode.LocalName == "hslClr")757ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);758else if (childNode.LocalName == "sysClr")759ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);760else if (childNode.LocalName == "schemeClr")761ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);762else if (childNode.LocalName == "prstClr")763ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);764}765return ctObj;766}767
768
769
770internal void Write(StreamWriter sw, string nodeName)771{772sw.Write(string.Format("<a:{0}", nodeName));773XmlHelper.WriteAttribute(sw, "prst", this.prst.ToString());774XmlHelper.WriteAttribute(sw, "dist", this.dist);775XmlHelper.WriteAttribute(sw, "dir", this.dir);776sw.Write(">");777if (this.scrgbClr != null)778this.scrgbClr.Write(sw, "scrgbClr");779if (this.srgbClr != null)780this.srgbClr.Write(sw, "srgbClr");781if (this.hslClr != null)782this.hslClr.Write(sw, "hslClr");783if (this.sysClr != null)784this.sysClr.Write(sw, "sysClr");785if (this.schemeClr != null)786this.schemeClr.Write(sw, "schemeClr");787if (this.prstClr != null)788this.prstClr.Write(sw, "prstClr");789sw.Write(string.Format("</a:{0}>", nodeName));790}791
792public CT_PresetShadowEffect()793{794//this.prstClrField = new CT_PresetColor();795//this.schemeClrField = new CT_SchemeColor();796//this.sysClrField = new CT_SystemColor();797//this.hslClrField = new CT_HslColor();798//this.srgbClrField = new CT_SRgbColor();799//this.scrgbClrField = new CT_ScRgbColor();800//this.distField = ((long)(0));801//this.dirField = 0;802}803
804[XmlElement(Order = 0)]805public CT_ScRgbColor scrgbClr806{807get808{809return this.scrgbClrField;810}811set812{813this.scrgbClrField = value;814}815}816
817[XmlElement(Order = 1)]818public CT_SRgbColor srgbClr819{820get821{822return this.srgbClrField;823}824set825{826this.srgbClrField = value;827}828}829
830[XmlElement(Order = 2)]831public CT_HslColor hslClr832{833get834{835return this.hslClrField;836}837set838{839this.hslClrField = value;840}841}842
843[XmlElement(Order = 3)]844public CT_SystemColor sysClr845{846get847{848return this.sysClrField;849}850set851{852this.sysClrField = value;853}854}855
856[XmlElement(Order = 4)]857public CT_SchemeColor schemeClr858{859get860{861return this.schemeClrField;862}863set864{865this.schemeClrField = value;866}867}868
869[XmlElement(Order = 5)]870public CT_PresetColor prstClr871{872get873{874return this.prstClrField;875}876set877{878this.prstClrField = value;879}880}881
882[XmlAttribute]883public ST_PresetShadowVal prst884{885get886{887return this.prstField;888}889set890{891this.prstField = value;892}893}894
895[XmlAttribute]896[DefaultValue(typeof(long), "0")]897public long dist898{899get900{901return this.distField;902}903set904{905this.distField = value;906}907}908
909[XmlAttribute]910[DefaultValue(0)]911public int dir912{913get914{915return this.dirField;916}917set918{919this.dirField = value;920}921}922}923
924[Serializable]925[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]926public enum ST_PresetShadowVal927{928
929/// <remarks/>930shdw1,931
932/// <remarks/>933shdw2,934
935/// <remarks/>936shdw3,937
938/// <remarks/>939shdw4,940
941/// <remarks/>942shdw5,943
944/// <remarks/>945shdw6,946
947/// <remarks/>948shdw7,949
950/// <remarks/>951shdw8,952
953/// <remarks/>954shdw9,955
956/// <remarks/>957shdw10,958
959/// <remarks/>960shdw11,961
962/// <remarks/>963shdw12,964
965/// <remarks/>966shdw13,967
968/// <remarks/>969shdw14,970
971/// <remarks/>972shdw15,973
974/// <remarks/>975shdw16,976
977/// <remarks/>978shdw17,979
980/// <remarks/>981shdw18,982
983/// <remarks/>984shdw19,985
986/// <remarks/>987shdw20,988}989
990[Serializable]991[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]992[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]993public class CT_OuterShadowEffect994{995
996private CT_ScRgbColor scrgbClrField;997
998private CT_SRgbColor srgbClrField;999
1000private CT_HslColor hslClrField;1001
1002private CT_SystemColor sysClrField;1003
1004private CT_SchemeColor schemeClrField;1005
1006private CT_PresetColor prstClrField;1007
1008private long blurRadField;1009
1010private long distField;1011
1012private int dirField;1013
1014private int sxField;1015
1016private int syField;1017
1018private int kxField;1019
1020private int kyField;1021
1022private ST_RectAlignment algnField;1023
1024private bool rotWithShapeField;1025public static CT_OuterShadowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)1026{1027if (node == null)1028return null;1029CT_OuterShadowEffect ctObj = new CT_OuterShadowEffect();1030ctObj.blurRad = XmlHelper.ReadLong(node.Attributes["blurRad"]);1031ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]);1032ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]);1033ctObj.sx = XmlHelper.ReadInt(node.Attributes["sx"]);1034ctObj.sy = XmlHelper.ReadInt(node.Attributes["sy"]);1035ctObj.kx = XmlHelper.ReadInt(node.Attributes["kx"]);1036ctObj.ky = XmlHelper.ReadInt(node.Attributes["ky"]);1037if (node.Attributes["algn"] != null)1038ctObj.algn = (ST_RectAlignment)Enum.Parse(typeof(ST_RectAlignment), node.Attributes["algn"].Value);1039ctObj.rotWithShape = XmlHelper.ReadBool(node.Attributes["rotWithShape"]);1040foreach (XmlNode childNode in node.ChildNodes)1041{1042if (childNode.LocalName == "scrgbClr")1043ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);1044else if (childNode.LocalName == "srgbClr")1045ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);1046else if (childNode.LocalName == "hslClr")1047ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);1048else if (childNode.LocalName == "sysClr")1049ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);1050else if (childNode.LocalName == "schemeClr")1051ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);1052else if (childNode.LocalName == "prstClr")1053ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);1054}1055return ctObj;1056}1057
1058
1059
1060internal void Write(StreamWriter sw, string nodeName)1061{1062sw.Write(string.Format("<a:{0}", nodeName));1063XmlHelper.WriteAttribute(sw, "blurRad", this.blurRad);1064XmlHelper.WriteAttribute(sw, "dist", this.dist);1065XmlHelper.WriteAttribute(sw, "dir", this.dir);1066XmlHelper.WriteAttribute(sw, "sx", this.sx);1067XmlHelper.WriteAttribute(sw, "sy", this.sy);1068XmlHelper.WriteAttribute(sw, "kx", this.kx);1069XmlHelper.WriteAttribute(sw, "ky", this.ky);1070if(this.algn != ST_RectAlignment.tl)1071XmlHelper.WriteAttribute(sw, "algn", this.algn.ToString());1072XmlHelper.WriteAttribute(sw, "rotWithShape", this.rotWithShape);1073sw.Write(">");1074if (this.scrgbClr != null)1075this.scrgbClr.Write(sw, "scrgbClr");1076if (this.srgbClr != null)1077this.srgbClr.Write(sw, "srgbClr");1078if (this.hslClr != null)1079this.hslClr.Write(sw, "hslClr");1080if (this.sysClr != null)1081this.sysClr.Write(sw, "sysClr");1082if (this.schemeClr != null)1083this.schemeClr.Write(sw, "schemeClr");1084if (this.prstClr != null)1085this.prstClr.Write(sw, "prstClr");1086sw.Write(string.Format("</a:{0}>", nodeName));1087}1088
1089public CT_OuterShadowEffect()1090{1091//this.prstClrField = new CT_PresetColor();1092//this.schemeClrField = new CT_SchemeColor();1093//this.sysClrField = new CT_SystemColor();1094//this.hslClrField = new CT_HslColor();1095//this.srgbClrField = new CT_SRgbColor();1096//this.scrgbClrField = new CT_ScRgbColor();1097//this.blurRadField = ((long)(0));1098//this.distField = ((long)(0));1099//this.dirField = 0;1100//this.sxField = 100000;1101//this.syField = 100000;1102//this.kxField = 0;1103//this.kyField = 0;1104//this.algnField = ST_RectAlignment.b;1105//this.rotWithShapeField = true;1106}1107
1108[XmlElement(Order = 0)]1109public CT_ScRgbColor scrgbClr1110{1111get1112{1113return this.scrgbClrField;1114}1115set1116{1117this.scrgbClrField = value;1118}1119}1120
1121[XmlElement(Order = 1)]1122public CT_SRgbColor srgbClr1123{1124get1125{1126return this.srgbClrField;1127}1128set1129{1130this.srgbClrField = value;1131}1132}1133
1134[XmlElement(Order = 2)]1135public CT_HslColor hslClr1136{1137get1138{1139return this.hslClrField;1140}1141set1142{1143this.hslClrField = value;1144}1145}1146
1147[XmlElement(Order = 3)]1148public CT_SystemColor sysClr1149{1150get1151{1152return this.sysClrField;1153}1154set1155{1156this.sysClrField = value;1157}1158}1159
1160[XmlElement(Order = 4)]1161public CT_SchemeColor schemeClr1162{1163get1164{1165return this.schemeClrField;1166}1167set1168{1169this.schemeClrField = value;1170}1171}1172
1173[XmlElement(Order = 5)]1174public CT_PresetColor prstClr1175{1176get1177{1178return this.prstClrField;1179}1180set1181{1182this.prstClrField = value;1183}1184}1185
1186[XmlAttribute]1187[DefaultValue(typeof(long), "0")]1188public long blurRad1189{1190get1191{1192return this.blurRadField;1193}1194set1195{1196this.blurRadField = value;1197}1198}1199
1200[XmlAttribute]1201[DefaultValue(typeof(long), "0")]1202public long dist1203{1204get1205{1206return this.distField;1207}1208set1209{1210this.distField = value;1211}1212}1213
1214[XmlAttribute]1215[DefaultValue(0)]1216public int dir1217{1218get1219{1220return this.dirField;1221}1222set1223{1224this.dirField = value;1225}1226}1227
1228[XmlAttribute]1229[DefaultValue(100000)]1230public int sx1231{1232get1233{1234return this.sxField;1235}1236set1237{1238this.sxField = value;1239}1240}1241
1242[XmlAttribute]1243[DefaultValue(100000)]1244public int sy1245{1246get1247{1248return this.syField;1249}1250set1251{1252this.syField = value;1253}1254}1255
1256[XmlAttribute]1257[DefaultValue(0)]1258public int kx1259{1260get1261{1262return this.kxField;1263}1264set1265{1266this.kxField = value;1267}1268}1269
1270[XmlAttribute]1271[DefaultValue(0)]1272public int ky1273{1274get1275{1276return this.kyField;1277}1278set1279{1280this.kyField = value;1281}1282}1283
1284[XmlAttribute]1285[DefaultValue(ST_RectAlignment.b)]1286public ST_RectAlignment algn1287{1288get1289{1290return this.algnField;1291}1292set1293{1294this.algnField = value;1295}1296}1297
1298[XmlAttribute]1299[DefaultValue(true)]1300public bool rotWithShape1301{1302get1303{1304return this.rotWithShapeField;1305}1306set1307{1308this.rotWithShapeField = value;1309}1310}1311}1312
1313[Serializable]1314[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1315[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1316public class CT_LuminanceEffect1317{1318
1319private int brightField;1320
1321private int contrastField;1322
1323public CT_LuminanceEffect()1324{1325this.brightField = 0;1326this.contrastField = 0;1327}1328
1329[XmlAttribute]1330[DefaultValue(0)]1331public int bright1332{1333get1334{1335return this.brightField;1336}1337set1338{1339this.brightField = value;1340}1341}1342
1343[XmlAttribute]1344[DefaultValue(0)]1345public int contrast1346{1347get1348{1349return this.contrastField;1350}1351set1352{1353this.contrastField = value;1354}1355}1356}1357
1358[Serializable]1359[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1360[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1361public class CT_InnerShadowEffect1362{1363
1364private CT_ScRgbColor scrgbClrField;1365
1366private CT_SRgbColor srgbClrField;1367
1368private CT_HslColor hslClrField;1369
1370private CT_SystemColor sysClrField;1371
1372private CT_SchemeColor schemeClrField;1373
1374private CT_PresetColor prstClrField;1375
1376private long blurRadField;1377
1378private long distField;1379
1380private int dirField;1381public static CT_InnerShadowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)1382{1383if (node == null)1384return null;1385CT_InnerShadowEffect ctObj = new CT_InnerShadowEffect();1386ctObj.blurRad = XmlHelper.ReadLong(node.Attributes["blurRad"]);1387ctObj.dist = XmlHelper.ReadLong(node.Attributes["dist"]);1388ctObj.dir = XmlHelper.ReadInt(node.Attributes["dir"]);1389foreach (XmlNode childNode in node.ChildNodes)1390{1391if (childNode.LocalName == "scrgbClr")1392ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);1393else if (childNode.LocalName == "srgbClr")1394ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);1395else if (childNode.LocalName == "hslClr")1396ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);1397else if (childNode.LocalName == "sysClr")1398ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);1399else if (childNode.LocalName == "schemeClr")1400ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);1401else if (childNode.LocalName == "prstClr")1402ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);1403}1404return ctObj;1405}1406
1407
1408
1409internal void Write(StreamWriter sw, string nodeName)1410{1411sw.Write(string.Format("<a:{0}", nodeName));1412XmlHelper.WriteAttribute(sw, "blurRad", this.blurRad);1413XmlHelper.WriteAttribute(sw, "dist", this.dist);1414XmlHelper.WriteAttribute(sw, "dir", this.dir);1415sw.Write(">");1416if (this.scrgbClr != null)1417this.scrgbClr.Write(sw, "scrgbClr");1418if (this.srgbClr != null)1419this.srgbClr.Write(sw, "srgbClr");1420if (this.hslClr != null)1421this.hslClr.Write(sw, "hslClr");1422if (this.sysClr != null)1423this.sysClr.Write(sw, "sysClr");1424if (this.schemeClr != null)1425this.schemeClr.Write(sw, "schemeClr");1426if (this.prstClr != null)1427this.prstClr.Write(sw, "prstClr");1428sw.Write(string.Format("</a:{0}>", nodeName));1429}1430
1431public CT_InnerShadowEffect()1432{1433//this.prstClrField = new CT_PresetColor();1434//this.schemeClrField = new CT_SchemeColor();1435//this.sysClrField = new CT_SystemColor();1436//this.hslClrField = new CT_HslColor();1437//this.srgbClrField = new CT_SRgbColor();1438//this.scrgbClrField = new CT_ScRgbColor();1439//this.blurRadField = ((long)(0));1440//this.distField = ((long)(0));1441//this.dirField = 0;1442}1443
1444[XmlElement(Order = 0)]1445public CT_ScRgbColor scrgbClr1446{1447get1448{1449return this.scrgbClrField;1450}1451set1452{1453this.scrgbClrField = value;1454}1455}1456
1457[XmlElement(Order = 1)]1458public CT_SRgbColor srgbClr1459{1460get1461{1462return this.srgbClrField;1463}1464set1465{1466this.srgbClrField = value;1467}1468}1469
1470[XmlElement(Order = 2)]1471public CT_HslColor hslClr1472{1473get1474{1475return this.hslClrField;1476}1477set1478{1479this.hslClrField = value;1480}1481}1482
1483[XmlElement(Order = 3)]1484public CT_SystemColor sysClr1485{1486get1487{1488return this.sysClrField;1489}1490set1491{1492this.sysClrField = value;1493}1494}1495
1496[XmlElement(Order = 4)]1497public CT_SchemeColor schemeClr1498{1499get1500{1501return this.schemeClrField;1502}1503set1504{1505this.schemeClrField = value;1506}1507}1508
1509[XmlElement(Order = 5)]1510public CT_PresetColor prstClr1511{1512get1513{1514return this.prstClrField;1515}1516set1517{1518this.prstClrField = value;1519}1520}1521
1522[XmlAttribute]1523[DefaultValue(typeof(long), "0")]1524public long blurRad1525{1526get1527{1528return this.blurRadField;1529}1530set1531{1532this.blurRadField = value;1533}1534}1535
1536[XmlAttribute]1537[DefaultValue(typeof(long), "0")]1538public long dist1539{1540get1541{1542return this.distField;1543}1544set1545{1546this.distField = value;1547}1548}1549
1550[XmlAttribute]1551[DefaultValue(0)]1552public int dir1553{1554get1555{1556return this.dirField;1557}1558set1559{1560this.dirField = value;1561}1562}1563}1564
1565[Serializable]1566[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1567[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1568public class CT_HSLEffect1569{1570
1571private int hueField;1572
1573private int satField;1574
1575private int lumField;1576
1577public CT_HSLEffect()1578{1579this.hueField = 0;1580this.satField = 0;1581this.lumField = 0;1582}1583
1584[XmlAttribute]1585[DefaultValue(0)]1586public int hue1587{1588get1589{1590return this.hueField;1591}1592set1593{1594this.hueField = value;1595}1596}1597
1598[XmlAttribute]1599[DefaultValue(0)]1600public int sat1601{1602get1603{1604return this.satField;1605}1606set1607{1608this.satField = value;1609}1610}1611
1612[XmlAttribute]1613[DefaultValue(0)]1614public int lum1615{1616get1617{1618return this.lumField;1619}1620set1621{1622this.lumField = value;1623}1624}1625}1626
1627[Serializable]1628[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1629[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1630public class CT_GrayscaleEffect1631{1632}1633
1634
1635[Serializable]1636[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1637[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1638public class CT_GlowEffect1639{1640
1641private CT_ScRgbColor scrgbClrField;1642
1643private CT_SRgbColor srgbClrField;1644
1645private CT_HslColor hslClrField;1646
1647private CT_SystemColor sysClrField;1648
1649private CT_SchemeColor schemeClrField;1650
1651private CT_PresetColor prstClrField;1652
1653private long radField;1654public static CT_GlowEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)1655{1656if (node == null)1657return null;1658CT_GlowEffect ctObj = new CT_GlowEffect();1659ctObj.rad = XmlHelper.ReadLong(node.Attributes["rad"]);1660foreach (XmlNode childNode in node.ChildNodes)1661{1662if (childNode.LocalName == "scrgbClr")1663ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);1664else if (childNode.LocalName == "srgbClr")1665ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);1666else if (childNode.LocalName == "hslClr")1667ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);1668else if (childNode.LocalName == "sysClr")1669ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);1670else if (childNode.LocalName == "schemeClr")1671ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);1672else if (childNode.LocalName == "prstClr")1673ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);1674}1675return ctObj;1676}1677
1678
1679
1680internal void Write(StreamWriter sw, string nodeName)1681{1682sw.Write(string.Format("<a:{0}", nodeName));1683XmlHelper.WriteAttribute(sw, "rad", this.rad);1684sw.Write(">");1685if (this.scrgbClr != null)1686this.scrgbClr.Write(sw, "scrgbClr");1687if (this.srgbClr != null)1688this.srgbClr.Write(sw, "srgbClr");1689if (this.hslClr != null)1690this.hslClr.Write(sw, "hslClr");1691if (this.sysClr != null)1692this.sysClr.Write(sw, "sysClr");1693if (this.schemeClr != null)1694this.schemeClr.Write(sw, "schemeClr");1695if (this.prstClr != null)1696this.prstClr.Write(sw, "prstClr");1697sw.Write(string.Format("</a:{0}>", nodeName));1698}1699
1700public CT_GlowEffect()1701{1702//this.prstClrField = new CT_PresetColor();1703//this.schemeClrField = new CT_SchemeColor();1704//this.sysClrField = new CT_SystemColor();1705//this.hslClrField = new CT_HslColor();1706//this.srgbClrField = new CT_SRgbColor();1707//this.scrgbClrField = new CT_ScRgbColor();1708//this.radField = ((long)(0));1709}1710
1711[XmlElement(Order = 0)]1712public CT_ScRgbColor scrgbClr1713{1714get1715{1716return this.scrgbClrField;1717}1718set1719{1720this.scrgbClrField = value;1721}1722}1723
1724[XmlElement(Order = 1)]1725public CT_SRgbColor srgbClr1726{1727get1728{1729return this.srgbClrField;1730}1731set1732{1733this.srgbClrField = value;1734}1735}1736
1737[XmlElement(Order = 2)]1738public CT_HslColor hslClr1739{1740get1741{1742return this.hslClrField;1743}1744set1745{1746this.hslClrField = value;1747}1748}1749
1750[XmlElement(Order = 3)]1751public CT_SystemColor sysClr1752{1753get1754{1755return this.sysClrField;1756}1757set1758{1759this.sysClrField = value;1760}1761}1762
1763[XmlElement(Order = 4)]1764public CT_SchemeColor schemeClr1765{1766get1767{1768return this.schemeClrField;1769}1770set1771{1772this.schemeClrField = value;1773}1774}1775
1776[XmlElement(Order = 5)]1777public CT_PresetColor prstClr1778{1779get1780{1781return this.prstClrField;1782}1783set1784{1785this.prstClrField = value;1786}1787}1788
1789[XmlAttribute]1790[DefaultValue(typeof(long), "0")]1791public long rad1792{1793get1794{1795return this.radField;1796}1797set1798{1799this.radField = value;1800}1801}1802}1803
1804
1805[Serializable]1806[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1807[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1808public class CT_FillOverlayEffect1809{1810
1811private CT_NoFillProperties noFillField;1812
1813private CT_SolidColorFillProperties solidFillField;1814
1815private CT_GradientFillProperties gradFillField;1816
1817private CT_BlipFillProperties blipFillField;1818
1819private CT_PatternFillProperties pattFillField;1820
1821private CT_GroupFillProperties grpFillField;1822
1823private ST_BlendMode blendField;1824public static CT_FillOverlayEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)1825{1826if (node == null)1827return null;1828CT_FillOverlayEffect ctObj = new CT_FillOverlayEffect();1829if (node.Attributes["blend"] != null)1830ctObj.blend = (ST_BlendMode)Enum.Parse(typeof(ST_BlendMode), node.Attributes["blend"].Value);1831foreach (XmlNode childNode in node.ChildNodes)1832{1833if (childNode.LocalName == "noFill")1834ctObj.noFill = new CT_NoFillProperties();1835else if (childNode.LocalName == "solidFill")1836ctObj.solidFill = CT_SolidColorFillProperties.Parse(childNode, namespaceManager);1837else if (childNode.LocalName == "gradFill")1838ctObj.gradFill = CT_GradientFillProperties.Parse(childNode, namespaceManager);1839else if (childNode.LocalName == "blipFill")1840ctObj.blipFill = CT_BlipFillProperties.Parse(childNode, namespaceManager);1841else if (childNode.LocalName == "pattFill")1842ctObj.pattFill = CT_PatternFillProperties.Parse(childNode, namespaceManager);1843else if (childNode.LocalName == "grpFill")1844ctObj.grpFill = new CT_GroupFillProperties();1845}1846return ctObj;1847}1848
1849
1850
1851internal void Write(StreamWriter sw, string nodeName)1852{1853sw.Write(string.Format("<a:{0}", nodeName));1854XmlHelper.WriteAttribute(sw, "blend", this.blend.ToString());1855sw.Write(">");1856if (this.noFill != null)1857sw.Write("<a:noFill/>");1858if (this.gradFill != null)1859this.gradFill.Write(sw, "gradFill");1860if (this.solidFill != null)1861this.solidFill.Write(sw, "solidFill");1862if (this.blipFill != null)1863this.blipFill.Write(sw, "a:blipFill");1864if (this.pattFill != null)1865this.pattFill.Write(sw, "pattFill");1866if (this.grpFill != null)1867sw.Write("<a:grpFill/>");1868sw.Write(string.Format("</a:{0}>", nodeName));1869}1870
1871public CT_FillOverlayEffect()1872{1873//this.grpFillField = new CT_GroupFillProperties();1874//this.pattFillField = new CT_PatternFillProperties();1875//this.blipFillField = new CT_BlipFillProperties();1876//this.gradFillField = new CT_GradientFillProperties();1877//this.solidFillField = new CT_SolidColorFillProperties();1878//this.noFillField = new CT_NoFillProperties();1879}1880
1881[XmlElement(Order = 0)]1882public CT_NoFillProperties noFill1883{1884get1885{1886return this.noFillField;1887}1888set1889{1890this.noFillField = value;1891}1892}1893
1894[XmlElement(Order = 1)]1895public CT_SolidColorFillProperties solidFill1896{1897get1898{1899return this.solidFillField;1900}1901set1902{1903this.solidFillField = value;1904}1905}1906
1907[XmlElement(Order = 2)]1908public CT_GradientFillProperties gradFill1909{1910get1911{1912return this.gradFillField;1913}1914set1915{1916this.gradFillField = value;1917}1918}1919
1920[XmlElement(Order = 3)]1921public CT_BlipFillProperties blipFill1922{1923get1924{1925return this.blipFillField;1926}1927set1928{1929this.blipFillField = value;1930}1931}1932
1933[XmlElement(Order = 4)]1934public CT_PatternFillProperties pattFill1935{1936get1937{1938return this.pattFillField;1939}1940set1941{1942this.pattFillField = value;1943}1944}1945
1946[XmlElement(Order = 5)]1947public CT_GroupFillProperties grpFill1948{1949get1950{1951return this.grpFillField;1952}1953set1954{1955this.grpFillField = value;1956}1957}1958
1959[XmlAttribute]1960public ST_BlendMode blend1961{1962get1963{1964return this.blendField;1965}1966set1967{1968this.blendField = value;1969}1970}1971}1972
1973
1974[Serializable]1975[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1976[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1977public class CT_NoFillProperties1978{1979}1980
1981
1982[Serializable]1983[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1984[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1985public class CT_SolidColorFillProperties1986{1987
1988private CT_ScRgbColor scrgbClrField;1989
1990private CT_SRgbColor srgbClrField;1991
1992private CT_HslColor hslClrField;1993
1994private CT_SystemColor sysClrField;1995
1996private CT_SchemeColor schemeClrField;1997
1998private CT_PresetColor prstClrField;1999
2000public CT_SolidColorFillProperties()2001{2002//this.prstClrField = new CT_PresetColor();2003//this.schemeClrField = new CT_SchemeColor();2004//this.sysClrField = new CT_SystemColor();2005//this.hslClrField = new CT_HslColor();2006//this.srgbClrField = new CT_SRgbColor();2007//this.scrgbClrField = new CT_ScRgbColor();2008}2009public static CT_SolidColorFillProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2010{2011if (node == null)2012return null;2013CT_SolidColorFillProperties ctObj = new CT_SolidColorFillProperties();2014foreach (XmlNode childNode in node.ChildNodes)2015{2016if (childNode.LocalName == "scrgbClr")2017ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);2018else if (childNode.LocalName == "srgbClr")2019ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);2020else if (childNode.LocalName == "hslClr")2021ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);2022else if (childNode.LocalName == "sysClr")2023ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);2024else if (childNode.LocalName == "schemeClr")2025ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);2026else if (childNode.LocalName == "prstClr")2027ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);2028}2029return ctObj;2030}2031
2032internal void Write(StreamWriter sw, string nodeName)2033{2034sw.Write(string.Format("<a:{0}", nodeName));2035sw.Write(">");2036if (this.scrgbClr != null)2037this.scrgbClr.Write(sw, "scrgbClr");2038if (this.srgbClr != null)2039this.srgbClr.Write(sw, "srgbClr");2040if (this.hslClr != null)2041this.hslClr.Write(sw, "hslClr");2042if (this.sysClr != null)2043this.sysClr.Write(sw, "sysClr");2044if (this.schemeClr != null)2045this.schemeClr.Write(sw, "schemeClr");2046if (this.prstClr != null)2047this.prstClr.Write(sw, "prstClr");2048sw.Write(string.Format("</a:{0}>", nodeName));2049}2050
2051[XmlElement(Order = 0)]2052public CT_ScRgbColor scrgbClr2053{2054get2055{2056return this.scrgbClrField;2057}2058set2059{2060this.scrgbClrField = value;2061}2062}2063
2064[XmlElement(Order = 1)]2065public CT_SRgbColor srgbClr2066{2067get2068{2069return this.srgbClrField;2070}2071set2072{2073this.srgbClrField = value;2074}2075}2076
2077[XmlElement(Order = 2)]2078public CT_HslColor hslClr2079{2080get2081{2082return this.hslClrField;2083}2084set2085{2086this.hslClrField = value;2087}2088}2089
2090[XmlElement(Order = 3)]2091public CT_SystemColor sysClr2092{2093get2094{2095return this.sysClrField;2096}2097set2098{2099this.sysClrField = value;2100}2101}2102
2103[XmlElement(Order = 4)]2104public CT_SchemeColor schemeClr2105{2106get2107{2108return this.schemeClrField;2109}2110set2111{2112this.schemeClrField = value;2113}2114}2115
2116[XmlElement(Order = 5)]2117public CT_PresetColor prstClr2118{2119get2120{2121return this.prstClrField;2122}2123set2124{2125this.prstClrField = value;2126}2127}2128
2129public bool IsSetSrgbClr()2130{2131return srgbClrField != null;2132}2133
2134public CT_SRgbColor AddNewSrgbClr()2135{2136this.srgbClrField = new CT_SRgbColor();2137return srgbClrField;2138}2139
2140public bool IsSetHslClr()2141{2142return this.hslClrField != null;2143}2144
2145public bool IsSetPrstClr()2146{2147return this.prstClrField != null;2148}2149
2150public bool IsSetSchemeClr()2151{2152return this.schemeClrField != null;2153}2154
2155public bool IsSetScrgbClr()2156{2157return this.scrgbClrField != null;2158}2159
2160public bool IsSetSysClr()2161{2162return this.sysClrField != null;2163}2164
2165public void UnsetHslClr()2166{2167this.hslClrField = null;2168}2169
2170public void UnsetPrstClr()2171{2172this.prstClrField = null;2173}2174
2175public void UnsetSchemeClr()2176{2177this.schemeClrField = null;2178}2179
2180public void UnsetScrgbClr()2181{2182this.scrgbClrField = null;2183}2184
2185public void UnsetSysClr()2186{2187this.sysClrField = null;2188}2189}2190
2191[Serializable]2192[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2193[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2194public class CT_GradientFillProperties2195{2196
2197private CT_GradientStopList gsLstField;2198
2199private CT_LinearShadeProperties linField;2200
2201private CT_PathShadeProperties pathField;2202
2203private CT_RelativeRect tileRectField;2204
2205private ST_TileFlipMode flipField;2206
2207private bool flipFieldSpecified;2208
2209private bool rotWithShapeField;2210
2211private bool rotWithShapeFieldSpecified;2212
2213public CT_GradientFillProperties()2214{2215//this.tileRectField = new CT_RelativeRect();2216//this.pathField = new CT_PathShadeProperties();2217//this.linField = new CT_LinearShadeProperties();2218//this.gsLstField = new List<CT_GradientStop>();2219}2220public static CT_GradientFillProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2221{2222if (node == null)2223return null;2224CT_GradientFillProperties ctObj = new CT_GradientFillProperties();2225if (node.Attributes["flip"] != null)2226ctObj.flip = (ST_TileFlipMode)Enum.Parse(typeof(ST_TileFlipMode), node.Attributes["flip"].Value);2227ctObj.rotWithShape = XmlHelper.ReadBool(node.Attributes["rotWithShape"]);2228foreach (XmlNode childNode in node.ChildNodes)2229{2230if (childNode.LocalName == "gsLst")2231ctObj.gsLst = CT_GradientStopList.Parse(childNode, namespaceManager);2232else if (childNode.LocalName == "lin")2233ctObj.lin = CT_LinearShadeProperties.Parse(childNode, namespaceManager);2234else if (childNode.LocalName == "path")2235ctObj.path = CT_PathShadeProperties.Parse(childNode, namespaceManager);2236else if (childNode.LocalName == "tileRect")2237ctObj.tileRect = CT_RelativeRect.Parse(childNode, namespaceManager);2238}2239return ctObj;2240}2241
2242
2243
2244internal void Write(StreamWriter sw, string nodeName)2245{2246sw.Write(string.Format("<a:{0}", nodeName));2247if(this.flip!= ST_TileFlipMode.none)2248XmlHelper.WriteAttribute(sw, "flip", this.flip.ToString());2249XmlHelper.WriteAttribute(sw, "rotWithShape", this.rotWithShape);2250sw.Write(">");2251if (this.gsLst != null)2252this.gsLst.Write(sw, "gsLst");2253if (this.lin != null)2254this.lin.Write(sw, "lin");2255if (this.path != null)2256this.path.Write(sw, "path");2257if (this.tileRect != null)2258this.tileRect.Write(sw, "tileRect");2259sw.Write(string.Format("</a:{0}>", nodeName));2260}2261[XmlElement(Order = 0)]2262public CT_GradientStopList gsLst2263{2264get2265{2266return this.gsLstField;2267}2268set2269{2270this.gsLstField = value;2271}2272}2273
2274[XmlElement(Order = 1)]2275public CT_LinearShadeProperties lin2276{2277get2278{2279return this.linField;2280}2281set2282{2283this.linField = value;2284}2285}2286
2287[XmlElement(Order = 2)]2288public CT_PathShadeProperties path2289{2290get2291{2292return this.pathField;2293}2294set2295{2296this.pathField = value;2297}2298}2299
2300[XmlElement(Order = 3)]2301public CT_RelativeRect tileRect2302{2303get2304{2305return this.tileRectField;2306}2307set2308{2309this.tileRectField = value;2310}2311}2312
2313[XmlAttribute]2314public ST_TileFlipMode flip2315{2316get2317{2318return this.flipField;2319}2320set2321{2322this.flipField = value;2323}2324}2325
2326[XmlIgnore]2327public bool flipSpecified2328{2329get2330{2331return this.flipFieldSpecified;2332}2333set2334{2335this.flipFieldSpecified = value;2336}2337}2338
2339[XmlAttribute]2340public bool rotWithShape2341{2342get2343{2344return this.rotWithShapeField;2345}2346set2347{2348this.rotWithShapeField = value;2349}2350}2351
2352[XmlIgnore]2353public bool rotWithShapeSpecified2354{2355get2356{2357return this.rotWithShapeFieldSpecified;2358}2359set2360{2361this.rotWithShapeFieldSpecified = value;2362}2363}2364
2365}2366
2367[Serializable]2368[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2369[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2370public class CT_GradientStop2371{2372
2373private CT_ScRgbColor scrgbClrField;2374
2375private CT_SRgbColor srgbClrField;2376
2377private CT_HslColor hslClrField;2378
2379private CT_SystemColor sysClrField;2380
2381private CT_SchemeColor schemeClrField;2382
2383private CT_PresetColor prstClrField;2384
2385private int posField;2386
2387public CT_GradientStop()2388{2389}2390public static CT_GradientStop Parse(XmlNode node, XmlNamespaceManager namespaceManager)2391{2392if (node == null)2393return null;2394CT_GradientStop ctObj = new CT_GradientStop();2395ctObj.pos = XmlHelper.ReadInt(node.Attributes["pos"]);2396foreach (XmlNode childNode in node.ChildNodes)2397{2398if (childNode.LocalName == "scrgbClr")2399ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);2400else if (childNode.LocalName == "srgbClr")2401ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);2402else if (childNode.LocalName == "hslClr")2403ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);2404else if (childNode.LocalName == "sysClr")2405ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);2406else if (childNode.LocalName == "schemeClr")2407ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);2408else if (childNode.LocalName == "prstClr")2409ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);2410}2411return ctObj;2412}2413
2414
2415
2416internal void Write(StreamWriter sw, string nodeName)2417{2418sw.Write(string.Format("<a:{0}", nodeName));2419XmlHelper.WriteAttribute(sw, "pos", this.pos, true);2420sw.Write(">");2421if (this.scrgbClr != null)2422this.scrgbClr.Write(sw, "scrgbClr");2423if (this.srgbClr != null)2424this.srgbClr.Write(sw, "srgbClr");2425if (this.hslClr != null)2426this.hslClr.Write(sw, "hslClr");2427if (this.sysClr != null)2428this.sysClr.Write(sw, "sysClr");2429if (this.schemeClr != null)2430this.schemeClr.Write(sw, "schemeClr");2431if (this.prstClr != null)2432this.prstClr.Write(sw, "prstClr");2433sw.Write(string.Format("</a:{0}>", nodeName));2434}2435
2436[XmlElement(Order = 0)]2437public CT_ScRgbColor scrgbClr2438{2439get2440{2441return this.scrgbClrField;2442}2443set2444{2445this.scrgbClrField = value;2446}2447}2448
2449[XmlElement(Order = 1)]2450public CT_SRgbColor srgbClr2451{2452get2453{2454return this.srgbClrField;2455}2456set2457{2458this.srgbClrField = value;2459}2460}2461
2462[XmlElement(Order = 2)]2463public CT_HslColor hslClr2464{2465get2466{2467return this.hslClrField;2468}2469set2470{2471this.hslClrField = value;2472}2473}2474
2475[XmlElement(Order = 3)]2476public CT_SystemColor sysClr2477{2478get2479{2480return this.sysClrField;2481}2482set2483{2484this.sysClrField = value;2485}2486}2487
2488[XmlElement(Order = 4)]2489public CT_SchemeColor schemeClr2490{2491get2492{2493return this.schemeClrField;2494}2495set2496{2497this.schemeClrField = value;2498}2499}2500
2501[XmlElement(Order = 5)]2502public CT_PresetColor prstClr2503{2504get2505{2506return this.prstClrField;2507}2508set2509{2510this.prstClrField = value;2511}2512}2513
2514[XmlAttribute]2515public int pos2516{2517get2518{2519return this.posField;2520}2521set2522{2523this.posField = value;2524}2525}2526}2527
2528[Serializable]2529[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2530[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2531public class CT_LinearShadeProperties2532{2533
2534private int angField;2535
2536private bool angFieldSpecified;2537
2538private bool scaledField;2539
2540private bool scaledFieldSpecified;2541public static CT_LinearShadeProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2542{2543if (node == null)2544return null;2545CT_LinearShadeProperties ctObj = new CT_LinearShadeProperties();2546ctObj.ang = XmlHelper.ReadInt(node.Attributes["ang"]);2547ctObj.scaled = XmlHelper.ReadBool(node.Attributes["scaled"]);2548return ctObj;2549}2550
2551
2552
2553internal void Write(StreamWriter sw, string nodeName)2554{2555sw.Write(string.Format("<a:{0}", nodeName));2556XmlHelper.WriteAttribute(sw, "ang", this.ang);2557XmlHelper.WriteAttribute(sw, "scaled", this.scaled);2558sw.Write("/>");2559}2560
2561[XmlAttribute]2562public int ang2563{2564get2565{2566return this.angField;2567}2568set2569{2570this.angField = value;2571}2572}2573
2574[XmlIgnore]2575public bool angSpecified2576{2577get2578{2579return this.angFieldSpecified;2580}2581set2582{2583this.angFieldSpecified = value;2584}2585}2586
2587[XmlAttribute]2588public bool scaled2589{2590get2591{2592return this.scaledField;2593}2594set2595{2596this.scaledField = value;2597}2598}2599
2600[XmlIgnore]2601public bool scaledSpecified2602{2603get2604{2605return this.scaledFieldSpecified;2606}2607set2608{2609this.scaledFieldSpecified = value;2610}2611}2612}2613
2614[Serializable]2615[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2616[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2617public class CT_PathShadeProperties2618{2619
2620private CT_RelativeRect fillToRectField;2621
2622private ST_PathShadeType pathField;2623
2624private bool pathFieldSpecified;2625
2626public CT_PathShadeProperties()2627{2628//this.fillToRectField = new CT_RelativeRect();2629}2630public static CT_PathShadeProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2631{2632if (node == null)2633return null;2634CT_PathShadeProperties ctObj = new CT_PathShadeProperties();2635if (node.Attributes["path"] != null)2636ctObj.path = (ST_PathShadeType)Enum.Parse(typeof(ST_PathShadeType), node.Attributes["path"].Value);2637foreach (XmlNode childNode in node.ChildNodes)2638{2639if (childNode.LocalName == "fillToRect")2640ctObj.fillToRect = CT_RelativeRect.Parse(childNode, namespaceManager);2641}2642return ctObj;2643}2644
2645
2646
2647internal void Write(StreamWriter sw, string nodeName)2648{2649sw.Write(string.Format("<a:{0}", nodeName));2650XmlHelper.WriteAttribute(sw, "path", this.path.ToString());2651sw.Write(">");2652if (this.fillToRect != null)2653this.fillToRect.Write(sw, "fillToRect");2654sw.Write(string.Format("</a:{0}>", nodeName));2655}2656
2657
2658[XmlElement(Order = 0)]2659public CT_RelativeRect fillToRect2660{2661get2662{2663return this.fillToRectField;2664}2665set2666{2667this.fillToRectField = value;2668}2669}2670
2671[XmlAttribute]2672public ST_PathShadeType path2673{2674get2675{2676return this.pathField;2677}2678set2679{2680this.pathField = value;2681}2682}2683
2684[XmlIgnore]2685public bool pathSpecified2686{2687get2688{2689return this.pathFieldSpecified;2690}2691set2692{2693this.pathFieldSpecified = value;2694}2695}2696}2697
2698[Serializable]2699[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2700public enum ST_PathShadeType2701{2702
2703/// <remarks/>2704shape,2705
2706/// <remarks/>2707circle,2708
2709/// <remarks/>2710rect,2711}2712
2713
2714[Serializable]2715[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2716public enum ST_TileFlipMode2717{2718
2719/// <remarks/>2720none,2721
2722/// <remarks/>2723x,2724
2725/// <remarks/>2726y,2727
2728/// <remarks/>2729xy,2730}2731
2732[Serializable]2733[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2734[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2735public class CT_BlipFillProperties2736{2737
2738private CT_Blip blipField = null;2739
2740private CT_RelativeRect srcRectField = null;2741
2742private CT_TileInfoProperties tileField = null;2743
2744private CT_StretchInfoProperties stretchField = null;2745
2746private uint dpiField;2747private bool dpiFieldSpecified;2748
2749private bool rotWithShapeField;2750
2751private bool rotWithShapeFieldSpecified;2752
2753public CT_Blip AddNewBlip()2754{2755this.blipField = new CT_Blip();2756return blipField;2757}2758
2759public CT_StretchInfoProperties AddNewStretch()2760{2761this.stretchField = new CT_StretchInfoProperties();2762return stretchField;2763}2764
2765public static CT_BlipFillProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2766{2767if (node == null)2768return null;2769CT_BlipFillProperties ctObj = new CT_BlipFillProperties();2770ctObj.dpi = XmlHelper.ReadUInt(node.Attributes["dpi"]);2771ctObj.rotWithShape = XmlHelper.ReadBool(node.Attributes["rotWithShape"]);2772foreach (XmlNode childNode in node.ChildNodes)2773{2774if (childNode.LocalName == "blip")2775ctObj.blip = CT_Blip.Parse(childNode, namespaceManager);2776else if (childNode.LocalName == "srcRect")2777ctObj.srcRect = CT_RelativeRect.Parse(childNode, namespaceManager);2778else if (childNode.LocalName == "tile")2779ctObj.tile = CT_TileInfoProperties.Parse(childNode, namespaceManager);2780else if (childNode.LocalName == "stretch")2781ctObj.stretch = CT_StretchInfoProperties.Parse(childNode, namespaceManager);2782}2783return ctObj;2784}2785
2786
2787
2788internal void Write(StreamWriter sw, string nodeName)2789{2790sw.Write(string.Format("<{0}", nodeName));2791XmlHelper.WriteAttribute(sw, "dpi", this.dpi);2792XmlHelper.WriteAttribute(sw, "rotWithShape", this.rotWithShape);2793sw.Write(">");2794if (this.blip != null)2795this.blip.Write(sw, "blip");2796if (this.srcRect != null)2797this.srcRect.Write(sw, "srcRect");2798if (this.tile != null)2799this.tile.Write(sw, "tile");2800if (this.stretch != null)2801this.stretch.Write(sw, "stretch");2802sw.Write(string.Format("</{0}>", nodeName));2803}2804
2805[XmlElement(Order = 0)]2806public CT_Blip blip2807{2808get2809{2810return this.blipField;2811}2812set2813{2814this.blipField = value;2815}2816}2817
2818[XmlElement(Order = 1)]2819public CT_RelativeRect srcRect2820{2821get2822{2823return this.srcRectField;2824}2825set2826{2827this.srcRectField = value;2828}2829}2830
2831[XmlElement(Order = 2)]2832public CT_TileInfoProperties tile2833{2834get2835{2836return this.tileField;2837}2838set2839{2840this.tileField = value;2841}2842}2843
2844[XmlElement(Order = 3)]2845public CT_StretchInfoProperties stretch2846{2847get2848{2849return this.stretchField;2850}2851set2852{2853this.stretchField = value;2854}2855}2856
2857[XmlAttribute]2858public uint dpi2859{2860get2861{2862return (uint)this.dpiField;2863}2864set2865{2866this.dpiField = value;2867}2868}2869[XmlIgnore]2870public bool dpiSpecified2871{2872get2873{2874return dpiFieldSpecified;2875}2876set2877{2878this.dpiFieldSpecified = value;2879}2880}2881
2882
2883[XmlAttribute]2884public bool rotWithShape2885{2886get2887{2888return (bool)this.rotWithShapeField;2889}2890set2891{2892this.rotWithShapeField = value;2893}2894}2895[XmlIgnore]2896public bool rotWithShapeSpecified2897{2898get2899{2900return rotWithShapeFieldSpecified;2901}2902set2903{2904this.rotWithShapeFieldSpecified = value;2905}2906}2907
2908public bool IsSetBlip()2909{2910return this.blipField != null;2911}2912
2913}2914
2915
2916
2917[Serializable]2918[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]2919[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]2920public class CT_TileInfoProperties2921{2922
2923private long txField;2924
2925private bool txFieldSpecified;2926
2927private long tyField;2928
2929private bool tyFieldSpecified;2930
2931private int sxField;2932
2933private bool sxFieldSpecified;2934
2935private int syField;2936
2937private bool syFieldSpecified;2938
2939private ST_TileFlipMode flipField;2940
2941private bool flipFieldSpecified;2942
2943private ST_RectAlignment algnField;2944
2945private bool algnFieldSpecified;2946
2947public static CT_TileInfoProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)2948{2949if (node == null)2950return null;2951CT_TileInfoProperties ctObj = new CT_TileInfoProperties();2952ctObj.tx = XmlHelper.ReadLong(node.Attributes["tx"]);2953ctObj.ty = XmlHelper.ReadLong(node.Attributes["ty"]);2954ctObj.sx = XmlHelper.ReadInt(node.Attributes["sx"]);2955ctObj.sy = XmlHelper.ReadInt(node.Attributes["sy"]);2956if (node.Attributes["flip"] != null)2957ctObj.flip = (ST_TileFlipMode)Enum.Parse(typeof(ST_TileFlipMode), node.Attributes["flip"].Value);2958if (node.Attributes["algn"] != null)2959ctObj.algn = (ST_RectAlignment)Enum.Parse(typeof(ST_RectAlignment), node.Attributes["algn"].Value);2960return ctObj;2961}2962
2963
2964
2965internal void Write(StreamWriter sw, string nodeName)2966{2967sw.Write(string.Format("<a:{0}", nodeName));2968XmlHelper.WriteAttribute(sw, "tx", this.tx);2969XmlHelper.WriteAttribute(sw, "ty", this.ty);2970XmlHelper.WriteAttribute(sw, "sx", this.sx);2971XmlHelper.WriteAttribute(sw, "sy", this.sy);2972XmlHelper.WriteAttribute(sw, "flip", this.flip.ToString());2973XmlHelper.WriteAttribute(sw, "algn", this.algn.ToString());2974sw.Write(">");2975sw.Write(string.Format("</a:{0}>", nodeName));2976}2977
2978[XmlAttribute]2979public long tx2980{2981get2982{2983return this.txField;2984}2985set2986{2987this.txField = value;2988}2989}2990
2991[XmlIgnore]2992public bool txSpecified2993{2994get2995{2996return this.txFieldSpecified;2997}2998set2999{3000this.txFieldSpecified = value;3001}3002}3003
3004[XmlAttribute]3005public long ty3006{3007get3008{3009return this.tyField;3010}3011set3012{3013this.tyField = value;3014}3015}3016
3017[XmlIgnore]3018public bool tySpecified3019{3020get3021{3022return this.tyFieldSpecified;3023}3024set3025{3026this.tyFieldSpecified = value;3027}3028}3029
3030[XmlAttribute]3031public int sx3032{3033get3034{3035return this.sxField;3036}3037set3038{3039this.sxField = value;3040}3041}3042
3043[XmlIgnore]3044public bool sxSpecified3045{3046get3047{3048return this.sxFieldSpecified;3049}3050set3051{3052this.sxFieldSpecified = value;3053}3054}3055
3056[XmlAttribute]3057public int sy3058{3059get3060{3061return this.syField;3062}3063set3064{3065this.syField = value;3066}3067}3068
3069[XmlIgnore]3070public bool sySpecified3071{3072get3073{3074return this.syFieldSpecified;3075}3076set3077{3078this.syFieldSpecified = value;3079}3080}3081
3082[XmlAttribute]3083public ST_TileFlipMode flip3084{3085get3086{3087return this.flipField;3088}3089set3090{3091this.flipField = value;3092}3093}3094
3095[XmlIgnore]3096public bool flipSpecified3097{3098get3099{3100return this.flipFieldSpecified;3101}3102set3103{3104this.flipFieldSpecified = value;3105}3106}3107
3108[XmlAttribute]3109public ST_RectAlignment algn3110{3111get3112{3113return this.algnField;3114}3115set3116{3117this.algnField = value;3118}3119}3120
3121[XmlIgnore]3122public bool algnSpecified3123{3124get3125{3126return this.algnFieldSpecified;3127}3128set3129{3130this.algnFieldSpecified = value;3131}3132}3133}3134
3135
3136[Serializable]3137[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3138[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3139public class CT_StretchInfoProperties3140{3141public static CT_StretchInfoProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)3142{3143if (node == null)3144return null;3145CT_StretchInfoProperties ctObj = new CT_StretchInfoProperties();3146foreach (XmlNode childNode in node.ChildNodes)3147{3148if (childNode.LocalName == "fillRect")3149ctObj.fillRect = CT_RelativeRect.Parse(childNode, namespaceManager);3150}3151return ctObj;3152}3153
3154
3155
3156internal void Write(StreamWriter sw, string nodeName)3157{3158sw.Write(string.Format("<a:{0}", nodeName));3159sw.Write(">");3160if (this.fillRect != null)3161this.fillRect.Write(sw, "fillRect");3162sw.Write(string.Format("</a:{0}>", nodeName));3163}3164
3165private CT_RelativeRect fillRectField = null;3166
3167public CT_RelativeRect AddNewFillRect()3168{3169this.fillRectField = new CT_RelativeRect();3170return this.fillRectField;3171}3172
3173[XmlElement(Order = 0)]3174public CT_RelativeRect fillRect3175{3176get3177{3178return this.fillRectField;3179}3180set3181{3182this.fillRectField = value;3183}3184}3185}3186
3187[Serializable]3188[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3189[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3190public class CT_PatternFillProperties3191{3192
3193private CT_Color fgClrField;3194
3195private CT_Color bgClrField;3196
3197private ST_PresetPatternVal prstField;3198
3199private bool prstFieldSpecified;3200public static CT_PatternFillProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)3201{3202if (node == null)3203return null;3204CT_PatternFillProperties ctObj = new CT_PatternFillProperties();3205if (node.Attributes["prst"] != null)3206ctObj.prst = (ST_PresetPatternVal)Enum.Parse(typeof(ST_PresetPatternVal), node.Attributes["prst"].Value);3207foreach (XmlNode childNode in node.ChildNodes)3208{3209if (childNode.LocalName == "fgClr")3210ctObj.fgClr = CT_Color.Parse(childNode, namespaceManager);3211else if (childNode.LocalName == "bgClr")3212ctObj.bgClr = CT_Color.Parse(childNode, namespaceManager);3213}3214return ctObj;3215}3216
3217
3218
3219internal void Write(StreamWriter sw, string nodeName)3220{3221sw.Write(string.Format("<a:{0}", nodeName));3222XmlHelper.WriteAttribute(sw, "prst", this.prst.ToString());3223sw.Write(">");3224if (this.fgClr != null)3225this.fgClr.Write(sw, "fgClr");3226if (this.bgClr != null)3227this.bgClr.Write(sw, "bgClr");3228sw.Write(string.Format("</a:{0}>", nodeName));3229}3230
3231
3232public CT_PatternFillProperties()3233{3234//this.bgClrField = new CT_Color();3235//this.fgClrField = new CT_Color();3236}3237
3238[XmlElement(Order = 0)]3239public CT_Color fgClr3240{3241get3242{3243return this.fgClrField;3244}3245set3246{3247this.fgClrField = value;3248}3249}3250
3251[XmlElement(Order = 1)]3252public CT_Color bgClr3253{3254get3255{3256return this.bgClrField;3257}3258set3259{3260this.bgClrField = value;3261}3262}3263
3264[XmlAttribute]3265public ST_PresetPatternVal prst3266{3267get3268{3269return this.prstField;3270}3271set3272{3273this.prstField = value;3274}3275}3276
3277[XmlIgnore]3278public bool prstSpecified3279{3280get3281{3282return this.prstFieldSpecified;3283}3284set3285{3286this.prstFieldSpecified = value;3287}3288}3289}3290
3291[Serializable]3292[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3293public enum ST_PresetPatternVal3294{3295
3296/// <remarks/>3297pct5,3298
3299/// <remarks/>3300pct10,3301
3302/// <remarks/>3303pct20,3304
3305/// <remarks/>3306pct25,3307
3308/// <remarks/>3309pct30,3310
3311/// <remarks/>3312pct40,3313
3314/// <remarks/>3315pct50,3316
3317/// <remarks/>3318pct60,3319
3320/// <remarks/>3321pct70,3322
3323/// <remarks/>3324pct75,3325
3326/// <remarks/>3327pct80,3328
3329/// <remarks/>3330pct90,3331
3332/// <remarks/>3333horz,3334
3335/// <remarks/>3336vert,3337
3338/// <remarks/>3339ltHorz,3340
3341/// <remarks/>3342ltVert,3343
3344/// <remarks/>3345dkHorz,3346
3347/// <remarks/>3348dkVert,3349
3350/// <remarks/>3351narHorz,3352
3353/// <remarks/>3354narVert,3355
3356/// <remarks/>3357dashHorz,3358
3359/// <remarks/>3360dashVert,3361
3362/// <remarks/>3363cross,3364
3365/// <remarks/>3366dnDiag,3367
3368/// <remarks/>3369upDiag,3370
3371/// <remarks/>3372ltDnDiag,3373
3374/// <remarks/>3375ltUpDiag,3376
3377/// <remarks/>3378dkDnDiag,3379
3380/// <remarks/>3381dkUpDiag,3382
3383/// <remarks/>3384wdDnDiag,3385
3386/// <remarks/>3387wdUpDiag,3388
3389/// <remarks/>3390dashDnDiag,3391
3392/// <remarks/>3393dashUpDiag,3394
3395/// <remarks/>3396diagCross,3397
3398/// <remarks/>3399smCheck,3400
3401/// <remarks/>3402lgCheck,3403
3404/// <remarks/>3405smGrid,3406
3407/// <remarks/>3408lgGrid,3409
3410/// <remarks/>3411dotGrid,3412
3413/// <remarks/>3414smConfetti,3415
3416/// <remarks/>3417lgConfetti,3418
3419/// <remarks/>3420horzBrick,3421
3422/// <remarks/>3423diagBrick,3424
3425/// <remarks/>3426solidDmnd,3427
3428/// <remarks/>3429openDmnd,3430
3431/// <remarks/>3432dotDmnd,3433
3434/// <remarks/>3435plaid,3436
3437/// <remarks/>3438sphere,3439
3440/// <remarks/>3441weave,3442
3443/// <remarks/>3444divot,3445
3446/// <remarks/>3447shingle,3448
3449/// <remarks/>3450wave,3451
3452/// <remarks/>3453trellis,3454
3455/// <remarks/>3456zigZag,3457}3458
3459
3460[Serializable]3461[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3462[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3463public class CT_GroupFillProperties3464{3465}3466
3467[Serializable]3468[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3469public enum ST_BlendMode3470{3471
3472/// <remarks/>3473over,3474
3475/// <remarks/>3476mult,3477
3478/// <remarks/>3479screen,3480
3481/// <remarks/>3482darken,3483
3484/// <remarks/>3485lighten,3486}3487
3488[Serializable]3489[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3490[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3491public class CT_FillEffect3492{3493
3494private CT_NoFillProperties noFillField;3495
3496private CT_SolidColorFillProperties solidFillField;3497
3498private CT_GradientFillProperties gradFillField;3499
3500private CT_BlipFillProperties blipFillField;3501
3502private CT_PatternFillProperties pattFillField;3503
3504private CT_GroupFillProperties grpFillField;3505
3506public CT_FillEffect()3507{3508//this.grpFillField = new CT_GroupFillProperties();3509//this.pattFillField = new CT_PatternFillProperties();3510//this.blipFillField = new CT_BlipFillProperties();3511//this.gradFillField = new CT_GradientFillProperties();3512//this.solidFillField = new CT_SolidColorFillProperties();3513//this.noFillField = new CT_NoFillProperties();3514}3515
3516[XmlElement(Order = 0)]3517public CT_NoFillProperties noFill3518{3519get3520{3521return this.noFillField;3522}3523set3524{3525this.noFillField = value;3526}3527}3528
3529[XmlElement(Order = 1)]3530public CT_SolidColorFillProperties solidFill3531{3532get3533{3534return this.solidFillField;3535}3536set3537{3538this.solidFillField = value;3539}3540}3541
3542[XmlElement(Order = 2)]3543public CT_GradientFillProperties gradFill3544{3545get3546{3547return this.gradFillField;3548}3549set3550{3551this.gradFillField = value;3552}3553}3554
3555[XmlElement(Order = 3)]3556public CT_BlipFillProperties blipFill3557{3558get3559{3560return this.blipFillField;3561}3562set3563{3564this.blipFillField = value;3565}3566}3567
3568[XmlElement(Order = 4)]3569public CT_PatternFillProperties pattFill3570{3571get3572{3573return this.pattFillField;3574}3575set3576{3577this.pattFillField = value;3578}3579}3580
3581[XmlElement(Order = 5)]3582public CT_GroupFillProperties grpFill3583{3584get3585{3586return this.grpFillField;3587}3588set3589{3590this.grpFillField = value;3591}3592}3593}3594
3595[Serializable]3596[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3597[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3598public class CT_DuotoneEffect3599{3600private List<object> itemsField;3601
3602public CT_DuotoneEffect()3603{3604this.itemsField = new List<object>();3605}3606
3607[XmlElement("hslClr", typeof(CT_HslColor), Order = 0)]3608[XmlElement("prstClr", typeof(CT_PresetColor), Order = 0)]3609[XmlElement("schemeClr", typeof(CT_SchemeColor), Order = 0)]3610[XmlElement("scrgbClr", typeof(CT_ScRgbColor), Order = 0)]3611[XmlElement("srgbClr", typeof(CT_SRgbColor), Order = 0)]3612[XmlElement("sysClr", typeof(CT_SystemColor), Order = 0)]3613public List<object> Items3614{3615get3616{3617return this.itemsField;3618}3619set3620{3621this.itemsField = value;3622}3623}3624
3625#region another way3626//private CT_ScRgbColor[] scrgbClrField;3627
3628//private CT_SRgbColor[] srgbClrField;3629
3630//private CT_HslColor[] hslClrField;3631
3632//private CT_SystemColor[] sysClrField;3633
3634//private CT_SchemeColor[] schemeClrField;3635
3636//private CT_PresetColor[] prstClrField;3637
3638
3639//[XmlElement("scrgbClr")]3640//public CT_ScRgbColor[] scrgbClr3641//{3642// get3643// {3644// return this.scrgbClrField;3645// }3646// set3647// {3648// this.scrgbClrField = value;3649// }3650//}3651
3652
3653//[XmlElement("srgbClr")]3654//public CT_SRgbColor[] srgbClr3655//{3656// get3657// {3658// return this.srgbClrField;3659// }3660// set3661// {3662// this.srgbClrField = value;3663// }3664//}3665
3666
3667//[XmlElement("hslClr")]3668//public CT_HslColor[] hslClr3669//{3670// get3671// {3672// return this.hslClrField;3673// }3674// set3675// {3676// this.hslClrField = value;3677// }3678//}3679
3680
3681//[XmlElement("sysClr")]3682//public CT_SystemColor[] sysClr3683//{3684// get3685// {3686// return this.sysClrField;3687// }3688// set3689// {3690// this.sysClrField = value;3691// }3692//}3693
3694
3695//[XmlElement("schemeClr")]3696//public CT_SchemeColor[] schemeClr3697//{3698// get3699// {3700// return this.schemeClrField;3701// }3702// set3703// {3704// this.schemeClrField = value;3705// }3706//}3707
3708
3709//[XmlElement("prstClr")]3710//public CT_PresetColor[] prstClr3711//{3712// get3713// {3714// return this.prstClrField;3715// }3716// set3717// {3718// this.prstClrField = value;3719// }3720//}3721
3722#endregion3723}3724
3725[Serializable]3726[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3727[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3728public class CT_ColorReplaceEffect3729{3730
3731private CT_ScRgbColor scrgbClrField;3732
3733private CT_SRgbColor srgbClrField;3734
3735private CT_HslColor hslClrField;3736
3737private CT_SystemColor sysClrField;3738
3739private CT_SchemeColor schemeClrField;3740
3741private CT_PresetColor prstClrField;3742
3743public CT_ColorReplaceEffect()3744{3745//this.prstClrField = new CT_PresetColor();3746//this.schemeClrField = new CT_SchemeColor();3747//this.sysClrField = new CT_SystemColor();3748//this.hslClrField = new CT_HslColor();3749//this.srgbClrField = new CT_SRgbColor();3750//this.scrgbClrField = new CT_ScRgbColor();3751}3752
3753[XmlElement(Order = 0)]3754public CT_ScRgbColor scrgbClr3755{3756get3757{3758return this.scrgbClrField;3759}3760set3761{3762this.scrgbClrField = value;3763}3764}3765
3766[XmlElement(Order = 1)]3767public CT_SRgbColor srgbClr3768{3769get3770{3771return this.srgbClrField;3772}3773set3774{3775this.srgbClrField = value;3776}3777}3778
3779[XmlElement(Order = 2)]3780public CT_HslColor hslClr3781{3782get3783{3784return this.hslClrField;3785}3786set3787{3788this.hslClrField = value;3789}3790}3791
3792[XmlElement(Order = 3)]3793public CT_SystemColor sysClr3794{3795get3796{3797return this.sysClrField;3798}3799set3800{3801this.sysClrField = value;3802}3803}3804
3805[XmlElement(Order = 4)]3806public CT_SchemeColor schemeClr3807{3808get3809{3810return this.schemeClrField;3811}3812set3813{3814this.schemeClrField = value;3815}3816}3817
3818[XmlElement(Order = 5)]3819public CT_PresetColor prstClr3820{3821get3822{3823return this.prstClrField;3824}3825set3826{3827this.prstClrField = value;3828}3829}3830}3831
3832
3833[Serializable]3834[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3835[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3836public class CT_ColorChangeEffect3837{3838
3839private CT_Color clrFromField;3840
3841private CT_Color clrToField;3842
3843private bool useAField;3844
3845public CT_ColorChangeEffect()3846{3847this.clrToField = new CT_Color();3848this.clrFromField = new CT_Color();3849this.useAField = true;3850}3851
3852[XmlElement(Order = 0)]3853public CT_Color clrFrom3854{3855get3856{3857return this.clrFromField;3858}3859set3860{3861this.clrFromField = value;3862}3863}3864
3865[XmlElement(Order = 1)]3866public CT_Color clrTo3867{3868get3869{3870return this.clrToField;3871}3872set3873{3874this.clrToField = value;3875}3876}3877
3878[XmlAttribute]3879[DefaultValue(true)]3880public bool useA3881{3882get3883{3884return this.useAField;3885}3886set3887{3888this.useAField = value;3889}3890}3891}3892
3893
3894[Serializable]3895[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3896[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3897public class CT_BlurEffect3898{3899public static CT_BlurEffect Parse(XmlNode node, XmlNamespaceManager namespaceManager)3900{3901if (node == null)3902return null;3903CT_BlurEffect ctObj = new CT_BlurEffect();3904ctObj.rad = XmlHelper.ReadLong(node.Attributes["rad"]);3905ctObj.grow = XmlHelper.ReadBool(node.Attributes["grow"]);3906return ctObj;3907}3908
3909
3910
3911internal void Write(StreamWriter sw, string nodeName)3912{3913sw.Write(string.Format("<a:{0}", nodeName));3914XmlHelper.WriteAttribute(sw, "rad", this.rad);3915XmlHelper.WriteAttribute(sw, "grow", this.grow);3916sw.Write(">");3917sw.Write(string.Format("</a:{0}>", nodeName));3918}3919private long radField;3920
3921private bool growField;3922
3923public CT_BlurEffect()3924{3925this.radField = ((long)(0));3926this.growField = true;3927}3928
3929[XmlAttribute]3930[DefaultValue(typeof(long), "0")]3931public long rad3932{3933get3934{3935return this.radField;3936}3937set3938{3939this.radField = value;3940}3941}3942
3943[XmlAttribute]3944[DefaultValue(true)]3945public bool grow3946{3947get3948{3949return this.growField;3950}3951set3952{3953this.growField = value;3954}3955}3956}3957
3958
3959[Serializable]3960[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]3961[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]3962public class CT_BlendEffect3963{3964
3965private CT_EffectContainer contField;3966
3967private ST_BlendMode blendField;3968
3969public CT_BlendEffect()3970{3971this.contField = new CT_EffectContainer();3972}3973
3974[XmlElement(Order = 0)]3975public CT_EffectContainer cont3976{3977get3978{3979return this.contField;3980}3981set3982{3983this.contField = value;3984}3985}3986
3987[XmlAttribute]3988public ST_BlendMode blend3989{3990get3991{3992return this.blendField;3993}3994set3995{3996this.blendField = value;3997}3998}3999}4000
4001
4002[Serializable]4003[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4004[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4005public class CT_EffectContainer4006{4007
4008private List<object> itemsField;4009
4010private ST_EffectContainerType typeField;4011
4012private string nameField;4013
4014public CT_EffectContainer()4015{4016this.itemsField = new List<object>();4017this.typeField = ST_EffectContainerType.sib;4018}4019public static CT_EffectContainer Parse(XmlNode node, XmlNamespaceManager namespaceManager)4020{4021if (node == null)4022return null;4023CT_EffectContainer ctObj = new CT_EffectContainer();4024if (node.Attributes["type"] != null)4025ctObj.type = (ST_EffectContainerType)Enum.Parse(typeof(ST_EffectContainerType), node.Attributes["type"].Value);4026ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);4027return ctObj;4028}4029
4030
4031
4032internal void Write(StreamWriter sw, string nodeName)4033{4034sw.Write(string.Format("<a:{0}", nodeName));4035XmlHelper.WriteAttribute(sw, "type", this.type.ToString());4036XmlHelper.WriteAttribute(sw, "name", this.name);4037sw.Write(">");4038sw.Write(string.Format("</a:{0}>", nodeName));4039}4040
4041[XmlElement("alphaBiLevel", typeof(CT_AlphaBiLevelEffect), Order = 0)]4042[XmlElement("alphaCeiling", typeof(CT_AlphaCeilingEffect), Order = 0)]4043[XmlElement("alphaFloor", typeof(CT_AlphaFloorEffect), Order = 0)]4044[XmlElement("alphaInv", typeof(CT_AlphaInverseEffect), Order = 0)]4045[XmlElement("alphaMod", typeof(CT_AlphaModulateEffect), Order = 0)]4046[XmlElement("alphaModFix", typeof(CT_AlphaModulateFixedEffect), Order = 0)]4047[XmlElement("alphaOutset", typeof(CT_AlphaOutsetEffect), Order = 0)]4048[XmlElement("alphaRepl", typeof(CT_AlphaReplaceEffect), Order = 0)]4049[XmlElement("biLevel", typeof(CT_BiLevelEffect), Order = 0)]4050[XmlElement("blend", typeof(CT_BlendEffect), Order = 0)]4051[XmlElement("blur", typeof(CT_BlurEffect), Order = 0)]4052[XmlElement("clrChange", typeof(CT_ColorChangeEffect), Order = 0)]4053[XmlElement("clrRepl", typeof(CT_ColorReplaceEffect), Order = 0)]4054[XmlElement("cont", typeof(CT_EffectContainer), Order = 0)]4055[XmlElement("duotone", typeof(CT_DuotoneEffect), Order = 0)]4056[XmlElement("effect", typeof(CT_EffectReference), Order = 0)]4057[XmlElement("fill", typeof(CT_FillEffect), Order = 0)]4058[XmlElement("fillOverlay", typeof(CT_FillOverlayEffect), Order = 0)]4059[XmlElement("glow", typeof(CT_GlowEffect), Order = 0)]4060[XmlElement("grayscl", typeof(CT_GrayscaleEffect), Order = 0)]4061[XmlElement("hsl", typeof(CT_HSLEffect), Order = 0)]4062[XmlElement("innerShdw", typeof(CT_InnerShadowEffect), Order = 0)]4063[XmlElement("lum", typeof(CT_LuminanceEffect), Order = 0)]4064[XmlElement("outerShdw", typeof(CT_OuterShadowEffect), Order = 0)]4065[XmlElement("prstShdw", typeof(CT_PresetShadowEffect), Order = 0)]4066[XmlElement("reflection", typeof(CT_ReflectionEffect), Order = 0)]4067[XmlElement("relOff", typeof(CT_RelativeOffsetEffect), Order = 0)]4068[XmlElement("softEdge", typeof(CT_SoftEdgesEffect), Order = 0)]4069[XmlElement("tint", typeof(CT_TintEffect), Order = 0)]4070[XmlElement("xfrm", typeof(CT_TransformEffect), Order = 0)]4071public List<object> Items4072{4073get4074{4075return this.itemsField;4076}4077set4078{4079this.itemsField = value;4080}4081}4082
4083[XmlAttribute]4084[DefaultValue(ST_EffectContainerType.sib)]4085public ST_EffectContainerType type4086{4087get4088{4089return this.typeField;4090}4091set4092{4093this.typeField = value;4094}4095}4096
4097[XmlAttribute(DataType = "token")]4098public string name4099{4100get4101{4102return this.nameField;4103}4104set4105{4106this.nameField = value;4107}4108}4109}4110
4111
4112[Serializable]4113[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4114[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4115public class CT_AlphaCeilingEffect4116{4117}4118
4119
4120[Serializable]4121[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4122[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4123public class CT_AlphaFloorEffect4124{4125}4126
4127
4128[Serializable]4129[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4130[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4131public class CT_AlphaInverseEffect4132{4133
4134private CT_ScRgbColor scrgbClrField;4135
4136private CT_SRgbColor srgbClrField;4137
4138private CT_HslColor hslClrField;4139
4140private CT_SystemColor sysClrField;4141
4142private CT_SchemeColor schemeClrField;4143
4144private CT_PresetColor prstClrField;4145
4146public CT_AlphaInverseEffect()4147{4148//this.prstClrField = new CT_PresetColor();4149//this.schemeClrField = new CT_SchemeColor();4150//this.sysClrField = new CT_SystemColor();4151//this.hslClrField = new CT_HslColor();4152//this.srgbClrField = new CT_SRgbColor();4153//this.scrgbClrField = new CT_ScRgbColor();4154}4155
4156[XmlElement(Order = 0)]4157public CT_ScRgbColor scrgbClr4158{4159get4160{4161return this.scrgbClrField;4162}4163set4164{4165this.scrgbClrField = value;4166}4167}4168
4169[XmlElement(Order = 1)]4170public CT_SRgbColor srgbClr4171{4172get4173{4174return this.srgbClrField;4175}4176set4177{4178this.srgbClrField = value;4179}4180}4181
4182[XmlElement(Order = 2)]4183public CT_HslColor hslClr4184{4185get4186{4187return this.hslClrField;4188}4189set4190{4191this.hslClrField = value;4192}4193}4194
4195[XmlElement(Order = 3)]4196public CT_SystemColor sysClr4197{4198get4199{4200return this.sysClrField;4201}4202set4203{4204this.sysClrField = value;4205}4206}4207
4208[XmlElement(Order = 4)]4209public CT_SchemeColor schemeClr4210{4211get4212{4213return this.schemeClrField;4214}4215set4216{4217this.schemeClrField = value;4218}4219}4220
4221[XmlElement(Order = 5)]4222public CT_PresetColor prstClr4223{4224get4225{4226return this.prstClrField;4227}4228set4229{4230this.prstClrField = value;4231}4232}4233}4234
4235[Serializable]4236[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4237[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4238public class CT_AlphaModulateEffect4239{4240
4241private CT_EffectContainer contField;4242
4243public CT_AlphaModulateEffect()4244{4245this.contField = new CT_EffectContainer();4246}4247
4248[XmlElement(Order = 0)]4249public CT_EffectContainer cont4250{4251get4252{4253return this.contField;4254}4255set4256{4257this.contField = value;4258}4259}4260}4261
4262[Serializable]4263[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4264[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4265public class CT_AlphaModulateFixedEffect4266{4267
4268private int amtField;4269
4270public CT_AlphaModulateFixedEffect()4271{4272this.amtField = 100000;4273}4274
4275[XmlAttribute]4276[DefaultValue(100000)]4277public int amt4278{4279get4280{4281return this.amtField;4282}4283set4284{4285this.amtField = value;4286}4287}4288}4289
4290
4291[Serializable]4292[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4293[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4294public class CT_AlphaOutsetEffect4295{4296
4297private long radField;4298
4299public CT_AlphaOutsetEffect()4300{4301this.radField = ((long)(0));4302}4303
4304[XmlAttribute]4305[DefaultValue(typeof(long), "0")]4306public long rad4307{4308get4309{4310return this.radField;4311}4312set4313{4314this.radField = value;4315}4316}4317}4318
4319
4320[Serializable]4321[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4322[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4323public class CT_AlphaReplaceEffect4324{4325
4326private int aField;4327
4328[XmlAttribute]4329public int a4330{4331get4332{4333return this.aField;4334}4335set4336{4337this.aField = value;4338}4339}4340}4341
4342
4343[Serializable]4344[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4345[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4346public class CT_BiLevelEffect4347{4348
4349private int threshField;4350
4351[XmlAttribute]4352public int thresh4353{4354get4355{4356return this.threshField;4357}4358set4359{4360this.threshField = value;4361}4362}4363}4364
4365[Serializable]4366[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4367[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4368public class CT_EffectReference4369{4370
4371private string refField;4372
4373[XmlAttribute(DataType = "token")]4374public string @ref4375{4376get4377{4378return this.refField;4379}4380set4381{4382this.refField = value;4383}4384}4385}4386
4387
4388[Serializable]4389[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4390public enum ST_EffectContainerType4391{4392
4393/// <remarks/>4394sib,4395
4396/// <remarks/>4397tree,4398}4399
4400
4401[Serializable]4402[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4403public enum ST_BlipCompression4404{4405
4406/// <remarks/>4407email,4408
4409/// <remarks/>4410screen,4411
4412/// <remarks/>4413print,4414
4415/// <remarks/>4416hqprint,4417
4418/// <remarks/>4419none,4420}4421
4422
4423[Serializable]4424[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4425[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4426public class CT_GradientStopList4427{4428public static CT_GradientStopList Parse(XmlNode node, XmlNamespaceManager namespaceManager)4429{4430if (node == null)4431return null;4432CT_GradientStopList ctObj = new CT_GradientStopList();4433ctObj.gs = new List<CT_GradientStop>();4434foreach (XmlNode childNode in node.ChildNodes)4435{4436if (childNode.LocalName == "gs")4437ctObj.gs.Add(CT_GradientStop.Parse(childNode, namespaceManager));4438}4439return ctObj;4440}4441
4442
4443
4444internal void Write(StreamWriter sw, string nodeName)4445{4446sw.Write(string.Format("<a:{0}", nodeName));4447sw.Write(">");4448if (this.gs != null)4449{4450foreach (CT_GradientStop x in this.gs)4451{4452x.Write(sw, "gs");4453}4454}4455sw.Write(string.Format("</a:{0}>", nodeName));4456}4457
4458private List<CT_GradientStop> gsField;4459
4460public CT_GradientStopList()4461{4462this.gsField = new List<CT_GradientStop>();4463}4464
4465[XmlElement("gs", Order = 0)]4466public List<CT_GradientStop> gs4467{4468get4469{4470return this.gsField;4471}4472set4473{4474this.gsField = value;4475}4476}4477}4478
4479[Serializable]4480[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4481[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4482public class CT_FillProperties4483{4484
4485private CT_NoFillProperties noFillField;4486
4487private CT_SolidColorFillProperties solidFillField;4488
4489private CT_GradientFillProperties gradFillField;4490
4491private CT_BlipFillProperties blipFillField;4492
4493private CT_PatternFillProperties pattFillField;4494
4495private CT_GroupFillProperties grpFillField;4496
4497public CT_FillProperties()4498{4499//this.grpFillField = new CT_GroupFillProperties();4500//this.pattFillField = new CT_PatternFillProperties();4501//this.blipFillField = new CT_BlipFillProperties();4502//this.gradFillField = new CT_GradientFillProperties();4503//this.solidFillField = new CT_SolidColorFillProperties();4504//this.noFillField = new CT_NoFillProperties();4505}4506
4507[XmlElement(Order = 0)]4508public CT_NoFillProperties noFill4509{4510get4511{4512return this.noFillField;4513}4514set4515{4516this.noFillField = value;4517}4518}4519
4520[XmlElement(Order = 1)]4521public CT_SolidColorFillProperties solidFill4522{4523get4524{4525return this.solidFillField;4526}4527set4528{4529this.solidFillField = value;4530}4531}4532
4533[XmlElement(Order = 2)]4534public CT_GradientFillProperties gradFill4535{4536get4537{4538return this.gradFillField;4539}4540set4541{4542this.gradFillField = value;4543}4544}4545
4546[XmlElement(Order = 3)]4547public CT_BlipFillProperties blipFill4548{4549get4550{4551return this.blipFillField;4552}4553set4554{4555this.blipFillField = value;4556}4557}4558
4559[XmlElement(Order = 4)]4560public CT_PatternFillProperties pattFill4561{4562get4563{4564return this.pattFillField;4565}4566set4567{4568this.pattFillField = value;4569}4570}4571
4572[XmlElement(Order = 5)]4573public CT_GroupFillProperties grpFill4574{4575get4576{4577return this.grpFillField;4578}4579set4580{4581this.grpFillField = value;4582}4583}4584}4585
4586[Serializable]4587[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4588[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4589public class CT_EffectList4590{4591
4592private CT_BlurEffect blurField;4593
4594private CT_FillOverlayEffect fillOverlayField;4595
4596private CT_GlowEffect glowField;4597
4598private CT_InnerShadowEffect innerShdwField;4599
4600private CT_OuterShadowEffect outerShdwField;4601
4602private CT_PresetShadowEffect prstShdwField;4603
4604private CT_ReflectionEffect reflectionField;4605
4606private CT_SoftEdgesEffect softEdgeField;4607public static CT_EffectList Parse(XmlNode node, XmlNamespaceManager namespaceManager)4608{4609if (node == null)4610return null;4611CT_EffectList ctObj = new CT_EffectList();4612foreach (XmlNode childNode in node.ChildNodes)4613{4614if (childNode.LocalName == "blur")4615ctObj.blur = CT_BlurEffect.Parse(childNode, namespaceManager);4616else if (childNode.LocalName == "fillOverlay")4617ctObj.fillOverlay = CT_FillOverlayEffect.Parse(childNode, namespaceManager);4618else if (childNode.LocalName == "glow")4619ctObj.glow = CT_GlowEffect.Parse(childNode, namespaceManager);4620else if (childNode.LocalName == "innerShdw")4621ctObj.innerShdw = CT_InnerShadowEffect.Parse(childNode, namespaceManager);4622else if (childNode.LocalName == "outerShdw")4623ctObj.outerShdw = CT_OuterShadowEffect.Parse(childNode, namespaceManager);4624else if (childNode.LocalName == "prstShdw")4625ctObj.prstShdw = CT_PresetShadowEffect.Parse(childNode, namespaceManager);4626else if (childNode.LocalName == "reflection")4627ctObj.reflection = CT_ReflectionEffect.Parse(childNode, namespaceManager);4628else if (childNode.LocalName == "softEdge")4629ctObj.softEdge = CT_SoftEdgesEffect.Parse(childNode, namespaceManager);4630}4631return ctObj;4632}4633
4634
4635
4636internal void Write(StreamWriter sw, string nodeName)4637{4638sw.Write(string.Format("<a:{0}", nodeName));4639sw.Write(">");4640if (this.blur != null)4641this.blur.Write(sw, "blur");4642if (this.fillOverlay != null)4643this.fillOverlay.Write(sw, "fillOverlay");4644if (this.glow != null)4645this.glow.Write(sw, "glow");4646if (this.innerShdw != null)4647this.innerShdw.Write(sw, "innerShdw");4648if (this.outerShdw != null)4649this.outerShdw.Write(sw, "outerShdw");4650if (this.prstShdw != null)4651this.prstShdw.Write(sw, "prstShdw");4652if (this.reflection != null)4653this.reflection.Write(sw, "reflection");4654if (this.softEdge != null)4655this.softEdge.Write(sw, "softEdge");4656sw.Write(string.Format("</a:{0}>", nodeName));4657}4658
4659public CT_EffectList()4660{4661//this.softEdgeField = new CT_SoftEdgesEffect();4662//this.reflectionField = new CT_ReflectionEffect();4663//this.prstShdwField = new CT_PresetShadowEffect();4664//this.outerShdwField = new CT_OuterShadowEffect();4665//this.innerShdwField = new CT_InnerShadowEffect();4666//this.glowField = new CT_GlowEffect();4667//this.fillOverlayField = new CT_FillOverlayEffect();4668//this.blurField = new CT_BlurEffect();4669}4670
4671[XmlElement(Order = 0)]4672public CT_BlurEffect blur4673{4674get4675{4676return this.blurField;4677}4678set4679{4680this.blurField = value;4681}4682}4683
4684[XmlElement(Order = 1)]4685public CT_FillOverlayEffect fillOverlay4686{4687get4688{4689return this.fillOverlayField;4690}4691set4692{4693this.fillOverlayField = value;4694}4695}4696
4697[XmlElement(Order = 2)]4698public CT_GlowEffect glow4699{4700get4701{4702return this.glowField;4703}4704set4705{4706this.glowField = value;4707}4708}4709
4710[XmlElement(Order = 3)]4711public CT_InnerShadowEffect innerShdw4712{4713get4714{4715return this.innerShdwField;4716}4717set4718{4719this.innerShdwField = value;4720}4721}4722
4723[XmlElement(Order = 4)]4724public CT_OuterShadowEffect outerShdw4725{4726get4727{4728return this.outerShdwField;4729}4730set4731{4732this.outerShdwField = value;4733}4734}4735
4736[XmlElement(Order = 5)]4737public CT_PresetShadowEffect prstShdw4738{4739get4740{4741return this.prstShdwField;4742}4743set4744{4745this.prstShdwField = value;4746}4747}4748
4749[XmlElement(Order = 6)]4750public CT_ReflectionEffect reflection4751{4752get4753{4754return this.reflectionField;4755}4756set4757{4758this.reflectionField = value;4759}4760}4761
4762[XmlElement(Order = 7)]4763public CT_SoftEdgesEffect softEdge4764{4765get4766{4767return this.softEdgeField;4768}4769set4770{4771this.softEdgeField = value;4772}4773}4774}4775
4776
4777[Serializable]4778[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]4779[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]4780public class CT_EffectProperties4781{4782
4783private CT_EffectList effectLstField;4784
4785private CT_EffectContainer effectDagField;4786
4787public CT_EffectProperties()4788{4789//this.effectDagField = new CT_EffectContainer();4790//this.effectLstField = new CT_EffectList();4791}4792
4793[XmlElement(Order = 0)]4794public CT_EffectList effectLst4795{4796get4797{4798return this.effectLstField;4799}4800set4801{4802this.effectLstField = value;4803}4804}4805
4806[XmlElement(Order = 1)]4807public CT_EffectContainer effectDag4808{4809get4810{4811return this.effectDagField;4812}4813set4814{4815this.effectDagField = value;4816}4817}4818}4819}
4820