+// these static wxTextFile methods are used internally by wxWindows, so should
+// be defined even if we're compiling without wxTextFile at all.
+
+class WXDLLEXPORT wxTextFile
+{
+public:
+ // default type for current platform (determined at compile time)
+ static const wxTextFileType typeDefault;
+
+ // this function returns a string which is identical to "text" passed in
+ // except that the line terminator characters are changed to correspond the
+ // given type. Called with the default argument, the function translates
+ // the string to the native format (Unix for Unix, DOS for Windows, ...).
+ static wxString Translate(const wxString& text,
+ wxTextFileType type = typeDefault);
+
+ // get the file termination string
+ static const wxChar *GetEOL(wxTextFileType type = typeDefault);
+
+private:
+ // copy ctor/assignment operator not implemented
+ wxTextFile(const wxTextFile&);
+ wxTextFile& operator=(const wxTextFile&);
+
+ // suppress the gcc warning: 'class defines only private constructors and
+ // has no friends'
+#ifdef __GNUG__
+ friend class wxTextFileDummyFriend;
+#endif // gcc
+};
+
+#endif // wxUSE_TEXTFILE
+
+#endif // _WX_TEXTFILE_H