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.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.
|
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."
|
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.styleSheet
- The document's 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.chp
- The character properties.public void setLevelParagraphProperties(int level, ParagraphProperties pap)
level
- The level number.pap
- The paragraph propertiespublic void setLevelStyle(int level, int styleIndex)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.