Package org.docx4j.toc
Class TocStyles
java.lang.Object
org.docx4j.toc.TocStyles
public class TocStyles
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHEADING_1static java.lang.StringTOC_HEADINGprotected static java.lang.StringTOC_STYLE_MASK -
Constructor Summary
Constructors Modifier Constructor Description protectedTocStyles(StyleDefinitionsPart sdp) -
Method Summary
Modifier and Type Method Description protected java.lang.StringgetStyleIdForName(java.lang.String name)Get the style ID corresponding to this name.static TocStylesgetTocStyles(MainDocumentPart documentPart)
-
Field Details
-
TOC_STYLE_MASK
protected static final java.lang.String TOC_STYLE_MASK- See Also:
- Constant Field Values
-
TOC_HEADING
public static final java.lang.String TOC_HEADING- See Also:
- Constant Field Values
-
HEADING_1
public static final java.lang.String HEADING_1- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getTocStyles
- Throws:
TocException
-
getStyleIdForName
protected java.lang.String getStyleIdForName(java.lang.String name)Get the style ID corresponding to this name. If it isn't in the docx styles.xml part, use our default definition to add it.- Parameters:
name-documentStyles-- Returns:
-