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 | Constructor | Description |
---|---|---|
protected |
TxMasterStyleAtom(byte[] source,
int start,
int len) |
Modifier and Type | Method | Description |
---|---|---|
protected TextProp[] |
getCharacterProps(int type,
int level) |
Character properties for the specified text type and
indent level.
|
TextPropCollection[] |
getCharacterStyles() |
Returns array of character styles defined in this record.
|
protected TextProp[] |
getParagraphProps(int type,
int level) |
Paragraph properties for the specified text type and
indent level
Depending on the level and type, it may be our special
ones, or the standard StyleTextPropAtom ones
|
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.
|
protected void |
init() |
parse the record data and initialize styles
|
void |
writeOut(java.io.OutputStream out) |
Write the contents of the record back, so it can be written
to disk
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
getChildRecords, isAnAtom
protected TxMasterStyleAtom(byte[] source, int start, int len)
public long getRecordType()
getRecordType
in class Record
RecordTypes.TxMasterStyleAtom
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public TextPropCollection[] getCharacterStyles()
public TextPropCollection[] getParagraphStyles()
public int getTextType()
TextHeaderAtom
TextHeaderAtom
protected void init()
protected TextProp[] getParagraphProps(int type, int level)
protected TextProp[] getCharacterProps(int type, int level)
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.