From 0bbe61b8c18a1795189f0cf73cc61c14a0fb846d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Mar 2008 15:21:18 +0000 Subject: [PATCH] document On{Open,Save}Document() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/docview.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/interface/docview.h b/interface/docview.h index b098eaaa09..c7c8334f16 100644 --- a/interface/docview.h +++ b/interface/docview.h @@ -1248,6 +1248,28 @@ public: */ 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.