public final class HWPFList
extends java.lang.Object
registerList
in
HWPFDocument
. In Word, lists are not ranged entities, meaning you can't actually add one to the document. Lists only act as properties for list entries. Once you register a list, you can add list entries to a document that are a part of the list. The only benefit of this that I see, is that you can add a list entry anywhere in the document and continue numbering from the previous list.
(此类用于在 Word 文档中创建列表。它与 HWPFDocument 中的 registerList 结合使用。在 Word 中,列表不是范围实体,这意味着您实际上无法在文档中添加一个。列表仅充当列表条目的属性。注册列表后,您可以将列表条目添加到作为列表一部分的文档中。我看到的唯一好处是,您可以在文档的任何位置添加一个列表条目,并从上一个列表继续编号。)
Constructor and Description |
---|
HWPFList(boolean numbered, StyleSheet styleSheet) |
HWPFList(StyleSheet styleSheet, ListTables listTables, int ilfo) |
Modifier and Type | Method and Description |
---|---|
LFO |
getLFO() |
LFOData |
getLFOData() |
ListData |
getListData() |
int |
getLsid() |
int |
getNumberFormat(char level)
An MSONFC, as specified in [MS-OSHARED] section 2.2.1.3, that specifies the format of the level numbers that replace the placeholders for this level in the xst fields of the LVLs in this list.
(一个 MSONFC,如 [MS-OSHARED] 第 2.2.1.3 节中指定的,指定级别编号的格式,用于替换此列表中 LVL 的 xst 字段中此级别的占位符。)
|
java.lang.String |
getNumberText(char level) |
int |
getStartAt(char level) |
byte |
getTypeOfCharFollowingTheNumber(char level)
"The type of character following the number text for the paragraph: 0 == tab, 1 == space, 2 == nothing."
(“段落数字文本后面的字符类型:0 == 制表符,1 == 空格,2 == 无。”)
|
boolean |
isIgnoreLogicalLeftIdentation() |
boolean |
isStartAtOverriden(char level) |
void |
setIgnoreLogicalLeftIdentation(boolean ignoreLogicalLeftIdentation) |
void |
setLevelNumberProperties(int level, CharacterProperties chp)
Sets the character properties of the list numbers.
(设置列表编号的字符属性。)
|
void |
setLevelParagraphProperties(int level, ParagraphProperties pap)
Sets the paragraph properties for a particular level of the list.
(为列表的特定级别设置段落属性。)
|
void |
setLevelStyle(int level, int styleIndex) |
public HWPFList(boolean numbered, StyleSheet styleSheet)
numbered
- true if the list should be numbered; false if it should be bulleted.
(numbered - 如果列表应该被编号,则为 true;如果它应该是项目符号,则为 false。)
styleSheet
- The document's stylesheet.
(styleSheet - 文档的样式表。)
public HWPFList(StyleSheet styleSheet, ListTables listTables, int ilfo)
public int getLsid()
public int getNumberFormat(char level)
public java.lang.String getNumberText(char level)
public int getStartAt(char level)
public byte getTypeOfCharFollowingTheNumber(char level)
public boolean isIgnoreLogicalLeftIdentation()
public boolean isStartAtOverriden(char level)
public void setIgnoreLogicalLeftIdentation(boolean ignoreLogicalLeftIdentation)
public void setLevelNumberProperties(int level, CharacterProperties chp)
level
- the level number that the properties should apply to.
(level - 属性应该应用到的级别编号。)
chp
- The character properties.
(chp - 字符属性。)
public void setLevelParagraphProperties(int level, ParagraphProperties pap)
level
- The level number.
(级别 - 级别编号。)
pap
- The paragraph properties
(pap - 段落属性)
public void setLevelStyle(int level, int styleIndex)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.