Uses of Class
org.docx4j.toc.TocException
Packages that use TocException
-
Uses of TocException in org.docx4j.toc
Methods in org.docx4j.toc that throw TocExceptionModifier and TypeMethodDescriptionstatic voidTocSdtUtils.addTocHeading(MainDocumentPart documentPart, TocStyles tocStyles, SdtContentBlock sdtContent) static voidTocSdtUtils.addTocHeading(MainDocumentPart documentPart, TocStyles tocStyles, SdtContentBlock sdtContent, String tocHeading) 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.setTocHeadingTextTocGenerator.generateToc(int index, 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).TocGenerator.generateToc(int index, 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 SdtBlockTocGenerator.generateToc(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering) Deprecated.static SdtBlockTocGenerator.generateToc(WordprocessingMLPackage wordMLPackage, int index, String instruction, boolean skipPageNumbering) Deprecated.protected SdtBlockTocGenerator.generateToc(SdtBlock sdt, String instruction, STTabTlc leader, boolean skipPageNumbering) Generate Table of Contents in the given sdt with generated heading, and given TOC instruction.protected SdtBlockTocGenerator.generateToc(SdtBlock sdt, List<P> tocHeadingP, String instruction, STTabTlc leader, boolean skipPageNumbering) Generate Table of Contents in the given sdt with provided tocHeadingP, and given TOC instruction.static TocStylesTocStyles.getTocStyles(MainDocumentPart documentPart) TocGenerator.updateToc()Update existing TOC in the document with TOC generated by generateToc() method, reusing the existing ToC heading paragraph.TocGenerator.updateToc(boolean skipPageNumbering) Update existing TOC in the document with TOC generated by generateToc() method, reusing the existing ToC heading paragraph.TocGenerator.updateToc(boolean skipPageNumbering, boolean reuseExistingToCHeadingP) Update existing TOC in the document with TOC generated by generateToc() method.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 SdtBlockTocGenerator.updateToc(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering) Deprecated.TocGenerator.updateToc(WordprocessingMLPackage wordMLPackage, boolean skipPageNumbering, boolean reuseExistingToCHeadingP) Deprecated.Constructors in org.docx4j.toc that throw TocException