Package org.apache.poi.hslf.record
Class TxMasterStyleAtom
java.lang.Object
org.apache.poi.hslf.record.Record
org.apache.poi.hslf.record.RecordAtom
org.apache.poi.hslf.record.TxMasterStyleAtom
TxMasterStyleAtom atom (4003).
Stores default character and paragraph styles. The atom instance value is the text type and is encoded like the txstyle field in TextHeaderAtom. The text styles are located in the MainMaster container, except for the "other" style, which is in the Document.Environment container.
This atom can store up to 5 pairs of paragraph+character styles, each pair describes an indent level. The first pair describes first-level paragraph with no indentation.
- Author:
- Yegor Kozlov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum number of indentation levels allowed in PowerPoint documents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns array of character styles defined in this record.Returns array of paragraph styles defined in this record.long
We are of type 4003int
Return type of the text.protected void
init()
parse the record data and initialize stylesvoid
Updates the rawdata from the modified paragraph/character stylesvoid
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to diskMethods 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 Details
-
MAX_INDENT
public static final int MAX_INDENTMaximum number of indentation levels allowed in PowerPoint documents- See Also:
-
-
Constructor Details
-
TxMasterStyleAtom
protected TxMasterStyleAtom(byte[] source, int start, int len)
-
-
Method Details
-
getRecordType
public long getRecordType()We are of type 4003- Specified by:
getRecordType
in classRecord
- Returns:
- type of this record
- See Also:
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Throws:
IOException
-
getCharacterStyles
Returns array of character styles defined in this record.- Returns:
- character styles defined in this record
-
getParagraphStyles
Returns array of paragraph styles defined in this record.- Returns:
- paragraph styles defined in this record
-
getTextType
public int getTextType()Return type of the text. Must be a constant defined inTextHeaderAtom
- Returns:
- type of the text
- See Also:
-
init
protected void init()parse the record data and initialize styles -
updateStyles
public void updateStyles()Updates the rawdata from the modified paragraph/character styles- Since:
- POI 3.14-beta1
-