X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bb28b47763782647dcc1bec72786c16f39c48d35..10769d8c47c21fe0ec5034726791a5ad4cf19475:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index 52f0c25048..0fc38cf3d5 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -133,6 +133,7 @@ public: wxView *GetFirstView() const; virtual void UpdateAllViews(wxView *sender = (wxView *) NULL, wxObject *hint = (wxObject *) NULL); + virtual void NotifyClosing(); // Remove all views (because we're closing the document) virtual bool DeleteAllViews(); @@ -183,6 +184,7 @@ public: virtual void OnDraw(wxDC *dc) = 0; virtual void OnPrint(wxDC *dc, wxObject *info); virtual void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL); + virtual void OnClosingDocument() {}; virtual void OnChangeFilename(); // Called by framework if created automatically by the default document