document On{Open,Save}Document()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-03-25 15:21:18 +00:00
parent 1a781247d4
commit 0bbe61b8c1

View File

@ -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.