X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c65c67bebaac058737b3eda114e7c3dc1f022423..3ded4b22fe0fa21b6bada0beede43cb4d06b233f:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index d3e109eb60..f921f9b504 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -133,7 +133,7 @@ public: virtual bool Draw(wxDC&); virtual bool IsModified() const { return m_documentModified; } - virtual void Modify(bool mod) { m_documentModified = mod; } + virtual void Modify(bool mod); virtual bool AddView(wxView *view); virtual bool RemoveView(wxView *view); @@ -377,6 +377,7 @@ public: // Handlers for UI update commands void OnUpdateFileOpen(wxUpdateUIEvent& event); void OnUpdateDisableIfNoDoc(wxUpdateUIEvent& event); + void OnUpdateFileRevert(wxUpdateUIEvent& event); void OnUpdateFileNew(wxUpdateUIEvent& event); void OnUpdateFileSave(wxUpdateUIEvent& event); void OnUpdateUndo(wxUpdateUIEvent& event); @@ -477,6 +478,12 @@ public: #endif // WXWIN_COMPATIBILITY_2_6 protected: +#if wxUSE_PRINTING_ARCHITECTURE + virtual wxPreviewFrame* CreatePreviewFrame(wxPrintPreviewBase* preview, + wxWindow *parent, + const wxString& title); +#endif // wxUSE_PRINTING_ARCHITECTURE + // hook the currently active view into event handlers chain here virtual bool TryBefore(wxEvent& event); @@ -521,7 +528,12 @@ class WXDLLIMPEXP_CORE wxDocChildFrameAnyBase { public: // default ctor, use Create() after it - wxDocChildFrameAnyBase() { m_win = NULL; } + wxDocChildFrameAnyBase() + { + m_childDocument = NULL; + m_childView = NULL; + m_win = NULL; + } // full ctor equivalent to using the default one and Create(0 wxDocChildFrameAnyBase(wxDocument *doc, wxView *view, wxWindow *win) @@ -631,10 +643,10 @@ public: long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr) { - if ( !BaseClass::Create(parent, id, title, pos, size, style, name) ) + if ( !wxDocChildFrameAnyBase::Create(doc, view, this) ) return false; - if ( !wxDocChildFrameAnyBase::Create(doc, view, this) ) + if ( !BaseClass::Create(parent, id, title, pos, size, style, name) ) return false; this->Connect(wxEVT_ACTIVATE, @@ -690,6 +702,7 @@ private: // for dll-interface class 'wxDocChildFrame'" -- this is bogus as the // template will be DLL-exported but only once it is used as base class // here! + #pragma warning (push) #pragma warning (disable:4275) #endif @@ -739,7 +752,7 @@ private: }; #ifdef __VISUALC6__ - #pragma warning (default:4275) + #pragma warning (pop) #endif // ----------------------------------------------------------------------------