X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..3e33568e0bd8416417916d194fc9a50cab9636bf:/include/wx/textfile.h diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 693bd37d96..e6aa3ba663 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -6,7 +6,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 03.04.98 -// RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -14,10 +13,6 @@ #ifndef _WX_TEXTFILE_H #define _WX_TEXTFILE_H -#if defined(__GNUG__) && !defined(__APPLE__) - #pragma interface "textfile.h" -#endif - #include "wx/defs.h" #include "wx/textbuf.h" @@ -30,7 +25,7 @@ // wxTextFile // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxTextFile : public wxTextBuffer +class WXDLLIMPEXP_BASE wxTextFile : public wxTextBuffer { public: // constructors @@ -43,11 +38,14 @@ protected: virtual bool OnOpen(const wxString &strBufferName, wxTextBufferOpenMode OpenMode); virtual bool OnClose(); - virtual bool OnRead(wxMBConv& conv); - virtual bool OnWrite(wxTextFileType typeNew, wxMBConv& conv); + virtual bool OnRead(const wxMBConv& conv); + virtual bool OnWrite(wxTextFileType typeNew, const wxMBConv& conv); private: + wxFile m_file; + + wxDECLARE_NO_COPY_CLASS(wxTextFile); }; #else // !wxUSE_TEXTFILE