Package docutils :: Package transforms :: Module parts :: Class Contents
[show private | hide private]
[frames | no frames]

Class Contents

Transform --+
            |
           Contents


This transform generates a table of contents from the entire document tree or from a single branch. It locates "section" elements and builds them into a nested bullet list, which is placed within a "topic". A title is either explicitly specified, taken from the appropriate language module, or omitted (local table of contents). The depth may be specified. Two-way references between the table of contents and section titles are generated (requires Writer support).

This transform requires a startnode, which which contains generation options and provides the location for the generated table of contents (the startnode is replaced by the table of contents "topic").


Method Summary
  apply(self)
Override to apply the transform to the document tree.
  build_contents(self, node, level)
  copy_and_filter(self, node)
Return a copy of a title, with references, images, etc.
    Inherited from Transform
  __init__(self, document, startnode)
Initial setup for in-place document transforms.

Class Variable Summary
int default_priority = 720                                                                   

Method Details

apply(self)

Override to apply the transform to the document tree.
Overrides:
docutils.transforms.Transform.apply (inherited documentation)

copy_and_filter(self, node)

Return a copy of a title, with references, images, etc. removed.

Class Variable Details

default_priority

Type:
int
Value:
720                                                                   

Generated by Epydoc 2.0 on Tue Jul 22 05:30:40 2003 http://epydoc.sf.net