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

  • Constructor Details

  • Method Details

    • getTocStyles

      public static TocStyles getTocStyles​(MainDocumentPart documentPart) throws TocException
      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: