Package org.docx4j.toc
Class Toc
java.lang.Object
org.docx4j.toc.Toc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprotected static Stringprivate static final Stringprivate static final Stringprivate Stringprivate static org.slf4j.Loggerprivate static final Stringprivate List<SwitchInterface>private static final Stringprivate Stringprivate static ObjectFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringDeprecated.booleanprivate voidstatic voidsetTocHeadingText(String tocHeadingText) Use the provided text for the ToC heading.private voidThe switches are processed in a specific order.
-
Field Details
-
log
private static org.slf4j.Logger log -
ERROR_BOOKMARK_NOT_DEFINED
- See Also:
-
SPACE
- See Also:
-
BACKSLASH
- See Also:
-
TOC_INSTRUCTION_MASK
- See Also:
-
DEFAULT_TOC_INSTRUCTION
- See Also:
-
DEFAULT_TOC_HEADING
-
tocInstruction
-
errorString
-
wmlObjectFactory
-
switchesList
-
-
Constructor Details
-
Toc
private Toc() -
Toc
- Throws:
TocException
-
-
Method Details
-
setTocHeadingText
Use the provided text for the ToC heading. (Except in ToC update case where the existing heading P is to be re-used)- Parameters:
tocHeadingText-
-
getTocHeadingText
-
parseInstruction
- Throws:
TocException
-
sortSwitchesListByPriority
private void sortSwitchesListByPriority()The switches are processed in a specific order. p10 O (heading Outline) p 9 T (sTyle) p 8 U (oUtline) p 7 C (SEQ entries) p 6 N (page number) p 5 H (Hyperlink) -
hasErrors
public boolean hasErrors() -
getSwitches
-
getTocInstruction
Deprecated.
-