Package org.docx4j.toc.switches
Class SwitchProcessor
java.lang.Object
org.docx4j.toc.switches.SwitchProcessor
- All Implemented Interfaces:
SwitchProcessorInterface
-
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()booleanbooleanprocessSwitches(WordprocessingMLPackage wordMLPackage, List<P> pList, List<SwitchInterface> switchesList, Map<P, Emulator.ResultTriple> pNumbersMap) voidsetPageNumbers(boolean pageNumbers) voidsetProceed(boolean proceed) 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
-
getPropertyResolver
- Specified by:
getPropertyResolverin interfaceSwitchProcessorInterface
-
getStyleBasedOnHelper
- Specified by:
getStyleBasedOnHelperin interfaceSwitchProcessorInterface
-
setProceed
public void setProceed(boolean proceed) - Specified by:
setProceedin interfaceSwitchProcessorInterface
-
isStyleFound
public boolean isStyleFound()- Specified by:
isStyleFoundin interfaceSwitchProcessorInterface
-
setStyleFound
public void setStyleFound(boolean headingFound) - Specified by:
setStyleFoundin interfaceSwitchProcessorInterface
-
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) - Specified by:
setPageNumbersin interfaceSwitchProcessorInterface
-
pageNumbers
public boolean pageNumbers() -
getEntry
- Specified by:
getEntryin interfaceSwitchProcessorInterface
-
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
-