.. include:: headings.inc .. currentmodule:: lib.pydocview .. highlight:: python .. _lib.pydocview.ChildDocTemplate: ========================================================================================================================================== |phoenix_title| **ChildDocTemplate** ========================================================================================================================================== A ChildDocTemplate is a DocTemplate subclass that enables the creation of ChildDocuments that represents a portion of a Document. The child document is managed by the parent document, so it will be prompted to close if its parent is closed, etc. Child Documents are useful when there are complicated Views of a Document and users will need to tunnel into the View. | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **ChildDocTemplate** .. raw:: html

Inheritance diagram of ChildDocTemplate

| |super_classes| Known Superclasses ================================== :class:`lib.docview.DocTemplate` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.pydocview.ChildDocTemplate.__init__` Initializes the ChildDocTemplate. :meth:`~lib.pydocview.ChildDocTemplate.CreateDocument` Called when a ChildDocument is to be created and does the minimum such that the ================================================================================ ================================================================================ | |api| Class API =============== .. class:: ChildDocTemplate(lib.docview.DocTemplate) A ChildDocTemplate is a DocTemplate subclass that enables the creation of ChildDocuments that represents a portion of a Document. The child document is managed by the parent document, so it will be prompted to close if its parent is closed, etc. Child Documents are useful when there are complicated Views of a Document and users will need to tunnel into the View. .. method:: __init__(self, manager, description, filter, dir, ext, docTypeName, viewTypeName, docType, viewType, flags=lib.docview.TEMPLATE_INVISIBLE, icon=None) Initializes the ChildDocTemplate. .. method:: CreateDocument(self, path, flags, data=None, parentDocument=None) Called when a ChildDocument is to be created and does the minimum such that the ChildDocument looks like a real Document to the framework.