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.
(TxMasterStyleAtom 原子 (4003)。存储默认字符和段落样式。 atom 实例值是文本类型,其编码方式类似于 TextHeaderAtom 中的 txstyle 字段。文本样式位于 MainMaster 容器中,但“其他”样式除外,它位于 Document.Environment 容器中。这个原子最多可以存储 5 对段落+字符样式,每对描述一个缩进级别。第一对描述没有缩进的第一级段落。)Modifier and Type | Field and Description |
---|---|
static int |
MAX_INDENT
Maximum number of indentation levels allowed in PowerPoint documents
(PowerPoint 文档中允许的最大缩进级别数)
|
Modifier | Constructor and Description |
---|---|
protected |
TxMasterStyleAtom(byte[] source, int start, int len) |
Modifier and Type | Method and Description |
---|---|
java.util.List<TextPropCollection> |
getCharacterStyles()
Returns array of character styles defined in this record.
(返回此记录中定义的字符样式数组。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
java.util.List<TextPropCollection> |
getParagraphStyles()
Returns array of paragraph styles defined in this record.
(返回此记录中定义的段落样式数组。)
|
long |
getRecordType()
We are of type 4003
(我们是4003型)
|
int |
getTextType()
Return type of the text.
(文本的返回类型。)
|
protected void |
init()
parse the record data and initialize styles
(解析记录数据并初始化样式)
|
void |
updateStyles()
Updates the rawdata from the modified paragraph/character styles
(从修改后的段落/字符样式更新原始数据)
|
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk
(将记录的内容写回去,这样就可以写入磁盘了)
|
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
public static final int MAX_INDENT
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
RecordTypes.TxMasterStyleAtom
public void writeOut(java.io.OutputStream out) throws java.io.IOException
public java.util.List<TextPropCollection> getCharacterStyles()
public java.util.List<TextPropCollection> getParagraphStyles()
public int getTextType()
TextHeaderAtom
(文本的返回类型。必须是 TextHeaderAtom 中定义的常量)
TextHeaderAtom
protected void init()
public void updateStyles()
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.