writer2latex.office
Class TocReader
java.lang.Object
writer2latex.office.TocReader
public class TocReader
extends java.lang.Object
The class reads a text:table-of-content
element.
TocReader(Element onode) - Initialize the TocReader with a table of content node.
|
TocReader
public TocReader(Element onode)
Initialize the TocReader with a table of content node.
onode
- a text:table-of-content
getIndexBody
public Element getIndexBody()
Return the generated content of this toc, if available
- the
text:index-body
element
getIndexSourceStyleLevel
public int getIndexSourceStyleLevel(String sStyleName)
Get the level associated with a specific index source style
sStyleName
- the style name of the index source style
- the level or -1 if the style is not used in this toc
getIndexSourceStyles
public Set getIndexSourceStyles()
Get a set view of all index source styles
- a set of all index source style names
getIndexTitleTemplate
public Element getIndexTitleTemplate()
Get the index title template for this toc
- the
text:index-title-template
element, or null
getName
public String getName()
Get the (section) name for this toc
getOutlineLevel
public int getOutlineLevel()
Get max outline level for this toc
getStyleName
public String getStyleName()
Get the (section) style name for this toc
- name of the section style to use for this toc
getTocEntryTemplate
public Element getTocEntryTemplate(int nLevel)
Get the entry template for this toc at a specific level
nLevel
- the outline level
- the
text:table-of-content-entry-template
element, or null
isByChapter
public boolean isByChapter()
Is this toc by chapter?
- true if the scope is a chapter only
useIndexMarks
public boolean useIndexMarks()
Do we use toc marks in this toc?
- true if toc marks should be used
useIndexSourceStyles
public boolean useIndexSourceStyles()
Do we use additional styles in this toc?
- true if additional styles should be used
useOutlineLevel
public boolean useOutlineLevel()
Do we use outline (headings) in this toc?
- true if headings should be used