npoi
1681 строка · 49.0 Кб
1// ------------------------------------------------------------------------------
2// <auto-generated>
3// Generated by Xsd2Code. Version 3.4.0.38967
4// <NameSpace>NPOI.OpenXmlFormats.Dml</NameSpace><Collection>List</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><EnableLazyLoading>False</EnableLazyLoading><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>False</EnableSummaryComment><VirtualProp>False</VirtualProp><IncludeSerializeMethod>False</IncludeSerializeMethod><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><GenerateCloneMethod>False</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><CodeBaseTag>Net20</CodeBaseTag><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><GenerateXMLAttributes>True</GenerateXMLAttributes><EnableEncoding>False</EnableEncoding><AutomaticProperties>False</AutomaticProperties><GenerateShouldSerialize>False</GenerateShouldSerialize><DisableDebug>False</DisableDebug><PropNameSpecified>Default</PropNameSpecified><Encoder>UTF8</Encoder><CustomUsings></CustomUsings><ExcludeIncludedTypes>True</ExcludeIncludedTypes><EnableInitializeFields>True</EnableInitializeFields>
5// </auto-generated>
6// ------------------------------------------------------------------------------
7namespace NPOI.OpenXmlFormats.Dml8{
9using System;10using System.Diagnostics;11using System.Xml.Serialization;12using System.Collections;13using System.Xml.Schema;14using System.ComponentModel;15using System.Collections.Generic;16using System.Xml;17using NPOI.OpenXml4Net.Util;18using System.IO;19using NPOI.OpenXmlFormats.Vml;20
21[Serializable]22[System.ComponentModel.DesignerCategoryAttribute("code")]23[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]24[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]25public class CT_ColorScheme26{27
28private CT_Color dk1Field;29
30private CT_Color lt1Field;31
32private CT_Color dk2Field;33
34private CT_Color lt2Field;35
36private CT_Color accent1Field;37
38private CT_Color accent2Field;39
40private CT_Color accent3Field;41
42private CT_Color accent4Field;43
44private CT_Color accent5Field;45
46private CT_Color accent6Field;47
48private CT_Color hlinkField;49
50private CT_Color folHlinkField;51
52private CT_OfficeArtExtensionList extLstField;53
54private string nameField;55
56public CT_ColorScheme()57{58}59public static CT_ColorScheme Parse(XmlNode node, XmlNamespaceManager namespaceManager)60{61if (node == null)62return null;63CT_ColorScheme ctObj = new CT_ColorScheme();64ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);65foreach (XmlNode childNode in node.ChildNodes)66{67if (childNode.LocalName == "dk1")68ctObj.dk1 = CT_Color.Parse(childNode, namespaceManager);69else if (childNode.LocalName == "lt1")70ctObj.lt1 = CT_Color.Parse(childNode, namespaceManager);71else if (childNode.LocalName == "dk2")72ctObj.dk2 = CT_Color.Parse(childNode, namespaceManager);73else if (childNode.LocalName == "lt2")74ctObj.lt2 = CT_Color.Parse(childNode, namespaceManager);75else if (childNode.LocalName == "accent1")76ctObj.accent1 = CT_Color.Parse(childNode, namespaceManager);77else if (childNode.LocalName == "accent2")78ctObj.accent2 = CT_Color.Parse(childNode, namespaceManager);79else if (childNode.LocalName == "accent3")80ctObj.accent3 = CT_Color.Parse(childNode, namespaceManager);81else if (childNode.LocalName == "accent4")82ctObj.accent4 = CT_Color.Parse(childNode, namespaceManager);83else if (childNode.LocalName == "accent5")84ctObj.accent5 = CT_Color.Parse(childNode, namespaceManager);85else if (childNode.LocalName == "accent6")86ctObj.accent6 = CT_Color.Parse(childNode, namespaceManager);87else if (childNode.LocalName == "hlink")88ctObj.hlink = CT_Color.Parse(childNode, namespaceManager);89else if (childNode.LocalName == "folHlink")90ctObj.folHlink = CT_Color.Parse(childNode, namespaceManager);91else if (childNode.LocalName == "extLst")92ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);93}94return ctObj;95}96
97
98
99internal void Write(StreamWriter sw, string nodeName)100{101sw.Write(string.Format("<a:{0}", nodeName));102XmlHelper.WriteAttribute(sw, "name", this.name);103sw.Write(">");104if (this.dk1 != null)105this.dk1.Write(sw, "dk1");106if (this.lt1 != null)107this.lt1.Write(sw, "lt1");108if (this.dk2 != null)109this.dk2.Write(sw, "dk2");110if (this.lt2 != null)111this.lt2.Write(sw, "lt2");112if (this.accent1 != null)113this.accent1.Write(sw, "accent1");114if (this.accent2 != null)115this.accent2.Write(sw, "accent2");116if (this.accent3 != null)117this.accent3.Write(sw, "accent3");118if (this.accent4 != null)119this.accent4.Write(sw, "accent4");120if (this.accent5 != null)121this.accent5.Write(sw, "accent5");122if (this.accent6 != null)123this.accent6.Write(sw, "accent6");124if (this.hlink != null)125this.hlink.Write(sw, "hlink");126if (this.folHlink != null)127this.folHlink.Write(sw, "folHlink");128if (this.extLst != null)129this.extLst.Write(sw, "extLst");130sw.Write(string.Format("</a:{0}>", nodeName));131}132
133[XmlElement(Order = 0)]134public CT_Color dk1135{136get137{138return this.dk1Field;139}140set141{142this.dk1Field = value;143}144}145
146[XmlElement(Order = 1)]147public CT_Color lt1148{149get150{151return this.lt1Field;152}153set154{155this.lt1Field = value;156}157}158
159[XmlElement(Order = 2)]160public CT_Color dk2161{162get163{164return this.dk2Field;165}166set167{168this.dk2Field = value;169}170}171
172[XmlElement(Order = 3)]173public CT_Color lt2174{175get176{177return this.lt2Field;178}179set180{181this.lt2Field = value;182}183}184
185[XmlElement(Order = 4)]186public CT_Color accent1187{188get189{190return this.accent1Field;191}192set193{194this.accent1Field = value;195}196}197
198[XmlElement(Order = 5)]199public CT_Color accent2200{201get202{203return this.accent2Field;204}205set206{207this.accent2Field = value;208}209}210
211[XmlElement(Order = 6)]212public CT_Color accent3213{214get215{216return this.accent3Field;217}218set219{220this.accent3Field = value;221}222}223
224[XmlElement(Order = 7)]225public CT_Color accent4226{227get228{229return this.accent4Field;230}231set232{233this.accent4Field = value;234}235}236
237[XmlElement(Order = 8)]238public CT_Color accent5239{240get241{242return this.accent5Field;243}244set245{246this.accent5Field = value;247}248}249
250[XmlElement(Order = 9)]251public CT_Color accent6252{253get254{255return this.accent6Field;256}257set258{259this.accent6Field = value;260}261}262
263[XmlElement(Order = 10)]264public CT_Color hlink265{266get267{268return this.hlinkField;269}270set271{272this.hlinkField = value;273}274}275
276[XmlElement(Order = 11)]277public CT_Color folHlink278{279get280{281return this.folHlinkField;282}283set284{285this.folHlinkField = value;286}287}288
289[XmlElement(Order = 12)]290public CT_OfficeArtExtensionList extLst291{292get293{294return this.extLstField;295}296set297{298this.extLstField = value;299}300}301
302[XmlAttribute]303public string name304{305get306{307return this.nameField;308}309set310{311this.nameField = value;312}313}314}315
316
317[Serializable]318[System.ComponentModel.DesignerCategoryAttribute("code")]319[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]320[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]321public class CT_CustomColor322{323
324private CT_ScRgbColor scrgbClrField;325
326private CT_SRgbColor srgbClrField;327
328private CT_HslColor hslClrField;329
330private CT_SystemColor sysClrField;331
332private CT_SchemeColor schemeClrField;333
334private CT_PresetColor prstClrField;335
336private string nameField;337public static CT_CustomColor Parse(XmlNode node, XmlNamespaceManager namespaceManager)338{339if (node == null)340return null;341CT_CustomColor ctObj = new CT_CustomColor();342ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);343foreach (XmlNode childNode in node.ChildNodes)344{345if (childNode.LocalName == "scrgbClr")346ctObj.scrgbClr = CT_ScRgbColor.Parse(childNode, namespaceManager);347else if (childNode.LocalName == "srgbClr")348ctObj.srgbClr = CT_SRgbColor.Parse(childNode, namespaceManager);349else if (childNode.LocalName == "hslClr")350ctObj.hslClr = CT_HslColor.Parse(childNode, namespaceManager);351else if (childNode.LocalName == "sysClr")352ctObj.sysClr = CT_SystemColor.Parse(childNode, namespaceManager);353else if (childNode.LocalName == "schemeClr")354ctObj.schemeClr = CT_SchemeColor.Parse(childNode, namespaceManager);355else if (childNode.LocalName == "prstClr")356ctObj.prstClr = CT_PresetColor.Parse(childNode, namespaceManager);357}358return ctObj;359}360
361
362
363internal void Write(StreamWriter sw, string nodeName)364{365sw.Write(string.Format("<a:{0}", nodeName));366XmlHelper.WriteAttribute(sw, "name", this.name);367sw.Write(">");368if (this.scrgbClr != null)369this.scrgbClr.Write(sw, "scrgbClr");370if (this.srgbClr != null)371this.srgbClr.Write(sw, "srgbClr");372if (this.hslClr != null)373this.hslClr.Write(sw, "hslClr");374if (this.sysClr != null)375this.sysClr.Write(sw, "sysClr");376if (this.schemeClr != null)377this.schemeClr.Write(sw, "schemeClr");378if (this.prstClr != null)379this.prstClr.Write(sw, "prstClr");380sw.Write(string.Format("</a:{0}>", nodeName));381}382
383public CT_CustomColor()384{385//this.prstClrField = new CT_PresetColor();386//this.schemeClrField = new CT_SchemeColor();387//this.sysClrField = new CT_SystemColor();388//this.hslClrField = new CT_HslColor();389//this.srgbClrField = new CT_SRgbColor();390//this.scrgbClrField = new CT_ScRgbColor();391//this.nameField = "";392}393
394[XmlElement(Order = 0)]395public CT_ScRgbColor scrgbClr396{397get398{399return this.scrgbClrField;400}401set402{403this.scrgbClrField = value;404}405}406
407[XmlElement(Order = 1)]408public CT_SRgbColor srgbClr409{410get411{412return this.srgbClrField;413}414set415{416this.srgbClrField = value;417}418}419
420[XmlElement(Order = 2)]421public CT_HslColor hslClr422{423get424{425return this.hslClrField;426}427set428{429this.hslClrField = value;430}431}432
433[XmlElement(Order = 3)]434public CT_SystemColor sysClr435{436get437{438return this.sysClrField;439}440set441{442this.sysClrField = value;443}444}445
446[XmlElement(Order = 4)]447public CT_SchemeColor schemeClr448{449get450{451return this.schemeClrField;452}453set454{455this.schemeClrField = value;456}457}458
459[XmlElement(Order = 5)]460public CT_PresetColor prstClr461{462get463{464return this.prstClrField;465}466set467{468this.prstClrField = value;469}470}471
472[XmlAttribute]473[DefaultValue("")]474public string name475{476get477{478return this.nameField;479}480set481{482this.nameField = value;483}484}485}486
487
488[Serializable]489[System.ComponentModel.DesignerCategoryAttribute("code")]490[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]491[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]492public class CT_SupplementalFont493{494
495private string scriptField;496
497private string typefaceField;498public static CT_SupplementalFont Parse(XmlNode node, XmlNamespaceManager namespaceManager)499{500if (node == null)501return null;502CT_SupplementalFont ctObj = new CT_SupplementalFont();503ctObj.script = XmlHelper.ReadString(node.Attributes["script"]);504ctObj.typeface = XmlHelper.ReadString(node.Attributes["typeface"]);505return ctObj;506}507
508
509
510internal void Write(StreamWriter sw, string nodeName)511{512sw.Write(string.Format("<a:{0}", nodeName));513XmlHelper.WriteAttribute(sw, "script", this.script);514XmlHelper.WriteAttribute(sw, "typeface", this.typeface, true);515sw.Write("/>");516}517
518[XmlAttribute]519public string script520{521get522{523return this.scriptField;524}525set526{527this.scriptField = value;528}529}530
531[XmlAttribute]532public string typeface533{534get535{536return this.typefaceField;537}538set539{540this.typefaceField = value;541}542}543}544
545
546[Serializable]547[System.ComponentModel.DesignerCategoryAttribute("code")]548[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]549[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]550public class CT_CustomColorList551{552
553private List<CT_CustomColor> custClrField;554
555public CT_CustomColorList()556{557this.custClrField = new List<CT_CustomColor>();558}559
560[XmlElement("custClr", Order = 0)]561public List<CT_CustomColor> custClr562{563get564{565return this.custClrField;566}567set568{569this.custClrField = value;570}571}572}573
574
575[Serializable]576[System.ComponentModel.DesignerCategoryAttribute("code")]577[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]578[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]579public class CT_FontCollection580{581
582private CT_TextFont latinField;583
584private CT_TextFont eaField;585
586private CT_TextFont csField;587
588private List<CT_SupplementalFont> fontField;589
590private CT_OfficeArtExtensionList extLstField;591public static CT_FontCollection Parse(XmlNode node, XmlNamespaceManager namespaceManager)592{593if (node == null)594return null;595CT_FontCollection ctObj = new CT_FontCollection();596ctObj.font = new List<CT_SupplementalFont>();597foreach (XmlNode childNode in node.ChildNodes)598{599if (childNode.LocalName == "latin")600ctObj.latin = CT_TextFont.Parse(childNode, namespaceManager);601else if (childNode.LocalName == "ea")602ctObj.ea = CT_TextFont.Parse(childNode, namespaceManager);603else if (childNode.LocalName == "cs")604ctObj.cs = CT_TextFont.Parse(childNode, namespaceManager);605else if (childNode.LocalName == "extLst")606ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);607else if (childNode.LocalName == "font")608ctObj.font.Add(CT_SupplementalFont.Parse(childNode, namespaceManager));609}610return ctObj;611}612
613
614
615internal void Write(StreamWriter sw, string nodeName)616{617sw.Write(string.Format("<a:{0}", nodeName));618sw.Write(">");619if (this.latin != null)620this.latin.Write(sw, "latin");621if (this.ea != null)622this.ea.Write(sw, "ea");623if (this.cs != null)624this.cs.Write(sw, "cs");625if (this.extLst != null)626this.extLst.Write(sw, "extLst");627if (this.font != null)628{629foreach (CT_SupplementalFont x in this.font)630{631x.Write(sw, "font");632}633}634sw.Write(string.Format("</a:{0}>", nodeName));635}636
637public CT_FontCollection()638{639//this.extLstField = new CT_OfficeArtExtensionList();640//this.fontField = new List<CT_SupplementalFont>();641//this.csField = new CT_TextFont();642//this.eaField = new CT_TextFont();643//this.latinField = new CT_TextFont();644}645
646[XmlElement(Order = 0)]647public CT_TextFont latin648{649get650{651return this.latinField;652}653set654{655this.latinField = value;656}657}658
659[XmlElement(Order = 1)]660public CT_TextFont ea661{662get663{664return this.eaField;665}666set667{668this.eaField = value;669}670}671
672[XmlElement(Order = 2)]673public CT_TextFont cs674{675get676{677return this.csField;678}679set680{681this.csField = value;682}683}684
685[XmlElement("font", Order = 3)]686public List<CT_SupplementalFont> font687{688get689{690return this.fontField;691}692set693{694this.fontField = value;695}696}697
698[XmlElement(Order = 4)]699public CT_OfficeArtExtensionList extLst700{701get702{703return this.extLstField;704}705set706{707this.extLstField = value;708}709}710}711
712
713
714[Serializable]715[System.ComponentModel.DesignerCategoryAttribute("code")]716[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]717[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]718public class CT_EffectStyleItem719{720
721private CT_EffectList effectLstField;722
723private CT_EffectContainer effectDagField;724
725private CT_Scene3D scene3dField;726
727private CT_Shape3D sp3dField;728public static CT_EffectStyleItem Parse(XmlNode node, XmlNamespaceManager namespaceManager)729{730if (node == null)731return null;732CT_EffectStyleItem ctObj = new CT_EffectStyleItem();733foreach (XmlNode childNode in node.ChildNodes)734{735if (childNode.LocalName == "effectLst")736ctObj.effectLst = CT_EffectList.Parse(childNode, namespaceManager);737else if (childNode.LocalName == "effectDag")738ctObj.effectDag = CT_EffectContainer.Parse(childNode, namespaceManager);739else if (childNode.LocalName == "scene3d")740ctObj.scene3d = CT_Scene3D.Parse(childNode, namespaceManager);741else if (childNode.LocalName == "sp3d")742ctObj.sp3d = CT_Shape3D.Parse(childNode, namespaceManager);743}744return ctObj;745}746
747
748
749internal void Write(StreamWriter sw, string nodeName)750{751sw.Write(string.Format("<a:{0}", nodeName));752sw.Write(">");753if (this.effectLst != null)754this.effectLst.Write(sw, "effectLst");755if (this.effectDag != null)756this.effectDag.Write(sw, "effectDag");757if (this.scene3d != null)758this.scene3d.Write(sw, "scene3d");759if (this.sp3d != null)760this.sp3d.Write(sw, "sp3d");761sw.Write(string.Format("</a:{0}>", nodeName));762}763
764public CT_EffectStyleItem()765{766//this.sp3dField = new CT_Shape3D();767//this.scene3dField = new CT_Scene3D();768//this.effectDagField = new CT_EffectContainer();769//this.effectLstField = new CT_EffectList();770}771
772[XmlElement(Order = 0)]773public CT_EffectList effectLst774{775get776{777return this.effectLstField;778}779set780{781this.effectLstField = value;782}783}784
785[XmlElement(Order = 1)]786public CT_EffectContainer effectDag787{788get789{790return this.effectDagField;791}792set793{794this.effectDagField = value;795}796}797
798[XmlElement(Order = 2)]799public CT_Scene3D scene3d800{801get802{803return this.scene3dField;804}805set806{807this.scene3dField = value;808}809}810
811[XmlElement(Order = 3)]812public CT_Shape3D sp3d813{814get815{816return this.sp3dField;817}818set819{820this.sp3dField = value;821}822}823}824
825
826[Serializable]827[System.ComponentModel.DesignerCategoryAttribute("code")]828[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]829[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]830public class CT_FontScheme831{832
833private CT_FontCollection majorFontField;834
835private CT_FontCollection minorFontField;836
837private CT_OfficeArtExtensionList extLstField;838
839private string nameField;840public static CT_FontScheme Parse(XmlNode node, XmlNamespaceManager namespaceManager)841{842if (node == null)843return null;844CT_FontScheme ctObj = new CT_FontScheme();845ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);846foreach (XmlNode childNode in node.ChildNodes)847{848if (childNode.LocalName == "majorFont")849ctObj.majorFont = CT_FontCollection.Parse(childNode, namespaceManager);850else if (childNode.LocalName == "minorFont")851ctObj.minorFont = CT_FontCollection.Parse(childNode, namespaceManager);852else if (childNode.LocalName == "extLst")853ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);854}855return ctObj;856}857
858
859
860internal void Write(StreamWriter sw, string nodeName)861{862sw.Write(string.Format("<a:{0}", nodeName));863XmlHelper.WriteAttribute(sw, "name", this.name);864sw.Write(">");865if (this.majorFont != null)866this.majorFont.Write(sw, "majorFont");867if (this.minorFont != null)868this.minorFont.Write(sw, "minorFont");869if (this.extLst != null)870this.extLst.Write(sw, "extLst");871sw.Write(string.Format("</a:{0}>", nodeName));872}873
874public CT_FontScheme()875{876//this.extLstField = new CT_OfficeArtExtensionList();877//this.minorFontField = new CT_FontCollection();878//this.majorFontField = new CT_FontCollection();879}880
881[XmlElement(Order = 0)]882public CT_FontCollection majorFont883{884get885{886return this.majorFontField;887}888set889{890this.majorFontField = value;891}892}893
894[XmlElement(Order = 1)]895public CT_FontCollection minorFont896{897get898{899return this.minorFontField;900}901set902{903this.minorFontField = value;904}905}906
907[XmlElement(Order = 2)]908public CT_OfficeArtExtensionList extLst909{910get911{912return this.extLstField;913}914set915{916this.extLstField = value;917}918}919
920[XmlAttribute]921public string name922{923get924{925return this.nameField;926}927set928{929this.nameField = value;930}931}932}933
934
935[Serializable]936[System.ComponentModel.DesignerCategoryAttribute("code")]937[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]938[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]939public class CT_FillStyleList940{941
942public CT_FillStyleList()943{944}945public static CT_FillStyleList Parse(XmlNode node, XmlNamespaceManager namespaceManager)946{947if (node == null)948return null;949CT_FillStyleList ctObj = new CT_FillStyleList();950ctObj.blipFill = new List<CT_BlipFillProperties>();951ctObj.gradFill = new List<CT_GradientFillProperties>();952ctObj.grpFill = new List<CT_GroupFillProperties>();953ctObj.noFill = new List<CT_NoFillProperties>();954ctObj.pattFill = new List<CT_PatternFillProperties>();955ctObj.solidFill = new List<CT_SolidColorFillProperties>();956foreach (XmlNode childNode in node.ChildNodes)957{958if (childNode.LocalName == "solidFill")959ctObj.solidFill.Add(CT_SolidColorFillProperties.Parse(childNode, namespaceManager));960else if (childNode.LocalName == "blipFill")961ctObj.blipFill.Add(CT_BlipFillProperties.Parse(childNode, namespaceManager));962else if (childNode.LocalName == "gradFill")963ctObj.gradFill.Add(CT_GradientFillProperties.Parse(childNode, namespaceManager));964else if (childNode.LocalName == "grpFill")965ctObj.grpFill.Add(new CT_GroupFillProperties());966else if (childNode.LocalName == "noFill")967ctObj.noFill.Add(new CT_NoFillProperties());968else if (childNode.LocalName == "pattFill")969ctObj.pattFill.Add(CT_PatternFillProperties.Parse(childNode, namespaceManager));970}971return ctObj;972}973
974
975
976internal void Write(StreamWriter sw, string nodeName)977{978sw.Write(string.Format("<a:{0}", nodeName));979sw.Write(">");980if (this.blipFill != null)981{982foreach (CT_BlipFillProperties x in this.blipFill)983{984x.Write(sw, "a:blipFill");985}986}987if (this.solidFill != null)988{989foreach (CT_SolidColorFillProperties x in this.solidFill)990{991x.Write(sw, "solidFill");992}993}994if (this.gradFill != null)995{996foreach (CT_GradientFillProperties x in this.gradFill)997{998x.Write(sw, "gradFill");999}1000}1001if (this.grpFill != null)1002{1003foreach (CT_GroupFillProperties x in this.grpFill)1004{1005sw.Write("<a:grpFill/>");1006}1007}1008if (this.noFill != null)1009{1010foreach (CT_NoFillProperties x in this.noFill)1011{1012sw.Write("<a:noFill/>");1013}1014}1015if (this.pattFill != null)1016{1017foreach (CT_PatternFillProperties x in this.pattFill)1018{1019x.Write(sw, "pattFill");1020}1021}1022sw.Write(string.Format("</a:{0}>", nodeName));1023}1024
1025
1026
1027
1028List<CT_BlipFillProperties> blipFillField;1029public List<CT_BlipFillProperties> blipFill1030{1031get1032{1033return blipFillField;1034}1035set1036{1037blipFillField = value;1038}1039}1040List<CT_GradientFillProperties> gradFillField;1041public List<CT_GradientFillProperties> gradFill1042{1043get1044{1045return gradFillField;1046}1047set1048{1049gradFillField = value;1050}1051}1052List<CT_GroupFillProperties> grpFillField;1053public List<CT_GroupFillProperties> grpFill1054{1055get1056{1057return grpFillField;1058}1059set1060{1061grpFillField = value;1062}1063}1064List<CT_NoFillProperties> noFillField;1065public List<CT_NoFillProperties> noFill1066{1067get1068{1069return noFillField;1070}1071set1072{1073noFillField = value;1074}1075}1076List<CT_PatternFillProperties> pattFillField;1077public List<CT_PatternFillProperties> pattFill1078{1079get1080{1081return pattFillField;1082}1083set1084{1085pattFillField = value;1086}1087}1088List<CT_SolidColorFillProperties> solidFillField;1089public List<CT_SolidColorFillProperties> solidFill1090{1091get1092{1093return solidFillField;1094}1095set1096{1097solidFillField = value;1098}1099}1100}1101
1102
1103[Serializable]1104[System.ComponentModel.DesignerCategoryAttribute("code")]1105[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1106[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1107public class CT_LineStyleList1108{1109
1110private List<CT_LineProperties> lnField;1111
1112public CT_LineStyleList()1113{1114this.lnField = new List<CT_LineProperties>();1115}1116public static CT_LineStyleList Parse(XmlNode node, XmlNamespaceManager namespaceManager)1117{1118if (node == null)1119return null;1120CT_LineStyleList ctObj = new CT_LineStyleList();1121ctObj.ln = new List<CT_LineProperties>();1122foreach (XmlNode childNode in node.ChildNodes)1123{1124ctObj.ln.Add(CT_LineProperties.Parse(childNode, namespaceManager));1125}1126return ctObj;1127}1128
1129[XmlElement("ln", Order = 0)]1130public List<CT_LineProperties> ln1131{1132get1133{1134return this.lnField;1135}1136set1137{1138this.lnField = value;1139}1140}1141internal void Write(StreamWriter sw, string nodeName)1142{1143sw.Write(string.Format("<a:{0}>", nodeName));1144if (this.ln.Count>0)1145{1146foreach (CT_LineProperties x in this.ln)1147{1148x.Write(sw, "ln");1149}1150}1151sw.Write(string.Format("</a:{0}>", nodeName));1152}1153}1154
1155
1156[Serializable]1157[System.ComponentModel.DesignerCategoryAttribute("code")]1158[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1159[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1160public class CT_EffectStyleList1161{1162
1163private List<CT_EffectStyleItem> effectStyleField;1164
1165public CT_EffectStyleList()1166{1167this.effectStyleField = new List<CT_EffectStyleItem>();1168}1169
1170[XmlElement("effectStyle", Order = 0)]1171public List<CT_EffectStyleItem> effectStyle1172{1173get1174{1175return this.effectStyleField;1176}1177set1178{1179this.effectStyleField = value;1180}1181}1182
1183public static CT_EffectStyleList Parse(XmlNode node, XmlNamespaceManager namespaceManager)1184{1185if (node == null)1186return null;1187CT_EffectStyleList ctObj = new CT_EffectStyleList();1188ctObj.effectStyle = new List<CT_EffectStyleItem>();1189foreach (XmlNode childNode in node.ChildNodes)1190{1191ctObj.effectStyle.Add(CT_EffectStyleItem.Parse(childNode, namespaceManager));1192}1193return ctObj;1194}1195internal void Write(StreamWriter sw, string nodeName)1196{1197sw.Write(string.Format("<a:{0}>", nodeName));1198if (this.effectStyle.Count > 0)1199{1200foreach (CT_EffectStyleItem x in this.effectStyle)1201{1202x.Write(sw, "effectStyle");1203}1204}1205sw.Write(string.Format("</a:{0}>", nodeName));1206}1207}1208
1209
1210[Serializable]1211[System.ComponentModel.DesignerCategoryAttribute("code")]1212[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1213[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1214public class CT_BackgroundFillStyleList1215{1216public static CT_BackgroundFillStyleList Parse(XmlNode node, XmlNamespaceManager namespaceManager)1217{1218if (node == null)1219return null;1220CT_BackgroundFillStyleList ctObj = new CT_BackgroundFillStyleList();1221ctObj.blipFill = new List<CT_BlipFillProperties>();1222ctObj.gradFill = new List<CT_GradientFillProperties>();1223ctObj.grpFill = new List<CT_GroupFillProperties>();1224ctObj.noFill = new List<CT_NoFillProperties>();1225ctObj.pattFill = new List<CT_PatternFillProperties>();1226ctObj.solidFill = new List<CT_SolidColorFillProperties>();1227foreach (XmlNode childNode in node.ChildNodes)1228{1229if (childNode.LocalName == "blipFill")1230ctObj.blipFill.Add(CT_BlipFillProperties.Parse(childNode, namespaceManager));1231else if (childNode.LocalName == "gradFill")1232ctObj.gradFill.Add(CT_GradientFillProperties.Parse(childNode, namespaceManager));1233else if (childNode.LocalName == "grpFill")1234ctObj.grpFill.Add(new CT_GroupFillProperties());1235else if (childNode.LocalName == "noFill")1236ctObj.noFill.Add(new CT_NoFillProperties());1237else if (childNode.LocalName == "pattFill")1238ctObj.pattFill.Add(CT_PatternFillProperties.Parse(childNode, namespaceManager));1239else if (childNode.LocalName == "solidFill")1240ctObj.solidFill.Add(CT_SolidColorFillProperties.Parse(childNode, namespaceManager));1241}1242return ctObj;1243}1244
1245
1246
1247internal void Write(StreamWriter sw, string nodeName)1248{1249sw.Write(string.Format("<a:{0}", nodeName));1250sw.Write(">");1251if (this.solidFill != null)1252{1253foreach (CT_SolidColorFillProperties x in this.solidFill)1254{1255x.Write(sw, "solidFill");1256}1257}1258if (this.gradFill != null)1259{1260foreach (CT_GradientFillProperties x in this.gradFill)1261{1262x.Write(sw, "gradFill");1263}1264}1265if (this.blipFill != null)1266{1267foreach (CT_BlipFillProperties x in this.blipFill)1268{1269x.Write(sw, "a:blipFill");1270}1271}1272if (this.grpFill != null)1273{1274foreach (CT_GroupFillProperties x in this.grpFill)1275{1276sw.Write("<a:grpFill/>");1277}1278}1279if (this.noFill != null)1280{1281foreach (CT_NoFillProperties x in this.noFill)1282{1283sw.Write("<noFill/>");1284}1285}1286if (this.pattFill != null)1287{1288foreach (CT_PatternFillProperties x in this.pattFill)1289{1290x.Write(sw, "pattFill");1291}1292}1293sw.Write(string.Format("</a:{0}>", nodeName));1294}1295
1296
1297
1298public CT_BackgroundFillStyleList()1299{1300//this.itemsField = new List<object>();1301}1302List<CT_BlipFillProperties> blipFillField;1303public List<CT_BlipFillProperties> blipFill1304{1305get1306{1307return blipFillField;1308}1309set {1310blipFillField = value;1311}1312}1313List<CT_GradientFillProperties> gradFillField;1314public List<CT_GradientFillProperties> gradFill1315{1316get1317{1318return gradFillField;1319}1320set1321{1322gradFillField = value;1323}1324}1325List<CT_GroupFillProperties> grpFillField;1326public List<CT_GroupFillProperties> grpFill1327{1328get1329{1330return grpFillField;1331}1332set1333{1334grpFillField = value;1335}1336}1337List<CT_NoFillProperties> noFillField;1338public List<CT_NoFillProperties> noFill1339{1340get1341{1342return noFillField;1343}1344set1345{1346noFillField = value;1347}1348}1349List<CT_PatternFillProperties> pattFillField;1350public List<CT_PatternFillProperties> pattFill1351{1352get1353{1354return pattFillField;1355}1356set1357{1358pattFillField = value;1359}1360}1361List<CT_SolidColorFillProperties> solidFillField;1362public List<CT_SolidColorFillProperties> solidFill1363{1364get1365{1366return solidFillField;1367}1368set1369{1370solidFillField = value;1371}1372}1373}1374
1375
1376[Serializable]1377[System.ComponentModel.DesignerCategoryAttribute("code")]1378[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1379[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1380public class CT_StyleMatrix1381{1382
1383private CT_FillStyleList fillStyleLstField;1384
1385private CT_LineStyleList lnStyleLstField;1386
1387private CT_EffectStyleList effectStyleLstField;1388
1389private CT_BackgroundFillStyleList bgFillStyleLstField;1390
1391private string nameField;1392public static CT_StyleMatrix Parse(XmlNode node, XmlNamespaceManager namespaceManager)1393{1394if (node == null)1395return null;1396CT_StyleMatrix ctObj = new CT_StyleMatrix();1397ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);1398
1399foreach (XmlNode childNode in node.ChildNodes)1400{1401if (childNode.LocalName == "fillStyleLst")1402ctObj.fillStyleLst = CT_FillStyleList.Parse(childNode, namespaceManager);1403else if (childNode.LocalName == "bgFillStyleLst")1404ctObj.bgFillStyleLst = CT_BackgroundFillStyleList.Parse(childNode, namespaceManager);1405else if (childNode.LocalName == "lnStyleLst")1406{1407ctObj.lnStyleLst = CT_LineStyleList.Parse(childNode, namespaceManager);1408}1409else if (childNode.LocalName == "effectStyleLst")1410{1411ctObj.effectStyleLst= CT_EffectStyleList.Parse(childNode, namespaceManager);1412}1413}1414return ctObj;1415}1416
1417
1418
1419internal void Write(StreamWriter sw, string nodeName)1420{1421sw.Write(string.Format("<a:{0}", nodeName));1422XmlHelper.WriteAttribute(sw, "name", this.name);1423sw.Write(">");1424if (this.fillStyleLst != null)1425this.fillStyleLst.Write(sw, "fillStyleLst");1426if (this.lnStyleLst != null)1427{1428this.lnStyleLst.Write(sw, "lnStyleLst");1429}1430if (this.effectStyleLst != null)1431{1432this.effectStyleLst.Write(sw, "effectStyleLst");1433}1434if (this.bgFillStyleLst != null)1435this.bgFillStyleLst.Write(sw, "bgFillStyleLst");1436sw.Write(string.Format("</a:{0}>", nodeName));1437}1438
1439public CT_StyleMatrix()1440{1441this.nameField = "";1442}1443
1444[XmlElement(Order = 0)]1445public CT_FillStyleList fillStyleLst1446{1447get1448{1449return this.fillStyleLstField;1450}1451set1452{1453this.fillStyleLstField = value;1454}1455}1456
1457[XmlArray(Order = 1)]1458[XmlArrayItem("ln", IsNullable = false)]1459public CT_LineStyleList lnStyleLst1460{1461get1462{1463return this.lnStyleLstField;1464}1465set1466{1467this.lnStyleLstField = value;1468}1469}1470
1471[XmlArray(Order = 2)]1472[XmlArrayItem("effectStyle", IsNullable = false)]1473public CT_EffectStyleList effectStyleLst1474{1475get1476{1477return this.effectStyleLstField;1478}1479set1480{1481this.effectStyleLstField = value;1482}1483}1484
1485[XmlElement(Order = 3)]1486public CT_BackgroundFillStyleList bgFillStyleLst1487{1488get1489{1490return this.bgFillStyleLstField;1491}1492set1493{1494this.bgFillStyleLstField = value;1495}1496}1497
1498[XmlAttribute]1499[DefaultValue("")]1500public string name1501{1502get1503{1504return this.nameField;1505}1506set1507{1508this.nameField = value;1509}1510}1511}1512
1513
1514[Serializable]1515[System.ComponentModel.DesignerCategoryAttribute("code")]1516[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1517[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]1518public class CT_BaseStyles1519{1520
1521private CT_ColorScheme clrSchemeField;1522
1523private CT_FontScheme fontSchemeField;1524
1525private CT_StyleMatrix fmtSchemeField;1526
1527private CT_OfficeArtExtensionList extLstField;1528public static CT_BaseStyles Parse(XmlNode node, XmlNamespaceManager namespaceManager)1529{1530if (node == null)1531return null;1532CT_BaseStyles ctObj = new CT_BaseStyles();1533foreach (XmlNode childNode in node.ChildNodes)1534{1535if (childNode.LocalName == "clrScheme")1536ctObj.clrScheme = CT_ColorScheme.Parse(childNode, namespaceManager);1537else if (childNode.LocalName == "fontScheme")1538ctObj.fontScheme = CT_FontScheme.Parse(childNode, namespaceManager);1539else if (childNode.LocalName == "fmtScheme")1540ctObj.fmtScheme = CT_StyleMatrix.Parse(childNode, namespaceManager);1541else if (childNode.LocalName == "extLst")1542ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);1543}1544return ctObj;1545}1546
1547
1548
1549internal void Write(StreamWriter sw, string nodeName)1550{1551sw.Write(string.Format("<a:{0}", nodeName));1552sw.Write(">");1553if (this.clrScheme != null)1554this.clrScheme.Write(sw, "clrScheme");1555if (this.fontScheme != null)1556this.fontScheme.Write(sw, "fontScheme");1557if (this.fmtScheme != null)1558this.fmtScheme.Write(sw, "fmtScheme");1559if (this.extLst != null)1560this.extLst.Write(sw, "extLst");1561sw.Write(string.Format("</a:{0}>", nodeName));1562}1563
1564public CT_BaseStyles()1565{1566//this.extLstField = new CT_OfficeArtExtensionList();1567//this.fmtSchemeField = new CT_StyleMatrix();1568//this.fontSchemeField = new CT_FontScheme();1569//this.clrSchemeField = new CT_ColorScheme();1570}1571
1572[XmlElement(Order = 0)]1573public CT_ColorScheme clrScheme1574{1575get1576{1577return this.clrSchemeField;1578}1579set1580{1581this.clrSchemeField = value;1582}1583}1584
1585[XmlElement(Order = 1)]1586public CT_FontScheme fontScheme1587{1588get1589{1590return this.fontSchemeField;1591}1592set1593{1594this.fontSchemeField = value;1595}1596}1597
1598[XmlElement(Order = 2)]1599public CT_StyleMatrix fmtScheme1600{1601get1602{1603return this.fmtSchemeField;1604}1605set1606{1607this.fmtSchemeField = value;1608}1609}1610
1611[XmlElement(Order = 3)]1612public CT_OfficeArtExtensionList extLst1613{1614get1615{1616return this.extLstField;1617}1618set1619{1620this.extLstField = value;1621}1622}1623}1624
1625
1626[Serializable]1627[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1628public enum ST_FontCollectionIndex1629{1630
1631
1632major,1633
1634
1635minor,1636
1637
1638none,1639}1640[Serializable]1641[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]1642public enum ST_ColorSchemeIndex1643{1644
1645
1646dk1,1647
1648
1649lt1,1650
1651
1652dk2,1653
1654
1655lt2,1656
1657
1658accent1,1659
1660
1661accent2,1662
1663
1664accent3,1665
1666
1667accent4,1668
1669
1670accent5,1671
1672
1673accent6,1674
1675
1676hlink,1677
1678
1679folHlink,1680}1681}
1682