Package org.apache.poi.hslf.record
Class TextHeaderAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.TextHeaderAtom
-
- All Implemented Interfaces:
ParentAwareRecord
public final class TextHeaderAtom extends RecordAtom implements ParentAwareRecord
A TextHeaderAtom (type 3999). Holds information on what kind of text is contained in the TextBytesAtom / TextCharsAtom that follows straight after
-
-
Field Summary
Fields Modifier and Type Field Description static long_typestatic intBODY_TYPEstatic intCENTER_TITLE_TYPEstatic intCENTRE_BODY_TYPEstatic intHALF_BODY_TYPEstatic intNOTES_TYPEstatic intOTHER_TYPEstatic intQUARTER_BODY_TYPEstatic intTITLE_TYPE
-
Constructor Summary
Constructors Constructor Description TextHeaderAtom()Create a new TextHeader Atom, for an unknown type of text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()RecordContainergetParentRecord()longgetRecordType()We are of type 3999intgetTextType()voidsetIndex(int index)voidsetParentRecord(RecordContainer record)voidsetTextType(int type)voidwriteOut(java.io.OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Field Detail
-
_type
public static final long _type
-
TITLE_TYPE
public static final int TITLE_TYPE
- See Also:
- Constant Field Values
-
BODY_TYPE
public static final int BODY_TYPE
- See Also:
- Constant Field Values
-
NOTES_TYPE
public static final int NOTES_TYPE
- See Also:
- Constant Field Values
-
OTHER_TYPE
public static final int OTHER_TYPE
- See Also:
- Constant Field Values
-
CENTRE_BODY_TYPE
public static final int CENTRE_BODY_TYPE
- See Also:
- Constant Field Values
-
CENTER_TITLE_TYPE
public static final int CENTER_TITLE_TYPE
- See Also:
- Constant Field Values
-
HALF_BODY_TYPE
public static final int HALF_BODY_TYPE
- See Also:
- Constant Field Values
-
QUARTER_BODY_TYPE
public static final int QUARTER_BODY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTextType
public int getTextType()
-
setTextType
public void setTextType(int type)
-
getIndex
public int getIndex()
- Returns:
- 0-based index of the text run in the SLWT container
-
setIndex
public void setIndex(int index)
- Parameters:
index- 0-based index of the text run in the SLWT container
-
getParentRecord
public RecordContainer getParentRecord()
- Specified by:
getParentRecordin interfaceParentAwareRecord
-
setParentRecord
public void setParentRecord(RecordContainer record)
- Specified by:
setParentRecordin interfaceParentAwareRecord
-
getRecordType
public long getRecordType()
We are of type 3999- Specified by:
getRecordTypein classRecord
-
-