// Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////////
-#ifndef _TEXTFILE_H
-#define _TEXTFILE_H
+#ifndef _TEXTFILE_H
+#define _TEXTFILE_H
#ifdef __GNUG__
#pragma interface "textfile.h"
#endif
#include "wx/defs.h"
+
+#if wxUSE_TEXTFILE && wxUSE_FILE
+
#include "wx/string.h"
#include "wx/file.h"
#include "wx/dynarray.h"
// guess the type of file (m_file is supposed to be opened)
wxTextFileType GuessType() const;
// get the name of the file
- const char *GetName() const { return m_strFile.c_str(); }
+ const wxChar *GetName() const { return m_strFile.c_str(); }
// add/remove lines
// add a line to the end
// get the file termination string
// Note: implementation moved to textfile to prevent warning due to switch.
- static const char *GetEOL(wxTextFileType type = typeDefault);
+ static const wxChar *GetEOL(wxTextFileType type = typeDefault);
// dtor
~wxTextFile();
wxString m_strFile; // name of the file
};
-#endif //_TEXTFILE_H
+#endif
+ // wxUSE_TEXTFILE && wxUSE_FILE
+
+#endif
+ // _TEXTFILE_H
+