Class SwitchProcessor

java.lang.Object
org.docx4j.toc.switches.SwitchProcessor

public class SwitchProcessor extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • processSwitches

      public List<TocEntry> processSwitches(WordprocessingMLPackage wordMLPackage, List<P> pList, List<SwitchInterface> switchesList, Map<P,Emulator.ResultTriple> pNumbersMap)
    • bookmarkP

      public void bookmarkP(P p, String name, int id)
      Surround the specified r in the specified p with a bookmark (with specified name and id)
      Parameters:
      p -
      r -
      name -
      id -
    • setPageNumbers

      public void setPageNumbers(boolean pageNumbers)
    • pageNumbers

      public boolean pageNumbers()
    • getEntry

      public TocEntry getEntry()
    • proceed

      public void proceed(boolean proceed)
    • isStyleFound

      public boolean isStyleFound()
    • setStyleFound

      public void setStyleFound(boolean headingFound)
    • setStartingIdForNewBookmarks

      public void setStartingIdForNewBookmarks(AtomicInteger bookmarkId)
      Provide a way to set the starting bookmark ID number. For efficiency, user code needs to pass this value through. If it isn't, the value will be calculated (less efficient).
      Parameters:
      bookmarkId -
      Since:
      3.3.0
    • getBookmarkId

      protected AtomicInteger getBookmarkId(WordprocessingMLPackage wordMLPackage)