Package: mlreportgen.dom
Superclasses:
Create placeholder for generating table of contents
Create a placeholder for a document table of contents. When a generated Word document opens, Word replaces the placeholder with a TOC that it generates. Similarly, when a generated HTML document opens in an HTML browser, the browser replaces the placeholder with a TOC that it generates. For PDF, the DOM API replaces the placeholder with a TOC that it generates when outputting the document.
In all cases, the TOC entries consist of the content of paragraphs using the number of heading levels that you specify. For PDF and Word, the TOC placeholder also specifies a leader that fills the space between the content and the page number in the TOC entry.
generates
a three-level TOC that uses a dot leader.toc
= TOC()
uses
the specified number of heading levels.toc
= TOC(levels
)
uses
the specified leader.toc
= TOC(levels
,leader
)