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.String
HEADING_1
static java.lang.String
TOC_HEADING
protected static java.lang.String
TOC_STYLE_MASK
-
Constructor Summary
Constructors Modifier Constructor Description protected
TocStyles(StyleDefinitionsPart sdp)
-
Method Summary
Modifier and Type Method Description protected java.lang.String
getStyleIdForName(java.lang.String name)
Get the style ID corresponding to this name.static TocStyles
getTocStyles(MainDocumentPart documentPart)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
TocStyles
-
-
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:
-