]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/docview.h
use wxRound(x) instead of int( x+0.5 )
[wxWidgets.git] / interface / wx / docview.h
index e884ee0ba59867c8a6ac3cda7615bc900401e49c..7255d81cb401fb119f8d1ec290826512637da17f 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.
@@ -1472,27 +1495,6 @@ public:
         called, as this is not done automatically.
     */
     virtual void UseMenu(wxMenu* menu);
-
-    /**
-        A character array of strings corresponding to the most recently opened
-        files.
-    */
-    char** m_fileHistory;
-
-    /**
-        The number of files stored in the history array.
-    */
-    size_t m_fileHistoryN;
-
-    /**
-        The maximum number of files to be stored and displayed on the menu.
-    */
-    size_t m_fileMaxFiles;
-
-    /**
-        The file menu used to display the file history list (if enabled).
-    */
-    wxMenu* m_fileMenu;
 };
 
 
@@ -1501,7 +1503,7 @@ public:
 // Global functions/macros
 // ============================================================================
 
-/** @ingroup group_funcmacro_file */
+/** @addtogroup group_funcmacro_file */
 //@{
 
 /**