|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hdf.model.hdftypes.StyleSheet
public final class StyleSheet
Represents a document's stylesheet. A word documents formatting is stored as compressed styles that are based on styles contained in the stylesheet. This class also contains static utility functions to uncompress different formatting properties.
| Constructor Summary | |
|---|---|
StyleSheet(byte[] styleSheet)
StyleSheet constructor. |
|
| Method Summary | |
|---|---|
static boolean |
getFlag(int x)
Converts an int into a boolean. |
StyleDescription |
getStyleDescription(int x)
Gets the StyleDescription at index x. |
static java.lang.Object |
uncompressProperty(byte[] grpprl,
java.lang.Object parent,
StyleSheet styleSheet)
Used to uncompress a property stored in a grpprl. |
static java.lang.Object |
uncompressProperty(byte[] grpprl,
java.lang.Object parent,
StyleSheet styleSheet,
boolean doIstd)
Used to uncompress a property stored in a grpprl. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleSheet(byte[] styleSheet)
styleSheet - A byte array containing a document's raw stylesheet
info. Found by using FileInformationBlock.getFcStshf() and
FileInformationBLock.getLcbStshf()| Method Detail |
|---|
public StyleDescription getStyleDescription(int x)
x - the index of the desired StyleDescription.
public static java.lang.Object uncompressProperty(byte[] grpprl,
java.lang.Object parent,
StyleSheet styleSheet)
grpprl - The compressed form of the property.parent - The base property of the property.styleSheet - The document's stylesheet.
public static java.lang.Object uncompressProperty(byte[] grpprl,
java.lang.Object parent,
StyleSheet styleSheet,
boolean doIstd)
grpprl - The compressed form of the property.parent - The base property of the property.styleSheet - The document's stylesheet.
public static boolean getFlag(int x)
x - The int to convert.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||