Class Toc

java.lang.Object
org.docx4j.toc.Toc

public class Toc extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • setTocHeadingText

      public static void setTocHeadingText(String tocHeadingText)
      Use the provided text for the ToC heading. (Except in ToC update case where the existing heading P is to be re-used)
      Parameters:
      tocHeadingText -
    • getTocHeadingText

      protected static String getTocHeadingText()
    • parseInstruction

      private void parseInstruction() throws TocException
      Throws:
      TocException
    • sortSwitchesListByPriority

      private void sortSwitchesListByPriority()
      The switches are processed in a specific order. p10 O (heading Outline) p 9 T (sTyle) p 8 U (oUtline) p 7 C (SEQ entries) p 6 N (page number) p 5 H (Hyperlink)
    • hasErrors

      public boolean hasErrors()
    • getSwitches

      public List<SwitchInterface> getSwitches()
    • getTocInstruction

      @Deprecated public List<R> getTocInstruction()
      Deprecated.