public class ListManager extends AbstractListManager
Note: This class only handles the raw number text and does not apply any further formatting as described in [MS-DOC], v20140721, 184.108.40.206, Part 3 to it.
Note 2: The
tplc, a visual override for the appearance of list levels, as defined in [MS-DOC], v20140721, 2.9.328 is not taken care of in this class.
Further, this class does not yet handle overrides
|Constructor and Description|
Ordinary constructor for a new list reader
|Modifier and Type||Method and Description|
Get the formatted number for a given paragraph
public ListManager(org.apache.poi.hwpf.HWPFDocument document)
document- Document to process
public String getFormattedNumber(org.apache.poi.hwpf.usermodel.Paragraph paragraph)
Note: This only works correctly if called subsequently for all paragraphs in a valid selection (main document, text field, ...) which are part of a list.
paragraph- list paragraph to process
null, can be empty string, though, if something goes wrong in getList()
IllegalArgumentException- If the given paragraph is
nullor is not part of a list
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.