Package org.docx4j.toc
Class TocEntry
java.lang.Object
org.docx4j.toc.TocEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate intprivate Pprivate booleanprivate static final Stringprivate booleanIf this ToC entry has a paragraph number, we'll need to allow for that in our tabs definitionprivate STTabTlcprivate static org.slf4j.Loggerprivate String(package private) intprivate booleanprivate Textprivate static final Stringprivate static final Stringprivate PropertyResolverprivate Map<String,PPrBase.Ind> (package private) ObjectFactoryprivate intright tab pos= pg width – (gutter + left + right margin) best to put that explicitly in the ToC p, rather than the toc styles (which we just override) Word doesn’t update the right tab pos (where its in a ToC style) in response to a change in margin! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTocEntry()TocEntry(PropertyResolver propertyResolver, PageDimensions pageDimensions, STTabTlc leader) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPageNumber(boolean pageNumber) private PgenerateTocEntry(TocStyles tocStyles) private jakarta.xml.bind.JAXBElement<P.Hyperlink>private voidgenerateTocEntryPageNumber(List<R> rList) private PPrgenerateTocEntryPPr(TocStyles tocStyles) private RPrgetEffectiveRPr(RPr expressRPr) Get the rPr to apply.intgetEntryParagraph(TocStyles tocStyles) private PPrBase.IndbooleanvoidmakeHyperlink(boolean hyperlink) private voidvoidnumberEntry(Emulator.ResultTriple numberTriple) Number this entry, if necessaryvoidsetAnchorValue(String anchorValue) voidsetEntryLevel(int entryLevel) voidsetEntryValue(P sourceP) private RAdd a tab, but in a new run (since the tab isn't to be underlined), unless w:lvl has <w:suff w:val="space"/> or <w:suff w:val="nothing"/>
-
Field Details
-
log
private static org.slf4j.Logger log -
propertyResolver
-
PRESERVE
- See Also:
-
PAGEREF_MASK
- See Also:
-
HYPERLINK
- See Also:
-
writableWidthTwips
private int writableWidthTwipsright tab pos= pg width – (gutter + left + right margin) best to put that explicitly in the ToC p, rather than the toc styles (which we just override) Word doesn’t update the right tab pos (where its in a ToC style) in response to a change in margin!- Since:
- 3.2.0
-
leader
-
entryValues
-
anchorValue
-
number
-
entryLevel
private int entryLevel -
hyperlink
private boolean hyperlink -
pageNumber
private boolean pageNumber -
isNumbered
private boolean isNumberedIf this ToC entry has a paragraph number, we'll need to allow for that in our tabs definition -
entryP
-
pageNumberText
-
wmlObjectFactory
ObjectFactory wmlObjectFactory -
styleIndent
-
numChars
int numChars
-
-
Constructor Details
-
TocEntry
private TocEntry() -
TocEntry
-
-
Method Details
-
getEntryValue
-
setAnchorValue
-
getAnchorValue
-
makeHyperlink
public void makeHyperlink(boolean hyperlink) -
addPageNumber
public void addPageNumber(boolean pageNumber) -
isPageNumber
public boolean isPageNumber() -
getEntryLevel
public int getEntryLevel() -
setEntryLevel
public void setEntryLevel(int entryLevel) -
getEntryParagraph
-
getEntryPageNumberText
-
generateTocEntry
-
getInd
-
generateTocEntryPPr
-
generateTocEntryHyperlink
-
generateTocEntryContent
-
generateTocEntryPageNumber
-
setEntryValue
-
getEffectiveRPr
Get the rPr to apply. This intentionally ignores pStyle and doc defaults. The TOC entry will ultimately use TOCn style; we're not interested in the pStyle of this paragraph.- Parameters:
expressRPr-- Returns:
-
nullify
-
numberEntry
Number this entry, if necessary- Parameters:
numberTriple-
-
tabAfterPNumber
Add a tab, but in a new run (since the tab isn't to be underlined), unless w:lvl has <w:suff w:val="space"/> or <w:suff w:val="nothing"/>
-