npoi
7527 строк · 229.5 Кб
1using NPOI.OpenXml4Net.Util;
2using NPOI.OpenXmlFormats.Shared;
3using System;
4using System.Collections.Generic;
5using System.IO;
6using System.Xml;
7using System.Xml.Serialization;
8//using NPOI.OpenXmlFormats.Shared;
9
10namespace 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)]
17public class CT_Settings
18{
19public static CT_Settings Parse(XmlNode node, XmlNamespaceManager namespaceManager)
20{
21if (node == null)
22return null;
23CT_Settings ctObj = new CT_Settings();
24ctObj.activeWritingStyle = new List<CT_WritingStyle>();
25ctObj.attachedSchema = new List<CT_String>();
26ctObj.smartTagType = new List<CT_SmartTagType>();
27ctObj.schemaLibrary = new List<CT_Schema>();
28foreach (XmlNode childNode in node.ChildNodes)
29{
30if (childNode.LocalName == "writeProtection")
31ctObj.writeProtection = CT_WriteProtection.Parse(childNode, namespaceManager);
32else if (childNode.LocalName == "view")
33ctObj.view = CT_View.Parse(childNode, namespaceManager);
34else if (childNode.LocalName == "zoom")
35ctObj.zoom = CT_Zoom.Parse(childNode, namespaceManager);
36else if (childNode.LocalName == "removePersonalInformation")
37ctObj.removePersonalInformation = CT_OnOff.Parse(childNode, namespaceManager);
38else if (childNode.LocalName == "removeDateAndTime")
39ctObj.removeDateAndTime = CT_OnOff.Parse(childNode, namespaceManager);
40else if (childNode.LocalName == "doNotDisplayPageBoundaries")
41ctObj.doNotDisplayPageBoundaries = CT_OnOff.Parse(childNode, namespaceManager);
42else if (childNode.LocalName == "displayBackgroundShape")
43ctObj.displayBackgroundShape = CT_OnOff.Parse(childNode, namespaceManager);
44else if (childNode.LocalName == "printPostScriptOverText")
45ctObj.printPostScriptOverText = CT_OnOff.Parse(childNode, namespaceManager);
46else if (childNode.LocalName == "printFractionalCharacterWidth")
47ctObj.printFractionalCharacterWidth = CT_OnOff.Parse(childNode, namespaceManager);
48else if (childNode.LocalName == "printFormsData")
49ctObj.printFormsData = CT_OnOff.Parse(childNode, namespaceManager);
50else if (childNode.LocalName == "embedTrueTypeFonts")
51ctObj.embedTrueTypeFonts = CT_OnOff.Parse(childNode, namespaceManager);
52else if (childNode.LocalName == "embedSystemFonts")
53ctObj.embedSystemFonts = CT_OnOff.Parse(childNode, namespaceManager);
54else if (childNode.LocalName == "saveSubsetFonts")
55ctObj.saveSubsetFonts = CT_OnOff.Parse(childNode, namespaceManager);
56else if (childNode.LocalName == "saveFormsData")
57ctObj.saveFormsData = CT_OnOff.Parse(childNode, namespaceManager);
58else if (childNode.LocalName == "mirrorMargins")
59ctObj.mirrorMargins = CT_OnOff.Parse(childNode, namespaceManager);
60else if (childNode.LocalName == "alignBordersAndEdges")
61ctObj.alignBordersAndEdges = CT_OnOff.Parse(childNode, namespaceManager);
62else if (childNode.LocalName == "bordersDoNotSurroundHeader")
63ctObj.bordersDoNotSurroundHeader = CT_OnOff.Parse(childNode, namespaceManager);
64else if (childNode.LocalName == "bordersDoNotSurroundFooter")
65ctObj.bordersDoNotSurroundFooter = CT_OnOff.Parse(childNode, namespaceManager);
66else if (childNode.LocalName == "gutterAtTop")
67ctObj.gutterAtTop = CT_OnOff.Parse(childNode, namespaceManager);
68else if (childNode.LocalName == "hideSpellingErrors")
69ctObj.hideSpellingErrors = CT_OnOff.Parse(childNode, namespaceManager);
70else if (childNode.LocalName == "hideGrammaticalErrors")
71ctObj.hideGrammaticalErrors = CT_OnOff.Parse(childNode, namespaceManager);
72else if (childNode.LocalName == "proofState")
73ctObj.proofState = CT_Proof.Parse(childNode, namespaceManager);
74else if (childNode.LocalName == "formsDesign")
75ctObj.formsDesign = CT_OnOff.Parse(childNode, namespaceManager);
76else if (childNode.LocalName == "attachedTemplate")
77ctObj.attachedTemplate = CT_Rel.Parse(childNode, namespaceManager);
78else if (childNode.LocalName == "linkStyles")
79ctObj.linkStyles = CT_OnOff.Parse(childNode, namespaceManager);
80else if (childNode.LocalName == "stylePaneFormatFilter")
81ctObj.stylePaneFormatFilter = CT_ShortHexNumber.Parse(childNode, namespaceManager);
82else if (childNode.LocalName == "stylePaneSortMethod")
83ctObj.stylePaneSortMethod = CT_ShortHexNumber.Parse(childNode, namespaceManager);
84else if (childNode.LocalName == "documentType")
85ctObj.documentType = CT_DocType.Parse(childNode, namespaceManager);
86else if (childNode.LocalName == "mailMerge")
87ctObj.mailMerge = CT_MailMerge.Parse(childNode, namespaceManager);
88else if (childNode.LocalName == "revisionView")
89ctObj.revisionView = CT_TrackChangesView.Parse(childNode, namespaceManager);
90else if (childNode.LocalName == "trackRevisions")
91ctObj.trackRevisions = CT_OnOff.Parse(childNode, namespaceManager);
92else if (childNode.LocalName == "doNotTrackMoves")
93ctObj.doNotTrackMoves = CT_OnOff.Parse(childNode, namespaceManager);
94else if (childNode.LocalName == "doNotTrackFormatting")
95ctObj.doNotTrackFormatting = CT_OnOff.Parse(childNode, namespaceManager);
96else if (childNode.LocalName == "documentProtection")
97ctObj.documentProtection = CT_DocProtect.Parse(childNode, namespaceManager);
98else if (childNode.LocalName == "autoFormatOverride")
99ctObj.autoFormatOverride = CT_OnOff.Parse(childNode, namespaceManager);
100else if (childNode.LocalName == "styleLockTheme")
101ctObj.styleLockTheme = CT_OnOff.Parse(childNode, namespaceManager);
102else if (childNode.LocalName == "styleLockQFSet")
103ctObj.styleLockQFSet = CT_OnOff.Parse(childNode, namespaceManager);
104else if (childNode.LocalName == "defaultTabStop")
105ctObj.defaultTabStop = CT_TwipsMeasure.Parse(childNode, namespaceManager);
106else if (childNode.LocalName == "autoHyphenation")
107ctObj.autoHyphenation = CT_OnOff.Parse(childNode, namespaceManager);
108else if (childNode.LocalName == "consecutiveHyphenLimit")
109ctObj.consecutiveHyphenLimit = CT_DecimalNumber.Parse(childNode, namespaceManager);
110else if (childNode.LocalName == "hyphenationZone")
111ctObj.hyphenationZone = CT_TwipsMeasure.Parse(childNode, namespaceManager);
112else if (childNode.LocalName == "doNotHyphenateCaps")
113ctObj.doNotHyphenateCaps = CT_OnOff.Parse(childNode, namespaceManager);
114else if (childNode.LocalName == "showEnvelope")
115ctObj.showEnvelope = CT_OnOff.Parse(childNode, namespaceManager);
116else if (childNode.LocalName == "summaryLength")
117ctObj.summaryLength = CT_DecimalNumber.Parse(childNode, namespaceManager);
118else if (childNode.LocalName == "clickAndTypeStyle")
119ctObj.clickAndTypeStyle = CT_String.Parse(childNode, namespaceManager);
120else if (childNode.LocalName == "defaultTableStyle")
121ctObj.defaultTableStyle = CT_String.Parse(childNode, namespaceManager);
122else if (childNode.LocalName == "evenAndOddHeaders")
123ctObj.evenAndOddHeaders = CT_OnOff.Parse(childNode, namespaceManager);
124else if (childNode.LocalName == "bookFoldRevPrinting")
125ctObj.bookFoldRevPrinting = CT_OnOff.Parse(childNode, namespaceManager);
126else if (childNode.LocalName == "bookFoldPrinting")
127ctObj.bookFoldPrinting = CT_OnOff.Parse(childNode, namespaceManager);
128else if (childNode.LocalName == "bookFoldPrintingSheets")
129ctObj.bookFoldPrintingSheets = CT_DecimalNumber.Parse(childNode, namespaceManager);
130else if (childNode.LocalName == "drawingGridHorizontalSpacing")
131ctObj.drawingGridHorizontalSpacing = CT_TwipsMeasure.Parse(childNode, namespaceManager);
132else if (childNode.LocalName == "drawingGridVerticalSpacing")
133ctObj.drawingGridVerticalSpacing = CT_TwipsMeasure.Parse(childNode, namespaceManager);
134else if (childNode.LocalName == "displayHorizontalDrawingGridEvery")
135ctObj.displayHorizontalDrawingGridEvery = CT_DecimalNumber.Parse(childNode, namespaceManager);
136else if (childNode.LocalName == "displayVerticalDrawingGridEvery")
137ctObj.displayVerticalDrawingGridEvery = CT_DecimalNumber.Parse(childNode, namespaceManager);
138else if (childNode.LocalName == "doNotUseMarginsForDrawingGridOrigin")
139ctObj.doNotUseMarginsForDrawingGridOrigin = CT_OnOff.Parse(childNode, namespaceManager);
140else if (childNode.LocalName == "drawingGridHorizontalOrigin")
141ctObj.drawingGridHorizontalOrigin = CT_TwipsMeasure.Parse(childNode, namespaceManager);
142else if (childNode.LocalName == "drawingGridVerticalOrigin")
143ctObj.drawingGridVerticalOrigin = CT_TwipsMeasure.Parse(childNode, namespaceManager);
144else if (childNode.LocalName == "doNotShadeFormData")
145ctObj.doNotShadeFormData = CT_OnOff.Parse(childNode, namespaceManager);
146else if (childNode.LocalName == "noPunctuationKerning")
147ctObj.noPunctuationKerning = CT_OnOff.Parse(childNode, namespaceManager);
148else if (childNode.LocalName == "characterSpacingControl")
149ctObj.characterSpacingControl = CT_CharacterSpacing.Parse(childNode, namespaceManager);
150else if (childNode.LocalName == "printTwoOnOne")
151ctObj.printTwoOnOne = CT_OnOff.Parse(childNode, namespaceManager);
152else if (childNode.LocalName == "strictFirstAndLastChars")
153ctObj.strictFirstAndLastChars = CT_OnOff.Parse(childNode, namespaceManager);
154else if (childNode.LocalName == "noLineBreaksAfter")
155ctObj.noLineBreaksAfter = CT_Kinsoku.Parse(childNode, namespaceManager);
156else if (childNode.LocalName == "noLineBreaksBefore")
157ctObj.noLineBreaksBefore = CT_Kinsoku.Parse(childNode, namespaceManager);
158else if (childNode.LocalName == "savePreviewPicture")
159ctObj.savePreviewPicture = CT_OnOff.Parse(childNode, namespaceManager);
160else if (childNode.LocalName == "doNotValidateAgainstSchema")
161ctObj.doNotValidateAgainstSchema = CT_OnOff.Parse(childNode, namespaceManager);
162else if (childNode.LocalName == "saveInvalidXml")
163ctObj.saveInvalidXml = CT_OnOff.Parse(childNode, namespaceManager);
164else if (childNode.LocalName == "ignoreMixedContent")
165ctObj.ignoreMixedContent = CT_OnOff.Parse(childNode, namespaceManager);
166else if (childNode.LocalName == "alwaysShowPlaceholderText")
167ctObj.alwaysShowPlaceholderText = CT_OnOff.Parse(childNode, namespaceManager);
168else if (childNode.LocalName == "doNotDemarcateInvalidXml")
169ctObj.doNotDemarcateInvalidXml = CT_OnOff.Parse(childNode, namespaceManager);
170else if (childNode.LocalName == "saveXmlDataOnly")
171ctObj.saveXmlDataOnly = CT_OnOff.Parse(childNode, namespaceManager);
172else if (childNode.LocalName == "useXSLTWhenSaving")
173ctObj.useXSLTWhenSaving = CT_OnOff.Parse(childNode, namespaceManager);
174else if (childNode.LocalName == "saveThroughXslt")
175ctObj.saveThroughXslt = CT_SaveThroughXslt.Parse(childNode, namespaceManager);
176else if (childNode.LocalName == "showXMLTags")
177ctObj.showXMLTags = CT_OnOff.Parse(childNode, namespaceManager);
178else if (childNode.LocalName == "alwaysMergeEmptyNamespace")
179ctObj.alwaysMergeEmptyNamespace = CT_OnOff.Parse(childNode, namespaceManager);
180else if (childNode.LocalName == "updateFields")
181ctObj.updateFields = CT_OnOff.Parse(childNode, namespaceManager);
182//else if(childNode.LocalName == "hdrShapeDefaults")
183// ctObj.hdrShapeDefaults = XmlElement[].Parse(childNode, namespaceManager);
184else if (childNode.LocalName == "footnotePr")
185ctObj.footnotePr = CT_FtnDocProps.Parse(childNode, namespaceManager);
186else if (childNode.LocalName == "endnotePr")
187ctObj.endnotePr = CT_EdnDocProps.Parse(childNode, namespaceManager);
188else if (childNode.LocalName == "compat")
189ctObj.compat = CT_Compat.Parse(childNode, namespaceManager);
190else if (childNode.LocalName == "rsids")
191ctObj.rsids = CT_DocRsids.Parse(childNode, namespaceManager);
192else if (childNode.LocalName == "mathPr")
193ctObj.mathPr = CT_MathPr.Parse(childNode, namespaceManager);
194else if (childNode.LocalName == "uiCompat97To2003")
195ctObj.uiCompat97To2003 = CT_OnOff.Parse(childNode, namespaceManager);
196else if (childNode.LocalName == "themeFontLang")
197ctObj.themeFontLang = CT_Language.Parse(childNode, namespaceManager);
198else if (childNode.LocalName == "clrSchemeMapping")
199ctObj.clrSchemeMapping = CT_ColorSchemeMapping.Parse(childNode, namespaceManager);
200else if (childNode.LocalName == "doNotIncludeSubdocsInStats")
201ctObj.doNotIncludeSubdocsInStats = CT_OnOff.Parse(childNode, namespaceManager);
202else if (childNode.LocalName == "doNotAutoCompressPictures")
203ctObj.doNotAutoCompressPictures = CT_OnOff.Parse(childNode, namespaceManager);
204else if (childNode.LocalName == "forceUpgrade")
205ctObj.forceUpgrade = new CT_Empty();
206else if (childNode.LocalName == "captions")
207ctObj.captions = CT_Captions.Parse(childNode, namespaceManager);
208else if (childNode.LocalName == "readModeInkLockDown")
209ctObj.readModeInkLockDown = CT_ReadingModeInkLockDown.Parse(childNode, namespaceManager);
210//else if(childNode.LocalName == "shapeDefaults")
211// ctObj.shapeDefaults = XmlElement[].Parse(childNode, namespaceManager);
212else if (childNode.LocalName == "doNotEmbedSmartTags")
213ctObj.doNotEmbedSmartTags = CT_OnOff.Parse(childNode, namespaceManager);
214else if (childNode.LocalName == "decimalSymbol")
215ctObj.decimalSymbol = CT_String.Parse(childNode, namespaceManager);
216else if (childNode.LocalName == "listSeparator")
217ctObj.listSeparator = CT_String.Parse(childNode, namespaceManager);
218else if (childNode.LocalName == "activeWritingStyle")
219ctObj.activeWritingStyle.Add(CT_WritingStyle.Parse(childNode, namespaceManager));
220else if (childNode.LocalName == "docVars")
221ctObj.docVars = CT_DocVars.Parse(childNode, namespaceManager);
222else if (childNode.LocalName == "attachedSchema")
223ctObj.attachedSchema.Add(CT_String.Parse(childNode, namespaceManager));
224else if (childNode.LocalName == "smartTagType")
225ctObj.smartTagType.Add(CT_SmartTagType.Parse(childNode, namespaceManager));
226else if (childNode.LocalName == "schemaLibrary")
227ctObj.schemaLibrary.Add(CT_Schema.Parse(childNode, namespaceManager));
228}
229return ctObj;
230}
231
232
233
234internal void Write(StreamWriter sw)
235{
236sw.WriteLine("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
237sw.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\" ");
238sw.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\">");
239if (this.writeProtection != null)
240this.writeProtection.Write(sw, "writeProtection");
241if (this.view != null)
242this.view.Write(sw, "view");
243if (this.zoom != null)
244this.zoom.Write(sw, "zoom");
245if (this.removePersonalInformation != null)
246this.removePersonalInformation.Write(sw, "removePersonalInformation");
247if (this.removeDateAndTime != null)
248this.removeDateAndTime.Write(sw, "removeDateAndTime");
249if (this.doNotDisplayPageBoundaries != null)
250this.doNotDisplayPageBoundaries.Write(sw, "doNotDisplayPageBoundaries");
251if (this.displayBackgroundShape != null)
252this.displayBackgroundShape.Write(sw, "displayBackgroundShape");
253if (this.printPostScriptOverText != null)
254this.printPostScriptOverText.Write(sw, "printPostScriptOverText");
255if (this.printFractionalCharacterWidth != null)
256this.printFractionalCharacterWidth.Write(sw, "printFractionalCharacterWidth");
257if (this.printFormsData != null)
258this.printFormsData.Write(sw, "printFormsData");
259if (this.embedTrueTypeFonts != null)
260this.embedTrueTypeFonts.Write(sw, "embedTrueTypeFonts");
261if (this.embedSystemFonts != null)
262this.embedSystemFonts.Write(sw, "embedSystemFonts");
263if (this.saveSubsetFonts != null)
264this.saveSubsetFonts.Write(sw, "saveSubsetFonts");
265if (this.saveFormsData != null)
266this.saveFormsData.Write(sw, "saveFormsData");
267if (this.mirrorMargins != null)
268this.mirrorMargins.Write(sw, "mirrorMargins");
269if (this.alignBordersAndEdges != null)
270this.alignBordersAndEdges.Write(sw, "alignBordersAndEdges");
271if (this.bordersDoNotSurroundHeader != null)
272this.bordersDoNotSurroundHeader.Write(sw, "bordersDoNotSurroundHeader");
273if (this.bordersDoNotSurroundFooter != null)
274this.bordersDoNotSurroundFooter.Write(sw, "bordersDoNotSurroundFooter");
275if (this.gutterAtTop != null)
276this.gutterAtTop.Write(sw, "gutterAtTop");
277if (this.hideSpellingErrors != null)
278this.hideSpellingErrors.Write(sw, "hideSpellingErrors");
279if (this.hideGrammaticalErrors != null)
280this.hideGrammaticalErrors.Write(sw, "hideGrammaticalErrors");
281if (this.proofState != null)
282this.proofState.Write(sw, "proofState");
283if (this.formsDesign != null)
284this.formsDesign.Write(sw, "formsDesign");
285if (this.attachedTemplate != null)
286this.attachedTemplate.Write(sw, "attachedTemplate");
287if (this.linkStyles != null)
288this.linkStyles.Write(sw, "linkStyles");
289if (this.stylePaneFormatFilter != null)
290this.stylePaneFormatFilter.Write(sw, "stylePaneFormatFilter");
291if (this.stylePaneSortMethod != null)
292this.stylePaneSortMethod.Write(sw, "stylePaneSortMethod");
293if (this.documentType != null)
294this.documentType.Write(sw, "documentType");
295if (this.mailMerge != null)
296this.mailMerge.Write(sw, "mailMerge");
297if (this.revisionView != null)
298this.revisionView.Write(sw, "revisionView");
299if (this.trackRevisions != null)
300this.trackRevisions.Write(sw, "trackRevisions");
301if (this.doNotTrackMoves != null)
302this.doNotTrackMoves.Write(sw, "doNotTrackMoves");
303if (this.doNotTrackFormatting != null)
304this.doNotTrackFormatting.Write(sw, "doNotTrackFormatting");
305if (this.documentProtection != null)
306this.documentProtection.Write(sw, "documentProtection");
307if (this.autoFormatOverride != null)
308this.autoFormatOverride.Write(sw, "autoFormatOverride");
309if (this.styleLockTheme != null)
310this.styleLockTheme.Write(sw, "styleLockTheme");
311if (this.styleLockQFSet != null)
312this.styleLockQFSet.Write(sw, "styleLockQFSet");
313if (this.defaultTabStop != null)
314this.defaultTabStop.Write(sw, "defaultTabStop");
315if (this.autoHyphenation != null)
316this.autoHyphenation.Write(sw, "autoHyphenation");
317if (this.consecutiveHyphenLimit != null)
318this.consecutiveHyphenLimit.Write(sw, "consecutiveHyphenLimit");
319if (this.hyphenationZone != null)
320this.hyphenationZone.Write(sw, "hyphenationZone");
321if (this.doNotHyphenateCaps != null)
322this.doNotHyphenateCaps.Write(sw, "doNotHyphenateCaps");
323if (this.showEnvelope != null)
324this.showEnvelope.Write(sw, "showEnvelope");
325if (this.summaryLength != null)
326this.summaryLength.Write(sw, "summaryLength");
327if (this.clickAndTypeStyle != null)
328this.clickAndTypeStyle.Write(sw, "clickAndTypeStyle");
329if (this.defaultTableStyle != null)
330this.defaultTableStyle.Write(sw, "defaultTableStyle");
331if (this.evenAndOddHeaders != null)
332this.evenAndOddHeaders.Write(sw, "evenAndOddHeaders");
333if (this.bookFoldRevPrinting != null)
334this.bookFoldRevPrinting.Write(sw, "bookFoldRevPrinting");
335if (this.bookFoldPrinting != null)
336this.bookFoldPrinting.Write(sw, "bookFoldPrinting");
337if (this.bookFoldPrintingSheets != null)
338this.bookFoldPrintingSheets.Write(sw, "bookFoldPrintingSheets");
339if (this.drawingGridHorizontalSpacing != null)
340this.drawingGridHorizontalSpacing.Write(sw, "drawingGridHorizontalSpacing");
341if (this.drawingGridVerticalSpacing != null)
342this.drawingGridVerticalSpacing.Write(sw, "drawingGridVerticalSpacing");
343if (this.displayHorizontalDrawingGridEvery != null)
344this.displayHorizontalDrawingGridEvery.Write(sw, "displayHorizontalDrawingGridEvery");
345if (this.displayVerticalDrawingGridEvery != null)
346this.displayVerticalDrawingGridEvery.Write(sw, "displayVerticalDrawingGridEvery");
347if (this.doNotUseMarginsForDrawingGridOrigin != null)
348this.doNotUseMarginsForDrawingGridOrigin.Write(sw, "doNotUseMarginsForDrawingGridOrigin");
349if (this.drawingGridHorizontalOrigin != null)
350this.drawingGridHorizontalOrigin.Write(sw, "drawingGridHorizontalOrigin");
351if (this.drawingGridVerticalOrigin != null)
352this.drawingGridVerticalOrigin.Write(sw, "drawingGridVerticalOrigin");
353if (this.doNotShadeFormData != null)
354this.doNotShadeFormData.Write(sw, "doNotShadeFormData");
355if (this.noPunctuationKerning != null)
356this.noPunctuationKerning.Write(sw, "noPunctuationKerning");
357if (this.characterSpacingControl != null)
358this.characterSpacingControl.Write(sw, "characterSpacingControl");
359if (this.printTwoOnOne != null)
360this.printTwoOnOne.Write(sw, "printTwoOnOne");
361if (this.strictFirstAndLastChars != null)
362this.strictFirstAndLastChars.Write(sw, "strictFirstAndLastChars");
363if (this.noLineBreaksAfter != null)
364this.noLineBreaksAfter.Write(sw, "noLineBreaksAfter");
365if (this.noLineBreaksBefore != null)
366this.noLineBreaksBefore.Write(sw, "noLineBreaksBefore");
367if (this.savePreviewPicture != null)
368this.savePreviewPicture.Write(sw, "savePreviewPicture");
369if (this.doNotValidateAgainstSchema != null)
370this.doNotValidateAgainstSchema.Write(sw, "doNotValidateAgainstSchema");
371if (this.saveInvalidXml != null)
372this.saveInvalidXml.Write(sw, "saveInvalidXml");
373if (this.ignoreMixedContent != null)
374this.ignoreMixedContent.Write(sw, "ignoreMixedContent");
375if (this.alwaysShowPlaceholderText != null)
376this.alwaysShowPlaceholderText.Write(sw, "alwaysShowPlaceholderText");
377if (this.doNotDemarcateInvalidXml != null)
378this.doNotDemarcateInvalidXml.Write(sw, "doNotDemarcateInvalidXml");
379if (this.saveXmlDataOnly != null)
380this.saveXmlDataOnly.Write(sw, "saveXmlDataOnly");
381if (this.useXSLTWhenSaving != null)
382this.useXSLTWhenSaving.Write(sw, "useXSLTWhenSaving");
383if (this.saveThroughXslt != null)
384this.saveThroughXslt.Write(sw, "saveThroughXslt");
385if (this.showXMLTags != null)
386this.showXMLTags.Write(sw, "showXMLTags");
387if (this.alwaysMergeEmptyNamespace != null)
388this.alwaysMergeEmptyNamespace.Write(sw, "alwaysMergeEmptyNamespace");
389if (this.updateFields != null)
390this.updateFields.Write(sw, "updateFields");
391//if (this.hdrShapeDefaults != null)
392// this.hdrShapeDefaults.Write(sw, "hdrShapeDefaults");
393if (this.footnotePr != null)
394this.footnotePr.Write(sw, "footnotePr");
395if (this.endnotePr != null)
396this.endnotePr.Write(sw, "endnotePr");
397if (this.compat != null)
398this.compat.Write(sw, "compat");
399if (this.rsids != null)
400this.rsids.Write(sw, "rsids");
401if (this.mathPr != null)
402this.mathPr.Write(sw, "mathPr");
403if (this.uiCompat97To2003 != null)
404this.uiCompat97To2003.Write(sw, "uiCompat97To2003");
405if (this.themeFontLang != null)
406this.themeFontLang.Write(sw, "themeFontLang");
407if (this.clrSchemeMapping != null)
408this.clrSchemeMapping.Write(sw, "clrSchemeMapping");
409if (this.doNotIncludeSubdocsInStats != null)
410this.doNotIncludeSubdocsInStats.Write(sw, "doNotIncludeSubdocsInStats");
411if (this.doNotAutoCompressPictures != null)
412this.doNotAutoCompressPictures.Write(sw, "doNotAutoCompressPictures");
413if (this.forceUpgrade != null)
414sw.Write("<w:forceUpgrade/>");
415if (this.captions != null)
416this.captions.Write(sw, "captions");
417if (this.readModeInkLockDown != null)
418this.readModeInkLockDown.Write(sw, "readModeInkLockDown");
419//if (this.shapeDefaults != null)
420// this.shapeDefaults.Write(sw, "shapeDefaults");
421if (this.doNotEmbedSmartTags != null)
422this.doNotEmbedSmartTags.Write(sw, "doNotEmbedSmartTags");
423if (this.decimalSymbol != null)
424this.decimalSymbol.Write(sw, "decimalSymbol");
425if (this.listSeparator != null)
426this.listSeparator.Write(sw, "listSeparator");
427if (this.activeWritingStyle != null)
428{
429foreach (CT_WritingStyle x in this.activeWritingStyle)
430{
431x.Write(sw, "activeWritingStyle");
432}
433}
434if (this.docVars != null)
435this.docVars.Write(sw, "docVars");
436if (this.attachedSchema != null)
437{
438foreach (CT_String x in this.attachedSchema)
439{
440x.Write(sw, "attachedSchema");
441}
442}
443if (this.smartTagType != null)
444{
445foreach (CT_SmartTagType x in this.smartTagType)
446{
447x.Write(sw, "smartTagType");
448}
449}
450if (this.schemaLibrary != null)
451{
452foreach (CT_Schema x in this.schemaLibrary)
453{
454x.Write(sw, "schemaLibrary");
455}
456}
457sw.Write("</w:settings>");
458}
459
460private CT_WriteProtection writeProtectionField;
461
462private CT_View viewField;
463
464private CT_Zoom zoomField;
465
466private CT_OnOff removePersonalInformationField;
467
468private CT_OnOff removeDateAndTimeField;
469
470private CT_OnOff doNotDisplayPageBoundariesField;
471
472private CT_OnOff displayBackgroundShapeField;
473
474private CT_OnOff printPostScriptOverTextField;
475
476private CT_OnOff printFractionalCharacterWidthField;
477
478private CT_OnOff printFormsDataField;
479
480private CT_OnOff embedTrueTypeFontsField;
481
482private CT_OnOff embedSystemFontsField;
483
484private CT_OnOff saveSubsetFontsField;
485
486private CT_OnOff saveFormsDataField;
487
488private CT_OnOff mirrorMarginsField;
489
490private CT_OnOff alignBordersAndEdgesField;
491
492private CT_OnOff bordersDoNotSurroundHeaderField;
493
494private CT_OnOff bordersDoNotSurroundFooterField;
495
496private CT_OnOff gutterAtTopField;
497
498private CT_OnOff hideSpellingErrorsField;
499
500private CT_OnOff hideGrammaticalErrorsField;
501
502private List<CT_WritingStyle> activeWritingStyleField;
503
504private CT_Proof proofStateField;
505
506private CT_OnOff formsDesignField;
507
508private CT_Rel attachedTemplateField;
509
510private CT_OnOff linkStylesField;
511
512private CT_ShortHexNumber stylePaneFormatFilterField;
513
514private CT_ShortHexNumber stylePaneSortMethodField;
515
516private CT_DocType documentTypeField;
517
518private CT_MailMerge mailMergeField;
519
520private CT_TrackChangesView revisionViewField;
521
522private CT_OnOff trackRevisionsField;
523
524private CT_OnOff doNotTrackMovesField;
525
526private CT_OnOff doNotTrackFormattingField;
527
528private CT_DocProtect documentProtectionField;
529
530private CT_OnOff autoFormatOverrideField;
531
532private CT_OnOff styleLockThemeField;
533
534private CT_OnOff styleLockQFSetField;
535
536private CT_TwipsMeasure defaultTabStopField;
537
538private CT_OnOff autoHyphenationField;
539
540private CT_DecimalNumber consecutiveHyphenLimitField;
541
542private CT_TwipsMeasure hyphenationZoneField;
543
544private CT_OnOff doNotHyphenateCapsField;
545
546private CT_OnOff showEnvelopeField;
547
548private CT_DecimalNumber summaryLengthField;
549
550private CT_String clickAndTypeStyleField;
551
552private CT_String defaultTableStyleField;
553
554private CT_OnOff evenAndOddHeadersField;
555
556private CT_OnOff bookFoldRevPrintingField;
557
558private CT_OnOff bookFoldPrintingField;
559
560private CT_DecimalNumber bookFoldPrintingSheetsField;
561
562private CT_TwipsMeasure drawingGridHorizontalSpacingField;
563
564private CT_TwipsMeasure drawingGridVerticalSpacingField;
565
566private CT_DecimalNumber displayHorizontalDrawingGridEveryField;
567
568private CT_DecimalNumber displayVerticalDrawingGridEveryField;
569
570private CT_OnOff doNotUseMarginsForDrawingGridOriginField;
571
572private CT_TwipsMeasure drawingGridHorizontalOriginField;
573
574private CT_TwipsMeasure drawingGridVerticalOriginField;
575
576private CT_OnOff doNotShadeFormDataField;
577
578private CT_OnOff noPunctuationKerningField;
579
580private CT_CharacterSpacing characterSpacingControlField;
581
582private CT_OnOff printTwoOnOneField;
583
584private CT_OnOff strictFirstAndLastCharsField;
585
586private CT_Kinsoku noLineBreaksAfterField;
587
588private CT_Kinsoku noLineBreaksBeforeField;
589
590private CT_OnOff savePreviewPictureField;
591
592private CT_OnOff doNotValidateAgainstSchemaField;
593
594private CT_OnOff saveInvalidXmlField;
595
596private CT_OnOff ignoreMixedContentField;
597
598private CT_OnOff alwaysShowPlaceholderTextField;
599
600private CT_OnOff doNotDemarcateInvalidXmlField;
601
602private CT_OnOff saveXmlDataOnlyField;
603
604private CT_OnOff useXSLTWhenSavingField;
605
606private CT_SaveThroughXslt saveThroughXsltField;
607
608private CT_OnOff showXMLTagsField;
609
610private CT_OnOff alwaysMergeEmptyNamespaceField;
611
612private CT_OnOff updateFieldsField;
613
614private System.Xml.XmlElement[] hdrShapeDefaultsField;
615
616private CT_FtnDocProps footnotePrField;
617
618private CT_EdnDocProps endnotePrField;
619
620private CT_Compat compatField;
621
622private CT_DocVars docVarsField;
623
624private CT_DocRsids rsidsField;
625
626private NPOI.OpenXmlFormats.Shared.CT_MathPr mathPrField;
627
628private CT_OnOff uiCompat97To2003Field;
629
630private List<CT_String> attachedSchemaField;
631
632private CT_Language themeFontLangField;
633
634private CT_ColorSchemeMapping clrSchemeMappingField;
635
636private CT_OnOff doNotIncludeSubdocsInStatsField;
637
638private CT_OnOff doNotAutoCompressPicturesField;
639
640private CT_Empty forceUpgradeField;
641
642private CT_Captions captionsField;
643
644private CT_ReadingModeInkLockDown readModeInkLockDownField;
645
646private List<CT_SmartTagType> smartTagTypeField;
647
648private List<CT_Schema> schemaLibraryField;
649
650private System.Xml.XmlElement[] shapeDefaultsField;
651
652private CT_OnOff doNotEmbedSmartTagsField;
653
654private CT_String decimalSymbolField;
655
656private CT_String listSeparatorField;
657
658public CT_Settings()
659{
660this.listSeparatorField = new CT_String();
661this.listSeparator.val = ",";
662
663this.decimalSymbolField = new CT_String();
664this.decimalSymbol.val = ".";
665//this.doNotEmbedSmartTagsField = new CT_OnOff();
666this.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();
674this.clrSchemeMappingField = new CT_ColorSchemeMapping();
675this.clrSchemeMapping.bg1 = ST_ColorSchemeIndex.light1;
676this.clrSchemeMapping.t1 = ST_ColorSchemeIndex.dark1;
677this.clrSchemeMapping.bg2 = ST_ColorSchemeIndex.light2;
678this.clrSchemeMapping.t2 = ST_ColorSchemeIndex.dark2;
679this.clrSchemeMapping.accent1 = ST_ColorSchemeIndex.accent1;
680this.clrSchemeMapping.accent2 = ST_ColorSchemeIndex.accent2;
681this.clrSchemeMapping.accent3 = ST_ColorSchemeIndex.accent3;
682this.clrSchemeMapping.accent4 = ST_ColorSchemeIndex.accent4;
683this.clrSchemeMapping.accent5 = ST_ColorSchemeIndex.accent5;
684this.clrSchemeMapping.accent6 = ST_ColorSchemeIndex.accent6;
685this.clrSchemeMapping.hyperlink = ST_ColorSchemeIndex.hyperlink;
686this.clrSchemeMapping.followedHyperlink = ST_ColorSchemeIndex.followedHyperlink;
687this.themeFontLangField = new CT_Language();
688this.themeFontLang.val = "en-US";
689this.themeFontLang.eastAsia = "zh-CN";
690//this.attachedSchemaField = new List<CT_String>();
691//this.uiCompat97To2003Field = new CT_OnOff();
692this.mathPrField = new NPOI.OpenXmlFormats.Shared.CT_MathPr();
693this.rsidsField = new CT_DocRsids();
694//this.docVarsField = new List<CT_DocVar>();
695this.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();
715this.characterSpacingControlField = new CT_CharacterSpacing();
716this.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();
722this.displayVerticalDrawingGridEveryField = new CT_DecimalNumber();
723this.displayVerticalDrawingGridEvery.val = "2";
724this.displayHorizontalDrawingGridEveryField = new CT_DecimalNumber();
725this.displayHorizontalDrawingGridEvery.val = "0";
726this.drawingGridVerticalSpacingField = new CT_TwipsMeasure();
727this.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();
741this.defaultTabStopField = new CT_TwipsMeasure();
742this.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();
763this.bordersDoNotSurroundFooterField = new CT_OnOff();
764this.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();
778this.zoomField = new CT_Zoom();
779//this.viewField = new CT_View();
780//this.writeProtectionField = new CT_WriteProtection();
781}
782
783[XmlElement(Order = 0)]
784public CT_WriteProtection writeProtection
785{
786get
787{
788return this.writeProtectionField;
789}
790set
791{
792this.writeProtectionField = value;
793}
794}
795
796[XmlElement(Order = 1)]
797public CT_View view
798{
799get
800{
801return this.viewField;
802}
803set
804{
805this.viewField = value;
806}
807}
808
809[XmlElement(Order = 2)]
810public CT_Zoom zoom
811{
812get
813{
814return this.zoomField;
815}
816set
817{
818this.zoomField = value;
819}
820}
821
822[XmlElement(Order = 3)]
823public CT_OnOff removePersonalInformation
824{
825get
826{
827return this.removePersonalInformationField;
828}
829set
830{
831this.removePersonalInformationField = value;
832}
833}
834
835[XmlElement(Order = 4)]
836public CT_OnOff removeDateAndTime
837{
838get
839{
840return this.removeDateAndTimeField;
841}
842set
843{
844this.removeDateAndTimeField = value;
845}
846}
847
848[XmlElement(Order = 5)]
849public CT_OnOff doNotDisplayPageBoundaries
850{
851get
852{
853return this.doNotDisplayPageBoundariesField;
854}
855set
856{
857this.doNotDisplayPageBoundariesField = value;
858}
859}
860
861[XmlElement(Order = 6)]
862public CT_OnOff displayBackgroundShape
863{
864get
865{
866return this.displayBackgroundShapeField;
867}
868set
869{
870this.displayBackgroundShapeField = value;
871}
872}
873
874[XmlElement(Order = 7)]
875public CT_OnOff printPostScriptOverText
876{
877get
878{
879return this.printPostScriptOverTextField;
880}
881set
882{
883this.printPostScriptOverTextField = value;
884}
885}
886
887[XmlElement(Order = 8)]
888public CT_OnOff printFractionalCharacterWidth
889{
890get
891{
892return this.printFractionalCharacterWidthField;
893}
894set
895{
896this.printFractionalCharacterWidthField = value;
897}
898}
899
900[XmlElement(Order = 9)]
901public CT_OnOff printFormsData
902{
903get
904{
905return this.printFormsDataField;
906}
907set
908{
909this.printFormsDataField = value;
910}
911}
912
913[XmlElement(Order = 10)]
914public CT_OnOff embedTrueTypeFonts
915{
916get
917{
918return this.embedTrueTypeFontsField;
919}
920set
921{
922this.embedTrueTypeFontsField = value;
923}
924}
925
926[XmlElement(Order = 11)]
927public CT_OnOff embedSystemFonts
928{
929get
930{
931return this.embedSystemFontsField;
932}
933set
934{
935this.embedSystemFontsField = value;
936}
937}
938
939[XmlElement(Order = 12)]
940public CT_OnOff saveSubsetFonts
941{
942get
943{
944return this.saveSubsetFontsField;
945}
946set
947{
948this.saveSubsetFontsField = value;
949}
950}
951
952[XmlElement(Order = 13)]
953public CT_OnOff saveFormsData
954{
955get
956{
957return this.saveFormsDataField;
958}
959set
960{
961this.saveFormsDataField = value;
962}
963}
964
965[XmlElement(Order = 14)]
966public CT_OnOff mirrorMargins
967{
968get
969{
970return this.mirrorMarginsField;
971}
972set
973{
974this.mirrorMarginsField = value;
975}
976}
977
978[XmlElement(Order = 15)]
979public CT_OnOff alignBordersAndEdges
980{
981get
982{
983return this.alignBordersAndEdgesField;
984}
985set
986{
987this.alignBordersAndEdgesField = value;
988}
989}
990
991[XmlElement(Order = 16)]
992public CT_OnOff bordersDoNotSurroundHeader
993{
994get
995{
996return this.bordersDoNotSurroundHeaderField;
997}
998set
999{
1000this.bordersDoNotSurroundHeaderField = value;
1001}
1002}
1003
1004[XmlElement(Order = 17)]
1005public CT_OnOff bordersDoNotSurroundFooter
1006{
1007get
1008{
1009return this.bordersDoNotSurroundFooterField;
1010}
1011set
1012{
1013this.bordersDoNotSurroundFooterField = value;
1014}
1015}
1016
1017[XmlElement(Order = 18)]
1018public CT_OnOff gutterAtTop
1019{
1020get
1021{
1022return this.gutterAtTopField;
1023}
1024set
1025{
1026this.gutterAtTopField = value;
1027}
1028}
1029
1030[XmlElement(Order = 19)]
1031public CT_OnOff hideSpellingErrors
1032{
1033get
1034{
1035return this.hideSpellingErrorsField;
1036}
1037set
1038{
1039this.hideSpellingErrorsField = value;
1040}
1041}
1042
1043[XmlElement(Order = 20)]
1044public CT_OnOff hideGrammaticalErrors
1045{
1046get
1047{
1048return this.hideGrammaticalErrorsField;
1049}
1050set
1051{
1052this.hideGrammaticalErrorsField = value;
1053}
1054}
1055
1056[XmlElement("activeWritingStyle", Order = 21)]
1057public List<CT_WritingStyle> activeWritingStyle
1058{
1059get
1060{
1061return this.activeWritingStyleField;
1062}
1063set
1064{
1065this.activeWritingStyleField = value;
1066}
1067}
1068
1069[XmlElement(Order = 22)]
1070public CT_Proof proofState
1071{
1072get
1073{
1074return this.proofStateField;
1075}
1076set
1077{
1078this.proofStateField = value;
1079}
1080}
1081
1082[XmlElement(Order = 23)]
1083public CT_OnOff formsDesign
1084{
1085get
1086{
1087return this.formsDesignField;
1088}
1089set
1090{
1091this.formsDesignField = value;
1092}
1093}
1094
1095[XmlElement(Order = 24)]
1096public CT_Rel attachedTemplate
1097{
1098get
1099{
1100return this.attachedTemplateField;
1101}
1102set
1103{
1104this.attachedTemplateField = value;
1105}
1106}
1107
1108[XmlElement(Order = 25)]
1109public CT_OnOff linkStyles
1110{
1111get
1112{
1113return this.linkStylesField;
1114}
1115set
1116{
1117this.linkStylesField = value;
1118}
1119}
1120
1121[XmlElement(Order = 26)]
1122public CT_ShortHexNumber stylePaneFormatFilter
1123{
1124get
1125{
1126return this.stylePaneFormatFilterField;
1127}
1128set
1129{
1130this.stylePaneFormatFilterField = value;
1131}
1132}
1133
1134[XmlElement(Order = 27)]
1135public CT_ShortHexNumber stylePaneSortMethod
1136{
1137get
1138{
1139return this.stylePaneSortMethodField;
1140}
1141set
1142{
1143this.stylePaneSortMethodField = value;
1144}
1145}
1146
1147[XmlElement(Order = 28)]
1148public CT_DocType documentType
1149{
1150get
1151{
1152return this.documentTypeField;
1153}
1154set
1155{
1156this.documentTypeField = value;
1157}
1158}
1159
1160[XmlElement(Order = 29)]
1161public CT_MailMerge mailMerge
1162{
1163get
1164{
1165return this.mailMergeField;
1166}
1167set
1168{
1169this.mailMergeField = value;
1170}
1171}
1172
1173[XmlElement(Order = 30)]
1174public CT_TrackChangesView revisionView
1175{
1176get
1177{
1178return this.revisionViewField;
1179}
1180set
1181{
1182this.revisionViewField = value;
1183}
1184}
1185
1186[XmlElement(Order = 31)]
1187public CT_OnOff trackRevisions
1188{
1189get
1190{
1191return this.trackRevisionsField;
1192}
1193set
1194{
1195this.trackRevisionsField = value;
1196}
1197}
1198
1199[XmlElement(Order = 32)]
1200public CT_OnOff doNotTrackMoves
1201{
1202get
1203{
1204return this.doNotTrackMovesField;
1205}
1206set
1207{
1208this.doNotTrackMovesField = value;
1209}
1210}
1211
1212[XmlElement(Order = 33)]
1213public CT_OnOff doNotTrackFormatting
1214{
1215get
1216{
1217return this.doNotTrackFormattingField;
1218}
1219set
1220{
1221this.doNotTrackFormattingField = value;
1222}
1223}
1224
1225[XmlElement(Order = 34)]
1226public CT_DocProtect documentProtection
1227{
1228get
1229{
1230return this.documentProtectionField;
1231}
1232set
1233{
1234this.documentProtectionField = value;
1235}
1236}
1237
1238[XmlElement(Order = 35)]
1239public CT_OnOff autoFormatOverride
1240{
1241get
1242{
1243return this.autoFormatOverrideField;
1244}
1245set
1246{
1247this.autoFormatOverrideField = value;
1248}
1249}
1250
1251[XmlElement(Order = 36)]
1252public CT_OnOff styleLockTheme
1253{
1254get
1255{
1256return this.styleLockThemeField;
1257}
1258set
1259{
1260this.styleLockThemeField = value;
1261}
1262}
1263
1264[XmlElement(Order = 37)]
1265public CT_OnOff styleLockQFSet
1266{
1267get
1268{
1269return this.styleLockQFSetField;
1270}
1271set
1272{
1273this.styleLockQFSetField = value;
1274}
1275}
1276
1277[XmlElement(Order = 38)]
1278public CT_TwipsMeasure defaultTabStop
1279{
1280get
1281{
1282return this.defaultTabStopField;
1283}
1284set
1285{
1286this.defaultTabStopField = value;
1287}
1288}
1289
1290[XmlElement(Order = 39)]
1291public CT_OnOff autoHyphenation
1292{
1293get
1294{
1295return this.autoHyphenationField;
1296}
1297set
1298{
1299this.autoHyphenationField = value;
1300}
1301}
1302
1303[XmlElement(Order = 40)]
1304public CT_DecimalNumber consecutiveHyphenLimit
1305{
1306get
1307{
1308return this.consecutiveHyphenLimitField;
1309}
1310set
1311{
1312this.consecutiveHyphenLimitField = value;
1313}
1314}
1315
1316[XmlElement(Order = 41)]
1317public CT_TwipsMeasure hyphenationZone
1318{
1319get
1320{
1321return this.hyphenationZoneField;
1322}
1323set
1324{
1325this.hyphenationZoneField = value;
1326}
1327}
1328
1329[XmlElement(Order = 42)]
1330public CT_OnOff doNotHyphenateCaps
1331{
1332get
1333{
1334return this.doNotHyphenateCapsField;
1335}
1336set
1337{
1338this.doNotHyphenateCapsField = value;
1339}
1340}
1341
1342[XmlElement(Order = 43)]
1343public CT_OnOff showEnvelope
1344{
1345get
1346{
1347return this.showEnvelopeField;
1348}
1349set
1350{
1351this.showEnvelopeField = value;
1352}
1353}
1354
1355[XmlElement(Order = 44)]
1356public CT_DecimalNumber summaryLength
1357{
1358get
1359{
1360return this.summaryLengthField;
1361}
1362set
1363{
1364this.summaryLengthField = value;
1365}
1366}
1367
1368[XmlElement(Order = 45)]
1369public CT_String clickAndTypeStyle
1370{
1371get
1372{
1373return this.clickAndTypeStyleField;
1374}
1375set
1376{
1377this.clickAndTypeStyleField = value;
1378}
1379}
1380
1381[XmlElement(Order = 46)]
1382public CT_String defaultTableStyle
1383{
1384get
1385{
1386return this.defaultTableStyleField;
1387}
1388set
1389{
1390this.defaultTableStyleField = value;
1391}
1392}
1393
1394[XmlElement(Order = 47)]
1395public CT_OnOff evenAndOddHeaders
1396{
1397get
1398{
1399return this.evenAndOddHeadersField;
1400}
1401set
1402{
1403this.evenAndOddHeadersField = value;
1404}
1405}
1406
1407[XmlElement(Order = 48)]
1408public CT_OnOff bookFoldRevPrinting
1409{
1410get
1411{
1412return this.bookFoldRevPrintingField;
1413}
1414set
1415{
1416this.bookFoldRevPrintingField = value;
1417}
1418}
1419
1420[XmlElement(Order = 49)]
1421public CT_OnOff bookFoldPrinting
1422{
1423get
1424{
1425return this.bookFoldPrintingField;
1426}
1427set
1428{
1429this.bookFoldPrintingField = value;
1430}
1431}
1432
1433[XmlElement(Order = 50)]
1434public CT_DecimalNumber bookFoldPrintingSheets
1435{
1436get
1437{
1438return this.bookFoldPrintingSheetsField;
1439}
1440set
1441{
1442this.bookFoldPrintingSheetsField = value;
1443}
1444}
1445
1446[XmlElement(Order = 51)]
1447public CT_TwipsMeasure drawingGridHorizontalSpacing
1448{
1449get
1450{
1451return this.drawingGridHorizontalSpacingField;
1452}
1453set
1454{
1455this.drawingGridHorizontalSpacingField = value;
1456}
1457}
1458
1459[XmlElement(Order = 52)]
1460public CT_TwipsMeasure drawingGridVerticalSpacing
1461{
1462get
1463{
1464return this.drawingGridVerticalSpacingField;
1465}
1466set
1467{
1468this.drawingGridVerticalSpacingField = value;
1469}
1470}
1471
1472[XmlElement(Order = 53)]
1473public CT_DecimalNumber displayHorizontalDrawingGridEvery
1474{
1475get
1476{
1477return this.displayHorizontalDrawingGridEveryField;
1478}
1479set
1480{
1481this.displayHorizontalDrawingGridEveryField = value;
1482}
1483}
1484
1485[XmlElement(Order = 54)]
1486public CT_DecimalNumber displayVerticalDrawingGridEvery
1487{
1488get
1489{
1490return this.displayVerticalDrawingGridEveryField;
1491}
1492set
1493{
1494this.displayVerticalDrawingGridEveryField = value;
1495}
1496}
1497
1498[XmlElement(Order = 55)]
1499public CT_OnOff doNotUseMarginsForDrawingGridOrigin
1500{
1501get
1502{
1503return this.doNotUseMarginsForDrawingGridOriginField;
1504}
1505set
1506{
1507this.doNotUseMarginsForDrawingGridOriginField = value;
1508}
1509}
1510
1511[XmlElement(Order = 56)]
1512public CT_TwipsMeasure drawingGridHorizontalOrigin
1513{
1514get
1515{
1516return this.drawingGridHorizontalOriginField;
1517}
1518set
1519{
1520this.drawingGridHorizontalOriginField = value;
1521}
1522}
1523
1524[XmlElement(Order = 57)]
1525public CT_TwipsMeasure drawingGridVerticalOrigin
1526{
1527get
1528{
1529return this.drawingGridVerticalOriginField;
1530}
1531set
1532{
1533this.drawingGridVerticalOriginField = value;
1534}
1535}
1536
1537[XmlElement(Order = 58)]
1538public CT_OnOff doNotShadeFormData
1539{
1540get
1541{
1542return this.doNotShadeFormDataField;
1543}
1544set
1545{
1546this.doNotShadeFormDataField = value;
1547}
1548}
1549
1550[XmlElement(Order = 59)]
1551public CT_OnOff noPunctuationKerning
1552{
1553get
1554{
1555return this.noPunctuationKerningField;
1556}
1557set
1558{
1559this.noPunctuationKerningField = value;
1560}
1561}
1562
1563[XmlElement(Order = 60)]
1564public CT_CharacterSpacing characterSpacingControl
1565{
1566get
1567{
1568return this.characterSpacingControlField;
1569}
1570set
1571{
1572this.characterSpacingControlField = value;
1573}
1574}
1575
1576[XmlElement(Order = 61)]
1577public CT_OnOff printTwoOnOne
1578{
1579get
1580{
1581return this.printTwoOnOneField;
1582}
1583set
1584{
1585this.printTwoOnOneField = value;
1586}
1587}
1588
1589[XmlElement(Order = 62)]
1590public CT_OnOff strictFirstAndLastChars
1591{
1592get
1593{
1594return this.strictFirstAndLastCharsField;
1595}
1596set
1597{
1598this.strictFirstAndLastCharsField = value;
1599}
1600}
1601
1602[XmlElement(Order = 63)]
1603public CT_Kinsoku noLineBreaksAfter
1604{
1605get
1606{
1607return this.noLineBreaksAfterField;
1608}
1609set
1610{
1611this.noLineBreaksAfterField = value;
1612}
1613}
1614
1615[XmlElement(Order = 64)]
1616public CT_Kinsoku noLineBreaksBefore
1617{
1618get
1619{
1620return this.noLineBreaksBeforeField;
1621}
1622set
1623{
1624this.noLineBreaksBeforeField = value;
1625}
1626}
1627
1628[XmlElement(Order = 65)]
1629public CT_OnOff savePreviewPicture
1630{
1631get
1632{
1633return this.savePreviewPictureField;
1634}
1635set
1636{
1637this.savePreviewPictureField = value;
1638}
1639}
1640
1641[XmlElement(Order = 66)]
1642public CT_OnOff doNotValidateAgainstSchema
1643{
1644get
1645{
1646return this.doNotValidateAgainstSchemaField;
1647}
1648set
1649{
1650this.doNotValidateAgainstSchemaField = value;
1651}
1652}
1653
1654[XmlElement(Order = 67)]
1655public CT_OnOff saveInvalidXml
1656{
1657get
1658{
1659return this.saveInvalidXmlField;
1660}
1661set
1662{
1663this.saveInvalidXmlField = value;
1664}
1665}
1666
1667[XmlElement(Order = 68)]
1668public CT_OnOff ignoreMixedContent
1669{
1670get
1671{
1672return this.ignoreMixedContentField;
1673}
1674set
1675{
1676this.ignoreMixedContentField = value;
1677}
1678}
1679
1680[XmlElement(Order = 69)]
1681public CT_OnOff alwaysShowPlaceholderText
1682{
1683get
1684{
1685return this.alwaysShowPlaceholderTextField;
1686}
1687set
1688{
1689this.alwaysShowPlaceholderTextField = value;
1690}
1691}
1692
1693[XmlElement(Order = 70)]
1694public CT_OnOff doNotDemarcateInvalidXml
1695{
1696get
1697{
1698return this.doNotDemarcateInvalidXmlField;
1699}
1700set
1701{
1702this.doNotDemarcateInvalidXmlField = value;
1703}
1704}
1705
1706[XmlElement(Order = 71)]
1707public CT_OnOff saveXmlDataOnly
1708{
1709get
1710{
1711return this.saveXmlDataOnlyField;
1712}
1713set
1714{
1715this.saveXmlDataOnlyField = value;
1716}
1717}
1718
1719[XmlElement(Order = 72)]
1720public CT_OnOff useXSLTWhenSaving
1721{
1722get
1723{
1724return this.useXSLTWhenSavingField;
1725}
1726set
1727{
1728this.useXSLTWhenSavingField = value;
1729}
1730}
1731
1732[XmlElement(Order = 73)]
1733public CT_SaveThroughXslt saveThroughXslt
1734{
1735get
1736{
1737return this.saveThroughXsltField;
1738}
1739set
1740{
1741this.saveThroughXsltField = value;
1742}
1743}
1744
1745[XmlElement(Order = 74)]
1746public CT_OnOff showXMLTags
1747{
1748get
1749{
1750return this.showXMLTagsField;
1751}
1752set
1753{
1754this.showXMLTagsField = value;
1755}
1756}
1757
1758[XmlElement(Order = 75)]
1759public CT_OnOff alwaysMergeEmptyNamespace
1760{
1761get
1762{
1763return this.alwaysMergeEmptyNamespaceField;
1764}
1765set
1766{
1767this.alwaysMergeEmptyNamespaceField = value;
1768}
1769}
1770
1771[XmlElement(Order = 76)]
1772public CT_OnOff updateFields
1773{
1774get
1775{
1776return this.updateFieldsField;
1777}
1778set
1779{
1780this.updateFieldsField = value;
1781}
1782}
1783
1784[XmlArray(Order = 77)]
1785[XmlArrayItem("", Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
1786public System.Xml.XmlElement[] hdrShapeDefaults
1787{
1788get
1789{
1790return this.hdrShapeDefaultsField;
1791}
1792set
1793{
1794this.hdrShapeDefaultsField = value;
1795}
1796}
1797
1798[XmlElement(Order = 78)]
1799public CT_FtnDocProps footnotePr
1800{
1801get
1802{
1803return this.footnotePrField;
1804}
1805set
1806{
1807this.footnotePrField = value;
1808}
1809}
1810
1811[XmlElement(Order = 79)]
1812public CT_EdnDocProps endnotePr
1813{
1814get
1815{
1816return this.endnotePrField;
1817}
1818set
1819{
1820this.endnotePrField = value;
1821}
1822}
1823
1824[XmlElement(Order = 80)]
1825public CT_Compat compat
1826{
1827get
1828{
1829return this.compatField;
1830}
1831set
1832{
1833this.compatField = value;
1834}
1835}
1836
1837[XmlElement(Order = 81)]
1838public CT_DocVars docVars
1839{
1840get
1841{
1842return this.docVarsField;
1843}
1844set
1845{
1846this.docVarsField = value;
1847}
1848}
1849
1850[XmlElement(Order = 82)]
1851public CT_DocRsids rsids
1852{
1853get
1854{
1855return this.rsidsField;
1856}
1857set
1858{
1859this.rsidsField = value;
1860}
1861}
1862
1863[XmlElement(Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", Order = 83)]
1864public NPOI.OpenXmlFormats.Shared.CT_MathPr mathPr
1865{
1866get
1867{
1868return this.mathPrField;
1869}
1870set
1871{
1872this.mathPrField = value;
1873}
1874}
1875
1876[XmlElement(Order = 84)]
1877public CT_OnOff uiCompat97To2003
1878{
1879get
1880{
1881return this.uiCompat97To2003Field;
1882}
1883set
1884{
1885this.uiCompat97To2003Field = value;
1886}
1887}
1888
1889[XmlElement("attachedSchema", Order = 85)]
1890public List<CT_String> attachedSchema
1891{
1892get
1893{
1894return this.attachedSchemaField;
1895}
1896set
1897{
1898this.attachedSchemaField = value;
1899}
1900}
1901
1902[XmlElement(Order = 86)]
1903public CT_Language themeFontLang
1904{
1905get
1906{
1907return this.themeFontLangField;
1908}
1909set
1910{
1911this.themeFontLangField = value;
1912}
1913}
1914
1915[XmlElement(Order = 87)]
1916public CT_ColorSchemeMapping clrSchemeMapping
1917{
1918get
1919{
1920return this.clrSchemeMappingField;
1921}
1922set
1923{
1924this.clrSchemeMappingField = value;
1925}
1926}
1927
1928[XmlElement(Order = 88)]
1929public CT_OnOff doNotIncludeSubdocsInStats
1930{
1931get
1932{
1933return this.doNotIncludeSubdocsInStatsField;
1934}
1935set
1936{
1937this.doNotIncludeSubdocsInStatsField = value;
1938}
1939}
1940
1941[XmlElement(Order = 89)]
1942public CT_OnOff doNotAutoCompressPictures
1943{
1944get
1945{
1946return this.doNotAutoCompressPicturesField;
1947}
1948set
1949{
1950this.doNotAutoCompressPicturesField = value;
1951}
1952}
1953
1954[XmlElement(Order = 90)]
1955public CT_Empty forceUpgrade
1956{
1957get
1958{
1959return this.forceUpgradeField;
1960}
1961set
1962{
1963this.forceUpgradeField = value;
1964}
1965}
1966
1967[XmlElement(Order = 91)]
1968public CT_Captions captions
1969{
1970get
1971{
1972return this.captionsField;
1973}
1974set
1975{
1976this.captionsField = value;
1977}
1978}
1979
1980[XmlElement(Order = 92)]
1981public CT_ReadingModeInkLockDown readModeInkLockDown
1982{
1983get
1984{
1985return this.readModeInkLockDownField;
1986}
1987set
1988{
1989this.readModeInkLockDownField = value;
1990}
1991}
1992
1993[XmlElement("smartTagType", Order = 93)]
1994public List<CT_SmartTagType> smartTagType
1995{
1996get
1997{
1998return this.smartTagTypeField;
1999}
2000set
2001{
2002this.smartTagTypeField = value;
2003}
2004}
2005
2006[XmlArray(Namespace = "http://schemas.openxmlformats.org/schemaLibrary/2006/main", Order = 94)]
2007[XmlArrayItem("schema", IsNullable = false)]
2008public List<CT_Schema> schemaLibrary
2009{
2010get
2011{
2012return this.schemaLibraryField;
2013}
2014set
2015{
2016this.schemaLibraryField = value;
2017}
2018}
2019
2020[XmlArray(Order = 95)]
2021[XmlArrayItem("", Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
2022public System.Xml.XmlElement[] shapeDefaults
2023{
2024get
2025{
2026return this.shapeDefaultsField;
2027}
2028set
2029{
2030this.shapeDefaultsField = value;
2031}
2032}
2033
2034[XmlElement(Order = 96)]
2035public CT_OnOff doNotEmbedSmartTags
2036{
2037get
2038{
2039return this.doNotEmbedSmartTagsField;
2040}
2041set
2042{
2043this.doNotEmbedSmartTagsField = value;
2044}
2045}
2046
2047[XmlElement(Order = 97)]
2048public CT_String decimalSymbol
2049{
2050get
2051{
2052return this.decimalSymbolField;
2053}
2054set
2055{
2056this.decimalSymbolField = value;
2057}
2058}
2059
2060[XmlElement(Order = 98)]
2061public CT_String listSeparator
2062{
2063get
2064{
2065return this.listSeparatorField;
2066}
2067set
2068{
2069this.listSeparatorField = value;
2070}
2071}
2072
2073public bool IsSetZoom()
2074{
2075return this.zoom != null;
2076}
2077
2078public CT_Zoom AddNewZoom()
2079{
2080this.zoom = new CT_Zoom();
2081return this.zoom;
2082}
2083
2084public bool IsSetUpdateFields()
2085{
2086return this.updateFieldsField != null;
2087}
2088
2089public bool IsSetTrackRevisions()
2090{
2091return this.trackRevisionsField != null && this.trackRevisionsField.val;
2092}
2093
2094public CT_OnOff AddNewTrackRevisions()
2095{
2096this.trackRevisionsField = new CT_OnOff();
2097this.trackRevisionsField.val = true;
2098return this.trackRevisionsField;
2099}
2100
2101public void UnsetTrackRevisions()
2102{
2103this.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)]
2112public class CT_WriteProtection
2113{
2114
2115private ST_OnOff recommendedField;
2116
2117private bool recommendedFieldSpecified;
2118
2119private ST_CryptProv cryptProviderTypeField;
2120
2121private bool cryptProviderTypeFieldSpecified;
2122
2123private ST_AlgClass cryptAlgorithmClassField;
2124
2125private bool cryptAlgorithmClassFieldSpecified;
2126
2127private ST_AlgType cryptAlgorithmTypeField;
2128
2129private bool cryptAlgorithmTypeFieldSpecified;
2130
2131private string cryptAlgorithmSidField;
2132
2133private string cryptSpinCountField;
2134
2135private string cryptProviderField;
2136
2137private byte[] algIdExtField;
2138
2139private string algIdExtSourceField;
2140
2141private byte[] cryptProviderTypeExtField;
2142
2143private string cryptProviderTypeExtSourceField;
2144
2145private byte[] hashField;
2146
2147private byte[] saltField;
2148public static CT_WriteProtection Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2149{
2150if (node == null)
2151return null;
2152CT_WriteProtection ctObj = new CT_WriteProtection();
2153if (node.Attributes["w:recommended"] != null)
2154ctObj.recommended = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:recommended"].Value,true);
2155if (node.Attributes["w:cryptProviderType"] != null)
2156ctObj.cryptProviderType = (ST_CryptProv)Enum.Parse(typeof(ST_CryptProv), node.Attributes["w:cryptProviderType"].Value);
2157if (node.Attributes["w:cryptAlgorithmClass"] != null)
2158ctObj.cryptAlgorithmClass = (ST_AlgClass)Enum.Parse(typeof(ST_AlgClass), node.Attributes["w:cryptAlgorithmClass"].Value);
2159if (node.Attributes["w:cryptAlgorithmType"] != null)
2160ctObj.cryptAlgorithmType = (ST_AlgType)Enum.Parse(typeof(ST_AlgType), node.Attributes["w:cryptAlgorithmType"].Value);
2161ctObj.cryptAlgorithmSid = XmlHelper.ReadString(node.Attributes["w:cryptAlgorithmSid"]);
2162ctObj.cryptSpinCount = XmlHelper.ReadString(node.Attributes["w:cryptSpinCount"]);
2163ctObj.cryptProvider = XmlHelper.ReadString(node.Attributes["w:cryptProvider"]);
2164ctObj.algIdExt = XmlHelper.ReadBytes(node.Attributes["w:algIdExt"]);
2165ctObj.algIdExtSource = XmlHelper.ReadString(node.Attributes["w:algIdExtSource"]);
2166ctObj.cryptProviderTypeExt = XmlHelper.ReadBytes(node.Attributes["w:cryptProviderTypeExt"]);
2167ctObj.cryptProviderTypeExtSource = XmlHelper.ReadString(node.Attributes["w:cryptProviderTypeExtSource"]);
2168ctObj.hash = XmlHelper.ReadBytes(node.Attributes["w:hash"]);
2169ctObj.salt = XmlHelper.ReadBytes(node.Attributes["w:salt"]);
2170return ctObj;
2171}
2172
2173
2174
2175internal void Write(StreamWriter sw, string nodeName)
2176{
2177sw.Write(string.Format("<w:{0}", nodeName));
2178XmlHelper.WriteAttribute(sw, "w:recommended", this.recommended.ToString());
2179XmlHelper.WriteAttribute(sw, "w:cryptProviderType", this.cryptProviderType.ToString());
2180XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmClass", this.cryptAlgorithmClass.ToString());
2181XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmType", this.cryptAlgorithmType.ToString());
2182XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmSid", this.cryptAlgorithmSid);
2183XmlHelper.WriteAttribute(sw, "w:cryptSpinCount", this.cryptSpinCount);
2184XmlHelper.WriteAttribute(sw, "w:cryptProvider", this.cryptProvider);
2185XmlHelper.WriteAttribute(sw, "w:algIdExt", this.algIdExt);
2186XmlHelper.WriteAttribute(sw, "w:algIdExtSource", this.algIdExtSource);
2187XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExt", this.cryptProviderTypeExt);
2188XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExtSource", this.cryptProviderTypeExtSource);
2189XmlHelper.WriteAttribute(sw, "w:hash", this.hash);
2190XmlHelper.WriteAttribute(sw, "w:salt", this.salt);
2191sw.Write(">");
2192sw.WriteEndW(nodeName);
2193}
2194
2195[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2196public ST_OnOff recommended
2197{
2198get
2199{
2200return this.recommendedField;
2201}
2202set
2203{
2204this.recommendedField = value;
2205}
2206}
2207
2208[XmlIgnore]
2209public bool recommendedSpecified
2210{
2211get
2212{
2213return this.recommendedFieldSpecified;
2214}
2215set
2216{
2217this.recommendedFieldSpecified = value;
2218}
2219}
2220
2221[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2222public ST_CryptProv cryptProviderType
2223{
2224get
2225{
2226return this.cryptProviderTypeField;
2227}
2228set
2229{
2230this.cryptProviderTypeField = value;
2231}
2232}
2233
2234[XmlIgnore]
2235public bool cryptProviderTypeSpecified
2236{
2237get
2238{
2239return this.cryptProviderTypeFieldSpecified;
2240}
2241set
2242{
2243this.cryptProviderTypeFieldSpecified = value;
2244}
2245}
2246
2247[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2248public ST_AlgClass cryptAlgorithmClass
2249{
2250get
2251{
2252return this.cryptAlgorithmClassField;
2253}
2254set
2255{
2256this.cryptAlgorithmClassField = value;
2257}
2258}
2259
2260[XmlIgnore]
2261public bool cryptAlgorithmClassSpecified
2262{
2263get
2264{
2265return this.cryptAlgorithmClassFieldSpecified;
2266}
2267set
2268{
2269this.cryptAlgorithmClassFieldSpecified = value;
2270}
2271}
2272
2273[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2274public ST_AlgType cryptAlgorithmType
2275{
2276get
2277{
2278return this.cryptAlgorithmTypeField;
2279}
2280set
2281{
2282this.cryptAlgorithmTypeField = value;
2283}
2284}
2285
2286[XmlIgnore]
2287public bool cryptAlgorithmTypeSpecified
2288{
2289get
2290{
2291return this.cryptAlgorithmTypeFieldSpecified;
2292}
2293set
2294{
2295this.cryptAlgorithmTypeFieldSpecified = value;
2296}
2297}
2298
2299[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2300public string cryptAlgorithmSid
2301{
2302get
2303{
2304return this.cryptAlgorithmSidField;
2305}
2306set
2307{
2308this.cryptAlgorithmSidField = value;
2309}
2310}
2311
2312[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2313public string cryptSpinCount
2314{
2315get
2316{
2317return this.cryptSpinCountField;
2318}
2319set
2320{
2321this.cryptSpinCountField = value;
2322}
2323}
2324
2325[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2326public string cryptProvider
2327{
2328get
2329{
2330return this.cryptProviderField;
2331}
2332set
2333{
2334this.cryptProviderField = value;
2335}
2336}
2337
2338[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
2339public byte[] algIdExt
2340{
2341get
2342{
2343return this.algIdExtField;
2344}
2345set
2346{
2347this.algIdExtField = value;
2348}
2349}
2350
2351[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2352public string algIdExtSource
2353{
2354get
2355{
2356return this.algIdExtSourceField;
2357}
2358set
2359{
2360this.algIdExtSourceField = value;
2361}
2362}
2363
2364[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
2365public byte[] cryptProviderTypeExt
2366{
2367get
2368{
2369return this.cryptProviderTypeExtField;
2370}
2371set
2372{
2373this.cryptProviderTypeExtField = value;
2374}
2375}
2376
2377[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2378public string cryptProviderTypeExtSource
2379{
2380get
2381{
2382return this.cryptProviderTypeExtSourceField;
2383}
2384set
2385{
2386this.cryptProviderTypeExtSourceField = value;
2387}
2388}
2389
2390[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
2391public byte[] hash
2392{
2393get
2394{
2395return this.hashField;
2396}
2397set
2398{
2399this.hashField = value;
2400}
2401}
2402
2403[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
2404public byte[] salt
2405{
2406get
2407{
2408return this.saltField;
2409}
2410set
2411{
2412this.saltField = value;
2413}
2414}
2415}
2416
2417
2418[Serializable]
2419[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2420public enum ST_CryptProv
2421{
2422
2423
2424rsaAES,
2425
2426
2427rsaFull,
2428}
2429
2430
2431[Serializable]
2432[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2433public enum ST_AlgClass
2434{
2435
2436
2437hash,
2438}
2439
2440
2441[Serializable]
2442[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2443public enum ST_AlgType
2444{
2445
2446
2447typeAny,
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)]
2455public class CT_View
2456{
2457
2458private ST_View valField;
2459public static CT_View Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2460{
2461if (node == null)
2462return null;
2463CT_View ctObj = new CT_View();
2464if (node.Attributes["w:val"] != null)
2465ctObj.val = (ST_View)Enum.Parse(typeof(ST_View), node.Attributes["w:val"].Value);
2466return ctObj;
2467}
2468
2469
2470
2471internal void Write(StreamWriter sw, string nodeName)
2472{
2473sw.Write(string.Format("<w:{0}", nodeName));
2474XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2475sw.Write(">");
2476sw.WriteEndW(nodeName);
2477}
2478
2479[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2480public ST_View val
2481{
2482get
2483{
2484return this.valField;
2485}
2486set
2487{
2488this.valField = value;
2489}
2490}
2491}
2492
2493
2494[Serializable]
2495[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2496public enum ST_View
2497{
2498
2499
2500none,
2501
2502
2503print,
2504
2505
2506outline,
2507
2508
2509masterPages,
2510
2511
2512normal,
2513
2514
2515web,
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)]
2523public class CT_Zoom
2524{
2525public CT_Zoom()
2526{
2527valField = ST_Zoom.none;
2528percent = "100";
2529}
2530public static CT_Zoom Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2531{
2532if (node == null)
2533return null;
2534CT_Zoom ctObj = new CT_Zoom();
2535if (node.Attributes["w:val"] != null)
2536ctObj.val = (ST_Zoom)Enum.Parse(typeof(ST_Zoom), node.Attributes["w:val"].Value);
2537ctObj.percent = XmlHelper.ReadString(node.Attributes["w:percent"]);
2538return ctObj;
2539}
2540
2541
2542
2543internal void Write(StreamWriter sw, string nodeName)
2544{
2545sw.Write(string.Format("<w:{0}", nodeName));
2546if (this.val!= ST_Zoom.none)
2547XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2548XmlHelper.WriteAttribute(sw, "w:percent", this.percent);
2549sw.Write("/>");
2550}
2551
2552private ST_Zoom valField;
2553
2554private bool valFieldSpecified;
2555
2556private string percentField;
2557
2558[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2559public ST_Zoom val
2560{
2561get
2562{
2563return this.valField;
2564}
2565set
2566{
2567this.valField = value;
2568}
2569}
2570
2571[XmlIgnore]
2572public bool valSpecified
2573{
2574get
2575{
2576return this.valFieldSpecified;
2577}
2578set
2579{
2580this.valFieldSpecified = value;
2581}
2582}
2583
2584[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2585public string percent
2586{
2587get
2588{
2589return this.percentField;
2590}
2591set
2592{
2593this.percentField = value;
2594}
2595}
2596}
2597
2598
2599[Serializable]
2600[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2601public enum ST_Zoom
2602{
2603
2604
2605none,
2606
2607
2608fullPage,
2609
2610
2611bestFit,
2612
2613
2614textFit,
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)]
2622public class CT_WritingStyle
2623{
2624
2625private string langField;
2626
2627private string vendorIDField;
2628
2629private string dllVersionField;
2630
2631private ST_OnOff nlCheckField;
2632
2633private bool nlCheckFieldSpecified;
2634
2635private ST_OnOff checkStyleField;
2636
2637private string appNameField;
2638public static CT_WritingStyle Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2639{
2640if (node == null)
2641return null;
2642CT_WritingStyle ctObj = new CT_WritingStyle();
2643ctObj.lang = XmlHelper.ReadString(node.Attributes["w:lang"]);
2644ctObj.vendorID = XmlHelper.ReadString(node.Attributes["w:vendorID"]);
2645ctObj.dllVersion = XmlHelper.ReadString(node.Attributes["w:dllVersion"]);
2646if (node.Attributes["w:nlCheck"] != null)
2647ctObj.nlCheck = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:nlCheck"].Value,true);
2648if (node.Attributes["w:checkStyle"] != null)
2649ctObj.checkStyle = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:checkStyle"].Value,true);
2650ctObj.appName = XmlHelper.ReadString(node.Attributes["w:appName"]);
2651return ctObj;
2652}
2653
2654
2655
2656internal void Write(StreamWriter sw, string nodeName)
2657{
2658sw.Write(string.Format("<w:{0}", nodeName));
2659XmlHelper.WriteAttribute(sw, "w:lang", this.lang);
2660XmlHelper.WriteAttribute(sw, "w:vendorID", this.vendorID);
2661XmlHelper.WriteAttribute(sw, "w:dllVersion", this.dllVersion);
2662XmlHelper.WriteAttribute(sw, "w:nlCheck", this.nlCheck.ToString());
2663XmlHelper.WriteAttribute(sw, "w:checkStyle", this.checkStyle.ToString());
2664XmlHelper.WriteAttribute(sw, "w:appName", this.appName);
2665sw.Write(">");
2666sw.WriteEndW(nodeName);
2667}
2668
2669[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2670public string lang
2671{
2672get
2673{
2674return this.langField;
2675}
2676set
2677{
2678this.langField = value;
2679}
2680}
2681
2682[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2683public string vendorID
2684{
2685get
2686{
2687return this.vendorIDField;
2688}
2689set
2690{
2691this.vendorIDField = value;
2692}
2693}
2694
2695[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
2696public string dllVersion
2697{
2698get
2699{
2700return this.dllVersionField;
2701}
2702set
2703{
2704this.dllVersionField = value;
2705}
2706}
2707
2708[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2709public ST_OnOff nlCheck
2710{
2711get
2712{
2713return this.nlCheckField;
2714}
2715set
2716{
2717this.nlCheckField = value;
2718}
2719}
2720
2721[XmlIgnore]
2722public bool nlCheckSpecified
2723{
2724get
2725{
2726return this.nlCheckFieldSpecified;
2727}
2728set
2729{
2730this.nlCheckFieldSpecified = value;
2731}
2732}
2733
2734[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2735public ST_OnOff checkStyle
2736{
2737get
2738{
2739return this.checkStyleField;
2740}
2741set
2742{
2743this.checkStyleField = value;
2744}
2745}
2746
2747[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2748public string appName
2749{
2750get
2751{
2752return this.appNameField;
2753}
2754set
2755{
2756this.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)]
2766public class CT_Proof
2767{
2768
2769private ST_Proof spellingField;
2770
2771private bool spellingFieldSpecified;
2772
2773private ST_Proof grammarField;
2774
2775private bool grammarFieldSpecified;
2776public static CT_Proof Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2777{
2778if (node == null)
2779return null;
2780CT_Proof ctObj = new CT_Proof();
2781if (node.Attributes["w:spelling"] != null)
2782ctObj.spelling = (ST_Proof)Enum.Parse(typeof(ST_Proof), node.Attributes["w:spelling"].Value);
2783if (node.Attributes["w:grammar"] != null)
2784ctObj.grammar = (ST_Proof)Enum.Parse(typeof(ST_Proof), node.Attributes["w:grammar"].Value);
2785return ctObj;
2786}
2787
2788
2789
2790internal void Write(StreamWriter sw, string nodeName)
2791{
2792sw.Write(string.Format("<w:{0}", nodeName));
2793XmlHelper.WriteAttribute(sw, "w:spelling", this.spelling.ToString());
2794XmlHelper.WriteAttribute(sw, "w:grammar", this.grammar.ToString());
2795sw.Write(">");
2796sw.WriteEndW(nodeName);
2797}
2798
2799[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2800public ST_Proof spelling
2801{
2802get
2803{
2804return this.spellingField;
2805}
2806set
2807{
2808this.spellingField = value;
2809}
2810}
2811
2812[XmlIgnore]
2813public bool spellingSpecified
2814{
2815get
2816{
2817return this.spellingFieldSpecified;
2818}
2819set
2820{
2821this.spellingFieldSpecified = value;
2822}
2823}
2824
2825[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2826public ST_Proof grammar
2827{
2828get
2829{
2830return this.grammarField;
2831}
2832set
2833{
2834this.grammarField = value;
2835}
2836}
2837
2838[XmlIgnore]
2839public bool grammarSpecified
2840{
2841get
2842{
2843return this.grammarFieldSpecified;
2844}
2845set
2846{
2847this.grammarFieldSpecified = value;
2848}
2849}
2850}
2851
2852
2853[Serializable]
2854[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2855public enum ST_Proof
2856{
2857
2858
2859clean,
2860
2861
2862dirty,
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)]
2870public class CT_DocType
2871{
2872
2873private ST_DocType valField;
2874public static CT_DocType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2875{
2876if (node == null)
2877return null;
2878CT_DocType ctObj = new CT_DocType();
2879if (node.Attributes["w:val"] != null)
2880ctObj.val = (ST_DocType)Enum.Parse(typeof(ST_DocType), node.Attributes["w:val"].Value);
2881return ctObj;
2882}
2883
2884
2885
2886internal void Write(StreamWriter sw, string nodeName)
2887{
2888sw.Write(string.Format("<w:{0}", nodeName));
2889XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
2890sw.Write(">");
2891sw.WriteEndW(nodeName);
2892}
2893
2894[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
2895public ST_DocType val
2896{
2897get
2898{
2899return this.valField;
2900}
2901set
2902{
2903this.valField = value;
2904}
2905}
2906}
2907
2908
2909[Serializable]
2910[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
2911public enum ST_DocType
2912{
2913
2914
2915notSpecified,
2916
2917
2918letter,
2919
2920
2921eMail,
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)]
2929public class CT_MailMerge
2930{
2931
2932private CT_MailMergeDocType mainDocumentTypeField;
2933
2934private CT_OnOff linkToQueryField;
2935
2936private CT_MailMergeDataType dataTypeField;
2937
2938private CT_String connectStringField;
2939
2940private CT_String queryField;
2941
2942private CT_Rel dataSourceField;
2943
2944private CT_Rel headerSourceField;
2945
2946private CT_OnOff doNotSuppressBlankLinesField;
2947
2948private CT_MailMergeDest destinationField;
2949
2950private CT_String addressFieldNameField;
2951
2952private CT_String mailSubjectField;
2953
2954private CT_OnOff mailAsAttachmentField;
2955
2956private CT_OnOff viewMergedDataField;
2957
2958private CT_DecimalNumber activeRecordField;
2959
2960private CT_DecimalNumber checkErrorsField;
2961
2962private CT_Odso odsoField;
2963public static CT_MailMerge Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2964{
2965if (node == null)
2966return null;
2967CT_MailMerge ctObj = new CT_MailMerge();
2968foreach (XmlNode childNode in node.ChildNodes)
2969{
2970if (childNode.LocalName == "mainDocumentType")
2971ctObj.mainDocumentType = CT_MailMergeDocType.Parse(childNode, namespaceManager);
2972else if (childNode.LocalName == "linkToQuery")
2973ctObj.linkToQuery = CT_OnOff.Parse(childNode, namespaceManager);
2974else if (childNode.LocalName == "dataType")
2975ctObj.dataType = CT_MailMergeDataType.Parse(childNode, namespaceManager);
2976else if (childNode.LocalName == "connectString")
2977ctObj.connectString = CT_String.Parse(childNode, namespaceManager);
2978else if (childNode.LocalName == "query")
2979ctObj.query = CT_String.Parse(childNode, namespaceManager);
2980else if (childNode.LocalName == "dataSource")
2981ctObj.dataSource = CT_Rel.Parse(childNode, namespaceManager);
2982else if (childNode.LocalName == "headerSource")
2983ctObj.headerSource = CT_Rel.Parse(childNode, namespaceManager);
2984else if (childNode.LocalName == "doNotSuppressBlankLines")
2985ctObj.doNotSuppressBlankLines = CT_OnOff.Parse(childNode, namespaceManager);
2986else if (childNode.LocalName == "destination")
2987ctObj.destination = CT_MailMergeDest.Parse(childNode, namespaceManager);
2988else if (childNode.LocalName == "addressFieldName")
2989ctObj.addressFieldName = CT_String.Parse(childNode, namespaceManager);
2990else if (childNode.LocalName == "mailSubject")
2991ctObj.mailSubject = CT_String.Parse(childNode, namespaceManager);
2992else if (childNode.LocalName == "mailAsAttachment")
2993ctObj.mailAsAttachment = CT_OnOff.Parse(childNode, namespaceManager);
2994else if (childNode.LocalName == "viewMergedData")
2995ctObj.viewMergedData = CT_OnOff.Parse(childNode, namespaceManager);
2996else if (childNode.LocalName == "activeRecord")
2997ctObj.activeRecord = CT_DecimalNumber.Parse(childNode, namespaceManager);
2998else if (childNode.LocalName == "checkErrors")
2999ctObj.checkErrors = CT_DecimalNumber.Parse(childNode, namespaceManager);
3000else if (childNode.LocalName == "odso")
3001ctObj.odso = CT_Odso.Parse(childNode, namespaceManager);
3002}
3003return ctObj;
3004}
3005
3006
3007
3008internal void Write(StreamWriter sw, string nodeName)
3009{
3010sw.Write(string.Format("<w:{0}", nodeName));
3011sw.Write(">");
3012if (this.mainDocumentType != null)
3013this.mainDocumentType.Write(sw, "mainDocumentType");
3014if (this.linkToQuery != null)
3015this.linkToQuery.Write(sw, "linkToQuery");
3016if (this.dataType != null)
3017this.dataType.Write(sw, "dataType");
3018if (this.connectString != null)
3019this.connectString.Write(sw, "connectString");
3020if (this.query != null)
3021this.query.Write(sw, "query");
3022if (this.dataSource != null)
3023this.dataSource.Write(sw, "dataSource");
3024if (this.headerSource != null)
3025this.headerSource.Write(sw, "headerSource");
3026if (this.doNotSuppressBlankLines != null)
3027this.doNotSuppressBlankLines.Write(sw, "doNotSuppressBlankLines");
3028if (this.destination != null)
3029this.destination.Write(sw, "destination");
3030if (this.addressFieldName != null)
3031this.addressFieldName.Write(sw, "addressFieldName");
3032if (this.mailSubject != null)
3033this.mailSubject.Write(sw, "mailSubject");
3034if (this.mailAsAttachment != null)
3035this.mailAsAttachment.Write(sw, "mailAsAttachment");
3036if (this.viewMergedData != null)
3037this.viewMergedData.Write(sw, "viewMergedData");
3038if (this.activeRecord != null)
3039this.activeRecord.Write(sw, "activeRecord");
3040if (this.checkErrors != null)
3041this.checkErrors.Write(sw, "checkErrors");
3042if (this.odso != null)
3043this.odso.Write(sw, "odso");
3044sw.WriteEndW(nodeName);
3045}
3046
3047public 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)]
3068public CT_MailMergeDocType mainDocumentType
3069{
3070get
3071{
3072return this.mainDocumentTypeField;
3073}
3074set
3075{
3076this.mainDocumentTypeField = value;
3077}
3078}
3079
3080[XmlElement(Order = 1)]
3081public CT_OnOff linkToQuery
3082{
3083get
3084{
3085return this.linkToQueryField;
3086}
3087set
3088{
3089this.linkToQueryField = value;
3090}
3091}
3092
3093[XmlElement(Order = 2)]
3094public CT_MailMergeDataType dataType
3095{
3096get
3097{
3098return this.dataTypeField;
3099}
3100set
3101{
3102this.dataTypeField = value;
3103}
3104}
3105
3106[XmlElement(Order = 3)]
3107public CT_String connectString
3108{
3109get
3110{
3111return this.connectStringField;
3112}
3113set
3114{
3115this.connectStringField = value;
3116}
3117}
3118
3119[XmlElement(Order = 4)]
3120public CT_String query
3121{
3122get
3123{
3124return this.queryField;
3125}
3126set
3127{
3128this.queryField = value;
3129}
3130}
3131
3132[XmlElement(Order = 5)]
3133public CT_Rel dataSource
3134{
3135get
3136{
3137return this.dataSourceField;
3138}
3139set
3140{
3141this.dataSourceField = value;
3142}
3143}
3144
3145[XmlElement(Order = 6)]
3146public CT_Rel headerSource
3147{
3148get
3149{
3150return this.headerSourceField;
3151}
3152set
3153{
3154this.headerSourceField = value;
3155}
3156}
3157
3158[XmlElement(Order = 7)]
3159public CT_OnOff doNotSuppressBlankLines
3160{
3161get
3162{
3163return this.doNotSuppressBlankLinesField;
3164}
3165set
3166{
3167this.doNotSuppressBlankLinesField = value;
3168}
3169}
3170
3171[XmlElement(Order = 8)]
3172public CT_MailMergeDest destination
3173{
3174get
3175{
3176return this.destinationField;
3177}
3178set
3179{
3180this.destinationField = value;
3181}
3182}
3183
3184[XmlElement(Order = 9)]
3185public CT_String addressFieldName
3186{
3187get
3188{
3189return this.addressFieldNameField;
3190}
3191set
3192{
3193this.addressFieldNameField = value;
3194}
3195}
3196
3197[XmlElement(Order = 10)]
3198public CT_String mailSubject
3199{
3200get
3201{
3202return this.mailSubjectField;
3203}
3204set
3205{
3206this.mailSubjectField = value;
3207}
3208}
3209
3210[XmlElement(Order = 11)]
3211public CT_OnOff mailAsAttachment
3212{
3213get
3214{
3215return this.mailAsAttachmentField;
3216}
3217set
3218{
3219this.mailAsAttachmentField = value;
3220}
3221}
3222
3223[XmlElement(Order = 12)]
3224public CT_OnOff viewMergedData
3225{
3226get
3227{
3228return this.viewMergedDataField;
3229}
3230set
3231{
3232this.viewMergedDataField = value;
3233}
3234}
3235
3236[XmlElement(Order = 13)]
3237public CT_DecimalNumber activeRecord
3238{
3239get
3240{
3241return this.activeRecordField;
3242}
3243set
3244{
3245this.activeRecordField = value;
3246}
3247}
3248
3249[XmlElement(Order = 14)]
3250public CT_DecimalNumber checkErrors
3251{
3252get
3253{
3254return this.checkErrorsField;
3255}
3256set
3257{
3258this.checkErrorsField = value;
3259}
3260}
3261
3262[XmlElement(Order = 15)]
3263public CT_Odso odso
3264{
3265get
3266{
3267return this.odsoField;
3268}
3269set
3270{
3271this.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)]
3281public class CT_MailMergeDocType
3282{
3283
3284private ST_MailMergeDocType valField;
3285public static CT_MailMergeDocType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3286{
3287if (node == null)
3288return null;
3289CT_MailMergeDocType ctObj = new CT_MailMergeDocType();
3290if (node.Attributes["w:val"] != null)
3291ctObj.val = (ST_MailMergeDocType)Enum.Parse(typeof(ST_MailMergeDocType), node.Attributes["w:val"].Value);
3292return ctObj;
3293}
3294
3295
3296
3297internal void Write(StreamWriter sw, string nodeName)
3298{
3299sw.Write(string.Format("<w:{0}", nodeName));
3300XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3301sw.Write(">");
3302sw.WriteEndW(nodeName);
3303}
3304
3305[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3306public ST_MailMergeDocType val
3307{
3308get
3309{
3310return this.valField;
3311}
3312set
3313{
3314this.valField = value;
3315}
3316}
3317}
3318
3319
3320[Serializable]
3321[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3322public enum ST_MailMergeDocType
3323{
3324
3325
3326catalog,
3327
3328
3329envelopes,
3330
3331
3332mailingLabels,
3333
3334
3335formLetters,
3336
3337
3338email,
3339
3340
3341fax,
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)]
3349public class CT_MailMergeDataType
3350{
3351
3352private ST_MailMergeDataType valField;
3353public static CT_MailMergeDataType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3354{
3355if (node == null)
3356return null;
3357CT_MailMergeDataType ctObj = new CT_MailMergeDataType();
3358if (node.Attributes["w:val"] != null)
3359ctObj.val = (ST_MailMergeDataType)Enum.Parse(typeof(ST_MailMergeDataType), node.Attributes["w:val"].Value);
3360return ctObj;
3361}
3362
3363
3364
3365internal void Write(StreamWriter sw, string nodeName)
3366{
3367sw.Write(string.Format("<w:{0}", nodeName));
3368XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3369sw.Write(">");
3370sw.WriteEndW(nodeName);
3371}
3372
3373[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3374public ST_MailMergeDataType val
3375{
3376get
3377{
3378return this.valField;
3379}
3380set
3381{
3382this.valField = value;
3383}
3384}
3385}
3386
3387
3388[Serializable]
3389[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3390public enum ST_MailMergeDataType
3391{
3392
3393
3394textFile,
3395
3396
3397database,
3398
3399
3400spreadsheet,
3401
3402
3403query,
3404
3405
3406odbc,
3407
3408
3409native,
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)]
3417public class CT_MailMergeDest
3418{
3419
3420private ST_MailMergeDest valField;
3421public static CT_MailMergeDest Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3422{
3423if (node == null)
3424return null;
3425CT_MailMergeDest ctObj = new CT_MailMergeDest();
3426if (node.Attributes["w:val"] != null)
3427ctObj.val = (ST_MailMergeDest)Enum.Parse(typeof(ST_MailMergeDest), node.Attributes["w:val"].Value);
3428return ctObj;
3429}
3430
3431
3432
3433internal void Write(StreamWriter sw, string nodeName)
3434{
3435sw.Write(string.Format("<w:{0}", nodeName));
3436XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3437sw.Write(">");
3438sw.WriteEndW(nodeName);
3439}
3440
3441[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3442public ST_MailMergeDest val
3443{
3444get
3445{
3446return this.valField;
3447}
3448set
3449{
3450this.valField = value;
3451}
3452}
3453}
3454
3455
3456[Serializable]
3457[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3458public enum ST_MailMergeDest
3459{
3460
3461
3462newDocument,
3463
3464
3465printer,
3466
3467
3468email,
3469
3470
3471fax,
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)]
3479public class CT_Odso
3480{
3481
3482private CT_String udlField;
3483
3484private CT_String tableField;
3485
3486private CT_Rel srcField;
3487
3488private CT_DecimalNumber colDelimField;
3489
3490private CT_MailMergeSourceType typeField;
3491
3492private CT_OnOff fHdrField;
3493
3494private List<CT_OdsoFieldMapData> fieldMapDataField;
3495
3496private List<CT_Rel> recipientDataField;
3497
3498public 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}
3509public static CT_Odso Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3510{
3511if (node == null)
3512return null;
3513CT_Odso ctObj = new CT_Odso();
3514ctObj.fieldMapData = new List<CT_OdsoFieldMapData>();
3515ctObj.recipientData = new List<CT_Rel>();
3516foreach (XmlNode childNode in node.ChildNodes)
3517{
3518if (childNode.LocalName == "udl")
3519ctObj.udl = CT_String.Parse(childNode, namespaceManager);
3520else if (childNode.LocalName == "table")
3521ctObj.table = CT_String.Parse(childNode, namespaceManager);
3522else if (childNode.LocalName == "src")
3523ctObj.src = CT_Rel.Parse(childNode, namespaceManager);
3524else if (childNode.LocalName == "colDelim")
3525ctObj.colDelim = CT_DecimalNumber.Parse(childNode, namespaceManager);
3526else if (childNode.LocalName == "type")
3527ctObj.type = CT_MailMergeSourceType.Parse(childNode, namespaceManager);
3528else if (childNode.LocalName == "fHdr")
3529ctObj.fHdr = CT_OnOff.Parse(childNode, namespaceManager);
3530else if (childNode.LocalName == "fieldMapData")
3531ctObj.fieldMapData.Add(CT_OdsoFieldMapData.Parse(childNode, namespaceManager));
3532else if (childNode.LocalName == "recipientData")
3533ctObj.recipientData.Add(CT_Rel.Parse(childNode, namespaceManager));
3534}
3535return ctObj;
3536}
3537
3538
3539
3540internal void Write(StreamWriter sw, string nodeName)
3541{
3542sw.Write(string.Format("<w:{0}", nodeName));
3543sw.Write(">");
3544if (this.udl != null)
3545this.udl.Write(sw, "udl");
3546if (this.table != null)
3547this.table.Write(sw, "table");
3548if (this.src != null)
3549this.src.Write(sw, "src");
3550if (this.colDelim != null)
3551this.colDelim.Write(sw, "colDelim");
3552if (this.type != null)
3553this.type.Write(sw, "type");
3554if (this.fHdr != null)
3555this.fHdr.Write(sw, "fHdr");
3556if (this.fieldMapData != null)
3557{
3558foreach (CT_OdsoFieldMapData x in this.fieldMapData)
3559{
3560x.Write(sw, "fieldMapData");
3561}
3562}
3563if (this.recipientData != null)
3564{
3565foreach (CT_Rel x in this.recipientData)
3566{
3567x.Write(sw, "recipientData");
3568}
3569}
3570sw.WriteEndW(nodeName);
3571}
3572
3573
3574[XmlElement(Order = 0)]
3575public CT_String udl
3576{
3577get
3578{
3579return this.udlField;
3580}
3581set
3582{
3583this.udlField = value;
3584}
3585}
3586
3587[XmlElement(Order = 1)]
3588public CT_String table
3589{
3590get
3591{
3592return this.tableField;
3593}
3594set
3595{
3596this.tableField = value;
3597}
3598}
3599
3600[XmlElement(Order = 2)]
3601public CT_Rel src
3602{
3603get
3604{
3605return this.srcField;
3606}
3607set
3608{
3609this.srcField = value;
3610}
3611}
3612
3613[XmlElement(Order = 3)]
3614public CT_DecimalNumber colDelim
3615{
3616get
3617{
3618return this.colDelimField;
3619}
3620set
3621{
3622this.colDelimField = value;
3623}
3624}
3625
3626[XmlElement(Order = 4)]
3627public CT_MailMergeSourceType type
3628{
3629get
3630{
3631return this.typeField;
3632}
3633set
3634{
3635this.typeField = value;
3636}
3637}
3638
3639[XmlElement(Order = 5)]
3640public CT_OnOff fHdr
3641{
3642get
3643{
3644return this.fHdrField;
3645}
3646set
3647{
3648this.fHdrField = value;
3649}
3650}
3651
3652[XmlElement("fieldMapData", Order = 6)]
3653public List<CT_OdsoFieldMapData> fieldMapData
3654{
3655get
3656{
3657return this.fieldMapDataField;
3658}
3659set
3660{
3661this.fieldMapDataField = value;
3662}
3663}
3664
3665[XmlElement("recipientData", Order = 7)]
3666public List<CT_Rel> recipientData
3667{
3668get
3669{
3670return this.recipientDataField;
3671}
3672set
3673{
3674this.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)]
3684public class CT_MailMergeSourceType
3685{
3686
3687private ST_MailMergeSourceType valField;
3688public static CT_MailMergeSourceType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3689{
3690if (node == null)
3691return null;
3692CT_MailMergeSourceType ctObj = new CT_MailMergeSourceType();
3693if (node.Attributes["w:val"] != null)
3694ctObj.val = (ST_MailMergeSourceType)Enum.Parse(typeof(ST_MailMergeSourceType), node.Attributes["w:val"].Value);
3695return ctObj;
3696}
3697
3698
3699
3700internal void Write(StreamWriter sw, string nodeName)
3701{
3702sw.Write(string.Format("<w:{0}", nodeName));
3703XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3704sw.Write(">");
3705sw.WriteEndW(nodeName);
3706}
3707
3708[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3709public ST_MailMergeSourceType val
3710{
3711get
3712{
3713return this.valField;
3714}
3715set
3716{
3717this.valField = value;
3718}
3719}
3720}
3721
3722
3723[Serializable]
3724[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3725public enum ST_MailMergeSourceType
3726{
3727
3728
3729database,
3730
3731
3732addressBook,
3733
3734
3735document1,
3736
3737
3738document2,
3739
3740
3741text,
3742
3743
3744email,
3745
3746
3747native,
3748
3749
3750legacy,
3751
3752
3753master,
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)]
3761public class CT_OdsoFieldMapData
3762{
3763
3764private CT_MailMergeOdsoFMDFieldType typeField;
3765
3766private CT_String nameField;
3767
3768private CT_String mappedNameField;
3769
3770private CT_DecimalNumber columnField;
3771
3772private CT_Lang lidField;
3773
3774private CT_OnOff dynamicAddressField;
3775public static CT_OdsoFieldMapData Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3776{
3777if (node == null)
3778return null;
3779CT_OdsoFieldMapData ctObj = new CT_OdsoFieldMapData();
3780foreach (XmlNode childNode in node.ChildNodes)
3781{
3782if (childNode.LocalName == "type")
3783ctObj.type = CT_MailMergeOdsoFMDFieldType.Parse(childNode, namespaceManager);
3784else if (childNode.LocalName == "name")
3785ctObj.name = CT_String.Parse(childNode, namespaceManager);
3786else if (childNode.LocalName == "mappedName")
3787ctObj.mappedName = CT_String.Parse(childNode, namespaceManager);
3788else if (childNode.LocalName == "column")
3789ctObj.column = CT_DecimalNumber.Parse(childNode, namespaceManager);
3790else if (childNode.LocalName == "lid")
3791ctObj.lid = CT_Lang.Parse(childNode, namespaceManager);
3792else if (childNode.LocalName == "dynamicAddress")
3793ctObj.dynamicAddress = CT_OnOff.Parse(childNode, namespaceManager);
3794}
3795return ctObj;
3796}
3797
3798
3799
3800internal void Write(StreamWriter sw, string nodeName)
3801{
3802sw.Write(string.Format("<w:{0}", nodeName));
3803sw.Write(">");
3804if (this.type != null)
3805this.type.Write(sw, "type");
3806if (this.name != null)
3807this.name.Write(sw, "name");
3808if (this.mappedName != null)
3809this.mappedName.Write(sw, "mappedName");
3810if (this.column != null)
3811this.column.Write(sw, "column");
3812if (this.lid != null)
3813this.lid.Write(sw, "lid");
3814if (this.dynamicAddress != null)
3815this.dynamicAddress.Write(sw, "dynamicAddress");
3816sw.WriteEndW(nodeName);
3817}
3818
3819public 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)]
3830public CT_MailMergeOdsoFMDFieldType type
3831{
3832get
3833{
3834return this.typeField;
3835}
3836set
3837{
3838this.typeField = value;
3839}
3840}
3841
3842[XmlElement(Order = 1)]
3843public CT_String name
3844{
3845get
3846{
3847return this.nameField;
3848}
3849set
3850{
3851this.nameField = value;
3852}
3853}
3854
3855[XmlElement(Order = 2)]
3856public CT_String mappedName
3857{
3858get
3859{
3860return this.mappedNameField;
3861}
3862set
3863{
3864this.mappedNameField = value;
3865}
3866}
3867
3868[XmlElement(Order = 3)]
3869public CT_DecimalNumber column
3870{
3871get
3872{
3873return this.columnField;
3874}
3875set
3876{
3877this.columnField = value;
3878}
3879}
3880
3881[XmlElement(Order = 4)]
3882public CT_Lang lid
3883{
3884get
3885{
3886return this.lidField;
3887}
3888set
3889{
3890this.lidField = value;
3891}
3892}
3893
3894[XmlElement(Order = 5)]
3895public CT_OnOff dynamicAddress
3896{
3897get
3898{
3899return this.dynamicAddressField;
3900}
3901set
3902{
3903this.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)]
3913public class CT_MailMergeOdsoFMDFieldType
3914{
3915
3916private ST_MailMergeOdsoFMDFieldType valField;
3917public static CT_MailMergeOdsoFMDFieldType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3918{
3919if (node == null)
3920return null;
3921CT_MailMergeOdsoFMDFieldType ctObj = new CT_MailMergeOdsoFMDFieldType();
3922if (node.Attributes["w:val"] != null)
3923ctObj.val = (ST_MailMergeOdsoFMDFieldType)Enum.Parse(typeof(ST_MailMergeOdsoFMDFieldType), node.Attributes["w:val"].Value);
3924return ctObj;
3925}
3926
3927
3928
3929internal void Write(StreamWriter sw, string nodeName)
3930{
3931sw.Write(string.Format("<w:{0}", nodeName));
3932XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
3933sw.Write(">");
3934sw.WriteEndW(nodeName);
3935}
3936
3937[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
3938public ST_MailMergeOdsoFMDFieldType val
3939{
3940get
3941{
3942return this.valField;
3943}
3944set
3945{
3946this.valField = value;
3947}
3948}
3949}
3950
3951
3952[Serializable]
3953[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
3954public enum ST_MailMergeOdsoFMDFieldType
3955{
3956
3957
3958@null,
3959
3960
3961dbColumn,
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)]
3972public class CT_TrackChangesView
3973{
3974
3975private ST_OnOff markupField;
3976
3977private bool markupFieldSpecified;
3978
3979private ST_OnOff commentsField;
3980
3981private bool commentsFieldSpecified;
3982
3983private ST_OnOff insDelField;
3984
3985private bool insDelFieldSpecified;
3986
3987private ST_OnOff formattingField;
3988
3989private bool formattingFieldSpecified;
3990
3991private ST_OnOff inkAnnotationsField;
3992
3993private bool inkAnnotationsFieldSpecified;
3994public static CT_TrackChangesView Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3995{
3996if (node == null)
3997return null;
3998CT_TrackChangesView ctObj = new CT_TrackChangesView();
3999if (node.Attributes["w:markup"] != null)
4000ctObj.markup = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:markup"].Value,true);
4001if (node.Attributes["w:comments"] != null)
4002ctObj.comments = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:comments"].Value,true);
4003if (node.Attributes["w:insDel"] != null)
4004ctObj.insDel = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:insDel"].Value,true);
4005if (node.Attributes["w:formatting"] != null)
4006ctObj.formatting = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:formatting"].Value,true);
4007if (node.Attributes["w:inkAnnotations"] != null)
4008ctObj.inkAnnotations = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:inkAnnotations"].Value,true);
4009return ctObj;
4010}
4011
4012
4013
4014internal void Write(StreamWriter sw, string nodeName)
4015{
4016sw.Write(string.Format("<w:{0}", nodeName));
4017XmlHelper.WriteAttribute(sw, "w:markup", this.markup.ToString());
4018XmlHelper.WriteAttribute(sw, "w:comments", this.comments.ToString());
4019XmlHelper.WriteAttribute(sw, "w:insDel", this.insDel.ToString());
4020XmlHelper.WriteAttribute(sw, "w:formatting", this.formatting.ToString());
4021XmlHelper.WriteAttribute(sw, "w:inkAnnotations", this.inkAnnotations.ToString());
4022sw.Write(">");
4023sw.WriteEndW(nodeName);
4024}
4025
4026[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4027public ST_OnOff markup
4028{
4029get
4030{
4031return this.markupField;
4032}
4033set
4034{
4035this.markupField = value;
4036}
4037}
4038
4039[XmlIgnore]
4040public bool markupSpecified
4041{
4042get
4043{
4044return this.markupFieldSpecified;
4045}
4046set
4047{
4048this.markupFieldSpecified = value;
4049}
4050}
4051
4052[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4053public ST_OnOff comments
4054{
4055get
4056{
4057return this.commentsField;
4058}
4059set
4060{
4061this.commentsField = value;
4062}
4063}
4064
4065[XmlIgnore]
4066public bool commentsSpecified
4067{
4068get
4069{
4070return this.commentsFieldSpecified;
4071}
4072set
4073{
4074this.commentsFieldSpecified = value;
4075}
4076}
4077
4078[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4079public ST_OnOff insDel
4080{
4081get
4082{
4083return this.insDelField;
4084}
4085set
4086{
4087this.insDelField = value;
4088}
4089}
4090
4091[XmlIgnore]
4092public bool insDelSpecified
4093{
4094get
4095{
4096return this.insDelFieldSpecified;
4097}
4098set
4099{
4100this.insDelFieldSpecified = value;
4101}
4102}
4103
4104[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4105public ST_OnOff formatting
4106{
4107get
4108{
4109return this.formattingField;
4110}
4111set
4112{
4113this.formattingField = value;
4114}
4115}
4116
4117[XmlIgnore]
4118public bool formattingSpecified
4119{
4120get
4121{
4122return this.formattingFieldSpecified;
4123}
4124set
4125{
4126this.formattingFieldSpecified = value;
4127}
4128}
4129
4130[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4131public ST_OnOff inkAnnotations
4132{
4133get
4134{
4135return this.inkAnnotationsField;
4136}
4137set
4138{
4139this.inkAnnotationsField = value;
4140}
4141}
4142
4143[XmlIgnore]
4144public bool inkAnnotationsSpecified
4145{
4146get
4147{
4148return this.inkAnnotationsFieldSpecified;
4149}
4150set
4151{
4152this.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)]
4162public class CT_DocProtect
4163{
4164
4165private ST_DocProtect editField;
4166
4167private bool editFieldSpecified;
4168
4169private ST_OnOff formattingField;
4170
4171private bool formattingFieldSpecified;
4172
4173private ST_OnOff enforcementField;
4174
4175private bool enforcementFieldSpecified;
4176
4177private ST_CryptProv? cryptProviderTypeField;
4178
4179private bool cryptProviderTypeFieldSpecified;
4180
4181private ST_AlgClass? cryptAlgorithmClassField;
4182
4183private bool cryptAlgorithmClassFieldSpecified;
4184
4185private ST_AlgType? cryptAlgorithmTypeField;
4186
4187private bool cryptAlgorithmTypeFieldSpecified;
4188
4189private string cryptAlgorithmSidField;
4190
4191private string cryptSpinCountField;
4192
4193private string cryptProviderField;
4194
4195private byte[] algIdExtField;
4196
4197private string algIdExtSourceField;
4198
4199private byte[] cryptProviderTypeExtField;
4200
4201private string cryptProviderTypeExtSourceField;
4202
4203private string hashField;
4204
4205private string saltField;
4206public static CT_DocProtect Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4207{
4208if (node == null)
4209return null;
4210CT_DocProtect ctObj = new CT_DocProtect();
4211if (node.Attributes["w:edit"] != null)
4212ctObj.edit = (ST_DocProtect)Enum.Parse(typeof(ST_DocProtect), node.Attributes["w:edit"].Value);
4213if (node.Attributes["w:formatting"] != null)
4214ctObj.formatting = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:formatting"].Value,true);
4215if (node.Attributes["w:enforcement"] != null)
4216ctObj.enforcement = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:enforcement"].Value,true);
4217if (node.Attributes["w:cryptProviderType"] != null)
4218ctObj.cryptProviderType = (ST_CryptProv)Enum.Parse(typeof(ST_CryptProv), node.Attributes["w:cryptProviderType"].Value);
4219if (node.Attributes["w:cryptAlgorithmClass"] != null)
4220ctObj.cryptAlgorithmClass = (ST_AlgClass)Enum.Parse(typeof(ST_AlgClass), node.Attributes["w:cryptAlgorithmClass"].Value);
4221if (node.Attributes["w:cryptAlgorithmType"] != null)
4222ctObj.cryptAlgorithmType = (ST_AlgType)Enum.Parse(typeof(ST_AlgType), node.Attributes["w:cryptAlgorithmType"].Value);
4223ctObj.cryptAlgorithmSid = XmlHelper.ReadString(node.Attributes["w:cryptAlgorithmSid"]);
4224ctObj.cryptSpinCount = XmlHelper.ReadString(node.Attributes["w:cryptSpinCount"]);
4225ctObj.cryptProvider = XmlHelper.ReadString(node.Attributes["w:cryptProvider"]);
4226ctObj.algIdExt = XmlHelper.ReadBytes(node.Attributes["w:algIdExt"]);
4227ctObj.algIdExtSource = XmlHelper.ReadString(node.Attributes["w:algIdExtSource"]);
4228ctObj.cryptProviderTypeExt = XmlHelper.ReadBytes(node.Attributes["w:cryptProviderTypeExt"]);
4229ctObj.cryptProviderTypeExtSource = XmlHelper.ReadString(node.Attributes["w:cryptProviderTypeExtSource"]);
4230ctObj.hash = XmlHelper.ReadString(node.Attributes["w:hash"]);
4231ctObj.salt = XmlHelper.ReadString(node.Attributes["w:salt"]);
4232return ctObj;
4233}
4234
4235
4236
4237internal void Write(StreamWriter sw, string nodeName)
4238{
4239sw.Write(string.Format("<w:{0}", nodeName));
4240XmlHelper.WriteAttribute(sw, "w:edit", this.edit.ToString());
4241XmlHelper.WriteAttribute(sw, "w:formatting", this.formatting.ToString());
4242XmlHelper.WriteAttribute(sw, "w:enforcement", this.enforcement.ToString());
4243if (this.cryptProviderType != null)
4244XmlHelper.WriteAttribute(sw, "w:cryptProviderType", this.cryptProviderType.ToString());
4245if (this.cryptAlgorithmClass != null)
4246XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmClass", this.cryptAlgorithmClass.ToString());
4247if (this.cryptAlgorithmType != null)
4248XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmType", this.cryptAlgorithmType.ToString());
4249XmlHelper.WriteAttribute(sw, "w:cryptAlgorithmSid", this.cryptAlgorithmSid);
4250XmlHelper.WriteAttribute(sw, "w:cryptSpinCount", this.cryptSpinCount);
4251XmlHelper.WriteAttribute(sw, "w:cryptProvider", this.cryptProvider);
4252XmlHelper.WriteAttribute(sw, "w:algIdExt", this.algIdExt);
4253XmlHelper.WriteAttribute(sw, "w:algIdExtSource", this.algIdExtSource);
4254XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExt", this.cryptProviderTypeExt);
4255XmlHelper.WriteAttribute(sw, "w:cryptProviderTypeExtSource", this.cryptProviderTypeExtSource);
4256XmlHelper.WriteAttribute(sw, "w:hash", this.hash);
4257XmlHelper.WriteAttribute(sw, "w:salt", this.salt);
4258sw.Write("/>");
4259}
4260
4261[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4262public ST_DocProtect edit
4263{
4264get
4265{
4266return this.editField;
4267}
4268set
4269{
4270this.editField = value;
4271}
4272}
4273
4274[XmlIgnore]
4275public bool editSpecified
4276{
4277get
4278{
4279return this.editField != ST_DocProtect.none;
4280//return this.editFieldSpecified;
4281}
4282set
4283{
4284this.editFieldSpecified = value;
4285}
4286}
4287
4288[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4289public ST_OnOff formatting
4290{
4291get
4292{
4293return this.formattingField;
4294}
4295set
4296{
4297this.formattingField = value;
4298}
4299}
4300
4301[XmlIgnore]
4302public bool formattingSpecified
4303{
4304get
4305{
4306return this.formattingFieldSpecified;
4307}
4308set
4309{
4310this.formattingFieldSpecified = value;
4311}
4312}
4313
4314[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4315public ST_OnOff enforcement
4316{
4317get
4318{
4319return this.enforcementField;
4320}
4321set
4322{
4323this.enforcementField = value;
4324}
4325}
4326
4327[XmlIgnore]
4328public bool enforcementSpecified
4329{
4330get
4331{
4332return this.editField != ST_DocProtect.none;
4333//return this.enforcementFieldSpecified;
4334}
4335set
4336{
4337this.enforcementFieldSpecified = value;
4338}
4339}
4340
4341[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4342public ST_CryptProv? cryptProviderType
4343{
4344get
4345{
4346return this.cryptProviderTypeField;
4347}
4348set
4349{
4350this.cryptProviderTypeField = value;
4351}
4352}
4353
4354[XmlIgnore]
4355public bool cryptProviderTypeSpecified
4356{
4357get
4358{
4359return this.cryptProviderTypeFieldSpecified;
4360}
4361set
4362{
4363this.cryptProviderTypeFieldSpecified = value;
4364}
4365}
4366
4367[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4368public ST_AlgClass? cryptAlgorithmClass
4369{
4370get
4371{
4372return this.cryptAlgorithmClassField;
4373}
4374set
4375{
4376this.cryptAlgorithmClassField = value;
4377}
4378}
4379
4380[XmlIgnore]
4381public bool cryptAlgorithmClassSpecified
4382{
4383get
4384{
4385return this.cryptAlgorithmClassFieldSpecified;
4386}
4387set
4388{
4389this.cryptAlgorithmClassFieldSpecified = value;
4390}
4391}
4392
4393[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4394public ST_AlgType? cryptAlgorithmType
4395{
4396get
4397{
4398return this.cryptAlgorithmTypeField;
4399}
4400set
4401{
4402this.cryptAlgorithmTypeField = value;
4403}
4404}
4405
4406[XmlIgnore]
4407public bool cryptAlgorithmTypeSpecified
4408{
4409get
4410{
4411return this.cryptAlgorithmTypeFieldSpecified;
4412}
4413set
4414{
4415this.cryptAlgorithmTypeFieldSpecified = value;
4416}
4417}
4418
4419[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
4420public string cryptAlgorithmSid
4421{
4422get
4423{
4424return this.cryptAlgorithmSidField;
4425}
4426set
4427{
4428this.cryptAlgorithmSidField = value;
4429}
4430}
4431
4432[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
4433public string cryptSpinCount
4434{
4435get
4436{
4437return this.cryptSpinCountField;
4438}
4439set
4440{
4441this.cryptSpinCountField = value;
4442}
4443}
4444
4445[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4446public string cryptProvider
4447{
4448get
4449{
4450return this.cryptProviderField;
4451}
4452set
4453{
4454this.cryptProviderField = value;
4455}
4456}
4457
4458[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
4459public byte[] algIdExt
4460{
4461get
4462{
4463return this.algIdExtField;
4464}
4465set
4466{
4467this.algIdExtField = value;
4468}
4469}
4470
4471[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4472public string algIdExtSource
4473{
4474get
4475{
4476return this.algIdExtSourceField;
4477}
4478set
4479{
4480this.algIdExtSourceField = value;
4481}
4482}
4483
4484[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "hexBinary")]
4485public byte[] cryptProviderTypeExt
4486{
4487get
4488{
4489return this.cryptProviderTypeExtField;
4490}
4491set
4492{
4493this.cryptProviderTypeExtField = value;
4494}
4495}
4496
4497[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4498public string cryptProviderTypeExtSource
4499{
4500get
4501{
4502return this.cryptProviderTypeExtSourceField;
4503}
4504set
4505{
4506this.cryptProviderTypeExtSourceField = value;
4507}
4508}
4509
4510[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
4511public string hash
4512{
4513get
4514{
4515return this.hashField;
4516}
4517set
4518{
4519this.hashField = value;
4520}
4521}
4522
4523[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "base64Binary")]
4524public string salt
4525{
4526get
4527{
4528return this.saltField;
4529}
4530set
4531{
4532this.saltField = value;
4533}
4534}
4535
4536public bool IsSetCryptProviderType() => cryptProviderType != null;
4537public bool IsSetCryptAlgorithmClass() => cryptAlgorithmClass != null;
4538public bool IsSetCryptAlgorithmType() => cryptAlgorithmType != null;
4539public bool IsSetCryptAlgorithmSid() => !string.IsNullOrEmpty(cryptAlgorithmSid);
4540public bool IsSetCryptSpinCount() => !string.IsNullOrEmpty(cryptSpinCount);
4541public bool IsSetHash() => !string.IsNullOrEmpty(hash);
4542public bool IsSetSalt() => !string.IsNullOrEmpty(salt);
4543
4544public void UnsetCryptProviderType() => cryptProviderType = null;
4545public void UnsetCryptAlgorithmClass() => cryptAlgorithmClass = null;
4546public void UnsetCryptAlgorithmType() => cryptAlgorithmType = null;
4547public void UnsetCryptAlgorithmSid() => cryptAlgorithmSid = null;
4548public void UnsetCryptSpinCount() => cryptSpinCount = null;
4549public void UnsetHash() => hash = null;
4550public void UnsetSalt() => salt = null;
4551}
4552
4553
4554[Serializable]
4555[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4556public enum ST_DocProtect
4557{
4558
4559
4560none,
4561
4562
4563readOnly,
4564
4565
4566comments,
4567
4568
4569trackedChanges,
4570
4571
4572forms,
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)]
4582public class CT_CharacterSpacing
4583{
4584
4585private ST_CharacterSpacing valField;
4586public static CT_CharacterSpacing Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4587{
4588if (node == null)
4589return null;
4590CT_CharacterSpacing ctObj = new CT_CharacterSpacing();
4591if (node.Attributes["w:val"] != null)
4592ctObj.val = (ST_CharacterSpacing)Enum.Parse(typeof(ST_CharacterSpacing), node.Attributes["w:val"].Value);
4593return ctObj;
4594}
4595
4596
4597
4598internal void Write(StreamWriter sw, string nodeName)
4599{
4600sw.Write(string.Format("<w:{0}", nodeName));
4601XmlHelper.WriteAttribute(sw, "w:val", this.val.ToString());
4602sw.Write("/>");
4603}
4604
4605[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4606public ST_CharacterSpacing val
4607{
4608get
4609{
4610return this.valField;
4611}
4612set
4613{
4614this.valField = value;
4615}
4616}
4617}
4618
4619
4620[Serializable]
4621[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
4622public enum ST_CharacterSpacing
4623{
4624
4625
4626doNotCompress,
4627
4628
4629compressPunctuation,
4630
4631
4632compressPunctuationAndJapaneseKana,
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)]
4640public class CT_Kinsoku
4641{
4642
4643private string langField;
4644
4645private string valField;
4646public static CT_Kinsoku Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4647{
4648if (node == null)
4649return null;
4650CT_Kinsoku ctObj = new CT_Kinsoku();
4651ctObj.lang = XmlHelper.ReadString(node.Attributes["w:lang"]);
4652ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
4653return ctObj;
4654}
4655
4656
4657
4658internal void Write(StreamWriter sw, string nodeName)
4659{
4660sw.Write(string.Format("<w:{0}", nodeName));
4661XmlHelper.WriteAttribute(sw, "w:lang", this.lang);
4662XmlHelper.WriteAttribute(sw, "w:val", this.val);
4663sw.Write(">");
4664sw.WriteEndW(nodeName);
4665}
4666
4667[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4668public string lang
4669{
4670get
4671{
4672return this.langField;
4673}
4674set
4675{
4676this.langField = value;
4677}
4678}
4679
4680[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4681public string val
4682{
4683get
4684{
4685return this.valField;
4686}
4687set
4688{
4689this.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)]
4699public class CT_SaveThroughXslt
4700{
4701
4702private string idField;
4703
4704private string solutionIDField;
4705public static CT_SaveThroughXslt Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4706{
4707if (node == null)
4708return null;
4709CT_SaveThroughXslt ctObj = new CT_SaveThroughXslt();
4710ctObj.id = XmlHelper.ReadString(node.Attributes["r:id"]);
4711ctObj.solutionID = XmlHelper.ReadString(node.Attributes["w:solutionID"]);
4712return ctObj;
4713}
4714
4715
4716
4717internal void Write(StreamWriter sw, string nodeName)
4718{
4719sw.Write(string.Format("<w:{0}", nodeName));
4720XmlHelper.WriteAttribute(sw, "r:id", this.id);
4721XmlHelper.WriteAttribute(sw, "w:solutionID", this.solutionID);
4722sw.Write(">");
4723sw.WriteEndW(nodeName);
4724}
4725
4726[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]
4727public string id
4728{
4729get
4730{
4731return this.idField;
4732}
4733set
4734{
4735this.idField = value;
4736}
4737}
4738
4739[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
4740public string solutionID
4741{
4742get
4743{
4744return this.solutionIDField;
4745}
4746set
4747{
4748this.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)]
4758public class CT_Compat
4759{
4760
4761private CT_OnOff useSingleBorderforContiguousCellsField;
4762
4763private CT_OnOff wpJustificationField;
4764
4765private CT_OnOff noTabHangIndField;
4766
4767private CT_OnOff noLeadingField;
4768
4769private CT_OnOff spaceForULField;
4770
4771private CT_OnOff noColumnBalanceField;
4772
4773private CT_OnOff balanceSingleByteDoubleByteWidthField;
4774
4775private CT_OnOff noExtraLineSpacingField;
4776
4777private CT_OnOff doNotLeaveBackslashAloneField;
4778
4779private CT_OnOff ulTrailSpaceField;
4780
4781private CT_OnOff doNotExpandShiftReturnField;
4782
4783private CT_OnOff spacingInWholePointsField;
4784
4785private CT_OnOff lineWrapLikeWord6Field;
4786
4787private CT_OnOff printBodyTextBeforeHeaderField;
4788
4789private CT_OnOff printColBlackField;
4790
4791private CT_OnOff wpSpaceWidthField;
4792
4793private CT_OnOff showBreaksInFramesField;
4794
4795private CT_OnOff subFontBySizeField;
4796
4797private CT_OnOff suppressBottomSpacingField;
4798
4799private CT_OnOff suppressTopSpacingField;
4800
4801private CT_OnOff suppressSpacingAtTopOfPageField;
4802
4803private CT_OnOff suppressTopSpacingWPField;
4804
4805private CT_OnOff suppressSpBfAfterPgBrkField;
4806
4807private CT_OnOff swapBordersFacingPagesField;
4808
4809private CT_OnOff convMailMergeEscField;
4810
4811private CT_OnOff truncateFontHeightsLikeWP6Field;
4812
4813private CT_OnOff mwSmallCapsField;
4814
4815private CT_OnOff usePrinterMetricsField;
4816
4817private CT_OnOff doNotSuppressParagraphBordersField;
4818
4819private CT_OnOff wrapTrailSpacesField;
4820
4821private CT_OnOff footnoteLayoutLikeWW8Field;
4822
4823private CT_OnOff shapeLayoutLikeWW8Field;
4824
4825private CT_OnOff alignTablesRowByRowField;
4826
4827private CT_OnOff forgetLastTabAlignmentField;
4828
4829private CT_OnOff adjustLineHeightInTableField;
4830
4831private CT_OnOff autoSpaceLikeWord95Field;
4832
4833private CT_OnOff noSpaceRaiseLowerField;
4834
4835private CT_OnOff doNotUseHTMLParagraphAutoSpacingField;
4836
4837private CT_OnOff layoutRawTableWidthField;
4838
4839private CT_OnOff layoutTableRowsApartField;
4840
4841private CT_OnOff useWord97LineBreakRulesField;
4842
4843private CT_OnOff doNotBreakWrappedTablesField;
4844
4845private CT_OnOff doNotSnapToGridInCellField;
4846
4847private CT_OnOff selectFldWithFirstOrLastCharField;
4848
4849private CT_OnOff applyBreakingRulesField;
4850
4851private CT_OnOff doNotWrapTextWithPunctField;
4852
4853private CT_OnOff doNotUseEastAsianBreakRulesField;
4854
4855private CT_OnOff useWord2002TableStyleRulesField;
4856
4857private CT_OnOff growAutofitField;
4858
4859private CT_OnOff useFELayoutField;
4860
4861private CT_OnOff useNormalStyleForListField;
4862
4863private CT_OnOff doNotUseIndentAsNumberingTabStopField;
4864
4865private CT_OnOff useAltKinsokuLineBreakRulesField;
4866
4867private CT_OnOff allowSpaceOfSameStyleInTableField;
4868
4869private CT_OnOff doNotSuppressIndentationField;
4870
4871private CT_OnOff doNotAutofitConstrainedTablesField;
4872
4873private CT_OnOff autofitToFirstFixedWidthCellField;
4874
4875private CT_OnOff underlineTabInNumListField;
4876
4877private CT_OnOff displayHangulFixedWidthField;
4878
4879private CT_OnOff splitPgBreakAndParaMarkField;
4880
4881private CT_OnOff doNotVertAlignCellWithSpField;
4882
4883private CT_OnOff doNotBreakConstrainedForcedTableField;
4884
4885private CT_OnOff doNotVertAlignInTxbxField;
4886
4887private CT_OnOff useAnsiKerningPairsField;
4888
4889private CT_OnOff cachedColBalanceField;
4890public static CT_Compat Parse(XmlNode node, XmlNamespaceManager namespaceManager)
4891{
4892if (node == null)
4893return null;
4894CT_Compat ctObj = new CT_Compat();
4895foreach (XmlNode childNode in node.ChildNodes)
4896{
4897if (childNode.LocalName == "useSingleBorderforContiguousCells")
4898ctObj.useSingleBorderforContiguousCells = CT_OnOff.Parse(childNode, namespaceManager);
4899else if (childNode.LocalName == "wpJustification")
4900ctObj.wpJustification = CT_OnOff.Parse(childNode, namespaceManager);
4901else if (childNode.LocalName == "noTabHangInd")
4902ctObj.noTabHangInd = CT_OnOff.Parse(childNode, namespaceManager);
4903else if (childNode.LocalName == "noLeading")
4904ctObj.noLeading = CT_OnOff.Parse(childNode, namespaceManager);
4905else if (childNode.LocalName == "spaceForUL")
4906ctObj.spaceForUL = CT_OnOff.Parse(childNode, namespaceManager);
4907else if (childNode.LocalName == "noColumnBalance")
4908ctObj.noColumnBalance = CT_OnOff.Parse(childNode, namespaceManager);
4909else if (childNode.LocalName == "balanceSingleByteDoubleByteWidth")
4910ctObj.balanceSingleByteDoubleByteWidth = CT_OnOff.Parse(childNode, namespaceManager);
4911else if (childNode.LocalName == "noExtraLineSpacing")
4912ctObj.noExtraLineSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4913else if (childNode.LocalName == "doNotLeaveBackslashAlone")
4914ctObj.doNotLeaveBackslashAlone = CT_OnOff.Parse(childNode, namespaceManager);
4915else if (childNode.LocalName == "ulTrailSpace")
4916ctObj.ulTrailSpace = CT_OnOff.Parse(childNode, namespaceManager);
4917else if (childNode.LocalName == "doNotExpandShiftReturn")
4918ctObj.doNotExpandShiftReturn = CT_OnOff.Parse(childNode, namespaceManager);
4919else if (childNode.LocalName == "spacingInWholePoints")
4920ctObj.spacingInWholePoints = CT_OnOff.Parse(childNode, namespaceManager);
4921else if (childNode.LocalName == "lineWrapLikeWord6")
4922ctObj.lineWrapLikeWord6 = CT_OnOff.Parse(childNode, namespaceManager);
4923else if (childNode.LocalName == "printBodyTextBeforeHeader")
4924ctObj.printBodyTextBeforeHeader = CT_OnOff.Parse(childNode, namespaceManager);
4925else if (childNode.LocalName == "printColBlack")
4926ctObj.printColBlack = CT_OnOff.Parse(childNode, namespaceManager);
4927else if (childNode.LocalName == "wpSpaceWidth")
4928ctObj.wpSpaceWidth = CT_OnOff.Parse(childNode, namespaceManager);
4929else if (childNode.LocalName == "showBreaksInFrames")
4930ctObj.showBreaksInFrames = CT_OnOff.Parse(childNode, namespaceManager);
4931else if (childNode.LocalName == "subFontBySize")
4932ctObj.subFontBySize = CT_OnOff.Parse(childNode, namespaceManager);
4933else if (childNode.LocalName == "suppressBottomSpacing")
4934ctObj.suppressBottomSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4935else if (childNode.LocalName == "suppressTopSpacing")
4936ctObj.suppressTopSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4937else if (childNode.LocalName == "suppressSpacingAtTopOfPage")
4938ctObj.suppressSpacingAtTopOfPage = CT_OnOff.Parse(childNode, namespaceManager);
4939else if (childNode.LocalName == "suppressTopSpacingWP")
4940ctObj.suppressTopSpacingWP = CT_OnOff.Parse(childNode, namespaceManager);
4941else if (childNode.LocalName == "suppressSpBfAfterPgBrk")
4942ctObj.suppressSpBfAfterPgBrk = CT_OnOff.Parse(childNode, namespaceManager);
4943else if (childNode.LocalName == "swapBordersFacingPages")
4944ctObj.swapBordersFacingPages = CT_OnOff.Parse(childNode, namespaceManager);
4945else if (childNode.LocalName == "convMailMergeEsc")
4946ctObj.convMailMergeEsc = CT_OnOff.Parse(childNode, namespaceManager);
4947else if (childNode.LocalName == "truncateFontHeightsLikeWP6")
4948ctObj.truncateFontHeightsLikeWP6 = CT_OnOff.Parse(childNode, namespaceManager);
4949else if (childNode.LocalName == "mwSmallCaps")
4950ctObj.mwSmallCaps = CT_OnOff.Parse(childNode, namespaceManager);
4951else if (childNode.LocalName == "usePrinterMetrics")
4952ctObj.usePrinterMetrics = CT_OnOff.Parse(childNode, namespaceManager);
4953else if (childNode.LocalName == "doNotSuppressParagraphBorders")
4954ctObj.doNotSuppressParagraphBorders = CT_OnOff.Parse(childNode, namespaceManager);
4955else if (childNode.LocalName == "wrapTrailSpaces")
4956ctObj.wrapTrailSpaces = CT_OnOff.Parse(childNode, namespaceManager);
4957else if (childNode.LocalName == "footnoteLayoutLikeWW8")
4958ctObj.footnoteLayoutLikeWW8 = CT_OnOff.Parse(childNode, namespaceManager);
4959else if (childNode.LocalName == "shapeLayoutLikeWW8")
4960ctObj.shapeLayoutLikeWW8 = CT_OnOff.Parse(childNode, namespaceManager);
4961else if (childNode.LocalName == "alignTablesRowByRow")
4962ctObj.alignTablesRowByRow = CT_OnOff.Parse(childNode, namespaceManager);
4963else if (childNode.LocalName == "forgetLastTabAlignment")
4964ctObj.forgetLastTabAlignment = CT_OnOff.Parse(childNode, namespaceManager);
4965else if (childNode.LocalName == "adjustLineHeightInTable")
4966ctObj.adjustLineHeightInTable = CT_OnOff.Parse(childNode, namespaceManager);
4967else if (childNode.LocalName == "autoSpaceLikeWord95")
4968ctObj.autoSpaceLikeWord95 = CT_OnOff.Parse(childNode, namespaceManager);
4969else if (childNode.LocalName == "noSpaceRaiseLower")
4970ctObj.noSpaceRaiseLower = CT_OnOff.Parse(childNode, namespaceManager);
4971else if (childNode.LocalName == "doNotUseHTMLParagraphAutoSpacing")
4972ctObj.doNotUseHTMLParagraphAutoSpacing = CT_OnOff.Parse(childNode, namespaceManager);
4973else if (childNode.LocalName == "layoutRawTableWidth")
4974ctObj.layoutRawTableWidth = CT_OnOff.Parse(childNode, namespaceManager);
4975else if (childNode.LocalName == "layoutTableRowsApart")
4976ctObj.layoutTableRowsApart = CT_OnOff.Parse(childNode, namespaceManager);
4977else if (childNode.LocalName == "useWord97LineBreakRules")
4978ctObj.useWord97LineBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
4979else if (childNode.LocalName == "doNotBreakWrappedTables")
4980ctObj.doNotBreakWrappedTables = CT_OnOff.Parse(childNode, namespaceManager);
4981else if (childNode.LocalName == "doNotSnapToGridInCell")
4982ctObj.doNotSnapToGridInCell = CT_OnOff.Parse(childNode, namespaceManager);
4983else if (childNode.LocalName == "selectFldWithFirstOrLastChar")
4984ctObj.selectFldWithFirstOrLastChar = CT_OnOff.Parse(childNode, namespaceManager);
4985else if (childNode.LocalName == "applyBreakingRules")
4986ctObj.applyBreakingRules = CT_OnOff.Parse(childNode, namespaceManager);
4987else if (childNode.LocalName == "doNotWrapTextWithPunct")
4988ctObj.doNotWrapTextWithPunct = CT_OnOff.Parse(childNode, namespaceManager);
4989else if (childNode.LocalName == "doNotUseEastAsianBreakRules")
4990ctObj.doNotUseEastAsianBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
4991else if (childNode.LocalName == "useWord2002TableStyleRules")
4992ctObj.useWord2002TableStyleRules = CT_OnOff.Parse(childNode, namespaceManager);
4993else if (childNode.LocalName == "growAutofit")
4994ctObj.growAutofit = CT_OnOff.Parse(childNode, namespaceManager);
4995else if (childNode.LocalName == "useFELayout")
4996ctObj.useFELayout = CT_OnOff.Parse(childNode, namespaceManager);
4997else if (childNode.LocalName == "useNormalStyleForList")
4998ctObj.useNormalStyleForList = CT_OnOff.Parse(childNode, namespaceManager);
4999else if (childNode.LocalName == "doNotUseIndentAsNumberingTabStop")
5000ctObj.doNotUseIndentAsNumberingTabStop = CT_OnOff.Parse(childNode, namespaceManager);
5001else if (childNode.LocalName == "useAltKinsokuLineBreakRules")
5002ctObj.useAltKinsokuLineBreakRules = CT_OnOff.Parse(childNode, namespaceManager);
5003else if (childNode.LocalName == "allowSpaceOfSameStyleInTable")
5004ctObj.allowSpaceOfSameStyleInTable = CT_OnOff.Parse(childNode, namespaceManager);
5005else if (childNode.LocalName == "doNotSuppressIndentation")
5006ctObj.doNotSuppressIndentation = CT_OnOff.Parse(childNode, namespaceManager);
5007else if (childNode.LocalName == "doNotAutofitConstrainedTables")
5008ctObj.doNotAutofitConstrainedTables = CT_OnOff.Parse(childNode, namespaceManager);
5009else if (childNode.LocalName == "autofitToFirstFixedWidthCell")
5010ctObj.autofitToFirstFixedWidthCell = CT_OnOff.Parse(childNode, namespaceManager);
5011else if (childNode.LocalName == "underlineTabInNumList")
5012ctObj.underlineTabInNumList = CT_OnOff.Parse(childNode, namespaceManager);
5013else if (childNode.LocalName == "displayHangulFixedWidth")
5014ctObj.displayHangulFixedWidth = CT_OnOff.Parse(childNode, namespaceManager);
5015else if (childNode.LocalName == "splitPgBreakAndParaMark")
5016ctObj.splitPgBreakAndParaMark = CT_OnOff.Parse(childNode, namespaceManager);
5017else if (childNode.LocalName == "doNotVertAlignCellWithSp")
5018ctObj.doNotVertAlignCellWithSp = CT_OnOff.Parse(childNode, namespaceManager);
5019else if (childNode.LocalName == "doNotBreakConstrainedForcedTable")
5020ctObj.doNotBreakConstrainedForcedTable = CT_OnOff.Parse(childNode, namespaceManager);
5021else if (childNode.LocalName == "doNotVertAlignInTxbx")
5022ctObj.doNotVertAlignInTxbx = CT_OnOff.Parse(childNode, namespaceManager);
5023else if (childNode.LocalName == "useAnsiKerningPairs")
5024ctObj.useAnsiKerningPairs = CT_OnOff.Parse(childNode, namespaceManager);
5025else if (childNode.LocalName == "cachedColBalance")
5026ctObj.cachedColBalance = CT_OnOff.Parse(childNode, namespaceManager);
5027}
5028return ctObj;
5029}
5030
5031
5032
5033internal void Write(StreamWriter sw, string nodeName)
5034{
5035sw.Write(string.Format("<w:{0}", nodeName));
5036sw.Write(">");
5037if (this.useSingleBorderforContiguousCells != null)
5038this.useSingleBorderforContiguousCells.Write(sw, "useSingleBorderforContiguousCells");
5039if (this.wpJustification != null)
5040this.wpJustification.Write(sw, "wpJustification");
5041if (this.noTabHangInd != null)
5042this.noTabHangInd.Write(sw, "noTabHangInd");
5043if (this.noLeading != null)
5044this.noLeading.Write(sw, "noLeading");
5045if (this.spaceForUL != null)
5046this.spaceForUL.Write(sw, "spaceForUL");
5047if (this.noColumnBalance != null)
5048this.noColumnBalance.Write(sw, "noColumnBalance");
5049if (this.balanceSingleByteDoubleByteWidth != null)
5050this.balanceSingleByteDoubleByteWidth.Write(sw, "balanceSingleByteDoubleByteWidth");
5051if (this.noExtraLineSpacing != null)
5052this.noExtraLineSpacing.Write(sw, "noExtraLineSpacing");
5053if (this.doNotLeaveBackslashAlone != null)
5054this.doNotLeaveBackslashAlone.Write(sw, "doNotLeaveBackslashAlone");
5055if (this.ulTrailSpace != null)
5056this.ulTrailSpace.Write(sw, "ulTrailSpace");
5057if (this.doNotExpandShiftReturn != null)
5058this.doNotExpandShiftReturn.Write(sw, "doNotExpandShiftReturn");
5059if (this.spacingInWholePoints != null)
5060this.spacingInWholePoints.Write(sw, "spacingInWholePoints");
5061if (this.lineWrapLikeWord6 != null)
5062this.lineWrapLikeWord6.Write(sw, "lineWrapLikeWord6");
5063if (this.printBodyTextBeforeHeader != null)
5064this.printBodyTextBeforeHeader.Write(sw, "printBodyTextBeforeHeader");
5065if (this.printColBlack != null)
5066this.printColBlack.Write(sw, "printColBlack");
5067if (this.wpSpaceWidth != null)
5068this.wpSpaceWidth.Write(sw, "wpSpaceWidth");
5069if (this.showBreaksInFrames != null)
5070this.showBreaksInFrames.Write(sw, "showBreaksInFrames");
5071if (this.subFontBySize != null)
5072this.subFontBySize.Write(sw, "subFontBySize");
5073if (this.suppressBottomSpacing != null)
5074this.suppressBottomSpacing.Write(sw, "suppressBottomSpacing");
5075if (this.suppressTopSpacing != null)
5076this.suppressTopSpacing.Write(sw, "suppressTopSpacing");
5077if (this.suppressSpacingAtTopOfPage != null)
5078this.suppressSpacingAtTopOfPage.Write(sw, "suppressSpacingAtTopOfPage");
5079if (this.suppressTopSpacingWP != null)
5080this.suppressTopSpacingWP.Write(sw, "suppressTopSpacingWP");
5081if (this.suppressSpBfAfterPgBrk != null)
5082this.suppressSpBfAfterPgBrk.Write(sw, "suppressSpBfAfterPgBrk");
5083if (this.swapBordersFacingPages != null)
5084this.swapBordersFacingPages.Write(sw, "swapBordersFacingPages");
5085if (this.convMailMergeEsc != null)
5086this.convMailMergeEsc.Write(sw, "convMailMergeEsc");
5087if (this.truncateFontHeightsLikeWP6 != null)
5088this.truncateFontHeightsLikeWP6.Write(sw, "truncateFontHeightsLikeWP6");
5089if (this.mwSmallCaps != null)
5090this.mwSmallCaps.Write(sw, "mwSmallCaps");
5091if (this.usePrinterMetrics != null)
5092this.usePrinterMetrics.Write(sw, "usePrinterMetrics");
5093if (this.doNotSuppressParagraphBorders != null)
5094this.doNotSuppressParagraphBorders.Write(sw, "doNotSuppressParagraphBorders");
5095if (this.wrapTrailSpaces != null)
5096this.wrapTrailSpaces.Write(sw, "wrapTrailSpaces");
5097if (this.footnoteLayoutLikeWW8 != null)
5098this.footnoteLayoutLikeWW8.Write(sw, "footnoteLayoutLikeWW8");
5099if (this.shapeLayoutLikeWW8 != null)
5100this.shapeLayoutLikeWW8.Write(sw, "shapeLayoutLikeWW8");
5101if (this.alignTablesRowByRow != null)
5102this.alignTablesRowByRow.Write(sw, "alignTablesRowByRow");
5103if (this.forgetLastTabAlignment != null)
5104this.forgetLastTabAlignment.Write(sw, "forgetLastTabAlignment");
5105if (this.adjustLineHeightInTable != null)
5106this.adjustLineHeightInTable.Write(sw, "adjustLineHeightInTable");
5107if (this.autoSpaceLikeWord95 != null)
5108this.autoSpaceLikeWord95.Write(sw, "autoSpaceLikeWord95");
5109if (this.noSpaceRaiseLower != null)
5110this.noSpaceRaiseLower.Write(sw, "noSpaceRaiseLower");
5111if (this.doNotUseHTMLParagraphAutoSpacing != null)
5112this.doNotUseHTMLParagraphAutoSpacing.Write(sw, "doNotUseHTMLParagraphAutoSpacing");
5113if (this.layoutRawTableWidth != null)
5114this.layoutRawTableWidth.Write(sw, "layoutRawTableWidth");
5115if (this.layoutTableRowsApart != null)
5116this.layoutTableRowsApart.Write(sw, "layoutTableRowsApart");
5117if (this.useWord97LineBreakRules != null)
5118this.useWord97LineBreakRules.Write(sw, "useWord97LineBreakRules");
5119if (this.doNotBreakWrappedTables != null)
5120this.doNotBreakWrappedTables.Write(sw, "doNotBreakWrappedTables");
5121if (this.doNotSnapToGridInCell != null)
5122this.doNotSnapToGridInCell.Write(sw, "doNotSnapToGridInCell");
5123if (this.selectFldWithFirstOrLastChar != null)
5124this.selectFldWithFirstOrLastChar.Write(sw, "selectFldWithFirstOrLastChar");
5125if (this.applyBreakingRules != null)
5126this.applyBreakingRules.Write(sw, "applyBreakingRules");
5127if (this.doNotWrapTextWithPunct != null)
5128this.doNotWrapTextWithPunct.Write(sw, "doNotWrapTextWithPunct");
5129if (this.doNotUseEastAsianBreakRules != null)
5130this.doNotUseEastAsianBreakRules.Write(sw, "doNotUseEastAsianBreakRules");
5131if (this.useWord2002TableStyleRules != null)
5132this.useWord2002TableStyleRules.Write(sw, "useWord2002TableStyleRules");
5133if (this.growAutofit != null)
5134this.growAutofit.Write(sw, "growAutofit");
5135if (this.useFELayout != null)
5136this.useFELayout.Write(sw, "useFELayout");
5137if (this.useNormalStyleForList != null)
5138this.useNormalStyleForList.Write(sw, "useNormalStyleForList");
5139if (this.doNotUseIndentAsNumberingTabStop != null)
5140this.doNotUseIndentAsNumberingTabStop.Write(sw, "doNotUseIndentAsNumberingTabStop");
5141if (this.useAltKinsokuLineBreakRules != null)
5142this.useAltKinsokuLineBreakRules.Write(sw, "useAltKinsokuLineBreakRules");
5143if (this.allowSpaceOfSameStyleInTable != null)
5144this.allowSpaceOfSameStyleInTable.Write(sw, "allowSpaceOfSameStyleInTable");
5145if (this.doNotSuppressIndentation != null)
5146this.doNotSuppressIndentation.Write(sw, "doNotSuppressIndentation");
5147if (this.doNotAutofitConstrainedTables != null)
5148this.doNotAutofitConstrainedTables.Write(sw, "doNotAutofitConstrainedTables");
5149if (this.autofitToFirstFixedWidthCell != null)
5150this.autofitToFirstFixedWidthCell.Write(sw, "autofitToFirstFixedWidthCell");
5151if (this.underlineTabInNumList != null)
5152this.underlineTabInNumList.Write(sw, "underlineTabInNumList");
5153if (this.displayHangulFixedWidth != null)
5154this.displayHangulFixedWidth.Write(sw, "displayHangulFixedWidth");
5155if (this.splitPgBreakAndParaMark != null)
5156this.splitPgBreakAndParaMark.Write(sw, "splitPgBreakAndParaMark");
5157if (this.doNotVertAlignCellWithSp != null)
5158this.doNotVertAlignCellWithSp.Write(sw, "doNotVertAlignCellWithSp");
5159if (this.doNotBreakConstrainedForcedTable != null)
5160this.doNotBreakConstrainedForcedTable.Write(sw, "doNotBreakConstrainedForcedTable");
5161if (this.doNotVertAlignInTxbx != null)
5162this.doNotVertAlignInTxbx.Write(sw, "doNotVertAlignInTxbx");
5163if (this.useAnsiKerningPairs != null)
5164this.useAnsiKerningPairs.Write(sw, "useAnsiKerningPairs");
5165if (this.cachedColBalance != null)
5166this.cachedColBalance.Write(sw, "cachedColBalance");
5167sw.WriteEndW(nodeName);
5168}
5169
5170public 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();
5187this.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();
5202this.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();
5226this.doNotExpandShiftReturnField = new CT_OnOff();
5227this.ulTrailSpaceField = new CT_OnOff();
5228this.doNotLeaveBackslashAloneField = new CT_OnOff();
5229//this.noExtraLineSpacingField = new CT_OnOff();
5230this.balanceSingleByteDoubleByteWidthField = new CT_OnOff();
5231//this.noColumnBalanceField = new CT_OnOff();
5232this.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)]
5240public CT_OnOff useSingleBorderforContiguousCells
5241{
5242get
5243{
5244return this.useSingleBorderforContiguousCellsField;
5245}
5246set
5247{
5248this.useSingleBorderforContiguousCellsField = value;
5249}
5250}
5251
5252[XmlElement(Order = 1)]
5253public CT_OnOff wpJustification
5254{
5255get
5256{
5257return this.wpJustificationField;
5258}
5259set
5260{
5261this.wpJustificationField = value;
5262}
5263}
5264
5265[XmlElement(Order = 2)]
5266public CT_OnOff noTabHangInd
5267{
5268get
5269{
5270return this.noTabHangIndField;
5271}
5272set
5273{
5274this.noTabHangIndField = value;
5275}
5276}
5277
5278[XmlElement(Order = 3)]
5279public CT_OnOff noLeading
5280{
5281get
5282{
5283return this.noLeadingField;
5284}
5285set
5286{
5287this.noLeadingField = value;
5288}
5289}
5290
5291[XmlElement(Order = 4)]
5292public CT_OnOff spaceForUL
5293{
5294get
5295{
5296return this.spaceForULField;
5297}
5298set
5299{
5300this.spaceForULField = value;
5301}
5302}
5303
5304[XmlElement(Order = 5)]
5305public CT_OnOff noColumnBalance
5306{
5307get
5308{
5309return this.noColumnBalanceField;
5310}
5311set
5312{
5313this.noColumnBalanceField = value;
5314}
5315}
5316
5317[XmlElement(Order = 6)]
5318public CT_OnOff balanceSingleByteDoubleByteWidth
5319{
5320get
5321{
5322return this.balanceSingleByteDoubleByteWidthField;
5323}
5324set
5325{
5326this.balanceSingleByteDoubleByteWidthField = value;
5327}
5328}
5329
5330[XmlElement(Order = 7)]
5331public CT_OnOff noExtraLineSpacing
5332{
5333get
5334{
5335return this.noExtraLineSpacingField;
5336}
5337set
5338{
5339this.noExtraLineSpacingField = value;
5340}
5341}
5342
5343[XmlElement(Order = 8)]
5344public CT_OnOff doNotLeaveBackslashAlone
5345{
5346get
5347{
5348return this.doNotLeaveBackslashAloneField;
5349}
5350set
5351{
5352this.doNotLeaveBackslashAloneField = value;
5353}
5354}
5355
5356[XmlElement(Order = 9)]
5357public CT_OnOff ulTrailSpace
5358{
5359get
5360{
5361return this.ulTrailSpaceField;
5362}
5363set
5364{
5365this.ulTrailSpaceField = value;
5366}
5367}
5368
5369[XmlElement(Order = 10)]
5370public CT_OnOff doNotExpandShiftReturn
5371{
5372get
5373{
5374return this.doNotExpandShiftReturnField;
5375}
5376set
5377{
5378this.doNotExpandShiftReturnField = value;
5379}
5380}
5381
5382[XmlElement(Order = 11)]
5383public CT_OnOff spacingInWholePoints
5384{
5385get
5386{
5387return this.spacingInWholePointsField;
5388}
5389set
5390{
5391this.spacingInWholePointsField = value;
5392}
5393}
5394
5395[XmlElement(Order = 12)]
5396public CT_OnOff lineWrapLikeWord6
5397{
5398get
5399{
5400return this.lineWrapLikeWord6Field;
5401}
5402set
5403{
5404this.lineWrapLikeWord6Field = value;
5405}
5406}
5407
5408[XmlElement(Order = 13)]
5409public CT_OnOff printBodyTextBeforeHeader
5410{
5411get
5412{
5413return this.printBodyTextBeforeHeaderField;
5414}
5415set
5416{
5417this.printBodyTextBeforeHeaderField = value;
5418}
5419}
5420
5421[XmlElement(Order = 14)]
5422public CT_OnOff printColBlack
5423{
5424get
5425{
5426return this.printColBlackField;
5427}
5428set
5429{
5430this.printColBlackField = value;
5431}
5432}
5433
5434[XmlElement(Order = 15)]
5435public CT_OnOff wpSpaceWidth
5436{
5437get
5438{
5439return this.wpSpaceWidthField;
5440}
5441set
5442{
5443this.wpSpaceWidthField = value;
5444}
5445}
5446
5447[XmlElement(Order = 16)]
5448public CT_OnOff showBreaksInFrames
5449{
5450get
5451{
5452return this.showBreaksInFramesField;
5453}
5454set
5455{
5456this.showBreaksInFramesField = value;
5457}
5458}
5459
5460[XmlElement(Order = 17)]
5461public CT_OnOff subFontBySize
5462{
5463get
5464{
5465return this.subFontBySizeField;
5466}
5467set
5468{
5469this.subFontBySizeField = value;
5470}
5471}
5472
5473[XmlElement(Order = 18)]
5474public CT_OnOff suppressBottomSpacing
5475{
5476get
5477{
5478return this.suppressBottomSpacingField;
5479}
5480set
5481{
5482this.suppressBottomSpacingField = value;
5483}
5484}
5485
5486[XmlElement(Order = 19)]
5487public CT_OnOff suppressTopSpacing
5488{
5489get
5490{
5491return this.suppressTopSpacingField;
5492}
5493set
5494{
5495this.suppressTopSpacingField = value;
5496}
5497}
5498
5499[XmlElement(Order = 20)]
5500public CT_OnOff suppressSpacingAtTopOfPage
5501{
5502get
5503{
5504return this.suppressSpacingAtTopOfPageField;
5505}
5506set
5507{
5508this.suppressSpacingAtTopOfPageField = value;
5509}
5510}
5511
5512[XmlElement(Order = 21)]
5513public CT_OnOff suppressTopSpacingWP
5514{
5515get
5516{
5517return this.suppressTopSpacingWPField;
5518}
5519set
5520{
5521this.suppressTopSpacingWPField = value;
5522}
5523}
5524
5525[XmlElement(Order = 22)]
5526public CT_OnOff suppressSpBfAfterPgBrk
5527{
5528get
5529{
5530return this.suppressSpBfAfterPgBrkField;
5531}
5532set
5533{
5534this.suppressSpBfAfterPgBrkField = value;
5535}
5536}
5537
5538[XmlElement(Order = 23)]
5539public CT_OnOff swapBordersFacingPages
5540{
5541get
5542{
5543return this.swapBordersFacingPagesField;
5544}
5545set
5546{
5547this.swapBordersFacingPagesField = value;
5548}
5549}
5550
5551[XmlElement(Order = 24)]
5552public CT_OnOff convMailMergeEsc
5553{
5554get
5555{
5556return this.convMailMergeEscField;
5557}
5558set
5559{
5560this.convMailMergeEscField = value;
5561}
5562}
5563
5564[XmlElement(Order = 25)]
5565public CT_OnOff truncateFontHeightsLikeWP6
5566{
5567get
5568{
5569return this.truncateFontHeightsLikeWP6Field;
5570}
5571set
5572{
5573this.truncateFontHeightsLikeWP6Field = value;
5574}
5575}
5576
5577[XmlElement(Order = 26)]
5578public CT_OnOff mwSmallCaps
5579{
5580get
5581{
5582return this.mwSmallCapsField;
5583}
5584set
5585{
5586this.mwSmallCapsField = value;
5587}
5588}
5589
5590[XmlElement(Order = 27)]
5591public CT_OnOff usePrinterMetrics
5592{
5593get
5594{
5595return this.usePrinterMetricsField;
5596}
5597set
5598{
5599this.usePrinterMetricsField = value;
5600}
5601}
5602
5603[XmlElement(Order = 28)]
5604public CT_OnOff doNotSuppressParagraphBorders
5605{
5606get
5607{
5608return this.doNotSuppressParagraphBordersField;
5609}
5610set
5611{
5612this.doNotSuppressParagraphBordersField = value;
5613}
5614}
5615
5616[XmlElement(Order = 29)]
5617public CT_OnOff wrapTrailSpaces
5618{
5619get
5620{
5621return this.wrapTrailSpacesField;
5622}
5623set
5624{
5625this.wrapTrailSpacesField = value;
5626}
5627}
5628
5629[XmlElement(Order = 30)]
5630public CT_OnOff footnoteLayoutLikeWW8
5631{
5632get
5633{
5634return this.footnoteLayoutLikeWW8Field;
5635}
5636set
5637{
5638this.footnoteLayoutLikeWW8Field = value;
5639}
5640}
5641
5642[XmlElement(Order = 31)]
5643public CT_OnOff shapeLayoutLikeWW8
5644{
5645get
5646{
5647return this.shapeLayoutLikeWW8Field;
5648}
5649set
5650{
5651this.shapeLayoutLikeWW8Field = value;
5652}
5653}
5654
5655[XmlElement(Order = 32)]
5656public CT_OnOff alignTablesRowByRow
5657{
5658get
5659{
5660return this.alignTablesRowByRowField;
5661}
5662set
5663{
5664this.alignTablesRowByRowField = value;
5665}
5666}
5667
5668[XmlElement(Order = 33)]
5669public CT_OnOff forgetLastTabAlignment
5670{
5671get
5672{
5673return this.forgetLastTabAlignmentField;
5674}
5675set
5676{
5677this.forgetLastTabAlignmentField = value;
5678}
5679}
5680
5681[XmlElement(Order = 34)]
5682public CT_OnOff adjustLineHeightInTable
5683{
5684get
5685{
5686return this.adjustLineHeightInTableField;
5687}
5688set
5689{
5690this.adjustLineHeightInTableField = value;
5691}
5692}
5693
5694[XmlElement(Order = 35)]
5695public CT_OnOff autoSpaceLikeWord95
5696{
5697get
5698{
5699return this.autoSpaceLikeWord95Field;
5700}
5701set
5702{
5703this.autoSpaceLikeWord95Field = value;
5704}
5705}
5706
5707[XmlElement(Order = 36)]
5708public CT_OnOff noSpaceRaiseLower
5709{
5710get
5711{
5712return this.noSpaceRaiseLowerField;
5713}
5714set
5715{
5716this.noSpaceRaiseLowerField = value;
5717}
5718}
5719
5720[XmlElement(Order = 37)]
5721public CT_OnOff doNotUseHTMLParagraphAutoSpacing
5722{
5723get
5724{
5725return this.doNotUseHTMLParagraphAutoSpacingField;
5726}
5727set
5728{
5729this.doNotUseHTMLParagraphAutoSpacingField = value;
5730}
5731}
5732
5733[XmlElement(Order = 38)]
5734public CT_OnOff layoutRawTableWidth
5735{
5736get
5737{
5738return this.layoutRawTableWidthField;
5739}
5740set
5741{
5742this.layoutRawTableWidthField = value;
5743}
5744}
5745
5746[XmlElement(Order = 39)]
5747public CT_OnOff layoutTableRowsApart
5748{
5749get
5750{
5751return this.layoutTableRowsApartField;
5752}
5753set
5754{
5755this.layoutTableRowsApartField = value;
5756}
5757}
5758
5759[XmlElement(Order = 40)]
5760public CT_OnOff useWord97LineBreakRules
5761{
5762get
5763{
5764return this.useWord97LineBreakRulesField;
5765}
5766set
5767{
5768this.useWord97LineBreakRulesField = value;
5769}
5770}
5771
5772[XmlElement(Order = 41)]
5773public CT_OnOff doNotBreakWrappedTables
5774{
5775get
5776{
5777return this.doNotBreakWrappedTablesField;
5778}
5779set
5780{
5781this.doNotBreakWrappedTablesField = value;
5782}
5783}
5784
5785[XmlElement(Order = 42)]
5786public CT_OnOff doNotSnapToGridInCell
5787{
5788get
5789{
5790return this.doNotSnapToGridInCellField;
5791}
5792set
5793{
5794this.doNotSnapToGridInCellField = value;
5795}
5796}
5797
5798[XmlElement(Order = 43)]
5799public CT_OnOff selectFldWithFirstOrLastChar
5800{
5801get
5802{
5803return this.selectFldWithFirstOrLastCharField;
5804}
5805set
5806{
5807this.selectFldWithFirstOrLastCharField = value;
5808}
5809}
5810
5811[XmlElement(Order = 44)]
5812public CT_OnOff applyBreakingRules
5813{
5814get
5815{
5816return this.applyBreakingRulesField;
5817}
5818set
5819{
5820this.applyBreakingRulesField = value;
5821}
5822}
5823
5824[XmlElement(Order = 45)]
5825public CT_OnOff doNotWrapTextWithPunct
5826{
5827get
5828{
5829return this.doNotWrapTextWithPunctField;
5830}
5831set
5832{
5833this.doNotWrapTextWithPunctField = value;
5834}
5835}
5836
5837[XmlElement(Order = 46)]
5838public CT_OnOff doNotUseEastAsianBreakRules
5839{
5840get
5841{
5842return this.doNotUseEastAsianBreakRulesField;
5843}
5844set
5845{
5846this.doNotUseEastAsianBreakRulesField = value;
5847}
5848}
5849
5850[XmlElement(Order = 47)]
5851public CT_OnOff useWord2002TableStyleRules
5852{
5853get
5854{
5855return this.useWord2002TableStyleRulesField;
5856}
5857set
5858{
5859this.useWord2002TableStyleRulesField = value;
5860}
5861}
5862
5863[XmlElement(Order = 48)]
5864public CT_OnOff growAutofit
5865{
5866get
5867{
5868return this.growAutofitField;
5869}
5870set
5871{
5872this.growAutofitField = value;
5873}
5874}
5875
5876[XmlElement(Order = 49)]
5877public CT_OnOff useFELayout
5878{
5879get
5880{
5881return this.useFELayoutField;
5882}
5883set
5884{
5885this.useFELayoutField = value;
5886}
5887}
5888
5889[XmlElement(Order = 50)]
5890public CT_OnOff useNormalStyleForList
5891{
5892get
5893{
5894return this.useNormalStyleForListField;
5895}
5896set
5897{
5898this.useNormalStyleForListField = value;
5899}
5900}
5901
5902[XmlElement(Order = 51)]
5903public CT_OnOff doNotUseIndentAsNumberingTabStop
5904{
5905get
5906{
5907return this.doNotUseIndentAsNumberingTabStopField;
5908}
5909set
5910{
5911this.doNotUseIndentAsNumberingTabStopField = value;
5912}
5913}
5914
5915[XmlElement(Order = 52)]
5916public CT_OnOff useAltKinsokuLineBreakRules
5917{
5918get
5919{
5920return this.useAltKinsokuLineBreakRulesField;
5921}
5922set
5923{
5924this.useAltKinsokuLineBreakRulesField = value;
5925}
5926}
5927
5928[XmlElement(Order = 53)]
5929public CT_OnOff allowSpaceOfSameStyleInTable
5930{
5931get
5932{
5933return this.allowSpaceOfSameStyleInTableField;
5934}
5935set
5936{
5937this.allowSpaceOfSameStyleInTableField = value;
5938}
5939}
5940
5941[XmlElement(Order = 54)]
5942public CT_OnOff doNotSuppressIndentation
5943{
5944get
5945{
5946return this.doNotSuppressIndentationField;
5947}
5948set
5949{
5950this.doNotSuppressIndentationField = value;
5951}
5952}
5953
5954[XmlElement(Order = 55)]
5955public CT_OnOff doNotAutofitConstrainedTables
5956{
5957get
5958{
5959return this.doNotAutofitConstrainedTablesField;
5960}
5961set
5962{
5963this.doNotAutofitConstrainedTablesField = value;
5964}
5965}
5966
5967[XmlElement(Order = 56)]
5968public CT_OnOff autofitToFirstFixedWidthCell
5969{
5970get
5971{
5972return this.autofitToFirstFixedWidthCellField;
5973}
5974set
5975{
5976this.autofitToFirstFixedWidthCellField = value;
5977}
5978}
5979
5980[XmlElement(Order = 57)]
5981public CT_OnOff underlineTabInNumList
5982{
5983get
5984{
5985return this.underlineTabInNumListField;
5986}
5987set
5988{
5989this.underlineTabInNumListField = value;
5990}
5991}
5992
5993[XmlElement(Order = 58)]
5994public CT_OnOff displayHangulFixedWidth
5995{
5996get
5997{
5998return this.displayHangulFixedWidthField;
5999}
6000set
6001{
6002this.displayHangulFixedWidthField = value;
6003}
6004}
6005
6006[XmlElement(Order = 59)]
6007public CT_OnOff splitPgBreakAndParaMark
6008{
6009get
6010{
6011return this.splitPgBreakAndParaMarkField;
6012}
6013set
6014{
6015this.splitPgBreakAndParaMarkField = value;
6016}
6017}
6018
6019[XmlElement(Order = 60)]
6020public CT_OnOff doNotVertAlignCellWithSp
6021{
6022get
6023{
6024return this.doNotVertAlignCellWithSpField;
6025}
6026set
6027{
6028this.doNotVertAlignCellWithSpField = value;
6029}
6030}
6031
6032[XmlElement(Order = 61)]
6033public CT_OnOff doNotBreakConstrainedForcedTable
6034{
6035get
6036{
6037return this.doNotBreakConstrainedForcedTableField;
6038}
6039set
6040{
6041this.doNotBreakConstrainedForcedTableField = value;
6042}
6043}
6044
6045[XmlElement(Order = 62)]
6046public CT_OnOff doNotVertAlignInTxbx
6047{
6048get
6049{
6050return this.doNotVertAlignInTxbxField;
6051}
6052set
6053{
6054this.doNotVertAlignInTxbxField = value;
6055}
6056}
6057
6058[XmlElement(Order = 63)]
6059public CT_OnOff useAnsiKerningPairs
6060{
6061get
6062{
6063return this.useAnsiKerningPairsField;
6064}
6065set
6066{
6067this.useAnsiKerningPairsField = value;
6068}
6069}
6070
6071[XmlElement(Order = 64)]
6072public CT_OnOff cachedColBalance
6073{
6074get
6075{
6076return this.cachedColBalanceField;
6077}
6078set
6079{
6080this.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)]
6090public class CT_DocVar
6091{
6092
6093private string nameField;
6094
6095private string valField;
6096public static CT_DocVar Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6097{
6098if (node == null)
6099return null;
6100CT_DocVar ctObj = new CT_DocVar();
6101
6102ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
6103ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
6104
6105return ctObj;
6106}
6107
6108
6109
6110internal void Write(StreamWriter sw, string nodeName)
6111{
6112sw.Write(string.Format("<w:{0}", nodeName));
6113XmlHelper.WriteAttribute(sw, "w:name", this.name);
6114XmlHelper.WriteAttribute(sw, "w:val", this.val);
6115sw.Write(">");
6116sw.WriteEndW(nodeName);
6117}
6118
6119[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6120public string name
6121{
6122get
6123{
6124return this.nameField;
6125}
6126set
6127{
6128this.nameField = value;
6129}
6130}
6131
6132[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6133public string val
6134{
6135get
6136{
6137return this.valField;
6138}
6139set
6140{
6141this.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)]
6151public class CT_DocRsids
6152{
6153
6154private CT_LongHexNumber rsidRootField;
6155
6156private List<CT_LongHexNumber> rsidField;
6157
6158public CT_DocRsids()
6159{
6160//this.rsidField = new List<CT_LongHexNumber>();
6161//this.rsidRootField = new CT_LongHexNumber();
6162}
6163public static CT_DocRsids Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6164{
6165if (node == null)
6166return null;
6167CT_DocRsids ctObj = new CT_DocRsids();
6168ctObj.rsid = new List<CT_LongHexNumber>();
6169foreach (XmlNode childNode in node.ChildNodes)
6170{
6171if (childNode.LocalName == "rsidRoot")
6172ctObj.rsidRoot = CT_LongHexNumber.Parse(childNode, namespaceManager);
6173else if (childNode.LocalName == "rsid")
6174ctObj.rsid.Add(CT_LongHexNumber.Parse(childNode, namespaceManager));
6175}
6176return ctObj;
6177}
6178
6179
6180
6181internal void Write(StreamWriter sw, string nodeName)
6182{
6183sw.Write(string.Format("<w:{0}", nodeName));
6184sw.Write(">");
6185if (this.rsidRoot != null)
6186this.rsidRoot.Write(sw, "rsidRoot");
6187if (this.rsid != null)
6188{
6189foreach (CT_LongHexNumber x in this.rsid)
6190{
6191x.Write(sw, "rsid");
6192}
6193}
6194sw.WriteEndW(nodeName);
6195}
6196
6197[XmlElement(Order = 0)]
6198public CT_LongHexNumber rsidRoot
6199{
6200get
6201{
6202return this.rsidRootField;
6203}
6204set
6205{
6206this.rsidRootField = value;
6207}
6208}
6209
6210[XmlElement("rsid", Order = 1)]
6211public List<CT_LongHexNumber> rsid
6212{
6213get
6214{
6215return this.rsidField;
6216}
6217set
6218{
6219this.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)]
6232public class CT_ColorSchemeMapping
6233{
6234
6235private ST_ColorSchemeIndex bg1Field;
6236
6237private bool bg1FieldSpecified;
6238
6239private ST_ColorSchemeIndex t1Field;
6240
6241private bool t1FieldSpecified;
6242
6243private ST_ColorSchemeIndex bg2Field;
6244
6245private bool bg2FieldSpecified;
6246
6247private ST_ColorSchemeIndex t2Field;
6248
6249private bool t2FieldSpecified;
6250
6251private ST_ColorSchemeIndex accent1Field;
6252
6253private bool accent1FieldSpecified;
6254
6255private ST_ColorSchemeIndex accent2Field;
6256
6257private bool accent2FieldSpecified;
6258
6259private ST_ColorSchemeIndex accent3Field;
6260
6261private bool accent3FieldSpecified;
6262
6263private ST_ColorSchemeIndex accent4Field;
6264
6265private bool accent4FieldSpecified;
6266
6267private ST_ColorSchemeIndex accent5Field;
6268
6269private bool accent5FieldSpecified;
6270
6271private ST_ColorSchemeIndex accent6Field;
6272
6273private bool accent6FieldSpecified;
6274
6275private ST_ColorSchemeIndex hyperlinkField;
6276
6277private bool hyperlinkFieldSpecified;
6278
6279private ST_ColorSchemeIndex followedHyperlinkField;
6280
6281private bool followedHyperlinkFieldSpecified;
6282public static CT_ColorSchemeMapping Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6283{
6284if (node == null)
6285return null;
6286CT_ColorSchemeMapping ctObj = new CT_ColorSchemeMapping();
6287if (node.Attributes["w:bg1"] != null)
6288ctObj.bg1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:bg1"].Value);
6289if (node.Attributes["w:t1"] != null)
6290ctObj.t1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:t1"].Value);
6291if (node.Attributes["w:bg2"] != null)
6292ctObj.bg2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:bg2"].Value);
6293if (node.Attributes["w:t2"] != null)
6294ctObj.t2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:t2"].Value);
6295if (node.Attributes["w:accent1"] != null)
6296ctObj.accent1 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent1"].Value);
6297if (node.Attributes["w:accent2"] != null)
6298ctObj.accent2 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent2"].Value);
6299if (node.Attributes["w:accent3"] != null)
6300ctObj.accent3 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent3"].Value);
6301if (node.Attributes["w:accent4"] != null)
6302ctObj.accent4 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent4"].Value);
6303if (node.Attributes["w:accent5"] != null)
6304ctObj.accent5 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent5"].Value);
6305if (node.Attributes["w:accent6"] != null)
6306ctObj.accent6 = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:accent6"].Value);
6307if (node.Attributes["w:hyperlink"] != null)
6308ctObj.hyperlink = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:hyperlink"].Value);
6309if (node.Attributes["w:followedHyperlink"] != null)
6310ctObj.followedHyperlink = (ST_ColorSchemeIndex)Enum.Parse(typeof(ST_ColorSchemeIndex), node.Attributes["w:followedHyperlink"].Value);
6311return ctObj;
6312}
6313
6314
6315
6316internal void Write(StreamWriter sw, string nodeName)
6317{
6318sw.Write(string.Format("<w:{0}", nodeName));
6319XmlHelper.WriteAttribute(sw, "w:bg1", this.bg1.ToString());
6320XmlHelper.WriteAttribute(sw, "w:t1", this.t1.ToString());
6321XmlHelper.WriteAttribute(sw, "w:bg2", this.bg2.ToString());
6322XmlHelper.WriteAttribute(sw, "w:t2", this.t2.ToString());
6323XmlHelper.WriteAttribute(sw, "w:accent1", this.accent1.ToString());
6324XmlHelper.WriteAttribute(sw, "w:accent2", this.accent2.ToString());
6325XmlHelper.WriteAttribute(sw, "w:accent3", this.accent3.ToString());
6326XmlHelper.WriteAttribute(sw, "w:accent4", this.accent4.ToString());
6327XmlHelper.WriteAttribute(sw, "w:accent5", this.accent5.ToString());
6328XmlHelper.WriteAttribute(sw, "w:accent6", this.accent6.ToString());
6329XmlHelper.WriteAttribute(sw, "w:hyperlink", this.hyperlink.ToString());
6330XmlHelper.WriteAttribute(sw, "w:followedHyperlink", this.followedHyperlink.ToString());
6331sw.Write("/>");
6332}
6333
6334[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6335public ST_ColorSchemeIndex bg1
6336{
6337get
6338{
6339return this.bg1Field;
6340}
6341set
6342{
6343this.bg1Field = value;
6344}
6345}
6346
6347[XmlIgnore]
6348public bool bg1Specified
6349{
6350get
6351{
6352return this.bg1FieldSpecified;
6353}
6354set
6355{
6356this.bg1FieldSpecified = value;
6357}
6358}
6359
6360[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6361public ST_ColorSchemeIndex t1
6362{
6363get
6364{
6365return this.t1Field;
6366}
6367set
6368{
6369this.t1Field = value;
6370}
6371}
6372
6373[XmlIgnore]
6374public bool t1Specified
6375{
6376get
6377{
6378return this.t1FieldSpecified;
6379}
6380set
6381{
6382this.t1FieldSpecified = value;
6383}
6384}
6385
6386[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6387public ST_ColorSchemeIndex bg2
6388{
6389get
6390{
6391return this.bg2Field;
6392}
6393set
6394{
6395this.bg2Field = value;
6396}
6397}
6398
6399[XmlIgnore]
6400public bool bg2Specified
6401{
6402get
6403{
6404return this.bg2FieldSpecified;
6405}
6406set
6407{
6408this.bg2FieldSpecified = value;
6409}
6410}
6411
6412[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6413public ST_ColorSchemeIndex t2
6414{
6415get
6416{
6417return this.t2Field;
6418}
6419set
6420{
6421this.t2Field = value;
6422}
6423}
6424
6425[XmlIgnore]
6426public bool t2Specified
6427{
6428get
6429{
6430return this.t2FieldSpecified;
6431}
6432set
6433{
6434this.t2FieldSpecified = value;
6435}
6436}
6437
6438[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6439public ST_ColorSchemeIndex accent1
6440{
6441get
6442{
6443return this.accent1Field;
6444}
6445set
6446{
6447this.accent1Field = value;
6448}
6449}
6450
6451[XmlIgnore]
6452public bool accent1Specified
6453{
6454get
6455{
6456return this.accent1FieldSpecified;
6457}
6458set
6459{
6460this.accent1FieldSpecified = value;
6461}
6462}
6463
6464[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6465public ST_ColorSchemeIndex accent2
6466{
6467get
6468{
6469return this.accent2Field;
6470}
6471set
6472{
6473this.accent2Field = value;
6474}
6475}
6476
6477[XmlIgnore]
6478public bool accent2Specified
6479{
6480get
6481{
6482return this.accent2FieldSpecified;
6483}
6484set
6485{
6486this.accent2FieldSpecified = value;
6487}
6488}
6489
6490[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6491public ST_ColorSchemeIndex accent3
6492{
6493get
6494{
6495return this.accent3Field;
6496}
6497set
6498{
6499this.accent3Field = value;
6500}
6501}
6502
6503[XmlIgnore]
6504public bool accent3Specified
6505{
6506get
6507{
6508return this.accent3FieldSpecified;
6509}
6510set
6511{
6512this.accent3FieldSpecified = value;
6513}
6514}
6515
6516[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6517public ST_ColorSchemeIndex accent4
6518{
6519get
6520{
6521return this.accent4Field;
6522}
6523set
6524{
6525this.accent4Field = value;
6526}
6527}
6528
6529[XmlIgnore]
6530public bool accent4Specified
6531{
6532get
6533{
6534return this.accent4FieldSpecified;
6535}
6536set
6537{
6538this.accent4FieldSpecified = value;
6539}
6540}
6541
6542[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6543public ST_ColorSchemeIndex accent5
6544{
6545get
6546{
6547return this.accent5Field;
6548}
6549set
6550{
6551this.accent5Field = value;
6552}
6553}
6554
6555[XmlIgnore]
6556public bool accent5Specified
6557{
6558get
6559{
6560return this.accent5FieldSpecified;
6561}
6562set
6563{
6564this.accent5FieldSpecified = value;
6565}
6566}
6567
6568[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6569public ST_ColorSchemeIndex accent6
6570{
6571get
6572{
6573return this.accent6Field;
6574}
6575set
6576{
6577this.accent6Field = value;
6578}
6579}
6580
6581[XmlIgnore]
6582public bool accent6Specified
6583{
6584get
6585{
6586return this.accent6FieldSpecified;
6587}
6588set
6589{
6590this.accent6FieldSpecified = value;
6591}
6592}
6593
6594[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6595public ST_ColorSchemeIndex hyperlink
6596{
6597get
6598{
6599return this.hyperlinkField;
6600}
6601set
6602{
6603this.hyperlinkField = value;
6604}
6605}
6606
6607[XmlIgnore]
6608public bool hyperlinkSpecified
6609{
6610get
6611{
6612return this.hyperlinkFieldSpecified;
6613}
6614set
6615{
6616this.hyperlinkFieldSpecified = value;
6617}
6618}
6619
6620[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6621public ST_ColorSchemeIndex followedHyperlink
6622{
6623get
6624{
6625return this.followedHyperlinkField;
6626}
6627set
6628{
6629this.followedHyperlinkField = value;
6630}
6631}
6632
6633[XmlIgnore]
6634public bool followedHyperlinkSpecified
6635{
6636get
6637{
6638return this.followedHyperlinkFieldSpecified;
6639}
6640set
6641{
6642this.followedHyperlinkFieldSpecified = value;
6643}
6644}
6645}
6646
6647
6648[Serializable]
6649[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
6650public enum ST_ColorSchemeIndex
6651{
6652
6653
6654dark1,
6655
6656
6657light1,
6658
6659
6660dark2,
6661
6662
6663light2,
6664
6665
6666accent1,
6667
6668
6669accent2,
6670
6671
6672accent3,
6673
6674
6675accent4,
6676
6677
6678accent5,
6679
6680
6681accent6,
6682
6683
6684hyperlink,
6685
6686
6687followedHyperlink,
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)]
6697public class CT_Captions
6698{
6699
6700private List<CT_Caption> captionField;
6701
6702private List<CT_AutoCaption> autoCaptionsField;
6703
6704public CT_Captions()
6705{
6706//this.autoCaptionsField = new List<CT_AutoCaption>();
6707//this.captionField = new List<CT_Caption>();
6708}
6709public static CT_Captions Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6710{
6711if (node == null)
6712return null;
6713CT_Captions ctObj = new CT_Captions();
6714ctObj.caption = new List<CT_Caption>();
6715ctObj.autoCaptions = new List<CT_AutoCaption>();
6716foreach (XmlNode childNode in node.ChildNodes)
6717{
6718if (childNode.LocalName == "caption")
6719ctObj.caption.Add(CT_Caption.Parse(childNode, namespaceManager));
6720else if (childNode.LocalName == "autoCaptions")
6721ctObj.autoCaptions.Add(CT_AutoCaption.Parse(childNode, namespaceManager));
6722}
6723return ctObj;
6724}
6725
6726
6727
6728internal void Write(StreamWriter sw, string nodeName)
6729{
6730sw.Write(string.Format("<w:{0}", nodeName));
6731sw.Write(">");
6732if (this.caption != null)
6733{
6734foreach (CT_Caption x in this.caption)
6735{
6736x.Write(sw, "caption");
6737}
6738}
6739if (this.autoCaptions != null)
6740{
6741foreach (CT_AutoCaption x in this.autoCaptions)
6742{
6743x.Write(sw, "autoCaptions");
6744}
6745}
6746sw.WriteEndW(nodeName);
6747}
6748
6749[XmlElement("caption", Order = 0)]
6750public List<CT_Caption> caption
6751{
6752get
6753{
6754return this.captionField;
6755}
6756set
6757{
6758this.captionField = value;
6759}
6760}
6761
6762[XmlArray(Order = 1)]
6763[XmlArrayItem("autoCaption", IsNullable = false)]
6764public List<CT_AutoCaption> autoCaptions
6765{
6766get
6767{
6768return this.autoCaptionsField;
6769}
6770set
6771{
6772this.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)]
6782public class CT_Caption
6783{
6784
6785private string nameField;
6786
6787private ST_CaptionPos posField;
6788
6789private bool posFieldSpecified;
6790
6791private ST_OnOff chapNumField;
6792
6793private bool chapNumFieldSpecified;
6794
6795private string headingField;
6796
6797private ST_OnOff noLabelField;
6798
6799private bool noLabelFieldSpecified;
6800
6801private ST_NumberFormat numFmtField;
6802
6803private bool numFmtFieldSpecified;
6804
6805private ST_ChapterSep sepField;
6806
6807private bool sepFieldSpecified;
6808public static CT_Caption Parse(XmlNode node, XmlNamespaceManager namespaceManager)
6809{
6810if (node == null)
6811return null;
6812CT_Caption ctObj = new CT_Caption();
6813ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
6814if (node.Attributes["w:pos"] != null)
6815ctObj.pos = (ST_CaptionPos)Enum.Parse(typeof(ST_CaptionPos), node.Attributes["w:pos"].Value);
6816if (node.Attributes["w:chapNum"] != null)
6817ctObj.chapNum = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:chapNum"].Value,true);
6818ctObj.heading = XmlHelper.ReadString(node.Attributes["w:heading"]);
6819if (node.Attributes["w:noLabel"] != null)
6820ctObj.noLabel = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:noLabel"].Value,true);
6821if (node.Attributes["w:numFmt"] != null)
6822ctObj.numFmt = (ST_NumberFormat)Enum.Parse(typeof(ST_NumberFormat), node.Attributes["w:numFmt"].Value);
6823if (node.Attributes["w:sep"] != null)
6824ctObj.sep = (ST_ChapterSep)Enum.Parse(typeof(ST_ChapterSep), node.Attributes["w:sep"].Value);
6825return ctObj;
6826}
6827
6828
6829
6830internal void Write(StreamWriter sw, string nodeName)
6831{
6832sw.Write(string.Format("<w:{0}", nodeName));
6833XmlHelper.WriteAttribute(sw, "w:name", this.name);
6834XmlHelper.WriteAttribute(sw, "w:pos", this.pos.ToString());
6835XmlHelper.WriteAttribute(sw, "w:chapNum", this.chapNum.ToString());
6836XmlHelper.WriteAttribute(sw, "w:heading", this.heading);
6837XmlHelper.WriteAttribute(sw, "w:noLabel", this.noLabel.ToString());
6838XmlHelper.WriteAttribute(sw, "w:numFmt", this.numFmt.ToString());
6839XmlHelper.WriteAttribute(sw, "w:sep", this.sep.ToString());
6840sw.Write(">");
6841sw.WriteEndW(nodeName);
6842}
6843
6844[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6845public string name
6846{
6847get
6848{
6849return this.nameField;
6850}
6851set
6852{
6853this.nameField = value;
6854}
6855}
6856
6857[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6858public ST_CaptionPos pos
6859{
6860get
6861{
6862return this.posField;
6863}
6864set
6865{
6866this.posField = value;
6867}
6868}
6869
6870[XmlIgnore]
6871public bool posSpecified
6872{
6873get
6874{
6875return this.posFieldSpecified;
6876}
6877set
6878{
6879this.posFieldSpecified = value;
6880}
6881}
6882
6883[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6884public ST_OnOff chapNum
6885{
6886get
6887{
6888return this.chapNumField;
6889}
6890set
6891{
6892this.chapNumField = value;
6893}
6894}
6895
6896[XmlIgnore]
6897public bool chapNumSpecified
6898{
6899get
6900{
6901return this.chapNumFieldSpecified;
6902}
6903set
6904{
6905this.chapNumFieldSpecified = value;
6906}
6907}
6908
6909[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
6910public string heading
6911{
6912get
6913{
6914return this.headingField;
6915}
6916set
6917{
6918this.headingField = value;
6919}
6920}
6921
6922[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6923public ST_OnOff noLabel
6924{
6925get
6926{
6927return this.noLabelField;
6928}
6929set
6930{
6931this.noLabelField = value;
6932}
6933}
6934
6935[XmlIgnore]
6936public bool noLabelSpecified
6937{
6938get
6939{
6940return this.noLabelFieldSpecified;
6941}
6942set
6943{
6944this.noLabelFieldSpecified = value;
6945}
6946}
6947
6948[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6949public ST_NumberFormat numFmt
6950{
6951get
6952{
6953return this.numFmtField;
6954}
6955set
6956{
6957this.numFmtField = value;
6958}
6959}
6960
6961[XmlIgnore]
6962public bool numFmtSpecified
6963{
6964get
6965{
6966return this.numFmtFieldSpecified;
6967}
6968set
6969{
6970this.numFmtFieldSpecified = value;
6971}
6972}
6973
6974[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
6975public ST_ChapterSep sep
6976{
6977get
6978{
6979return this.sepField;
6980}
6981set
6982{
6983this.sepField = value;
6984}
6985}
6986
6987[XmlIgnore]
6988public bool sepSpecified
6989{
6990get
6991{
6992return this.sepFieldSpecified;
6993}
6994set
6995{
6996this.sepFieldSpecified = value;
6997}
6998}
6999}
7000
7001
7002[Serializable]
7003[XmlType(Namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")]
7004public enum ST_CaptionPos
7005{
7006
7007
7008above,
7009
7010
7011below,
7012
7013
7014left,
7015
7016
7017right,
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)]
7025public class CT_AutoCaption
7026{
7027
7028private string nameField;
7029
7030private string captionField;
7031public static CT_AutoCaption Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7032{
7033if (node == null)
7034return null;
7035CT_AutoCaption ctObj = new CT_AutoCaption();
7036ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
7037ctObj.caption = XmlHelper.ReadString(node.Attributes["w:caption"]);
7038return ctObj;
7039}
7040
7041
7042
7043internal void Write(StreamWriter sw, string nodeName)
7044{
7045sw.Write(string.Format("<w:{0}", nodeName));
7046XmlHelper.WriteAttribute(sw, "w:name", this.name);
7047XmlHelper.WriteAttribute(sw, "w:caption", this.caption);
7048sw.Write(">");
7049sw.WriteEndW(nodeName);
7050}
7051
7052[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7053public string name
7054{
7055get
7056{
7057return this.nameField;
7058}
7059set
7060{
7061this.nameField = value;
7062}
7063}
7064
7065[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7066public string caption
7067{
7068get
7069{
7070return this.captionField;
7071}
7072set
7073{
7074this.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)]
7084public class CT_ReadingModeInkLockDown
7085{
7086
7087private ST_OnOff actualPgField;
7088
7089private ulong wField;
7090
7091private ulong hField;
7092
7093private string fontSzField;
7094public static CT_ReadingModeInkLockDown Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7095{
7096if (node == null)
7097return null;
7098CT_ReadingModeInkLockDown ctObj = new CT_ReadingModeInkLockDown();
7099if (node.Attributes["w:actualPg"] != null)
7100ctObj.actualPg = (ST_OnOff)Enum.Parse(typeof(ST_OnOff), node.Attributes["w:actualPg"].Value,true);
7101ctObj.w = XmlHelper.ReadULong(node.Attributes["w:w"]);
7102ctObj.h = XmlHelper.ReadULong(node.Attributes["w:h"]);
7103ctObj.fontSz = XmlHelper.ReadString(node.Attributes["w:fontSz"]);
7104return ctObj;
7105}
7106
7107
7108
7109internal void Write(StreamWriter sw, string nodeName)
7110{
7111sw.Write(string.Format("<w:{0}", nodeName));
7112XmlHelper.WriteAttribute(sw, "w:actualPg", this.actualPg.ToString());
7113XmlHelper.WriteAttribute(sw, "w:w", this.w);
7114XmlHelper.WriteAttribute(sw, "w:h", this.h);
7115XmlHelper.WriteAttribute(sw, "w:fontSz", this.fontSz);
7116sw.Write(">");
7117sw.WriteEndW(nodeName);
7118}
7119
7120[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7121public ST_OnOff actualPg
7122{
7123get
7124{
7125return this.actualPgField;
7126}
7127set
7128{
7129this.actualPgField = value;
7130}
7131}
7132
7133[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7134public ulong w
7135{
7136get
7137{
7138return this.wField;
7139}
7140set
7141{
7142this.wField = value;
7143}
7144}
7145
7146[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7147public ulong h
7148{
7149get
7150{
7151return this.hField;
7152}
7153set
7154{
7155this.hField = value;
7156}
7157}
7158
7159[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, DataType = "integer")]
7160public string fontSz
7161{
7162get
7163{
7164return this.fontSzField;
7165}
7166set
7167{
7168this.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)]
7178public class CT_SmartTagType
7179{
7180
7181private string namespaceuriField;
7182
7183private string nameField;
7184
7185private string urlField;
7186public static CT_SmartTagType Parse(XmlNode node, XmlNamespaceManager namespaceManager)
7187{
7188if (node == null)
7189return null;
7190CT_SmartTagType ctObj = new CT_SmartTagType();
7191ctObj.namespaceuri = XmlHelper.ReadString(node.Attributes["w:namespaceuri"]);
7192ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
7193ctObj.url = XmlHelper.ReadString(node.Attributes["w:url"]);
7194return ctObj;
7195}
7196
7197
7198
7199internal void Write(StreamWriter sw, string nodeName)
7200{
7201sw.Write(string.Format("<w:{0}", nodeName));
7202XmlHelper.WriteAttribute(sw, "w:namespaceuri", this.namespaceuri);
7203XmlHelper.WriteAttribute(sw, "w:name", this.name);
7204XmlHelper.WriteAttribute(sw, "w:url", this.url);
7205sw.Write(">");
7206sw.WriteEndW(nodeName);
7207}
7208
7209[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7210public string namespaceuri
7211{
7212get
7213{
7214return this.namespaceuriField;
7215}
7216set
7217{
7218this.namespaceuriField = value;
7219}
7220}
7221
7222[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7223public string name
7224{
7225get
7226{
7227return this.nameField;
7228}
7229set
7230{
7231this.nameField = value;
7232}
7233}
7234
7235[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified)]
7236public string url
7237{
7238get
7239{
7240return this.urlField;
7241}
7242set
7243{
7244this.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)]
7254public class CT_WebSettings
7255{
7256
7257private CT_Frameset framesetField;
7258
7259private CT_Divs divsField;
7260
7261private CT_String encodingField;
7262
7263private CT_OnOff optimizeForBrowserField;
7264
7265private CT_OnOff relyOnVMLField;
7266
7267private CT_OnOff allowPNGField;
7268
7269private CT_OnOff doNotRelyOnCSSField;
7270
7271private CT_OnOff doNotSaveAsSingleFileField;
7272
7273private CT_OnOff doNotOrganizeInFolderField;
7274
7275private CT_OnOff doNotUseLongFileNamesField;
7276
7277private CT_DecimalNumber pixelsPerInchField;
7278
7279private CT_TargetScreenSz targetScreenSzField;
7280
7281private CT_OnOff saveSmartTagsAsXmlField;
7282
7283public 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();
7292this.allowPNGField = new CT_OnOff();
7293//this.relyOnVMLField = new CT_OnOff();
7294this.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)]
7301public CT_Frameset frameset
7302{
7303get
7304{
7305return this.framesetField;
7306}
7307set
7308{
7309this.framesetField = value;
7310}
7311}
7312
7313[XmlElement(Order = 1)]
7314public CT_Divs divs
7315{
7316get
7317{
7318return this.divsField;
7319}
7320set
7321{
7322this.divsField = value;
7323}
7324}
7325
7326[XmlElement(Order = 2)]
7327public CT_String encoding
7328{
7329get
7330{
7331return this.encodingField;
7332}
7333set
7334{
7335this.encodingField = value;
7336}
7337}
7338
7339[XmlElement(Order = 3)]
7340public CT_OnOff optimizeForBrowser
7341{
7342get
7343{
7344return this.optimizeForBrowserField;
7345}
7346set
7347{
7348this.optimizeForBrowserField = value;
7349}
7350}
7351
7352[XmlElement(Order = 4)]
7353public CT_OnOff relyOnVML
7354{
7355get
7356{
7357return this.relyOnVMLField;
7358}
7359set
7360{
7361this.relyOnVMLField = value;
7362}
7363}
7364
7365[XmlElement(Order = 5)]
7366public CT_OnOff allowPNG
7367{
7368get
7369{
7370return this.allowPNGField;
7371}
7372set
7373{
7374this.allowPNGField = value;
7375}
7376}
7377
7378[XmlElement(Order = 6)]
7379public CT_OnOff doNotRelyOnCSS
7380{
7381get
7382{
7383return this.doNotRelyOnCSSField;
7384}
7385set
7386{
7387this.doNotRelyOnCSSField = value;
7388}
7389}
7390
7391[XmlElement(Order = 7)]
7392public CT_OnOff doNotSaveAsSingleFile
7393{
7394get
7395{
7396return this.doNotSaveAsSingleFileField;
7397}
7398set
7399{
7400this.doNotSaveAsSingleFileField = value;
7401}
7402}
7403
7404[XmlElement(Order = 8)]
7405public CT_OnOff doNotOrganizeInFolder
7406{
7407get
7408{
7409return this.doNotOrganizeInFolderField;
7410}
7411set
7412{
7413this.doNotOrganizeInFolderField = value;
7414}
7415}
7416
7417[XmlElement(Order = 9)]
7418public CT_OnOff doNotUseLongFileNames
7419{
7420get
7421{
7422return this.doNotUseLongFileNamesField;
7423}
7424set
7425{
7426this.doNotUseLongFileNamesField = value;
7427}
7428}
7429
7430[XmlElement(Order = 10)]
7431public CT_DecimalNumber pixelsPerInch
7432{
7433get
7434{
7435return this.pixelsPerInchField;
7436}
7437set
7438{
7439this.pixelsPerInchField = value;
7440}
7441}
7442
7443[XmlElement(Order = 11)]
7444public CT_TargetScreenSz targetScreenSz
7445{
7446get
7447{
7448return this.targetScreenSzField;
7449}
7450set
7451{
7452this.targetScreenSzField = value;
7453}
7454}
7455
7456[XmlElement(Order = 12)]
7457public CT_OnOff saveSmartTagsAsXml
7458{
7459get
7460{
7461return this.saveSmartTagsAsXmlField;
7462}
7463set
7464{
7465this.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)]
7474public class CT_ShapeDefaults
7475{
7476
7477private System.Xml.XmlElement[] itemsField;
7478
7479public CT_ShapeDefaults()
7480{
7481this.itemsField = new System.Xml.XmlElement[0];
7482}
7483
7484[XmlAnyElement(Namespace = "urn:schemas-microsoft-com:office:office", Order = 0)]
7485public System.Xml.XmlElement[] Items
7486{
7487get
7488{
7489return this.itemsField;
7490}
7491set
7492{
7493this.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)]
7503public class CT_AutoCaptions
7504{
7505
7506private List<CT_AutoCaption> autoCaptionField;
7507
7508public CT_AutoCaptions()
7509{
7510this.autoCaptionField = new List<CT_AutoCaption>();
7511}
7512
7513[XmlElement("autoCaption", Order = 0)]
7514public List<CT_AutoCaption> autoCaption
7515{
7516get
7517{
7518return this.autoCaptionField;
7519}
7520set
7521{
7522this.autoCaptionField = value;
7523}
7524}
7525}
7526
7527}
7528