|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hwpf.model.StyleSheet
@Internal 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.
Fields documentation is quotes from Microsoft Office Word 97-2007 Binary File Format (.doc) Specification, page 36 of 210
Field Summary | |
---|---|
static int |
NIL_STYLE
|
Constructor Summary | |
---|---|
StyleSheet(byte[] tableStream,
int offset)
StyleSheet constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
CharacterProperties |
getCharacterStyle(int styleIndex)
Deprecated. |
byte[] |
getCHPX(int styleIndex)
|
byte[] |
getPAPX(int styleIndex)
|
ParagraphProperties |
getParagraphStyle(int styleIndex)
Deprecated. |
StyleDescription |
getStyleDescription(int styleIndex)
Gets the StyleDescription at index x. |
int |
numStyles()
Gets the number of styles in the style sheet. |
void |
writeTo(HWPFOutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NIL_STYLE
Constructor Detail |
---|
public StyleSheet(byte[] tableStream, int offset)
tableStream
- A byte array containing a document's raw stylesheet
info. Found by using FileInformationBlock.getFcStshf() and
FileInformationBLock.getLcbStshf()Method Detail |
---|
public void writeTo(HWPFOutputStream out) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int numStyles()
public StyleDescription getStyleDescription(int styleIndex)
styleIndex
- the index of the desired StyleDescription.@Deprecated public CharacterProperties getCharacterStyle(int styleIndex)
@Deprecated public ParagraphProperties getParagraphStyle(int styleIndex)
public byte[] getCHPX(int styleIndex)
public byte[] getPAPX(int styleIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |