From 40f343d2a02d2994d41b3791ddd7f2992061b43f Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 1 Dec 2008 17:54:57 +0000 Subject: [PATCH] committing the slightly-modified patch by R.U.10 for documenting some public functions of wxDocTemplate (closes #10078) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/docview.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/interface/wx/docview.h b/interface/wx/docview.h index 87e22de5c9..baed8144d5 100644 --- a/interface/wx/docview.h +++ b/interface/wx/docview.h @@ -91,6 +91,15 @@ public: */ virtual wxView* CreateView(wxDocument* doc, long flags = 0); + /** + This function implements the default (very primitive) format detection + which checks if the extension is that of the template. + + @param path + The path to be checked against the template. + */ + virtual bool FileMatchesTemplate(const wxString& path); + /** Returns the default file extension for the document data, as passed to the document template constructor. @@ -109,6 +118,13 @@ public: */ wxString GetDirectory() const; + /** + Returns the run-time class information that allows document + instances to be constructed dynamically, as passed to the document + template constructor. + */ + wxClassInfo* GetDocClassInfo() const; + /** Returns a pointer to the document manager instance for which this template was created. @@ -132,6 +148,13 @@ public: */ long GetFlags() const; + /** + Returns the run-time class information that allows view instances + to be constructed dynamically, as passed to the document template + constructor. + */ + wxClassInfo* GetViewClassInfo() const; + /** Returns the view type name, as passed to the document template constructor. -- 2.45.2