X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/762e199741e236841278dfa6c08a7a0ca376252e..24d705907ddcbe8e701867be2fb6f457a3dfab6f:/docs/latex/wx/doctempl.tex diff --git a/docs/latex/wx/doctempl.tex b/docs/latex/wx/doctempl.tex index 8d817852db..afaaea357e 100644 --- a/docs/latex/wx/doctempl.tex +++ b/docs/latex/wx/doctempl.tex @@ -125,7 +125,8 @@ member to return a new view instance on demand. either {\tt Wx::ClassInfo} objects or strings which contain the name of the perl packages which are to be used as {\tt Wx::Document} and {\tt Wx::View} classes (they must have a constructor named {\tt -new}):\par +new}): + \indented{2cm}{\begin{twocollist} \twocolitem{{\bf Wx::DocTemplate->new( docmgr, descr, filter, dir, ext, docTypeName, viewTypeName, docClassInfo, viewClassInfo, flags @@ -153,6 +154,9 @@ Creates a new instance of the associated document class. If you have not supplie a wxClassInfo parameter to the template constructor, you will need to override this function to return an appropriate document instance. +This function calls wxDocTemplate::InitDocument which in turns +calls wxDocument::OnCreate. + \membersection{wxDocTemplate::CreateView} \func{wxView *}{CreateView}{\param{wxDocument *}{doc}, \param{long}{ flags = 0}} @@ -209,11 +213,18 @@ Returns the flags, as passed to the document template constructor. Returns the view type name, as passed to the document template constructor. +\membersection{wxDocTemplate::InitDocument} + +\func{bool}{InitDocument}{\param{wxDocument* }{doc}, \param{const wxString\& }{path}, \param{long}{ flags = 0}} + +Initialises the document, calling wxDocument::OnCreate. This is called from +wxDocTemplate::CreateDocument. + \membersection{wxDocTemplate::IsVisible} \func{bool}{IsVisible}{\void} -Returns TRUE if the document template can be shown in user dialogs, FALSE otherwise. +Returns true if the document template can be shown in user dialogs, false otherwise. \membersection{wxDocTemplate::SetDefaultExtension}