]> git.saurik.com Git - wxWidgets.git/commitdiff
document On{Open,Save}Document()
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Mar 2008 15:21:18 +0000 (15:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Mar 2008 15:21:18 +0000 (15:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/docview.h

index b098eaaa097a092ca5a8d7272450509841096d54..c7c8334f166d995c57f8b5a69338597070004d8c 100644 (file)
@@ -1248,6 +1248,28 @@ public:
     */
     void UpdateAllViews(wxView* sender = NULL, wxObject* hint = NULL);
 
     */
     void UpdateAllViews(wxView* sender = NULL, wxObject* hint = NULL);
 
+protected:
+    /**
+        This method is called by OnSaveDocument() to really save the document
+        contents to the specified file.
+
+        Base class version creates a file-based stream and calls SaveObject().
+        Override this if you need to do something else or prefer not to use
+        SaveObject() at all.
+     */
+    virtual bool DoSaveDocument(const wxString& file);
+
+    /**
+        This method is called by OnOpenDocument() to really load the document
+        contents from the specified file.
+
+        Base class version creates a file-based stream and calls LoadObject().
+        Override this if you need to do something else or prefer not to use
+        LoadObject() at all.
+     */
+    virtual bool DoOpenDocument(const wxString& file);
+
+
     /**
         wxCommandProcessor* m_commandProcessor
         A pointer to the command processor associated with this document.
     /**
         wxCommandProcessor* m_commandProcessor
         A pointer to the command processor associated with this document.