Bases: lpod.element.odf_element
Bases: lpod.element.odf_element
Fill the TOC with the titles found in the document. A TOC is not contextual so it will catch all titles before and after its insertion. If the TOC is not attached to a document, attach it beforehand or provide one as argument.
For having a pretty TOC, let use_default_styles by default.
Arguments:
document – odf_document
use_default_styles – bool
Bases: lpod.element.odf_element
Create an index title
Arguments:
title – unicode
Return: odf_element
Create a table of contents. Default parameters are what most people use: Protected from manual modifications and not limited in title levels.
The name is mandatory and derived automatically from the title if not given. Provide one in case of a conflict with other TOCs in the same document.
Arguments:
title – unicode
name – unicode
protected – bool
outline_level – int
style – unicode
title_style – unicode
entry_style – unicode
Return: odf_toc
Generate an automatic default style for the given TOC level.