npoi

Форк
0
7527 строк · 229.5 Кб
1
using NPOI.OpenXml4Net.Util;
2
using NPOI.OpenXmlFormats.Shared;
3
using System;
4
using System.Collections.Generic;
5
using System.IO;
6
using System.Xml;
7
using System.Xml.Serialization;
8
//using NPOI.OpenXmlFormats.Shared;
9

10
namespace NPOI.OpenXmlFormats.Wordprocessing
11
{
12

13

14
    [Serializable]
15
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
16
    [XmlRoot("settings", Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = false)]
17
    public class CT_Settings
18
    {
19
        public static CT_Settings Parse(XmlNode node, XmlNamespaceManager namespaceManager)
20
        {
21
            if (node == null)
22
                return null;
23
            CT_Settings ctObj = new CT_Settings();
24
            ctObj.activeWritingStyle = new List<CT_WritingStyle>();
25
            ctObj.attachedSchema = new List<CT_String>();
26
            ctObj.smartTagType = new List<CT_SmartTagType>();
27
            ctObj.schemaLibrary = new List<CT_Schema>();
28
            foreach (XmlNode childNode in node.ChildNodes)
29
            {
30
                if (childNode.LocalName == "writeProtection")
31
                    ctObj.writeProtection = CT_WriteProtection.Parse(childNode, namespaceManager);
32
                else if (childNode.LocalName == "view")
33
                    ctObj.view = CT_View.Parse(childNode, namespaceManager);
34
                else if (childNode.LocalName == "zoom")
35
                    ctObj.zoom = CT_Zoom.Parse(childNode, namespaceManager);
36
                else if (childNode.LocalName == "removePersonalInformation")
37
                    ctObj.removePersonalInformation = CT_OnOff.Parse(childNode, namespaceManager);
38
                else if (childNode.LocalName == "removeDateAndTime")
39
                    ctObj.removeDateAndTime = CT_OnOff.Parse(childNode, namespaceManager);
40
                else if (childNode.LocalName == "doNotDisplayPageBoundaries")
41
                    ctObj.doNotDisplayPageBoundaries = CT_OnOff.Parse(childNode, namespaceManager);
42
                else if (childNode.LocalName == "displayBackgroundShape")
43
                    ctObj.displayBackgroundShape = CT_OnOff.Parse(childNode, namespaceManager);
44
                else if (childNode.LocalName == "printPostScriptOverText")
45
                    ctObj.printPostScriptOverText = CT_OnOff.Parse(childNode, namespaceManager);
46
                else if (childNode.LocalName == "printFractionalCharacterWidth")
47
                    ctObj.printFractionalCharacterWidth = CT_OnOff.Parse(childNode, namespaceManager);
48
                else if (childNode.LocalName == "printFormsData")
49
                    ctObj.printFormsData = CT_OnOff.Parse(childNode, namespaceManager);
50
                else if (childNode.LocalName == "embedTrueTypeFonts")
51
                    ctObj.embedTrueTypeFonts = CT_OnOff.Parse(childNode, namespaceManager);
52
                else if (childNode.LocalName == "embedSystemFonts")
53
                    ctObj.embedSystemFonts = CT_OnOff.Parse(childNode, namespaceManager);
54
                else if (childNode.LocalName == "saveSubsetFonts")
55
                    ctObj.saveSubsetFonts = CT_OnOff.Parse(childNode, namespaceManager);
56
                else if (childNode.LocalName == "saveFormsData")
57
                    ctObj.saveFormsData = CT_OnOff.Parse(childNode, namespaceManager);
58
                else if (childNode.LocalName == "mirrorMargins")
59
                    ctObj.mirrorMargins = CT_OnOff.Parse(childNode, namespaceManager);
60
                else if (childNode.LocalName == "alignBordersAndEdges")
61
                    ctObj.alignBordersAndEdges = CT_OnOff.Parse(childNode, namespaceManager);
62
                else if (childNode.LocalName == "bordersDoNotSurroundHeader")
63
                    ctObj.bordersDoNotSurroundHeader = CT_OnOff.Parse(childNode, namespaceManager);
64
                else if (childNode.LocalName == "bordersDoNotSurroundFooter")
65
                    ctObj.bordersDoNotSurroundFooter = CT_OnOff.Parse(childNode, namespaceManager);
66
                else if (childNode.LocalName == "gutterAtTop")
67
                    ctObj.gutterAtTop = CT_OnOff.Parse(childNode, namespaceManager);
68
                else if (childNode.LocalName == "hideSpellingErrors")
69
                    ctObj.hideSpellingErrors = CT_OnOff.Parse(childNode, namespaceManager);
70
                else if (childNode.LocalName == "hideGrammaticalErrors")
71
                    ctObj.hideGrammaticalErrors = CT_OnOff.Parse(childNode, namespaceManager);
72
                else if (childNode.LocalName == "proofState")
73
                    ctObj.proofState = CT_Proof.Parse(childNode, namespaceManager);
74
                else if (childNode.LocalName == "formsDesign")
75
                    ctObj.formsDesign = CT_OnOff.Parse(childNode, namespaceManager);
76
                else if (childNode.LocalName == "attachedTemplate")
77
                    ctObj.attachedTemplate = CT_Rel.Parse(childNode, namespaceManager);
78
                else if (childNode.LocalName == "linkStyles")
79
                    ctObj.linkStyles = CT_OnOff.Parse(childNode, namespaceManager);
80
                else if (childNode.LocalName == "stylePaneFormatFilter")
81
                    ctObj.stylePaneFormatFilter = CT_ShortHexNumber.Parse(childNode, namespaceManager);
82
                else if (childNode.LocalName == "stylePaneSortMethod")
83
                    ctObj.stylePaneSortMethod = CT_ShortHexNumber.Parse(childNode, namespaceManager);
84
                else if (childNode.LocalName == "documentType")
85
                    ctObj.documentType = CT_DocType.Parse(childNode, namespaceManager);
86
                else if (childNode.LocalName == "mailMerge")
87
                    ctObj.mailMerge = CT_MailMerge.Parse(childNode, namespaceManager);
88
                else if (childNode.LocalName == "revisionView")
89
                    ctObj.revisionView = CT_TrackChangesView.Parse(childNode, namespaceManager);
90
                else if (childNode.LocalName == "trackRevisions")
91
                    ctObj.trackRevisions = CT_OnOff.Parse(childNode, namespaceManager);
92
                else if (childNode.LocalName == "doNotTrackMoves")
93
                    ctObj.doNotTrackMoves = CT_OnOff.Parse(childNode, namespaceManager);
94
                else if (childNode.LocalName == "doNotTrackFormatting")
95
                    ctObj.doNotTrackFormatting = CT_OnOff.Parse(childNode, namespaceManager);
96
                else if (childNode.LocalName == "documentProtection")
97
                    ctObj.documentProtection = CT_DocProtect.Parse(childNode, namespaceManager);
98
                else if (childNode.LocalName == "autoFormatOverride")
99
                    ctObj.autoFormatOverride = CT_OnOff.Parse(childNode, namespaceManager);
100
                else if (childNode.LocalName == "styleLockTheme")
101
                    ctObj.styleLockTheme = CT_OnOff.Parse(childNode, namespaceManager);
102
                else if (childNode.LocalName == "styleLockQFSet")
103
                    ctObj.styleLockQFSet = CT_OnOff.Parse(childNode, namespaceManager);
104
                else if (childNode.LocalName == "defaultTabStop")
105
                    ctObj.defaultTabStop = CT_TwipsMeasure.Parse(childNode, namespaceManager);
106
                else if (childNode.LocalName == "autoHyphenation")
107
                    ctObj.autoHyphenation = CT_OnOff.Parse(childNode, namespaceManager);
108
                else if (childNode.LocalName == "consecutiveHyphenLimit")
109
                    ctObj.consecutiveHyphenLimit = CT_DecimalNumber.Parse(childNode, namespaceManager);
110
                else if (childNode.LocalName == "hyphenationZone")
111
                    ctObj.hyphenationZone = CT_TwipsMeasure.Parse(childNode, namespaceManager);
112
                else if (childNode.LocalName == "doNotHyphenateCaps")
113
                    ctObj.doNotHyphenateCaps = CT_OnOff.Parse(childNode, namespaceManager);
114
                else if (childNode.LocalName == "showEnvelope")
115
                    ctObj.showEnvelope = CT_OnOff.Parse(childNode, namespaceManager);
116
                else if (childNode.LocalName == "summaryLength")
117
                    ctObj.summaryLength = CT_DecimalNumber.Parse(childNode, namespaceManager);
118
                else if (childNode.LocalName == "clickAndTypeStyle")
119
                    ctObj.clickAndTypeStyle = CT_String.Parse(childNode, namespaceManager);
120
                else if (childNode.LocalName == "defaultTableStyle")
121
                    ctObj.defaultTableStyle = CT_String.Parse(childNode, namespaceManager);
122
                else if (childNode.LocalName == "evenAndOddHeaders")
123
                    ctObj.evenAndOddHeaders = CT_OnOff.Parse(childNode, namespaceManager);
124
                else if (childNode.LocalName == "bookFoldRevPrinting")
125
                    ctObj.bookFoldRevPrinting = CT_OnOff.Parse(childNode, namespaceManager);
126
                else if (childNode.LocalName == "bookFoldPrinting")
127
                    ctObj.bookFoldPrinting = CT_OnOff.Parse(childNode, namespaceManager);
128
                else if (childNode.LocalName == "bookFoldPrintingSheets")
129
                    ctObj.bookFoldPrintingSheets = CT_DecimalNumber.Parse(childNode, namespaceManager);
130
                else if (childNode.LocalName == "drawingGridHorizontalSpacing")
131
                    ctObj.drawingGridHorizontalSpacing = CT_TwipsMeasure.Parse(childNode, namespaceManager);
132
                else if (childNode.LocalName == "drawingGridVerticalSpacing")
133
                    ctObj.drawingGridVerticalSpacing = CT_TwipsMeasure.Parse(childNode, namespaceManager);
134
                else if (childNode.LocalName == "displayHorizontalDrawingGridEvery")
135
                    ctObj.displayHorizontalDrawingGridEvery = CT_DecimalNumber.Parse(childNode, namespaceManager);
136
                else if (childNode.LocalName == "displayVerticalDrawingGridEvery")
137
                    ctObj.displayVerticalDrawingGridEvery = CT_DecimalNumber.Parse(childNode, namespaceManager);
138
                else if (childNode.LocalName == "doNotUseMarginsForDrawingGridOrigin")
139
                    ctObj.doNotUseMarginsForDrawingGridOrigin = CT_OnOff.Parse(childNode, namespaceManager);
140
                else if (childNode.LocalName == "drawingGridHorizontalOrigin")
141
                    ctObj.drawingGridHorizontalOrigin = CT_TwipsMeasure.Parse(childNode, namespaceManager);
142
                else if (childNode.LocalName == "drawingGridVerticalOrigin")
143
                    ctObj.drawingGridVerticalOrigin = CT_TwipsMeasure.Parse(childNode, namespaceManager);
144
                else if (childNode.LocalName == "doNotShadeFormData")
145
                    ctObj.doNotShadeFormData = CT_OnOff.Parse(childNode, namespaceManager);
146
                else if (childNode.LocalName == "noPunctuationKerning")
147
                    ctObj.noPunctuationKerning = CT_OnOff.Parse(childNode, namespaceManager);
148
                else if (childNode.LocalName == "characterSpacingControl")
149
                    ctObj.characterSpacingControl = CT_CharacterSpacing.Parse(childNode, namespaceManager);
150
                else if (childNode.LocalName == "printTwoOnOne")
151
                    ctObj.printTwoOnOne = CT_OnOff.Parse(childNode, namespaceManager);
152
                else if (childNode.LocalName == "strictFirstAndLastChars")
153
                    ctObj.strictFirstAndLastChars = CT_OnOff.Parse(childNode, namespaceManager);
154
                else if (childNode.LocalName == "noLineBreaksAfter")
155
                    ctObj.noLineBreaksAfter = CT_Kinsoku.Parse(childNode, namespaceManager);
156
                else if (childNode.LocalName == "noLineBreaksBefore")
157
                    ctObj.noLineBreaksBefore = CT_Kinsoku.Parse(childNode, namespaceManager);
158
                else if (childNode.LocalName == "savePreviewPicture")
159
                    ctObj.savePreviewPicture = CT_OnOff.Parse(childNode, namespaceManager);
160
                else if (childNode.LocalName == "doNotValidateAgainstSchema")
161
                    ctObj.doNotValidateAgainstSchema = CT_OnOff.Parse(childNode, namespaceManager);
162
                else if (childNode.LocalName == "saveInvalidXml")
163
                    ctObj.saveInvalidXml = CT_OnOff.Parse(childNode, namespaceManager);
164
                else if (childNode.LocalName == "ignoreMixedContent")
165
                    ctObj.ignoreMixedContent = CT_OnOff.Parse(childNode, namespaceManager);
166
                else if (childNode.LocalName == "alwaysShowPlaceholderText")
167
                    ctObj.alwaysShowPlaceholderText = CT_OnOff.Parse(childNode, namespaceManager);
168
                else if (childNode.LocalName == "doNotDemarcateInvalidXml")
169
                    ctObj.doNotDemarcateInvalidXml = CT_OnOff.Parse(childNode, namespaceManager);
170
                else if (childNode.LocalName == "saveXmlDataOnly")
171
                    ctObj.saveXmlDataOnly = CT_OnOff.Parse(childNode, namespaceManager);
172
                else if (childNode.LocalName == "useXSLTWhenSaving")
173
                    ctObj.useXSLTWhenSaving = CT_OnOff.Parse(childNode, namespaceManager);
174
                else if (childNode.LocalName == "saveThroughXslt")
175
                    ctObj.saveThroughXslt = CT_SaveThroughXslt.Parse(childNode, namespaceManager);
176
                else if (childNode.LocalName == "showXMLTags")
177
                    ctObj.showXMLTags = CT_OnOff.Parse(childNode, namespaceManager);
178
                else if (childNode.LocalName == "alwaysMergeEmptyNamespace")
179
                    ctObj.alwaysMergeEmptyNamespace = CT_OnOff.Parse(childNode, namespaceManager);
180
                else if (childNode.LocalName == "updateFields")
181
                    ctObj.updateFields = CT_OnOff.Parse(childNode, namespaceManager);
182
                //else if(childNode.LocalName == "hdrShapeDefaults")
183
                //    ctObj.hdrShapeDefaults = XmlElement[].Parse(childNode, namespaceManager);
184
                else if (childNode.LocalName == "footnotePr")
185
                    ctObj.footnotePr = CT_FtnDocProps.Parse(childNode, namespaceManager);
186
                else if (childNode.LocalName == "endnotePr")
187
                    ctObj.endnotePr = CT_EdnDocProps.Parse(childNode, namespaceManager);
188
                else if (childNode.LocalName == "compat")
189
                    ctObj.compat = CT_Compat.Parse(childNode, namespaceManager);
190
                else if (childNode.LocalName == "rsids")
191
                    ctObj.rsids = CT_DocRsids.Parse(childNode, namespaceManager);
192
                else if (childNode.LocalName == "mathPr")
193
                    ctObj.mathPr = CT_MathPr.Parse(childNode, namespaceManager);
194
                else if (childNode.LocalName == "uiCompat97To2003")
195
                    ctObj.uiCompat97To2003 = CT_OnOff.Parse(childNode, namespaceManager);
196
                else if (childNode.LocalName == "themeFontLang")
197
                    ctObj.themeFontLang = CT_Language.Parse(childNode, namespaceManager);
198
                else if (childNode.LocalName == "clrSchemeMapping")
199
                    ctObj.clrSchemeMapping = CT_ColorSchemeMapping.Parse(childNode, namespaceManager);
200
                else if (childNode.LocalName == "doNotIncludeSubdocsInStats")
201
                    ctObj.doNotIncludeSubdocsInStats = CT_OnOff.Parse(childNode, namespaceManager);
202
                else if (childNode.LocalName == "doNotAutoCompressPictures")
203
                    ctObj.doNotAutoCompressPictures = CT_OnOff.Parse(childNode, namespaceManager);
204
                else if (childNode.LocalName == "forceUpgrade")
205
                    ctObj.forceUpgrade = new CT_Empty();
206
                else if (childNode.LocalName == "captions")
207
                    ctObj.captions = CT_Captions.Parse(childNode, namespaceManager);
208
                else if (childNode.LocalName == "readModeInkLockDown")
209
                    ctObj.readModeInkLockDown = CT_ReadingModeInkLockDown.Parse(childNode, namespaceManager);
210
                //else if(childNode.LocalName == "shapeDefaults")
211
                //    ctObj.shapeDefaults = XmlElement[].Parse(childNode, namespaceManager);
212
                else if (childNode.LocalName == "doNotEmbedSmartTags")
213
                    ctObj.doNotEmbedSmartTags = CT_OnOff.Parse(childNode, namespaceManager);
214
                else if (childNode.LocalName == "decimalSymbol")
215
                    ctObj.decimalSymbol = CT_String.Parse(childNode, namespaceManager);
216
                else if (childNode.LocalName == "listSeparator")
217
                    ctObj.listSeparator = CT_String.Parse(childNode, namespaceManager);
218
                else if (childNode.LocalName == "activeWritingStyle")
219
                    ctObj.activeWritingStyle.Add(CT_WritingStyle.Parse(childNode, namespaceManager));
220
                else if (childNode.LocalName == "docVars")
221
                    ctObj.docVars = CT_DocVars.Parse(childNode, namespaceManager);
222
                else if (childNode.LocalName == "attachedSchema")
223
                    ctObj.attachedSchema.Add(CT_String.Parse(childNode, namespaceManager));
224
                else if (childNode.LocalName == "smartTagType")
225
                    ctObj.smartTagType.Add(CT_SmartTagType.Parse(childNode, namespaceManager));
226
                else if (childNode.LocalName == "schemaLibrary")
227
                    ctObj.schemaLibrary.Add(CT_Schema.Parse(childNode, namespaceManager));
228
            }
229
            return ctObj;
230
        }
231

232

233

234
        internal void Write(StreamWriter sw)
235
        {
236
            sw.WriteLine("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
237
            sw.Write("<w:settings xmlns:mc=\"http://schemas.openxmlformats.org/markup-compatibility/2006\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:m=\"http://schemas.openxmlformats.org/officeDocument/2006/math\" ");
238
            sw.Write("xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w10=\"urn:schemas-microsoft-com:office:word\" xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" xmlns:sl=\"http://schemas.openxmlformats.org/schemaLibrary/2006/main\">");
239
            if (this.writeProtection != null)
240
                this.writeProtection.Write(sw, "writeProtection");
241
            if (this.view != null)
242
                this.view.Write(sw, "view");
243
            if (this.zoom != null)
244
                this.zoom.Write(sw, "zoom");
245
            if (this.removePersonalInformation != null)
246
                this.removePersonalInformation.Write(sw, "removePersonalInformation");
247
            if (this.removeDateAndTime != null)
248
                this.removeDateAndTime.Write(sw, "removeDateAndTime");
249
            if (this.doNotDisplayPageBoundaries != null)
250
                this.doNotDisplayPageBoundaries.Write(sw, "doNotDisplayPageBoundaries");
251
            if (this.displayBackgroundShape != null)
252
                this.displayBackgroundShape.Write(sw, "displayBackgroundShape");
253
            if (this.printPostScriptOverText != null)
254
                this.printPostScriptOverText.Write(sw, "printPostScriptOverText");
255
            if (this.printFractionalCharacterWidth != null)
256
                this.printFractionalCharacterWidth.Write(sw, "printFractionalCharacterWidth");
257
            if (this.printFormsData != null)
258
                this.printFormsData.Write(sw, "printFormsData");
259
            if (this.embedTrueTypeFonts != null)
260
                this.embedTrueTypeFonts.Write(sw, "embedTrueTypeFonts");
261
            if (this.embedSystemFonts != null)
262
                this.embedSystemFonts.Write(sw, "embedSystemFonts");
263
            if (this.saveSubsetFonts != null)
264
                this.saveSubsetFonts.Write(sw, "saveSubsetFonts");
265
            if (this.saveFormsData != null)
266
                this.saveFormsData.Write(sw, "saveFormsData");
267
            if (this.mirrorMargins != null)
268
                this.mirrorMargins.Write(sw, "mirrorMargins");
269
            if (this.alignBordersAndEdges != null)
270
                this.alignBordersAndEdges.Write(sw, "alignBordersAndEdges");
271
            if (this.bordersDoNotSurroundHeader != null)
272
                this.bordersDoNotSurroundHeader.Write(sw, "bordersDoNotSurroundHeader");
273
            if (this.bordersDoNotSurroundFooter != null)
274
                this.bordersDoNotSurroundFooter.Write(sw, "bordersDoNotSurroundFooter");
275
            if (this.gutterAtTop != null)
276
                this.gutterAtTop.Write(sw, "gutterAtTop");
277
            if (this.hideSpellingErrors != null)
278
                this.hideSpellingErrors.Write(sw, "hideSpellingErrors");
279
            if (this.hideGrammaticalErrors != null)
280
                this.hideGrammaticalErrors.Write(sw, "hideGrammaticalErrors");
281
            if (this.proofState != null)
282
                this.proofState.Write(sw, "proofState");
283
            if (this.formsDesign != null)
284
                this.formsDesign.Write(sw, "formsDesign");
285
            if (this.attachedTemplate != null)
286
                this.attachedTemplate.Write(sw, "attachedTemplate");
287
            if (this.linkStyles != null)
288
                this.linkStyles.Write(sw, "linkStyles");
289
            if (this.stylePaneFormatFilter != null)
290
                this.stylePaneFormatFilter.Write(sw, "stylePaneFormatFilter");
291
            if (this.stylePaneSortMethod != null)
292
                this.stylePaneSortMethod.Write(sw, "stylePaneSortMethod");
293
            if (this.documentType != null)
294
                this.documentType.Write(sw, "documentType");
295
            if (this.mailMerge != null)
296
                this.mailMerge.Write(sw, "mailMerge");
297
            if (this.revisionView != null)
298
                this.revisionView.Write(sw, "revisionView");
299
            if (this.trackRevisions != null)
300
                this.trackRevisions.Write(sw, "trackRevisions");
301
            if (this.doNotTrackMoves != null)
302
                this.doNotTrackMoves.Write(sw, "doNotTrackMoves");
303
            if (this.doNotTrackFormatting != null)
304
                this.doNotTrackFormatting.Write(sw, "doNotTrackFormatting");
305
            if (this.documentProtection != null)
306
                this.documentProtection.Write(sw, "documentProtection");
307
            if (this.autoFormatOverride != null)
308
                this.autoFormatOverride.Write(sw, "autoFormatOverride");
309
            if (this.styleLockTheme != null)
310
                this.styleLockTheme.Write(sw, "styleLockTheme");
311
            if (this.styleLockQFSet != null)
312
                this.styleLockQFSet.Write(sw, "styleLockQFSet");
313
            if (this.defaultTabStop != null)
314
                this.defaultTabStop.Write(sw, "defaultTabStop");
315
            if (this.autoHyphenation != null)
316
                this.autoHyphenation.Write(sw, "autoHyphenation");
317
            if (this.consecutiveHyphenLimit != null)
318
                this.consecutiveHyphenLimit.Write(sw, "consecutiveHyphenLimit");
319
            if (this.hyphenationZone != null)
320
                this.hyphenationZone.Write(sw, "hyphenationZone");
321
            if (this.doNotHyphenateCaps != null)
322
                this.doNotHyphenateCaps.Write(sw, "doNotHyphenateCaps");
323
            if (this.showEnvelope != null)
324
                this.showEnvelope.Write(sw, "showEnvelope");
325
            if (this.summaryLength != null)
326
                this.summaryLength.Write(sw, "summaryLength");
327
            if (this.clickAndTypeStyle != null)
328
                this.clickAndTypeStyle.Write(sw, "clickAndTypeStyle");
329
            if (this.defaultTableStyle != null)
330
                this.defaultTableStyle.Write(sw, "defaultTableStyle");
331
            if (this.evenAndOddHeaders != null)
332
                this.evenAndOddHeaders.Write(sw, "evenAndOddHeaders");
333
            if (this.bookFoldRevPrinting != null)
334
                this.bookFoldRevPrinting.Write(sw, "bookFoldRevPrinting");
335
            if (this.bookFoldPrinting != null)
336
                this.bookFoldPrinting.Write(sw, "bookFoldPrinting");
337
            if (this.bookFoldPrintingSheets != null)
338
                this.bookFoldPrintingSheets.Write(sw, "bookFoldPrintingSheets");
339
            if (this.drawingGridHorizontalSpacing != null)
340
                this.drawingGridHorizontalSpacing.Write(sw, "drawingGridHorizontalSpacing");
341
            if (this.drawingGridVerticalSpacing != null)
342
                this.drawingGridVerticalSpacing.Write(sw, "drawingGridVerticalSpacing");
343
            if (this.displayHorizontalDrawingGridEvery != null)
344
                this.displayHorizontalDrawingGridEvery.Write(sw, "displayHorizontalDrawingGridEvery");
345
            if (this.displayVerticalDrawingGridEvery != null)
346
                this.displayVerticalDrawingGridEvery.Write(sw, "displayVerticalDrawingGridEvery");
347
            if (this.doNotUseMarginsForDrawingGridOrigin != null)
348
                this.doNotUseMarginsForDrawingGridOrigin.Write(sw, "doNotUseMarginsForDrawingGridOrigin");
349
            if (this.drawingGridHorizontalOrigin != null)
350
                this.drawingGridHorizontalOrigin.Write(sw, "drawingGridHorizontalOrigin");
351
            if (this.drawingGridVerticalOrigin != null)
352
                this.drawingGridVerticalOrigin.Write(sw, "drawingGridVerticalOrigin");
353
            if (this.doNotShadeFormData != null)
354
                this.doNotShadeFormData.Write(sw, "doNotShadeFormData");
355
            if (this.noPunctuationKerning != null)
356
                this.noPunctuationKerning.Write(sw, "noPunctuationKerning");
357
            if (this.characterSpacingControl != null)
358
                this.characterSpacingControl.Write(sw, "characterSpacingControl");
359
            if (this.printTwoOnOne != null)
360
                this.printTwoOnOne.Write(sw, "printTwoOnOne");
361
            if (this.strictFirstAndLastChars != null)
362
                this.strictFirstAndLastChars.Write(sw, "strictFirstAndLastChars");
363
            if (this.noLineBreaksAfter != null)
364
                this.noLineBreaksAfter.Write(sw, "noLineBreaksAfter");
365
            if (this.noLineBreaksBefore != null)
366
                this.noLineBreaksBefore.Write(sw, "noLineBreaksBefore");
367
            if (this.savePreviewPicture != null)
368
                this.savePreviewPicture.Write(sw, "savePreviewPicture");
369
            if (this.doNotValidateAgainstSchema != null)
370
                this.doNotValidateAgainstSchema.Write(sw, "doNotValidateAgainstSchema");
371
            if (this.saveInvalidXml != null)
372
                this.saveInvalidXml.Write(sw, "saveInvalidXml");
373
            if (this.ignoreMixedContent != null)
374
                this.ignoreMixedContent.Write(sw, "ignoreMixedContent");
375
            if (this.alwaysShowPlaceholderText != null)
376
                this.alwaysShowPlaceholderText.Write(sw, "alwaysShowPlaceholderText");
377
            if (this.doNotDemarcateInvalidXml != null)
378
                this.doNotDemarcateInvalidXml.Write(sw, "doNotDemarcateInvalidXml");
379
            if (this.saveXmlDataOnly != null)
380
                this.saveXmlDataOnly.Write(sw, "saveXmlDataOnly");
381
            if (this.useXSLTWhenSaving != null)
382
                this.useXSLTWhenSaving.Write(sw, "useXSLTWhenSaving");
383
            if (this.saveThroughXslt != null)
384
                this.saveThroughXslt.Write(sw, "saveThroughXslt");
385
            if (this.showXMLTags != null)
386
                this.showXMLTags.Write(sw, "showXMLTags");
387
            if (this.alwaysMergeEmptyNamespace != null)
388
                this.alwaysMergeEmptyNamespace.Write(sw, "alwaysMergeEmptyNamespace");
389
            if (this.updateFields != null)
390
                this.updateFields.Write(sw, "updateFields");
391
            //if (this.hdrShapeDefaults != null)
392
            //    this.hdrShapeDefaults.Write(sw, "hdrShapeDefaults");
393
            if (this.footnotePr != null)
394
                this.footnotePr.Write(sw, "footnotePr");
395
            if (this.endnotePr != null)
396
                this.endnotePr.Write(sw, "endnotePr");
397
            if (this.compat != null)
398
                this.compat.Write(sw, "compat");
399
            if (this.rsids != null)
400
                this.rsids.Write(sw, "rsids");
401
            if (this.mathPr != null)
402
                this.mathPr.Write(sw, "mathPr");
403
            if (this.uiCompat97To2003 != null)
404
                this.uiCompat97To2003.Write(sw, "uiCompat97To2003");
405
            if (this.themeFontLang != null)
406
                this.themeFontLang.Write(sw, "themeFontLang");
407
            if (this.clrSchemeMapping != null)
408
                this.clrSchemeMapping.Write(sw, "clrSchemeMapping");
409
            if (this.doNotIncludeSubdocsInStats != null)
410
                this.doNotIncludeSubdocsInStats.Write(sw, "doNotIncludeSubdocsInStats");
411
            if (this.doNotAutoCompressPictures != null)
412
                this.doNotAutoCompressPictures.Write(sw, "doNotAutoCompressPictures");
413
            if (this.forceUpgrade != null)
414
                sw.Write("<w:forceUpgrade/>");
415
            if (this.captions != null)
416
                this.captions.Write(sw, "captions");
417
            if (this.readModeInkLockDown != null)
418
                this.readModeInkLockDown.Write(sw, "readModeInkLockDown");
419
            //if (this.shapeDefaults != null)
420
            //    this.shapeDefaults.Write(sw, "shapeDefaults");
421
            if (this.doNotEmbedSmartTags != null)
422
                this.doNotEmbedSmartTags.Write(sw, "doNotEmbedSmartTags");
423
            if (this.decimalSymbol != null)
424
                this.decimalSymbol.Write(sw, "decimalSymbol");
425
            if (this.listSeparator != null)
426
                this.listSeparator.Write(sw, "listSeparator");
427
            if (this.activeWritingStyle != null)
428
            {
429
                foreach (CT_WritingStyle x in this.activeWritingStyle)
430
                {
431
                    x.Write(sw, "activeWritingStyle");
432
                }
433
            }
434
            if (this.docVars != null)
435
                this.docVars.Write(sw, "docVars");
436
            if (this.attachedSchema != null)
437
            {
438
                foreach (CT_String x in this.attachedSchema)
439
                {
440
                    x.Write(sw, "attachedSchema");
441
                }
442
            }
443
            if (this.smartTagType != null)
444
            {
445
                foreach (CT_SmartTagType x in this.smartTagType)
446
                {
447
                    x.Write(sw, "smartTagType");
448
                }
449
            }
450
            if (this.schemaLibrary != null)
451
            {
452
                foreach (CT_Schema x in this.schemaLibrary)
453
                {
454
                    x.Write(sw, "schemaLibrary");
455
                }
456
            }
457
            sw.Write("</w:settings>");
458
        }
459

460
        private CT_WriteProtection writeProtectionField;
461

462
        private CT_View viewField;
463

464
        private CT_Zoom zoomField;
465

466
        private CT_OnOff removePersonalInformationField;
467

468
        private CT_OnOff removeDateAndTimeField;
469

470
        private CT_OnOff doNotDisplayPageBoundariesField;
471

472
        private CT_OnOff displayBackgroundShapeField;
473

474
        private CT_OnOff printPostScriptOverTextField;
475

476
        private CT_OnOff printFractionalCharacterWidthField;
477

478
        private CT_OnOff printFormsDataField;
479

480
        private CT_OnOff embedTrueTypeFontsField;
481

482
        private CT_OnOff embedSystemFontsField;
483

484
        private CT_OnOff saveSubsetFontsField;
485

486
        private CT_OnOff saveFormsDataField;
487

488
        private CT_OnOff mirrorMarginsField;
489

490
        private CT_OnOff alignBordersAndEdgesField;
491

492
        private CT_OnOff bordersDoNotSurroundHeaderField;
493

494
        private CT_OnOff bordersDoNotSurroundFooterField;
495

496
        private CT_OnOff gutterAtTopField;
497

498
        private CT_OnOff hideSpellingErrorsField;
499

500
        private CT_OnOff hideGrammaticalErrorsField;
501

502
        private List<CT_WritingStyle> activeWritingStyleField;
503

504
        private CT_Proof proofStateField;
505

506
        private CT_OnOff formsDesignField;
507

508
        private CT_Rel attachedTemplateField;
509

510
        private CT_OnOff linkStylesField;
511

512
        private CT_ShortHexNumber stylePaneFormatFilterField;
513

514
        private CT_ShortHexNumber stylePaneSortMethodField;
515

516
        private CT_DocType documentTypeField;
517

518
        private CT_MailMerge mailMergeField;
519

520
        private CT_TrackChangesView revisionViewField;
521

522
        private CT_OnOff trackRevisionsField;
523

524
        private CT_OnOff doNotTrackMovesField;
525

526
        private CT_OnOff doNotTrackFormattingField;
527

528
        private CT_DocProtect documentProtectionField;
529

530
        private CT_OnOff autoFormatOverrideField;
531

532
        private CT_OnOff styleLockThemeField;
533

534
        private CT_OnOff styleLockQFSetField;
535

536
        private CT_TwipsMeasure defaultTabStopField;
537

538
        private CT_OnOff autoHyphenationField;
539

540
        private CT_DecimalNumber consecutiveHyphenLimitField;
541

542
        private CT_TwipsMeasure hyphenationZoneField;
543

544
        private CT_OnOff doNotHyphenateCapsField;
545

546
        private CT_OnOff showEnvelopeField;
547

548
        private CT_DecimalNumber summaryLengthField;
549

550
        private CT_String clickAndTypeStyleField;
551

552
        private CT_String defaultTableStyleField;
553

554
        private CT_OnOff evenAndOddHeadersField;
555

556
        private CT_OnOff bookFoldRevPrintingField;
557

558
        private CT_OnOff bookFoldPrintingField;
559

560
        private CT_DecimalNumber bookFoldPrintingSheetsField;
561

562
        private CT_TwipsMeasure drawingGridHorizontalSpacingField;
563

564
        private CT_TwipsMeasure drawingGridVerticalSpacingField;
565

566
        private CT_DecimalNumber displayHorizontalDrawingGridEveryField;
567

568
        private CT_DecimalNumber displayVerticalDrawingGridEveryField;
569

570
        private CT_OnOff doNotUseMarginsForDrawingGridOriginField;
571

572
        private CT_TwipsMeasure drawingGridHorizontalOriginField;
573

574
        private CT_TwipsMeasure drawingGridVerticalOriginField;
575

576
        private CT_OnOff doNotShadeFormDataField;
577

578
        private CT_OnOff noPunctuationKerningField;
579

580
        private CT_CharacterSpacing characterSpacingControlField;
581

582
        private CT_OnOff printTwoOnOneField;
583

584
        private CT_OnOff strictFirstAndLastCharsField;
585

586
        private CT_Kinsoku noLineBreaksAfterField;
587

588
        private CT_Kinsoku noLineBreaksBeforeField;
589

590
        private CT_OnOff savePreviewPictureField;
591

592
        private CT_OnOff doNotValidateAgainstSchemaField;
593

594
        private CT_OnOff saveInvalidXmlField;
595

596
        private CT_OnOff ignoreMixedContentField;
597

598
        private CT_OnOff alwaysShowPlaceholderTextField;
599

600
        private CT_OnOff doNotDemarcateInvalidXmlField;
601

602
        private CT_OnOff saveXmlDataOnlyField;
603

604
        private CT_OnOff useXSLTWhenSavingField;
605

606
        private CT_SaveThroughXslt saveThroughXsltField;
607

608
        private CT_OnOff showXMLTagsField;
609

610
        private CT_OnOff alwaysMergeEmptyNamespaceField;
611

612
        private CT_OnOff updateFieldsField;
613

614
        private System.Xml.XmlElement[] hdrShapeDefaultsField;
615

616
        private CT_FtnDocProps footnotePrField;
617

618
        private CT_EdnDocProps endnotePrField;
619

620
        private CT_Compat compatField;
621

622
        private CT_DocVars docVarsField;
623

624
        private CT_DocRsids rsidsField;
625

626
        private NPOI.OpenXmlFormats.Shared.CT_MathPr mathPrField;
627

628
        private CT_OnOff uiCompat97To2003Field;
629

630
        private List<CT_String> attachedSchemaField;
631

632
        private CT_Language themeFontLangField;
633

634
        private CT_ColorSchemeMapping clrSchemeMappingField;
635

636
        private CT_OnOff doNotIncludeSubdocsInStatsField;
637

638
        private CT_OnOff doNotAutoCompressPicturesField;
639

640
        private CT_Empty forceUpgradeField;
641

642
        private CT_Captions captionsField;
643

644
        private CT_ReadingModeInkLockDown readModeInkLockDownField;
645

646
        private List<CT_SmartTagType> smartTagTypeField;
647

648
        private List<CT_Schema> schemaLibraryField;
649

650
        private System.Xml.XmlElement[] shapeDefaultsField;
651

652
        private CT_OnOff doNotEmbedSmartTagsField;
653

654
        private CT_String decimalSymbolField;
655

656
        private CT_String listSeparatorField;
657

658
        public CT_Settings()
659
        {
660
            this.listSeparatorField = new CT_String();
661
            this.listSeparator.val = ",";
662
            
663
            this.decimalSymbolField = new CT_String();
664
            this.decimalSymbol.val = ".";
665
            //this.doNotEmbedSmartTagsField = new CT_OnOff();
666
            this.shapeDefaultsField = new System.Xml.XmlElement[0];
667
            //this.schemaLibraryField = new List<CT_Schema>();
668
            //this.smartTagTypeField = new List<CT_SmartTagType>();
669
            //this.readModeInkLockDownField = new CT_ReadingModeInkLockDown();
670
            //this.captionsField = new CT_Captions();
671
            //this.forceUpgradeField = new CT_Empty();
672
            //this.doNotAutoCompressPicturesField = new CT_OnOff();
673
            //this.doNotIncludeSubdocsInStatsField = new CT_OnOff();
674
            this.clrSchemeMappingField = new CT_ColorSchemeMapping();
675
            this.clrSchemeMapping.bg1 = ST_ColorSchemeIndex.light1;
676
            this.clrSchemeMapping.t1 = ST_ColorSchemeIndex.dark1;
677
            this.clrSchemeMapping.bg2 = ST_ColorSchemeIndex.light2;
678
            this.clrSchemeMapping.t2 = ST_ColorSchemeIndex.dark2;
679
            this.clrSchemeMapping.accent1 = ST_ColorSchemeIndex.accent1;
680
            this.clrSchemeMapping.accent2 = ST_ColorSchemeIndex.accent2;
681
            this.clrSchemeMapping.accent3 = ST_ColorSchemeIndex.accent3;
682
            this.clrSchemeMapping.accent4 = ST_ColorSchemeIndex.accent4;
683
            this.clrSchemeMapping.accent5 = ST_ColorSchemeIndex.accent5;
684
            this.clrSchemeMapping.accent6 = ST_ColorSchemeIndex.accent6;
685
            this.clrSchemeMapping.hyperlink = ST_ColorSchemeIndex.hyperlink;
686
            this.clrSchemeMapping.followedHyperlink = ST_ColorSchemeIndex.followedHyperlink;
687
            this.themeFontLangField = new CT_Language();
688
            this.themeFontLang.val = "en-US";
689
            this.themeFontLang.eastAsia = "zh-CN";
690
            //this.attachedSchemaField = new List<CT_String>();
691
            //this.uiCompat97To2003Field = new CT_OnOff();
692
            this.mathPrField = new NPOI.OpenXmlFormats.Shared.CT_MathPr();
693
            this.rsidsField = new CT_DocRsids();
694
            //this.docVarsField = new List<CT_DocVar>();
695
            this.compatField = new CT_Compat();
696
            //this.endnotePrField = new CT_EdnDocProps();
697
            //this.footnotePrField = new CT_FtnDocProps();
698
            //this.hdrShapeDefaultsField = new System.Xml.XmlElement[0];
699
            //this.updateFieldsField = new CT_OnOff();
700
            //this.alwaysMergeEmptyNamespaceField = new CT_OnOff();
701
            //this.showXMLTagsField = new CT_OnOff();
702
            //this.saveThroughXsltField = new CT_SaveThroughXslt();
703
            //this.useXSLTWhenSavingField = new CT_OnOff();
704
            //this.saveXmlDataOnlyField = new CT_OnOff();
705
            //this.doNotDemarcateInvalidXmlField = new CT_OnOff();
706
            //this.alwaysShowPlaceholderTextField = new CT_OnOff();
707
            //this.ignoreMixedContentField = new CT_OnOff();
708
            //this.saveInvalidXmlField = new CT_OnOff();
709
            //this.doNotValidateAgainstSchemaField = new CT_OnOff();
710
            //this.savePreviewPictureField = new CT_OnOff();
711
            //this.noLineBreaksBeforeField = new CT_Kinsoku();
712
            //this.noLineBreaksAfterField = new CT_Kinsoku();
713
            //this.strictFirstAndLastCharsField = new CT_OnOff();
714
            //this.printTwoOnOneField = new CT_OnOff();
715
            this.characterSpacingControlField = new CT_CharacterSpacing();
716
            this.characterSpacingControl.val = ST_CharacterSpacing.compressPunctuation;
717
            //this.noPunctuationKerningField = new CT_OnOff();
718
            //this.doNotShadeFormDataField = new CT_OnOff();
719
            //this.drawingGridVerticalOriginField = new CT_TwipsMeasure();
720
            //this.drawingGridHorizontalOriginField = new CT_TwipsMeasure();
721
            //this.doNotUseMarginsForDrawingGridOriginField = new CT_OnOff();
722
            this.displayVerticalDrawingGridEveryField = new CT_DecimalNumber();
723
            this.displayVerticalDrawingGridEvery.val = "2";
724
            this.displayHorizontalDrawingGridEveryField = new CT_DecimalNumber();
725
            this.displayHorizontalDrawingGridEvery.val = "0";
726
            this.drawingGridVerticalSpacingField = new CT_TwipsMeasure();
727
            this.drawingGridVerticalSpacing.val = 156;
728
            //this.drawingGridHorizontalSpacingField = new CT_TwipsMeasure();
729
            //this.bookFoldPrintingSheetsField = new CT_DecimalNumber();
730
            //this.bookFoldPrintingField = new CT_OnOff();
731
            //this.bookFoldRevPrintingField = new CT_OnOff();
732
            //this.evenAndOddHeadersField = new CT_OnOff();
733
            //this.defaultTableStyleField = new CT_String();
734
            //this.clickAndTypeStyleField = new CT_String();
735
            //this.summaryLengthField = new CT_DecimalNumber();
736
            //this.showEnvelopeField = new CT_OnOff();
737
            //this.doNotHyphenateCapsField = new CT_OnOff();
738
            //this.hyphenationZoneField = new CT_TwipsMeasure();
739
            //this.consecutiveHyphenLimitField = new CT_DecimalNumber();
740
            //this.autoHyphenationField = new CT_OnOff();
741
            this.defaultTabStopField = new CT_TwipsMeasure();
742
            this.defaultTabStopField.val = 420;
743
            //this.styleLockQFSetField = new CT_OnOff();
744
            //this.styleLockThemeField = new CT_OnOff();
745
            //this.autoFormatOverrideField = new CT_OnOff();
746
            //this.documentProtectionField = new CT_DocProtect();
747
            //this.doNotTrackFormattingField = new CT_OnOff();
748
            //this.doNotTrackMovesField = new CT_OnOff();
749
            //this.trackRevisionsField = new CT_OnOff();
750
            //this.revisionViewField = new CT_TrackChangesView();
751
            //this.mailMergeField = new CT_MailMerge();
752
            //this.documentTypeField = new CT_DocType();
753
            //this.stylePaneSortMethodField = new CT_ShortHexNumber();
754
            //this.stylePaneFormatFilterField = new CT_ShortHexNumber();
755
            //this.linkStylesField = new CT_OnOff();
756
            //this.attachedTemplateField = new CT_Rel();
757
            //this.formsDesignField = new CT_OnOff();
758
            //this.proofStateField = new CT_Proof();
759
            //this.activeWritingStyleField = new List<CT_WritingStyle>();
760
            //this.hideGrammaticalErrorsField = new CT_OnOff();
761
            //this.hideSpellingErrorsField = new CT_OnOff();
762
            //this.gutterAtTopField = new CT_OnOff();
763
            this.bordersDoNotSurroundFooterField = new CT_OnOff();
764
            this.bordersDoNotSurroundHeaderField = new CT_OnOff();
765
            //this.alignBordersAndEdgesField = new CT_OnOff();
766
            //this.mirrorMarginsField = new CT_OnOff();
767
            //this.saveFormsDataField = new CT_OnOff();
768
            //this.saveSubsetFontsField = new CT_OnOff();
769
            //this.embedSystemFontsField = new CT_OnOff();
770
            //this.embedTrueTypeFontsField = new CT_OnOff();
771
            //this.printFormsDataField = new CT_OnOff();
772
            //this.printFractionalCharacterWidthField = new CT_OnOff();
773
            //this.printPostScriptOverTextField = new CT_OnOff();
774
            //this.displayBackgroundShapeField = new CT_OnOff();
775
            //this.doNotDisplayPageBoundariesField = new CT_OnOff();
776
            //this.removeDateAndTimeField = new CT_OnOff();
777
            //this.removePersonalInformationField = new CT_OnOff();
778
            this.zoomField = new CT_Zoom();
779
            //this.viewField = new CT_View();
780
            //this.writeProtectionField = new CT_WriteProtection();
781
        }
782

783
        [XmlElement(Order = 0)]
784
        public CT_WriteProtection writeProtection
785
        {
786
            get
787
            {
788
                return this.writeProtectionField;
789
            }
790
            set
791
            {
792
                this.writeProtectionField = value;
793
            }
794
        }
795

796
        [XmlElement(Order = 1)]
797
        public CT_View view
798
        {
799
            get
800
            {
801
                return this.viewField;
802
            }
803
            set
804
            {
805
                this.viewField = value;
806
            }
807
        }
808

809
        [XmlElement(Order = 2)]
810
        public CT_Zoom zoom
811
        {
812
            get
813
            {
814
                return this.zoomField;
815
            }
816
            set
817
            {
818
                this.zoomField = value;
819
            }
820
        }
821

822
        [XmlElement(Order = 3)]
823
        public CT_OnOff removePersonalInformation
824
        {
825
            get
826
            {
827
                return this.removePersonalInformationField;
828
            }
829
            set
830
            {
831
                this.removePersonalInformationField = value;
832
            }
833
        }
834

835
        [XmlElement(Order = 4)]
836
        public CT_OnOff removeDateAndTime
837
        {
838
            get
839
            {
840
                return this.removeDateAndTimeField;
841
            }
842
            set
843
            {
844
                this.removeDateAndTimeField = value;
845
            }
846
        }
847

848
        [XmlElement(Order = 5)]
849
        public CT_OnOff doNotDisplayPageBoundaries
850
        {
851
            get
852
            {
853
                return this.doNotDisplayPageBoundariesField;
854
            }
855
            set
856
            {
857
                this.doNotDisplayPageBoundariesField = value;
858
            }
859
        }
860

861
        [XmlElement(Order = 6)]
862
        public CT_OnOff displayBackgroundShape
863
        {
864
            get
865
            {
866
                return this.displayBackgroundShapeField;
867
            }
868
            set
869
            {
870
                this.displayBackgroundShapeField = value;
871
            }
872
        }
873

874
        [XmlElement(Order = 7)]
875
        public CT_OnOff printPostScriptOverText
876
        {
877
            get
878
            {
879
                return this.printPostScriptOverTextField;
880
            }
881
            set
882
            {
883
                this.printPostScriptOverTextField = value;
884
            }
885
        }
886

887
        [XmlElement(Order = 8)]
888
        public CT_OnOff printFractionalCharacterWidth
889
        {
890
            get
891
            {
892
                return this.printFractionalCharacterWidthField;
893
            }
894
            set
895
            {
896
                this.printFractionalCharacterWidthField = value;
897
            }
898
        }
899

900
        [XmlElement(Order = 9)]
901
        public CT_OnOff printFormsData
902
        {
903
            get
904
            {
905
                return this.printFormsDataField;
906
            }
907
            set
908
            {
909
                this.printFormsDataField = value;
910
            }
911
        }
912

913
        [XmlElement(Order = 10)]
914
        public CT_OnOff embedTrueTypeFonts
915
        {
916
            get
917
            {
918
                return this.embedTrueTypeFontsField;
919
            }
920
            set
921
            {
922
                this.embedTrueTypeFontsField = value;
923
            }
924
        }
925

926
        [XmlElement(Order = 11)]
927
        public CT_OnOff embedSystemFonts
928
        {
929
            get
930
            {
931
                return this.embedSystemFontsField;
932
            }
933
            set
934
            {
935
                this.embedSystemFontsField = value;
936
            }
937
        }
938

939
        [XmlElement(Order = 12)]
940
        public CT_OnOff saveSubsetFonts
941
        {
942
            get
943
            {
944
                return this.saveSubsetFontsField;
945
            }
946
            set
947
            {
948
                this.saveSubsetFontsField = value;
949
            }
950
        }
951

952
        [XmlElement(Order = 13)]
953
        public CT_OnOff saveFormsData
954
        {
955
            get
956
            {
957
                return this.saveFormsDataField;
958
            }
959
            set
960
            {
961
                this.saveFormsDataField = value;
962
            }
963
        }
964

965
        [XmlElement(Order = 14)]
966
        public CT_OnOff mirrorMargins
967
        {
968
            get
969
            {
970
                return this.mirrorMarginsField;
971
            }
972
            set
973
            {
974
                this.mirrorMarginsField = value;
975
            }
976
        }
977

978
        [XmlElement(Order = 15)]
979
        public CT_OnOff alignBordersAndEdges
980
        {
981
            get
982
            {
983
                return this.alignBordersAndEdgesField;
984
            }
985
            set
986
            {
987
                this.alignBordersAndEdgesField = value;
988
            }
989
        }
990

991
        [XmlElement(Order = 16)]
992
        public CT_OnOff bordersDoNotSurroundHeader
993
        {
994
            get
995
            {
996
                return this.bordersDoNotSurroundHeaderField;
997
            }
998
            set
999
            {
1000
                this.bordersDoNotSurroundHeaderField = value;
1001
            }
1002
        }
1003

1004
        [XmlElement(Order = 17)]
1005
        public CT_OnOff bordersDoNotSurroundFooter
1006
        {
1007
            get
1008
            {
1009
                return this.bordersDoNotSurroundFooterField;
1010
            }
1011
            set
1012
            {
1013
                this.bordersDoNotSurroundFooterField = value;
1014
            }
1015
        }
1016

1017
        [XmlElement(Order = 18)]
1018
        public CT_OnOff gutterAtTop
1019
        {
1020
            get
1021
            {
1022
                return this.gutterAtTopField;
1023
            }
1024
            set
1025
            {
1026
                this.gutterAtTopField = value;
1027
            }
1028
        }
1029

1030
        [XmlElement(Order = 19)]
1031
        public CT_OnOff hideSpellingErrors
1032
        {
1033
            get
1034
            {
1035
                return this.hideSpellingErrorsField;
1036
            }
1037
            set
1038
            {
1039
                this.hideSpellingErrorsField = value;
1040
            }
1041
        }
1042

1043
        [XmlElement(Order = 20)]
1044
        public CT_OnOff hideGrammaticalErrors
1045
        {
1046
            get
1047
            {
1048
                return this.hideGrammaticalErrorsField;
1049
            }
1050
            set
1051
            {
1052
                this.hideGrammaticalErrorsField = value;
1053
            }
1054
        }
1055

1056
        [XmlElement("activeWritingStyle", Order = 21)]
1057
        public List<CT_WritingStyle> activeWritingStyle
1058
        {
1059
            get
1060
            {
1061
                return this.activeWritingStyleField;
1062
            }
1063
            set
1064
            {
1065
                this.activeWritingStyleField = value;
1066
            }
1067
        }
1068

1069
        [XmlElement(Order = 22)]
1070
        public CT_Proof proofState
1071
        {
1072
            get
1073
            {
1074
                return this.proofStateField;
1075
            }
1076
            set
1077
            {
1078
                this.proofStateField = value;
1079
            }
1080
        }
1081

1082
        [XmlElement(Order = 23)]
1083
        public CT_OnOff formsDesign
1084
        {
1085
            get
1086
            {
1087
                return this.formsDesignField;
1088
            }
1089
            set
1090
            {
1091
                this.formsDesignField = value;
1092
            }
1093
        }
1094

1095
        [XmlElement(Order = 24)]
1096
        public CT_Rel attachedTemplate
1097
        {
1098
            get
1099
            {
1100
                return this.attachedTemplateField;
1101
            }
1102
            set
1103
            {
1104
                this.attachedTemplateField = value;
1105
            }
1106
        }
1107

1108
        [XmlElement(Order = 25)]
1109
        public CT_OnOff linkStyles
1110
        {
1111
            get
1112
            {
1113
                return this.linkStylesField;
1114
            }
1115
            set
1116
            {
1117
                this.linkStylesField = value;
1118
            }
1119
        }
1120

1121
        [XmlElement(Order = 26)]
1122
        public CT_ShortHexNumber stylePaneFormatFilter
1123
        {
1124
            get
1125
            {
1126
                return this.stylePaneFormatFilterField;
1127
            }
1128
            set
1129
            {
1130
                this.stylePaneFormatFilterField = value;
1131
            }
1132
        }
1133

1134
        [XmlElement(Order = 27)]
1135
        public CT_ShortHexNumber stylePaneSortMethod
1136
        {
1137
            get
1138
            {
1139
                return this.stylePaneSortMethodField;
1140
            }
1141
            set
1142
            {
1143
                this.stylePaneSortMethodField = value;
1144
            }
1145
        }
1146

1147
        [XmlElement(Order = 28)]
1148
        public CT_DocType documentType
1149
        {
1150
            get
1151
            {
1152
                return this.documentTypeField;
1153
            }
1154
            set
1155
            {
1156
                this.documentTypeField = value;
1157
            }
1158
        }
1159

1160
        [XmlElement(Order = 29)]
1161
        public CT_MailMerge mailMerge
1162
        {
1163
            get
1164
            {
1165
                return this.mailMergeField;
1166
            }
1167
            set
1168
            {
1169
                this.mailMergeField = value;
1170
            }
1171
        }
1172

1173
        [XmlElement(Order = 30)]
1174
        public CT_TrackChangesView revisionView
1175
        {
1176
            get
1177
            {
1178
                return this.revisionViewField;
1179
            }
1180
            set
1181
            {
1182
                this.revisionViewField = value;
1183
            }
1184
        }
1185

1186
        [XmlElement(Order = 31)]
1187
        public CT_OnOff trackRevisions
1188
        {
1189
            get
1190
            {
1191
                return this.trackRevisionsField;
1192
            }
1193
            set
1194
            {
1195
                this.trackRevisionsField = value;
1196
            }
1197
        }
1198

1199
        [XmlElement(Order = 32)]
1200
        public CT_OnOff doNotTrackMoves
1201
        {
1202
            get
1203
            {
1204
                return this.doNotTrackMovesField;
1205
            }
1206
            set
1207
            {
1208
                this.doNotTrackMovesField = value;
1209
            }
1210
        }
1211

1212
        [XmlElement(Order = 33)]
1213
        public CT_OnOff doNotTrackFormatting
1214
        {
1215
            get
1216
            {
1217
                return this.doNotTrackFormattingField;
1218
            }
1219
            set
1220
            {
1221
                this.doNotTrackFormattingField = value;
1222
            }
1223
        }
1224

1225
        [XmlElement(Order = 34)]
1226
        public CT_DocProtect documentProtection
1227
        {
1228
            get
1229
            {
1230
                return this.documentProtectionField;
1231
            }
1232
            set
1233
            {
1234
                this.documentProtectionField = value;
1235
            }
1236
        }
1237

1238
        [XmlElement(Order = 35)]
1239
        public CT_OnOff autoFormatOverride
1240
        {
1241
            get
1242
            {
1243
                return this.autoFormatOverrideField;
1244
            }
1245
            set
1246
            {
1247
                this.autoFormatOverrideField = value;
1248
            }
1249
        }
1250

1251
        [XmlElement(Order = 36)]
1252
        public CT_OnOff styleLockTheme
1253
        {
1254
            get
1255
            {
1256
                return this.styleLockThemeField;
1257
            }
1258
            set
1259
            {
1260
                this.styleLockThemeField = value;
1261
            }
1262
        }
1263

1264
        [XmlElement(Order = 37)]
1265
        public CT_OnOff styleLockQFSet
1266
        {
1267
            get
1268
            {
1269
                return this.styleLockQFSetField;
1270
            }
1271
            set
1272
            {
1273
                this.styleLockQFSetField = value;
1274
            }
1275
        }
1276

1277
        [XmlElement(Order = 38)]
1278
        public CT_TwipsMeasure defaultTabStop
1279
        {
1280
            get
1281
            {
1282
                return this.defaultTabStopField;
1283
            }
1284
            set
1285
            {
1286
                this.defaultTabStopField = value;
1287
            }
1288
        }
1289

1290
        [XmlElement(Order = 39)]
1291
        public CT_OnOff autoHyphenation
1292
        {
1293
            get
1294
            {
1295
                return this.autoHyphenationField;
1296
            }
1297
            set
1298
            {
1299
                this.autoHyphenationField = value;
1300
            }
1301
        }
1302

1303
        [XmlElement(Order = 40)]
1304
        public CT_DecimalNumber consecutiveHyphenLimit
1305
        {
1306
            get
1307
            {
1308
                return this.consecutiveHyphenLimitField;
1309
            }
1310
            set
1311
            {
1312
                this.consecutiveHyphenLimitField = value;
1313
            }
1314
        }
1315

1316
        [XmlElement(Order = 41)]
1317
        public CT_TwipsMeasure hyphenationZone
1318
        {
1319
            get
1320
            {
1321
                return this.hyphenationZoneField;
1322
            }
1323
            set
1324
            {
1325
                this.hyphenationZoneField = value;
1326
            }
1327
        }
1328

1329
        [XmlElement(Order = 42)]
1330
        public CT_OnOff doNotHyphenateCaps
1331
        {
1332
            get
1333
            {
1334
                return this.doNotHyphenateCapsField;
1335
            }
1336
            set
1337
            {
1338
                this.doNotHyphenateCapsField = value;
1339
            }
1340
        }
1341

1342
        [XmlElement(Order = 43)]
1343
        public CT_OnOff showEnvelope
1344
        {
1345
            get
1346
            {
1347
                return this.showEnvelopeField;
1348
            }
1349
            set
1350
            {
1351
                this.showEnvelopeField = value;
1352
            }
1353
        }
1354

1355
        [XmlElement(Order = 44)]
1356
        public CT_DecimalNumber summaryLength
1357
        {
1358
            get
1359
            {
1360
                return this.summaryLengthField;
1361
            }
1362
            set
1363
            {
1364
                this.summaryLengthField = value;
1365
            }
1366
        }
1367

1368
        [XmlElement(Order = 45)]
1369
        public CT_String clickAndTypeStyle
1370
        {
1371
            get
1372
            {
1373
                return this.clickAndTypeStyleField;
1374
            }
1375
            set
1376
            {
1377
                this.clickAndTypeStyleField = value;
1378
            }
1379
        }
1380

1381
        [XmlElement(Order = 46)]
1382
        public CT_String defaultTableStyle
1383
        {
1384
            get
1385
            {
1386
                return this.defaultTableStyleField;
1387
            }
1388
            set
1389
            {
1390
                this.defaultTableStyleField = value;
1391
            }
1392
        }
1393

1394
        [XmlElement(Order = 47)]
1395
        public CT_OnOff evenAndOddHeaders
1396
        {
1397
            get
1398
            {
1399
                return this.evenAndOddHeadersField;
1400
            }
1401
            set
1402
            {
1403
                this.evenAndOddHeadersField = value;
1404
            }
1405
        }
1406

1407
        [XmlElement(Order = 48)]
1408
        public CT_OnOff bookFoldRevPrinting
1409
        {
1410
            get
1411
            {
1412
                return this.bookFoldRevPrintingField;
1413
            }
1414
            set
1415
            {
1416
                this.bookFoldRevPrintingField = value;
1417
            }
1418
        }
1419

1420
        [XmlElement(Order = 49)]
1421
        public CT_OnOff bookFoldPrinting
1422
        {
1423
            get
1424
            {
1425
                return this.bookFoldPrintingField;
1426
            }
1427
            set
1428
            {
1429
                this.bookFoldPrintingField = value;
1430
            }
1431
        }
1432

1433
        [XmlElement(Order = 50)]
1434
        public CT_DecimalNumber bookFoldPrintingSheets
1435
        {
1436
            get
1437
            {
1438
                return this.bookFoldPrintingSheetsField;
1439
            }
1440
            set
1441
            {
1442
                this.bookFoldPrintingSheetsField = value;
1443
            }
1444
        }
1445

1446
        [XmlElement(Order = 51)]
1447
        public CT_TwipsMeasure drawingGridHorizontalSpacing
1448
        {
1449
            get
1450
            {
1451
                return this.drawingGridHorizontalSpacingField;
1452
            }
1453
            set
1454
            {
1455
                this.drawingGridHorizontalSpacingField = value;
1456
            }
1457
        }
1458

1459
        [XmlElement(Order = 52)]
1460
        public CT_TwipsMeasure drawingGridVerticalSpacing
1461
        {
1462
            get
1463
            {
1464
                return this.drawingGridVerticalSpacingField;
1465
            }
1466
            set
1467
            {
1468
                this.drawingGridVerticalSpacingField = value;
1469
            }
1470
        }
1471

1472
        [XmlElement(Order = 53)]
1473
        public CT_DecimalNumber displayHorizontalDrawingGridEvery
1474
        {
1475
            get
1476
            {
1477
                return this.displayHorizontalDrawingGridEveryField;
1478
            }
1479
            set
1480
            {
1481
                this.displayHorizontalDrawingGridEveryField = value;
1482
            }
1483
        }
1484

1485
        [XmlElement(Order = 54)]
1486
        public CT_DecimalNumber displayVerticalDrawingGridEvery
1487
        {
1488
            get
1489
            {
1490
                return this.displayVerticalDrawingGridEveryField;
1491
            }
1492
            set
1493
            {
1494
                this.displayVerticalDrawingGridEveryField = value;
1495
            }
1496
        }
1497

1498
        [XmlElement(Order = 55)]
1499
        public CT_OnOff doNotUseMarginsForDrawingGridOrigin
1500
        {
1501
            get
1502
            {
1503
                return this.doNotUseMarginsForDrawingGridOriginField;
1504
            }
1505
            set
1506
            {
1507
                this.doNotUseMarginsForDrawingGridOriginField = value;
1508
            }
1509
        }
1510

1511
        [XmlElement(Order = 56)]
1512
        public CT_TwipsMeasure drawingGridHorizontalOrigin
1513
        {
1514
            get
1515
            {
1516
                return this.drawingGridHorizontalOriginField;
1517
            }
1518
            set
1519
            {
1520
                this.drawingGridHorizontalOriginField = value;
1521
            }
1522
        }
1523

1524
        [XmlElement(Order = 57)]
1525
        public CT_TwipsMeasure drawingGridVerticalOrigin
1526
        {
1527
            get
1528
            {
1529
                return this.drawingGridVerticalOriginField;
1530
            }
1531
            set
1532
            {
1533
                this.drawingGridVerticalOriginField = value;
1534
            }
1535
        }
1536

1537
        [XmlElement(Order = 58)]
1538
        public CT_OnOff doNotShadeFormData
1539
        {
1540
            get
1541
            {
1542
                return this.doNotShadeFormDataField;
1543
            }
1544
            set
1545
            {
1546
                this.doNotShadeFormDataField = value;
1547
            }
1548
        }
1549

1550
        [XmlElement(Order = 59)]
1551
        public CT_OnOff noPunctuationKerning
1552
        {
1553
            get
1554
            {
1555
                return this.noPunctuationKerningField;
1556
            }
1557
            set
1558
            {
1559
                this.noPunctuationKerningField = value;
1560
            }
1561
        }
1562

1563
        [XmlElement(Order = 60)]
1564
        public CT_CharacterSpacing characterSpacingControl
1565
        {
1566
            get
1567
            {
1568
                return this.characterSpacingControlField;
1569
            }
1570
            set
1571
            {
1572
                this.characterSpacingControlField = value;
1573
            }
1574
        }
1575

1576
        [XmlElement(Order = 61)]
1577
        public CT_OnOff printTwoOnOne
1578
        {
1579
            get
1580
            {
1581
                return this.printTwoOnOneField;
1582
            }
1583
            set
1584
            {
1585
                this.printTwoOnOneField = value;
1586
            }
1587
        }
1588

1589
        [XmlElement(Order = 62)]
1590
        public CT_OnOff strictFirstAndLastChars
1591
        {
1592
            get
1593
            {
1594
                return this.strictFirstAndLastCharsField;
1595
            }
1596
            set
1597
            {
1598
                this.strictFirstAndLastCharsField = value;
1599
            }
1600
        }
1601

1602
        [XmlElement(Order = 63)]
1603
        public CT_Kinsoku noLineBreaksAfter
1604
        {
1605
            get
1606
            {
1607
                return this.noLineBreaksAfterField;
1608
            }
1609
            set
1610
            {
1611
                this.noLineBreaksAfterField = value;
1612
            }
1613
        }
1614

1615
        [XmlElement(Order = 64)]
1616
        public CT_Kinsoku noLineBreaksBefore
1617
        {
1618
            get
1619
            {
1620
                return this.noLineBreaksBeforeField;
1621
            }
1622
            set
1623
            {
1624
                this.noLineBreaksBeforeField = value;
1625
            }
1626
        }
1627

1628
        [XmlElement(Order = 65)]
1629
        public CT_OnOff savePreviewPicture
1630
        {
1631
            get
1632
            {
1633
                return this.savePreviewPictureField;
1634
            }
1635
            set
1636
            {
1637
                this.savePreviewPictureField = value;
1638
            }
1639
        }
1640

1641
        [XmlElement(Order = 66)]
1642
        public CT_OnOff doNotValidateAgainstSchema
1643
        {
1644
            get
1645
            {
1646
                return this.doNotValidateAgainstSchemaField;
1647
            }
1648
            set
1649
            {
1650
                this.doNotValidateAgainstSchemaField = value;
1651
            }
1652
        }
1653

1654
        [XmlElement(Order = 67)]
1655
        public CT_OnOff saveInvalidXml
1656
        {
1657
            get
1658
            {
1659
                return this.saveInvalidXmlField;
1660
            }
1661
            set
1662
            {
1663
                this.saveInvalidXmlField = value;
1664
            }
1665
        }
1666

1667
        [XmlElement(Order = 68)]
1668
        public CT_OnOff ignoreMixedContent
1669
        {
1670
            get
1671
            {
1672
                return this.ignoreMixedContentField;
1673
            }
1674
            set
1675
            {
1676
                this.ignoreMixedContentField = value;
1677
            }
1678
        }
1679

1680
        [XmlElement(Order = 69)]
1681
        public CT_OnOff alwaysShowPlaceholderText
1682
        {
1683
            get
1684
            {
1685
                return this.alwaysShowPlaceholderTextField;
1686
            }
1687
            set
1688
            {
1689
                this.alwaysShowPlaceholderTextField = value;
1690
            }
1691
        }
1692

1693
        [XmlElement(Order = 70)]
1694
        public CT_OnOff doNotDemarcateInvalidXml
1695
        {
1696
            get
1697
            {
1698
                return this.doNotDemarcateInvalidXmlField;
1699
            }
1700
            set
1701
            {
1702
                this.doNotDemarcateInvalidXmlField = value;
1703
            }
1704
        }
1705

1706
        [XmlElement(Order = 71)]
1707
        public CT_OnOff saveXmlDataOnly
1708
        {
1709
            get
1710
            {
1711
                return this.saveXmlDataOnlyField;
1712
            }
1713
            set
1714
            {
1715
                this.saveXmlDataOnlyField = value;
1716
            }
1717
        }
1718

1719
        [XmlElement(Order = 72)]
1720
        public CT_OnOff useXSLTWhenSaving
1721
        {
1722
            get
1723
            {
1724
                return this.useXSLTWhenSavingField;
1725
            }
1726
            set
1727
            {
1728
                this.useXSLTWhenSavingField = value;
1729
            }
1730
        }
1731

1732
        [XmlElement(Order = 73)]
1733
        public CT_SaveThroughXslt saveThroughXslt
1734
        {
1735
            get
1736
            {
1737
                return this.saveThroughXsltField;
1738
            }
1739
            set
1740
            {
1741
                this.saveThroughXsltField = value;
1742
            }
1743
        }
1744

1745
        [XmlElement(Order = 74)]
1746
        public CT_OnOff showXMLTags
1747
        {
1748
            get
1749
            {
1750
                return this.showXMLTagsField;
1751
            }
1752
            set
1753
            {
1754
                this.showXMLTagsField = value;
1755
            }
1756
        }
1757

1758
        [XmlElement(Order = 75)]
1759
        public CT_OnOff alwaysMergeEmptyNamespace
1760
        {
1761
            get
1762
            {
1763
                return this.alwaysMergeEmptyNamespaceField;
1764
            }
1765
            set
1766
            {
1767
                this.alwaysMergeEmptyNamespaceField = value;
1768
            }
1769
        }
1770

1771
        [XmlElement(Order = 76)]
1772
        public CT_OnOff updateFields
1773
        {
1774
            get
1775
            {
1776
                return this.updateFieldsField;
1777
            }
1778
            set
1779
            {
1780
                this.updateFieldsField = value;
1781
            }
1782
        }
1783

1784
        [XmlArray(Order = 77)]
1785
        [XmlArrayItem("", Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
1786
        public System.Xml.XmlElement[] hdrShapeDefaults
1787
        {
1788
            get
1789
            {
1790
                return this.hdrShapeDefaultsField;
1791
            }
1792
            set
1793
            {
1794
                this.hdrShapeDefaultsField = value;
1795
            }
1796
        }
1797

1798
        [XmlElement(Order = 78)]
1799
        public CT_FtnDocProps footnotePr
1800
        {
1801
            get
1802
            {
1803
                return this.footnotePrField;
1804
            }
1805
            set
1806
            {
1807
                this.footnotePrField = value;
1808
            }
1809
        }
1810

1811
        [XmlElement(Order = 79)]
1812
        public CT_EdnDocProps endnotePr
1813
        {
1814
            get
1815
            {
1816
                return this.endnotePrField;
1817
            }
1818
            set
1819
            {
1820
                this.endnotePrField = value;
1821
            }
1822
        }
1823

1824
        [XmlElement(Order = 80)]
1825
        public CT_Compat compat
1826
        {
1827
            get
1828
            {
1829
                return this.compatField;
1830
            }
1831
            set
1832
            {
1833
                this.compatField = value;
1834
            }
1835
        }
1836

1837
        [XmlElement(Order = 81)]
1838
        public CT_DocVars docVars
1839
        {
1840
            get
1841
            {
1842
                return this.docVarsField;
1843
            }
1844
            set
1845
            {
1846
                this.docVarsField = value;
1847
            }
1848
        }
1849

1850
        [XmlElement(Order = 82)]
1851
        public CT_DocRsids rsids
1852
        {
1853
            get
1854
            {
1855
                return this.rsidsField;
1856
            }
1857
            set
1858
            {
1859
                this.rsidsField = value;
1860
            }
1861
        }
1862

1863
        [XmlElement(Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", Order = 83)]
1864
        public NPOI.OpenXmlFormats.Shared.CT_MathPr mathPr
1865
        {
1866
            get
1867
            {
1868
                return this.mathPrField;
1869
            }
1870
            set
1871
            {
1872
                this.mathPrField = value;
1873
            }
1874
        }
1875

1876
        [XmlElement(Order = 84)]
1877
        public CT_OnOff uiCompat97To2003
1878
        {
1879
            get
1880
            {
1881
                return this.uiCompat97To2003Field;
1882
            }
1883
            set
1884
            {
1885
                this.uiCompat97To2003Field = value;
1886
            }
1887
        }
1888

1889
        [XmlElement("attachedSchema", Order = 85)]
1890
        public List<CT_String> attachedSchema
1891
        {
1892
            get
1893
            {
1894
                return this.attachedSchemaField;
1895
            }
1896
            set
1897
            {
1898
                this.attachedSchemaField = value;
1899
            }
1900
        }
1901

1902
        [XmlElement(Order = 86)]
1903
        public CT_Language themeFontLang
1904
        {
1905
            get
1906
            {
1907
                return this.themeFontLangField;
1908
            }
1909
            set
1910
            {
1911
                this.themeFontLangField = value;
1912
            }
1913
        }
1914

1915
        [XmlElement(Order = 87)]
1916
        public CT_ColorSchemeMapping clrSchemeMapping
1917
        {
1918
            get
1919
            {
1920
                return this.clrSchemeMappingField;
1921
            }
1922
            set
1923
            {
1924
                this.clrSchemeMappingField = value;
1925
            }
1926
        }
1927

1928
        [XmlElement(Order = 88)]
1929
        public CT_OnOff doNotIncludeSubdocsInStats
1930
        {
1931
            get
1932
            {
1933
                return this.doNotIncludeSubdocsInStatsField;
1934
            }
1935
            set
1936
            {
1937
                this.doNotIncludeSubdocsInStatsField = value;
1938
            }
1939
        }
1940

1941
        [XmlElement(Order = 89)]
1942
        public CT_OnOff doNotAutoCompressPictures
1943
        {
1944
            get
1945
            {
1946
                return this.doNotAutoCompressPicturesField;
1947
            }
1948
            set
1949
            {
1950
                this.doNotAutoCompressPicturesField = value;
1951
            }
1952
        }
1953

1954
        [XmlElement(Order = 90)]
1955
        public CT_Empty forceUpgrade
1956
        {
1957
            get
1958
            {
1959
                return this.forceUpgradeField;
1960
            }
1961
            set
1962
            {
1963
                this.forceUpgradeField = value;
1964
            }
1965
        }
1966

1967
        [XmlElement(Order = 91)]
1968
        public CT_Captions captions
1969
        {
1970
            get
1971
            {
1972
                return this.captionsField;
1973
            }
1974
            set
1975
            {
1976
                this.captionsField = value;
1977
            }
1978
        }
1979

1980
        [XmlElement(Order = 92)]
1981
        public CT_ReadingModeInkLockDown readModeInkLockDown
1982
        {
1983
            get
1984
            {
1985
                return this.readModeInkLockDownField;
1986
            }
1987
            set
1988
            {
1989
                this.readModeInkLockDownField = value;
1990
            }
1991
        }
1992

1993
        [XmlElement("smartTagType", Order = 93)]
1994
        public List<CT_SmartTagType> smartTagType
1995
        {
1996
            get
1997
            {
1998
                return this.smartTagTypeField;
1999
            }
2000
            set
2001
            {
2002
                this.smartTagTypeField = value;
2003
            }
2004
        }
2005

2006
        [XmlArray(Namespace = "http://schemas.openxmlformats.org/schemaLibrary/2006/main", Order = 94)]
2007
        [XmlArrayItem("schema", IsNullable = false)]
2008
        public List<CT_Schema> schemaLibrary
2009
        {
2010
            get
2011
            {
2012
                return this.schemaLibraryField;
2013
            }
2014
            set
2015
            {
2016
                this.schemaLibraryField = value;
2017
            }
2018
        }
2019

2020
        [XmlArray(Order = 95)]
2021
        [XmlArrayItem("", Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
2022
        public System.Xml.XmlElement[] shapeDefaults
2023
        {
2024
            get
2025
            {
2026
                return this.shapeDefaultsField;
2027
            }
2028
            set
2029
            {
2030
                this.shapeDefaultsField = value;
2031
            }
2032
        }
2033

2034
        [XmlElement(Order = 96)]
2035
        public CT_OnOff doNotEmbedSmartTags
2036
        {
2037
            get
2038
            {
2039
                return this.doNotEmbedSmartTagsField;
2040
            }
2041
            set
2042
            {
2043
                this.doNotEmbedSmartTagsField = value;
2044
            }
2045
        }
2046

2047
        [XmlElement(Order = 97)]
2048
        public CT_String decimalSymbol
2049
        {
2050
            get
2051
            {
2052
                return this.decimalSymbolField;
2053
            }
2054
            set
2055
            {
2056
                this.decimalSymbolField = value;
2057
            }
2058
        }
2059

2060
        [XmlElement(Order = 98)]
2061
        public CT_String listSeparator
2062
        {
2063
            get
2064
            {
2065
                return this.listSeparatorField;
2066
            }
2067
            set
2068
            {
2069
                this.listSeparatorField = value;
2070
            }
2071
        }
2072

2073
        public bool IsSetZoom()
2074
        {
2075
            return this.zoom != null;
2076
        }
2077

2078
        public CT_Zoom AddNewZoom()
2079
        {
2080
            this.zoom = new CT_Zoom();
2081
            return this.zoom;
2082
        }
2083

2084
        public bool IsSetUpdateFields()
2085
        {
2086
            return this.updateFieldsField != null;
2087
        }
2088

2089
        public bool IsSetTrackRevisions()
2090
        {
2091
            return this.trackRevisionsField != null && this.trackRevisionsField.val;
2092
        }
2093

2094
        public CT_OnOff AddNewTrackRevisions()
2095
        {
2096
            this.trackRevisionsField = new CT_OnOff();
2097
            this.trackRevisionsField.val = true;
2098
            return this.trackRevisionsField;
2099
        }
2100

2101
        public void UnsetTrackRevisions()
2102
        {
2103
            this.trackRevisionsField = null;
2104
        }
2105
    }
2106

2107

2108
    [Serializable]
2109

2110
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2111
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2112
    public class CT_WriteProtection
2113
    {
2114

2115
        private ST_OnOff recommendedField;
2116

2117
        private bool recommendedFieldSpecified;
2118

2119
        private ST_CryptProv cryptProviderTypeField;
2120

2121
        private bool cryptProviderTypeFieldSpecified;
2122

2123
        private ST_AlgClass cryptAlgorithmClassField;
2124

2125
        private bool cryptAlgorithmClassFieldSpecified;
2126

2127
        private ST_AlgType cryptAlgorithmTypeField;
2128

2129
        private bool cryptAlgorithmTypeFieldSpecified;
2130

2131
        private string cryptAlgorithmSidField;
2132

2133
        private string cryptSpinCountField;
2134

2135
        private string cryptProviderField;
2136

2137
        private byte[] algIdExtField;
2138

2139
        private string algIdExtSourceField;
2140

2141
        private byte[] cryptProviderTypeExtField;
2142

2143
        private string cryptProviderTypeExtSourceField;
2144

2145
        private byte[] hashField;
2146

2147
        private byte[] saltField;
2148
        public static CT_WriteProtection Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2149
        {
2150
            if (node == null)
2151
                return null;
2152
            CT_WriteProtection ctObj = new CT_WriteProtection();
2153
            if (node.Attributes["w:recommended"] != null)
2154
                ctObj.recommended = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:recommended"].Value,true);
2155
            if (node.Attributes["w:cryptProviderType"] != null)
2156
                ctObj.cryptProviderType = (ST_CryptProv)Enum.Parse(typeof(ST_CryptProv), node.Attributes["w:cryptProviderType"].Value);
2157
            if (node.Attributes["w:cryptAlgorithmClass"] != null)
2158
                ctObj.cryptAlgorithmClass = (ST_AlgClass)Enum.Parse(typeof(ST_AlgClass), node.Attributes["w:cryptAlgorithmClass"].Value);
2159
            if (node.Attributes["w:cryptAlgorithmType"] != null)
2160
                ctObj.cryptAlgorithmType = (ST_AlgType)Enum.Parse(typeof(ST_AlgType), node.Attributes["w:cryptAlgorithmType"].Value);
2161
            ctObj.cryptAlgorithmSid = XmlHelper.ReadString(node.Attributes["w:cryptAlgorithmSid"]);
2162
            ctObj.cryptSpinCount = XmlHelper.ReadString(node.Attributes["w:cryptSpinCount"]);
2163
            ctObj.cryptProvider = XmlHelper.ReadString(node.Attributes["w:cryptProvider"]);
2164
            ctObj.algIdExt = XmlHelper.ReadBytes(node.Attributes["w:algIdExt"]);
2165
            ctObj.algIdExtSource = XmlHelper.ReadString(node.Attributes["w:algIdExtSource"]);
2166
            ctObj.cryptProviderTypeExt = XmlHelper.ReadBytes(node.Attributes["w:cryptProviderTypeExt"]);
2167
            ctObj.cryptProviderTypeExtSource = XmlHelper.ReadString(node.Attributes["w:cryptProviderTypeExtSource"]);
2168
            ctObj.hash = XmlHelper.ReadBytes(node.Attributes["w:hash"]);
2169
            ctObj.salt = XmlHelper.ReadBytes(node.Attributes["w:salt"]);
2170
            return ctObj;
2171
        }
2172

2173

2174

2175
        internal void Write(StreamWriter sw, string nodeName)
2176
        {
2177
            sw.Write(string.Format("<w:{0}", nodeName));
2178
            XmlHelper.WriteAttribute(sw, "w:recommended", this.recommended.ToString());
2179
            XmlHelper.WriteAttribute(sw, "w:cryptProviderType", this.cryptProviderType.ToString());
2180
            XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmClass", this.cryptAlgorithmClass.ToString());
2181
            XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmType", this.cryptAlgorithmType.ToString());
2182
            XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmSid", this.cryptAlgorithmSid);
2183
            XmlHelper.WriteAttribute(sw, "w:cryptSpinCount", this.cryptSpinCount);
2184
            XmlHelper.WriteAttribute(sw, "w:cryptProvider", this.cryptProvider);
2185
            XmlHelper.WriteAttribute(sw, "w:algIdExt", this.algIdExt);
2186
            XmlHelper.WriteAttribute(sw, "w:algIdExtSource", this.algIdExtSource);
2187
            XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExt", this.cryptProviderTypeExt);
2188
            XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExtSource", this.cryptProviderTypeExtSource);
2189
            XmlHelper.WriteAttribute(sw, "w:hash", this.hash);
2190
            XmlHelper.WriteAttribute(sw, "w:salt", this.salt);
2191
            sw.Write(">");
2192
            sw.WriteEndW(nodeName);
2193
        }
2194

2195
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2196
        public ST_OnOff recommended
2197
        {
2198
            get
2199
            {
2200
                return this.recommendedField;
2201
            }
2202
            set
2203
            {
2204
                this.recommendedField = value;
2205
            }
2206
        }
2207

2208
        [XmlIgnore]
2209
        public bool recommendedSpecified
2210
        {
2211
            get
2212
            {
2213
                return this.recommendedFieldSpecified;
2214
            }
2215
            set
2216
            {
2217
                this.recommendedFieldSpecified = value;
2218
            }
2219
        }
2220

2221
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2222
        public ST_CryptProv cryptProviderType
2223
        {
2224
            get
2225
            {
2226
                return this.cryptProviderTypeField;
2227
            }
2228
            set
2229
            {
2230
                this.cryptProviderTypeField = value;
2231
            }
2232
        }
2233

2234
        [XmlIgnore]
2235
        public bool cryptProviderTypeSpecified
2236
        {
2237
            get
2238
            {
2239
                return this.cryptProviderTypeFieldSpecified;
2240
            }
2241
            set
2242
            {
2243
                this.cryptProviderTypeFieldSpecified = value;
2244
            }
2245
        }
2246

2247
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2248
        public ST_AlgClass cryptAlgorithmClass
2249
        {
2250
            get
2251
            {
2252
                return this.cryptAlgorithmClassField;
2253
            }
2254
            set
2255
            {
2256
                this.cryptAlgorithmClassField = value;
2257
            }
2258
        }
2259

2260
        [XmlIgnore]
2261
        public bool cryptAlgorithmClassSpecified
2262
        {
2263
            get
2264
            {
2265
                return this.cryptAlgorithmClassFieldSpecified;
2266
            }
2267
            set
2268
            {
2269
                this.cryptAlgorithmClassFieldSpecified = value;
2270
            }
2271
        }
2272

2273
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2274
        public ST_AlgType cryptAlgorithmType
2275
        {
2276
            get
2277
            {
2278
                return this.cryptAlgorithmTypeField;
2279
            }
2280
            set
2281
            {
2282
                this.cryptAlgorithmTypeField = value;
2283
            }
2284
        }
2285

2286
        [XmlIgnore]
2287
        public bool cryptAlgorithmTypeSpecified
2288
        {
2289
            get
2290
            {
2291
                return this.cryptAlgorithmTypeFieldSpecified;
2292
            }
2293
            set
2294
            {
2295
                this.cryptAlgorithmTypeFieldSpecified = value;
2296
            }
2297
        }
2298

2299
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2300
        public string cryptAlgorithmSid
2301
        {
2302
            get
2303
            {
2304
                return this.cryptAlgorithmSidField;
2305
            }
2306
            set
2307
            {
2308
                this.cryptAlgorithmSidField = value;
2309
            }
2310
        }
2311

2312
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2313
        public string cryptSpinCount
2314
        {
2315
            get
2316
            {
2317
                return this.cryptSpinCountField;
2318
            }
2319
            set
2320
            {
2321
                this.cryptSpinCountField = value;
2322
            }
2323
        }
2324

2325
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2326
        public string cryptProvider
2327
        {
2328
            get
2329
            {
2330
                return this.cryptProviderField;
2331
            }
2332
            set
2333
            {
2334
                this.cryptProviderField = value;
2335
            }
2336
        }
2337

2338
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
2339
        public byte[] algIdExt
2340
        {
2341
            get
2342
            {
2343
                return this.algIdExtField;
2344
            }
2345
            set
2346
            {
2347
                this.algIdExtField = value;
2348
            }
2349
        }
2350

2351
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2352
        public string algIdExtSource
2353
        {
2354
            get
2355
            {
2356
                return this.algIdExtSourceField;
2357
            }
2358
            set
2359
            {
2360
                this.algIdExtSourceField = value;
2361
            }
2362
        }
2363

2364
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
2365
        public byte[] cryptProviderTypeExt
2366
        {
2367
            get
2368
            {
2369
                return this.cryptProviderTypeExtField;
2370
            }
2371
            set
2372
            {
2373
                this.cryptProviderTypeExtField = value;
2374
            }
2375
        }
2376

2377
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2378
        public string cryptProviderTypeExtSource
2379
        {
2380
            get
2381
            {
2382
                return this.cryptProviderTypeExtSourceField;
2383
            }
2384
            set
2385
            {
2386
                this.cryptProviderTypeExtSourceField = value;
2387
            }
2388
        }
2389

2390
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
2391
        public byte[] hash
2392
        {
2393
            get
2394
            {
2395
                return this.hashField;
2396
            }
2397
            set
2398
            {
2399
                this.hashField = value;
2400
            }
2401
        }
2402

2403
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
2404
        public byte[] salt
2405
        {
2406
            get
2407
            {
2408
                return this.saltField;
2409
            }
2410
            set
2411
            {
2412
                this.saltField = value;
2413
            }
2414
        }
2415
    }
2416

2417

2418
    [Serializable]
2419
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2420
    public enum ST_CryptProv
2421
    {
2422

2423
    
2424
        rsaAES,
2425

2426
    
2427
        rsaFull,
2428
    }
2429

2430

2431
    [Serializable]
2432
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2433
    public enum ST_AlgClass
2434
    {
2435

2436
    
2437
        hash,
2438
    }
2439

2440

2441
    [Serializable]
2442
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2443
    public enum ST_AlgType
2444
    {
2445

2446
    
2447
        typeAny,
2448
    }
2449

2450

2451
    [Serializable]
2452

2453
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2454
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2455
    public class CT_View
2456
    {
2457

2458
        private ST_View valField;
2459
        public static CT_View Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2460
        {
2461
            if (node == null)
2462
                return null;
2463
            CT_View ctObj = new CT_View();
2464
            if (node.Attributes["w:val"] != null)
2465
                ctObj.val = (ST_View)Enum.Parse(typeof(ST_View), node.Attributes["w:val"].Value);
2466
            return ctObj;
2467
        }
2468

2469

2470

2471
        internal void Write(StreamWriter sw, string nodeName)
2472
        {
2473
            sw.Write(string.Format("<w:{0}", nodeName));
2474
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2475
            sw.Write(">");
2476
            sw.WriteEndW(nodeName);
2477
        }
2478

2479
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2480
        public ST_View val
2481
        {
2482
            get
2483
            {
2484
                return this.valField;
2485
            }
2486
            set
2487
            {
2488
                this.valField = value;
2489
            }
2490
        }
2491
    }
2492

2493

2494
    [Serializable]
2495
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2496
    public enum ST_View
2497
    {
2498

2499
    
2500
        none,
2501

2502
    
2503
        print,
2504

2505
    
2506
        outline,
2507

2508
    
2509
        masterPages,
2510

2511
    
2512
        normal,
2513

2514
    
2515
        web,
2516
    }
2517

2518

2519
    [Serializable]
2520

2521
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2522
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2523
    public class CT_Zoom
2524
    {
2525
        public CT_Zoom()
2526
        {
2527
            valField = ST_Zoom.none;
2528
            percent = "100";
2529
        }
2530
        public static CT_Zoom Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2531
        {
2532
            if (node == null)
2533
                return null;
2534
            CT_Zoom ctObj = new CT_Zoom();
2535
            if (node.Attributes["w:val"] != null)
2536
                ctObj.val = (ST_Zoom)Enum.Parse(typeof(ST_Zoom), node.Attributes["w:val"].Value);
2537
            ctObj.percent = XmlHelper.ReadString(node.Attributes["w:percent"]);
2538
            return ctObj;
2539
        }
2540

2541

2542

2543
        internal void Write(StreamWriter sw, string nodeName)
2544
        {
2545
            sw.Write(string.Format("<w:{0}", nodeName));
2546
            if (this.val!= ST_Zoom.none)
2547
                XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2548
            XmlHelper.WriteAttribute(sw, "w:percent", this.percent);
2549
            sw.Write("/>");
2550
        }
2551

2552
        private ST_Zoom valField;
2553

2554
        private bool valFieldSpecified;
2555

2556
        private string percentField;
2557

2558
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2559
        public ST_Zoom val
2560
        {
2561
            get
2562
            {
2563
                return this.valField;
2564
            }
2565
            set
2566
            {
2567
                this.valField = value;
2568
            }
2569
        }
2570

2571
        [XmlIgnore]
2572
        public bool valSpecified
2573
        {
2574
            get
2575
            {
2576
                return this.valFieldSpecified;
2577
            }
2578
            set
2579
            {
2580
                this.valFieldSpecified = value;
2581
            }
2582
        }
2583

2584
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2585
        public string percent
2586
        {
2587
            get
2588
            {
2589
                return this.percentField;
2590
            }
2591
            set
2592
            {
2593
                this.percentField = value;
2594
            }
2595
        }
2596
    }
2597

2598

2599
    [Serializable]
2600
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2601
    public enum ST_Zoom
2602
    {
2603

2604
    
2605
        none,
2606

2607
    
2608
        fullPage,
2609

2610
    
2611
        bestFit,
2612

2613
    
2614
        textFit,
2615
    }
2616

2617

2618
    [Serializable]
2619

2620
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2621
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2622
    public class CT_WritingStyle
2623
    {
2624

2625
        private string langField;
2626

2627
        private string vendorIDField;
2628

2629
        private string dllVersionField;
2630

2631
        private ST_OnOff nlCheckField;
2632

2633
        private bool nlCheckFieldSpecified;
2634

2635
        private ST_OnOff checkStyleField;
2636

2637
        private string appNameField;
2638
        public static CT_WritingStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2639
        {
2640
            if (node == null)
2641
                return null;
2642
            CT_WritingStyle ctObj = new CT_WritingStyle();
2643
            ctObj.lang = XmlHelper.ReadString(node.Attributes["w:lang"]);
2644
            ctObj.vendorID = XmlHelper.ReadString(node.Attributes["w:vendorID"]);
2645
            ctObj.dllVersion = XmlHelper.ReadString(node.Attributes["w:dllVersion"]);
2646
            if (node.Attributes["w:nlCheck"] != null)
2647
                ctObj.nlCheck = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:nlCheck"].Value,true);
2648
            if (node.Attributes["w:checkStyle"] != null)
2649
                ctObj.checkStyle = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:checkStyle"].Value,true);
2650
            ctObj.appName = XmlHelper.ReadString(node.Attributes["w:appName"]);
2651
            return ctObj;
2652
        }
2653

2654

2655

2656
        internal void Write(StreamWriter sw, string nodeName)
2657
        {
2658
            sw.Write(string.Format("<w:{0}", nodeName));
2659
            XmlHelper.WriteAttribute(sw, "w:lang", this.lang);
2660
            XmlHelper.WriteAttribute(sw, "w:vendorID", this.vendorID);
2661
            XmlHelper.WriteAttribute(sw, "w:dllVersion", this.dllVersion);
2662
            XmlHelper.WriteAttribute(sw, "w:nlCheck", this.nlCheck.ToString());
2663
            XmlHelper.WriteAttribute(sw, "w:checkStyle", this.checkStyle.ToString());
2664
            XmlHelper.WriteAttribute(sw, "w:appName", this.appName);
2665
            sw.Write(">");
2666
            sw.WriteEndW(nodeName);
2667
        }
2668

2669
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2670
        public string lang
2671
        {
2672
            get
2673
            {
2674
                return this.langField;
2675
            }
2676
            set
2677
            {
2678
                this.langField = value;
2679
            }
2680
        }
2681

2682
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2683
        public string vendorID
2684
        {
2685
            get
2686
            {
2687
                return this.vendorIDField;
2688
            }
2689
            set
2690
            {
2691
                this.vendorIDField = value;
2692
            }
2693
        }
2694

2695
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2696
        public string dllVersion
2697
        {
2698
            get
2699
            {
2700
                return this.dllVersionField;
2701
            }
2702
            set
2703
            {
2704
                this.dllVersionField = value;
2705
            }
2706
        }
2707

2708
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2709
        public ST_OnOff nlCheck
2710
        {
2711
            get
2712
            {
2713
                return this.nlCheckField;
2714
            }
2715
            set
2716
            {
2717
                this.nlCheckField = value;
2718
            }
2719
        }
2720

2721
        [XmlIgnore]
2722
        public bool nlCheckSpecified
2723
        {
2724
            get
2725
            {
2726
                return this.nlCheckFieldSpecified;
2727
            }
2728
            set
2729
            {
2730
                this.nlCheckFieldSpecified = value;
2731
            }
2732
        }
2733

2734
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2735
        public ST_OnOff checkStyle
2736
        {
2737
            get
2738
            {
2739
                return this.checkStyleField;
2740
            }
2741
            set
2742
            {
2743
                this.checkStyleField = value;
2744
            }
2745
        }
2746

2747
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2748
        public string appName
2749
        {
2750
            get
2751
            {
2752
                return this.appNameField;
2753
            }
2754
            set
2755
            {
2756
                this.appNameField = value;
2757
            }
2758
        }
2759
    }
2760

2761

2762
    [Serializable]
2763

2764
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2765
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2766
    public class CT_Proof
2767
    {
2768

2769
        private ST_Proof spellingField;
2770

2771
        private bool spellingFieldSpecified;
2772

2773
        private ST_Proof grammarField;
2774

2775
        private bool grammarFieldSpecified;
2776
        public static CT_Proof Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2777
        {
2778
            if (node == null)
2779
                return null;
2780
            CT_Proof ctObj = new CT_Proof();
2781
            if (node.Attributes["w:spelling"] != null)
2782
                ctObj.spelling = (ST_Proof)Enum.Parse(typeof(ST_Proof), node.Attributes["w:spelling"].Value);
2783
            if (node.Attributes["w:grammar"] != null)
2784
                ctObj.grammar = (ST_Proof)Enum.Parse(typeof(ST_Proof), node.Attributes["w:grammar"].Value);
2785
            return ctObj;
2786
        }
2787

2788

2789

2790
        internal void Write(StreamWriter sw, string nodeName)
2791
        {
2792
            sw.Write(string.Format("<w:{0}", nodeName));
2793
            XmlHelper.WriteAttribute(sw, "w:spelling", this.spelling.ToString());
2794
            XmlHelper.WriteAttribute(sw, "w:grammar", this.grammar.ToString());
2795
            sw.Write(">");
2796
            sw.WriteEndW(nodeName);
2797
        }
2798

2799
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2800
        public ST_Proof spelling
2801
        {
2802
            get
2803
            {
2804
                return this.spellingField;
2805
            }
2806
            set
2807
            {
2808
                this.spellingField = value;
2809
            }
2810
        }
2811

2812
        [XmlIgnore]
2813
        public bool spellingSpecified
2814
        {
2815
            get
2816
            {
2817
                return this.spellingFieldSpecified;
2818
            }
2819
            set
2820
            {
2821
                this.spellingFieldSpecified = value;
2822
            }
2823
        }
2824

2825
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2826
        public ST_Proof grammar
2827
        {
2828
            get
2829
            {
2830
                return this.grammarField;
2831
            }
2832
            set
2833
            {
2834
                this.grammarField = value;
2835
            }
2836
        }
2837

2838
        [XmlIgnore]
2839
        public bool grammarSpecified
2840
        {
2841
            get
2842
            {
2843
                return this.grammarFieldSpecified;
2844
            }
2845
            set
2846
            {
2847
                this.grammarFieldSpecified = value;
2848
            }
2849
        }
2850
    }
2851

2852

2853
    [Serializable]
2854
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2855
    public enum ST_Proof
2856
    {
2857

2858
    
2859
        clean,
2860

2861
    
2862
        dirty,
2863
    }
2864

2865

2866
    [Serializable]
2867

2868
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2869
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2870
    public class CT_DocType
2871
    {
2872

2873
        private ST_DocType valField;
2874
        public static CT_DocType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2875
        {
2876
            if (node == null)
2877
                return null;
2878
            CT_DocType ctObj = new CT_DocType();
2879
            if (node.Attributes["w:val"] != null)
2880
                ctObj.val = (ST_DocType)Enum.Parse(typeof(ST_DocType), node.Attributes["w:val"].Value);
2881
            return ctObj;
2882
        }
2883

2884

2885

2886
        internal void Write(StreamWriter sw, string nodeName)
2887
        {
2888
            sw.Write(string.Format("<w:{0}", nodeName));
2889
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2890
            sw.Write(">");
2891
            sw.WriteEndW(nodeName);
2892
        }
2893

2894
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2895
        public ST_DocType val
2896
        {
2897
            get
2898
            {
2899
                return this.valField;
2900
            }
2901
            set
2902
            {
2903
                this.valField = value;
2904
            }
2905
        }
2906
    }
2907

2908

2909
    [Serializable]
2910
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2911
    public enum ST_DocType
2912
    {
2913

2914
    
2915
        notSpecified,
2916

2917
    
2918
        letter,
2919

2920
    
2921
        eMail,
2922
    }
2923

2924

2925
    [Serializable]
2926

2927
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2928
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
2929
    public class CT_MailMerge
2930
    {
2931

2932
        private CT_MailMergeDocType mainDocumentTypeField;
2933

2934
        private CT_OnOff linkToQueryField;
2935

2936
        private CT_MailMergeDataType dataTypeField;
2937

2938
        private CT_String connectStringField;
2939

2940
        private CT_String queryField;
2941

2942
        private CT_Rel dataSourceField;
2943

2944
        private CT_Rel headerSourceField;
2945

2946
        private CT_OnOff doNotSuppressBlankLinesField;
2947

2948
        private CT_MailMergeDest destinationField;
2949

2950
        private CT_String addressFieldNameField;
2951

2952
        private CT_String mailSubjectField;
2953

2954
        private CT_OnOff mailAsAttachmentField;
2955

2956
        private CT_OnOff viewMergedDataField;
2957

2958
        private CT_DecimalNumber activeRecordField;
2959

2960
        private CT_DecimalNumber checkErrorsField;
2961

2962
        private CT_Odso odsoField;
2963
        public static CT_MailMerge Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2964
        {
2965
            if (node == null)
2966
                return null;
2967
            CT_MailMerge ctObj = new CT_MailMerge();
2968
            foreach (XmlNode childNode in node.ChildNodes)
2969
            {
2970
                if (childNode.LocalName == "mainDocumentType")
2971
                    ctObj.mainDocumentType = CT_MailMergeDocType.Parse(childNode, namespaceManager);
2972
                else if (childNode.LocalName == "linkToQuery")
2973
                    ctObj.linkToQuery = CT_OnOff.Parse(childNode, namespaceManager);
2974
                else if (childNode.LocalName == "dataType")
2975
                    ctObj.dataType = CT_MailMergeDataType.Parse(childNode, namespaceManager);
2976
                else if (childNode.LocalName == "connectString")
2977
                    ctObj.connectString = CT_String.Parse(childNode, namespaceManager);
2978
                else if (childNode.LocalName == "query")
2979
                    ctObj.query = CT_String.Parse(childNode, namespaceManager);
2980
                else if (childNode.LocalName == "dataSource")
2981
                    ctObj.dataSource = CT_Rel.Parse(childNode, namespaceManager);
2982
                else if (childNode.LocalName == "headerSource")
2983
                    ctObj.headerSource = CT_Rel.Parse(childNode, namespaceManager);
2984
                else if (childNode.LocalName == "doNotSuppressBlankLines")
2985
                    ctObj.doNotSuppressBlankLines = CT_OnOff.Parse(childNode, namespaceManager);
2986
                else if (childNode.LocalName == "destination")
2987
                    ctObj.destination = CT_MailMergeDest.Parse(childNode, namespaceManager);
2988
                else if (childNode.LocalName == "addressFieldName")
2989
                    ctObj.addressFieldName = CT_String.Parse(childNode, namespaceManager);
2990
                else if (childNode.LocalName == "mailSubject")
2991
                    ctObj.mailSubject = CT_String.Parse(childNode, namespaceManager);
2992
                else if (childNode.LocalName == "mailAsAttachment")
2993
                    ctObj.mailAsAttachment = CT_OnOff.Parse(childNode, namespaceManager);
2994
                else if (childNode.LocalName == "viewMergedData")
2995
                    ctObj.viewMergedData = CT_OnOff.Parse(childNode, namespaceManager);
2996
                else if (childNode.LocalName == "activeRecord")
2997
                    ctObj.activeRecord = CT_DecimalNumber.Parse(childNode, namespaceManager);
2998
                else if (childNode.LocalName == "checkErrors")
2999
                    ctObj.checkErrors = CT_DecimalNumber.Parse(childNode, namespaceManager);
3000
                else if (childNode.LocalName == "odso")
3001
                    ctObj.odso = CT_Odso.Parse(childNode, namespaceManager);
3002
            }
3003
            return ctObj;
3004
        }
3005

3006

3007

3008
        internal void Write(StreamWriter sw, string nodeName)
3009
        {
3010
            sw.Write(string.Format("<w:{0}", nodeName));
3011
            sw.Write(">");
3012
            if (this.mainDocumentType != null)
3013
                this.mainDocumentType.Write(sw, "mainDocumentType");
3014
            if (this.linkToQuery != null)
3015
                this.linkToQuery.Write(sw, "linkToQuery");
3016
            if (this.dataType != null)
3017
                this.dataType.Write(sw, "dataType");
3018
            if (this.connectString != null)
3019
                this.connectString.Write(sw, "connectString");
3020
            if (this.query != null)
3021
                this.query.Write(sw, "query");
3022
            if (this.dataSource != null)
3023
                this.dataSource.Write(sw, "dataSource");
3024
            if (this.headerSource != null)
3025
                this.headerSource.Write(sw, "headerSource");
3026
            if (this.doNotSuppressBlankLines != null)
3027
                this.doNotSuppressBlankLines.Write(sw, "doNotSuppressBlankLines");
3028
            if (this.destination != null)
3029
                this.destination.Write(sw, "destination");
3030
            if (this.addressFieldName != null)
3031
                this.addressFieldName.Write(sw, "addressFieldName");
3032
            if (this.mailSubject != null)
3033
                this.mailSubject.Write(sw, "mailSubject");
3034
            if (this.mailAsAttachment != null)
3035
                this.mailAsAttachment.Write(sw, "mailAsAttachment");
3036
            if (this.viewMergedData != null)
3037
                this.viewMergedData.Write(sw, "viewMergedData");
3038
            if (this.activeRecord != null)
3039
                this.activeRecord.Write(sw, "activeRecord");
3040
            if (this.checkErrors != null)
3041
                this.checkErrors.Write(sw, "checkErrors");
3042
            if (this.odso != null)
3043
                this.odso.Write(sw, "odso");
3044
            sw.WriteEndW(nodeName);
3045
        }
3046

3047
        public CT_MailMerge()
3048
        {
3049
            //this.odsoField = new CT_Odso();
3050
            //this.checkErrorsField = new CT_DecimalNumber();
3051
            //this.activeRecordField = new CT_DecimalNumber();
3052
            //this.viewMergedDataField = new CT_OnOff();
3053
            //this.mailAsAttachmentField = new CT_OnOff();
3054
            //this.mailSubjectField = new CT_String();
3055
            //this.addressFieldNameField = new CT_String();
3056
            //this.destinationField = new CT_MailMergeDest();
3057
            //this.doNotSuppressBlankLinesField = new CT_OnOff();
3058
            //this.headerSourceField = new CT_Rel();
3059
            //this.dataSourceField = new CT_Rel();
3060
            //this.queryField = new CT_String();
3061
            //this.connectStringField = new CT_String();
3062
            //this.dataTypeField = new CT_MailMergeDataType();
3063
            //this.linkToQueryField = new CT_OnOff();
3064
            //this.mainDocumentTypeField = new CT_MailMergeDocType();
3065
        }
3066

3067
        [XmlElement(Order = 0)]
3068
        public CT_MailMergeDocType mainDocumentType
3069
        {
3070
            get
3071
            {
3072
                return this.mainDocumentTypeField;
3073
            }
3074
            set
3075
            {
3076
                this.mainDocumentTypeField = value;
3077
            }
3078
        }
3079

3080
        [XmlElement(Order = 1)]
3081
        public CT_OnOff linkToQuery
3082
        {
3083
            get
3084
            {
3085
                return this.linkToQueryField;
3086
            }
3087
            set
3088
            {
3089
                this.linkToQueryField = value;
3090
            }
3091
        }
3092

3093
        [XmlElement(Order = 2)]
3094
        public CT_MailMergeDataType dataType
3095
        {
3096
            get
3097
            {
3098
                return this.dataTypeField;
3099
            }
3100
            set
3101
            {
3102
                this.dataTypeField = value;
3103
            }
3104
        }
3105

3106
        [XmlElement(Order = 3)]
3107
        public CT_String connectString
3108
        {
3109
            get
3110
            {
3111
                return this.connectStringField;
3112
            }
3113
            set
3114
            {
3115
                this.connectStringField = value;
3116
            }
3117
        }
3118

3119
        [XmlElement(Order = 4)]
3120
        public CT_String query
3121
        {
3122
            get
3123
            {
3124
                return this.queryField;
3125
            }
3126
            set
3127
            {
3128
                this.queryField = value;
3129
            }
3130
        }
3131

3132
        [XmlElement(Order = 5)]
3133
        public CT_Rel dataSource
3134
        {
3135
            get
3136
            {
3137
                return this.dataSourceField;
3138
            }
3139
            set
3140
            {
3141
                this.dataSourceField = value;
3142
            }
3143
        }
3144

3145
        [XmlElement(Order = 6)]
3146
        public CT_Rel headerSource
3147
        {
3148
            get
3149
            {
3150
                return this.headerSourceField;
3151
            }
3152
            set
3153
            {
3154
                this.headerSourceField = value;
3155
            }
3156
        }
3157

3158
        [XmlElement(Order = 7)]
3159
        public CT_OnOff doNotSuppressBlankLines
3160
        {
3161
            get
3162
            {
3163
                return this.doNotSuppressBlankLinesField;
3164
            }
3165
            set
3166
            {
3167
                this.doNotSuppressBlankLinesField = value;
3168
            }
3169
        }
3170

3171
        [XmlElement(Order = 8)]
3172
        public CT_MailMergeDest destination
3173
        {
3174
            get
3175
            {
3176
                return this.destinationField;
3177
            }
3178
            set
3179
            {
3180
                this.destinationField = value;
3181
            }
3182
        }
3183

3184
        [XmlElement(Order = 9)]
3185
        public CT_String addressFieldName
3186
        {
3187
            get
3188
            {
3189
                return this.addressFieldNameField;
3190
            }
3191
            set
3192
            {
3193
                this.addressFieldNameField = value;
3194
            }
3195
        }
3196

3197
        [XmlElement(Order = 10)]
3198
        public CT_String mailSubject
3199
        {
3200
            get
3201
            {
3202
                return this.mailSubjectField;
3203
            }
3204
            set
3205
            {
3206
                this.mailSubjectField = value;
3207
            }
3208
        }
3209

3210
        [XmlElement(Order = 11)]
3211
        public CT_OnOff mailAsAttachment
3212
        {
3213
            get
3214
            {
3215
                return this.mailAsAttachmentField;
3216
            }
3217
            set
3218
            {
3219
                this.mailAsAttachmentField = value;
3220
            }
3221
        }
3222

3223
        [XmlElement(Order = 12)]
3224
        public CT_OnOff viewMergedData
3225
        {
3226
            get
3227
            {
3228
                return this.viewMergedDataField;
3229
            }
3230
            set
3231
            {
3232
                this.viewMergedDataField = value;
3233
            }
3234
        }
3235

3236
        [XmlElement(Order = 13)]
3237
        public CT_DecimalNumber activeRecord
3238
        {
3239
            get
3240
            {
3241
                return this.activeRecordField;
3242
            }
3243
            set
3244
            {
3245
                this.activeRecordField = value;
3246
            }
3247
        }
3248

3249
        [XmlElement(Order = 14)]
3250
        public CT_DecimalNumber checkErrors
3251
        {
3252
            get
3253
            {
3254
                return this.checkErrorsField;
3255
            }
3256
            set
3257
            {
3258
                this.checkErrorsField = value;
3259
            }
3260
        }
3261

3262
        [XmlElement(Order = 15)]
3263
        public CT_Odso odso
3264
        {
3265
            get
3266
            {
3267
                return this.odsoField;
3268
            }
3269
            set
3270
            {
3271
                this.odsoField = value;
3272
            }
3273
        }
3274
    }
3275

3276

3277
    [Serializable]
3278

3279
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3280
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3281
    public class CT_MailMergeDocType
3282
    {
3283

3284
        private ST_MailMergeDocType valField;
3285
        public static CT_MailMergeDocType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3286
        {
3287
            if (node == null)
3288
                return null;
3289
            CT_MailMergeDocType ctObj = new CT_MailMergeDocType();
3290
            if (node.Attributes["w:val"] != null)
3291
                ctObj.val = (ST_MailMergeDocType)Enum.Parse(typeof(ST_MailMergeDocType), node.Attributes["w:val"].Value);
3292
            return ctObj;
3293
        }
3294

3295

3296

3297
        internal void Write(StreamWriter sw, string nodeName)
3298
        {
3299
            sw.Write(string.Format("<w:{0}", nodeName));
3300
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3301
            sw.Write(">");
3302
            sw.WriteEndW(nodeName);
3303
        }
3304

3305
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3306
        public ST_MailMergeDocType val
3307
        {
3308
            get
3309
            {
3310
                return this.valField;
3311
            }
3312
            set
3313
            {
3314
                this.valField = value;
3315
            }
3316
        }
3317
    }
3318

3319

3320
    [Serializable]
3321
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3322
    public enum ST_MailMergeDocType
3323
    {
3324

3325
    
3326
        catalog,
3327

3328
    
3329
        envelopes,
3330

3331
    
3332
        mailingLabels,
3333

3334
    
3335
        formLetters,
3336

3337
    
3338
        email,
3339

3340
    
3341
        fax,
3342
    }
3343

3344

3345
    [Serializable]
3346

3347
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3348
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3349
    public class CT_MailMergeDataType
3350
    {
3351

3352
        private ST_MailMergeDataType valField;
3353
        public static CT_MailMergeDataType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3354
        {
3355
            if (node == null)
3356
                return null;
3357
            CT_MailMergeDataType ctObj = new CT_MailMergeDataType();
3358
            if (node.Attributes["w:val"] != null)
3359
                ctObj.val = (ST_MailMergeDataType)Enum.Parse(typeof(ST_MailMergeDataType), node.Attributes["w:val"].Value);
3360
            return ctObj;
3361
        }
3362

3363

3364

3365
        internal void Write(StreamWriter sw, string nodeName)
3366
        {
3367
            sw.Write(string.Format("<w:{0}", nodeName));
3368
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3369
            sw.Write(">");
3370
            sw.WriteEndW(nodeName);
3371
        }
3372

3373
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3374
        public ST_MailMergeDataType val
3375
        {
3376
            get
3377
            {
3378
                return this.valField;
3379
            }
3380
            set
3381
            {
3382
                this.valField = value;
3383
            }
3384
        }
3385
    }
3386

3387

3388
    [Serializable]
3389
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3390
    public enum ST_MailMergeDataType
3391
    {
3392

3393
    
3394
        textFile,
3395

3396
    
3397
        database,
3398

3399
    
3400
        spreadsheet,
3401

3402
    
3403
        query,
3404

3405
    
3406
        odbc,
3407

3408
    
3409
        native,
3410
    }
3411

3412

3413
    [Serializable]
3414

3415
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3416
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3417
    public class CT_MailMergeDest
3418
    {
3419

3420
        private ST_MailMergeDest valField;
3421
        public static CT_MailMergeDest Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3422
        {
3423
            if (node == null)
3424
                return null;
3425
            CT_MailMergeDest ctObj = new CT_MailMergeDest();
3426
            if (node.Attributes["w:val"] != null)
3427
                ctObj.val = (ST_MailMergeDest)Enum.Parse(typeof(ST_MailMergeDest), node.Attributes["w:val"].Value);
3428
            return ctObj;
3429
        }
3430

3431

3432

3433
        internal void Write(StreamWriter sw, string nodeName)
3434
        {
3435
            sw.Write(string.Format("<w:{0}", nodeName));
3436
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3437
            sw.Write(">");
3438
            sw.WriteEndW(nodeName);
3439
        }
3440

3441
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3442
        public ST_MailMergeDest val
3443
        {
3444
            get
3445
            {
3446
                return this.valField;
3447
            }
3448
            set
3449
            {
3450
                this.valField = value;
3451
            }
3452
        }
3453
    }
3454

3455

3456
    [Serializable]
3457
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3458
    public enum ST_MailMergeDest
3459
    {
3460

3461
    
3462
        newDocument,
3463

3464
    
3465
        printer,
3466

3467
    
3468
        email,
3469

3470
    
3471
        fax,
3472
    }
3473

3474

3475
    [Serializable]
3476

3477
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3478
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3479
    public class CT_Odso
3480
    {
3481

3482
        private CT_String udlField;
3483

3484
        private CT_String tableField;
3485

3486
        private CT_Rel srcField;
3487

3488
        private CT_DecimalNumber colDelimField;
3489

3490
        private CT_MailMergeSourceType typeField;
3491

3492
        private CT_OnOff fHdrField;
3493

3494
        private List<CT_OdsoFieldMapData> fieldMapDataField;
3495

3496
        private List<CT_Rel> recipientDataField;
3497

3498
        public CT_Odso()
3499
        {
3500
            //this.recipientDataField = new List<CT_Rel>();
3501
            //this.fieldMapDataField = new List<CT_OdsoFieldMapData>();
3502
            //this.fHdrField = new CT_OnOff();
3503
            //this.typeField = new CT_MailMergeSourceType();
3504
            //this.colDelimField = new CT_DecimalNumber();
3505
            //this.srcField = new CT_Rel();
3506
            //this.tableField = new CT_String();
3507
            //this.udlField = new CT_String();
3508
        }
3509
        public static CT_Odso Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3510
        {
3511
            if (node == null)
3512
                return null;
3513
            CT_Odso ctObj = new CT_Odso();
3514
            ctObj.fieldMapData = new List<CT_OdsoFieldMapData>();
3515
            ctObj.recipientData = new List<CT_Rel>();
3516
            foreach (XmlNode childNode in node.ChildNodes)
3517
            {
3518
                if (childNode.LocalName == "udl")
3519
                    ctObj.udl = CT_String.Parse(childNode, namespaceManager);
3520
                else if (childNode.LocalName == "table")
3521
                    ctObj.table = CT_String.Parse(childNode, namespaceManager);
3522
                else if (childNode.LocalName == "src")
3523
                    ctObj.src = CT_Rel.Parse(childNode, namespaceManager);
3524
                else if (childNode.LocalName == "colDelim")
3525
                    ctObj.colDelim = CT_DecimalNumber.Parse(childNode, namespaceManager);
3526
                else if (childNode.LocalName == "type")
3527
                    ctObj.type = CT_MailMergeSourceType.Parse(childNode, namespaceManager);
3528
                else if (childNode.LocalName == "fHdr")
3529
                    ctObj.fHdr = CT_OnOff.Parse(childNode, namespaceManager);
3530
                else if (childNode.LocalName == "fieldMapData")
3531
                    ctObj.fieldMapData.Add(CT_OdsoFieldMapData.Parse(childNode, namespaceManager));
3532
                else if (childNode.LocalName == "recipientData")
3533
                    ctObj.recipientData.Add(CT_Rel.Parse(childNode, namespaceManager));
3534
            }
3535
            return ctObj;
3536
        }
3537

3538

3539

3540
        internal void Write(StreamWriter sw, string nodeName)
3541
        {
3542
            sw.Write(string.Format("<w:{0}", nodeName));
3543
            sw.Write(">");
3544
            if (this.udl != null)
3545
                this.udl.Write(sw, "udl");
3546
            if (this.table != null)
3547
                this.table.Write(sw, "table");
3548
            if (this.src != null)
3549
                this.src.Write(sw, "src");
3550
            if (this.colDelim != null)
3551
                this.colDelim.Write(sw, "colDelim");
3552
            if (this.type != null)
3553
                this.type.Write(sw, "type");
3554
            if (this.fHdr != null)
3555
                this.fHdr.Write(sw, "fHdr");
3556
            if (this.fieldMapData != null)
3557
            {
3558
                foreach (CT_OdsoFieldMapData x in this.fieldMapData)
3559
                {
3560
                    x.Write(sw, "fieldMapData");
3561
                }
3562
            }
3563
            if (this.recipientData != null)
3564
            {
3565
                foreach (CT_Rel x in this.recipientData)
3566
                {
3567
                    x.Write(sw, "recipientData");
3568
                }
3569
            }
3570
            sw.WriteEndW(nodeName);
3571
        }
3572

3573

3574
        [XmlElement(Order = 0)]
3575
        public CT_String udl
3576
        {
3577
            get
3578
            {
3579
                return this.udlField;
3580
            }
3581
            set
3582
            {
3583
                this.udlField = value;
3584
            }
3585
        }
3586

3587
        [XmlElement(Order = 1)]
3588
        public CT_String table
3589
        {
3590
            get
3591
            {
3592
                return this.tableField;
3593
            }
3594
            set
3595
            {
3596
                this.tableField = value;
3597
            }
3598
        }
3599

3600
        [XmlElement(Order = 2)]
3601
        public CT_Rel src
3602
        {
3603
            get
3604
            {
3605
                return this.srcField;
3606
            }
3607
            set
3608
            {
3609
                this.srcField = value;
3610
            }
3611
        }
3612

3613
        [XmlElement(Order = 3)]
3614
        public CT_DecimalNumber colDelim
3615
        {
3616
            get
3617
            {
3618
                return this.colDelimField;
3619
            }
3620
            set
3621
            {
3622
                this.colDelimField = value;
3623
            }
3624
        }
3625

3626
        [XmlElement(Order = 4)]
3627
        public CT_MailMergeSourceType type
3628
        {
3629
            get
3630
            {
3631
                return this.typeField;
3632
            }
3633
            set
3634
            {
3635
                this.typeField = value;
3636
            }
3637
        }
3638

3639
        [XmlElement(Order = 5)]
3640
        public CT_OnOff fHdr
3641
        {
3642
            get
3643
            {
3644
                return this.fHdrField;
3645
            }
3646
            set
3647
            {
3648
                this.fHdrField = value;
3649
            }
3650
        }
3651

3652
        [XmlElement("fieldMapData", Order = 6)]
3653
        public List<CT_OdsoFieldMapData> fieldMapData
3654
        {
3655
            get
3656
            {
3657
                return this.fieldMapDataField;
3658
            }
3659
            set
3660
            {
3661
                this.fieldMapDataField = value;
3662
            }
3663
        }
3664

3665
        [XmlElement("recipientData", Order = 7)]
3666
        public List<CT_Rel> recipientData
3667
        {
3668
            get
3669
            {
3670
                return this.recipientDataField;
3671
            }
3672
            set
3673
            {
3674
                this.recipientDataField = value;
3675
            }
3676
        }
3677
    }
3678

3679

3680
    [Serializable]
3681

3682
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3683
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3684
    public class CT_MailMergeSourceType
3685
    {
3686

3687
        private ST_MailMergeSourceType valField;
3688
        public static CT_MailMergeSourceType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3689
        {
3690
            if (node == null)
3691
                return null;
3692
            CT_MailMergeSourceType ctObj = new CT_MailMergeSourceType();
3693
            if (node.Attributes["w:val"] != null)
3694
                ctObj.val = (ST_MailMergeSourceType)Enum.Parse(typeof(ST_MailMergeSourceType), node.Attributes["w:val"].Value);
3695
            return ctObj;
3696
        }
3697

3698

3699

3700
        internal void Write(StreamWriter sw, string nodeName)
3701
        {
3702
            sw.Write(string.Format("<w:{0}", nodeName));
3703
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3704
            sw.Write(">");
3705
            sw.WriteEndW(nodeName);
3706
        }
3707

3708
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3709
        public ST_MailMergeSourceType val
3710
        {
3711
            get
3712
            {
3713
                return this.valField;
3714
            }
3715
            set
3716
            {
3717
                this.valField = value;
3718
            }
3719
        }
3720
    }
3721

3722

3723
    [Serializable]
3724
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3725
    public enum ST_MailMergeSourceType
3726
    {
3727

3728
    
3729
        database,
3730

3731
    
3732
        addressBook,
3733

3734
    
3735
        document1,
3736

3737
    
3738
        document2,
3739

3740
    
3741
        text,
3742

3743
    
3744
        email,
3745

3746
    
3747
        native,
3748

3749
    
3750
        legacy,
3751

3752
    
3753
        master,
3754
    }
3755

3756

3757
    [Serializable]
3758

3759
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3760
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3761
    public class CT_OdsoFieldMapData
3762
    {
3763

3764
        private CT_MailMergeOdsoFMDFieldType typeField;
3765

3766
        private CT_String nameField;
3767

3768
        private CT_String mappedNameField;
3769

3770
        private CT_DecimalNumber columnField;
3771

3772
        private CT_Lang lidField;
3773

3774
        private CT_OnOff dynamicAddressField;
3775
        public static CT_OdsoFieldMapData Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3776
        {
3777
            if (node == null)
3778
                return null;
3779
            CT_OdsoFieldMapData ctObj = new CT_OdsoFieldMapData();
3780
            foreach (XmlNode childNode in node.ChildNodes)
3781
            {
3782
                if (childNode.LocalName == "type")
3783
                    ctObj.type = CT_MailMergeOdsoFMDFieldType.Parse(childNode, namespaceManager);
3784
                else if (childNode.LocalName == "name")
3785
                    ctObj.name = CT_String.Parse(childNode, namespaceManager);
3786
                else if (childNode.LocalName == "mappedName")
3787
                    ctObj.mappedName = CT_String.Parse(childNode, namespaceManager);
3788
                else if (childNode.LocalName == "column")
3789
                    ctObj.column = CT_DecimalNumber.Parse(childNode, namespaceManager);
3790
                else if (childNode.LocalName == "lid")
3791
                    ctObj.lid = CT_Lang.Parse(childNode, namespaceManager);
3792
                else if (childNode.LocalName == "dynamicAddress")
3793
                    ctObj.dynamicAddress = CT_OnOff.Parse(childNode, namespaceManager);
3794
            }
3795
            return ctObj;
3796
        }
3797

3798

3799

3800
        internal void Write(StreamWriter sw, string nodeName)
3801
        {
3802
            sw.Write(string.Format("<w:{0}", nodeName));
3803
            sw.Write(">");
3804
            if (this.type != null)
3805
                this.type.Write(sw, "type");
3806
            if (this.name != null)
3807
                this.name.Write(sw, "name");
3808
            if (this.mappedName != null)
3809
                this.mappedName.Write(sw, "mappedName");
3810
            if (this.column != null)
3811
                this.column.Write(sw, "column");
3812
            if (this.lid != null)
3813
                this.lid.Write(sw, "lid");
3814
            if (this.dynamicAddress != null)
3815
                this.dynamicAddress.Write(sw, "dynamicAddress");
3816
            sw.WriteEndW(nodeName);
3817
        }
3818

3819
        public CT_OdsoFieldMapData()
3820
        {
3821
            //this.dynamicAddressField = new CT_OnOff();
3822
            //this.lidField = new CT_Lang();
3823
            //this.columnField = new CT_DecimalNumber();
3824
            //this.mappedNameField = new CT_String();
3825
            //this.nameField = new CT_String();
3826
            //this.typeField = new CT_MailMergeOdsoFMDFieldType();
3827
        }
3828

3829
        [XmlElement(Order = 0)]
3830
        public CT_MailMergeOdsoFMDFieldType type
3831
        {
3832
            get
3833
            {
3834
                return this.typeField;
3835
            }
3836
            set
3837
            {
3838
                this.typeField = value;
3839
            }
3840
        }
3841

3842
        [XmlElement(Order = 1)]
3843
        public CT_String name
3844
        {
3845
            get
3846
            {
3847
                return this.nameField;
3848
            }
3849
            set
3850
            {
3851
                this.nameField = value;
3852
            }
3853
        }
3854

3855
        [XmlElement(Order = 2)]
3856
        public CT_String mappedName
3857
        {
3858
            get
3859
            {
3860
                return this.mappedNameField;
3861
            }
3862
            set
3863
            {
3864
                this.mappedNameField = value;
3865
            }
3866
        }
3867

3868
        [XmlElement(Order = 3)]
3869
        public CT_DecimalNumber column
3870
        {
3871
            get
3872
            {
3873
                return this.columnField;
3874
            }
3875
            set
3876
            {
3877
                this.columnField = value;
3878
            }
3879
        }
3880

3881
        [XmlElement(Order = 4)]
3882
        public CT_Lang lid
3883
        {
3884
            get
3885
            {
3886
                return this.lidField;
3887
            }
3888
            set
3889
            {
3890
                this.lidField = value;
3891
            }
3892
        }
3893

3894
        [XmlElement(Order = 5)]
3895
        public CT_OnOff dynamicAddress
3896
        {
3897
            get
3898
            {
3899
                return this.dynamicAddressField;
3900
            }
3901
            set
3902
            {
3903
                this.dynamicAddressField = value;
3904
            }
3905
        }
3906
    }
3907

3908

3909
    [Serializable]
3910

3911
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3912
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3913
    public class CT_MailMergeOdsoFMDFieldType
3914
    {
3915

3916
        private ST_MailMergeOdsoFMDFieldType valField;
3917
        public static CT_MailMergeOdsoFMDFieldType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3918
        {
3919
            if (node == null)
3920
                return null;
3921
            CT_MailMergeOdsoFMDFieldType ctObj = new CT_MailMergeOdsoFMDFieldType();
3922
            if (node.Attributes["w:val"] != null)
3923
                ctObj.val = (ST_MailMergeOdsoFMDFieldType)Enum.Parse(typeof(ST_MailMergeOdsoFMDFieldType), node.Attributes["w:val"].Value);
3924
            return ctObj;
3925
        }
3926

3927

3928

3929
        internal void Write(StreamWriter sw, string nodeName)
3930
        {
3931
            sw.Write(string.Format("<w:{0}", nodeName));
3932
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3933
            sw.Write(">");
3934
            sw.WriteEndW(nodeName);
3935
        }
3936

3937
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3938
        public ST_MailMergeOdsoFMDFieldType val
3939
        {
3940
            get
3941
            {
3942
                return this.valField;
3943
            }
3944
            set
3945
            {
3946
                this.valField = value;
3947
            }
3948
        }
3949
    }
3950

3951

3952
    [Serializable]
3953
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3954
    public enum ST_MailMergeOdsoFMDFieldType
3955
    {
3956

3957
    
3958
        @null,
3959

3960
    
3961
        dbColumn,
3962
    }
3963

3964

3965

3966

3967

3968
    [Serializable]
3969

3970
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3971
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
3972
    public class CT_TrackChangesView
3973
    {
3974

3975
        private ST_OnOff markupField;
3976

3977
        private bool markupFieldSpecified;
3978

3979
        private ST_OnOff commentsField;
3980

3981
        private bool commentsFieldSpecified;
3982

3983
        private ST_OnOff insDelField;
3984

3985
        private bool insDelFieldSpecified;
3986

3987
        private ST_OnOff formattingField;
3988

3989
        private bool formattingFieldSpecified;
3990

3991
        private ST_OnOff inkAnnotationsField;
3992

3993
        private bool inkAnnotationsFieldSpecified;
3994
        public static CT_TrackChangesView Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3995
        {
3996
            if (node == null)
3997
                return null;
3998
            CT_TrackChangesView ctObj = new CT_TrackChangesView();
3999
            if (node.Attributes["w:markup"] != null)
4000
                ctObj.markup = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:markup"].Value,true);
4001
            if (node.Attributes["w:comments"] != null)
4002
                ctObj.comments = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:comments"].Value,true);
4003
            if (node.Attributes["w:insDel"] != null)
4004
                ctObj.insDel = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:insDel"].Value,true);
4005
            if (node.Attributes["w:formatting"] != null)
4006
                ctObj.formatting = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:formatting"].Value,true);
4007
            if (node.Attributes["w:inkAnnotations"] != null)
4008
                ctObj.inkAnnotations = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:inkAnnotations"].Value,true);
4009
            return ctObj;
4010
        }
4011

4012

4013

4014
        internal void Write(StreamWriter sw, string nodeName)
4015
        {
4016
            sw.Write(string.Format("<w:{0}", nodeName));
4017
            XmlHelper.WriteAttribute(sw, "w:markup", this.markup.ToString());
4018
            XmlHelper.WriteAttribute(sw, "w:comments", this.comments.ToString());
4019
            XmlHelper.WriteAttribute(sw, "w:insDel", this.insDel.ToString());
4020
            XmlHelper.WriteAttribute(sw, "w:formatting", this.formatting.ToString());
4021
            XmlHelper.WriteAttribute(sw, "w:inkAnnotations", this.inkAnnotations.ToString());
4022
            sw.Write(">");
4023
            sw.WriteEndW(nodeName);
4024
        }
4025

4026
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4027
        public ST_OnOff markup
4028
        {
4029
            get
4030
            {
4031
                return this.markupField;
4032
            }
4033
            set
4034
            {
4035
                this.markupField = value;
4036
            }
4037
        }
4038

4039
        [XmlIgnore]
4040
        public bool markupSpecified
4041
        {
4042
            get
4043
            {
4044
                return this.markupFieldSpecified;
4045
            }
4046
            set
4047
            {
4048
                this.markupFieldSpecified = value;
4049
            }
4050
        }
4051

4052
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4053
        public ST_OnOff comments
4054
        {
4055
            get
4056
            {
4057
                return this.commentsField;
4058
            }
4059
            set
4060
            {
4061
                this.commentsField = value;
4062
            }
4063
        }
4064

4065
        [XmlIgnore]
4066
        public bool commentsSpecified
4067
        {
4068
            get
4069
            {
4070
                return this.commentsFieldSpecified;
4071
            }
4072
            set
4073
            {
4074
                this.commentsFieldSpecified = value;
4075
            }
4076
        }
4077

4078
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4079
        public ST_OnOff insDel
4080
        {
4081
            get
4082
            {
4083
                return this.insDelField;
4084
            }
4085
            set
4086
            {
4087
                this.insDelField = value;
4088
            }
4089
        }
4090

4091
        [XmlIgnore]
4092
        public bool insDelSpecified
4093
        {
4094
            get
4095
            {
4096
                return this.insDelFieldSpecified;
4097
            }
4098
            set
4099
            {
4100
                this.insDelFieldSpecified = value;
4101
            }
4102
        }
4103

4104
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4105
        public ST_OnOff formatting
4106
        {
4107
            get
4108
            {
4109
                return this.formattingField;
4110
            }
4111
            set
4112
            {
4113
                this.formattingField = value;
4114
            }
4115
        }
4116

4117
        [XmlIgnore]
4118
        public bool formattingSpecified
4119
        {
4120
            get
4121
            {
4122
                return this.formattingFieldSpecified;
4123
            }
4124
            set
4125
            {
4126
                this.formattingFieldSpecified = value;
4127
            }
4128
        }
4129

4130
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4131
        public ST_OnOff inkAnnotations
4132
        {
4133
            get
4134
            {
4135
                return this.inkAnnotationsField;
4136
            }
4137
            set
4138
            {
4139
                this.inkAnnotationsField = value;
4140
            }
4141
        }
4142

4143
        [XmlIgnore]
4144
        public bool inkAnnotationsSpecified
4145
        {
4146
            get
4147
            {
4148
                return this.inkAnnotationsFieldSpecified;
4149
            }
4150
            set
4151
            {
4152
                this.inkAnnotationsFieldSpecified = value;
4153
            }
4154
        }
4155
    }
4156

4157

4158
    [Serializable]
4159

4160
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4161
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
4162
    public class CT_DocProtect
4163
    {
4164

4165
        private ST_DocProtect editField;
4166

4167
        private bool editFieldSpecified;
4168

4169
        private ST_OnOff formattingField;
4170

4171
        private bool formattingFieldSpecified;
4172

4173
        private ST_OnOff enforcementField;
4174

4175
        private bool enforcementFieldSpecified;
4176

4177
        private ST_CryptProv? cryptProviderTypeField;
4178

4179
        private bool cryptProviderTypeFieldSpecified;
4180

4181
        private ST_AlgClass? cryptAlgorithmClassField;
4182

4183
        private bool cryptAlgorithmClassFieldSpecified;
4184

4185
        private ST_AlgType? cryptAlgorithmTypeField;
4186

4187
        private bool cryptAlgorithmTypeFieldSpecified;
4188

4189
        private string cryptAlgorithmSidField;
4190

4191
        private string cryptSpinCountField;
4192

4193
        private string cryptProviderField;
4194

4195
        private byte[] algIdExtField;
4196

4197
        private string algIdExtSourceField;
4198

4199
        private byte[] cryptProviderTypeExtField;
4200

4201
        private string cryptProviderTypeExtSourceField;
4202

4203
        private string hashField;
4204

4205
        private string saltField;
4206
        public static CT_DocProtect Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4207
        {
4208
            if (node == null)
4209
                return null;
4210
            CT_DocProtect ctObj = new CT_DocProtect();
4211
            if (node.Attributes["w:edit"] != null)
4212
                ctObj.edit = (ST_DocProtect)Enum.Parse(typeof(ST_DocProtect), node.Attributes["w:edit"].Value);
4213
            if (node.Attributes["w:formatting"] != null)
4214
                ctObj.formatting = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:formatting"].Value,true);
4215
            if (node.Attributes["w:enforcement"] != null)
4216
                ctObj.enforcement = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:enforcement"].Value,true);
4217
            if (node.Attributes["w:cryptProviderType"] != null)
4218
                ctObj.cryptProviderType = (ST_CryptProv)Enum.Parse(typeof(ST_CryptProv), node.Attributes["w:cryptProviderType"].Value);
4219
            if (node.Attributes["w:cryptAlgorithmClass"] != null)
4220
                ctObj.cryptAlgorithmClass = (ST_AlgClass)Enum.Parse(typeof(ST_AlgClass), node.Attributes["w:cryptAlgorithmClass"].Value);
4221
            if (node.Attributes["w:cryptAlgorithmType"] != null)
4222
                ctObj.cryptAlgorithmType = (ST_AlgType)Enum.Parse(typeof(ST_AlgType), node.Attributes["w:cryptAlgorithmType"].Value);
4223
            ctObj.cryptAlgorithmSid = XmlHelper.ReadString(node.Attributes["w:cryptAlgorithmSid"]);
4224
            ctObj.cryptSpinCount = XmlHelper.ReadString(node.Attributes["w:cryptSpinCount"]);
4225
            ctObj.cryptProvider = XmlHelper.ReadString(node.Attributes["w:cryptProvider"]);
4226
            ctObj.algIdExt = XmlHelper.ReadBytes(node.Attributes["w:algIdExt"]);
4227
            ctObj.algIdExtSource = XmlHelper.ReadString(node.Attributes["w:algIdExtSource"]);
4228
            ctObj.cryptProviderTypeExt = XmlHelper.ReadBytes(node.Attributes["w:cryptProviderTypeExt"]);
4229
            ctObj.cryptProviderTypeExtSource = XmlHelper.ReadString(node.Attributes["w:cryptProviderTypeExtSource"]);
4230
            ctObj.hash = XmlHelper.ReadString(node.Attributes["w:hash"]);
4231
            ctObj.salt = XmlHelper.ReadString(node.Attributes["w:salt"]);
4232
            return ctObj;
4233
        }
4234

4235

4236

4237
        internal void Write(StreamWriter sw, string nodeName)
4238
        {
4239
            sw.Write(string.Format("<w:{0}", nodeName));
4240
            XmlHelper.WriteAttribute(sw, "w:edit", this.edit.ToString());
4241
            XmlHelper.WriteAttribute(sw, "w:formatting", this.formatting.ToString());
4242
            XmlHelper.WriteAttribute(sw, "w:enforcement", this.enforcement.ToString());
4243
            if (this.cryptProviderType != null)
4244
                XmlHelper.WriteAttribute(sw, "w:cryptProviderType", this.cryptProviderType.ToString());
4245
            if (this.cryptAlgorithmClass != null)
4246
                XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmClass", this.cryptAlgorithmClass.ToString());
4247
            if (this.cryptAlgorithmType != null)
4248
                XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmType", this.cryptAlgorithmType.ToString());
4249
            XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmSid", this.cryptAlgorithmSid);
4250
            XmlHelper.WriteAttribute(sw, "w:cryptSpinCount", this.cryptSpinCount);
4251
            XmlHelper.WriteAttribute(sw, "w:cryptProvider", this.cryptProvider);
4252
            XmlHelper.WriteAttribute(sw, "w:algIdExt", this.algIdExt);
4253
            XmlHelper.WriteAttribute(sw, "w:algIdExtSource", this.algIdExtSource);
4254
            XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExt", this.cryptProviderTypeExt);
4255
            XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExtSource", this.cryptProviderTypeExtSource);
4256
            XmlHelper.WriteAttribute(sw, "w:hash", this.hash);
4257
            XmlHelper.WriteAttribute(sw, "w:salt", this.salt);
4258
            sw.Write("/>");
4259
        }
4260

4261
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4262
        public ST_DocProtect edit
4263
        {
4264
            get
4265
            {
4266
                return this.editField;
4267
            }
4268
            set
4269
            {
4270
                this.editField = value;
4271
            }
4272
        }
4273

4274
        [XmlIgnore]
4275
        public bool editSpecified
4276
        {
4277
            get
4278
            {
4279
                return this.editField != ST_DocProtect.none;
4280
                //return this.editFieldSpecified;
4281
            }
4282
            set
4283
            {
4284
                this.editFieldSpecified = value;
4285
            }
4286
        }
4287

4288
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4289
        public ST_OnOff formatting
4290
        {
4291
            get
4292
            {
4293
                return this.formattingField;
4294
            }
4295
            set
4296
            {
4297
                this.formattingField = value;
4298
            }
4299
        }
4300

4301
        [XmlIgnore]
4302
        public bool formattingSpecified
4303
        {
4304
            get
4305
            {
4306
                return this.formattingFieldSpecified;
4307
            }
4308
            set
4309
            {
4310
                this.formattingFieldSpecified = value;
4311
            }
4312
        }
4313

4314
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4315
        public ST_OnOff enforcement
4316
        {
4317
            get
4318
            {
4319
                return this.enforcementField;
4320
            }
4321
            set
4322
            {
4323
                this.enforcementField = value;
4324
            }
4325
        }
4326

4327
        [XmlIgnore]
4328
        public bool enforcementSpecified
4329
        {
4330
            get
4331
            {
4332
                return this.editField != ST_DocProtect.none;
4333
                //return this.enforcementFieldSpecified;
4334
            }
4335
            set
4336
            {
4337
                this.enforcementFieldSpecified = value;
4338
            }
4339
        }
4340

4341
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4342
        public ST_CryptProv? cryptProviderType
4343
        {
4344
            get
4345
            {
4346
                return this.cryptProviderTypeField;
4347
            }
4348
            set
4349
            {
4350
                this.cryptProviderTypeField = value;
4351
            }
4352
        }
4353

4354
        [XmlIgnore]
4355
        public bool cryptProviderTypeSpecified
4356
        {
4357
            get
4358
            {
4359
                return this.cryptProviderTypeFieldSpecified;
4360
            }
4361
            set
4362
            {
4363
                this.cryptProviderTypeFieldSpecified = value;
4364
            }
4365
        }
4366

4367
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4368
        public ST_AlgClass? cryptAlgorithmClass
4369
        {
4370
            get
4371
            {
4372
                return this.cryptAlgorithmClassField;
4373
            }
4374
            set
4375
            {
4376
                this.cryptAlgorithmClassField = value;
4377
            }
4378
        }
4379

4380
        [XmlIgnore]
4381
        public bool cryptAlgorithmClassSpecified
4382
        {
4383
            get
4384
            {
4385
                return this.cryptAlgorithmClassFieldSpecified;
4386
            }
4387
            set
4388
            {
4389
                this.cryptAlgorithmClassFieldSpecified = value;
4390
            }
4391
        }
4392

4393
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4394
        public ST_AlgType? cryptAlgorithmType
4395
        {
4396
            get
4397
            {
4398
                return this.cryptAlgorithmTypeField;
4399
            }
4400
            set
4401
            {
4402
                this.cryptAlgorithmTypeField = value;
4403
            }
4404
        }
4405

4406
        [XmlIgnore]
4407
        public bool cryptAlgorithmTypeSpecified
4408
        {
4409
            get
4410
            {
4411
                return this.cryptAlgorithmTypeFieldSpecified;
4412
            }
4413
            set
4414
            {
4415
                this.cryptAlgorithmTypeFieldSpecified = value;
4416
            }
4417
        }
4418

4419
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
4420
        public string cryptAlgorithmSid
4421
        {
4422
            get
4423
            {
4424
                return this.cryptAlgorithmSidField;
4425
            }
4426
            set
4427
            {
4428
                this.cryptAlgorithmSidField = value;
4429
            }
4430
        }
4431

4432
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
4433
        public string cryptSpinCount
4434
        {
4435
            get
4436
            {
4437
                return this.cryptSpinCountField;
4438
            }
4439
            set
4440
            {
4441
                this.cryptSpinCountField = value;
4442
            }
4443
        }
4444

4445
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4446
        public string cryptProvider
4447
        {
4448
            get
4449
            {
4450
                return this.cryptProviderField;
4451
            }
4452
            set
4453
            {
4454
                this.cryptProviderField = value;
4455
            }
4456
        }
4457

4458
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
4459
        public byte[] algIdExt
4460
        {
4461
            get
4462
            {
4463
                return this.algIdExtField;
4464
            }
4465
            set
4466
            {
4467
                this.algIdExtField = value;
4468
            }
4469
        }
4470

4471
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4472
        public string algIdExtSource
4473
        {
4474
            get
4475
            {
4476
                return this.algIdExtSourceField;
4477
            }
4478
            set
4479
            {
4480
                this.algIdExtSourceField = value;
4481
            }
4482
        }
4483

4484
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
4485
        public byte[] cryptProviderTypeExt
4486
        {
4487
            get
4488
            {
4489
                return this.cryptProviderTypeExtField;
4490
            }
4491
            set
4492
            {
4493
                this.cryptProviderTypeExtField = value;
4494
            }
4495
        }
4496

4497
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4498
        public string cryptProviderTypeExtSource
4499
        {
4500
            get
4501
            {
4502
                return this.cryptProviderTypeExtSourceField;
4503
            }
4504
            set
4505
            {
4506
                this.cryptProviderTypeExtSourceField = value;
4507
            }
4508
        }
4509

4510
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
4511
        public string hash
4512
        {
4513
            get
4514
            {
4515
                return this.hashField;
4516
            }
4517
            set
4518
            {
4519
                this.hashField = value;
4520
            }
4521
        }
4522

4523
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
4524
        public string salt
4525
        {
4526
            get
4527
            {
4528
                return this.saltField;
4529
            }
4530
            set
4531
            {
4532
                this.saltField = value;
4533
            }
4534
        }
4535

4536
        public bool IsSetCryptProviderType() => cryptProviderType != null;
4537
        public bool IsSetCryptAlgorithmClass() => cryptAlgorithmClass != null;
4538
        public bool IsSetCryptAlgorithmType() => cryptAlgorithmType != null;
4539
        public bool IsSetCryptAlgorithmSid() => !string.IsNullOrEmpty(cryptAlgorithmSid);
4540
        public bool IsSetCryptSpinCount() => !string.IsNullOrEmpty(cryptSpinCount);
4541
        public bool IsSetHash() => !string.IsNullOrEmpty(hash);
4542
        public bool IsSetSalt() => !string.IsNullOrEmpty(salt);
4543

4544
        public void UnsetCryptProviderType() => cryptProviderType = null;
4545
        public void UnsetCryptAlgorithmClass() => cryptAlgorithmClass = null;
4546
        public void UnsetCryptAlgorithmType() => cryptAlgorithmType = null;
4547
        public void UnsetCryptAlgorithmSid() => cryptAlgorithmSid = null;
4548
        public void UnsetCryptSpinCount() => cryptSpinCount = null;
4549
        public void UnsetHash() => hash = null;
4550
        public void UnsetSalt() => salt = null;
4551
    }
4552

4553

4554
    [Serializable]
4555
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4556
    public enum ST_DocProtect
4557
    {
4558

4559
    
4560
        none,
4561

4562
    
4563
        readOnly,
4564

4565
    
4566
        comments,
4567

4568
    
4569
        trackedChanges,
4570

4571
    
4572
        forms,
4573
    }
4574

4575

4576

4577

4578
    [Serializable]
4579

4580
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4581
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
4582
    public class CT_CharacterSpacing
4583
    {
4584

4585
        private ST_CharacterSpacing valField;
4586
        public static CT_CharacterSpacing Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4587
        {
4588
            if (node == null)
4589
                return null;
4590
            CT_CharacterSpacing ctObj = new CT_CharacterSpacing();
4591
            if (node.Attributes["w:val"] != null)
4592
                ctObj.val = (ST_CharacterSpacing)Enum.Parse(typeof(ST_CharacterSpacing), node.Attributes["w:val"].Value);
4593
            return ctObj;
4594
        }
4595

4596

4597

4598
        internal void Write(StreamWriter sw, string nodeName)
4599
        {
4600
            sw.Write(string.Format("<w:{0}", nodeName));
4601
            XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
4602
            sw.Write("/>");
4603
        }
4604

4605
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4606
        public ST_CharacterSpacing val
4607
        {
4608
            get
4609
            {
4610
                return this.valField;
4611
            }
4612
            set
4613
            {
4614
                this.valField = value;
4615
            }
4616
        }
4617
    }
4618

4619

4620
    [Serializable]
4621
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4622
    public enum ST_CharacterSpacing
4623
    {
4624

4625
    
4626
        doNotCompress,
4627

4628
    
4629
        compressPunctuation,
4630

4631
    
4632
        compressPunctuationAndJapaneseKana,
4633
    }
4634

4635

4636
    [Serializable]
4637

4638
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4639
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
4640
    public class CT_Kinsoku
4641
    {
4642

4643
        private string langField;
4644

4645
        private string valField;
4646
        public static CT_Kinsoku Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4647
        {
4648
            if (node == null)
4649
                return null;
4650
            CT_Kinsoku ctObj = new CT_Kinsoku();
4651
            ctObj.lang = XmlHelper.ReadString(node.Attributes["w:lang"]);
4652
            ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
4653
            return ctObj;
4654
        }
4655

4656

4657

4658
        internal void Write(StreamWriter sw, string nodeName)
4659
        {
4660
            sw.Write(string.Format("<w:{0}", nodeName));
4661
            XmlHelper.WriteAttribute(sw, "w:lang", this.lang);
4662
            XmlHelper.WriteAttribute(sw, "w:val", this.val);
4663
            sw.Write(">");
4664
            sw.WriteEndW(nodeName);
4665
        }
4666

4667
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4668
        public string lang
4669
        {
4670
            get
4671
            {
4672
                return this.langField;
4673
            }
4674
            set
4675
            {
4676
                this.langField = value;
4677
            }
4678
        }
4679

4680
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4681
        public string val
4682
        {
4683
            get
4684
            {
4685
                return this.valField;
4686
            }
4687
            set
4688
            {
4689
                this.valField = value;
4690
            }
4691
        }
4692
    }
4693

4694

4695
    [Serializable]
4696

4697
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4698
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
4699
    public class CT_SaveThroughXslt
4700
    {
4701

4702
        private string idField;
4703

4704
        private string solutionIDField;
4705
        public static CT_SaveThroughXslt Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4706
        {
4707
            if (node == null)
4708
                return null;
4709
            CT_SaveThroughXslt ctObj = new CT_SaveThroughXslt();
4710
            ctObj.id = XmlHelper.ReadString(node.Attributes["r:id"]);
4711
            ctObj.solutionID = XmlHelper.ReadString(node.Attributes["w:solutionID"]);
4712
            return ctObj;
4713
        }
4714

4715

4716

4717
        internal void Write(StreamWriter sw, string nodeName)
4718
        {
4719
            sw.Write(string.Format("<w:{0}", nodeName));
4720
            XmlHelper.WriteAttribute(sw, "r:id", this.id);
4721
            XmlHelper.WriteAttribute(sw, "w:solutionID", this.solutionID);
4722
            sw.Write(">");
4723
            sw.WriteEndW(nodeName);
4724
        }
4725

4726
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]
4727
        public string id
4728
        {
4729
            get
4730
            {
4731
                return this.idField;
4732
            }
4733
            set
4734
            {
4735
                this.idField = value;
4736
            }
4737
        }
4738

4739
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4740
        public string solutionID
4741
        {
4742
            get
4743
            {
4744
                return this.solutionIDField;
4745
            }
4746
            set
4747
            {
4748
                this.solutionIDField = value;
4749
            }
4750
        }
4751
    }
4752

4753

4754
    [Serializable]
4755

4756
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4757
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
4758
    public class CT_Compat
4759
    {
4760

4761
        private CT_OnOff useSingleBorderforContiguousCellsField;
4762

4763
        private CT_OnOff wpJustificationField;
4764

4765
        private CT_OnOff noTabHangIndField;
4766

4767
        private CT_OnOff noLeadingField;
4768

4769
        private CT_OnOff spaceForULField;
4770

4771
        private CT_OnOff noColumnBalanceField;
4772

4773
        private CT_OnOff balanceSingleByteDoubleByteWidthField;
4774

4775
        private CT_OnOff noExtraLineSpacingField;
4776

4777
        private CT_OnOff doNotLeaveBackslashAloneField;
4778

4779
        private CT_OnOff ulTrailSpaceField;
4780

4781
        private CT_OnOff doNotExpandShiftReturnField;
4782

4783
        private CT_OnOff spacingInWholePointsField;
4784

4785
        private CT_OnOff lineWrapLikeWord6Field;
4786

4787
        private CT_OnOff printBodyTextBeforeHeaderField;
4788

4789
        private CT_OnOff printColBlackField;
4790

4791
        private CT_OnOff wpSpaceWidthField;
4792

4793
        private CT_OnOff showBreaksInFramesField;
4794

4795
        private CT_OnOff subFontBySizeField;
4796

4797
        private CT_OnOff suppressBottomSpacingField;
4798

4799
        private CT_OnOff suppressTopSpacingField;
4800

4801
        private CT_OnOff suppressSpacingAtTopOfPageField;
4802

4803
        private CT_OnOff suppressTopSpacingWPField;
4804

4805
        private CT_OnOff suppressSpBfAfterPgBrkField;
4806

4807
        private CT_OnOff swapBordersFacingPagesField;
4808

4809
        private CT_OnOff convMailMergeEscField;
4810

4811
        private CT_OnOff truncateFontHeightsLikeWP6Field;
4812

4813
        private CT_OnOff mwSmallCapsField;
4814

4815
        private CT_OnOff usePrinterMetricsField;
4816

4817
        private CT_OnOff doNotSuppressParagraphBordersField;
4818

4819
        private CT_OnOff wrapTrailSpacesField;
4820

4821
        private CT_OnOff footnoteLayoutLikeWW8Field;
4822

4823
        private CT_OnOff shapeLayoutLikeWW8Field;
4824

4825
        private CT_OnOff alignTablesRowByRowField;
4826

4827
        private CT_OnOff forgetLastTabAlignmentField;
4828

4829
        private CT_OnOff adjustLineHeightInTableField;
4830

4831
        private CT_OnOff autoSpaceLikeWord95Field;
4832

4833
        private CT_OnOff noSpaceRaiseLowerField;
4834

4835
        private CT_OnOff doNotUseHTMLParagraphAutoSpacingField;
4836

4837
        private CT_OnOff layoutRawTableWidthField;
4838

4839
        private CT_OnOff layoutTableRowsApartField;
4840

4841
        private CT_OnOff useWord97LineBreakRulesField;
4842

4843
        private CT_OnOff doNotBreakWrappedTablesField;
4844

4845
        private CT_OnOff doNotSnapToGridInCellField;
4846

4847
        private CT_OnOff selectFldWithFirstOrLastCharField;
4848

4849
        private CT_OnOff applyBreakingRulesField;
4850

4851
        private CT_OnOff doNotWrapTextWithPunctField;
4852

4853
        private CT_OnOff doNotUseEastAsianBreakRulesField;
4854

4855
        private CT_OnOff useWord2002TableStyleRulesField;
4856

4857
        private CT_OnOff growAutofitField;
4858

4859
        private CT_OnOff useFELayoutField;
4860

4861
        private CT_OnOff useNormalStyleForListField;
4862

4863
        private CT_OnOff doNotUseIndentAsNumberingTabStopField;
4864

4865
        private CT_OnOff useAltKinsokuLineBreakRulesField;
4866

4867
        private CT_OnOff allowSpaceOfSameStyleInTableField;
4868

4869
        private CT_OnOff doNotSuppressIndentationField;
4870

4871
        private CT_OnOff doNotAutofitConstrainedTablesField;
4872

4873
        private CT_OnOff autofitToFirstFixedWidthCellField;
4874

4875
        private CT_OnOff underlineTabInNumListField;
4876

4877
        private CT_OnOff displayHangulFixedWidthField;
4878

4879
        private CT_OnOff splitPgBreakAndParaMarkField;
4880

4881
        private CT_OnOff doNotVertAlignCellWithSpField;
4882

4883
        private CT_OnOff doNotBreakConstrainedForcedTableField;
4884

4885
        private CT_OnOff doNotVertAlignInTxbxField;
4886

4887
        private CT_OnOff useAnsiKerningPairsField;
4888

4889
        private CT_OnOff cachedColBalanceField;
4890
        public static CT_Compat Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4891
        {
4892
            if (node == null)
4893
                return null;
4894
            CT_Compat ctObj = new CT_Compat();
4895
            foreach (XmlNode childNode in node.ChildNodes)
4896
            {
4897
                if (childNode.LocalName == "useSingleBorderforContiguousCells")
4898
                    ctObj.useSingleBorderforContiguousCells = CT_OnOff.Parse(childNode, namespaceManager);
4899
                else if (childNode.LocalName == "wpJustification")
4900
                    ctObj.wpJustification = CT_OnOff.Parse(childNode, namespaceManager);
4901
                else if (childNode.LocalName == "noTabHangInd")
4902
                    ctObj.noTabHangInd = CT_OnOff.Parse(childNode, namespaceManager);
4903
                else if (childNode.LocalName == "noLeading")
4904
                    ctObj.noLeading = CT_OnOff.Parse(childNode, namespaceManager);
4905
                else if (childNode.LocalName == "spaceForUL")
4906
                    ctObj.spaceForUL = CT_OnOff.Parse(childNode, namespaceManager);
4907
                else if (childNode.LocalName == "noColumnBalance")
4908
                    ctObj.noColumnBalance = CT_OnOff.Parse(childNode, namespaceManager);
4909
                else if (childNode.LocalName == "balanceSingleByteDoubleByteWidth")
4910
                    ctObj.balanceSingleByteDoubleByteWidth = CT_OnOff.Parse(childNode, namespaceManager);
4911
                else if (childNode.LocalName == "noExtraLineSpacing")
4912
                    ctObj.noExtraLineSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4913
                else if (childNode.LocalName == "doNotLeaveBackslashAlone")
4914
                    ctObj.doNotLeaveBackslashAlone = CT_OnOff.Parse(childNode, namespaceManager);
4915
                else if (childNode.LocalName == "ulTrailSpace")
4916
                    ctObj.ulTrailSpace = CT_OnOff.Parse(childNode, namespaceManager);
4917
                else if (childNode.LocalName == "doNotExpandShiftReturn")
4918
                    ctObj.doNotExpandShiftReturn = CT_OnOff.Parse(childNode, namespaceManager);
4919
                else if (childNode.LocalName == "spacingInWholePoints")
4920
                    ctObj.spacingInWholePoints = CT_OnOff.Parse(childNode, namespaceManager);
4921
                else if (childNode.LocalName == "lineWrapLikeWord6")
4922
                    ctObj.lineWrapLikeWord6 = CT_OnOff.Parse(childNode, namespaceManager);
4923
                else if (childNode.LocalName == "printBodyTextBeforeHeader")
4924
                    ctObj.printBodyTextBeforeHeader = CT_OnOff.Parse(childNode, namespaceManager);
4925
                else if (childNode.LocalName == "printColBlack")
4926
                    ctObj.printColBlack = CT_OnOff.Parse(childNode, namespaceManager);
4927
                else if (childNode.LocalName == "wpSpaceWidth")
4928
                    ctObj.wpSpaceWidth = CT_OnOff.Parse(childNode, namespaceManager);
4929
                else if (childNode.LocalName == "showBreaksInFrames")
4930
                    ctObj.showBreaksInFrames = CT_OnOff.Parse(childNode, namespaceManager);
4931
                else if (childNode.LocalName == "subFontBySize")
4932
                    ctObj.subFontBySize = CT_OnOff.Parse(childNode, namespaceManager);
4933
                else if (childNode.LocalName == "suppressBottomSpacing")
4934
                    ctObj.suppressBottomSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4935
                else if (childNode.LocalName == "suppressTopSpacing")
4936
                    ctObj.suppressTopSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4937
                else if (childNode.LocalName == "suppressSpacingAtTopOfPage")
4938
                    ctObj.suppressSpacingAtTopOfPage = CT_OnOff.Parse(childNode, namespaceManager);
4939
                else if (childNode.LocalName == "suppressTopSpacingWP")
4940
                    ctObj.suppressTopSpacingWP = CT_OnOff.Parse(childNode, namespaceManager);
4941
                else if (childNode.LocalName == "suppressSpBfAfterPgBrk")
4942
                    ctObj.suppressSpBfAfterPgBrk = CT_OnOff.Parse(childNode, namespaceManager);
4943
                else if (childNode.LocalName == "swapBordersFacingPages")
4944
                    ctObj.swapBordersFacingPages = CT_OnOff.Parse(childNode, namespaceManager);
4945
                else if (childNode.LocalName == "convMailMergeEsc")
4946
                    ctObj.convMailMergeEsc = CT_OnOff.Parse(childNode, namespaceManager);
4947
                else if (childNode.LocalName == "truncateFontHeightsLikeWP6")
4948
                    ctObj.truncateFontHeightsLikeWP6 = CT_OnOff.Parse(childNode, namespaceManager);
4949
                else if (childNode.LocalName == "mwSmallCaps")
4950
                    ctObj.mwSmallCaps = CT_OnOff.Parse(childNode, namespaceManager);
4951
                else if (childNode.LocalName == "usePrinterMetrics")
4952
                    ctObj.usePrinterMetrics = CT_OnOff.Parse(childNode, namespaceManager);
4953
                else if (childNode.LocalName == "doNotSuppressParagraphBorders")
4954
                    ctObj.doNotSuppressParagraphBorders = CT_OnOff.Parse(childNode, namespaceManager);
4955
                else if (childNode.LocalName == "wrapTrailSpaces")
4956
                    ctObj.wrapTrailSpaces = CT_OnOff.Parse(childNode, namespaceManager);
4957
                else if (childNode.LocalName == "footnoteLayoutLikeWW8")
4958
                    ctObj.footnoteLayoutLikeWW8 = CT_OnOff.Parse(childNode, namespaceManager);
4959
                else if (childNode.LocalName == "shapeLayoutLikeWW8")
4960
                    ctObj.shapeLayoutLikeWW8 = CT_OnOff.Parse(childNode, namespaceManager);
4961
                else if (childNode.LocalName == "alignTablesRowByRow")
4962
                    ctObj.alignTablesRowByRow = CT_OnOff.Parse(childNode, namespaceManager);
4963
                else if (childNode.LocalName == "forgetLastTabAlignment")
4964
                    ctObj.forgetLastTabAlignment = CT_OnOff.Parse(childNode, namespaceManager);
4965
                else if (childNode.LocalName == "adjustLineHeightInTable")
4966
                    ctObj.adjustLineHeightInTable = CT_OnOff.Parse(childNode, namespaceManager);
4967
                else if (childNode.LocalName == "autoSpaceLikeWord95")
4968
                    ctObj.autoSpaceLikeWord95 = CT_OnOff.Parse(childNode, namespaceManager);
4969
                else if (childNode.LocalName == "noSpaceRaiseLower")
4970
                    ctObj.noSpaceRaiseLower = CT_OnOff.Parse(childNode, namespaceManager);
4971
                else if (childNode.LocalName == "doNotUseHTMLParagraphAutoSpacing")
4972
                    ctObj.doNotUseHTMLParagraphAutoSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4973
                else if (childNode.LocalName == "layoutRawTableWidth")
4974
                    ctObj.layoutRawTableWidth = CT_OnOff.Parse(childNode, namespaceManager);
4975
                else if (childNode.LocalName == "layoutTableRowsApart")
4976
                    ctObj.layoutTableRowsApart = CT_OnOff.Parse(childNode, namespaceManager);
4977
                else if (childNode.LocalName == "useWord97LineBreakRules")
4978
                    ctObj.useWord97LineBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
4979
                else if (childNode.LocalName == "doNotBreakWrappedTables")
4980
                    ctObj.doNotBreakWrappedTables = CT_OnOff.Parse(childNode, namespaceManager);
4981
                else if (childNode.LocalName == "doNotSnapToGridInCell")
4982
                    ctObj.doNotSnapToGridInCell = CT_OnOff.Parse(childNode, namespaceManager);
4983
                else if (childNode.LocalName == "selectFldWithFirstOrLastChar")
4984
                    ctObj.selectFldWithFirstOrLastChar = CT_OnOff.Parse(childNode, namespaceManager);
4985
                else if (childNode.LocalName == "applyBreakingRules")
4986
                    ctObj.applyBreakingRules = CT_OnOff.Parse(childNode, namespaceManager);
4987
                else if (childNode.LocalName == "doNotWrapTextWithPunct")
4988
                    ctObj.doNotWrapTextWithPunct = CT_OnOff.Parse(childNode, namespaceManager);
4989
                else if (childNode.LocalName == "doNotUseEastAsianBreakRules")
4990
                    ctObj.doNotUseEastAsianBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
4991
                else if (childNode.LocalName == "useWord2002TableStyleRules")
4992
                    ctObj.useWord2002TableStyleRules = CT_OnOff.Parse(childNode, namespaceManager);
4993
                else if (childNode.LocalName == "growAutofit")
4994
                    ctObj.growAutofit = CT_OnOff.Parse(childNode, namespaceManager);
4995
                else if (childNode.LocalName == "useFELayout")
4996
                    ctObj.useFELayout = CT_OnOff.Parse(childNode, namespaceManager);
4997
                else if (childNode.LocalName == "useNormalStyleForList")
4998
                    ctObj.useNormalStyleForList = CT_OnOff.Parse(childNode, namespaceManager);
4999
                else if (childNode.LocalName == "doNotUseIndentAsNumberingTabStop")
5000
                    ctObj.doNotUseIndentAsNumberingTabStop = CT_OnOff.Parse(childNode, namespaceManager);
5001
                else if (childNode.LocalName == "useAltKinsokuLineBreakRules")
5002
                    ctObj.useAltKinsokuLineBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
5003
                else if (childNode.LocalName == "allowSpaceOfSameStyleInTable")
5004
                    ctObj.allowSpaceOfSameStyleInTable = CT_OnOff.Parse(childNode, namespaceManager);
5005
                else if (childNode.LocalName == "doNotSuppressIndentation")
5006
                    ctObj.doNotSuppressIndentation = CT_OnOff.Parse(childNode, namespaceManager);
5007
                else if (childNode.LocalName == "doNotAutofitConstrainedTables")
5008
                    ctObj.doNotAutofitConstrainedTables = CT_OnOff.Parse(childNode, namespaceManager);
5009
                else if (childNode.LocalName == "autofitToFirstFixedWidthCell")
5010
                    ctObj.autofitToFirstFixedWidthCell = CT_OnOff.Parse(childNode, namespaceManager);
5011
                else if (childNode.LocalName == "underlineTabInNumList")
5012
                    ctObj.underlineTabInNumList = CT_OnOff.Parse(childNode, namespaceManager);
5013
                else if (childNode.LocalName == "displayHangulFixedWidth")
5014
                    ctObj.displayHangulFixedWidth = CT_OnOff.Parse(childNode, namespaceManager);
5015
                else if (childNode.LocalName == "splitPgBreakAndParaMark")
5016
                    ctObj.splitPgBreakAndParaMark = CT_OnOff.Parse(childNode, namespaceManager);
5017
                else if (childNode.LocalName == "doNotVertAlignCellWithSp")
5018
                    ctObj.doNotVertAlignCellWithSp = CT_OnOff.Parse(childNode, namespaceManager);
5019
                else if (childNode.LocalName == "doNotBreakConstrainedForcedTable")
5020
                    ctObj.doNotBreakConstrainedForcedTable = CT_OnOff.Parse(childNode, namespaceManager);
5021
                else if (childNode.LocalName == "doNotVertAlignInTxbx")
5022
                    ctObj.doNotVertAlignInTxbx = CT_OnOff.Parse(childNode, namespaceManager);
5023
                else if (childNode.LocalName == "useAnsiKerningPairs")
5024
                    ctObj.useAnsiKerningPairs = CT_OnOff.Parse(childNode, namespaceManager);
5025
                else if (childNode.LocalName == "cachedColBalance")
5026
                    ctObj.cachedColBalance = CT_OnOff.Parse(childNode, namespaceManager);
5027
            }
5028
            return ctObj;
5029
        }
5030

5031

5032

5033
        internal void Write(StreamWriter sw, string nodeName)
5034
        {
5035
            sw.Write(string.Format("<w:{0}", nodeName));
5036
            sw.Write(">");
5037
            if (this.useSingleBorderforContiguousCells != null)
5038
                this.useSingleBorderforContiguousCells.Write(sw, "useSingleBorderforContiguousCells");
5039
            if (this.wpJustification != null)
5040
                this.wpJustification.Write(sw, "wpJustification");
5041
            if (this.noTabHangInd != null)
5042
                this.noTabHangInd.Write(sw, "noTabHangInd");
5043
            if (this.noLeading != null)
5044
                this.noLeading.Write(sw, "noLeading");
5045
            if (this.spaceForUL != null)
5046
                this.spaceForUL.Write(sw, "spaceForUL");
5047
            if (this.noColumnBalance != null)
5048
                this.noColumnBalance.Write(sw, "noColumnBalance");
5049
            if (this.balanceSingleByteDoubleByteWidth != null)
5050
                this.balanceSingleByteDoubleByteWidth.Write(sw, "balanceSingleByteDoubleByteWidth");
5051
            if (this.noExtraLineSpacing != null)
5052
                this.noExtraLineSpacing.Write(sw, "noExtraLineSpacing");
5053
            if (this.doNotLeaveBackslashAlone != null)
5054
                this.doNotLeaveBackslashAlone.Write(sw, "doNotLeaveBackslashAlone");
5055
            if (this.ulTrailSpace != null)
5056
                this.ulTrailSpace.Write(sw, "ulTrailSpace");
5057
            if (this.doNotExpandShiftReturn != null)
5058
                this.doNotExpandShiftReturn.Write(sw, "doNotExpandShiftReturn");
5059
            if (this.spacingInWholePoints != null)
5060
                this.spacingInWholePoints.Write(sw, "spacingInWholePoints");
5061
            if (this.lineWrapLikeWord6 != null)
5062
                this.lineWrapLikeWord6.Write(sw, "lineWrapLikeWord6");
5063
            if (this.printBodyTextBeforeHeader != null)
5064
                this.printBodyTextBeforeHeader.Write(sw, "printBodyTextBeforeHeader");
5065
            if (this.printColBlack != null)
5066
                this.printColBlack.Write(sw, "printColBlack");
5067
            if (this.wpSpaceWidth != null)
5068
                this.wpSpaceWidth.Write(sw, "wpSpaceWidth");
5069
            if (this.showBreaksInFrames != null)
5070
                this.showBreaksInFrames.Write(sw, "showBreaksInFrames");
5071
            if (this.subFontBySize != null)
5072
                this.subFontBySize.Write(sw, "subFontBySize");
5073
            if (this.suppressBottomSpacing != null)
5074
                this.suppressBottomSpacing.Write(sw, "suppressBottomSpacing");
5075
            if (this.suppressTopSpacing != null)
5076
                this.suppressTopSpacing.Write(sw, "suppressTopSpacing");
5077
            if (this.suppressSpacingAtTopOfPage != null)
5078
                this.suppressSpacingAtTopOfPage.Write(sw, "suppressSpacingAtTopOfPage");
5079
            if (this.suppressTopSpacingWP != null)
5080
                this.suppressTopSpacingWP.Write(sw, "suppressTopSpacingWP");
5081
            if (this.suppressSpBfAfterPgBrk != null)
5082
                this.suppressSpBfAfterPgBrk.Write(sw, "suppressSpBfAfterPgBrk");
5083
            if (this.swapBordersFacingPages != null)
5084
                this.swapBordersFacingPages.Write(sw, "swapBordersFacingPages");
5085
            if (this.convMailMergeEsc != null)
5086
                this.convMailMergeEsc.Write(sw, "convMailMergeEsc");
5087
            if (this.truncateFontHeightsLikeWP6 != null)
5088
                this.truncateFontHeightsLikeWP6.Write(sw, "truncateFontHeightsLikeWP6");
5089
            if (this.mwSmallCaps != null)
5090
                this.mwSmallCaps.Write(sw, "mwSmallCaps");
5091
            if (this.usePrinterMetrics != null)
5092
                this.usePrinterMetrics.Write(sw, "usePrinterMetrics");
5093
            if (this.doNotSuppressParagraphBorders != null)
5094
                this.doNotSuppressParagraphBorders.Write(sw, "doNotSuppressParagraphBorders");
5095
            if (this.wrapTrailSpaces != null)
5096
                this.wrapTrailSpaces.Write(sw, "wrapTrailSpaces");
5097
            if (this.footnoteLayoutLikeWW8 != null)
5098
                this.footnoteLayoutLikeWW8.Write(sw, "footnoteLayoutLikeWW8");
5099
            if (this.shapeLayoutLikeWW8 != null)
5100
                this.shapeLayoutLikeWW8.Write(sw, "shapeLayoutLikeWW8");
5101
            if (this.alignTablesRowByRow != null)
5102
                this.alignTablesRowByRow.Write(sw, "alignTablesRowByRow");
5103
            if (this.forgetLastTabAlignment != null)
5104
                this.forgetLastTabAlignment.Write(sw, "forgetLastTabAlignment");
5105
            if (this.adjustLineHeightInTable != null)
5106
                this.adjustLineHeightInTable.Write(sw, "adjustLineHeightInTable");
5107
            if (this.autoSpaceLikeWord95 != null)
5108
                this.autoSpaceLikeWord95.Write(sw, "autoSpaceLikeWord95");
5109
            if (this.noSpaceRaiseLower != null)
5110
                this.noSpaceRaiseLower.Write(sw, "noSpaceRaiseLower");
5111
            if (this.doNotUseHTMLParagraphAutoSpacing != null)
5112
                this.doNotUseHTMLParagraphAutoSpacing.Write(sw, "doNotUseHTMLParagraphAutoSpacing");
5113
            if (this.layoutRawTableWidth != null)
5114
                this.layoutRawTableWidth.Write(sw, "layoutRawTableWidth");
5115
            if (this.layoutTableRowsApart != null)
5116
                this.layoutTableRowsApart.Write(sw, "layoutTableRowsApart");
5117
            if (this.useWord97LineBreakRules != null)
5118
                this.useWord97LineBreakRules.Write(sw, "useWord97LineBreakRules");
5119
            if (this.doNotBreakWrappedTables != null)
5120
                this.doNotBreakWrappedTables.Write(sw, "doNotBreakWrappedTables");
5121
            if (this.doNotSnapToGridInCell != null)
5122
                this.doNotSnapToGridInCell.Write(sw, "doNotSnapToGridInCell");
5123
            if (this.selectFldWithFirstOrLastChar != null)
5124
                this.selectFldWithFirstOrLastChar.Write(sw, "selectFldWithFirstOrLastChar");
5125
            if (this.applyBreakingRules != null)
5126
                this.applyBreakingRules.Write(sw, "applyBreakingRules");
5127
            if (this.doNotWrapTextWithPunct != null)
5128
                this.doNotWrapTextWithPunct.Write(sw, "doNotWrapTextWithPunct");
5129
            if (this.doNotUseEastAsianBreakRules != null)
5130
                this.doNotUseEastAsianBreakRules.Write(sw, "doNotUseEastAsianBreakRules");
5131
            if (this.useWord2002TableStyleRules != null)
5132
                this.useWord2002TableStyleRules.Write(sw, "useWord2002TableStyleRules");
5133
            if (this.growAutofit != null)
5134
                this.growAutofit.Write(sw, "growAutofit");
5135
            if (this.useFELayout != null)
5136
                this.useFELayout.Write(sw, "useFELayout");
5137
            if (this.useNormalStyleForList != null)
5138
                this.useNormalStyleForList.Write(sw, "useNormalStyleForList");
5139
            if (this.doNotUseIndentAsNumberingTabStop != null)
5140
                this.doNotUseIndentAsNumberingTabStop.Write(sw, "doNotUseIndentAsNumberingTabStop");
5141
            if (this.useAltKinsokuLineBreakRules != null)
5142
                this.useAltKinsokuLineBreakRules.Write(sw, "useAltKinsokuLineBreakRules");
5143
            if (this.allowSpaceOfSameStyleInTable != null)
5144
                this.allowSpaceOfSameStyleInTable.Write(sw, "allowSpaceOfSameStyleInTable");
5145
            if (this.doNotSuppressIndentation != null)
5146
                this.doNotSuppressIndentation.Write(sw, "doNotSuppressIndentation");
5147
            if (this.doNotAutofitConstrainedTables != null)
5148
                this.doNotAutofitConstrainedTables.Write(sw, "doNotAutofitConstrainedTables");
5149
            if (this.autofitToFirstFixedWidthCell != null)
5150
                this.autofitToFirstFixedWidthCell.Write(sw, "autofitToFirstFixedWidthCell");
5151
            if (this.underlineTabInNumList != null)
5152
                this.underlineTabInNumList.Write(sw, "underlineTabInNumList");
5153
            if (this.displayHangulFixedWidth != null)
5154
                this.displayHangulFixedWidth.Write(sw, "displayHangulFixedWidth");
5155
            if (this.splitPgBreakAndParaMark != null)
5156
                this.splitPgBreakAndParaMark.Write(sw, "splitPgBreakAndParaMark");
5157
            if (this.doNotVertAlignCellWithSp != null)
5158
                this.doNotVertAlignCellWithSp.Write(sw, "doNotVertAlignCellWithSp");
5159
            if (this.doNotBreakConstrainedForcedTable != null)
5160
                this.doNotBreakConstrainedForcedTable.Write(sw, "doNotBreakConstrainedForcedTable");
5161
            if (this.doNotVertAlignInTxbx != null)
5162
                this.doNotVertAlignInTxbx.Write(sw, "doNotVertAlignInTxbx");
5163
            if (this.useAnsiKerningPairs != null)
5164
                this.useAnsiKerningPairs.Write(sw, "useAnsiKerningPairs");
5165
            if (this.cachedColBalance != null)
5166
                this.cachedColBalance.Write(sw, "cachedColBalance");
5167
            sw.WriteEndW(nodeName);
5168
        }
5169

5170
        public CT_Compat()
5171
        {
5172
            //this.cachedColBalanceField = new CT_OnOff();
5173
            //this.useAnsiKerningPairsField = new CT_OnOff();
5174
            //this.doNotVertAlignInTxbxField = new CT_OnOff();
5175
            //this.doNotBreakConstrainedForcedTableField = new CT_OnOff();
5176
            //this.doNotVertAlignCellWithSpField = new CT_OnOff();
5177
            //this.splitPgBreakAndParaMarkField = new CT_OnOff();
5178
            //this.displayHangulFixedWidthField = new CT_OnOff();
5179
            //this.underlineTabInNumListField = new CT_OnOff();
5180
            //this.autofitToFirstFixedWidthCellField = new CT_OnOff();
5181
            //this.doNotAutofitConstrainedTablesField = new CT_OnOff();
5182
            //this.doNotSuppressIndentationField = new CT_OnOff();
5183
            //this.allowSpaceOfSameStyleInTableField = new CT_OnOff();
5184
            //this.useAltKinsokuLineBreakRulesField = new CT_OnOff();
5185
            //this.doNotUseIndentAsNumberingTabStopField = new CT_OnOff();
5186
            //this.useNormalStyleForListField = new CT_OnOff();
5187
            this.useFELayoutField = new CT_OnOff();
5188
            //this.growAutofitField = new CT_OnOff();
5189
            //this.useWord2002TableStyleRulesField = new CT_OnOff();
5190
            //this.doNotUseEastAsianBreakRulesField = new CT_OnOff();
5191
            //this.doNotWrapTextWithPunctField = new CT_OnOff();
5192
            //this.applyBreakingRulesField = new CT_OnOff();
5193
            //this.selectFldWithFirstOrLastCharField = new CT_OnOff();
5194
            //this.doNotSnapToGridInCellField = new CT_OnOff();
5195
            //this.doNotBreakWrappedTablesField = new CT_OnOff();
5196
            //this.useWord97LineBreakRulesField = new CT_OnOff();
5197
            //this.layoutTableRowsApartField = new CT_OnOff();
5198
            //this.layoutRawTableWidthField = new CT_OnOff();
5199
            //this.doNotUseHTMLParagraphAutoSpacingField = new CT_OnOff();
5200
            //this.noSpaceRaiseLowerField = new CT_OnOff();
5201
            //this.autoSpaceLikeWord95Field = new CT_OnOff();
5202
            this.adjustLineHeightInTableField = new CT_OnOff();
5203
            //this.forgetLastTabAlignmentField = new CT_OnOff();
5204
            //this.alignTablesRowByRowField = new CT_OnOff();
5205
            //this.shapeLayoutLikeWW8Field = new CT_OnOff();
5206
            //this.footnoteLayoutLikeWW8Field = new CT_OnOff();
5207
            //this.wrapTrailSpacesField = new CT_OnOff();
5208
            //this.doNotSuppressParagraphBordersField = new CT_OnOff();
5209
            //this.usePrinterMetricsField = new CT_OnOff();
5210
            //this.mwSmallCapsField = new CT_OnOff();
5211
            //this.truncateFontHeightsLikeWP6Field = new CT_OnOff();
5212
            //this.convMailMergeEscField = new CT_OnOff();
5213
            //this.swapBordersFacingPagesField = new CT_OnOff();
5214
            //this.suppressSpBfAfterPgBrkField = new CT_OnOff();
5215
            //this.suppressTopSpacingWPField = new CT_OnOff();
5216
            //this.suppressSpacingAtTopOfPageField = new CT_OnOff();
5217
            //this.suppressTopSpacingField = new CT_OnOff();
5218
            //this.suppressBottomSpacingField = new CT_OnOff();
5219
            //this.subFontBySizeField = new CT_OnOff();
5220
            //this.showBreaksInFramesField = new CT_OnOff();
5221
            //this.wpSpaceWidthField = new CT_OnOff();
5222
            //this.printColBlackField = new CT_OnOff();
5223
            //this.printBodyTextBeforeHeaderField = new CT_OnOff();
5224
            //this.lineWrapLikeWord6Field = new CT_OnOff();
5225
            //this.spacingInWholePointsField = new CT_OnOff();
5226
            this.doNotExpandShiftReturnField = new CT_OnOff();
5227
            this.ulTrailSpaceField = new CT_OnOff();
5228
            this.doNotLeaveBackslashAloneField = new CT_OnOff();
5229
            //this.noExtraLineSpacingField = new CT_OnOff();
5230
            this.balanceSingleByteDoubleByteWidthField = new CT_OnOff();
5231
            //this.noColumnBalanceField = new CT_OnOff();
5232
            this.spaceForULField = new CT_OnOff();
5233
            //this.noLeadingField = new CT_OnOff();
5234
            //this.noTabHangIndField = new CT_OnOff();
5235
            //this.wpJustificationField = new CT_OnOff();
5236
            //this.useSingleBorderforContiguousCellsField = new CT_OnOff();
5237
        }
5238

5239
        [XmlElement(Order = 0)]
5240
        public CT_OnOff useSingleBorderforContiguousCells
5241
        {
5242
            get
5243
            {
5244
                return this.useSingleBorderforContiguousCellsField;
5245
            }
5246
            set
5247
            {
5248
                this.useSingleBorderforContiguousCellsField = value;
5249
            }
5250
        }
5251

5252
        [XmlElement(Order = 1)]
5253
        public CT_OnOff wpJustification
5254
        {
5255
            get
5256
            {
5257
                return this.wpJustificationField;
5258
            }
5259
            set
5260
            {
5261
                this.wpJustificationField = value;
5262
            }
5263
        }
5264

5265
        [XmlElement(Order = 2)]
5266
        public CT_OnOff noTabHangInd
5267
        {
5268
            get
5269
            {
5270
                return this.noTabHangIndField;
5271
            }
5272
            set
5273
            {
5274
                this.noTabHangIndField = value;
5275
            }
5276
        }
5277

5278
        [XmlElement(Order = 3)]
5279
        public CT_OnOff noLeading
5280
        {
5281
            get
5282
            {
5283
                return this.noLeadingField;
5284
            }
5285
            set
5286
            {
5287
                this.noLeadingField = value;
5288
            }
5289
        }
5290

5291
        [XmlElement(Order = 4)]
5292
        public CT_OnOff spaceForUL
5293
        {
5294
            get
5295
            {
5296
                return this.spaceForULField;
5297
            }
5298
            set
5299
            {
5300
                this.spaceForULField = value;
5301
            }
5302
        }
5303

5304
        [XmlElement(Order = 5)]
5305
        public CT_OnOff noColumnBalance
5306
        {
5307
            get
5308
            {
5309
                return this.noColumnBalanceField;
5310
            }
5311
            set
5312
            {
5313
                this.noColumnBalanceField = value;
5314
            }
5315
        }
5316

5317
        [XmlElement(Order = 6)]
5318
        public CT_OnOff balanceSingleByteDoubleByteWidth
5319
        {
5320
            get
5321
            {
5322
                return this.balanceSingleByteDoubleByteWidthField;
5323
            }
5324
            set
5325
            {
5326
                this.balanceSingleByteDoubleByteWidthField = value;
5327
            }
5328
        }
5329

5330
        [XmlElement(Order = 7)]
5331
        public CT_OnOff noExtraLineSpacing
5332
        {
5333
            get
5334
            {
5335
                return this.noExtraLineSpacingField;
5336
            }
5337
            set
5338
            {
5339
                this.noExtraLineSpacingField = value;
5340
            }
5341
        }
5342

5343
        [XmlElement(Order = 8)]
5344
        public CT_OnOff doNotLeaveBackslashAlone
5345
        {
5346
            get
5347
            {
5348
                return this.doNotLeaveBackslashAloneField;
5349
            }
5350
            set
5351
            {
5352
                this.doNotLeaveBackslashAloneField = value;
5353
            }
5354
        }
5355

5356
        [XmlElement(Order = 9)]
5357
        public CT_OnOff ulTrailSpace
5358
        {
5359
            get
5360
            {
5361
                return this.ulTrailSpaceField;
5362
            }
5363
            set
5364
            {
5365
                this.ulTrailSpaceField = value;
5366
            }
5367
        }
5368

5369
        [XmlElement(Order = 10)]
5370
        public CT_OnOff doNotExpandShiftReturn
5371
        {
5372
            get
5373
            {
5374
                return this.doNotExpandShiftReturnField;
5375
            }
5376
            set
5377
            {
5378
                this.doNotExpandShiftReturnField = value;
5379
            }
5380
        }
5381

5382
        [XmlElement(Order = 11)]
5383
        public CT_OnOff spacingInWholePoints
5384
        {
5385
            get
5386
            {
5387
                return this.spacingInWholePointsField;
5388
            }
5389
            set
5390
            {
5391
                this.spacingInWholePointsField = value;
5392
            }
5393
        }
5394

5395
        [XmlElement(Order = 12)]
5396
        public CT_OnOff lineWrapLikeWord6
5397
        {
5398
            get
5399
            {
5400
                return this.lineWrapLikeWord6Field;
5401
            }
5402
            set
5403
            {
5404
                this.lineWrapLikeWord6Field = value;
5405
            }
5406
        }
5407

5408
        [XmlElement(Order = 13)]
5409
        public CT_OnOff printBodyTextBeforeHeader
5410
        {
5411
            get
5412
            {
5413
                return this.printBodyTextBeforeHeaderField;
5414
            }
5415
            set
5416
            {
5417
                this.printBodyTextBeforeHeaderField = value;
5418
            }
5419
        }
5420

5421
        [XmlElement(Order = 14)]
5422
        public CT_OnOff printColBlack
5423
        {
5424
            get
5425
            {
5426
                return this.printColBlackField;
5427
            }
5428
            set
5429
            {
5430
                this.printColBlackField = value;
5431
            }
5432
        }
5433

5434
        [XmlElement(Order = 15)]
5435
        public CT_OnOff wpSpaceWidth
5436
        {
5437
            get
5438
            {
5439
                return this.wpSpaceWidthField;
5440
            }
5441
            set
5442
            {
5443
                this.wpSpaceWidthField = value;
5444
            }
5445
        }
5446

5447
        [XmlElement(Order = 16)]
5448
        public CT_OnOff showBreaksInFrames
5449
        {
5450
            get
5451
            {
5452
                return this.showBreaksInFramesField;
5453
            }
5454
            set
5455
            {
5456
                this.showBreaksInFramesField = value;
5457
            }
5458
        }
5459

5460
        [XmlElement(Order = 17)]
5461
        public CT_OnOff subFontBySize
5462
        {
5463
            get
5464
            {
5465
                return this.subFontBySizeField;
5466
            }
5467
            set
5468
            {
5469
                this.subFontBySizeField = value;
5470
            }
5471
        }
5472

5473
        [XmlElement(Order = 18)]
5474
        public CT_OnOff suppressBottomSpacing
5475
        {
5476
            get
5477
            {
5478
                return this.suppressBottomSpacingField;
5479
            }
5480
            set
5481
            {
5482
                this.suppressBottomSpacingField = value;
5483
            }
5484
        }
5485

5486
        [XmlElement(Order = 19)]
5487
        public CT_OnOff suppressTopSpacing
5488
        {
5489
            get
5490
            {
5491
                return this.suppressTopSpacingField;
5492
            }
5493
            set
5494
            {
5495
                this.suppressTopSpacingField = value;
5496
            }
5497
        }
5498

5499
        [XmlElement(Order = 20)]
5500
        public CT_OnOff suppressSpacingAtTopOfPage
5501
        {
5502
            get
5503
            {
5504
                return this.suppressSpacingAtTopOfPageField;
5505
            }
5506
            set
5507
            {
5508
                this.suppressSpacingAtTopOfPageField = value;
5509
            }
5510
        }
5511

5512
        [XmlElement(Order = 21)]
5513
        public CT_OnOff suppressTopSpacingWP
5514
        {
5515
            get
5516
            {
5517
                return this.suppressTopSpacingWPField;
5518
            }
5519
            set
5520
            {
5521
                this.suppressTopSpacingWPField = value;
5522
            }
5523
        }
5524

5525
        [XmlElement(Order = 22)]
5526
        public CT_OnOff suppressSpBfAfterPgBrk
5527
        {
5528
            get
5529
            {
5530
                return this.suppressSpBfAfterPgBrkField;
5531
            }
5532
            set
5533
            {
5534
                this.suppressSpBfAfterPgBrkField = value;
5535
            }
5536
        }
5537

5538
        [XmlElement(Order = 23)]
5539
        public CT_OnOff swapBordersFacingPages
5540
        {
5541
            get
5542
            {
5543
                return this.swapBordersFacingPagesField;
5544
            }
5545
            set
5546
            {
5547
                this.swapBordersFacingPagesField = value;
5548
            }
5549
        }
5550

5551
        [XmlElement(Order = 24)]
5552
        public CT_OnOff convMailMergeEsc
5553
        {
5554
            get
5555
            {
5556
                return this.convMailMergeEscField;
5557
            }
5558
            set
5559
            {
5560
                this.convMailMergeEscField = value;
5561
            }
5562
        }
5563

5564
        [XmlElement(Order = 25)]
5565
        public CT_OnOff truncateFontHeightsLikeWP6
5566
        {
5567
            get
5568
            {
5569
                return this.truncateFontHeightsLikeWP6Field;
5570
            }
5571
            set
5572
            {
5573
                this.truncateFontHeightsLikeWP6Field = value;
5574
            }
5575
        }
5576

5577
        [XmlElement(Order = 26)]
5578
        public CT_OnOff mwSmallCaps
5579
        {
5580
            get
5581
            {
5582
                return this.mwSmallCapsField;
5583
            }
5584
            set
5585
            {
5586
                this.mwSmallCapsField = value;
5587
            }
5588
        }
5589

5590
        [XmlElement(Order = 27)]
5591
        public CT_OnOff usePrinterMetrics
5592
        {
5593
            get
5594
            {
5595
                return this.usePrinterMetricsField;
5596
            }
5597
            set
5598
            {
5599
                this.usePrinterMetricsField = value;
5600
            }
5601
        }
5602

5603
        [XmlElement(Order = 28)]
5604
        public CT_OnOff doNotSuppressParagraphBorders
5605
        {
5606
            get
5607
            {
5608
                return this.doNotSuppressParagraphBordersField;
5609
            }
5610
            set
5611
            {
5612
                this.doNotSuppressParagraphBordersField = value;
5613
            }
5614
        }
5615

5616
        [XmlElement(Order = 29)]
5617
        public CT_OnOff wrapTrailSpaces
5618
        {
5619
            get
5620
            {
5621
                return this.wrapTrailSpacesField;
5622
            }
5623
            set
5624
            {
5625
                this.wrapTrailSpacesField = value;
5626
            }
5627
        }
5628

5629
        [XmlElement(Order = 30)]
5630
        public CT_OnOff footnoteLayoutLikeWW8
5631
        {
5632
            get
5633
            {
5634
                return this.footnoteLayoutLikeWW8Field;
5635
            }
5636
            set
5637
            {
5638
                this.footnoteLayoutLikeWW8Field = value;
5639
            }
5640
        }
5641

5642
        [XmlElement(Order = 31)]
5643
        public CT_OnOff shapeLayoutLikeWW8
5644
        {
5645
            get
5646
            {
5647
                return this.shapeLayoutLikeWW8Field;
5648
            }
5649
            set
5650
            {
5651
                this.shapeLayoutLikeWW8Field = value;
5652
            }
5653
        }
5654

5655
        [XmlElement(Order = 32)]
5656
        public CT_OnOff alignTablesRowByRow
5657
        {
5658
            get
5659
            {
5660
                return this.alignTablesRowByRowField;
5661
            }
5662
            set
5663
            {
5664
                this.alignTablesRowByRowField = value;
5665
            }
5666
        }
5667

5668
        [XmlElement(Order = 33)]
5669
        public CT_OnOff forgetLastTabAlignment
5670
        {
5671
            get
5672
            {
5673
                return this.forgetLastTabAlignmentField;
5674
            }
5675
            set
5676
            {
5677
                this.forgetLastTabAlignmentField = value;
5678
            }
5679
        }
5680

5681
        [XmlElement(Order = 34)]
5682
        public CT_OnOff adjustLineHeightInTable
5683
        {
5684
            get
5685
            {
5686
                return this.adjustLineHeightInTableField;
5687
            }
5688
            set
5689
            {
5690
                this.adjustLineHeightInTableField = value;
5691
            }
5692
        }
5693

5694
        [XmlElement(Order = 35)]
5695
        public CT_OnOff autoSpaceLikeWord95
5696
        {
5697
            get
5698
            {
5699
                return this.autoSpaceLikeWord95Field;
5700
            }
5701
            set
5702
            {
5703
                this.autoSpaceLikeWord95Field = value;
5704
            }
5705
        }
5706

5707
        [XmlElement(Order = 36)]
5708
        public CT_OnOff noSpaceRaiseLower
5709
        {
5710
            get
5711
            {
5712
                return this.noSpaceRaiseLowerField;
5713
            }
5714
            set
5715
            {
5716
                this.noSpaceRaiseLowerField = value;
5717
            }
5718
        }
5719

5720
        [XmlElement(Order = 37)]
5721
        public CT_OnOff doNotUseHTMLParagraphAutoSpacing
5722
        {
5723
            get
5724
            {
5725
                return this.doNotUseHTMLParagraphAutoSpacingField;
5726
            }
5727
            set
5728
            {
5729
                this.doNotUseHTMLParagraphAutoSpacingField = value;
5730
            }
5731
        }
5732

5733
        [XmlElement(Order = 38)]
5734
        public CT_OnOff layoutRawTableWidth
5735
        {
5736
            get
5737
            {
5738
                return this.layoutRawTableWidthField;
5739
            }
5740
            set
5741
            {
5742
                this.layoutRawTableWidthField = value;
5743
            }
5744
        }
5745

5746
        [XmlElement(Order = 39)]
5747
        public CT_OnOff layoutTableRowsApart
5748
        {
5749
            get
5750
            {
5751
                return this.layoutTableRowsApartField;
5752
            }
5753
            set
5754
            {
5755
                this.layoutTableRowsApartField = value;
5756
            }
5757
        }
5758

5759
        [XmlElement(Order = 40)]
5760
        public CT_OnOff useWord97LineBreakRules
5761
        {
5762
            get
5763
            {
5764
                return this.useWord97LineBreakRulesField;
5765
            }
5766
            set
5767
            {
5768
                this.useWord97LineBreakRulesField = value;
5769
            }
5770
        }
5771

5772
        [XmlElement(Order = 41)]
5773
        public CT_OnOff doNotBreakWrappedTables
5774
        {
5775
            get
5776
            {
5777
                return this.doNotBreakWrappedTablesField;
5778
            }
5779
            set
5780
            {
5781
                this.doNotBreakWrappedTablesField = value;
5782
            }
5783
        }
5784

5785
        [XmlElement(Order = 42)]
5786
        public CT_OnOff doNotSnapToGridInCell
5787
        {
5788
            get
5789
            {
5790
                return this.doNotSnapToGridInCellField;
5791
            }
5792
            set
5793
            {
5794
                this.doNotSnapToGridInCellField = value;
5795
            }
5796
        }
5797

5798
        [XmlElement(Order = 43)]
5799
        public CT_OnOff selectFldWithFirstOrLastChar
5800
        {
5801
            get
5802
            {
5803
                return this.selectFldWithFirstOrLastCharField;
5804
            }
5805
            set
5806
            {
5807
                this.selectFldWithFirstOrLastCharField = value;
5808
            }
5809
        }
5810

5811
        [XmlElement(Order = 44)]
5812
        public CT_OnOff applyBreakingRules
5813
        {
5814
            get
5815
            {
5816
                return this.applyBreakingRulesField;
5817
            }
5818
            set
5819
            {
5820
                this.applyBreakingRulesField = value;
5821
            }
5822
        }
5823

5824
        [XmlElement(Order = 45)]
5825
        public CT_OnOff doNotWrapTextWithPunct
5826
        {
5827
            get
5828
            {
5829
                return this.doNotWrapTextWithPunctField;
5830
            }
5831
            set
5832
            {
5833
                this.doNotWrapTextWithPunctField = value;
5834
            }
5835
        }
5836

5837
        [XmlElement(Order = 46)]
5838
        public CT_OnOff doNotUseEastAsianBreakRules
5839
        {
5840
            get
5841
            {
5842
                return this.doNotUseEastAsianBreakRulesField;
5843
            }
5844
            set
5845
            {
5846
                this.doNotUseEastAsianBreakRulesField = value;
5847
            }
5848
        }
5849

5850
        [XmlElement(Order = 47)]
5851
        public CT_OnOff useWord2002TableStyleRules
5852
        {
5853
            get
5854
            {
5855
                return this.useWord2002TableStyleRulesField;
5856
            }
5857
            set
5858
            {
5859
                this.useWord2002TableStyleRulesField = value;
5860
            }
5861
        }
5862

5863
        [XmlElement(Order = 48)]
5864
        public CT_OnOff growAutofit
5865
        {
5866
            get
5867
            {
5868
                return this.growAutofitField;
5869
            }
5870
            set
5871
            {
5872
                this.growAutofitField = value;
5873
            }
5874
        }
5875

5876
        [XmlElement(Order = 49)]
5877
        public CT_OnOff useFELayout
5878
        {
5879
            get
5880
            {
5881
                return this.useFELayoutField;
5882
            }
5883
            set
5884
            {
5885
                this.useFELayoutField = value;
5886
            }
5887
        }
5888

5889
        [XmlElement(Order = 50)]
5890
        public CT_OnOff useNormalStyleForList
5891
        {
5892
            get
5893
            {
5894
                return this.useNormalStyleForListField;
5895
            }
5896
            set
5897
            {
5898
                this.useNormalStyleForListField = value;
5899
            }
5900
        }
5901

5902
        [XmlElement(Order = 51)]
5903
        public CT_OnOff doNotUseIndentAsNumberingTabStop
5904
        {
5905
            get
5906
            {
5907
                return this.doNotUseIndentAsNumberingTabStopField;
5908
            }
5909
            set
5910
            {
5911
                this.doNotUseIndentAsNumberingTabStopField = value;
5912
            }
5913
        }
5914

5915
        [XmlElement(Order = 52)]
5916
        public CT_OnOff useAltKinsokuLineBreakRules
5917
        {
5918
            get
5919
            {
5920
                return this.useAltKinsokuLineBreakRulesField;
5921
            }
5922
            set
5923
            {
5924
                this.useAltKinsokuLineBreakRulesField = value;
5925
            }
5926
        }
5927

5928
        [XmlElement(Order = 53)]
5929
        public CT_OnOff allowSpaceOfSameStyleInTable
5930
        {
5931
            get
5932
            {
5933
                return this.allowSpaceOfSameStyleInTableField;
5934
            }
5935
            set
5936
            {
5937
                this.allowSpaceOfSameStyleInTableField = value;
5938
            }
5939
        }
5940

5941
        [XmlElement(Order = 54)]
5942
        public CT_OnOff doNotSuppressIndentation
5943
        {
5944
            get
5945
            {
5946
                return this.doNotSuppressIndentationField;
5947
            }
5948
            set
5949
            {
5950
                this.doNotSuppressIndentationField = value;
5951
            }
5952
        }
5953

5954
        [XmlElement(Order = 55)]
5955
        public CT_OnOff doNotAutofitConstrainedTables
5956
        {
5957
            get
5958
            {
5959
                return this.doNotAutofitConstrainedTablesField;
5960
            }
5961
            set
5962
            {
5963
                this.doNotAutofitConstrainedTablesField = value;
5964
            }
5965
        }
5966

5967
        [XmlElement(Order = 56)]
5968
        public CT_OnOff autofitToFirstFixedWidthCell
5969
        {
5970
            get
5971
            {
5972
                return this.autofitToFirstFixedWidthCellField;
5973
            }
5974
            set
5975
            {
5976
                this.autofitToFirstFixedWidthCellField = value;
5977
            }
5978
        }
5979

5980
        [XmlElement(Order = 57)]
5981
        public CT_OnOff underlineTabInNumList
5982
        {
5983
            get
5984
            {
5985
                return this.underlineTabInNumListField;
5986
            }
5987
            set
5988
            {
5989
                this.underlineTabInNumListField = value;
5990
            }
5991
        }
5992

5993
        [XmlElement(Order = 58)]
5994
        public CT_OnOff displayHangulFixedWidth
5995
        {
5996
            get
5997
            {
5998
                return this.displayHangulFixedWidthField;
5999
            }
6000
            set
6001
            {
6002
                this.displayHangulFixedWidthField = value;
6003
            }
6004
        }
6005

6006
        [XmlElement(Order = 59)]
6007
        public CT_OnOff splitPgBreakAndParaMark
6008
        {
6009
            get
6010
            {
6011
                return this.splitPgBreakAndParaMarkField;
6012
            }
6013
            set
6014
            {
6015
                this.splitPgBreakAndParaMarkField = value;
6016
            }
6017
        }
6018

6019
        [XmlElement(Order = 60)]
6020
        public CT_OnOff doNotVertAlignCellWithSp
6021
        {
6022
            get
6023
            {
6024
                return this.doNotVertAlignCellWithSpField;
6025
            }
6026
            set
6027
            {
6028
                this.doNotVertAlignCellWithSpField = value;
6029
            }
6030
        }
6031

6032
        [XmlElement(Order = 61)]
6033
        public CT_OnOff doNotBreakConstrainedForcedTable
6034
        {
6035
            get
6036
            {
6037
                return this.doNotBreakConstrainedForcedTableField;
6038
            }
6039
            set
6040
            {
6041
                this.doNotBreakConstrainedForcedTableField = value;
6042
            }
6043
        }
6044

6045
        [XmlElement(Order = 62)]
6046
        public CT_OnOff doNotVertAlignInTxbx
6047
        {
6048
            get
6049
            {
6050
                return this.doNotVertAlignInTxbxField;
6051
            }
6052
            set
6053
            {
6054
                this.doNotVertAlignInTxbxField = value;
6055
            }
6056
        }
6057

6058
        [XmlElement(Order = 63)]
6059
        public CT_OnOff useAnsiKerningPairs
6060
        {
6061
            get
6062
            {
6063
                return this.useAnsiKerningPairsField;
6064
            }
6065
            set
6066
            {
6067
                this.useAnsiKerningPairsField = value;
6068
            }
6069
        }
6070

6071
        [XmlElement(Order = 64)]
6072
        public CT_OnOff cachedColBalance
6073
        {
6074
            get
6075
            {
6076
                return this.cachedColBalanceField;
6077
            }
6078
            set
6079
            {
6080
                this.cachedColBalanceField = value;
6081
            }
6082
        }
6083
    }
6084

6085

6086
    [Serializable]
6087

6088
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6089
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
6090
    public class CT_DocVar
6091
    {
6092

6093
        private string nameField;
6094

6095
        private string valField;
6096
        public static CT_DocVar Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6097
        {
6098
            if (node == null)
6099
                return null;
6100
            CT_DocVar ctObj = new CT_DocVar();
6101

6102
            ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
6103
            ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
6104

6105
            return ctObj;
6106
        }
6107

6108

6109

6110
        internal void Write(StreamWriter sw, string nodeName)
6111
        {
6112
            sw.Write(string.Format("<w:{0}", nodeName));
6113
            XmlHelper.WriteAttribute(sw, "w:name", this.name);
6114
            XmlHelper.WriteAttribute(sw, "w:val", this.val);
6115
            sw.Write(">");
6116
            sw.WriteEndW(nodeName);
6117
        }
6118

6119
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6120
        public string name
6121
        {
6122
            get
6123
            {
6124
                return this.nameField;
6125
            }
6126
            set
6127
            {
6128
                this.nameField = value;
6129
            }
6130
        }
6131

6132
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6133
        public string val
6134
        {
6135
            get
6136
            {
6137
                return this.valField;
6138
            }
6139
            set
6140
            {
6141
                this.valField = value;
6142
            }
6143
        }
6144
    }
6145

6146

6147
    [Serializable]
6148

6149
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6150
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
6151
    public class CT_DocRsids
6152
    {
6153

6154
        private CT_LongHexNumber rsidRootField;
6155

6156
        private List<CT_LongHexNumber> rsidField;
6157

6158
        public CT_DocRsids()
6159
        {
6160
            //this.rsidField = new List<CT_LongHexNumber>();
6161
            //this.rsidRootField = new CT_LongHexNumber();
6162
        }
6163
        public static CT_DocRsids Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6164
        {
6165
            if (node == null)
6166
                return null;
6167
            CT_DocRsids ctObj = new CT_DocRsids();
6168
            ctObj.rsid = new List<CT_LongHexNumber>();
6169
            foreach (XmlNode childNode in node.ChildNodes)
6170
            {
6171
                if (childNode.LocalName == "rsidRoot")
6172
                    ctObj.rsidRoot = CT_LongHexNumber.Parse(childNode, namespaceManager);
6173
                else if (childNode.LocalName == "rsid")
6174
                    ctObj.rsid.Add(CT_LongHexNumber.Parse(childNode, namespaceManager));
6175
            }
6176
            return ctObj;
6177
        }
6178

6179

6180

6181
        internal void Write(StreamWriter sw, string nodeName)
6182
        {
6183
            sw.Write(string.Format("<w:{0}", nodeName));
6184
            sw.Write(">");
6185
            if (this.rsidRoot != null)
6186
                this.rsidRoot.Write(sw, "rsidRoot");
6187
            if (this.rsid != null)
6188
            {
6189
                foreach (CT_LongHexNumber x in this.rsid)
6190
                {
6191
                    x.Write(sw, "rsid");
6192
                }
6193
            }
6194
            sw.WriteEndW(nodeName);
6195
        }
6196

6197
        [XmlElement(Order = 0)]
6198
        public CT_LongHexNumber rsidRoot
6199
        {
6200
            get
6201
            {
6202
                return this.rsidRootField;
6203
            }
6204
            set
6205
            {
6206
                this.rsidRootField = value;
6207
            }
6208
        }
6209

6210
        [XmlElement("rsid", Order = 1)]
6211
        public List<CT_LongHexNumber> rsid
6212
        {
6213
            get
6214
            {
6215
                return this.rsidField;
6216
            }
6217
            set
6218
            {
6219
                this.rsidField = value;
6220
            }
6221
        }
6222
    }
6223

6224

6225

6226

6227

6228
    [Serializable]
6229

6230
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6231
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
6232
    public class CT_ColorSchemeMapping
6233
    {
6234

6235
        private ST_ColorSchemeIndex bg1Field;
6236

6237
        private bool bg1FieldSpecified;
6238

6239
        private ST_ColorSchemeIndex t1Field;
6240

6241
        private bool t1FieldSpecified;
6242

6243
        private ST_ColorSchemeIndex bg2Field;
6244

6245
        private bool bg2FieldSpecified;
6246

6247
        private ST_ColorSchemeIndex t2Field;
6248

6249
        private bool t2FieldSpecified;
6250

6251
        private ST_ColorSchemeIndex accent1Field;
6252

6253
        private bool accent1FieldSpecified;
6254

6255
        private ST_ColorSchemeIndex accent2Field;
6256

6257
        private bool accent2FieldSpecified;
6258

6259
        private ST_ColorSchemeIndex accent3Field;
6260

6261
        private bool accent3FieldSpecified;
6262

6263
        private ST_ColorSchemeIndex accent4Field;
6264

6265
        private bool accent4FieldSpecified;
6266

6267
        private ST_ColorSchemeIndex accent5Field;
6268

6269
        private bool accent5FieldSpecified;
6270

6271
        private ST_ColorSchemeIndex accent6Field;
6272

6273
        private bool accent6FieldSpecified;
6274

6275
        private ST_ColorSchemeIndex hyperlinkField;
6276

6277
        private bool hyperlinkFieldSpecified;
6278

6279
        private ST_ColorSchemeIndex followedHyperlinkField;
6280

6281
        private bool followedHyperlinkFieldSpecified;
6282
        public static CT_ColorSchemeMapping Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6283
        {
6284
            if (node == null)
6285
                return null;
6286
            CT_ColorSchemeMapping ctObj = new CT_ColorSchemeMapping();
6287
            if (node.Attributes["w:bg1"] != null)
6288
                ctObj.bg1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:bg1"].Value);
6289
            if (node.Attributes["w:t1"] != null)
6290
                ctObj.t1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:t1"].Value);
6291
            if (node.Attributes["w:bg2"] != null)
6292
                ctObj.bg2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:bg2"].Value);
6293
            if (node.Attributes["w:t2"] != null)
6294
                ctObj.t2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:t2"].Value);
6295
            if (node.Attributes["w:accent1"] != null)
6296
                ctObj.accent1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent1"].Value);
6297
            if (node.Attributes["w:accent2"] != null)
6298
                ctObj.accent2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent2"].Value);
6299
            if (node.Attributes["w:accent3"] != null)
6300
                ctObj.accent3 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent3"].Value);
6301
            if (node.Attributes["w:accent4"] != null)
6302
                ctObj.accent4 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent4"].Value);
6303
            if (node.Attributes["w:accent5"] != null)
6304
                ctObj.accent5 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent5"].Value);
6305
            if (node.Attributes["w:accent6"] != null)
6306
                ctObj.accent6 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent6"].Value);
6307
            if (node.Attributes["w:hyperlink"] != null)
6308
                ctObj.hyperlink = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:hyperlink"].Value);
6309
            if (node.Attributes["w:followedHyperlink"] != null)
6310
                ctObj.followedHyperlink = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:followedHyperlink"].Value);
6311
            return ctObj;
6312
        }
6313

6314

6315

6316
        internal void Write(StreamWriter sw, string nodeName)
6317
        {
6318
            sw.Write(string.Format("<w:{0}", nodeName));
6319
            XmlHelper.WriteAttribute(sw, "w:bg1", this.bg1.ToString());
6320
            XmlHelper.WriteAttribute(sw, "w:t1", this.t1.ToString());
6321
            XmlHelper.WriteAttribute(sw, "w:bg2", this.bg2.ToString());
6322
            XmlHelper.WriteAttribute(sw, "w:t2", this.t2.ToString());
6323
            XmlHelper.WriteAttribute(sw, "w:accent1", this.accent1.ToString());
6324
            XmlHelper.WriteAttribute(sw, "w:accent2", this.accent2.ToString());
6325
            XmlHelper.WriteAttribute(sw, "w:accent3", this.accent3.ToString());
6326
            XmlHelper.WriteAttribute(sw, "w:accent4", this.accent4.ToString());
6327
            XmlHelper.WriteAttribute(sw, "w:accent5", this.accent5.ToString());
6328
            XmlHelper.WriteAttribute(sw, "w:accent6", this.accent6.ToString());
6329
            XmlHelper.WriteAttribute(sw, "w:hyperlink", this.hyperlink.ToString());
6330
            XmlHelper.WriteAttribute(sw, "w:followedHyperlink", this.followedHyperlink.ToString());
6331
            sw.Write("/>");
6332
        }
6333

6334
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6335
        public ST_ColorSchemeIndex bg1
6336
        {
6337
            get
6338
            {
6339
                return this.bg1Field;
6340
            }
6341
            set
6342
            {
6343
                this.bg1Field = value;
6344
            }
6345
        }
6346

6347
        [XmlIgnore]
6348
        public bool bg1Specified
6349
        {
6350
            get
6351
            {
6352
                return this.bg1FieldSpecified;
6353
            }
6354
            set
6355
            {
6356
                this.bg1FieldSpecified = value;
6357
            }
6358
        }
6359

6360
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6361
        public ST_ColorSchemeIndex t1
6362
        {
6363
            get
6364
            {
6365
                return this.t1Field;
6366
            }
6367
            set
6368
            {
6369
                this.t1Field = value;
6370
            }
6371
        }
6372

6373
        [XmlIgnore]
6374
        public bool t1Specified
6375
        {
6376
            get
6377
            {
6378
                return this.t1FieldSpecified;
6379
            }
6380
            set
6381
            {
6382
                this.t1FieldSpecified = value;
6383
            }
6384
        }
6385

6386
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6387
        public ST_ColorSchemeIndex bg2
6388
        {
6389
            get
6390
            {
6391
                return this.bg2Field;
6392
            }
6393
            set
6394
            {
6395
                this.bg2Field = value;
6396
            }
6397
        }
6398

6399
        [XmlIgnore]
6400
        public bool bg2Specified
6401
        {
6402
            get
6403
            {
6404
                return this.bg2FieldSpecified;
6405
            }
6406
            set
6407
            {
6408
                this.bg2FieldSpecified = value;
6409
            }
6410
        }
6411

6412
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6413
        public ST_ColorSchemeIndex t2
6414
        {
6415
            get
6416
            {
6417
                return this.t2Field;
6418
            }
6419
            set
6420
            {
6421
                this.t2Field = value;
6422
            }
6423
        }
6424

6425
        [XmlIgnore]
6426
        public bool t2Specified
6427
        {
6428
            get
6429
            {
6430
                return this.t2FieldSpecified;
6431
            }
6432
            set
6433
            {
6434
                this.t2FieldSpecified = value;
6435
            }
6436
        }
6437

6438
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6439
        public ST_ColorSchemeIndex accent1
6440
        {
6441
            get
6442
            {
6443
                return this.accent1Field;
6444
            }
6445
            set
6446
            {
6447
                this.accent1Field = value;
6448
            }
6449
        }
6450

6451
        [XmlIgnore]
6452
        public bool accent1Specified
6453
        {
6454
            get
6455
            {
6456
                return this.accent1FieldSpecified;
6457
            }
6458
            set
6459
            {
6460
                this.accent1FieldSpecified = value;
6461
            }
6462
        }
6463

6464
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6465
        public ST_ColorSchemeIndex accent2
6466
        {
6467
            get
6468
            {
6469
                return this.accent2Field;
6470
            }
6471
            set
6472
            {
6473
                this.accent2Field = value;
6474
            }
6475
        }
6476

6477
        [XmlIgnore]
6478
        public bool accent2Specified
6479
        {
6480
            get
6481
            {
6482
                return this.accent2FieldSpecified;
6483
            }
6484
            set
6485
            {
6486
                this.accent2FieldSpecified = value;
6487
            }
6488
        }
6489

6490
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6491
        public ST_ColorSchemeIndex accent3
6492
        {
6493
            get
6494
            {
6495
                return this.accent3Field;
6496
            }
6497
            set
6498
            {
6499
                this.accent3Field = value;
6500
            }
6501
        }
6502

6503
        [XmlIgnore]
6504
        public bool accent3Specified
6505
        {
6506
            get
6507
            {
6508
                return this.accent3FieldSpecified;
6509
            }
6510
            set
6511
            {
6512
                this.accent3FieldSpecified = value;
6513
            }
6514
        }
6515

6516
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6517
        public ST_ColorSchemeIndex accent4
6518
        {
6519
            get
6520
            {
6521
                return this.accent4Field;
6522
            }
6523
            set
6524
            {
6525
                this.accent4Field = value;
6526
            }
6527
        }
6528

6529
        [XmlIgnore]
6530
        public bool accent4Specified
6531
        {
6532
            get
6533
            {
6534
                return this.accent4FieldSpecified;
6535
            }
6536
            set
6537
            {
6538
                this.accent4FieldSpecified = value;
6539
            }
6540
        }
6541

6542
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6543
        public ST_ColorSchemeIndex accent5
6544
        {
6545
            get
6546
            {
6547
                return this.accent5Field;
6548
            }
6549
            set
6550
            {
6551
                this.accent5Field = value;
6552
            }
6553
        }
6554

6555
        [XmlIgnore]
6556
        public bool accent5Specified
6557
        {
6558
            get
6559
            {
6560
                return this.accent5FieldSpecified;
6561
            }
6562
            set
6563
            {
6564
                this.accent5FieldSpecified = value;
6565
            }
6566
        }
6567

6568
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6569
        public ST_ColorSchemeIndex accent6
6570
        {
6571
            get
6572
            {
6573
                return this.accent6Field;
6574
            }
6575
            set
6576
            {
6577
                this.accent6Field = value;
6578
            }
6579
        }
6580

6581
        [XmlIgnore]
6582
        public bool accent6Specified
6583
        {
6584
            get
6585
            {
6586
                return this.accent6FieldSpecified;
6587
            }
6588
            set
6589
            {
6590
                this.accent6FieldSpecified = value;
6591
            }
6592
        }
6593

6594
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6595
        public ST_ColorSchemeIndex hyperlink
6596
        {
6597
            get
6598
            {
6599
                return this.hyperlinkField;
6600
            }
6601
            set
6602
            {
6603
                this.hyperlinkField = value;
6604
            }
6605
        }
6606

6607
        [XmlIgnore]
6608
        public bool hyperlinkSpecified
6609
        {
6610
            get
6611
            {
6612
                return this.hyperlinkFieldSpecified;
6613
            }
6614
            set
6615
            {
6616
                this.hyperlinkFieldSpecified = value;
6617
            }
6618
        }
6619

6620
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6621
        public ST_ColorSchemeIndex followedHyperlink
6622
        {
6623
            get
6624
            {
6625
                return this.followedHyperlinkField;
6626
            }
6627
            set
6628
            {
6629
                this.followedHyperlinkField = value;
6630
            }
6631
        }
6632

6633
        [XmlIgnore]
6634
        public bool followedHyperlinkSpecified
6635
        {
6636
            get
6637
            {
6638
                return this.followedHyperlinkFieldSpecified;
6639
            }
6640
            set
6641
            {
6642
                this.followedHyperlinkFieldSpecified = value;
6643
            }
6644
        }
6645
    }
6646

6647

6648
    [Serializable]
6649
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6650
    public enum ST_ColorSchemeIndex
6651
    {
6652

6653
    
6654
        dark1,
6655

6656
    
6657
        light1,
6658

6659
    
6660
        dark2,
6661

6662
    
6663
        light2,
6664

6665
    
6666
        accent1,
6667

6668
    
6669
        accent2,
6670

6671
    
6672
        accent3,
6673

6674
    
6675
        accent4,
6676

6677
    
6678
        accent5,
6679

6680
    
6681
        accent6,
6682

6683
    
6684
        hyperlink,
6685

6686
    
6687
        followedHyperlink,
6688
    }
6689

6690

6691

6692

6693
    [Serializable]
6694

6695
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6696
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
6697
    public class CT_Captions
6698
    {
6699

6700
        private List<CT_Caption> captionField;
6701

6702
        private List<CT_AutoCaption> autoCaptionsField;
6703

6704
        public CT_Captions()
6705
        {
6706
            //this.autoCaptionsField = new List<CT_AutoCaption>();
6707
            //this.captionField = new List<CT_Caption>();
6708
        }
6709
        public static CT_Captions Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6710
        {
6711
            if (node == null)
6712
                return null;
6713
            CT_Captions ctObj = new CT_Captions();
6714
            ctObj.caption = new List<CT_Caption>();
6715
            ctObj.autoCaptions = new List<CT_AutoCaption>();
6716
            foreach (XmlNode childNode in node.ChildNodes)
6717
            {
6718
                if (childNode.LocalName == "caption")
6719
                    ctObj.caption.Add(CT_Caption.Parse(childNode, namespaceManager));
6720
                else if (childNode.LocalName == "autoCaptions")
6721
                    ctObj.autoCaptions.Add(CT_AutoCaption.Parse(childNode, namespaceManager));
6722
            }
6723
            return ctObj;
6724
        }
6725

6726

6727

6728
        internal void Write(StreamWriter sw, string nodeName)
6729
        {
6730
            sw.Write(string.Format("<w:{0}", nodeName));
6731
            sw.Write(">");
6732
            if (this.caption != null)
6733
            {
6734
                foreach (CT_Caption x in this.caption)
6735
                {
6736
                    x.Write(sw, "caption");
6737
                }
6738
            }
6739
            if (this.autoCaptions != null)
6740
            {
6741
                foreach (CT_AutoCaption x in this.autoCaptions)
6742
                {
6743
                    x.Write(sw, "autoCaptions");
6744
                }
6745
            }
6746
            sw.WriteEndW(nodeName);
6747
        }
6748

6749
        [XmlElement("caption", Order = 0)]
6750
        public List<CT_Caption> caption
6751
        {
6752
            get
6753
            {
6754
                return this.captionField;
6755
            }
6756
            set
6757
            {
6758
                this.captionField = value;
6759
            }
6760
        }
6761

6762
        [XmlArray(Order = 1)]
6763
        [XmlArrayItem("autoCaption", IsNullable = false)]
6764
        public List<CT_AutoCaption> autoCaptions
6765
        {
6766
            get
6767
            {
6768
                return this.autoCaptionsField;
6769
            }
6770
            set
6771
            {
6772
                this.autoCaptionsField = value;
6773
            }
6774
        }
6775
    }
6776

6777

6778
    [Serializable]
6779

6780
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6781
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
6782
    public class CT_Caption
6783
    {
6784

6785
        private string nameField;
6786

6787
        private ST_CaptionPos posField;
6788

6789
        private bool posFieldSpecified;
6790

6791
        private ST_OnOff chapNumField;
6792

6793
        private bool chapNumFieldSpecified;
6794

6795
        private string headingField;
6796

6797
        private ST_OnOff noLabelField;
6798

6799
        private bool noLabelFieldSpecified;
6800

6801
        private ST_NumberFormat numFmtField;
6802

6803
        private bool numFmtFieldSpecified;
6804

6805
        private ST_ChapterSep sepField;
6806

6807
        private bool sepFieldSpecified;
6808
        public static CT_Caption Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6809
        {
6810
            if (node == null)
6811
                return null;
6812
            CT_Caption ctObj = new CT_Caption();
6813
            ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
6814
            if (node.Attributes["w:pos"] != null)
6815
                ctObj.pos = (ST_CaptionPos)Enum.Parse(typeof(ST_CaptionPos), node.Attributes["w:pos"].Value);
6816
            if (node.Attributes["w:chapNum"] != null)
6817
                ctObj.chapNum = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:chapNum"].Value,true);
6818
            ctObj.heading = XmlHelper.ReadString(node.Attributes["w:heading"]);
6819
            if (node.Attributes["w:noLabel"] != null)
6820
                ctObj.noLabel = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:noLabel"].Value,true);
6821
            if (node.Attributes["w:numFmt"] != null)
6822
                ctObj.numFmt = (ST_NumberFormat)Enum.Parse(typeof(ST_NumberFormat), node.Attributes["w:numFmt"].Value);
6823
            if (node.Attributes["w:sep"] != null)
6824
                ctObj.sep = (ST_ChapterSep)Enum.Parse(typeof(ST_ChapterSep), node.Attributes["w:sep"].Value);
6825
            return ctObj;
6826
        }
6827

6828

6829

6830
        internal void Write(StreamWriter sw, string nodeName)
6831
        {
6832
            sw.Write(string.Format("<w:{0}", nodeName));
6833
            XmlHelper.WriteAttribute(sw, "w:name", this.name);
6834
            XmlHelper.WriteAttribute(sw, "w:pos", this.pos.ToString());
6835
            XmlHelper.WriteAttribute(sw, "w:chapNum", this.chapNum.ToString());
6836
            XmlHelper.WriteAttribute(sw, "w:heading", this.heading);
6837
            XmlHelper.WriteAttribute(sw, "w:noLabel", this.noLabel.ToString());
6838
            XmlHelper.WriteAttribute(sw, "w:numFmt", this.numFmt.ToString());
6839
            XmlHelper.WriteAttribute(sw, "w:sep", this.sep.ToString());
6840
            sw.Write(">");
6841
            sw.WriteEndW(nodeName);
6842
        }
6843

6844
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6845
        public string name
6846
        {
6847
            get
6848
            {
6849
                return this.nameField;
6850
            }
6851
            set
6852
            {
6853
                this.nameField = value;
6854
            }
6855
        }
6856

6857
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6858
        public ST_CaptionPos pos
6859
        {
6860
            get
6861
            {
6862
                return this.posField;
6863
            }
6864
            set
6865
            {
6866
                this.posField = value;
6867
            }
6868
        }
6869

6870
        [XmlIgnore]
6871
        public bool posSpecified
6872
        {
6873
            get
6874
            {
6875
                return this.posFieldSpecified;
6876
            }
6877
            set
6878
            {
6879
                this.posFieldSpecified = value;
6880
            }
6881
        }
6882

6883
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6884
        public ST_OnOff chapNum
6885
        {
6886
            get
6887
            {
6888
                return this.chapNumField;
6889
            }
6890
            set
6891
            {
6892
                this.chapNumField = value;
6893
            }
6894
        }
6895

6896
        [XmlIgnore]
6897
        public bool chapNumSpecified
6898
        {
6899
            get
6900
            {
6901
                return this.chapNumFieldSpecified;
6902
            }
6903
            set
6904
            {
6905
                this.chapNumFieldSpecified = value;
6906
            }
6907
        }
6908

6909
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
6910
        public string heading
6911
        {
6912
            get
6913
            {
6914
                return this.headingField;
6915
            }
6916
            set
6917
            {
6918
                this.headingField = value;
6919
            }
6920
        }
6921

6922
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6923
        public ST_OnOff noLabel
6924
        {
6925
            get
6926
            {
6927
                return this.noLabelField;
6928
            }
6929
            set
6930
            {
6931
                this.noLabelField = value;
6932
            }
6933
        }
6934

6935
        [XmlIgnore]
6936
        public bool noLabelSpecified
6937
        {
6938
            get
6939
            {
6940
                return this.noLabelFieldSpecified;
6941
            }
6942
            set
6943
            {
6944
                this.noLabelFieldSpecified = value;
6945
            }
6946
        }
6947

6948
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6949
        public ST_NumberFormat numFmt
6950
        {
6951
            get
6952
            {
6953
                return this.numFmtField;
6954
            }
6955
            set
6956
            {
6957
                this.numFmtField = value;
6958
            }
6959
        }
6960

6961
        [XmlIgnore]
6962
        public bool numFmtSpecified
6963
        {
6964
            get
6965
            {
6966
                return this.numFmtFieldSpecified;
6967
            }
6968
            set
6969
            {
6970
                this.numFmtFieldSpecified = value;
6971
            }
6972
        }
6973

6974
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6975
        public ST_ChapterSep sep
6976
        {
6977
            get
6978
            {
6979
                return this.sepField;
6980
            }
6981
            set
6982
            {
6983
                this.sepField = value;
6984
            }
6985
        }
6986

6987
        [XmlIgnore]
6988
        public bool sepSpecified
6989
        {
6990
            get
6991
            {
6992
                return this.sepFieldSpecified;
6993
            }
6994
            set
6995
            {
6996
                this.sepFieldSpecified = value;
6997
            }
6998
        }
6999
    }
7000

7001

7002
    [Serializable]
7003
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7004
    public enum ST_CaptionPos
7005
    {
7006

7007
    
7008
        above,
7009

7010
    
7011
        below,
7012

7013
    
7014
        left,
7015

7016
    
7017
        right,
7018
    }
7019

7020

7021
    [Serializable]
7022

7023
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7024
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
7025
    public class CT_AutoCaption
7026
    {
7027

7028
        private string nameField;
7029

7030
        private string captionField;
7031
        public static CT_AutoCaption Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7032
        {
7033
            if (node == null)
7034
                return null;
7035
            CT_AutoCaption ctObj = new CT_AutoCaption();
7036
            ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
7037
            ctObj.caption = XmlHelper.ReadString(node.Attributes["w:caption"]);
7038
            return ctObj;
7039
        }
7040

7041

7042

7043
        internal void Write(StreamWriter sw, string nodeName)
7044
        {
7045
            sw.Write(string.Format("<w:{0}", nodeName));
7046
            XmlHelper.WriteAttribute(sw, "w:name", this.name);
7047
            XmlHelper.WriteAttribute(sw, "w:caption", this.caption);
7048
            sw.Write(">");
7049
            sw.WriteEndW(nodeName);
7050
        }
7051

7052
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7053
        public string name
7054
        {
7055
            get
7056
            {
7057
                return this.nameField;
7058
            }
7059
            set
7060
            {
7061
                this.nameField = value;
7062
            }
7063
        }
7064

7065
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7066
        public string caption
7067
        {
7068
            get
7069
            {
7070
                return this.captionField;
7071
            }
7072
            set
7073
            {
7074
                this.captionField = value;
7075
            }
7076
        }
7077
    }
7078

7079

7080
    [Serializable]
7081

7082
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7083
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
7084
    public class CT_ReadingModeInkLockDown
7085
    {
7086

7087
        private ST_OnOff actualPgField;
7088

7089
        private ulong wField;
7090

7091
        private ulong hField;
7092

7093
        private string fontSzField;
7094
        public static CT_ReadingModeInkLockDown Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7095
        {
7096
            if (node == null)
7097
                return null;
7098
            CT_ReadingModeInkLockDown ctObj = new CT_ReadingModeInkLockDown();
7099
            if (node.Attributes["w:actualPg"] != null)
7100
                ctObj.actualPg = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:actualPg"].Value,true);
7101
            ctObj.w = XmlHelper.ReadULong(node.Attributes["w:w"]);
7102
            ctObj.h = XmlHelper.ReadULong(node.Attributes["w:h"]);
7103
            ctObj.fontSz = XmlHelper.ReadString(node.Attributes["w:fontSz"]);
7104
            return ctObj;
7105
        }
7106

7107

7108

7109
        internal void Write(StreamWriter sw, string nodeName)
7110
        {
7111
            sw.Write(string.Format("<w:{0}", nodeName));
7112
            XmlHelper.WriteAttribute(sw, "w:actualPg", this.actualPg.ToString());
7113
            XmlHelper.WriteAttribute(sw, "w:w", this.w);
7114
            XmlHelper.WriteAttribute(sw, "w:h", this.h);
7115
            XmlHelper.WriteAttribute(sw, "w:fontSz", this.fontSz);
7116
            sw.Write(">");
7117
            sw.WriteEndW(nodeName);
7118
        }
7119

7120
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7121
        public ST_OnOff actualPg
7122
        {
7123
            get
7124
            {
7125
                return this.actualPgField;
7126
            }
7127
            set
7128
            {
7129
                this.actualPgField = value;
7130
            }
7131
        }
7132

7133
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7134
        public ulong w
7135
        {
7136
            get
7137
            {
7138
                return this.wField;
7139
            }
7140
            set
7141
            {
7142
                this.wField = value;
7143
            }
7144
        }
7145

7146
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7147
        public ulong h
7148
        {
7149
            get
7150
            {
7151
                return this.hField;
7152
            }
7153
            set
7154
            {
7155
                this.hField = value;
7156
            }
7157
        }
7158

7159
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
7160
        public string fontSz
7161
        {
7162
            get
7163
            {
7164
                return this.fontSzField;
7165
            }
7166
            set
7167
            {
7168
                this.fontSzField = value;
7169
            }
7170
        }
7171
    }
7172

7173

7174
    [Serializable]
7175

7176
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7177
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
7178
    public class CT_SmartTagType
7179
    {
7180

7181
        private string namespaceuriField;
7182

7183
        private string nameField;
7184

7185
        private string urlField;
7186
        public static CT_SmartTagType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7187
        {
7188
            if (node == null)
7189
                return null;
7190
            CT_SmartTagType ctObj = new CT_SmartTagType();
7191
            ctObj.namespaceuri = XmlHelper.ReadString(node.Attributes["w:namespaceuri"]);
7192
            ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
7193
            ctObj.url = XmlHelper.ReadString(node.Attributes["w:url"]);
7194
            return ctObj;
7195
        }
7196

7197

7198

7199
        internal void Write(StreamWriter sw, string nodeName)
7200
        {
7201
            sw.Write(string.Format("<w:{0}", nodeName));
7202
            XmlHelper.WriteAttribute(sw, "w:namespaceuri", this.namespaceuri);
7203
            XmlHelper.WriteAttribute(sw, "w:name", this.name);
7204
            XmlHelper.WriteAttribute(sw, "w:url", this.url);
7205
            sw.Write(">");
7206
            sw.WriteEndW(nodeName);
7207
        }
7208

7209
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7210
        public string namespaceuri
7211
        {
7212
            get
7213
            {
7214
                return this.namespaceuriField;
7215
            }
7216
            set
7217
            {
7218
                this.namespaceuriField = value;
7219
            }
7220
        }
7221

7222
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7223
        public string name
7224
        {
7225
            get
7226
            {
7227
                return this.nameField;
7228
            }
7229
            set
7230
            {
7231
                this.nameField = value;
7232
            }
7233
        }
7234

7235
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7236
        public string url
7237
        {
7238
            get
7239
            {
7240
                return this.urlField;
7241
            }
7242
            set
7243
            {
7244
                this.urlField = value;
7245
            }
7246
        }
7247
    }
7248

7249

7250
    [Serializable]
7251

7252
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7253
    [XmlRoot("webSettings", Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = false)]
7254
    public class CT_WebSettings
7255
    {
7256

7257
        private CT_Frameset framesetField;
7258

7259
        private CT_Divs divsField;
7260

7261
        private CT_String encodingField;
7262

7263
        private CT_OnOff optimizeForBrowserField;
7264

7265
        private CT_OnOff relyOnVMLField;
7266

7267
        private CT_OnOff allowPNGField;
7268

7269
        private CT_OnOff doNotRelyOnCSSField;
7270

7271
        private CT_OnOff doNotSaveAsSingleFileField;
7272

7273
        private CT_OnOff doNotOrganizeInFolderField;
7274

7275
        private CT_OnOff doNotUseLongFileNamesField;
7276

7277
        private CT_DecimalNumber pixelsPerInchField;
7278

7279
        private CT_TargetScreenSz targetScreenSzField;
7280

7281
        private CT_OnOff saveSmartTagsAsXmlField;
7282

7283
        public CT_WebSettings()
7284
        {
7285
            //this.saveSmartTagsAsXmlField = new CT_OnOff();
7286
            //this.targetScreenSzField = new CT_TargetScreenSz();
7287
            //this.pixelsPerInchField = new CT_DecimalNumber();
7288
            //this.doNotUseLongFileNamesField = new CT_OnOff();
7289
            //this.doNotOrganizeInFolderField = new CT_OnOff();
7290
            //this.doNotSaveAsSingleFileField = new CT_OnOff();
7291
            //this.doNotRelyOnCSSField = new CT_OnOff();
7292
            this.allowPNGField = new CT_OnOff();
7293
            //this.relyOnVMLField = new CT_OnOff();
7294
            this.optimizeForBrowserField = new CT_OnOff();
7295
            //this.encodingField = new CT_String();
7296
            //this.divsField = new CT_Divs();
7297
            //this.framesetField = new CT_Frameset();
7298
        }
7299

7300
        [XmlElement(Order = 0)]
7301
        public CT_Frameset frameset
7302
        {
7303
            get
7304
            {
7305
                return this.framesetField;
7306
            }
7307
            set
7308
            {
7309
                this.framesetField = value;
7310
            }
7311
        }
7312

7313
        [XmlElement(Order = 1)]
7314
        public CT_Divs divs
7315
        {
7316
            get
7317
            {
7318
                return this.divsField;
7319
            }
7320
            set
7321
            {
7322
                this.divsField = value;
7323
            }
7324
        }
7325

7326
        [XmlElement(Order = 2)]
7327
        public CT_String encoding
7328
        {
7329
            get
7330
            {
7331
                return this.encodingField;
7332
            }
7333
            set
7334
            {
7335
                this.encodingField = value;
7336
            }
7337
        }
7338

7339
        [XmlElement(Order = 3)]
7340
        public CT_OnOff optimizeForBrowser
7341
        {
7342
            get
7343
            {
7344
                return this.optimizeForBrowserField;
7345
            }
7346
            set
7347
            {
7348
                this.optimizeForBrowserField = value;
7349
            }
7350
        }
7351

7352
        [XmlElement(Order = 4)]
7353
        public CT_OnOff relyOnVML
7354
        {
7355
            get
7356
            {
7357
                return this.relyOnVMLField;
7358
            }
7359
            set
7360
            {
7361
                this.relyOnVMLField = value;
7362
            }
7363
        }
7364

7365
        [XmlElement(Order = 5)]
7366
        public CT_OnOff allowPNG
7367
        {
7368
            get
7369
            {
7370
                return this.allowPNGField;
7371
            }
7372
            set
7373
            {
7374
                this.allowPNGField = value;
7375
            }
7376
        }
7377

7378
        [XmlElement(Order = 6)]
7379
        public CT_OnOff doNotRelyOnCSS
7380
        {
7381
            get
7382
            {
7383
                return this.doNotRelyOnCSSField;
7384
            }
7385
            set
7386
            {
7387
                this.doNotRelyOnCSSField = value;
7388
            }
7389
        }
7390

7391
        [XmlElement(Order = 7)]
7392
        public CT_OnOff doNotSaveAsSingleFile
7393
        {
7394
            get
7395
            {
7396
                return this.doNotSaveAsSingleFileField;
7397
            }
7398
            set
7399
            {
7400
                this.doNotSaveAsSingleFileField = value;
7401
            }
7402
        }
7403

7404
        [XmlElement(Order = 8)]
7405
        public CT_OnOff doNotOrganizeInFolder
7406
        {
7407
            get
7408
            {
7409
                return this.doNotOrganizeInFolderField;
7410
            }
7411
            set
7412
            {
7413
                this.doNotOrganizeInFolderField = value;
7414
            }
7415
        }
7416

7417
        [XmlElement(Order = 9)]
7418
        public CT_OnOff doNotUseLongFileNames
7419
        {
7420
            get
7421
            {
7422
                return this.doNotUseLongFileNamesField;
7423
            }
7424
            set
7425
            {
7426
                this.doNotUseLongFileNamesField = value;
7427
            }
7428
        }
7429

7430
        [XmlElement(Order = 10)]
7431
        public CT_DecimalNumber pixelsPerInch
7432
        {
7433
            get
7434
            {
7435
                return this.pixelsPerInchField;
7436
            }
7437
            set
7438
            {
7439
                this.pixelsPerInchField = value;
7440
            }
7441
        }
7442

7443
        [XmlElement(Order = 11)]
7444
        public CT_TargetScreenSz targetScreenSz
7445
        {
7446
            get
7447
            {
7448
                return this.targetScreenSzField;
7449
            }
7450
            set
7451
            {
7452
                this.targetScreenSzField = value;
7453
            }
7454
        }
7455

7456
        [XmlElement(Order = 12)]
7457
        public CT_OnOff saveSmartTagsAsXml
7458
        {
7459
            get
7460
            {
7461
                return this.saveSmartTagsAsXmlField;
7462
            }
7463
            set
7464
            {
7465
                this.saveSmartTagsAsXmlField = value;
7466
            }
7467
        }
7468
    }
7469

7470
    [Serializable]
7471

7472
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7473
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
7474
    public class CT_ShapeDefaults
7475
    {
7476

7477
        private System.Xml.XmlElement[] itemsField;
7478

7479
        public CT_ShapeDefaults()
7480
        {
7481
            this.itemsField = new System.Xml.XmlElement[0];
7482
        }
7483

7484
        [XmlAnyElement(Namespace = "urn:schemas-microsoft-com:office:office", Order = 0)]
7485
        public System.Xml.XmlElement[] Items
7486
        {
7487
            get
7488
            {
7489
                return this.itemsField;
7490
            }
7491
            set
7492
            {
7493
                this.itemsField = value;
7494
            }
7495
        }
7496
    }
7497

7498

7499
    [Serializable]
7500

7501
    [XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7502
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", IsNullable = true)]
7503
    public class CT_AutoCaptions
7504
    {
7505

7506
        private List<CT_AutoCaption> autoCaptionField;
7507

7508
        public CT_AutoCaptions()
7509
        {
7510
            this.autoCaptionField = new List<CT_AutoCaption>();
7511
        }
7512

7513
        [XmlElement("autoCaption", Order = 0)]
7514
        public List<CT_AutoCaption> autoCaption
7515
        {
7516
            get
7517
            {
7518
                return this.autoCaptionField;
7519
            }
7520
            set
7521
            {
7522
                this.autoCaptionField = value;
7523
            }
7524
        }
7525
    }
7526

7527
}
7528

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.