public static CT_FFCheckBox Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FFCheckBox ctObj = new CT_FFCheckBox(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "checked") { ctObj.checkedField = CT_OnOff.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "default") { ctObj.defaultField = CT_OnOff.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "size") { ctObj.itemField = CT_HpsMeasure.Parse(childNode, namespaceManager); } else if (childNode.LocalName == "sizeAuto") { ctObj.itemField = CT_OnOff.Parse(childNode, namespaceManager); } } return(ctObj); }
public CT_FramesetSplitbar() { this.flatBordersField = new CT_OnOff(); this.noBorderField = new CT_OnOff(); this.colorField = new CT_Color(); this.wField = new CT_TwipsMeasure(); }
/** * For isBold, isItalic etc */ private bool IsCTOnOff(W.CT_OnOff onoff) { if (!onoff.IsSetVal()) { return(true); } return(onoff.val); }
internal static CT_FFData Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_FFData ctObj = new CT_FFData(); foreach (XmlNode childNode in node.ChildNodes) { if (childNode.LocalName == "name") { ctObj.AddNewObject(CT_FFName.Parse(childNode, namespaceManager), FFDataItemsType.name); } //else if (childNode.LocalName == "tabIndex") //{ //} else if (childNode.LocalName == "enabled") { ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.enabled); } else if (childNode.LocalName == "calcOnExit") { ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.calcOnExit); } else if (childNode.LocalName == "checkBox") { ctObj.AddNewObject(CT_FFCheckBox.Parse(childNode, namespaceManager), FFDataItemsType.checkBox); } else if (childNode.LocalName == "ddList") { ctObj.AddNewObject(CT_FFDDList.Parse(childNode, namespaceManager), FFDataItemsType.ddList); } else if (childNode.LocalName == "entryMacro") { ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.entryMacro); } else if (childNode.LocalName == "exitMacro") { ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.exitMacro); } else if (childNode.LocalName == "helpText") { ctObj.AddNewObject(CT_FFHelpText.Parse(childNode, namespaceManager), FFDataItemsType.helpText); } else if (childNode.LocalName == "statusText") { ctObj.AddNewObject(CT_FFStatusText.Parse(childNode, namespaceManager), FFDataItemsType.statusText); } else if (childNode.LocalName == "textInput") { ctObj.AddNewObject(CT_FFTextInput.Parse(childNode, namespaceManager), FFDataItemsType.textInput); } } return(ctObj); }
public CT_RubyPr() { this.dirtyField = new CT_OnOff(); this.lidField = new CT_Lang(); this.hpsBaseTextField = new CT_HpsMeasure(); this.hpsRaiseField = new CT_HpsMeasure(); this.hpsField = new CT_HpsMeasure(); this.rubyAlignField = new CT_RubyAlign(); }
public CT_Frame() { this.linkedToFileField = new CT_OnOff(); this.noResizeAllowedField = new CT_OnOff(); this.scrollbarField = new CT_FrameScrollbar(); this.marHField = new CT_PixelsMeasure(); this.marWField = new CT_PixelsMeasure(); this.sourceFileNameField = new CT_Rel(); this.nameField = new CT_String(); this.szField = new CT_String(); }
public static CT_OnOff Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) return null; CT_OnOff ctObj = new CT_OnOff(); if (node.Attributes["w:val"] != null) { ctObj.val = XmlHelper.ReadBool(node.Attributes["w:val"]); } return ctObj; }
public CT_Font() { this.embedBoldItalicField = new CT_FontRel(); this.embedItalicField = new CT_FontRel(); this.embedBoldField = new CT_FontRel(); this.embedRegularField = new CT_FontRel(); this.sigField = new CT_FontSig(); this.pitchField = new CT_Pitch(); this.notTrueTypeField = new CT_OnOff(); this.familyField = new CT_FontFamily(); this.charsetField = new CT_UcharHexNumber(); this.panose1Field = new CT_Panose(); this.altNameField = new CT_String(); }
public static CT_OnOff Parse(XmlNode node, XmlNamespaceManager namespaceManager) { if (node == null) { return(null); } CT_OnOff ctObj = new CT_OnOff(); if (node.Attributes["w:val"] != null) { ctObj.val = XmlHelper.ReadBool(node.Attributes["w:val"]); } else { ctObj.val = true; } return(ctObj); }
public CT_Compat() { //this.cachedColBalanceField = new CT_OnOff(); //this.useAnsiKerningPairsField = new CT_OnOff(); //this.doNotVertAlignInTxbxField = new CT_OnOff(); //this.doNotBreakConstrainedForcedTableField = new CT_OnOff(); //this.doNotVertAlignCellWithSpField = new CT_OnOff(); //this.splitPgBreakAndParaMarkField = new CT_OnOff(); //this.displayHangulFixedWidthField = new CT_OnOff(); //this.underlineTabInNumListField = new CT_OnOff(); //this.autofitToFirstFixedWidthCellField = new CT_OnOff(); //this.doNotAutofitConstrainedTablesField = new CT_OnOff(); //this.doNotSuppressIndentationField = new CT_OnOff(); //this.allowSpaceOfSameStyleInTableField = new CT_OnOff(); //this.useAltKinsokuLineBreakRulesField = new CT_OnOff(); //this.doNotUseIndentAsNumberingTabStopField = new CT_OnOff(); //this.useNormalStyleForListField = new CT_OnOff(); this.useFELayoutField = new CT_OnOff(); //this.growAutofitField = new CT_OnOff(); //this.useWord2002TableStyleRulesField = new CT_OnOff(); //this.doNotUseEastAsianBreakRulesField = new CT_OnOff(); //this.doNotWrapTextWithPunctField = new CT_OnOff(); //this.applyBreakingRulesField = new CT_OnOff(); //this.selectFldWithFirstOrLastCharField = new CT_OnOff(); //this.doNotSnapToGridInCellField = new CT_OnOff(); //this.doNotBreakWrappedTablesField = new CT_OnOff(); //this.useWord97LineBreakRulesField = new CT_OnOff(); //this.layoutTableRowsApartField = new CT_OnOff(); //this.layoutRawTableWidthField = new CT_OnOff(); //this.doNotUseHTMLParagraphAutoSpacingField = new CT_OnOff(); //this.noSpaceRaiseLowerField = new CT_OnOff(); //this.autoSpaceLikeWord95Field = new CT_OnOff(); this.adjustLineHeightInTableField = new CT_OnOff(); //this.forgetLastTabAlignmentField = new CT_OnOff(); //this.alignTablesRowByRowField = new CT_OnOff(); //this.shapeLayoutLikeWW8Field = new CT_OnOff(); //this.footnoteLayoutLikeWW8Field = new CT_OnOff(); //this.wrapTrailSpacesField = new CT_OnOff(); //this.doNotSuppressParagraphBordersField = new CT_OnOff(); //this.usePrinterMetricsField = new CT_OnOff(); //this.mwSmallCapsField = new CT_OnOff(); //this.truncateFontHeightsLikeWP6Field = new CT_OnOff(); //this.convMailMergeEscField = new CT_OnOff(); //this.swapBordersFacingPagesField = new CT_OnOff(); //this.suppressSpBfAfterPgBrkField = new CT_OnOff(); //this.suppressTopSpacingWPField = new CT_OnOff(); //this.suppressSpacingAtTopOfPageField = new CT_OnOff(); //this.suppressTopSpacingField = new CT_OnOff(); //this.suppressBottomSpacingField = new CT_OnOff(); //this.subFontBySizeField = new CT_OnOff(); //this.showBreaksInFramesField = new CT_OnOff(); //this.wpSpaceWidthField = new CT_OnOff(); //this.printColBlackField = new CT_OnOff(); //this.printBodyTextBeforeHeaderField = new CT_OnOff(); //this.lineWrapLikeWord6Field = new CT_OnOff(); //this.spacingInWholePointsField = new CT_OnOff(); this.doNotExpandShiftReturnField = new CT_OnOff(); this.ulTrailSpaceField = new CT_OnOff(); this.doNotLeaveBackslashAloneField = new CT_OnOff(); //this.noExtraLineSpacingField = new CT_OnOff(); this.balanceSingleByteDoubleByteWidthField = new CT_OnOff(); //this.noColumnBalanceField = new CT_OnOff(); this.spaceForULField = new CT_OnOff(); //this.noLeadingField = new CT_OnOff(); //this.noTabHangIndField = new CT_OnOff(); //this.wpJustificationField = new CT_OnOff(); //this.useSingleBorderforContiguousCellsField = new CT_OnOff(); }
public CT_FFCheckBox() { this.checkedField = new CT_OnOff(); this.defaultField = new CT_OnOff(); }
/** * Enforces fields update on document open (in Word). * In the settings.xml file <br/> * sets the updateSettings value to true (w:updateSettings w:val="true") * * NOTICES: * <ul> * <li>Causing Word to ask on open: "This document contains fields that may refer to other files. Do you want to update the fields in this document?" * (if "Update automatic links at open" is enabled)</li> * <li>Flag is removed after saving with changes in Word </li> * </ul> */ public void SetUpdateFields() { CT_OnOff onOff = new CT_OnOff(); onOff.val = true; ctSettings.updateFields=(onOff); }
/** * For isBold, isItalic etc */ private bool IsCTOnOff(CT_OnOff onoff) { if (!onoff.IsSetVal()) return true; return onoff.val; }
public CT_OdsoFieldMapData() { this.dynamicAddressField = new CT_OnOff(); this.lidField = new CT_Lang(); this.columnField = new CT_DecimalNumber(); this.mappedNameField = new CT_String(); this.nameField = new CT_String(); this.typeField = new CT_MailMergeOdsoFMDFieldType(); }
public CT_Odso() { this.recipientDataField = new List<CT_Rel>(); this.fieldMapDataField = new List<CT_OdsoFieldMapData>(); this.fHdrField = new CT_OnOff(); this.typeField = new CT_MailMergeSourceType(); this.colDelimField = new CT_DecimalNumber(); this.srcField = new CT_Rel(); this.tableField = new CT_String(); this.udlField = new CT_String(); }
public CT_MailMerge() { this.odsoField = new CT_Odso(); this.checkErrorsField = new CT_DecimalNumber(); this.activeRecordField = new CT_DecimalNumber(); this.viewMergedDataField = new CT_OnOff(); this.mailAsAttachmentField = new CT_OnOff(); this.mailSubjectField = new CT_String(); this.addressFieldNameField = new CT_String(); this.destinationField = new CT_MailMergeDest(); this.doNotSuppressBlankLinesField = new CT_OnOff(); this.headerSourceField = new CT_Rel(); this.dataSourceField = new CT_Rel(); this.queryField = new CT_String(); this.connectStringField = new CT_String(); this.dataTypeField = new CT_MailMergeDataType(); this.linkToQueryField = new CT_OnOff(); this.mainDocumentTypeField = new CT_MailMergeDocType(); }
public CT_Settings() { this.listSeparatorField = new CT_String(); this.listSeparator.val = ","; this.decimalSymbolField = new CT_String(); this.decimalSymbol.val = "."; //this.doNotEmbedSmartTagsField = new CT_OnOff(); this.shapeDefaultsField = new System.Xml.XmlElement[0]; //this.schemaLibraryField = new List<CT_Schema>(); //this.smartTagTypeField = new List<CT_SmartTagType>(); //this.readModeInkLockDownField = new CT_ReadingModeInkLockDown(); //this.captionsField = new CT_Captions(); //this.forceUpgradeField = new CT_Empty(); //this.doNotAutoCompressPicturesField = new CT_OnOff(); //this.doNotIncludeSubdocsInStatsField = new CT_OnOff(); this.clrSchemeMappingField = new CT_ColorSchemeMapping(); this.clrSchemeMapping.bg1 = ST_ColorSchemeIndex.light1; this.clrSchemeMapping.t1 = ST_ColorSchemeIndex.dark1; this.clrSchemeMapping.bg2 = ST_ColorSchemeIndex.light2; this.clrSchemeMapping.t2 = ST_ColorSchemeIndex.dark2; this.clrSchemeMapping.accent1 = ST_ColorSchemeIndex.accent1; this.clrSchemeMapping.accent2 = ST_ColorSchemeIndex.accent2; this.clrSchemeMapping.accent3 = ST_ColorSchemeIndex.accent3; this.clrSchemeMapping.accent4 = ST_ColorSchemeIndex.accent4; this.clrSchemeMapping.accent5 = ST_ColorSchemeIndex.accent5; this.clrSchemeMapping.accent6 = ST_ColorSchemeIndex.accent6; this.clrSchemeMapping.hyperlink = ST_ColorSchemeIndex.hyperlink; this.clrSchemeMapping.followedHyperlink = ST_ColorSchemeIndex.followedHyperlink; this.themeFontLangField = new CT_Language(); this.themeFontLang.val = "en-US"; this.themeFontLang.eastAsia = "zh-CN"; //this.attachedSchemaField = new List<CT_String>(); //this.uiCompat97To2003Field = new CT_OnOff(); this.mathPrField = new NPOI.OpenXmlFormats.Shared.CT_MathPr(); this.rsidsField = new CT_DocRsids(); //this.docVarsField = new List<CT_DocVar>(); this.compatField = new CT_Compat(); //this.endnotePrField = new CT_EdnDocProps(); //this.footnotePrField = new CT_FtnDocProps(); //this.hdrShapeDefaultsField = new System.Xml.XmlElement[0]; //this.updateFieldsField = new CT_OnOff(); //this.alwaysMergeEmptyNamespaceField = new CT_OnOff(); //this.showXMLTagsField = new CT_OnOff(); //this.saveThroughXsltField = new CT_SaveThroughXslt(); //this.useXSLTWhenSavingField = new CT_OnOff(); //this.saveXmlDataOnlyField = new CT_OnOff(); //this.doNotDemarcateInvalidXmlField = new CT_OnOff(); //this.alwaysShowPlaceholderTextField = new CT_OnOff(); //this.ignoreMixedContentField = new CT_OnOff(); //this.saveInvalidXmlField = new CT_OnOff(); //this.doNotValidateAgainstSchemaField = new CT_OnOff(); //this.savePreviewPictureField = new CT_OnOff(); //this.noLineBreaksBeforeField = new CT_Kinsoku(); //this.noLineBreaksAfterField = new CT_Kinsoku(); //this.strictFirstAndLastCharsField = new CT_OnOff(); //this.printTwoOnOneField = new CT_OnOff(); this.characterSpacingControlField = new CT_CharacterSpacing(); this.characterSpacingControl.val = ST_CharacterSpacing.compressPunctuation; //this.noPunctuationKerningField = new CT_OnOff(); //this.doNotShadeFormDataField = new CT_OnOff(); //this.drawingGridVerticalOriginField = new CT_TwipsMeasure(); //this.drawingGridHorizontalOriginField = new CT_TwipsMeasure(); //this.doNotUseMarginsForDrawingGridOriginField = new CT_OnOff(); this.displayVerticalDrawingGridEveryField = new CT_DecimalNumber(); this.displayVerticalDrawingGridEvery.val = "2"; this.displayHorizontalDrawingGridEveryField = new CT_DecimalNumber(); this.displayHorizontalDrawingGridEvery.val = "0"; this.drawingGridVerticalSpacingField = new CT_TwipsMeasure(); this.drawingGridVerticalSpacing.val = 156; //this.drawingGridHorizontalSpacingField = new CT_TwipsMeasure(); //this.bookFoldPrintingSheetsField = new CT_DecimalNumber(); //this.bookFoldPrintingField = new CT_OnOff(); //this.bookFoldRevPrintingField = new CT_OnOff(); //this.evenAndOddHeadersField = new CT_OnOff(); //this.defaultTableStyleField = new CT_String(); //this.clickAndTypeStyleField = new CT_String(); //this.summaryLengthField = new CT_DecimalNumber(); //this.showEnvelopeField = new CT_OnOff(); //this.doNotHyphenateCapsField = new CT_OnOff(); //this.hyphenationZoneField = new CT_TwipsMeasure(); //this.consecutiveHyphenLimitField = new CT_DecimalNumber(); //this.autoHyphenationField = new CT_OnOff(); this.defaultTabStopField = new CT_TwipsMeasure(); this.defaultTabStopField.val = 420; //this.styleLockQFSetField = new CT_OnOff(); //this.styleLockThemeField = new CT_OnOff(); //this.autoFormatOverrideField = new CT_OnOff(); //this.documentProtectionField = new CT_DocProtect(); //this.doNotTrackFormattingField = new CT_OnOff(); //this.doNotTrackMovesField = new CT_OnOff(); //this.trackRevisionsField = new CT_OnOff(); //this.revisionViewField = new CT_TrackChangesView(); //this.mailMergeField = new CT_MailMerge(); //this.documentTypeField = new CT_DocType(); //this.stylePaneSortMethodField = new CT_ShortHexNumber(); //this.stylePaneFormatFilterField = new CT_ShortHexNumber(); //this.linkStylesField = new CT_OnOff(); //this.attachedTemplateField = new CT_Rel(); //this.formsDesignField = new CT_OnOff(); //this.proofStateField = new CT_Proof(); //this.activeWritingStyleField = new List<CT_WritingStyle>(); //this.hideGrammaticalErrorsField = new CT_OnOff(); //this.hideSpellingErrorsField = new CT_OnOff(); //this.gutterAtTopField = new CT_OnOff(); this.bordersDoNotSurroundFooterField = new CT_OnOff(); this.bordersDoNotSurroundHeaderField = new CT_OnOff(); //this.alignBordersAndEdgesField = new CT_OnOff(); //this.mirrorMarginsField = new CT_OnOff(); //this.saveFormsDataField = new CT_OnOff(); //this.saveSubsetFontsField = new CT_OnOff(); //this.embedSystemFontsField = new CT_OnOff(); //this.embedTrueTypeFontsField = new CT_OnOff(); //this.printFormsDataField = new CT_OnOff(); //this.printFractionalCharacterWidthField = new CT_OnOff(); //this.printPostScriptOverTextField = new CT_OnOff(); //this.displayBackgroundShapeField = new CT_OnOff(); //this.doNotDisplayPageBoundariesField = new CT_OnOff(); //this.removeDateAndTimeField = new CT_OnOff(); //this.removePersonalInformationField = new CT_OnOff(); this.zoomField = new CT_Zoom(); //this.viewField = new CT_View(); //this.writeProtectionField = new CT_WriteProtection(); }
public CT_Style() { this.tblStylePrField = new List<CT_TblStylePr>(); this.tcPrField = new CT_TcPr(); this.trPrField = new CT_TrPr(); this.tblPrField = new CT_TblPrBase(); this.rPrField = new CT_RPr(); this.pPrField = new CT_PPr(); this.rsidField = new CT_LongHexNumber(); this.personalReplyField = new CT_OnOff(); this.personalComposeField = new CT_OnOff(); this.personalField = new CT_OnOff(); this.lockedField = new CT_OnOff(); this.qFormatField = new CT_OnOff(); this.unhideWhenUsedField = new CT_OnOff(); this.semiHiddenField = new CT_OnOff(); this.uiPriorityField = new CT_DecimalNumber(); this.hiddenField = new CT_OnOff(); this.autoRedefineField = new CT_OnOff(); this.linkField = new CT_String(); this.nextField = new CT_String(); this.basedOnField = new CT_String(); this.aliasesField = new CT_String(); this.nameField = new CT_String(); }
public CT_WebSettings() { //this.saveSmartTagsAsXmlField = new CT_OnOff(); //this.targetScreenSzField = new CT_TargetScreenSz(); //this.pixelsPerInchField = new CT_DecimalNumber(); //this.doNotUseLongFileNamesField = new CT_OnOff(); //this.doNotOrganizeInFolderField = new CT_OnOff(); //this.doNotSaveAsSingleFileField = new CT_OnOff(); //this.doNotRelyOnCSSField = new CT_OnOff(); this.allowPNGField = new CT_OnOff(); //this.relyOnVMLField = new CT_OnOff(); this.optimizeForBrowserField = new CT_OnOff(); //this.encodingField = new CT_String(); //this.divsField = new CT_Divs(); //this.framesetField = new CT_Frameset(); }
/** * For isBold, isItalic etc */ private bool IsCTOnOff(CT_OnOff onoff) { if (!onoff.IsSetVal()) return true; if (onoff.val == ST_OnOff.on) return true; if (onoff.val == ST_OnOff.True) return true; return false; }