diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java index 563720ea69..ae019e9bf0 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/CHPAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Character Properties. @@ -77,27 +77,27 @@ public abstract class CHPAbstractType private short field_1_chse; private int field_2_format_flags; - private BitField fBold = new BitField(0x0001); - private BitField fItalic = new BitField(0x0002); - private BitField fRMarkDel = new BitField(0x0004); - private BitField fOutline = new BitField(0x0008); - private BitField fFldVanish = new BitField(0x0010); - private BitField fSmallCaps = new BitField(0x0020); - private BitField fCaps = new BitField(0x0040); - private BitField fVanish = new BitField(0x0080); - private BitField fRMark = new BitField(0x0100); - private BitField fSpec = new BitField(0x0200); - private BitField fStrike = new BitField(0x0400); - private BitField fObj = new BitField(0x0800); - private BitField fShadow = new BitField(0x1000); - private BitField fLowerCase = new BitField(0x2000); - private BitField fData = new BitField(0x4000); - private BitField fOle2 = new BitField(0x8000); + private static BitField fBold = new BitField(0x0001); + private static BitField fItalic = new BitField(0x0002); + private static BitField fRMarkDel = new BitField(0x0004); + private static BitField fOutline = new BitField(0x0008); + private static BitField fFldVanish = new BitField(0x0010); + private static BitField fSmallCaps = new BitField(0x0020); + private static BitField fCaps = new BitField(0x0040); + private static BitField fVanish = new BitField(0x0080); + private static BitField fRMark = new BitField(0x0100); + private static BitField fSpec = new BitField(0x0200); + private static BitField fStrike = new BitField(0x0400); + private static BitField fObj = new BitField(0x0800); + private static BitField fShadow = new BitField(0x1000); + private static BitField fLowerCase = new BitField(0x2000); + private static BitField fData = new BitField(0x4000); + private static BitField fOle2 = new BitField(0x8000); private int field_3_format_flags1; - private BitField fEmboss = new BitField(0x0001); - private BitField fImprint = new BitField(0x0002); - private BitField fDStrike = new BitField(0x0004); - private BitField fUsePgsuSettings = new BitField(0x0008); + private static BitField fEmboss = new BitField(0x0001); + private static BitField fImprint = new BitField(0x0002); + private static BitField fDStrike = new BitField(0x0004); + private static BitField fUsePgsuSettings = new BitField(0x0008); private int field_4_ftcAscii; private int field_5_ftcFE; private int field_6_ftcOther; @@ -128,13 +128,13 @@ public abstract class CHPAbstractType private byte field_31_chYsr; private int field_32_hpsKern; private short field_33_Highlight; - private BitField icoHighlight = new BitField(0x001f); - private BitField fHighlight = new BitField(0x0020); - private BitField kcd = new BitField(0x01c0); - private BitField fNavHighlight = new BitField(0x0200); - private BitField fChsDiff = new BitField(0x0400); - private BitField fMacChs = new BitField(0x0800); - private BitField fFtcAsciSym = new BitField(0x1000); + private static BitField icoHighlight = new BitField(0x001f); + private static BitField fHighlight = new BitField(0x0020); + private static BitField kcd = new BitField(0x01c0); + private static BitField fNavHighlight = new BitField(0x0200); + private static BitField fChsDiff = new BitField(0x0400); + private static BitField fMacChs = new BitField(0x0800); + private static BitField fFtcAsciSym = new BitField(0x1000); private short field_34_fPropMark; private int field_35_ibstPropRMark; private int field_36_dttmPropRMark; @@ -852,569 +852,569 @@ public abstract class CHPAbstractType /** * Sets the fBold field value. - * + * */ public void setFBold(boolean value) { field_2_format_flags = (int)fBold.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fBold field value. */ public boolean isFBold() { return fBold.isSet(field_2_format_flags); - + } /** * Sets the fItalic field value. - * + * */ public void setFItalic(boolean value) { field_2_format_flags = (int)fItalic.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fItalic field value. */ public boolean isFItalic() { return fItalic.isSet(field_2_format_flags); - + } /** * Sets the fRMarkDel field value. - * + * */ public void setFRMarkDel(boolean value) { field_2_format_flags = (int)fRMarkDel.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fRMarkDel field value. */ public boolean isFRMarkDel() { return fRMarkDel.isSet(field_2_format_flags); - + } /** * Sets the fOutline field value. - * + * */ public void setFOutline(boolean value) { field_2_format_flags = (int)fOutline.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fOutline field value. */ public boolean isFOutline() { return fOutline.isSet(field_2_format_flags); - + } /** * Sets the fFldVanish field value. - * + * */ public void setFFldVanish(boolean value) { field_2_format_flags = (int)fFldVanish.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fFldVanish field value. */ public boolean isFFldVanish() { return fFldVanish.isSet(field_2_format_flags); - + } /** * Sets the fSmallCaps field value. - * + * */ public void setFSmallCaps(boolean value) { field_2_format_flags = (int)fSmallCaps.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fSmallCaps field value. */ public boolean isFSmallCaps() { return fSmallCaps.isSet(field_2_format_flags); - + } /** * Sets the fCaps field value. - * + * */ public void setFCaps(boolean value) { field_2_format_flags = (int)fCaps.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fCaps field value. */ public boolean isFCaps() { return fCaps.isSet(field_2_format_flags); - + } /** * Sets the fVanish field value. - * + * */ public void setFVanish(boolean value) { field_2_format_flags = (int)fVanish.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fVanish field value. */ public boolean isFVanish() { return fVanish.isSet(field_2_format_flags); - + } /** * Sets the fRMark field value. - * + * */ public void setFRMark(boolean value) { field_2_format_flags = (int)fRMark.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fRMark field value. */ public boolean isFRMark() { return fRMark.isSet(field_2_format_flags); - + } /** * Sets the fSpec field value. - * + * */ public void setFSpec(boolean value) { field_2_format_flags = (int)fSpec.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fSpec field value. */ public boolean isFSpec() { return fSpec.isSet(field_2_format_flags); - + } /** * Sets the fStrike field value. - * + * */ public void setFStrike(boolean value) { field_2_format_flags = (int)fStrike.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fStrike field value. */ public boolean isFStrike() { return fStrike.isSet(field_2_format_flags); - + } /** * Sets the fObj field value. - * + * */ public void setFObj(boolean value) { field_2_format_flags = (int)fObj.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fObj field value. */ public boolean isFObj() { return fObj.isSet(field_2_format_flags); - + } /** * Sets the fShadow field value. - * + * */ public void setFShadow(boolean value) { field_2_format_flags = (int)fShadow.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fShadow field value. */ public boolean isFShadow() { return fShadow.isSet(field_2_format_flags); - + } /** * Sets the fLowerCase field value. - * + * */ public void setFLowerCase(boolean value) { field_2_format_flags = (int)fLowerCase.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fLowerCase field value. */ public boolean isFLowerCase() { return fLowerCase.isSet(field_2_format_flags); - + } /** * Sets the fData field value. - * + * */ public void setFData(boolean value) { field_2_format_flags = (int)fData.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fData field value. */ public boolean isFData() { return fData.isSet(field_2_format_flags); - + } /** * Sets the fOle2 field value. - * + * */ public void setFOle2(boolean value) { field_2_format_flags = (int)fOle2.setBoolean(field_2_format_flags, value); - + } /** - * + * * @return the fOle2 field value. */ public boolean isFOle2() { return fOle2.isSet(field_2_format_flags); - + } /** * Sets the fEmboss field value. - * + * */ public void setFEmboss(boolean value) { field_3_format_flags1 = (int)fEmboss.setBoolean(field_3_format_flags1, value); - + } /** - * + * * @return the fEmboss field value. */ public boolean isFEmboss() { return fEmboss.isSet(field_3_format_flags1); - + } /** * Sets the fImprint field value. - * + * */ public void setFImprint(boolean value) { field_3_format_flags1 = (int)fImprint.setBoolean(field_3_format_flags1, value); - + } /** - * + * * @return the fImprint field value. */ public boolean isFImprint() { return fImprint.isSet(field_3_format_flags1); - + } /** * Sets the fDStrike field value. - * + * */ public void setFDStrike(boolean value) { field_3_format_flags1 = (int)fDStrike.setBoolean(field_3_format_flags1, value); - + } /** - * + * * @return the fDStrike field value. */ public boolean isFDStrike() { return fDStrike.isSet(field_3_format_flags1); - + } /** * Sets the fUsePgsuSettings field value. - * + * */ public void setFUsePgsuSettings(boolean value) { field_3_format_flags1 = (int)fUsePgsuSettings.setBoolean(field_3_format_flags1, value); - + } /** - * + * * @return the fUsePgsuSettings field value. */ public boolean isFUsePgsuSettings() { return fUsePgsuSettings.isSet(field_3_format_flags1); - + } /** * Sets the icoHighlight field value. - * + * */ public void setIcoHighlight(byte value) { field_33_Highlight = (short)icoHighlight.setValue(field_33_Highlight, value); - + } /** - * + * * @return the icoHighlight field value. */ public byte getIcoHighlight() { return ( byte )icoHighlight.getValue(field_33_Highlight); - + } /** * Sets the fHighlight field value. - * + * */ public void setFHighlight(boolean value) { field_33_Highlight = (short)fHighlight.setBoolean(field_33_Highlight, value); - + } /** - * + * * @return the fHighlight field value. */ public boolean isFHighlight() { return fHighlight.isSet(field_33_Highlight); - + } /** * Sets the kcd field value. - * + * */ public void setKcd(byte value) { field_33_Highlight = (short)kcd.setValue(field_33_Highlight, value); - + } /** - * + * * @return the kcd field value. */ public byte getKcd() { return ( byte )kcd.getValue(field_33_Highlight); - + } /** * Sets the fNavHighlight field value. - * + * */ public void setFNavHighlight(boolean value) { field_33_Highlight = (short)fNavHighlight.setBoolean(field_33_Highlight, value); - + } /** - * + * * @return the fNavHighlight field value. */ public boolean isFNavHighlight() { return fNavHighlight.isSet(field_33_Highlight); - + } /** * Sets the fChsDiff field value. - * + * */ public void setFChsDiff(boolean value) { field_33_Highlight = (short)fChsDiff.setBoolean(field_33_Highlight, value); - + } /** - * + * * @return the fChsDiff field value. */ public boolean isFChsDiff() { return fChsDiff.isSet(field_33_Highlight); - + } /** * Sets the fMacChs field value. - * + * */ public void setFMacChs(boolean value) { field_33_Highlight = (short)fMacChs.setBoolean(field_33_Highlight, value); - + } /** - * + * * @return the fMacChs field value. */ public boolean isFMacChs() { return fMacChs.isSet(field_33_Highlight); - + } /** * Sets the fFtcAsciSym field value. - * + * */ public void setFFtcAsciSym(boolean value) { field_33_Highlight = (short)fFtcAsciSym.setBoolean(field_33_Highlight, value); - + } /** - * + * * @return the fFtcAsciSym field value. */ public boolean isFFtcAsciSym() { return fFtcAsciSym.isSet(field_33_Highlight); - + } diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java index 10f84beb08..a0f79f1031 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/DOPAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Document Properties. @@ -76,58 +76,58 @@ public abstract class DOPAbstractType { private byte field_1_formatFlags; - private BitField fFacingPages = new BitField(0x01); - private BitField fWidowControl = new BitField(0x02); - private BitField fPMHMainDoc = new BitField(0x04); - private BitField grfSupression = new BitField(0x18); - private BitField fpc = new BitField(0x60); - private BitField unused1 = new BitField(0x80); - private short field_2_unused2; + private static BitField fFacingPages = new BitField(0x01); + private static BitField fWidowControl = new BitField(0x02); + private static BitField fPMHMainDoc = new BitField(0x04); + private static BitField grfSupression = new BitField(0x18); + private static BitField fpc = new BitField(0x60); + private static BitField unused1 = new BitField(0x80); + private byte field_2_unused2; private short field_3_footnoteInfo; - private BitField rncFtn = new BitField(0x0003); - private BitField nFtn = new BitField(0xfffc); + private static BitField rncFtn = new BitField(0x0003); + private static BitField nFtn = new BitField(0xfffc); private byte field_4_fOutlineDirtySave; private byte field_5_docinfo; - private BitField fOnlyMacPics = new BitField(0x01); - private BitField fOnlyWinPics = new BitField(0x02); - private BitField fLabelDoc = new BitField(0x04); - private BitField fHyphCapitals = new BitField(0x08); - private BitField fAutoHyphen = new BitField(0x10); - private BitField fFormNoFields = new BitField(0x20); - private BitField fLinkStyles = new BitField(0x40); - private BitField fRevMarking = new BitField(0x80); + private static BitField fOnlyMacPics = new BitField(0x01); + private static BitField fOnlyWinPics = new BitField(0x02); + private static BitField fLabelDoc = new BitField(0x04); + private static BitField fHyphCapitals = new BitField(0x08); + private static BitField fAutoHyphen = new BitField(0x10); + private static BitField fFormNoFields = new BitField(0x20); + private static BitField fLinkStyles = new BitField(0x40); + private static BitField fRevMarking = new BitField(0x80); private byte field_6_docinfo1; - private BitField fBackup = new BitField(0x01); - private BitField fExactCWords = new BitField(0x02); - private BitField fPagHidden = new BitField(0x04); - private BitField fPagResults = new BitField(0x08); - private BitField fLockAtn = new BitField(0x10); - private BitField fMirrorMargins = new BitField(0x20); - private BitField unused3 = new BitField(0x40); - private BitField fDfltTrueType = new BitField(0x80); + private static BitField fBackup = new BitField(0x01); + private static BitField fExactCWords = new BitField(0x02); + private static BitField fPagHidden = new BitField(0x04); + private static BitField fPagResults = new BitField(0x08); + private static BitField fLockAtn = new BitField(0x10); + private static BitField fMirrorMargins = new BitField(0x20); + private static BitField unused3 = new BitField(0x40); + private static BitField fDfltTrueType = new BitField(0x80); private byte field_7_docinfo2; - private BitField fPagSupressTopSpacing = new BitField(0x01); - private BitField fProtEnabled = new BitField(0x02); - private BitField fDispFormFldSel = new BitField(0x04); - private BitField fRMView = new BitField(0x08); - private BitField fRMPrint = new BitField(0x10); - private BitField unused4 = new BitField(0x20); - private BitField fLockRev = new BitField(0x40); - private BitField fEmbedFonts = new BitField(0x80); + private static BitField fPagSupressTopSpacing = new BitField(0x01); + private static BitField fProtEnabled = new BitField(0x02); + private static BitField fDispFormFldSel = new BitField(0x04); + private static BitField fRMView = new BitField(0x08); + private static BitField fRMPrint = new BitField(0x10); + private static BitField unused4 = new BitField(0x20); + private static BitField fLockRev = new BitField(0x40); + private static BitField fEmbedFonts = new BitField(0x80); private short field_8_docinfo3; - private BitField oldfNoTabForInd = new BitField(0x0001); - private BitField oldfNoSpaceRaiseLower = new BitField(0x0002); - private BitField oldfSuppressSpbfAfterPageBreak = new BitField(0x0004); - private BitField oldfWrapTrailSpaces = new BitField(0x0008); - private BitField oldfMapPrintTextColor = new BitField(0x0010); - private BitField oldfNoColumnBalance = new BitField(0x0020); - private BitField oldfConvMailMergeEsc = new BitField(0x0040); - private BitField oldfSupressTopSpacing = new BitField(0x0080); - private BitField oldfOrigWordTableRules = new BitField(0x0100); - private BitField oldfTransparentMetafiles = new BitField(0x0200); - private BitField oldfShowBreaksInFrames = new BitField(0x0400); - private BitField oldfSwapBordersFacingPgs = new BitField(0x0800); - private BitField unused5 = new BitField(0xf000); + private static BitField oldfNoTabForInd = new BitField(0x0001); + private static BitField oldfNoSpaceRaiseLower = new BitField(0x0002); + private static BitField oldfSuppressSpbfAfterPageBreak = new BitField(0x0004); + private static BitField oldfWrapTrailSpaces = new BitField(0x0008); + private static BitField oldfMapPrintTextColor = new BitField(0x0010); + private static BitField oldfNoColumnBalance = new BitField(0x0020); + private static BitField oldfConvMailMergeEsc = new BitField(0x0040); + private static BitField oldfSupressTopSpacing = new BitField(0x0080); + private static BitField oldfOrigWordTableRules = new BitField(0x0100); + private static BitField oldfTransparentMetafiles = new BitField(0x0200); + private static BitField oldfShowBreaksInFrames = new BitField(0x0400); + private static BitField oldfSwapBordersFacingPgs = new BitField(0x0800); + private static BitField unused5 = new BitField(0xf000); private int field_9_dxaTab; private int field_10_wSpare; private int field_11_dxaHotz; @@ -143,16 +143,16 @@ public abstract class DOPAbstractType private int field_21_cPg; private int field_22_cParas; private short field_23_Edn; - private BitField rncEdn = new BitField(0x0003); - private BitField nEdn = new BitField(0xfffc); + private static BitField rncEdn = new BitField(0x0003); + private static BitField nEdn = new BitField(0xfffc); private short field_24_Edn1; - private BitField epc = new BitField(0x0003); - private BitField nfcFtnRef1 = new BitField(0x003c); - private BitField nfcEdnRef1 = new BitField(0x03c0); - private BitField fPrintFormData = new BitField(0x0400); - private BitField fSaveFormData = new BitField(0x0800); - private BitField fShadeFormData = new BitField(0x1000); - private BitField fWCFtnEdn = new BitField(0x8000); + private static BitField epc = new BitField(0x0003); + private static BitField nfcFtnRef1 = new BitField(0x003c); + private static BitField nfcEdnRef1 = new BitField(0x03c0); + private static BitField fPrintFormData = new BitField(0x0400); + private static BitField fSaveFormData = new BitField(0x0800); + private static BitField fShadeFormData = new BitField(0x1000); + private static BitField fWCFtnEdn = new BitField(0x8000); private int field_25_cLines; private int field_26_cWordsFtnEnd; private int field_27_cChFtnEdn; @@ -161,55 +161,55 @@ public abstract class DOPAbstractType private int field_30_cLinesFtnEdn; private int field_31_lKeyProtDoc; private short field_32_view; - private BitField wvkSaved = new BitField(0x0007); - private BitField wScaleSaved = new BitField(0x0ff8); - private BitField zkSaved = new BitField(0x3000); - private BitField fRotateFontW6 = new BitField(0x4000); - private BitField iGutterPos = new BitField(0x8000); + private static BitField wvkSaved = new BitField(0x0007); + private static BitField wScaleSaved = new BitField(0x0ff8); + private static BitField zkSaved = new BitField(0x3000); + private static BitField fRotateFontW6 = new BitField(0x4000); + private static BitField iGutterPos = new BitField(0x8000); private int field_33_docinfo4; - private BitField fNoTabForInd = new BitField(0x00000001); - private BitField fNoSpaceRaiseLower = new BitField(0x00000002); - private BitField fSupressSpdfAfterPageBreak = new BitField(0x00000004); - private BitField fWrapTrailSpaces = new BitField(0x00000008); - private BitField fMapPrintTextColor = new BitField(0x00000010); - private BitField fNoColumnBalance = new BitField(0x00000020); - private BitField fConvMailMergeEsc = new BitField(0x00000040); - private BitField fSupressTopSpacing = new BitField(0x00000080); - private BitField fOrigWordTableRules = new BitField(0x00000100); - private BitField fTransparentMetafiles = new BitField(0x00000200); - private BitField fShowBreaksInFrames = new BitField(0x00000400); - private BitField fSwapBordersFacingPgs = new BitField(0x00000800); - private BitField fSuppressTopSPacingMac5 = new BitField(0x00010000); - private BitField fTruncDxaExpand = new BitField(0x00020000); - private BitField fPrintBodyBeforeHdr = new BitField(0x00040000); - private BitField fNoLeading = new BitField(0x00080000); - private BitField fMWSmallCaps = new BitField(0x00200000); + private static BitField fNoTabForInd = new BitField(0x00000001); + private static BitField fNoSpaceRaiseLower = new BitField(0x00000002); + private static BitField fSupressSpdfAfterPageBreak = new BitField(0x00000004); + private static BitField fWrapTrailSpaces = new BitField(0x00000008); + private static BitField fMapPrintTextColor = new BitField(0x00000010); + private static BitField fNoColumnBalance = new BitField(0x00000020); + private static BitField fConvMailMergeEsc = new BitField(0x00000040); + private static BitField fSupressTopSpacing = new BitField(0x00000080); + private static BitField fOrigWordTableRules = new BitField(0x00000100); + private static BitField fTransparentMetafiles = new BitField(0x00000200); + private static BitField fShowBreaksInFrames = new BitField(0x00000400); + private static BitField fSwapBordersFacingPgs = new BitField(0x00000800); + private static BitField fSuppressTopSPacingMac5 = new BitField(0x00010000); + private static BitField fTruncDxaExpand = new BitField(0x00020000); + private static BitField fPrintBodyBeforeHdr = new BitField(0x00040000); + private static BitField fNoLeading = new BitField(0x00080000); + private static BitField fMWSmallCaps = new BitField(0x00200000); private short field_34_adt; private byte[] field_35_doptypography; private byte[] field_36_dogrid; private short field_37_docinfo5; - private BitField lvl = new BitField(0x001e); - private BitField fGramAllDone = new BitField(0x0020); - private BitField fGramAllClean = new BitField(0x0040); - private BitField fSubsetFonts = new BitField(0x0080); - private BitField fHideLastVersion = new BitField(0x0100); - private BitField fHtmlDoc = new BitField(0x0200); - private BitField fSnapBorder = new BitField(0x0800); - private BitField fIncludeHeader = new BitField(0x1000); - private BitField fIncludeFooter = new BitField(0x2000); - private BitField fForcePageSizePag = new BitField(0x4000); - private BitField fMinFontSizePag = new BitField(0x8000); + private static BitField lvl = new BitField(0x001e); + private static BitField fGramAllDone = new BitField(0x0020); + private static BitField fGramAllClean = new BitField(0x0040); + private static BitField fSubsetFonts = new BitField(0x0080); + private static BitField fHideLastVersion = new BitField(0x0100); + private static BitField fHtmlDoc = new BitField(0x0200); + private static BitField fSnapBorder = new BitField(0x0800); + private static BitField fIncludeHeader = new BitField(0x1000); + private static BitField fIncludeFooter = new BitField(0x2000); + private static BitField fForcePageSizePag = new BitField(0x4000); + private static BitField fMinFontSizePag = new BitField(0x8000); private short field_38_docinfo6; - private BitField fHaveVersions = new BitField(0x0001); - private BitField fAutoVersions = new BitField(0x0002); + private static BitField fHaveVersions = new BitField(0x0001); + private static BitField fAutoVersions = new BitField(0x0002); private byte[] field_39_asumyi; private int field_40_cChWS; private int field_41_cChWSFtnEdn; private int field_42_grfDocEvents; private int field_43_virusinfo; - private BitField fVirusPrompted = new BitField(0x0001); - private BitField fVirusLoadSafe = new BitField(0x0002); - private BitField KeyVirusSession30 = new BitField(0xfffffffc); + private static BitField fVirusPrompted = new BitField(0x0001); + private static BitField fVirusLoadSafe = new BitField(0x0002); + private static BitField KeyVirusSession30 = new BitField(0xfffffffc); private byte[] field_44_Spare; private int field_45_reserved1; private int field_46_reserved2; @@ -230,116 +230,116 @@ public abstract class DOPAbstractType protected void fillFields(byte [] data, short size, int offset) { field_1_formatFlags = data[ 0x0 + offset ]; - field_2_unused2 = LittleEndian.getShort(data, 0x1 + offset); - field_3_footnoteInfo = LittleEndian.getShort(data, 0x3 + offset); - field_4_fOutlineDirtySave = data[ 0x5 + offset ]; - field_5_docinfo = data[ 0x6 + offset ]; - field_6_docinfo1 = data[ 0x7 + offset ]; - field_7_docinfo2 = data[ 0x8 + offset ]; - field_8_docinfo3 = LittleEndian.getShort(data, 0x9 + offset); - field_9_dxaTab = LittleEndian.getShort(data, 0xb + offset); - field_10_wSpare = LittleEndian.getShort(data, 0xd + offset); - field_11_dxaHotz = LittleEndian.getShort(data, 0xf + offset); - field_12_cConsexHypLim = LittleEndian.getShort(data, 0x11 + offset); - field_13_wSpare2 = LittleEndian.getShort(data, 0x13 + offset); - field_14_dttmCreated = LittleEndian.getInt(data, 0x15 + offset); - field_15_dttmRevised = LittleEndian.getInt(data, 0x19 + offset); - field_16_dttmLastPrint = LittleEndian.getInt(data, 0x1d + offset); - field_17_nRevision = LittleEndian.getShort(data, 0x21 + offset); - field_18_tmEdited = LittleEndian.getInt(data, 0x23 + offset); - field_19_cWords = LittleEndian.getInt(data, 0x27 + offset); - field_20_cCh = LittleEndian.getInt(data, 0x2b + offset); - field_21_cPg = LittleEndian.getShort(data, 0x2f + offset); - field_22_cParas = LittleEndian.getInt(data, 0x31 + offset); - field_23_Edn = LittleEndian.getShort(data, 0x35 + offset); - field_24_Edn1 = LittleEndian.getShort(data, 0x37 + offset); - field_25_cLines = LittleEndian.getInt(data, 0x39 + offset); - field_26_cWordsFtnEnd = LittleEndian.getInt(data, 0x3d + offset); - field_27_cChFtnEdn = LittleEndian.getInt(data, 0x41 + offset); - field_28_cPgFtnEdn = LittleEndian.getShort(data, 0x45 + offset); - field_29_cParasFtnEdn = LittleEndian.getInt(data, 0x47 + offset); - field_30_cLinesFtnEdn = LittleEndian.getInt(data, 0x4b + offset); - field_31_lKeyProtDoc = LittleEndian.getInt(data, 0x4f + offset); - field_32_view = LittleEndian.getShort(data, 0x53 + offset); - field_33_docinfo4 = LittleEndian.getInt(data, 0x55 + offset); - field_34_adt = LittleEndian.getShort(data, 0x59 + offset); - field_35_doptypography = LittleEndian.getByteArray(data, 0x5b + offset,310); - field_36_dogrid = LittleEndian.getByteArray(data, 0x191 + offset,10); - field_37_docinfo5 = LittleEndian.getShort(data, 0x19b + offset); - field_38_docinfo6 = LittleEndian.getShort(data, 0x19d + offset); - field_39_asumyi = LittleEndian.getByteArray(data, 0x19f + offset,12); - field_40_cChWS = LittleEndian.getInt(data, 0x1ab + offset); - field_41_cChWSFtnEdn = LittleEndian.getInt(data, 0x1af + offset); - field_42_grfDocEvents = LittleEndian.getInt(data, 0x1b3 + offset); - field_43_virusinfo = LittleEndian.getInt(data, 0x1b7 + offset); - field_44_Spare = LittleEndian.getByteArray(data, 0x1bb + offset,30); - field_45_reserved1 = LittleEndian.getInt(data, 0x1d9 + offset); - field_46_reserved2 = LittleEndian.getInt(data, 0x1dd + offset); - field_47_cDBC = LittleEndian.getInt(data, 0x1e1 + offset); - field_48_cDBCFtnEdn = LittleEndian.getInt(data, 0x1e5 + offset); - field_49_reserved = LittleEndian.getInt(data, 0x1e9 + offset); - field_50_nfcFtnRef = LittleEndian.getShort(data, 0x1ed + offset); - field_51_nfcEdnRef = LittleEndian.getShort(data, 0x1ef + offset); - field_52_hpsZoonFontPag = LittleEndian.getShort(data, 0x1f1 + offset); - field_53_dywDispPag = LittleEndian.getShort(data, 0x1f3 + offset); + field_2_unused2 = data[ 0x1 + offset ]; + field_3_footnoteInfo = LittleEndian.getShort(data, 0x2 + offset); + field_4_fOutlineDirtySave = data[ 0x4 + offset ]; + field_5_docinfo = data[ 0x5 + offset ]; + field_6_docinfo1 = data[ 0x6 + offset ]; + field_7_docinfo2 = data[ 0x7 + offset ]; + field_8_docinfo3 = LittleEndian.getShort(data, 0x8 + offset); + field_9_dxaTab = LittleEndian.getShort(data, 0xa + offset); + field_10_wSpare = LittleEndian.getShort(data, 0xc + offset); + field_11_dxaHotz = LittleEndian.getShort(data, 0xe + offset); + field_12_cConsexHypLim = LittleEndian.getShort(data, 0x10 + offset); + field_13_wSpare2 = LittleEndian.getShort(data, 0x12 + offset); + field_14_dttmCreated = LittleEndian.getInt(data, 0x14 + offset); + field_15_dttmRevised = LittleEndian.getInt(data, 0x18 + offset); + field_16_dttmLastPrint = LittleEndian.getInt(data, 0x1c + offset); + field_17_nRevision = LittleEndian.getShort(data, 0x20 + offset); + field_18_tmEdited = LittleEndian.getInt(data, 0x22 + offset); + field_19_cWords = LittleEndian.getInt(data, 0x26 + offset); + field_20_cCh = LittleEndian.getInt(data, 0x2a + offset); + field_21_cPg = LittleEndian.getShort(data, 0x2e + offset); + field_22_cParas = LittleEndian.getInt(data, 0x30 + offset); + field_23_Edn = LittleEndian.getShort(data, 0x34 + offset); + field_24_Edn1 = LittleEndian.getShort(data, 0x36 + offset); + field_25_cLines = LittleEndian.getInt(data, 0x38 + offset); + field_26_cWordsFtnEnd = LittleEndian.getInt(data, 0x3c + offset); + field_27_cChFtnEdn = LittleEndian.getInt(data, 0x40 + offset); + field_28_cPgFtnEdn = LittleEndian.getShort(data, 0x44 + offset); + field_29_cParasFtnEdn = LittleEndian.getInt(data, 0x46 + offset); + field_30_cLinesFtnEdn = LittleEndian.getInt(data, 0x4a + offset); + field_31_lKeyProtDoc = LittleEndian.getInt(data, 0x4e + offset); + field_32_view = LittleEndian.getShort(data, 0x52 + offset); + field_33_docinfo4 = LittleEndian.getInt(data, 0x54 + offset); + field_34_adt = LittleEndian.getShort(data, 0x58 + offset); + field_35_doptypography = LittleEndian.getByteArray(data, 0x5a + offset,310); + field_36_dogrid = LittleEndian.getByteArray(data, 0x190 + offset,10); + field_37_docinfo5 = LittleEndian.getShort(data, 0x19a + offset); + field_38_docinfo6 = LittleEndian.getShort(data, 0x19c + offset); + field_39_asumyi = LittleEndian.getByteArray(data, 0x19e + offset,12); + field_40_cChWS = LittleEndian.getInt(data, 0x1aa + offset); + field_41_cChWSFtnEdn = LittleEndian.getInt(data, 0x1ae + offset); + field_42_grfDocEvents = LittleEndian.getInt(data, 0x1b2 + offset); + field_43_virusinfo = LittleEndian.getInt(data, 0x1b6 + offset); + field_44_Spare = LittleEndian.getByteArray(data, 0x1ba + offset,30); + field_45_reserved1 = LittleEndian.getInt(data, 0x1d8 + offset); + field_46_reserved2 = LittleEndian.getInt(data, 0x1dc + offset); + field_47_cDBC = LittleEndian.getInt(data, 0x1e0 + offset); + field_48_cDBCFtnEdn = LittleEndian.getInt(data, 0x1e4 + offset); + field_49_reserved = LittleEndian.getInt(data, 0x1e8 + offset); + field_50_nfcFtnRef = LittleEndian.getShort(data, 0x1ec + offset); + field_51_nfcEdnRef = LittleEndian.getShort(data, 0x1ee + offset); + field_52_hpsZoonFontPag = LittleEndian.getShort(data, 0x1f0 + offset); + field_53_dywDispPag = LittleEndian.getShort(data, 0x1f2 + offset); } public void serialize(byte[] data, int offset) { data[ 0x0 + offset] = field_1_formatFlags;; - LittleEndian.putShort(data, 0x1 + offset, (short)field_2_unused2);; - LittleEndian.putShort(data, 0x3 + offset, (short)field_3_footnoteInfo);; - data[ 0x5 + offset] = field_4_fOutlineDirtySave;; - data[ 0x6 + offset] = field_5_docinfo;; - data[ 0x7 + offset] = field_6_docinfo1;; - data[ 0x8 + offset] = field_7_docinfo2;; - LittleEndian.putShort(data, 0x9 + offset, (short)field_8_docinfo3);; - LittleEndian.putShort(data, 0xb + offset, (short)field_9_dxaTab);; - LittleEndian.putShort(data, 0xd + offset, (short)field_10_wSpare);; - LittleEndian.putShort(data, 0xf + offset, (short)field_11_dxaHotz);; - LittleEndian.putShort(data, 0x11 + offset, (short)field_12_cConsexHypLim);; - LittleEndian.putShort(data, 0x13 + offset, (short)field_13_wSpare2);; - LittleEndian.putInt(data, 0x15 + offset, field_14_dttmCreated);; - LittleEndian.putInt(data, 0x19 + offset, field_15_dttmRevised);; - LittleEndian.putInt(data, 0x1d + offset, field_16_dttmLastPrint);; - LittleEndian.putShort(data, 0x21 + offset, (short)field_17_nRevision);; - LittleEndian.putInt(data, 0x23 + offset, field_18_tmEdited);; - LittleEndian.putInt(data, 0x27 + offset, field_19_cWords);; - LittleEndian.putInt(data, 0x2b + offset, field_20_cCh);; - LittleEndian.putShort(data, 0x2f + offset, (short)field_21_cPg);; - LittleEndian.putInt(data, 0x31 + offset, field_22_cParas);; - LittleEndian.putShort(data, 0x35 + offset, (short)field_23_Edn);; - LittleEndian.putShort(data, 0x37 + offset, (short)field_24_Edn1);; - LittleEndian.putInt(data, 0x39 + offset, field_25_cLines);; - LittleEndian.putInt(data, 0x3d + offset, field_26_cWordsFtnEnd);; - LittleEndian.putInt(data, 0x41 + offset, field_27_cChFtnEdn);; - LittleEndian.putShort(data, 0x45 + offset, (short)field_28_cPgFtnEdn);; - LittleEndian.putInt(data, 0x47 + offset, field_29_cParasFtnEdn);; - LittleEndian.putInt(data, 0x4b + offset, field_30_cLinesFtnEdn);; - LittleEndian.putInt(data, 0x4f + offset, field_31_lKeyProtDoc);; - LittleEndian.putShort(data, 0x53 + offset, (short)field_32_view);; - LittleEndian.putInt(data, 0x55 + offset, field_33_docinfo4);; - LittleEndian.putShort(data, 0x59 + offset, (short)field_34_adt);; + data[ 0x1 + offset] = field_2_unused2;; + LittleEndian.putShort(data, 0x2 + offset, (short)field_3_footnoteInfo);; + data[ 0x4 + offset] = field_4_fOutlineDirtySave;; + data[ 0x5 + offset] = field_5_docinfo;; + data[ 0x6 + offset] = field_6_docinfo1;; + data[ 0x7 + offset] = field_7_docinfo2;; + LittleEndian.putShort(data, 0x8 + offset, (short)field_8_docinfo3);; + LittleEndian.putShort(data, 0xa + offset, (short)field_9_dxaTab);; + LittleEndian.putShort(data, 0xc + offset, (short)field_10_wSpare);; + LittleEndian.putShort(data, 0xe + offset, (short)field_11_dxaHotz);; + LittleEndian.putShort(data, 0x10 + offset, (short)field_12_cConsexHypLim);; + LittleEndian.putShort(data, 0x12 + offset, (short)field_13_wSpare2);; + LittleEndian.putInt(data, 0x14 + offset, field_14_dttmCreated);; + LittleEndian.putInt(data, 0x18 + offset, field_15_dttmRevised);; + LittleEndian.putInt(data, 0x1c + offset, field_16_dttmLastPrint);; + LittleEndian.putShort(data, 0x20 + offset, (short)field_17_nRevision);; + LittleEndian.putInt(data, 0x22 + offset, field_18_tmEdited);; + LittleEndian.putInt(data, 0x26 + offset, field_19_cWords);; + LittleEndian.putInt(data, 0x2a + offset, field_20_cCh);; + LittleEndian.putShort(data, 0x2e + offset, (short)field_21_cPg);; + LittleEndian.putInt(data, 0x30 + offset, field_22_cParas);; + LittleEndian.putShort(data, 0x34 + offset, (short)field_23_Edn);; + LittleEndian.putShort(data, 0x36 + offset, (short)field_24_Edn1);; + LittleEndian.putInt(data, 0x38 + offset, field_25_cLines);; + LittleEndian.putInt(data, 0x3c + offset, field_26_cWordsFtnEnd);; + LittleEndian.putInt(data, 0x40 + offset, field_27_cChFtnEdn);; + LittleEndian.putShort(data, 0x44 + offset, (short)field_28_cPgFtnEdn);; + LittleEndian.putInt(data, 0x46 + offset, field_29_cParasFtnEdn);; + LittleEndian.putInt(data, 0x4a + offset, field_30_cLinesFtnEdn);; + LittleEndian.putInt(data, 0x4e + offset, field_31_lKeyProtDoc);; + LittleEndian.putShort(data, 0x52 + offset, (short)field_32_view);; + LittleEndian.putInt(data, 0x54 + offset, field_33_docinfo4);; + LittleEndian.putShort(data, 0x58 + offset, (short)field_34_adt);; ; ; - LittleEndian.putShort(data, 0x19b + offset, (short)field_37_docinfo5);; - LittleEndian.putShort(data, 0x19d + offset, (short)field_38_docinfo6);; + LittleEndian.putShort(data, 0x19a + offset, (short)field_37_docinfo5);; + LittleEndian.putShort(data, 0x19c + offset, (short)field_38_docinfo6);; ; - LittleEndian.putInt(data, 0x1ab + offset, field_40_cChWS);; - LittleEndian.putInt(data, 0x1af + offset, field_41_cChWSFtnEdn);; - LittleEndian.putInt(data, 0x1b3 + offset, field_42_grfDocEvents);; - LittleEndian.putInt(data, 0x1b7 + offset, field_43_virusinfo);; + LittleEndian.putInt(data, 0x1aa + offset, field_40_cChWS);; + LittleEndian.putInt(data, 0x1ae + offset, field_41_cChWSFtnEdn);; + LittleEndian.putInt(data, 0x1b2 + offset, field_42_grfDocEvents);; + LittleEndian.putInt(data, 0x1b6 + offset, field_43_virusinfo);; ; - LittleEndian.putInt(data, 0x1d9 + offset, field_45_reserved1);; - LittleEndian.putInt(data, 0x1dd + offset, field_46_reserved2);; - LittleEndian.putInt(data, 0x1e1 + offset, field_47_cDBC);; - LittleEndian.putInt(data, 0x1e5 + offset, field_48_cDBCFtnEdn);; - LittleEndian.putInt(data, 0x1e9 + offset, field_49_reserved);; - LittleEndian.putShort(data, 0x1ed + offset, (short)field_50_nfcFtnRef);; - LittleEndian.putShort(data, 0x1ef + offset, (short)field_51_nfcEdnRef);; - LittleEndian.putShort(data, 0x1f1 + offset, (short)field_52_hpsZoonFontPag);; - LittleEndian.putShort(data, 0x1f3 + offset, (short)field_53_dywDispPag);; + LittleEndian.putInt(data, 0x1d8 + offset, field_45_reserved1);; + LittleEndian.putInt(data, 0x1dc + offset, field_46_reserved2);; + LittleEndian.putInt(data, 0x1e0 + offset, field_47_cDBC);; + LittleEndian.putInt(data, 0x1e4 + offset, field_48_cDBCFtnEdn);; + LittleEndian.putInt(data, 0x1e8 + offset, field_49_reserved);; + LittleEndian.putShort(data, 0x1ec + offset, (short)field_50_nfcFtnRef);; + LittleEndian.putShort(data, 0x1ee + offset, (short)field_51_nfcEdnRef);; + LittleEndian.putShort(data, 0x1f0 + offset, (short)field_52_hpsZoonFontPag);; + LittleEndian.putShort(data, 0x1f2 + offset, (short)field_53_dywDispPag);; } @@ -362,7 +362,7 @@ public abstract class DOPAbstractType buffer.append(" .unused2 = "); buffer.append("0x"); - buffer.append(HexDump.toHex((short)getUnused2())); + buffer.append(HexDump.toHex((byte)getUnused2())); buffer.append(" (").append(getUnused2()).append(" )\n"); buffer.append(" .footnoteInfo = "); @@ -715,7 +715,7 @@ public abstract class DOPAbstractType */ public int getSize() { - return 4 + + 1 + 2 + 2 + 1 + 1 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 310 + 10 + 2 + 2 + 12 + 4 + 4 + 4 + 4 + 30 + 4 + 4 + 4 + 4 + 4 + 2 + 2 + 2 + 2; + return 4 + + 1 + 1 + 2 + 1 + 1 + 1 + 1 + 2 + 2 + 2 + 2 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 2 + 4 + 4 + 4 + 2 + 4 + 4 + 4 + 2 + 4 + 2 + 310 + 10 + 2 + 2 + 12 + 4 + 4 + 4 + 4 + 30 + 4 + 4 + 4 + 4 + 4 + 2 + 2 + 2 + 2; } @@ -739,7 +739,7 @@ public abstract class DOPAbstractType /** * Get the unused2 field for the DOP record. */ - public short getUnused2() + public byte getUnused2() { return field_2_unused2; } @@ -747,7 +747,7 @@ public abstract class DOPAbstractType /** * Set the unused2 field for the DOP record. */ - public void setUnused2(short field_2_unused2) + public void setUnused2(byte field_2_unused2) { this.field_2_unused2 = field_2_unused2; } @@ -1570,1934 +1570,1934 @@ public abstract class DOPAbstractType /** * Sets the fFacingPages field value. - * + * */ public void setFFacingPages(boolean value) { field_1_formatFlags = (byte)fFacingPages.setBoolean(field_1_formatFlags, value); - + } /** - * + * * @return the fFacingPages field value. */ public boolean isFFacingPages() { return fFacingPages.isSet(field_1_formatFlags); - + } /** * Sets the fWidowControl field value. - * + * */ public void setFWidowControl(boolean value) { field_1_formatFlags = (byte)fWidowControl.setBoolean(field_1_formatFlags, value); - + } /** - * + * * @return the fWidowControl field value. */ public boolean isFWidowControl() { return fWidowControl.isSet(field_1_formatFlags); - + } /** * Sets the fPMHMainDoc field value. - * + * */ public void setFPMHMainDoc(boolean value) { field_1_formatFlags = (byte)fPMHMainDoc.setBoolean(field_1_formatFlags, value); - + } /** - * + * * @return the fPMHMainDoc field value. */ public boolean isFPMHMainDoc() { return fPMHMainDoc.isSet(field_1_formatFlags); - + } /** * Sets the grfSupression field value. - * + * */ public void setGrfSupression(byte value) { field_1_formatFlags = (byte)grfSupression.setValue(field_1_formatFlags, value); - + } /** - * + * * @return the grfSupression field value. */ public byte getGrfSupression() { return ( byte )grfSupression.getValue(field_1_formatFlags); - + } /** * Sets the fpc field value. - * + * */ public void setFpc(byte value) { field_1_formatFlags = (byte)fpc.setValue(field_1_formatFlags, value); - + } /** - * + * * @return the fpc field value. */ public byte getFpc() { return ( byte )fpc.getValue(field_1_formatFlags); - + } /** * Sets the unused1 field value. - * + * */ public void setUnused1(boolean value) { field_1_formatFlags = (byte)unused1.setBoolean(field_1_formatFlags, value); - + } /** - * + * * @return the unused1 field value. */ public boolean isUnused1() { return unused1.isSet(field_1_formatFlags); - + } /** * Sets the rncFtn field value. - * + * */ public void setRncFtn(byte value) { field_3_footnoteInfo = (short)rncFtn.setValue(field_3_footnoteInfo, value); - + } /** - * + * * @return the rncFtn field value. */ public byte getRncFtn() { return ( byte )rncFtn.getValue(field_3_footnoteInfo); - + } /** * Sets the nFtn field value. - * + * */ public void setNFtn(short value) { field_3_footnoteInfo = (short)nFtn.setValue(field_3_footnoteInfo, value); - + } /** - * + * * @return the nFtn field value. */ public short getNFtn() { return ( short )nFtn.getValue(field_3_footnoteInfo); - + } /** * Sets the fOnlyMacPics field value. - * + * */ public void setFOnlyMacPics(boolean value) { field_5_docinfo = (byte)fOnlyMacPics.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fOnlyMacPics field value. */ public boolean isFOnlyMacPics() { return fOnlyMacPics.isSet(field_5_docinfo); - + } /** * Sets the fOnlyWinPics field value. - * + * */ public void setFOnlyWinPics(boolean value) { field_5_docinfo = (byte)fOnlyWinPics.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fOnlyWinPics field value. */ public boolean isFOnlyWinPics() { return fOnlyWinPics.isSet(field_5_docinfo); - + } /** * Sets the fLabelDoc field value. - * + * */ public void setFLabelDoc(boolean value) { field_5_docinfo = (byte)fLabelDoc.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fLabelDoc field value. */ public boolean isFLabelDoc() { return fLabelDoc.isSet(field_5_docinfo); - + } /** * Sets the fHyphCapitals field value. - * + * */ public void setFHyphCapitals(boolean value) { field_5_docinfo = (byte)fHyphCapitals.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fHyphCapitals field value. */ public boolean isFHyphCapitals() { return fHyphCapitals.isSet(field_5_docinfo); - + } /** * Sets the fAutoHyphen field value. - * + * */ public void setFAutoHyphen(boolean value) { field_5_docinfo = (byte)fAutoHyphen.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fAutoHyphen field value. */ public boolean isFAutoHyphen() { return fAutoHyphen.isSet(field_5_docinfo); - + } /** * Sets the fFormNoFields field value. - * + * */ public void setFFormNoFields(boolean value) { field_5_docinfo = (byte)fFormNoFields.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fFormNoFields field value. */ public boolean isFFormNoFields() { return fFormNoFields.isSet(field_5_docinfo); - + } /** * Sets the fLinkStyles field value. - * + * */ public void setFLinkStyles(boolean value) { field_5_docinfo = (byte)fLinkStyles.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fLinkStyles field value. */ public boolean isFLinkStyles() { return fLinkStyles.isSet(field_5_docinfo); - + } /** * Sets the fRevMarking field value. - * + * */ public void setFRevMarking(boolean value) { field_5_docinfo = (byte)fRevMarking.setBoolean(field_5_docinfo, value); - + } /** - * + * * @return the fRevMarking field value. */ public boolean isFRevMarking() { return fRevMarking.isSet(field_5_docinfo); - + } /** * Sets the fBackup field value. - * + * */ public void setFBackup(boolean value) { field_6_docinfo1 = (byte)fBackup.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fBackup field value. */ public boolean isFBackup() { return fBackup.isSet(field_6_docinfo1); - + } /** * Sets the fExactCWords field value. - * + * */ public void setFExactCWords(boolean value) { field_6_docinfo1 = (byte)fExactCWords.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fExactCWords field value. */ public boolean isFExactCWords() { return fExactCWords.isSet(field_6_docinfo1); - + } /** * Sets the fPagHidden field value. - * + * */ public void setFPagHidden(boolean value) { field_6_docinfo1 = (byte)fPagHidden.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fPagHidden field value. */ public boolean isFPagHidden() { return fPagHidden.isSet(field_6_docinfo1); - + } /** * Sets the fPagResults field value. - * + * */ public void setFPagResults(boolean value) { field_6_docinfo1 = (byte)fPagResults.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fPagResults field value. */ public boolean isFPagResults() { return fPagResults.isSet(field_6_docinfo1); - + } /** * Sets the fLockAtn field value. - * + * */ public void setFLockAtn(boolean value) { field_6_docinfo1 = (byte)fLockAtn.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fLockAtn field value. */ public boolean isFLockAtn() { return fLockAtn.isSet(field_6_docinfo1); - + } /** * Sets the fMirrorMargins field value. - * + * */ public void setFMirrorMargins(boolean value) { field_6_docinfo1 = (byte)fMirrorMargins.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fMirrorMargins field value. */ public boolean isFMirrorMargins() { return fMirrorMargins.isSet(field_6_docinfo1); - + } /** * Sets the unused3 field value. - * + * */ public void setUnused3(boolean value) { field_6_docinfo1 = (byte)unused3.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the unused3 field value. */ public boolean isUnused3() { return unused3.isSet(field_6_docinfo1); - + } /** * Sets the fDfltTrueType field value. - * + * */ public void setFDfltTrueType(boolean value) { field_6_docinfo1 = (byte)fDfltTrueType.setBoolean(field_6_docinfo1, value); - + } /** - * + * * @return the fDfltTrueType field value. */ public boolean isFDfltTrueType() { return fDfltTrueType.isSet(field_6_docinfo1); - + } /** * Sets the fPagSupressTopSpacing field value. - * + * */ public void setFPagSupressTopSpacing(boolean value) { field_7_docinfo2 = (byte)fPagSupressTopSpacing.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fPagSupressTopSpacing field value. */ public boolean isFPagSupressTopSpacing() { return fPagSupressTopSpacing.isSet(field_7_docinfo2); - + } /** * Sets the fProtEnabled field value. - * + * */ public void setFProtEnabled(boolean value) { field_7_docinfo2 = (byte)fProtEnabled.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fProtEnabled field value. */ public boolean isFProtEnabled() { return fProtEnabled.isSet(field_7_docinfo2); - + } /** * Sets the fDispFormFldSel field value. - * + * */ public void setFDispFormFldSel(boolean value) { field_7_docinfo2 = (byte)fDispFormFldSel.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fDispFormFldSel field value. */ public boolean isFDispFormFldSel() { return fDispFormFldSel.isSet(field_7_docinfo2); - + } /** * Sets the fRMView field value. - * + * */ public void setFRMView(boolean value) { field_7_docinfo2 = (byte)fRMView.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fRMView field value. */ public boolean isFRMView() { return fRMView.isSet(field_7_docinfo2); - + } /** * Sets the fRMPrint field value. - * + * */ public void setFRMPrint(boolean value) { field_7_docinfo2 = (byte)fRMPrint.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fRMPrint field value. */ public boolean isFRMPrint() { return fRMPrint.isSet(field_7_docinfo2); - + } /** * Sets the unused4 field value. - * + * */ public void setUnused4(boolean value) { field_7_docinfo2 = (byte)unused4.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the unused4 field value. */ public boolean isUnused4() { return unused4.isSet(field_7_docinfo2); - + } /** * Sets the fLockRev field value. - * + * */ public void setFLockRev(boolean value) { field_7_docinfo2 = (byte)fLockRev.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fLockRev field value. */ public boolean isFLockRev() { return fLockRev.isSet(field_7_docinfo2); - + } /** * Sets the fEmbedFonts field value. - * + * */ public void setFEmbedFonts(boolean value) { field_7_docinfo2 = (byte)fEmbedFonts.setBoolean(field_7_docinfo2, value); - + } /** - * + * * @return the fEmbedFonts field value. */ public boolean isFEmbedFonts() { return fEmbedFonts.isSet(field_7_docinfo2); - + } /** * Sets the oldfNoTabForInd field value. - * + * */ public void setOldfNoTabForInd(boolean value) { field_8_docinfo3 = (short)oldfNoTabForInd.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfNoTabForInd field value. */ public boolean isOldfNoTabForInd() { return oldfNoTabForInd.isSet(field_8_docinfo3); - + } /** * Sets the oldfNoSpaceRaiseLower field value. - * + * */ public void setOldfNoSpaceRaiseLower(boolean value) { field_8_docinfo3 = (short)oldfNoSpaceRaiseLower.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfNoSpaceRaiseLower field value. */ public boolean isOldfNoSpaceRaiseLower() { return oldfNoSpaceRaiseLower.isSet(field_8_docinfo3); - + } /** * Sets the oldfSuppressSpbfAfterPageBreak field value. - * + * */ public void setOldfSuppressSpbfAfterPageBreak(boolean value) { field_8_docinfo3 = (short)oldfSuppressSpbfAfterPageBreak.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfSuppressSpbfAfterPageBreak field value. */ public boolean isOldfSuppressSpbfAfterPageBreak() { return oldfSuppressSpbfAfterPageBreak.isSet(field_8_docinfo3); - + } /** * Sets the oldfWrapTrailSpaces field value. - * + * */ public void setOldfWrapTrailSpaces(boolean value) { field_8_docinfo3 = (short)oldfWrapTrailSpaces.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfWrapTrailSpaces field value. */ public boolean isOldfWrapTrailSpaces() { return oldfWrapTrailSpaces.isSet(field_8_docinfo3); - + } /** * Sets the oldfMapPrintTextColor field value. - * + * */ public void setOldfMapPrintTextColor(boolean value) { field_8_docinfo3 = (short)oldfMapPrintTextColor.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfMapPrintTextColor field value. */ public boolean isOldfMapPrintTextColor() { return oldfMapPrintTextColor.isSet(field_8_docinfo3); - + } /** * Sets the oldfNoColumnBalance field value. - * + * */ public void setOldfNoColumnBalance(boolean value) { field_8_docinfo3 = (short)oldfNoColumnBalance.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfNoColumnBalance field value. */ public boolean isOldfNoColumnBalance() { return oldfNoColumnBalance.isSet(field_8_docinfo3); - + } /** * Sets the oldfConvMailMergeEsc field value. - * + * */ public void setOldfConvMailMergeEsc(boolean value) { field_8_docinfo3 = (short)oldfConvMailMergeEsc.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfConvMailMergeEsc field value. */ public boolean isOldfConvMailMergeEsc() { return oldfConvMailMergeEsc.isSet(field_8_docinfo3); - + } /** * Sets the oldfSupressTopSpacing field value. - * + * */ public void setOldfSupressTopSpacing(boolean value) { field_8_docinfo3 = (short)oldfSupressTopSpacing.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfSupressTopSpacing field value. */ public boolean isOldfSupressTopSpacing() { return oldfSupressTopSpacing.isSet(field_8_docinfo3); - + } /** * Sets the oldfOrigWordTableRules field value. - * + * */ public void setOldfOrigWordTableRules(boolean value) { field_8_docinfo3 = (short)oldfOrigWordTableRules.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfOrigWordTableRules field value. */ public boolean isOldfOrigWordTableRules() { return oldfOrigWordTableRules.isSet(field_8_docinfo3); - + } /** * Sets the oldfTransparentMetafiles field value. - * + * */ public void setOldfTransparentMetafiles(boolean value) { field_8_docinfo3 = (short)oldfTransparentMetafiles.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfTransparentMetafiles field value. */ public boolean isOldfTransparentMetafiles() { return oldfTransparentMetafiles.isSet(field_8_docinfo3); - + } /** * Sets the oldfShowBreaksInFrames field value. - * + * */ public void setOldfShowBreaksInFrames(boolean value) { field_8_docinfo3 = (short)oldfShowBreaksInFrames.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfShowBreaksInFrames field value. */ public boolean isOldfShowBreaksInFrames() { return oldfShowBreaksInFrames.isSet(field_8_docinfo3); - + } /** * Sets the oldfSwapBordersFacingPgs field value. - * + * */ public void setOldfSwapBordersFacingPgs(boolean value) { field_8_docinfo3 = (short)oldfSwapBordersFacingPgs.setBoolean(field_8_docinfo3, value); - + } /** - * + * * @return the oldfSwapBordersFacingPgs field value. */ public boolean isOldfSwapBordersFacingPgs() { return oldfSwapBordersFacingPgs.isSet(field_8_docinfo3); - + } /** * Sets the unused5 field value. - * + * */ public void setUnused5(byte value) { field_8_docinfo3 = (short)unused5.setValue(field_8_docinfo3, value); - + } /** - * + * * @return the unused5 field value. */ public byte getUnused5() { return ( byte )unused5.getValue(field_8_docinfo3); - + } /** * Sets the rncEdn field value. - * + * */ public void setRncEdn(byte value) { field_23_Edn = (short)rncEdn.setValue(field_23_Edn, value); - + } /** - * + * * @return the rncEdn field value. */ public byte getRncEdn() { return ( byte )rncEdn.getValue(field_23_Edn); - + } /** * Sets the nEdn field value. - * + * */ public void setNEdn(short value) { field_23_Edn = (short)nEdn.setValue(field_23_Edn, value); - + } /** - * + * * @return the nEdn field value. */ public short getNEdn() { return ( short )nEdn.getValue(field_23_Edn); - + } /** * Sets the epc field value. - * + * */ public void setEpc(byte value) { field_24_Edn1 = (short)epc.setValue(field_24_Edn1, value); - + } /** - * + * * @return the epc field value. */ public byte getEpc() { return ( byte )epc.getValue(field_24_Edn1); - + } /** * Sets the nfcFtnRef1 field value. - * + * */ public void setNfcFtnRef1(byte value) { field_24_Edn1 = (short)nfcFtnRef1.setValue(field_24_Edn1, value); - + } /** - * + * * @return the nfcFtnRef1 field value. */ public byte getNfcFtnRef1() { return ( byte )nfcFtnRef1.getValue(field_24_Edn1); - + } /** * Sets the nfcEdnRef1 field value. - * + * */ public void setNfcEdnRef1(byte value) { field_24_Edn1 = (short)nfcEdnRef1.setValue(field_24_Edn1, value); - + } /** - * + * * @return the nfcEdnRef1 field value. */ public byte getNfcEdnRef1() { return ( byte )nfcEdnRef1.getValue(field_24_Edn1); - + } /** * Sets the fPrintFormData field value. - * + * */ public void setFPrintFormData(boolean value) { field_24_Edn1 = (short)fPrintFormData.setBoolean(field_24_Edn1, value); - + } /** - * + * * @return the fPrintFormData field value. */ public boolean isFPrintFormData() { return fPrintFormData.isSet(field_24_Edn1); - + } /** * Sets the fSaveFormData field value. - * + * */ public void setFSaveFormData(boolean value) { field_24_Edn1 = (short)fSaveFormData.setBoolean(field_24_Edn1, value); - + } /** - * + * * @return the fSaveFormData field value. */ public boolean isFSaveFormData() { return fSaveFormData.isSet(field_24_Edn1); - + } /** * Sets the fShadeFormData field value. - * + * */ public void setFShadeFormData(boolean value) { field_24_Edn1 = (short)fShadeFormData.setBoolean(field_24_Edn1, value); - + } /** - * + * * @return the fShadeFormData field value. */ public boolean isFShadeFormData() { return fShadeFormData.isSet(field_24_Edn1); - + } /** * Sets the fWCFtnEdn field value. - * + * */ public void setFWCFtnEdn(boolean value) { field_24_Edn1 = (short)fWCFtnEdn.setBoolean(field_24_Edn1, value); - + } /** - * + * * @return the fWCFtnEdn field value. */ public boolean isFWCFtnEdn() { return fWCFtnEdn.isSet(field_24_Edn1); - + } /** * Sets the wvkSaved field value. - * + * */ public void setWvkSaved(byte value) { field_32_view = (short)wvkSaved.setValue(field_32_view, value); - + } /** - * + * * @return the wvkSaved field value. */ public byte getWvkSaved() { return ( byte )wvkSaved.getValue(field_32_view); - + } /** * Sets the wScaleSaved field value. - * + * */ public void setWScaleSaved(short value) { field_32_view = (short)wScaleSaved.setValue(field_32_view, value); - + } /** - * + * * @return the wScaleSaved field value. */ public short getWScaleSaved() { return ( short )wScaleSaved.getValue(field_32_view); - + } /** * Sets the zkSaved field value. - * + * */ public void setZkSaved(byte value) { field_32_view = (short)zkSaved.setValue(field_32_view, value); - + } /** - * + * * @return the zkSaved field value. */ public byte getZkSaved() { return ( byte )zkSaved.getValue(field_32_view); - + } /** * Sets the fRotateFontW6 field value. - * + * */ public void setFRotateFontW6(boolean value) { field_32_view = (short)fRotateFontW6.setBoolean(field_32_view, value); - + } /** - * + * * @return the fRotateFontW6 field value. */ public boolean isFRotateFontW6() { return fRotateFontW6.isSet(field_32_view); - + } /** * Sets the iGutterPos field value. - * + * */ public void setIGutterPos(boolean value) { field_32_view = (short)iGutterPos.setBoolean(field_32_view, value); - + } /** - * + * * @return the iGutterPos field value. */ public boolean isIGutterPos() { return iGutterPos.isSet(field_32_view); - + } /** * Sets the fNoTabForInd field value. - * + * */ public void setFNoTabForInd(boolean value) { field_33_docinfo4 = (int)fNoTabForInd.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fNoTabForInd field value. */ public boolean isFNoTabForInd() { return fNoTabForInd.isSet(field_33_docinfo4); - + } /** * Sets the fNoSpaceRaiseLower field value. - * + * */ public void setFNoSpaceRaiseLower(boolean value) { field_33_docinfo4 = (int)fNoSpaceRaiseLower.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fNoSpaceRaiseLower field value. */ public boolean isFNoSpaceRaiseLower() { return fNoSpaceRaiseLower.isSet(field_33_docinfo4); - + } /** * Sets the fSupressSpdfAfterPageBreak field value. - * + * */ public void setFSupressSpdfAfterPageBreak(boolean value) { field_33_docinfo4 = (int)fSupressSpdfAfterPageBreak.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fSupressSpdfAfterPageBreak field value. */ public boolean isFSupressSpdfAfterPageBreak() { return fSupressSpdfAfterPageBreak.isSet(field_33_docinfo4); - + } /** * Sets the fWrapTrailSpaces field value. - * + * */ public void setFWrapTrailSpaces(boolean value) { field_33_docinfo4 = (int)fWrapTrailSpaces.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fWrapTrailSpaces field value. */ public boolean isFWrapTrailSpaces() { return fWrapTrailSpaces.isSet(field_33_docinfo4); - + } /** * Sets the fMapPrintTextColor field value. - * + * */ public void setFMapPrintTextColor(boolean value) { field_33_docinfo4 = (int)fMapPrintTextColor.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fMapPrintTextColor field value. */ public boolean isFMapPrintTextColor() { return fMapPrintTextColor.isSet(field_33_docinfo4); - + } /** * Sets the fNoColumnBalance field value. - * + * */ public void setFNoColumnBalance(boolean value) { field_33_docinfo4 = (int)fNoColumnBalance.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fNoColumnBalance field value. */ public boolean isFNoColumnBalance() { return fNoColumnBalance.isSet(field_33_docinfo4); - + } /** * Sets the fConvMailMergeEsc field value. - * + * */ public void setFConvMailMergeEsc(boolean value) { field_33_docinfo4 = (int)fConvMailMergeEsc.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fConvMailMergeEsc field value. */ public boolean isFConvMailMergeEsc() { return fConvMailMergeEsc.isSet(field_33_docinfo4); - + } /** * Sets the fSupressTopSpacing field value. - * + * */ public void setFSupressTopSpacing(boolean value) { field_33_docinfo4 = (int)fSupressTopSpacing.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fSupressTopSpacing field value. */ public boolean isFSupressTopSpacing() { return fSupressTopSpacing.isSet(field_33_docinfo4); - + } /** * Sets the fOrigWordTableRules field value. - * + * */ public void setFOrigWordTableRules(boolean value) { field_33_docinfo4 = (int)fOrigWordTableRules.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fOrigWordTableRules field value. */ public boolean isFOrigWordTableRules() { return fOrigWordTableRules.isSet(field_33_docinfo4); - + } /** * Sets the fTransparentMetafiles field value. - * + * */ public void setFTransparentMetafiles(boolean value) { field_33_docinfo4 = (int)fTransparentMetafiles.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fTransparentMetafiles field value. */ public boolean isFTransparentMetafiles() { return fTransparentMetafiles.isSet(field_33_docinfo4); - + } /** * Sets the fShowBreaksInFrames field value. - * + * */ public void setFShowBreaksInFrames(boolean value) { field_33_docinfo4 = (int)fShowBreaksInFrames.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fShowBreaksInFrames field value. */ public boolean isFShowBreaksInFrames() { return fShowBreaksInFrames.isSet(field_33_docinfo4); - + } /** * Sets the fSwapBordersFacingPgs field value. - * + * */ public void setFSwapBordersFacingPgs(boolean value) { field_33_docinfo4 = (int)fSwapBordersFacingPgs.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fSwapBordersFacingPgs field value. */ public boolean isFSwapBordersFacingPgs() { return fSwapBordersFacingPgs.isSet(field_33_docinfo4); - + } /** * Sets the fSuppressTopSPacingMac5 field value. - * + * */ public void setFSuppressTopSPacingMac5(boolean value) { field_33_docinfo4 = (int)fSuppressTopSPacingMac5.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fSuppressTopSPacingMac5 field value. */ public boolean isFSuppressTopSPacingMac5() { return fSuppressTopSPacingMac5.isSet(field_33_docinfo4); - + } /** * Sets the fTruncDxaExpand field value. - * + * */ public void setFTruncDxaExpand(boolean value) { field_33_docinfo4 = (int)fTruncDxaExpand.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fTruncDxaExpand field value. */ public boolean isFTruncDxaExpand() { return fTruncDxaExpand.isSet(field_33_docinfo4); - + } /** * Sets the fPrintBodyBeforeHdr field value. - * + * */ public void setFPrintBodyBeforeHdr(boolean value) { field_33_docinfo4 = (int)fPrintBodyBeforeHdr.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fPrintBodyBeforeHdr field value. */ public boolean isFPrintBodyBeforeHdr() { return fPrintBodyBeforeHdr.isSet(field_33_docinfo4); - + } /** * Sets the fNoLeading field value. - * + * */ public void setFNoLeading(boolean value) { field_33_docinfo4 = (int)fNoLeading.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fNoLeading field value. */ public boolean isFNoLeading() { return fNoLeading.isSet(field_33_docinfo4); - + } /** * Sets the fMWSmallCaps field value. - * + * */ public void setFMWSmallCaps(boolean value) { field_33_docinfo4 = (int)fMWSmallCaps.setBoolean(field_33_docinfo4, value); - + } /** - * + * * @return the fMWSmallCaps field value. */ public boolean isFMWSmallCaps() { return fMWSmallCaps.isSet(field_33_docinfo4); - + } /** * Sets the lvl field value. - * + * */ public void setLvl(byte value) { field_37_docinfo5 = (short)lvl.setValue(field_37_docinfo5, value); - + } /** - * + * * @return the lvl field value. */ public byte getLvl() { return ( byte )lvl.getValue(field_37_docinfo5); - + } /** * Sets the fGramAllDone field value. - * + * */ public void setFGramAllDone(boolean value) { field_37_docinfo5 = (short)fGramAllDone.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fGramAllDone field value. */ public boolean isFGramAllDone() { return fGramAllDone.isSet(field_37_docinfo5); - + } /** * Sets the fGramAllClean field value. - * + * */ public void setFGramAllClean(boolean value) { field_37_docinfo5 = (short)fGramAllClean.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fGramAllClean field value. */ public boolean isFGramAllClean() { return fGramAllClean.isSet(field_37_docinfo5); - + } /** * Sets the fSubsetFonts field value. - * + * */ public void setFSubsetFonts(boolean value) { field_37_docinfo5 = (short)fSubsetFonts.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fSubsetFonts field value. */ public boolean isFSubsetFonts() { return fSubsetFonts.isSet(field_37_docinfo5); - + } /** * Sets the fHideLastVersion field value. - * + * */ public void setFHideLastVersion(boolean value) { field_37_docinfo5 = (short)fHideLastVersion.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fHideLastVersion field value. */ public boolean isFHideLastVersion() { return fHideLastVersion.isSet(field_37_docinfo5); - + } /** * Sets the fHtmlDoc field value. - * + * */ public void setFHtmlDoc(boolean value) { field_37_docinfo5 = (short)fHtmlDoc.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fHtmlDoc field value. */ public boolean isFHtmlDoc() { return fHtmlDoc.isSet(field_37_docinfo5); - + } /** * Sets the fSnapBorder field value. - * + * */ public void setFSnapBorder(boolean value) { field_37_docinfo5 = (short)fSnapBorder.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fSnapBorder field value. */ public boolean isFSnapBorder() { return fSnapBorder.isSet(field_37_docinfo5); - + } /** * Sets the fIncludeHeader field value. - * + * */ public void setFIncludeHeader(boolean value) { field_37_docinfo5 = (short)fIncludeHeader.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fIncludeHeader field value. */ public boolean isFIncludeHeader() { return fIncludeHeader.isSet(field_37_docinfo5); - + } /** * Sets the fIncludeFooter field value. - * + * */ public void setFIncludeFooter(boolean value) { field_37_docinfo5 = (short)fIncludeFooter.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fIncludeFooter field value. */ public boolean isFIncludeFooter() { return fIncludeFooter.isSet(field_37_docinfo5); - + } /** * Sets the fForcePageSizePag field value. - * + * */ public void setFForcePageSizePag(boolean value) { field_37_docinfo5 = (short)fForcePageSizePag.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fForcePageSizePag field value. */ public boolean isFForcePageSizePag() { return fForcePageSizePag.isSet(field_37_docinfo5); - + } /** * Sets the fMinFontSizePag field value. - * + * */ public void setFMinFontSizePag(boolean value) { field_37_docinfo5 = (short)fMinFontSizePag.setBoolean(field_37_docinfo5, value); - + } /** - * + * * @return the fMinFontSizePag field value. */ public boolean isFMinFontSizePag() { return fMinFontSizePag.isSet(field_37_docinfo5); - + } /** * Sets the fHaveVersions field value. - * + * */ public void setFHaveVersions(boolean value) { field_38_docinfo6 = (short)fHaveVersions.setBoolean(field_38_docinfo6, value); - + } /** - * + * * @return the fHaveVersions field value. */ public boolean isFHaveVersions() { return fHaveVersions.isSet(field_38_docinfo6); - + } /** * Sets the fAutoVersions field value. - * + * */ public void setFAutoVersions(boolean value) { field_38_docinfo6 = (short)fAutoVersions.setBoolean(field_38_docinfo6, value); - + } /** - * + * * @return the fAutoVersions field value. */ public boolean isFAutoVersions() { return fAutoVersions.isSet(field_38_docinfo6); - + } /** * Sets the fVirusPrompted field value. - * + * */ public void setFVirusPrompted(boolean value) { field_43_virusinfo = (int)fVirusPrompted.setBoolean(field_43_virusinfo, value); - + } /** - * + * * @return the fVirusPrompted field value. */ public boolean isFVirusPrompted() { return fVirusPrompted.isSet(field_43_virusinfo); - + } /** * Sets the fVirusLoadSafe field value. - * + * */ public void setFVirusLoadSafe(boolean value) { field_43_virusinfo = (int)fVirusLoadSafe.setBoolean(field_43_virusinfo, value); - + } /** - * + * * @return the fVirusLoadSafe field value. */ public boolean isFVirusLoadSafe() { return fVirusLoadSafe.isSet(field_43_virusinfo); - + } /** * Sets the KeyVirusSession30 field value. - * + * */ public void setKeyVirusSession30(int value) { field_43_virusinfo = (int)KeyVirusSession30.setValue(field_43_virusinfo, value); - + } /** - * + * * @return the KeyVirusSession30 field value. */ public int getKeyVirusSession30() { return ( int )KeyVirusSession30.getValue(field_43_virusinfo); - + } diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java index 7f22f20bef..5aa02fa5a8 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/FIBAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * File information Block. @@ -81,29 +81,29 @@ public abstract class FIBAbstractType private int field_4_lid; private int field_5_pnNext; private short field_6_options; - private BitField fDot = new BitField(0x0001); - private BitField fGlsy = new BitField(0x0002); - private BitField fComplex = new BitField(0x0004); - private BitField fHasPic = new BitField(0x0008); - private BitField cQuickSaves = new BitField(0x00F0); - private BitField fEncrypted = new BitField(0x0100); - private BitField fWhichTblStm = new BitField(0x0200); - private BitField fReadOnlyRecommended = new BitField(0x0400); - private BitField fWriteReservation = new BitField(0x0800); - private BitField fExtChar = new BitField(0x1000); - private BitField fLoadOverride = new BitField(0x2000); - private BitField fFarEast = new BitField(0x4000); - private BitField fCrypto = new BitField(0x8000); + private static BitField fDot = new BitField(0x0001); + private static BitField fGlsy = new BitField(0x0002); + private static BitField fComplex = new BitField(0x0004); + private static BitField fHasPic = new BitField(0x0008); + private static BitField cQuickSaves = new BitField(0x00F0); + private static BitField fEncrypted = new BitField(0x0100); + private static BitField fWhichTblStm = new BitField(0x0200); + private static BitField fReadOnlyRecommended = new BitField(0x0400); + private static BitField fWriteReservation = new BitField(0x0800); + private static BitField fExtChar = new BitField(0x1000); + private static BitField fLoadOverride = new BitField(0x2000); + private static BitField fFarEast = new BitField(0x4000); + private static BitField fCrypto = new BitField(0x8000); private int field_7_nFibBack; private int field_8_lKey; private int field_9_envr; private short field_10_history; - private BitField fMac = new BitField(0x0001); - private BitField fEmptySpecial = new BitField(0x0002); - private BitField fLoadOverridePage = new BitField(0x0004); - private BitField fFutureSavedUndo = new BitField(0x0008); - private BitField fWord97Saved = new BitField(0x0010); - private BitField fSpare0 = new BitField(0x00FE); + private static BitField fMac = new BitField(0x0001); + private static BitField fEmptySpecial = new BitField(0x0002); + private static BitField fLoadOverridePage = new BitField(0x0004); + private static BitField fFutureSavedUndo = new BitField(0x0008); + private static BitField fWord97Saved = new BitField(0x0010); + private static BitField fSpare0 = new BitField(0x00FE); private int field_11_chs; private int field_12_chsTables; private int field_13_fcMin; @@ -5888,401 +5888,401 @@ public abstract class FIBAbstractType /** * Sets the fDot field value. - * + * */ public void setFDot(boolean value) { field_6_options = (short)fDot.setBoolean(field_6_options, value); - + } /** - * + * * @return the fDot field value. */ public boolean isFDot() { return fDot.isSet(field_6_options); - + } /** * Sets the fGlsy field value. - * + * */ public void setFGlsy(boolean value) { field_6_options = (short)fGlsy.setBoolean(field_6_options, value); - + } /** - * + * * @return the fGlsy field value. */ public boolean isFGlsy() { return fGlsy.isSet(field_6_options); - + } /** * Sets the fComplex field value. - * + * */ public void setFComplex(boolean value) { field_6_options = (short)fComplex.setBoolean(field_6_options, value); - + } /** - * + * * @return the fComplex field value. */ public boolean isFComplex() { return fComplex.isSet(field_6_options); - + } /** * Sets the fHasPic field value. - * + * */ public void setFHasPic(boolean value) { field_6_options = (short)fHasPic.setBoolean(field_6_options, value); - + } /** - * + * * @return the fHasPic field value. */ public boolean isFHasPic() { return fHasPic.isSet(field_6_options); - + } /** * Sets the cQuickSaves field value. - * + * */ public void setCQuickSaves(byte value) { field_6_options = (short)cQuickSaves.setValue(field_6_options, value); - + } /** - * + * * @return the cQuickSaves field value. */ public byte getCQuickSaves() { return ( byte )cQuickSaves.getValue(field_6_options); - + } /** * Sets the fEncrypted field value. - * + * */ public void setFEncrypted(boolean value) { field_6_options = (short)fEncrypted.setBoolean(field_6_options, value); - + } /** - * + * * @return the fEncrypted field value. */ public boolean isFEncrypted() { return fEncrypted.isSet(field_6_options); - + } /** * Sets the fWhichTblStm field value. - * + * */ public void setFWhichTblStm(boolean value) { field_6_options = (short)fWhichTblStm.setBoolean(field_6_options, value); - + } /** - * + * * @return the fWhichTblStm field value. */ public boolean isFWhichTblStm() { return fWhichTblStm.isSet(field_6_options); - + } /** * Sets the fReadOnlyRecommended field value. - * + * */ public void setFReadOnlyRecommended(boolean value) { field_6_options = (short)fReadOnlyRecommended.setBoolean(field_6_options, value); - + } /** - * + * * @return the fReadOnlyRecommended field value. */ public boolean isFReadOnlyRecommended() { return fReadOnlyRecommended.isSet(field_6_options); - + } /** * Sets the fWriteReservation field value. - * + * */ public void setFWriteReservation(boolean value) { field_6_options = (short)fWriteReservation.setBoolean(field_6_options, value); - + } /** - * + * * @return the fWriteReservation field value. */ public boolean isFWriteReservation() { return fWriteReservation.isSet(field_6_options); - + } /** * Sets the fExtChar field value. - * + * */ public void setFExtChar(boolean value) { field_6_options = (short)fExtChar.setBoolean(field_6_options, value); - + } /** - * + * * @return the fExtChar field value. */ public boolean isFExtChar() { return fExtChar.isSet(field_6_options); - + } /** * Sets the fLoadOverride field value. - * + * */ public void setFLoadOverride(boolean value) { field_6_options = (short)fLoadOverride.setBoolean(field_6_options, value); - + } /** - * + * * @return the fLoadOverride field value. */ public boolean isFLoadOverride() { return fLoadOverride.isSet(field_6_options); - + } /** * Sets the fFarEast field value. - * + * */ public void setFFarEast(boolean value) { field_6_options = (short)fFarEast.setBoolean(field_6_options, value); - + } /** - * + * * @return the fFarEast field value. */ public boolean isFFarEast() { return fFarEast.isSet(field_6_options); - + } /** * Sets the fCrypto field value. - * + * */ public void setFCrypto(boolean value) { field_6_options = (short)fCrypto.setBoolean(field_6_options, value); - + } /** - * + * * @return the fCrypto field value. */ public boolean isFCrypto() { return fCrypto.isSet(field_6_options); - + } /** * Sets the fMac field value. - * + * */ public void setFMac(boolean value) { field_10_history = (short)fMac.setBoolean(field_10_history, value); - + } /** - * + * * @return the fMac field value. */ public boolean isFMac() { return fMac.isSet(field_10_history); - + } /** * Sets the fEmptySpecial field value. - * + * */ public void setFEmptySpecial(boolean value) { field_10_history = (short)fEmptySpecial.setBoolean(field_10_history, value); - + } /** - * + * * @return the fEmptySpecial field value. */ public boolean isFEmptySpecial() { return fEmptySpecial.isSet(field_10_history); - + } /** * Sets the fLoadOverridePage field value. - * + * */ public void setFLoadOverridePage(boolean value) { field_10_history = (short)fLoadOverridePage.setBoolean(field_10_history, value); - + } /** - * + * * @return the fLoadOverridePage field value. */ public boolean isFLoadOverridePage() { return fLoadOverridePage.isSet(field_10_history); - + } /** * Sets the fFutureSavedUndo field value. - * + * */ public void setFFutureSavedUndo(boolean value) { field_10_history = (short)fFutureSavedUndo.setBoolean(field_10_history, value); - + } /** - * + * * @return the fFutureSavedUndo field value. */ public boolean isFFutureSavedUndo() { return fFutureSavedUndo.isSet(field_10_history); - + } /** * Sets the fWord97Saved field value. - * + * */ public void setFWord97Saved(boolean value) { field_10_history = (short)fWord97Saved.setBoolean(field_10_history, value); - + } /** - * + * * @return the fWord97Saved field value. */ public boolean isFWord97Saved() { return fWord97Saved.isSet(field_10_history); - + } /** * Sets the fSpare0 field value. - * + * */ public void setFSpare0(byte value) { field_10_history = (short)fSpare0.setValue(field_10_history, value); - + } /** - * + * * @return the fSpare0 field value. */ public byte getFSpare0() { return ( byte )fSpare0.getValue(field_10_history); - + } diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java index a90b3dea1c..f84fc682f8 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/PAPAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Paragraph Properties. @@ -110,9 +110,9 @@ public abstract class PAPAbstractType private byte field_33_fAutoSpaceDN; private int field_34_wAlignFont; private short field_35_fontAlign; - private BitField fVertical = new BitField(0x0001); - private BitField fBackward = new BitField(0x0002); - private BitField fRotateFont = new BitField(0x0004); + private static BitField fVertical = new BitField(0x0001); + private static BitField fBackward = new BitField(0x0002); + private static BitField fRotateFont = new BitField(0x0004); private byte field_36_fBackward; private byte field_37_fRotateFont; private byte field_38_fInTable; @@ -1236,65 +1236,65 @@ public abstract class PAPAbstractType /** * Sets the fVertical field value. - * + * */ public void setFVertical(boolean value) { field_35_fontAlign = (short)fVertical.setBoolean(field_35_fontAlign, value); - + } /** - * + * * @return the fVertical field value. */ public boolean isFVertical() { return fVertical.isSet(field_35_fontAlign); - + } /** * Sets the fBackward field value. - * + * */ public void setFBackward(boolean value) { field_35_fontAlign = (short)fBackward.setBoolean(field_35_fontAlign, value); - + } /** - * + * * @return the fBackward field value. */ public boolean isFBackward() { return fBackward.isSet(field_35_fontAlign); - + } /** * Sets the fRotateFont field value. - * + * */ public void setFRotateFont(boolean value) { field_35_fontAlign = (short)fRotateFont.setBoolean(field_35_fontAlign, value); - + } /** - * + * * @return the fRotateFont field value. */ public boolean isFRotateFont() { return fRotateFont.isSet(field_35_fontAlign); - + } diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java index da8a22491c..f458441d33 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/SEPAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Section Properties. diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java index cc3bb63580..c5ab8e3f39 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TAPAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Table Properties. diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java index 79e163f3cf..585fd0638f 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/definitions/TCAbstractType.java @@ -62,7 +62,7 @@ import org.apache.poi.util.BitField; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.StringUtil; import org.apache.poi.util.HexDump; -import org.apache.poi.hwpf.model.hdftypes.HDFType; +import org.apache.poi.hdf.model.hdftypes.HDFType; /** * Table Cell Descriptor. @@ -76,14 +76,14 @@ public abstract class TCAbstractType { private short field_1_rgf; - private BitField fFirstMerged = new BitField(0x0001); - private BitField fMerged = new BitField(0x0002); - private BitField fVertical = new BitField(0x0004); - private BitField fBackward = new BitField(0x0008); - private BitField fRotateFont = new BitField(0x0010); - private BitField fVertMerge = new BitField(0x0020); - private BitField fVertRestart = new BitField(0x0040); - private BitField vertAlign = new BitField(0x0180); + private static BitField fFirstMerged = new BitField(0x0001); + private static BitField fMerged = new BitField(0x0002); + private static BitField fVertical = new BitField(0x0004); + private static BitField fBackward = new BitField(0x0008); + private static BitField fRotateFont = new BitField(0x0010); + private static BitField fVertMerge = new BitField(0x0020); + private static BitField fVertRestart = new BitField(0x0040); + private static BitField vertAlign = new BitField(0x0180); private short field_2_unused; private short[] field_3_brcTop; private short[] field_4_brcLeft; @@ -204,170 +204,170 @@ public abstract class TCAbstractType /** * Sets the fFirstMerged field value. - * + * */ public void setFFirstMerged(boolean value) { field_1_rgf = (short)fFirstMerged.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fFirstMerged field value. */ public boolean isFFirstMerged() { return fFirstMerged.isSet(field_1_rgf); - + } /** * Sets the fMerged field value. - * + * */ public void setFMerged(boolean value) { field_1_rgf = (short)fMerged.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fMerged field value. */ public boolean isFMerged() { return fMerged.isSet(field_1_rgf); - + } /** * Sets the fVertical field value. - * + * */ public void setFVertical(boolean value) { field_1_rgf = (short)fVertical.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fVertical field value. */ public boolean isFVertical() { return fVertical.isSet(field_1_rgf); - + } /** * Sets the fBackward field value. - * + * */ public void setFBackward(boolean value) { field_1_rgf = (short)fBackward.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fBackward field value. */ public boolean isFBackward() { return fBackward.isSet(field_1_rgf); - + } /** * Sets the fRotateFont field value. - * + * */ public void setFRotateFont(boolean value) { field_1_rgf = (short)fRotateFont.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fRotateFont field value. */ public boolean isFRotateFont() { return fRotateFont.isSet(field_1_rgf); - + } /** * Sets the fVertMerge field value. - * + * */ public void setFVertMerge(boolean value) { field_1_rgf = (short)fVertMerge.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fVertMerge field value. */ public boolean isFVertMerge() { return fVertMerge.isSet(field_1_rgf); - + } /** * Sets the fVertRestart field value. - * + * */ public void setFVertRestart(boolean value) { field_1_rgf = (short)fVertRestart.setBoolean(field_1_rgf, value); - + } /** - * + * * @return the fVertRestart field value. */ public boolean isFVertRestart() { return fVertRestart.isSet(field_1_rgf); - + } /** * Sets the vertAlign field value. - * + * */ public void setVertAlign(byte value) { field_1_rgf = (short)vertAlign.setValue(field_1_rgf, value); - + } /** - * + * * @return the vertAlign field value. */ public byte getVertAlign() { return ( byte )vertAlign.getValue(field_1_rgf); - + }