Uses of Class
org.docx4j.toc.TocException

Packages that use TocException 
Package Description
org.docx4j.toc  
  • Uses of TocException in org.docx4j.toc

    Methods in org.docx4j.toc that throw TocException 
    Modifier and Type Method Description
    static void TocSdtUtils.addTocHeading​(MainDocumentPart documentPart, TocStyles tocStyles, SdtContentBlock sdtContent)  
    static void TocSdtUtils.addTocHeading​(MainDocumentPart documentPart, TocStyles tocStyles, SdtContentBlock sdtContent, java.lang.String tocHeading)  
    SdtBlock TocGenerator.generateToc​(boolean skipPageNumbering)
    Generate Table of Contents using default TOC instruction, adding it at the beginning of the document To alter the ToC heading, use Toc.setTocHeadingText
    SdtBlock TocGenerator.generateToc​(int index, java.lang.String instruction, boolean skipPageNumbering)
    Generate Table of Contents using provided TOC instruction, adding at the given index in the body of document, using dot leader for page numbering (if any).
    SdtBlock TocGenerator.generateToc​(int index, java.lang.String instruction, STTabTlc leader, boolean skipPageNumbering)
    Generate Table of Contents using provided TOC instruction, and specified leader (eg dots) before page number, adding at the given index in the body of document It is an error if a ToC content control is already present; delete it or use updateToc.
    static SdtBlock TocGenerator.generateToc​(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering)
    Deprecated.
    static SdtBlock TocGenerator.generateToc​(WordprocessingMLPackage wordMLPackage, int index, java.lang.String instruction, boolean skipPageNumbering)
    Deprecated.
    protected SdtBlock TocGenerator.generateToc​(SdtBlock sdt, java.lang.String instruction, STTabTlc leader, boolean skipPageNumbering)
    Generate Table of Contents in the given sdt with generated heading, and given TOC instruction.
    protected SdtBlock TocGenerator.generateToc​(SdtBlock sdt, java.util.List<P> tocHeadingP, java.lang.String instruction, STTabTlc leader, boolean skipPageNumbering)
    Generate Table of Contents in the given sdt with provided tocHeadingP, and given TOC instruction.
    static TocStyles TocStyles.getTocStyles​(MainDocumentPart documentPart)  
    SdtBlock TocGenerator.updateToc()
    Update existing TOC in the document with TOC generated by generateToc() method, reusing the existing ToC heading paragraph.
    SdtBlock TocGenerator.updateToc​(boolean skipPageNumbering)
    Update existing TOC in the document with TOC generated by generateToc() method, reusing the existing ToC heading paragraph.
    SdtBlock TocGenerator.updateToc​(boolean skipPageNumbering, boolean reuseExistingToCHeadingP)
    Update existing TOC in the document with TOC generated by generateToc() method.
    SdtBlock TocGenerator.updateToc​(boolean skipPageNumbering, boolean reuseExistingToCHeadingP, STTabTlc leader)
    Update existing TOC in the document with TOC generated by generateToc() method, using specified tab leader.
    static SdtBlock TocGenerator.updateToc​(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering)
    Deprecated.
    SdtBlock TocGenerator.updateToc​(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering, boolean reuseExistingToCHeadingP)
    Deprecated.
    Constructors in org.docx4j.toc that throw TocException 
    Constructor Description
    Toc​(java.lang.String tocInstruction)  
    TocGenerator​(WordprocessingMLPackage wordMLPackage)