Package org.docx4j.toc.switches
Class SwitchProcessor
java.lang.Object
org.docx4j.toc.switches.SwitchProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSurround the specified r in the specified p with a bookmark (with specified name and id)protected AtomicIntegergetBookmarkId(WordprocessingMLPackage wordMLPackage) getEntry()booleanbooleanvoidproceed(boolean proceed) processSwitches(WordprocessingMLPackage wordMLPackage, List<P> pList, List<SwitchInterface> switchesList, Map<P, Emulator.ResultTriple> pNumbersMap) voidsetPageNumbers(boolean pageNumbers) voidsetStartingIdForNewBookmarks(AtomicInteger bookmarkId) Provide a way to set the starting bookmark ID number.voidsetStyleFound(boolean headingFound)
-
Field Details
-
propertyResolver
-
styleBasedOnHelper
-
-
Constructor Details
-
SwitchProcessor
-
-
Method Details
-
processSwitches
public List<TocEntry> processSwitches(WordprocessingMLPackage wordMLPackage, List<P> pList, List<SwitchInterface> switchesList, Map<P, Emulator.ResultTriple> pNumbersMap) -
bookmarkP
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
-
proceed
public void proceed(boolean proceed) -
isStyleFound
public boolean isStyleFound() -
setStyleFound
public void setStyleFound(boolean headingFound) -
setStartingIdForNewBookmarks
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
-