示例#1
0
文件: FormField.cs 项目: zzy092/npoi
        public static CT_FFTextInput Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFTextInput ctObj = new CT_FFTextInput();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "type")
                {
                    ctObj.typeField = CT_FFTextType.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "default")
                {
                    ctObj.defaultField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "format")
                {
                    ctObj.formatField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "maxLength")
                {
                    ctObj.maxLengthField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
示例#2
0
文件: Frame.cs 项目: hiodava/Romero
 public CT_Frameset()
 {
     this.itemsField            = new object[0];
     this.frameLayoutField      = new CT_FrameLayout();
     this.framesetSplitbarField = new CT_FramesetSplitbar();
     this.szField = new CT_String();
 }
示例#3
0
文件: FormField.cs 项目: zzy092/npoi
 public CT_FFTextInput()
 {
     this.formatField    = new CT_String();
     this.maxLengthField = new CT_DecimalNumber();
     this.defaultField   = new CT_String();
     this.typeField      = new CT_FFTextType();
 }
示例#4
0
文件: FormField.cs 项目: zzy092/npoi
        public static CT_FFDDList Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFDDList ctObj = new CT_FFDDList();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "result")
                {
                    ctObj.resultField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "default")
                {
                    ctObj.defaultField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "listEntry")
                {
                    ctObj.listEntryField.Add(CT_String.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
示例#5
0
文件: Frame.cs 项目: ctddjyds/npoi
 public CT_Frameset()
 {
     this.itemsField = new object[0];
     this.frameLayoutField = new CT_FrameLayout();
     this.framesetSplitbarField = new CT_FramesetSplitbar();
     this.szField = new CT_String();
 }
示例#6
0
文件: Frame.cs 项目: hiodava/Romero
 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();
 }
示例#7
0
        public static CT_String Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_String ctObj = new CT_String();

            ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
            return(ctObj);
        }
示例#8
0
 public void Set(CT_AbstractNum cT_AbstractNum)
 {
     this.abstractNumIdField  = cT_AbstractNum.abstractNumIdField;
     this.lvlField            = new List <CT_Lvl>(cT_AbstractNum.lvlField);
     this.multiLevelTypeField = cT_AbstractNum.multiLevelTypeField;
     this.nameField           = cT_AbstractNum.nameField;
     this.nsidField           = cT_AbstractNum.nsidField;
     this.numStyleLinkField   = cT_AbstractNum.numStyleLinkField;
     this.styleLinkField      = cT_AbstractNum.styleLinkField;
     this.tmplField           = cT_AbstractNum.tmplField;
 }
示例#9
0
文件: Font.cs 项目: ornoand/npoi
 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();
 }
示例#10
0
 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();
 }
示例#11
0
 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();
 }
示例#12
0
 public CT_DocPartCategory()
 {
     this.galleryField = new CT_DocPartGallery();
     this.nameField    = new CT_String();
 }
示例#13
0
文件: Frame.cs 项目: ctddjyds/npoi
 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();
 }
示例#14
0
 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();
 }
示例#15
0
 public CT_CustomXmlPr()
 {
     this.attrField        = new List <CT_Attr>();
     this.placeholderField = new CT_String();
 }
示例#16
0
 public void Set(CT_AbstractNum cT_AbstractNum)
 {
     this.abstractNumIdField = cT_AbstractNum.abstractNumIdField;
     this.lvlField = new List<CT_Lvl>(cT_AbstractNum.lvlField);
     this.multiLevelTypeField = cT_AbstractNum.multiLevelTypeField;
     this.nameField = cT_AbstractNum.nameField;
     this.nsidField = cT_AbstractNum.nsidField;
     this.numStyleLinkField = cT_AbstractNum.numStyleLinkField;
     this.styleLinkField = cT_AbstractNum.styleLinkField;
     this.tmplField = cT_AbstractNum.tmplField;
 }
示例#17
0
 public static CT_String Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_String ctObj = new CT_String();
     ctObj.val = XmlHelper.ReadString(node.Attributes["w:val"]);
     return ctObj;
 }
示例#18
0
 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();
 }
示例#19
0
 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();
 }
示例#20
0
文件: Styles.cs 项目: xoposhiy/npoi
 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();
 }
示例#21
0
 public CT_FFTextInput()
 {
     this.formatField = new CT_String();
     this.maxLengthField = new CT_DecimalNumber();
     this.defaultField = new CT_String();
     this.typeField = new CT_FFTextType();
 }