X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3a584a7a6ade199990dd4463488e4bbf3545349..43c42c18d36c703a88b1b7b697bac27fe5608eca:/include/wx/textfile.h?ds=inline diff --git a/include/wx/textfile.h b/include/wx/textfile.h index 477a023b01..240817cfe2 100644 --- a/include/wx/textfile.h +++ b/include/wx/textfile.h @@ -8,28 +8,25 @@ // Created: 03.04.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_TEXTFILE_H #define _WX_TEXTFILE_H -#ifdef __GNUG__ - #pragma interface "textfile.h" -#endif - #include "wx/defs.h" +#include "wx/textbuf.h" + #if wxUSE_TEXTFILE #include "wx/file.h" -#include "wx/textbuf.h" // ---------------------------------------------------------------------------- // wxTextFile // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxTextFile : public wxTextBuffer +class WXDLLIMPEXP_BASE wxTextFile : public wxTextBuffer { public: // constructors @@ -42,11 +39,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 = wxConvLibc); + 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