Package org.docx4j.toc.switches
Class SwitchProcessor
java.lang.Object
org.docx4j.toc.switches.SwitchProcessor
public class SwitchProcessor
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected PropertyResolver
propertyResolver
protected StyleBasedOnHelper
styleBasedOnHelper
-
Constructor Summary
Constructors Constructor Description SwitchProcessor(PageDimensions pageDimensions, STTabTlc leader)
-
Method Summary
Modifier and Type Method Description void
bookmarkP(P p, java.lang.String name, int id)
Surround the specified r in the specified p with a bookmark (with specified name and id)protected java.util.concurrent.atomic.AtomicInteger
getBookmarkId(WordprocessingMLPackage wordMLPackage)
TocEntry
getEntry()
boolean
isStyleFound()
boolean
pageNumbers()
void
proceed(boolean proceed)
java.util.List<TocEntry>
processSwitches(WordprocessingMLPackage wordMLPackage, java.util.List<P> pList, java.util.List<SwitchInterface> switchesList, java.util.Map<P,Emulator.ResultTriple> pNumbersMap)
void
setPageNumbers(boolean pageNumbers)
void
setStartingIdForNewBookmarks(java.util.concurrent.atomic.AtomicInteger bookmarkId)
Provide a way to set the starting bookmark ID number.void
setStyleFound(boolean headingFound)
-
Field Details
-
Constructor Details
-
Method Details
-
processSwitches
public java.util.List<TocEntry> processSwitches(WordprocessingMLPackage wordMLPackage, java.util.List<P> pList, java.util.List<SwitchInterface> switchesList, java.util.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
public void setStartingIdForNewBookmarks(java.util.concurrent.atomic.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 java.util.concurrent.atomic.AtomicInteger getBookmarkId(WordprocessingMLPackage wordMLPackage)
-