X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4b5f3fe655deeb91d5d3abe8fad30c4a1cae63dc..c96faa7c9b1926d63a2fff32ac4508d3138a7bee:/include/wx/docview.h diff --git a/include/wx/docview.h b/include/wx/docview.h index f3717c44bf..7c42886d13 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,9 @@ class WXDLLEXPORT wxPrintInfo; class WXDLLEXPORT wxCommand; class WXDLLEXPORT wxCommandProcessor; class WXDLLEXPORT wxFileHistory; +#if wxUSE_CONFIG class WXDLLEXPORT wxConfigBase; +#endif #if wxUSE_IOSTREAMH // N.B. BC++ doesn't have istream.h, ostream.h @@ -42,7 +44,7 @@ class WXDLLEXPORT wxConfigBase; #else # include # include -# ifdef _MSC_VER +# ifdef __VISUALC__ using namespace std; # endif #endif @@ -155,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; } @@ -185,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); @@ -195,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); @@ -342,8 +349,10 @@ class WXDLLEXPORT wxDocManager: public wxEvtHandler virtual wxString GetHistoryFile(int i) const; virtual void FileHistoryUseMenu(wxMenu *menu); virtual void FileHistoryRemoveMenu(wxMenu *menu); +#if wxUSE_CONFIG virtual void FileHistoryLoad(wxConfigBase& config); virtual void FileHistorySave(wxConfigBase& config); +#endif virtual void FileHistoryAddFilesToMenu(); virtual void FileHistoryAddFilesToMenu(wxMenu* menu); protected: @@ -400,7 +409,7 @@ class WXDLLEXPORT wxDocParentFrame: public wxFrame public: wxDocParentFrame(wxDocManager *manager, wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long type = wxDEFAULT_FRAME, const wxString& name = "frame"); + long type = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame"); // Extend event processing to search the document manager's event table virtual bool ProcessEvent(wxEvent& event); @@ -512,8 +521,10 @@ class WXDLLEXPORT wxFileHistory: public wxObject // Remove menu from the list (MDI child may be closing) virtual void RemoveMenu(wxMenu *menu); +#if wxUSE_CONFIG virtual void Load(wxConfigBase& config); virtual void Save(wxConfigBase& config); +#endif virtual void AddFilesToMenu(); virtual void AddFilesToMenu(wxMenu* menu); // Single menu @@ -529,7 +540,7 @@ class WXDLLEXPORT wxFileHistory: public wxObject protected: // Last n files - char** m_fileHistory; + wxChar** m_fileHistory; // Number of files saved int m_fileHistoryN; // Menus to maintain (may need several for an MDI app)