Package org.apache.poi.hwpf.model.types
Class StshifAbstractType
java.lang.Object
org.apache.poi.hwpf.model.types.StshifAbstractType
The Stshif structure specifies general stylesheet information.
-
Method Summary
Modifier and TypeMethodDescriptionintAn unsigned integer that specifies the size, in bytes, of the Stdf structure.intgetCstd()An unsigned integer that specifies the count of elements in STSH.rglpstd.shortThis value MUST be zero and MUST be ignoredshortA signed integer that specifies an operand value for the sprmCRgFtc0 for default document formatting.shortgetFtcFE()A signed integer that specifies an operand value for the sprmCRgFtc1 for default document formatting, as defined in the section Determining Formatting Properties.shortA signed integer that specifies an operand value for the sprmCRgFtc2 for default document formatting, as defined in the section Determining Formatting Properties.intgetInfo3()Get the info3 field for the Stshif record.intAn unsigned integer that specifies the count of elements at the start of STSH.rglpstd that are reserved for fixed-index application-defined styles.intAn unsigned integer that specifies the version number of the style names as defined by the application that writes the file.static intgetSize()Size of recordintAn unsigned integer that specifies a value that is 1 larger than the largest StdfBase.sti index of any application-defined style.booleanThis value MUST be 1 and MUST be ignoredvoidserialize(byte[] data, int offset) voidsetCbSTDBaseInFile(int field_2_cbSTDBaseInFile) An unsigned integer that specifies the size, in bytes, of the Stdf structure.voidsetCstd(int field_1_cstd) An unsigned integer that specifies the count of elements in STSH.rglpstd.voidsetFHasOriginalStyle(boolean value) Sets the fHasOriginalStyle field value.voidsetFReserved(short value) Sets the fReserved field value.voidsetFtcAsci(short field_7_ftcAsci) A signed integer that specifies an operand value for the sprmCRgFtc0 for default document formatting.voidsetFtcFE(short field_8_ftcFE) A signed integer that specifies an operand value for the sprmCRgFtc1 for default document formatting, as defined in the section Determining Formatting Properties.voidsetFtcOther(short field_9_ftcOther) A signed integer that specifies an operand value for the sprmCRgFtc2 for default document formatting, as defined in the section Determining Formatting Properties.voidsetInfo3(int field_3_info3) Set the info3 field for the Stshif record.voidsetIstdMaxFixedWhenSaved(int field_5_istdMaxFixedWhenSaved) An unsigned integer that specifies the count of elements at the start of STSH.rglpstd that are reserved for fixed-index application-defined styles.voidsetNVerBuiltInNamesWhenSaved(int field_6_nVerBuiltInNamesWhenSaved) An unsigned integer that specifies the version number of the style names as defined by the application that writes the file.voidsetStiMaxWhenSaved(int field_4_stiMaxWhenSaved) An unsigned integer that specifies a value that is 1 larger than the largest StdfBase.sti index of any application-defined style.toString()
-
Method Details
-
serialize
public void serialize(byte[] data, int offset) -
getSize
public static int getSize()Size of record -
toString
-
getCstd
An unsigned integer that specifies the count of elements in STSH.rglpstd. This value MUST be equal to or greater than 0x000F, and MUST be less than 0x0FFE. -
setCstd
An unsigned integer that specifies the count of elements in STSH.rglpstd. This value MUST be equal to or greater than 0x000F, and MUST be less than 0x0FFE. -
getCbSTDBaseInFile
An unsigned integer that specifies the size, in bytes, of the Stdf structure. The Stdf structure contains an StdfBase structure that is followed by a StdfPost2000OrNone structure which contains an optional StdfPost2000 structure. This value MUST be 0x000A when the Stdf structure does not contain an StdfPost2000 structure and MUST be 0x0012 when the Stdf structure does contain an StdfPost2000 structure.. -
setCbSTDBaseInFile
An unsigned integer that specifies the size, in bytes, of the Stdf structure. The Stdf structure contains an StdfBase structure that is followed by a StdfPost2000OrNone structure which contains an optional StdfPost2000 structure. This value MUST be 0x000A when the Stdf structure does not contain an StdfPost2000 structure and MUST be 0x0012 when the Stdf structure does contain an StdfPost2000 structure.. -
getInfo3
Get the info3 field for the Stshif record. -
setInfo3
Set the info3 field for the Stshif record. -
getStiMaxWhenSaved
An unsigned integer that specifies a value that is 1 larger than the largest StdfBase.sti index of any application-defined style. This SHOULD be equal to the largest sti index that is defined in the application, incremented by 1. -
setStiMaxWhenSaved
An unsigned integer that specifies a value that is 1 larger than the largest StdfBase.sti index of any application-defined style. This SHOULD be equal to the largest sti index that is defined in the application, incremented by 1. -
getIstdMaxFixedWhenSaved
An unsigned integer that specifies the count of elements at the start of STSH.rglpstd that are reserved for fixed-index application-defined styles. This value MUST be 0x000F. -
setIstdMaxFixedWhenSaved
An unsigned integer that specifies the count of elements at the start of STSH.rglpstd that are reserved for fixed-index application-defined styles. This value MUST be 0x000F. -
getNVerBuiltInNamesWhenSaved
An unsigned integer that specifies the version number of the style names as defined by the application that writes the file. -
setNVerBuiltInNamesWhenSaved
An unsigned integer that specifies the version number of the style names as defined by the application that writes the file. -
getFtcAsci
A signed integer that specifies an operand value for the sprmCRgFtc0 for default document formatting. -
setFtcAsci
A signed integer that specifies an operand value for the sprmCRgFtc0 for default document formatting. -
getFtcFE
A signed integer that specifies an operand value for the sprmCRgFtc1 for default document formatting, as defined in the section Determining Formatting Properties. -
setFtcFE
A signed integer that specifies an operand value for the sprmCRgFtc1 for default document formatting, as defined in the section Determining Formatting Properties. -
getFtcOther
A signed integer that specifies an operand value for the sprmCRgFtc2 for default document formatting, as defined in the section Determining Formatting Properties. -
setFtcOther
A signed integer that specifies an operand value for the sprmCRgFtc2 for default document formatting, as defined in the section Determining Formatting Properties. -
setFHasOriginalStyle
Sets the fHasOriginalStyle field value. This value MUST be 1 and MUST be ignored -
isFHasOriginalStyle
This value MUST be 1 and MUST be ignored- Returns:
- the fHasOriginalStyle field value.
-
setFReserved
Sets the fReserved field value. This value MUST be zero and MUST be ignored -
getFReserved
This value MUST be zero and MUST be ignored- Returns:
- the fReserved field value.
-