]> git.saurik.com Git - wxWidgets.git/commitdiff
committing the slightly-modified patch by R.U.10 for documenting some public function...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 1 Dec 2008 17:54:57 +0000 (17:54 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 1 Dec 2008 17:54:57 +0000 (17:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/docview.h

index 87e22de5c9247808bf3c9353b2b42abd4f821b55..baed8144d59410223d22543a98b02009412ff88e 100644 (file)
@@ -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.