Package com.independentsoft.office.odf
Class TableOfContentsSource
java.lang.Object
com.independentsoft.office.odf.TableOfContentsSource
Represents how a table of contents is generated. It also specifies the styles to be applied to index entries.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the TableOfContentsSource class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Contains a collection of TableOfContentsEntryTemplate objects.Specifies whether an index is constructed for an entire document or for a chapter.Contains a collection of IndexSourceStyle objects.Gets the style and content of the index title.intSpecifies which outline levels are used when generating a table of contents.booleanSpecifies whether the position of tab stops is relative to the left margin or to the left indent as determined by the paragraph style.voidsetIndexMarks(boolean useIndexMarks)Specifies whether table of contents index marks are used to generate index entries.voidsetIndexScope(IndexScope indexScope)Specifies whether an index is constructed for an entire document or for a chapter.voidsetIndexSourceStyles(boolean useIndexSourceStyles)Specifies whether index entries are generated for paragraphs formatted using the paragraph styles.voidsetIndexTitleTemplate(IndexTitleTemplate indexTitleTemplate)Sets the style and content of the index title.voidsetOutlineLevel(int outlineLevel)Specifies which outline levels are used when generating a table of contents.voidsetRelativeTabStopPosition(boolean isRelativeTabStopPosition)Specifies whether the position of tab stops is relative to the left margin or to the left indent as determined by the paragraph style.voidsetUseOutlineLevel(boolean useOutlineLevel)Specifies whether headings are used to generate index entries.toString()Converts the value of the current TableOfContentsSource object to its equivalent string representation.booleanSpecifies whether table of contents index marks are used to generate index entries.booleanSpecifies whether index entries are generated for paragraphs formatted using the paragraph styles.booleanSpecifies whether headings are used to generate index entries.
-
Constructor Details
-
TableOfContentsSource
public TableOfContentsSource()Initializes a new instance of the TableOfContentsSource class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current TableOfContentsSource object to its equivalent string representation. -
getEntryTemplates
Contains a collection of TableOfContentsEntryTemplate objects.- Returns:
- the entry templates
-
getIndexSourceStyles
Contains a collection of IndexSourceStyle objects.- Returns:
- the index source styles
-
getIndexTitleTemplate
Gets the style and content of the index title.- Returns:
- the index title template
-
setIndexTitleTemplate
Sets the style and content of the index title.- Parameters:
indexTitleTemplate- the new index title template
-
getOutlineLevel
public int getOutlineLevel()Specifies which outline levels are used when generating a table of contents. The value of this attribute shall be an integer greater than zero. If this attribute is omitted, all outline levels are used by default.- Returns:
- the outline level
-
setOutlineLevel
public void setOutlineLevel(int outlineLevel)Specifies which outline levels are used when generating a table of contents. The value of this attribute shall be an integer greater than zero. If this attribute is omitted, all outline levels are used by default.- Parameters:
outlineLevel- the new outline level
-
useOutlineLevel
public boolean useOutlineLevel()Specifies whether headings are used to generate index entries.- Returns:
- true, if successful
-
setUseOutlineLevel
public void setUseOutlineLevel(boolean useOutlineLevel)Specifies whether headings are used to generate index entries.- Parameters:
useOutlineLevel- the new use outline level
-
useIndexMarks
public boolean useIndexMarks()Specifies whether table of contents index marks are used to generate index entries.- Returns:
- true, if successful
-
setIndexMarks
public void setIndexMarks(boolean useIndexMarks)Specifies whether table of contents index marks are used to generate index entries.- Parameters:
useIndexMarks- the new index marks
-
useIndexSourceStyles
public boolean useIndexSourceStyles()Specifies whether index entries are generated for paragraphs formatted using the paragraph styles.- Returns:
- true, if successful
-
setIndexSourceStyles
public void setIndexSourceStyles(boolean useIndexSourceStyles)Specifies whether index entries are generated for paragraphs formatted using the paragraph styles.- Parameters:
useIndexSourceStyles- the new index source styles
-
getIndexScope
Specifies whether an index is constructed for an entire document or for a chapter.- Returns:
- the index scope
-
setIndexScope
Specifies whether an index is constructed for an entire document or for a chapter.- Parameters:
indexScope- the new index scope
-
isRelativeTabStopPosition
public boolean isRelativeTabStopPosition()Specifies whether the position of tab stops is relative to the left margin or to the left indent as determined by the paragraph style.- Returns:
- true, if is relative tab stop position
-
setRelativeTabStopPosition
public void setRelativeTabStopPosition(boolean isRelativeTabStopPosition)Specifies whether the position of tab stops is relative to the left margin or to the left indent as determined by the paragraph style.- Parameters:
isRelativeTabStopPosition- the new relative tab stop position
-