X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea58481248da20a3979dd407abfa168a4e995c2f..eeea3b039ef9bf03c17f80ab911cf65f084731bd:/interface/wx/docview.h diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 09a4db25b1..4d2cd89bfe 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -3,7 +3,7 @@ // Purpose: interface of various doc/view framework classes // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -43,13 +43,13 @@ public: 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 + the wxCLASSINFO() macro, e.g. wxCLASSINFO(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 + wxCLASSINFO() macro, e.g. wxCLASSINFO(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. @@ -176,6 +176,15 @@ public: */ long GetFlags() const; + /** + Returns a reference to the wxPageSetupDialogData associated with the + printing operations of this document manager. + */ + //@{ + wxPageSetupDialogData& GetPageSetupDialogData(); + const wxPageSetupDialogData& GetPageSetupDialogData() const; + //@} + /** Returns the run-time class information that allows view instances to be constructed dynamically, as passed to the document template @@ -363,6 +372,27 @@ public: */ void AssociateTemplate(wxDocTemplate* temp); + /** + Search for a particular document template. + + Example: + @code + // creating a document instance of the specified document type: + m_doc = (MyDoc*)docManager->FindTemplate(CLASSINFO(MyDoc))-> + CreateDocument(wxEmptyString, wxDOC_SILENT); + @endcode + + @param classinfo + Class info of a document class for which a wxDocTemplate had been + previously created. + + @return + Pointer to a wxDocTemplate, or @NULL if none found. + + @since 2.9.2 + */ + wxDocTemplate* FindTemplate(const wxClassInfo* classinfo); + /** Closes the specified document. @@ -662,7 +692,7 @@ public: @param noTemplates Number of templates being pointed to by the templates pointer. @param sort - If more than one template is passed in in templates, then this + If more than one template is passed into templates, then this parameter indicates whether the list of templates that the user will have to choose from is sorted or not when shown the choice box dialog. Default is @false. @@ -688,7 +718,7 @@ public: @param noTemplates Number of templates being pointed to by the templates pointer. @param sort - If more than one template is passed in in templates, then this + If more than one template is passed into templates, then this parameter indicates whether the list of templates that the user will have to choose from is sorted or not when shown the choice box dialog. Default is @false.