- Constructor. Create instances dynamically near the start of your application
- after creating
- a wxDocManager instance, and before doing any document or view operations.
- @a manager is the document manager object which manages this template.
- @a descr is a short description of what the template is for. This string will
- be displayed in the
- file filter list of Windows file selectors.
- @a filter is an appropriate file filter such as @c *.txt.
- @a dir is the default directory to use for file selectors.
- @a ext is the default file extension (such as txt).
- @a docTypeName is a name that should be unique for a given type of document,
- used for
- gathering a list of views relevant to a particular document.
- @a viewTypeName is a name that should be unique for a given view.
- @a docClassInfo is a pointer to the run-time document class information as
- returned
- by the CLASSINFO macro, e.g. CLASSINFO(MyDocumentClass). If this is not
- supplied,
- you will need to derive a new wxDocTemplate class and override the
- CreateDocument
- member to return a new document instance on demand.
- @a viewClassInfo is a pointer to the run-time view class information as returned
- by the CLASSINFO macro, e.g. CLASSINFO(MyViewClass). If this is not supplied,
- you will need to derive a new wxDocTemplate class and override the CreateView
- member to return a new view instance on demand.
- @a flags is a bit list of the following:
- wxTEMPLATE_VISIBLE The template may be displayed to the user in dialogs.
- wxTEMPLATE_INVISIBLE The template may not be displayed to the user in dialogs.
- wxDEFAULT_TEMPLATE_FLAGS Defined as wxTEMPLATE_VISIBLE.
-
-
- @b Wx::DocTemplate-new( docmgr, descr, filter, dir,
- ext, docTypeName, viewTypeName, docClassInfo, viewClassInfo, flags
- )
-
- will construct document and view objects from the class information
-
- @b Wx::DocTemplate-new( docmgr, descr, filter, dir,
- ext, docTypeName, viewTypeName, docClassName, viewClassName, flags
- )
-
- will construct document and view objects from perl packages
-
- @b Wx::DocTemplate-new( docmgr, descr, filter, dir,
- ext, docTypeName, viewTypeName )
-
- @c Wx::DocTemplate::CreateDocument() and
- @c Wx::DocTemplate::CreateView() must be overridden
+ Constructor. Create instances dynamically near the start of your
+ application after creating a wxDocManager instance, and before doing
+ any document or view operations.
+
+ @param manager
+ The document manager object which manages this template.
+ @param descr
+ A short description of what the template is for. This string will
+ be displayed in the file filter list of Windows file selectors.
+ @param filter
+ An appropriate file filter such as "*.txt".
+ @param dir
+ The default directory to use for file selectors.
+ @param ext
+ The default file extension (such as "txt").
+ @param docTypeName
+ A name that should be unique for a given type of document, used for
+ gathering a list of views relevant to a particular document.
+ @param viewTypeName
+ A name that should be unique for a given view.
+ @param docClassInfo
+ A pointer to the run-time document class information as returned by
+ the CLASSINFO() macro, e.g. CLASSINFO(MyDocumentClass). If this is
+ not supplied, you will need to derive a new wxDocTemplate class and
+ override the CreateDocument() member to return a new document
+ instance on demand.
+ @param viewClassInfo
+ A pointer to the run-time view class information as returned by the
+ CLASSINFO() macro, e.g. CLASSINFO(MyViewClass). If this is not
+ supplied, you will need to derive a new wxDocTemplate class and
+ override the CreateView() member to return a new view instance on
+ demand.
+ @param flags
+ A bit list of the following:
+ - wxTEMPLATE_VISIBLE - The template may be displayed to the
+ user in dialogs.
+ - wxTEMPLATE_INVISIBLE - The template may not be displayed to
+ the user in dialogs.
+ - wxDEFAULT_TEMPLATE_FLAGS - Defined as wxTEMPLATE_VISIBLE.