npoi
490 строк · 13.6 Кб
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>True</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 System.IO;18using NPOI.OpenXml4Net.Util;19
20
21
22
23[Serializable]24[DebuggerStepThrough]25[System.ComponentModel.DesignerCategoryAttribute("code")]26[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]27[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]28public class CT_TextBulletColorFollowText29{30}31
32
33[Serializable]34[DebuggerStepThrough]35[System.ComponentModel.DesignerCategoryAttribute("code")]36[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]37[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]38public class CT_TextBulletSizeFollowText39{40}41
42
43[Serializable]44[DebuggerStepThrough]45[System.ComponentModel.DesignerCategoryAttribute("code")]46[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]47[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]48public class CT_TextBulletSizePercent49{50public static CT_TextBulletSizePercent Parse(XmlNode node, XmlNamespaceManager namespaceManager)51{52if (node == null)53return null;54CT_TextBulletSizePercent ctObj = new CT_TextBulletSizePercent();55ctObj.val = XmlHelper.ReadInt(node.Attributes["val"]);56return ctObj;57}58
59
60
61internal void Write(StreamWriter sw, string nodeName)62{63sw.Write(string.Format("<a:{0}", nodeName));64XmlHelper.WriteAttribute(sw, "val", this.val);65sw.Write(">");66sw.Write(string.Format("</a:{0}>", nodeName));67}68
69private int valField;70
71private bool valFieldSpecified;72
73[XmlAttribute]74public int val75{76get77{78return this.valField;79}80set81{82this.valField = value;83this.valFieldSpecified = true;84}85}86
87[XmlIgnore]88public bool valSpecified89{90get91{92return this.valFieldSpecified;93}94set95{96this.valFieldSpecified = value;97}98}99}100
101
102[Serializable]103[DebuggerStepThrough]104[System.ComponentModel.DesignerCategoryAttribute("code")]105[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]106[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]107public class CT_TextBulletSizePoint108{109public static CT_TextBulletSizePoint Parse(XmlNode node, XmlNamespaceManager namespaceManager)110{111if (node == null)112return null;113CT_TextBulletSizePoint ctObj = new CT_TextBulletSizePoint();114ctObj.val = XmlHelper.ReadInt(node.Attributes["val"]);115return ctObj;116}117
118
119
120internal void Write(StreamWriter sw, string nodeName)121{122sw.Write(string.Format("<a:{0}", nodeName));123XmlHelper.WriteAttribute(sw, "val", this.val);124sw.Write(">");125sw.Write(string.Format("</a:{0}>", nodeName));126}127
128private int valField;129
130private bool valFieldSpecified;131
132[XmlAttribute]133public int val134{135get136{137return this.valField;138}139set140{141this.valField = value;142this.valFieldSpecified = true;143}144}145
146[XmlIgnore]147public bool valSpecified148{149get150{151return this.valFieldSpecified;152}153set154{155this.valFieldSpecified = value;156}157}158}159
160
161[Serializable]162[DebuggerStepThrough]163[System.ComponentModel.DesignerCategoryAttribute("code")]164[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]165[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]166public class CT_TextBulletTypefaceFollowText167{168}169
170
171[Serializable]172[DebuggerStepThrough]173[System.ComponentModel.DesignerCategoryAttribute("code")]174[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]175[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]176public class CT_TextAutonumberBullet177{178public static CT_TextAutonumberBullet Parse(XmlNode node, XmlNamespaceManager namespaceManager)179{180if (node == null)181return null;182CT_TextAutonumberBullet ctObj = new CT_TextAutonumberBullet();183if (node.Attributes["type"] != null)184ctObj.type = (ST_TextAutonumberScheme)Enum.Parse(typeof(ST_TextAutonumberScheme), node.Attributes["type"].Value);185ctObj.startAt = XmlHelper.ReadInt(node.Attributes["startAt"]);186return ctObj;187}188
189
190
191internal void Write(StreamWriter sw, string nodeName)192{193sw.Write(string.Format("<a:{0}", nodeName));194XmlHelper.WriteAttribute(sw, "type", this.type.ToString());195XmlHelper.WriteAttribute(sw, "startAt", this.startAt);196sw.Write(">");197sw.Write(string.Format("</a:{0}>", nodeName));198}199
200private ST_TextAutonumberScheme typeField;201
202private bool typeFieldSpecified;203
204private int startAtField;205
206private bool startAtFieldSpecified;207
208public CT_TextAutonumberBullet()209{210this.startAtField = 1;211}212
213[XmlAttribute]214public ST_TextAutonumberScheme type215{216get217{218return this.typeField;219}220set221{222this.typeField = value;223}224}225[XmlIgnore]226public bool typeSpecified227{228get { return this.typeFieldSpecified; }229set { this.typeFieldSpecified = value; }230}231
232[XmlAttribute]233[DefaultValue(1)]234public int startAt235{236get237{238return this.startAtField;239}240set241{242this.startAtField = value;243}244}245[XmlIgnore]246public bool startAtSpecified247{248get { return this.startAtFieldSpecified; }249set { this.startAtFieldSpecified = value; }250}251public bool IsSetStartAt()252{253return this.startAtField >= 1;254}255}256
257
258[Serializable]259[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]260public enum ST_TextAutonumberScheme261{262
263/// <remarks/>264alphaLcParenBoth,265
266/// <remarks/>267alphaUcParenBoth,268
269/// <remarks/>270alphaLcParenR,271
272/// <remarks/>273alphaUcParenR,274
275/// <remarks/>276alphaLcPeriod,277
278/// <remarks/>279alphaUcPeriod,280
281/// <remarks/>282arabicParenBoth,283
284/// <remarks/>285arabicParenR,286
287/// <remarks/>288arabicPeriod,289
290/// <remarks/>291arabicPlain,292
293/// <remarks/>294romanLcParenBoth,295
296/// <remarks/>297romanUcParenBoth,298
299/// <remarks/>300romanLcParenR,301
302/// <remarks/>303romanUcParenR,304
305/// <remarks/>306romanLcPeriod,307
308/// <remarks/>309romanUcPeriod,310
311/// <remarks/>312circleNumDbPlain,313
314/// <remarks/>315circleNumWdBlackPlain,316
317/// <remarks/>318circleNumWdWhitePlain,319
320/// <remarks/>321arabicDbPeriod,322
323/// <remarks/>324arabicDbPlain,325
326/// <remarks/>327ea1ChsPeriod,328
329/// <remarks/>330ea1ChsPlain,331
332/// <remarks/>333ea1ChtPeriod,334
335/// <remarks/>336ea1ChtPlain,337
338/// <remarks/>339ea1JpnChsDbPeriod,340
341/// <remarks/>342ea1JpnKorPlain,343
344/// <remarks/>345ea1JpnKorPeriod,346
347/// <remarks/>348arabic1Minus,349
350/// <remarks/>351arabic2Minus,352
353/// <remarks/>354hebrew2Minus,355
356/// <remarks/>357thaiAlphaPeriod,358
359/// <remarks/>360thaiAlphaParenR,361
362/// <remarks/>363thaiAlphaParenBoth,364
365/// <remarks/>366thaiNumPeriod,367
368/// <remarks/>369thaiNumParenR,370
371/// <remarks/>372thaiNumParenBoth,373
374/// <remarks/>375hindiAlphaPeriod,376
377/// <remarks/>378hindiNumPeriod,379
380/// <remarks/>381hindiNumParenR,382
383/// <remarks/>384hindiAlpha1Period,385}386
387
388[Serializable]389[DebuggerStepThrough]390[System.ComponentModel.DesignerCategoryAttribute("code")]391[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]392[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]393public class CT_TextCharBullet394{395public static CT_TextCharBullet Parse(XmlNode node, XmlNamespaceManager namespaceManager)396{397if(node==null)398return null;399CT_TextCharBullet ctObj = new CT_TextCharBullet();400ctObj.@char = XmlHelper.ReadString(node.Attributes["char"]);401return ctObj;402}403
404
405
406internal void Write(StreamWriter sw, string nodeName)407{408sw.Write(string.Format("<a:{0}", nodeName));409XmlHelper.WriteAttribute(sw, "char", this.@char);410sw.Write(">");411sw.Write(string.Format("</a:{0}>", nodeName));412}413
414private string charField;415
416[XmlAttribute]417public string @char418{419get420{421return this.charField;422}423set424{425this.charField = value;426}427}428}429
430
431[Serializable]432[DebuggerStepThrough]433[System.ComponentModel.DesignerCategoryAttribute("code")]434[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]435[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]436public class CT_TextBlipBullet437{438public static CT_TextBlipBullet Parse(XmlNode node, XmlNamespaceManager namespaceManager)439{440if (node == null)441return null;442CT_TextBlipBullet ctObj = new CT_TextBlipBullet();443foreach (XmlNode childNode in node.ChildNodes)444{445if (childNode.LocalName == "blip")446ctObj.blip = CT_Blip.Parse(childNode, namespaceManager);447}448return ctObj;449}450
451internal void Write(StreamWriter sw, string nodeName)452{453sw.Write(string.Format("<a:{0}", nodeName));454sw.Write(">");455if (this.blip != null)456this.blip.Write(sw, "blip");457sw.Write(string.Format("</a:{0}>", nodeName));458}459
460private CT_Blip blipField;461
462public CT_TextBlipBullet()463{464this.blipField = new CT_Blip();465}466
467[XmlElement(Order = 0)]468public CT_Blip blip469{470get471{472return this.blipField;473}474set475{476this.blipField = value;477}478}479}480
481
482[Serializable]483[DebuggerStepThrough]484[System.ComponentModel.DesignerCategoryAttribute("code")]485[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]486[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]487public class CT_TextNoBullet488{489}490}
491