added DoCreate/Load/SaveDocument() (patches 983570 and 983571)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -162,6 +162,12 @@ protected:
|
||||
wxCommandProcessor* m_commandProcessor;
|
||||
bool m_savedYet;
|
||||
|
||||
// Called by OnSaveDocument and OnOpenDocument to implement standard
|
||||
// Save/Load behavior. Re-implement in derived class for custom
|
||||
// behavior.
|
||||
virtual bool DoSaveDocument(const wxString& file);
|
||||
virtual bool DoOpenDocument(const wxString& file);
|
||||
|
||||
private:
|
||||
DECLARE_ABSTRACT_CLASS(wxDocument)
|
||||
DECLARE_NO_COPY_CLASS(wxDocument)
|
||||
@@ -295,6 +301,12 @@ protected:
|
||||
wxClassInfo* m_docClassInfo;
|
||||
wxClassInfo* m_viewClassInfo;
|
||||
|
||||
// Called by CreateDocument and CreateView to create the actual document/view object.
|
||||
// By default uses the ClassInfo provided to the constructor. Override these functions
|
||||
// to provide a different method of creation.
|
||||
virtual wxDocument *DoCreateDocument();
|
||||
virtual wxView *DoCreateView();
|
||||
|
||||
private:
|
||||
DECLARE_CLASS(wxDocTemplate)
|
||||
DECLARE_NO_COPY_CLASS(wxDocTemplate)
|
||||
|
Reference in New Issue
Block a user