X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac57418f39e9671c18b99942180563146625d3ae..dd3c394ae4e6f6a0041b69e036d4fdf0a085fe39:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index a249f933b8..c7ea657142 100644 --- a/include/wx/docview.h +++ b/include/wx/docview.h @@ -6,7 +6,7 @@ // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_DOCH__ @@ -34,7 +34,7 @@ class WXDLLEXPORT wxPrintInfo; class WXDLLEXPORT wxCommand; class WXDLLEXPORT wxCommandProcessor; class WXDLLEXPORT wxFileHistory; -#ifdef wxUSE_CONFIG +#if wxUSE_CONFIG class WXDLLEXPORT wxConfigBase; #endif @@ -44,7 +44,7 @@ class WXDLLEXPORT wxConfigBase; #else # include # include -# ifdef _MSC_VER +# ifdef __VISUALC__ using namespace std; # endif #endif @@ -157,7 +157,8 @@ class WXDLLEXPORT wxView: public wxEvtHandler { DECLARE_ABSTRACT_CLASS(wxView) public: - wxView(wxDocument *doc = (wxDocument *) NULL); +// wxView(wxDocument *doc = (wxDocument *) NULL); + wxView(); ~wxView(void); inline wxDocument *GetDocument(void) const { return m_viewDocument; } @@ -187,8 +188,11 @@ class WXDLLEXPORT wxView: public wxEvtHandler // Override to do cleanup/veto close virtual bool OnClose(bool deleteWindow); + +#if WXWIN_COMPATIBILITY // Defeat compiler warning - inline bool OnClose(void) { return wxEvtHandler::OnClose(); } + bool OnClose(void) { return wxEvtHandler::OnClose(); } +#endif // Extend event processing to search the document's event table virtual bool ProcessEvent(wxEvent& event); @@ -197,7 +201,8 @@ class WXDLLEXPORT wxView: public wxEvtHandler // The function then notifies the document manager. virtual void Activate(bool activate); - inline wxDocManager *GetDocumentManager(void) const { return m_viewDocument->GetDocumentManager(); } + wxDocManager *GetDocumentManager(void) const + { return m_viewDocument->GetDocumentManager(); } #if wxUSE_PRINTING_ARCHITECTURE virtual wxPrintout *OnCreatePrintout(void); @@ -344,7 +349,7 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler virtual wxString GetHistoryFile(int i) const; virtual void FileHistoryUseMenu(wxMenu *menu); virtual void FileHistoryRemoveMenu(wxMenu *menu); -#ifdef wxUSE_CONFIG +#if wxUSE_CONFIG virtual void FileHistoryLoad(wxConfigBase& config); virtual void FileHistorySave(wxConfigBase& config); #endif @@ -516,7 +521,7 @@ class WXDLLEXPORT wxFileHistory: public wxObject // Remove menu from the list (MDI child may be closing) virtual void RemoveMenu(wxMenu *menu); -#ifdef wxUSE_CONFIG +#if wxUSE_CONFIG virtual void Load(wxConfigBase& config); virtual void Save(wxConfigBase& config); #endif