Package org.docx4j.toc
Class TocStyles
java.lang.Object
org.docx4j.toc.TocStyles
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static InputStreamgetResourceViaProperty(String propName, String defaultPath) protected StringgetStyleIdForName(String name) Get the style ID corresponding to this name.static TocStylesgetTocStyles(MainDocumentPart documentPart)
-
Field Details
-
log
private static org.slf4j.Logger log -
TOC_STYLE_MASK
- See Also:
-
defaultToCStyles
-
styleNameToID
style name (eg toc 1) to style ID (eg Sumrio1) -
stylesPartStyles
this docx's styles part styles, in case we need to add ToC style definitions to it. -
TOC_HEADING
- See Also:
-
HEADING_1
- See Also:
-
defaultPStyleId
-
-
Constructor Details
-
TocStyles
-
-
Method Details
-
getTocStyles
- Throws:
TocException
-
getResourceViaProperty
private static InputStream getResourceViaProperty(String propName, String defaultPath) throws IOException - Throws:
IOException
-
getStyleIdForName
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:
-