public final class TxMasterStyleAtom extends RecordAtom
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_INDENT
Maximum number of indentation levels allowed in PowerPoint documents
|
| Modifier and Type | Method and Description |
|---|---|
List<TextPropCollection> |
getCharacterStyles()
Returns array of character styles defined in this record.
|
List<TextPropCollection> |
getParagraphStyles()
Returns array of paragraph styles defined in this record.
|
long |
getRecordType()
We are of type 4003
|
int |
getTextType()
Return type of the text.
|
void |
updateStyles()
Updates the rawdata from the modified paragraph/character styles
|
void |
writeOut(OutputStream out)
Write the contents of the record back, so it can be written
to disk
|
getChildRecords, isAnAtombuildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndianpublic static final int MAX_INDENT
public long getRecordType()
getRecordType in class RecordRecordTypes.TxMasterStyleAtompublic void writeOut(OutputStream out) throws IOException
writeOut in class RecordIOExceptionpublic List<TextPropCollection> getCharacterStyles()
public List<TextPropCollection> getParagraphStyles()
public int getTextType()
TextHeaderAtomTextHeaderAtompublic void updateStyles()
Copyright © 2010 - 2020 Adobe. All Rights Reserved