npoi
2089 строк · 56.3 Кб
1using NPOI.OpenXml4Net.Util;2using System;3using System.Collections.Generic;4using System.IO;5using System.Xml;6using System.Xml.Serialization;7
8namespace NPOI.OpenXmlFormats.Wordprocessing9{
10[Serializable]11
12[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]13[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]14public class CT_Num15{16
17private CT_DecimalNumber abstractNumIdField;18
19private List<CT_NumLvl> lvlOverrideField;20
21private string numIdField;22
23public CT_Num()24{25//this.lvlOverrideField = new List<CT_NumLvl>();26//this.abstractNumIdField = new CT_DecimalNumber();27}28public static CT_Num Parse(XmlNode node, XmlNamespaceManager namespaceManager)29{30if (node == null)31return null;32CT_Num ctObj = new CT_Num();33ctObj.numId = XmlHelper.ReadString(node.Attributes["w:numId"]);34ctObj.lvlOverride = new List<CT_NumLvl>();35foreach (XmlNode childNode in node.ChildNodes)36{37if (childNode.LocalName == "abstractNumId")38ctObj.abstractNumId = CT_DecimalNumber.Parse(childNode, namespaceManager);39else if (childNode.LocalName == "lvlOverride")40ctObj.lvlOverride.Add(CT_NumLvl.Parse(childNode, namespaceManager));41}42return ctObj;43}44
45
46
47internal void Write(StreamWriter sw, string nodeName)48{49sw.Write(string.Format("<w:{0}", nodeName));50XmlHelper.WriteAttribute(sw, "w:numId", this.numId);51sw.Write(">");52if (this.abstractNumId != null)53this.abstractNumId.Write(sw, "abstractNumId");54if (this.lvlOverride != null)55{56foreach (CT_NumLvl x in this.lvlOverride)57{58x.Write(sw, "lvlOverride");59}60}61sw.WriteEndW(nodeName);62}63
64
65
66[XmlElement(Order = 0)]67public CT_DecimalNumber abstractNumId68{69get70{71return this.abstractNumIdField;72}73set74{75this.abstractNumIdField = value;76}77}78
79[XmlElement("lvlOverride", Order = 1)]80public List<CT_NumLvl> lvlOverride81{82get83{84return this.lvlOverrideField;85}86set87{88this.lvlOverrideField = value;89}90}91
92[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]93public string numId94{95get96{97return this.numIdField;98}99set100{101this.numIdField = value;102}103}104
105public CT_DecimalNumber AddNewAbstractNumId()106{107if (this.abstractNumIdField == null)108abstractNumIdField = new CT_DecimalNumber();109return abstractNumIdField;110}111
112public int SizeOfLvlOverrideArray()113{114return lvlOverrideField == null ? 0 : lvlOverrideField.Count;115}116
117public CT_NumLvl GetLvlOverrideArray(int i)118{119return lvlOverrideField == null ? null : lvlOverrideField[i];120}121}122
123
124[Serializable]125
126[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]127[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]128public class CT_NumLvl129{130
131private CT_DecimalNumber startOverrideField;132
133private CT_Lvl lvlField;134
135private string ilvlField;136
137public CT_NumLvl()138{139//this.lvlField = new CT_Lvl();140//this.startOverrideField = new CT_DecimalNumber();141}142public static CT_NumLvl Parse(XmlNode node, XmlNamespaceManager namespaceManager)143{144if (node == null)145return null;146CT_NumLvl ctObj = new CT_NumLvl();147ctObj.ilvl = XmlHelper.ReadString(node.Attributes["w:ilvl"]);148foreach (XmlNode childNode in node.ChildNodes)149{150if (childNode.LocalName == "startOverride")151ctObj.startOverride = CT_DecimalNumber.Parse(childNode, namespaceManager);152else if (childNode.LocalName == "lvl")153ctObj.lvl = CT_Lvl.Parse(childNode, namespaceManager);154}155return ctObj;156}157
158
159
160internal void Write(StreamWriter sw, string nodeName)161{162sw.Write(string.Format("<w:{0}", nodeName));163XmlHelper.WriteAttribute(sw, "w:ilvl", this.ilvl);164sw.Write(">");165if (this.startOverride != null)166this.startOverride.Write(sw, "startOverride");167if (this.lvl != null)168this.lvl.Write(sw, "lvl");169sw.WriteEndW(nodeName);170}171
172
173
174[XmlElement(Order = 0)]175public CT_DecimalNumber startOverride176{177get178{179return this.startOverrideField;180}181set182{183this.startOverrideField = value;184}185}186
187[XmlElement(Order = 1)]188public CT_Lvl lvl189{190get191{192return this.lvlField;193}194set195{196this.lvlField = value;197}198}199
200[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]201public string ilvl202{203get204{205return this.ilvlField;206}207set208{209this.ilvlField = value;210}211}212}213
214public class CT_Numbering215{216
217private List<CT_NumPicBullet> numPicBulletField;218
219private List<CT_AbstractNum> abstractNumField;220
221private List<CT_Num> numField;222
223private CT_DecimalNumber numIdMacAtCleanupField;224public static CT_Numbering Parse(XmlNode node, XmlNamespaceManager namespaceManager)225{226if (node == null)227return null;228CT_Numbering ctObj = new CT_Numbering();229ctObj.numPicBullet = new List<CT_NumPicBullet>();230ctObj.abstractNum = new List<CT_AbstractNum>();231ctObj.num = new List<CT_Num>();232foreach (XmlNode childNode in node.ChildNodes)233{234if (childNode.LocalName == "numIdMacAtCleanup")235ctObj.numIdMacAtCleanup = CT_DecimalNumber.Parse(childNode, namespaceManager);236else if (childNode.LocalName == "numPicBullet")237ctObj.numPicBullet.Add(CT_NumPicBullet.Parse(childNode, namespaceManager));238else if (childNode.LocalName == "abstractNum")239ctObj.abstractNum.Add(CT_AbstractNum.Parse(childNode, namespaceManager));240else if (childNode.LocalName == "num")241ctObj.num.Add(CT_Num.Parse(childNode, namespaceManager));242}243return ctObj;244}245
246
247
248internal void Write(StreamWriter sw)249{250sw.WriteLine("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");251sw.Write("<w:numbering xmlns:wpc=\"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas\" xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" ");252sw.Write("xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\" ");253sw.Write("xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:wp14=\"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing\" xmlns:wp=\"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing\" ");254sw.Write("xmlns:w10=\"urn:schemas-microsoft-com:office:word\" xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" ");255sw.Write("xmlns:wne=\"http://schemas.microsoft.com/office/word/2006/wordml\">");256if (this.numIdMacAtCleanup != null)257this.numIdMacAtCleanup.Write(sw, "numIdMacAtCleanup");258if (this.numPicBullet != null)259{260foreach (CT_NumPicBullet x in this.numPicBullet)261{262x.Write(sw, "numPicBullet");263}264}265if (this.abstractNum != null)266{267foreach (CT_AbstractNum x in this.abstractNum)268{269x.Write(sw, "abstractNum");270}271}272if (this.num != null)273{274foreach (CT_Num x in this.num)275{276x.Write(sw, "num");277}278}279sw.Write("</w:numbering>");280}281
282public CT_Numbering()283{284//this.numIdMacAtCleanupField = new CT_DecimalNumber();285//this.numField = new List<CT_Num>();286//this.abstractNumField = new List<CT_AbstractNum>();287//this.numPicBulletField = new List<CT_NumPicBullet>();288}289
290[XmlElement("numPicBullet", Order = 0)]291public List<CT_NumPicBullet> numPicBullet292{293get294{295return this.numPicBulletField;296}297set298{299this.numPicBulletField = value;300}301}302
303[XmlElement("abstractNum", Order = 1)]304public List<CT_AbstractNum> abstractNum305{306get307{308return this.abstractNumField;309}310set311{312this.abstractNumField = value;313}314}315
316[XmlElement("num", Order = 2)]317public List<CT_Num> num318{319get320{321return this.numField;322}323set324{325this.numField = value;326}327}328
329[XmlElement(Order = 3)]330public CT_DecimalNumber numIdMacAtCleanup331{332get333{334return this.numIdMacAtCleanupField;335}336set337{338this.numIdMacAtCleanupField = value;339}340}341
342public IList<CT_Num> GetNumList()343{344return numField;345}346
347public IList<CT_AbstractNum> GetAbstractNumList()348{349return abstractNumField;350}351
352public CT_Num AddNewNum()353{354CT_Num num = new CT_Num();355if (this.numField == null)356this.numField = new List<CT_Num>();357numField.Add(num);358return num;359}360
361public void SetNumArray(int pos, CT_Num ct_Num)362{363if (this.numField == null)364this.numField = new List<CT_Num>();365
366if (pos < 0 || pos >= numField.Count)367numField.Add(ct_Num);368numField[pos] = ct_Num;369}370
371public CT_AbstractNum AddNewAbstractNum()372{373CT_AbstractNum num = new CT_AbstractNum();374if (this.abstractNumField == null)375this.abstractNumField = new List<CT_AbstractNum>();376this.abstractNumField.Add(num);377return num;378}379
380public void SetAbstractNumArray(int pos, CT_AbstractNum cT_AbstractNum)381{382if (this.abstractNumField == null)383this.abstractNumField = new List<CT_AbstractNum>();384if (pos < 0 || pos >= abstractNumField.Count)385abstractNumField.Add(cT_AbstractNum);386abstractNumField[pos] = cT_AbstractNum;387}388
389public void RemoveAbstractNum(int p)390{391if (this.abstractNumField == null)392return;393abstractNumField.RemoveAt(p);394}395}396
397
398[Serializable]399
400[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]401[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]402public class CT_NumPicBullet403{404
405private CT_Picture pictField;406
407private string numPicBulletIdField;408
409public CT_NumPicBullet()410{411//this.pictField = new CT_Picture();412}413
414[XmlElement(Order = 0)]415public CT_Picture pict416{417get418{419return this.pictField;420}421set422{423this.pictField = value;424}425}426
427[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]428public string numPicBulletId429{430get431{432return this.numPicBulletIdField;433}434set435{436this.numPicBulletIdField = value;437}438}439public static CT_NumPicBullet Parse(XmlNode node, XmlNamespaceManager namespaceManager)440{441if (node == null)442return null;443CT_NumPicBullet ctObj = new CT_NumPicBullet();444ctObj.numPicBulletId = XmlHelper.ReadString(node.Attributes["w:numPicBulletId"]);445foreach (XmlNode childNode in node.ChildNodes)446{447if (childNode.LocalName == "pict")448ctObj.pict = CT_Picture.Parse(childNode, namespaceManager);449}450return ctObj;451}452
453
454
455internal void Write(StreamWriter sw, string nodeName)456{457sw.Write(string.Format("<w:{0}", nodeName));458XmlHelper.WriteAttribute(sw, "w:numPicBulletId", this.numPicBulletId);459sw.Write(">");460if (this.pict != null)461this.pict.Write(sw, "pict");462sw.WriteEndW(nodeName);463}464
465
466
467
468}469
470
471[Serializable]472
473[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]474[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]475public class CT_NumFmt476{477public static CT_NumFmt Parse(XmlNode node, XmlNamespaceManager namespaceManager)478{479if (node == null)480return null;481CT_NumFmt ctObj = new CT_NumFmt();482if (node.Attributes["w:val"] != null)483ctObj.val = (ST_NumberFormat)Enum.Parse(typeof(ST_NumberFormat), node.Attributes["w:val"].Value);484return ctObj;485}486
487
488
489internal void Write(StreamWriter sw, string nodeName)490{491sw.Write(string.Format("<w:{0}", nodeName));492XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());493sw.Write("/>");494}495
496
497private ST_NumberFormat valField;498
499[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]500public ST_NumberFormat val501{502get503{504return this.valField;505}506set507{508this.valField = value;509}510}511}512
513
514[Serializable]515[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]516public enum ST_NumberFormat517{518
519
520[XmlEnum("decimal")]521@decimal,522
523
524upperRoman,525
526
527lowerRoman,528
529
530upperLetter,531
532
533lowerLetter,534
535
536ordinal,537
538
539cardinalText,540
541
542ordinalText,543
544
545hex,546
547
548chicago,549
550
551ideographDigital,552
553
554japaneseCounting,555
556
557aiueo,558
559
560iroha,561
562
563decimalFullWidth,564
565
566decimalHalfWidth,567
568
569japaneseLegal,570
571
572japaneseDigitalTenThousand,573
574
575decimalEnclosedCircle,576
577
578decimalFullWidth2,579
580
581aiueoFullWidth,582
583
584irohaFullWidth,585
586
587decimalZero,588
589
590bullet,591
592
593ganada,594
595
596chosung,597
598
599decimalEnclosedFullstop,600
601
602decimalEnclosedParen,603
604
605decimalEnclosedCircleChinese,606
607
608ideographEnclosedCircle,609
610
611ideographTraditional,612
613
614ideographZodiac,615
616
617ideographZodiacTraditional,618
619
620taiwaneseCounting,621
622
623ideographLegalTraditional,624
625
626taiwaneseCountingThousand,627
628
629taiwaneseDigital,630
631
632chineseCounting,633
634
635chineseLegalSimplified,636
637
638chineseCountingThousand,639
640
641koreanDigital,642
643
644koreanCounting,645
646
647koreanLegal,648
649
650koreanDigital2,651
652
653vietnameseCounting,654
655
656russianLower,657
658
659russianUpper,660
661
662none,663
664
665numberInDash,666
667
668hebrew1,669
670
671hebrew2,672
673
674arabicAlpha,675
676
677arabicAbjad,678
679
680hindiVowels,681
682
683hindiConsonants,684
685
686hindiNumbers,687
688
689hindiCounting,690
691
692thaiLetters,693
694
695thaiNumbers,696
697
698thaiCounting,699}700
701
702[Serializable]703
704[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]705[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]706public class CT_NumRestart707{708public static CT_NumRestart Parse(XmlNode node, XmlNamespaceManager namespaceManager)709{710if (node == null)711return null;712CT_NumRestart ctObj = new CT_NumRestart();713if (node.Attributes["w:val"] != null)714ctObj.val = (ST_RestartNumber)Enum.Parse(typeof(ST_RestartNumber), node.Attributes["w:val"].Value);715return ctObj;716}717
718
719
720internal void Write(StreamWriter sw, string nodeName)721{722sw.Write(string.Format("<w:{0}", nodeName));723XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());724sw.Write(">");725sw.WriteEndW(nodeName);726}727
728private ST_RestartNumber valField;729
730[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]731public ST_RestartNumber val732{733get734{735return this.valField;736}737set738{739this.valField = value;740}741}742}743
744
745[Serializable]746[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]747public enum ST_RestartNumber748{749
750
751continuous,752
753
754eachSect,755
756
757eachPage,758}759[Serializable]760
761[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]762[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]763public class CT_NumPr764{765
766private CT_DecimalNumber ilvlField;767
768private CT_DecimalNumber numIdField;769
770private CT_TrackChangeNumbering numberingChangeField;771
772private CT_TrackChange insField;773
774public CT_NumPr()775{776//this.insField = new CT_TrackChange();777//this.numberingChangeField = new CT_TrackChangeNumbering();778//this.numIdField = new CT_DecimalNumber();779//this.ilvlField = new CT_DecimalNumber();780}781public static CT_NumPr Parse(XmlNode node, XmlNamespaceManager namespaceManager)782{783if (node == null)784return null;785CT_NumPr ctObj = new CT_NumPr();786foreach (XmlNode childNode in node.ChildNodes)787{788if (childNode.LocalName == "ilvl")789ctObj.ilvl = CT_DecimalNumber.Parse(childNode, namespaceManager);790else if (childNode.LocalName == "numId")791ctObj.numId = CT_DecimalNumber.Parse(childNode, namespaceManager);792else if (childNode.LocalName == "numberingChange")793ctObj.numberingChange = CT_TrackChangeNumbering.Parse(childNode, namespaceManager);794else if (childNode.LocalName == "ins")795ctObj.ins = CT_TrackChange.Parse(childNode, namespaceManager);796}797return ctObj;798}799
800
801
802internal void Write(StreamWriter sw, string nodeName)803{804sw.Write(string.Format("<w:{0}", nodeName));805sw.Write(">");806if (this.ilvl != null)807this.ilvl.Write(sw, "ilvl");808if (this.numId != null)809this.numId.Write(sw, "numId");810if (this.numberingChange != null)811this.numberingChange.Write(sw, "numberingChange");812if (this.ins != null)813this.ins.Write(sw, "ins");814sw.WriteEndW(nodeName);815}816
817public CT_DecimalNumber AddNewIlvl()818{819this.ilvlField = new CT_DecimalNumber();820return this.ilvlField;821}822
823[XmlElement(Order = 0)]824public CT_DecimalNumber ilvl825{826get827{828return this.ilvlField;829}830set831{832this.ilvlField = value;833}834}835
836[XmlElement(Order = 1)]837public CT_DecimalNumber numId838{839get840{841return this.numIdField;842}843set844{845this.numIdField = value;846}847}848
849[XmlElement(Order = 2)]850public CT_TrackChangeNumbering numberingChange851{852get853{854return this.numberingChangeField;855}856set857{858this.numberingChangeField = value;859}860}861
862[XmlElement(Order = 3)]863public CT_TrackChange ins864{865get866{867return this.insField;868}869set870{871this.insField = value;872}873}874
875public CT_DecimalNumber AddNewNumId()876{877this.numId = new CT_DecimalNumber();878return this.numId;879}880}881
882
883[Serializable]884
885[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]886[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]887public class CT_Sym888{889
890private string fontField;891
892private byte[] charField;893public static CT_Sym Parse(XmlNode node, XmlNamespaceManager namespaceManager)894{895if (node == null)896return null;897CT_Sym ctObj = new CT_Sym();898ctObj.font = XmlHelper.ReadString(node.Attributes["w:font"]);899ctObj.@char = XmlHelper.ReadBytes(node.Attributes["w:char"]);900return ctObj;901}902
903
904
905internal void Write(StreamWriter sw, string nodeName)906{907sw.Write(string.Format("<w:{0}", nodeName));908XmlHelper.WriteAttribute(sw, "w:font", this.font);909XmlHelper.WriteAttribute(sw, "w:char", this.@char);910sw.Write(">");911sw.WriteEndW(nodeName);912}913
914[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]915public string font916{917get918{919return this.fontField;920}921set922{923this.fontField = value;924}925}926
927[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]928public byte[] @char929{930get931{932return this.charField;933}934set935{936this.charField = value;937}938}939}940
941[Serializable]942
943[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]944[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]945public class CT_AbstractNum946{947
948private CT_LongHexNumber nsidField;949
950private CT_MultiLevelType multiLevelTypeField;951
952private CT_LongHexNumber tmplField;953
954private CT_String nameField;955
956private CT_String styleLinkField;957
958private CT_String numStyleLinkField;959
960private List<CT_Lvl> lvlField;961
962private string abstractNumIdField;963
964public CT_AbstractNum()965{966//this.lvlField = new List<CT_Lvl>();967//this.numStyleLinkField = new CT_String();968//this.styleLinkField = new CT_String();969//this.nameField = new CT_String();970//this.tmplField = new CT_LongHexNumber();971this.multiLevelTypeField = new CT_MultiLevelType();972this.nsidField = new CT_LongHexNumber();973this.nsidField.val = new byte[4];974Array.Copy(BitConverter.GetBytes(DateTime.Now.Ticks), 0, this.nsidField.val, 0, 4);975}976
977[XmlElement(Order = 0)]978public CT_LongHexNumber nsid979{980get981{982return this.nsidField;983}984set985{986this.nsidField = value;987}988}989
990[XmlElement(Order = 1)]991public CT_MultiLevelType multiLevelType992{993get994{995return this.multiLevelTypeField;996}997set998{999this.multiLevelTypeField = value;1000}1001}1002
1003[XmlElement(Order = 2)]1004public CT_LongHexNumber tmpl1005{1006get1007{1008return this.tmplField;1009}1010set1011{1012this.tmplField = value;1013}1014}1015
1016[XmlElement(Order = 3)]1017public CT_String name1018{1019get1020{1021return this.nameField;1022}1023set1024{1025this.nameField = value;1026}1027}1028
1029[XmlElement(Order = 4)]1030public CT_String styleLink1031{1032get1033{1034return this.styleLinkField;1035}1036set1037{1038this.styleLinkField = value;1039}1040}1041
1042[XmlElement(Order = 5)]1043public CT_String numStyleLink1044{1045get1046{1047return this.numStyleLinkField;1048}1049set1050{1051this.numStyleLinkField = value;1052}1053}1054
1055[XmlElement("lvl", Order = 6)]1056public List<CT_Lvl> lvl1057{1058get1059{1060return this.lvlField;1061}1062set1063{1064this.lvlField = value;1065}1066}1067
1068[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]1069public string abstractNumId1070{1071get1072{1073return this.abstractNumIdField;1074}1075set1076{1077this.abstractNumIdField = value;1078}1079}1080
1081public CT_AbstractNum Copy()1082{1083CT_AbstractNum anum = new CT_AbstractNum();1084anum.abstractNumIdField = this.abstractNumIdField;1085anum.lvlField = new List<CT_Lvl>(this.lvlField);1086anum.multiLevelTypeField = this.multiLevelTypeField;1087anum.nameField = this.nameField;1088anum.nsidField = this.nsidField;1089anum.numStyleLinkField = this.numStyleLinkField;1090anum.styleLinkField = this.styleLinkField;1091anum.tmplField = this.tmplField;1092return anum;1093}1094
1095public bool ValueEquals(CT_AbstractNum cT_AbstractNum)1096{1097return this.abstractNumIdField == cT_AbstractNum.abstractNumIdField;1098}1099
1100public void Set(CT_AbstractNum cT_AbstractNum)1101{1102this.abstractNumIdField = cT_AbstractNum.abstractNumIdField;1103this.lvlField = new List<CT_Lvl>(cT_AbstractNum.lvlField);1104this.multiLevelTypeField = cT_AbstractNum.multiLevelTypeField;1105this.nameField = cT_AbstractNum.nameField;1106this.nsidField = cT_AbstractNum.nsidField;1107this.numStyleLinkField = cT_AbstractNum.numStyleLinkField;1108this.styleLinkField = cT_AbstractNum.styleLinkField;1109this.tmplField = cT_AbstractNum.tmplField;1110}1111
1112public static CT_AbstractNum Parse(XmlNode node, XmlNamespaceManager namespaceManager)1113{1114if (node == null)1115return null;1116CT_AbstractNum ctObj = new CT_AbstractNum();1117ctObj.abstractNumId = XmlHelper.ReadString(node.Attributes["w:abstractNumId"]);1118ctObj.lvl = new List<CT_Lvl>();1119foreach (XmlNode childNode in node.ChildNodes)1120{1121if (childNode.LocalName == "nsid")1122ctObj.nsid = CT_LongHexNumber.Parse(childNode, namespaceManager);1123else if (childNode.LocalName == "multiLevelType")1124ctObj.multiLevelType = CT_MultiLevelType.Parse(childNode, namespaceManager);1125else if (childNode.LocalName == "tmpl")1126ctObj.tmpl = CT_LongHexNumber.Parse(childNode, namespaceManager);1127else if (childNode.LocalName == "name")1128ctObj.name = CT_String.Parse(childNode, namespaceManager);1129else if (childNode.LocalName == "styleLink")1130ctObj.styleLink = CT_String.Parse(childNode, namespaceManager);1131else if (childNode.LocalName == "numStyleLink")1132ctObj.numStyleLink = CT_String.Parse(childNode, namespaceManager);1133else if (childNode.LocalName == "lvl")1134ctObj.lvl.Add(CT_Lvl.Parse(childNode, namespaceManager));1135}1136return ctObj;1137}1138
1139internal void Write(StreamWriter sw, string nodeName)1140{1141sw.Write(string.Format("<w:{0}", nodeName));1142XmlHelper.WriteAttribute(sw, "w:abstractNumId", this.abstractNumId);1143sw.Write(">");1144if (this.nsid != null)1145this.nsid.Write(sw, "nsid");1146if (this.multiLevelType != null)1147this.multiLevelType.Write(sw, "multiLevelType");1148if (this.tmpl != null)1149this.tmpl.Write(sw, "tmpl");1150if (this.name != null)1151this.name.Write(sw, "name");1152if (this.styleLink != null)1153this.styleLink.Write(sw, "styleLink");1154if (this.numStyleLink != null)1155this.numStyleLink.Write(sw, "numStyleLink");1156if (this.lvl != null)1157{1158foreach (CT_Lvl x in this.lvl)1159{1160x.Write(sw, "lvl");1161}1162}1163sw.WriteEndW(nodeName);1164}1165
1166public CT_Lvl AddNewLvl()1167{1168if (this.lvl == null)1169this.lvlField = new List<CT_Lvl>();1170CT_Lvl lvl = new CT_Lvl();1171this.lvlField.Add(lvl);1172return lvl;1173}1174
1175
1176public int SizeOfLvlArray()1177{1178return this.lvlField == null ? 0 : this.lvlField.Count;1179}1180
1181public CT_Lvl GetLvlArray(int i)1182{1183return this.lvlField == null ? null : this.lvlField[i];1184}1185}1186
1187
1188[Serializable]1189
1190[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1191[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1192public class CT_MultiLevelType1193{1194public static CT_MultiLevelType Parse(XmlNode node, XmlNamespaceManager namespaceManager)1195{1196if (node == null)1197return null;1198CT_MultiLevelType ctObj = new CT_MultiLevelType();1199if (node.Attributes["w:val"] != null)1200ctObj.val = (ST_MultiLevelType)Enum.Parse(typeof(ST_MultiLevelType), node.Attributes["w:val"].Value);1201return ctObj;1202}1203
1204
1205
1206internal void Write(StreamWriter sw, string nodeName)1207{1208sw.Write(string.Format("<w:{0}", nodeName));1209XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());1210sw.Write("/>");1211}1212
1213private ST_MultiLevelType valField;1214
1215[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1216public ST_MultiLevelType val1217{1218get1219{1220return this.valField;1221}1222set1223{1224this.valField = value;1225}1226}1227}1228
1229
1230[Serializable]1231[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1232public enum ST_MultiLevelType1233{1234
1235
1236singleLevel,1237
1238
1239multilevel,1240
1241
1242hybridMultilevel,1243}1244
1245
1246[Serializable]1247
1248[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1249[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1250public class CT_Lvl1251{1252
1253private CT_DecimalNumber startField;1254
1255private CT_NumFmt numFmtField;1256
1257private CT_DecimalNumber lvlRestartField;1258
1259private CT_String pStyleField;1260
1261private CT_OnOff isLglField;1262
1263private CT_LevelSuffix suffField;1264
1265private CT_LevelText lvlTextField;1266
1267private CT_DecimalNumber lvlPicBulletIdField;1268
1269private CT_LvlLegacy legacyField;1270
1271private CT_Jc lvlJcField;1272
1273private CT_PPr pPrField;1274
1275private CT_RPr rPrField;1276
1277private string ilvlField;1278
1279private byte[] tplcField;1280
1281private ST_OnOff tentativeField;1282
1283private bool tentativeFieldSpecified;1284
1285public CT_Lvl()1286{1287this.rPrField = new CT_RPr();1288this.pPrField = new CT_PPr();1289this.lvlJcField = new CT_Jc();1290//this.legacyField = new CT_LvlLegacy();1291//this.lvlPicBulletIdField = new CT_DecimalNumber();1292this.lvlTextField = new CT_LevelText();1293//this.suffField = new CT_LevelSuffix();1294//this.isLglField = new CT_OnOff();1295//this.pStyleField = new CT_String();1296//this.lvlRestartField = new CT_DecimalNumber();1297this.numFmtField = new CT_NumFmt();1298this.startField = new CT_DecimalNumber();1299this.tentativeField = ST_OnOff.off;1300}1301public static CT_Lvl Parse(XmlNode node, XmlNamespaceManager namespaceManager)1302{1303if (node == null)1304return null;1305CT_Lvl ctObj = new CT_Lvl();1306ctObj.ilvl = XmlHelper.ReadString(node.Attributes["w:ilvl"]);1307ctObj.tplc = XmlHelper.ReadBytes(node.Attributes["w:tplc"]);1308if (node.Attributes["w:tentative"] != null)1309{1310ctObj.tentative = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:tentative"].Value, true);1311ctObj.tentativeSpecified = true;1312}1313foreach (XmlNode childNode in node.ChildNodes)1314{1315if (childNode.LocalName == "start")1316ctObj.start = CT_DecimalNumber.Parse(childNode, namespaceManager);1317else if (childNode.LocalName == "numFmt")1318ctObj.numFmt = CT_NumFmt.Parse(childNode, namespaceManager);1319else if (childNode.LocalName == "lvlRestart")1320ctObj.lvlRestart = CT_DecimalNumber.Parse(childNode, namespaceManager);1321else if (childNode.LocalName == "pStyle")1322ctObj.pStyle = CT_String.Parse(childNode, namespaceManager);1323else if (childNode.LocalName == "isLgl")1324ctObj.isLgl = CT_OnOff.Parse(childNode, namespaceManager);1325else if (childNode.LocalName == "suff")1326ctObj.suff = CT_LevelSuffix.Parse(childNode, namespaceManager);1327else if (childNode.LocalName == "lvlText")1328ctObj.lvlText = CT_LevelText.Parse(childNode, namespaceManager);1329else if (childNode.LocalName == "lvlPicBulletId")1330ctObj.lvlPicBulletId = CT_DecimalNumber.Parse(childNode, namespaceManager);1331else if (childNode.LocalName == "legacy")1332ctObj.legacy = CT_LvlLegacy.Parse(childNode, namespaceManager);1333else if (childNode.LocalName == "lvlJc")1334ctObj.lvlJc = CT_Jc.Parse(childNode, namespaceManager);1335else if (childNode.LocalName == "pPr")1336ctObj.pPr = CT_PPr.Parse(childNode, namespaceManager);1337else if (childNode.LocalName == "rPr")1338ctObj.rPr = CT_RPr.Parse(childNode, namespaceManager);1339}1340return ctObj;1341}1342
1343
1344
1345internal void Write(StreamWriter sw, string nodeName)1346{1347sw.Write(string.Format("<w:{0}", nodeName));1348XmlHelper.WriteAttribute(sw, "w:ilvl", this.ilvl);1349XmlHelper.WriteAttribute(sw, "w:tplc", this.tplc);1350if(this.tentative!= ST_OnOff.off|| this.tentativeFieldSpecified)1351XmlHelper.WriteAttribute(sw, "w:tentative", this.tentative.ToString());1352sw.Write(">");1353if (this.start != null)1354this.start.Write(sw, "start");1355if (this.numFmt != null)1356this.numFmt.Write(sw, "numFmt");1357if (this.lvlRestart != null)1358this.lvlRestart.Write(sw, "lvlRestart");1359if (this.pStyle != null)1360this.pStyle.Write(sw, "pStyle");1361if (this.isLgl != null)1362this.isLgl.Write(sw, "isLgl");1363if (this.suff != null)1364this.suff.Write(sw, "suff");1365if (this.lvlText != null)1366this.lvlText.Write(sw, "lvlText");1367if (this.lvlPicBulletId != null)1368this.lvlPicBulletId.Write(sw, "lvlPicBulletId");1369if (this.legacy != null)1370this.legacy.Write(sw, "legacy");1371if (this.lvlJc != null)1372this.lvlJc.Write(sw, "lvlJc");1373if (this.pPr != null)1374this.pPr.Write(sw, "pPr");1375if (this.rPr != null)1376this.rPr.Write(sw, "rPr");1377sw.WriteEndW(nodeName);1378}1379
1380
1381
1382[XmlElement(Order = 0)]1383public CT_DecimalNumber start1384{1385get1386{1387return this.startField;1388}1389set1390{1391this.startField = value;1392}1393}1394
1395[XmlElement(Order = 1)]1396public CT_NumFmt numFmt1397{1398get1399{1400return this.numFmtField;1401}1402set1403{1404this.numFmtField = value;1405}1406}1407
1408[XmlElement(Order = 2)]1409public CT_DecimalNumber lvlRestart1410{1411get1412{1413return this.lvlRestartField;1414}1415set1416{1417this.lvlRestartField = value;1418}1419}1420
1421[XmlElement(Order = 3)]1422public CT_String pStyle1423{1424get1425{1426return this.pStyleField;1427}1428set1429{1430this.pStyleField = value;1431}1432}1433
1434[XmlElement(Order = 4)]1435public CT_OnOff isLgl1436{1437get1438{1439return this.isLglField;1440}1441set1442{1443this.isLglField = value;1444}1445}1446
1447[XmlElement(Order = 5)]1448public CT_LevelSuffix suff1449{1450get1451{1452return this.suffField;1453}1454set1455{1456this.suffField = value;1457}1458}1459
1460[XmlElement(Order = 6)]1461public CT_LevelText lvlText1462{1463get1464{1465return this.lvlTextField;1466}1467set1468{1469this.lvlTextField = value;1470}1471}1472
1473[XmlElement(Order = 7)]1474public CT_DecimalNumber lvlPicBulletId1475{1476get1477{1478return this.lvlPicBulletIdField;1479}1480set1481{1482this.lvlPicBulletIdField = value;1483}1484}1485
1486[XmlElement(Order = 8)]1487public CT_LvlLegacy legacy1488{1489get1490{1491return this.legacyField;1492}1493set1494{1495this.legacyField = value;1496}1497}1498
1499[XmlElement(Order = 9)]1500public CT_Jc lvlJc1501{1502get1503{1504return this.lvlJcField;1505}1506set1507{1508this.lvlJcField = value;1509}1510}1511
1512[XmlElement(Order = 10)]1513public CT_PPr pPr1514{1515get1516{1517return this.pPrField;1518}1519set1520{1521this.pPrField = value;1522}1523}1524
1525[XmlElement(Order = 11)]1526public CT_RPr rPr1527{1528get1529{1530return this.rPrField;1531}1532set1533{1534this.rPrField = value;1535}1536}1537
1538[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]1539public string ilvl1540{1541get1542{1543return this.ilvlField;1544}1545set1546{1547this.ilvlField = value;1548}1549}1550
1551[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]1552public byte[] tplc1553{1554get1555{1556return this.tplcField;1557}1558set1559{1560this.tplcField = value;1561}1562}1563
1564[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1565public ST_OnOff tentative1566{1567get1568{1569return this.tentativeField;1570}1571set1572{1573this.tentativeField = value;1574this.tentativeFieldSpecified = true;1575}1576}1577
1578[XmlIgnore]1579public bool tentativeSpecified1580{1581get1582{1583return this.tentativeFieldSpecified;1584}1585set1586{1587this.tentativeFieldSpecified = value;1588}1589}1590
1591public CT_NumFmt AddNewNumFmt()1592{1593this.numFmtField = new CT_NumFmt();1594return this.numFmtField;1595}1596
1597public CT_LevelText AddNewLvlText()1598{1599this.lvlText = new CT_LevelText();1600return this.lvlText;1601}1602}1603
1604
1605[Serializable]1606
1607[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1608[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1609public class CT_LevelSuffix1610{1611public static CT_LevelSuffix Parse(XmlNode node, XmlNamespaceManager namespaceManager)1612{1613if (node == null)1614return null;1615CT_LevelSuffix ctObj = new CT_LevelSuffix();1616if (node.Attributes["w:val"] != null)1617ctObj.val = (ST_LevelSuffix)Enum.Parse(typeof(ST_LevelSuffix), node.Attributes["w:val"].Value);1618return ctObj;1619}1620
1621
1622
1623internal void Write(StreamWriter sw, string nodeName)1624{1625sw.Write(string.Format("<w:{0}", nodeName));1626XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());1627sw.Write("/>");1628}1629
1630private ST_LevelSuffix valField;1631
1632[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1633public ST_LevelSuffix val1634{1635get1636{1637return this.valField;1638}1639set1640{1641this.valField = value;1642}1643}1644}1645
1646
1647[Serializable]1648[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1649public enum ST_LevelSuffix1650{1651tab,1652space,1653nothing,1654}1655
1656
1657[Serializable]1658
1659[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1660[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1661public class CT_LevelText1662{1663
1664private string valField;1665
1666private ST_OnOff nullField= ST_OnOff.off;1667
1668private bool nullFieldSpecified;1669
1670public static CT_LevelText Parse(XmlNode node, XmlNamespaceManager namespaceManager)1671{1672if(node==null)1673return null;1674CT_LevelText ctObj = new CT_LevelText();1675ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);1676if (node.Attributes["w:null"]!=null)1677ctObj.@null = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:null"].Value,true);1678return ctObj;1679}1680
1681
1682
1683internal void Write(StreamWriter sw, string nodeName)1684{1685sw.Write(string.Format("<w:{0}", nodeName));1686XmlHelper.WriteAttribute(sw, "w:val", this.val);1687if(this.@null!= ST_OnOff.off)1688XmlHelper.WriteAttribute(sw, "w:null", this.@null.ToString());1689sw.Write("/>");1690}1691
1692
1693[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1694public string val1695{1696get1697{1698return this.valField;1699}1700set1701{1702this.valField = value;1703}1704}1705
1706[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1707public ST_OnOff @null1708{1709get1710{1711return this.nullField;1712}1713set1714{1715this.nullField = value;1716}1717}1718
1719[XmlIgnore]1720public bool nullSpecified1721{1722get1723{1724return this.nullFieldSpecified;1725}1726set1727{1728this.nullFieldSpecified = value;1729}1730}1731}1732
1733
1734[Serializable]1735
1736[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1737[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1738public class CT_LvlLegacy1739{1740
1741private ST_OnOff legacyField;1742
1743private bool legacyFieldSpecified;1744
1745private ulong legacySpaceField;1746
1747private bool legacySpaceFieldSpecified;1748
1749private string legacyIndentField;1750
1751public static CT_LvlLegacy Parse(XmlNode node, XmlNamespaceManager namespaceManager)1752{1753if (node == null)1754return null;1755CT_LvlLegacy ctObj = new CT_LvlLegacy();1756if (node.Attributes["w:legacy"] != null)1757ctObj.legacy = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:legacy"].Value,true);1758ctObj.legacySpace = XmlHelper.ReadULong(node.Attributes["w:legacySpace"]);1759ctObj.legacyIndent = XmlHelper.ReadString(node.Attributes["w:legacyIndent"]);1760return ctObj;1761}1762
1763internal void Write(StreamWriter sw, string nodeName)1764{1765sw.Write(string.Format("<w:{0}", nodeName));1766XmlHelper.WriteAttribute(sw, "w:legacy", this.legacy.ToString());1767XmlHelper.WriteAttribute(sw, "w:legacySpace", this.legacySpace);1768XmlHelper.WriteAttribute(sw, "w:legacyIndent", this.legacyIndent);1769sw.Write(">");1770sw.WriteEndW(nodeName);1771}1772
1773
1774[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1775public ST_OnOff legacy1776{1777get1778{1779return this.legacyField;1780}1781set1782{1783this.legacyField = value;1784}1785}1786
1787[XmlIgnore]1788public bool legacySpecified1789{1790get1791{1792return this.legacyFieldSpecified;1793}1794set1795{1796this.legacyFieldSpecified = value;1797}1798}1799
1800[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1801public ulong legacySpace1802{1803get1804{1805return this.legacySpaceField;1806}1807set1808{1809this.legacySpaceField = value;1810}1811}1812
1813[XmlIgnore]1814public bool legacySpaceSpecified1815{1816get1817{1818return this.legacySpaceFieldSpecified;1819}1820set1821{1822this.legacySpaceFieldSpecified = value;1823}1824}1825
1826[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]1827public string legacyIndent1828{1829get1830{1831return this.legacyIndentField;1832}1833set1834{1835this.legacyIndentField = value;1836}1837}1838}1839
1840
1841[Serializable]1842
1843[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]1844[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]1845public class CT_LsdException1846{1847
1848private string nameField;1849
1850private ST_OnOff lockedField;1851
1852private bool lockedFieldSpecified;1853
1854private string uiPriorityField;1855
1856private ST_OnOff semiHiddenField;1857
1858private bool semiHiddenFieldSpecified;1859
1860private ST_OnOff unhideWhenUsedField;1861
1862private bool unhideWhenUsedFieldSpecified;1863
1864private ST_OnOff qFormatField;1865
1866private bool qFormatFieldSpecified;1867public CT_LsdException()1868{1869semiHidden = ST_OnOff.off;1870unhideWhenUsed = ST_OnOff.off;1871locked = ST_OnOff.off;1872}1873
1874public static CT_LsdException Parse(XmlNode node, XmlNamespaceManager namespaceManager)1875{1876if (node == null)1877return null;1878CT_LsdException ctObj = new CT_LsdException();1879ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);1880if (node.Attributes["w:locked"] != null)1881ctObj.locked = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:locked"].Value,true);1882ctObj.uiPriority = XmlHelper.ReadString(node.Attributes["w:uiPriority"]);1883if (node.Attributes["w:semiHidden"] != null)1884ctObj.semiHidden = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:semiHidden"].Value,true);1885if (node.Attributes["w:unhideWhenUsed"] != null)1886ctObj.unhideWhenUsed = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:unhideWhenUsed"].Value,true);1887if (node.Attributes["w:qFormat"] != null)1888ctObj.qFormat = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:qFormat"].Value,true);1889return ctObj;1890}1891
1892
1893
1894internal void Write(StreamWriter sw, string nodeName)1895{1896sw.Write(string.Format("<w:{0}", nodeName));1897XmlHelper.WriteAttribute(sw, "w:name", this.name);1898if (locked != ST_OnOff.off)1899XmlHelper.WriteAttribute(sw, "w:locked", this.locked.ToString());1900if(this.semiHidden== ST_OnOff.on)1901XmlHelper.WriteAttribute(sw, "w:semiHidden", "1");1902XmlHelper.WriteAttribute(sw, "w:uiPriority", this.uiPriority);1903if (this.unhideWhenUsed == ST_OnOff.on)1904XmlHelper.WriteAttribute(sw, "w:unhideWhenUsed", "1");1905if (qFormat != ST_OnOff.off)1906XmlHelper.WriteAttribute(sw, "w:qFormat", "1");1907sw.Write("/>");1908}1909
1910[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1911public string name1912{1913get1914{1915return this.nameField;1916}1917set1918{1919this.nameField = value;1920}1921}1922
1923[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1924public ST_OnOff locked1925{1926get1927{1928return this.lockedField;1929}1930set1931{1932this.lockedField = value;1933}1934}1935
1936[XmlIgnore]1937public bool lockedSpecified1938{1939get1940{1941return this.lockedFieldSpecified;1942}1943set1944{1945this.lockedFieldSpecified = value;1946}1947}1948
1949[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]1950public string uiPriority1951{1952get1953{1954return this.uiPriorityField;1955}1956set1957{1958this.uiPriorityField = value;1959}1960}1961
1962[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1963public ST_OnOff semiHidden1964{1965get1966{1967return this.semiHiddenField;1968}1969set1970{1971this.semiHiddenField = value;1972}1973}1974
1975[XmlIgnore]1976public bool semiHiddenSpecified1977{1978get1979{1980return this.semiHiddenFieldSpecified;1981}1982set1983{1984this.semiHiddenFieldSpecified = value;1985}1986}1987
1988[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]1989public ST_OnOff unhideWhenUsed1990{1991get1992{1993return this.unhideWhenUsedField;1994}1995set1996{1997this.unhideWhenUsedField = value;1998}1999}2000
2001[XmlIgnore]2002public bool unhideWhenUsedSpecified2003{2004get2005{2006return this.unhideWhenUsedFieldSpecified;2007}2008set2009{2010this.unhideWhenUsedFieldSpecified = value;2011}2012}2013
2014[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]2015public ST_OnOff qFormat2016{2017get2018{2019return this.qFormatField;2020}2021set2022{2023this.qFormatField = value;2024}2025}2026
2027[XmlIgnore]2028public bool qFormatSpecified2029{2030get2031{2032return this.qFormatFieldSpecified;2033}2034set2035{2036this.qFormatFieldSpecified = value;2037}2038}2039}2040
2041
2042[Serializable]2043
2044[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]2045[XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]2046public class CT_TrackChangeNumbering : CT_TrackChange2047{2048public static new CT_TrackChangeNumbering Parse(XmlNode node, XmlNamespaceManager namespaceManager)2049{2050if (node == null)2051return null;2052CT_TrackChangeNumbering ctObj = new CT_TrackChangeNumbering();2053ctObj.original = XmlHelper.ReadString(node.Attributes["original"]);2054ctObj.author = XmlHelper.ReadString(node.Attributes["author"]);2055ctObj.date = XmlHelper.ReadString(node.Attributes["date"]);2056ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);2057return ctObj;2058}2059
2060
2061
2062internal new void Write(StreamWriter sw, string nodeName)2063{2064sw.Write(string.Format("<{0}", nodeName));2065XmlHelper.WriteAttribute(sw, "original", this.original);2066XmlHelper.WriteAttribute(sw, "author", this.author);2067XmlHelper.WriteAttribute(sw, "date", this.date);2068XmlHelper.WriteAttribute(sw, "id", this.id);2069sw.Write(">");2070sw.Write(string.Format("</{0}>", nodeName));2071}2072
2073private string originalField;2074
2075[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]2076public string original2077{2078get2079{2080return this.originalField;2081}2082set2083{2084this.originalField = value;2085}2086}2087}2088
2089}
2090