+ // void Printf(const wxString& format, ...) = 0;
+ WX_DEFINE_VARARG_FUNC_VOID(Printf, 1, (const wxString&), DoPrintf)
+#ifdef __WATCOMC__
+ // workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
+ WX_DEFINE_VARARG_FUNC_VOID(Printf, 1, (const char*), DoPrintf)
+ WX_DEFINE_VARARG_FUNC_VOID(Printf, 1, (const wchar_t*), DoPrintf)
+ WX_DEFINE_VARARG_FUNC_VOID(Printf, 1, (const wxCStrData&), DoPrintf)
+#endif
+
+protected:
+ // NB: this is pure virtual so that it can be implemented in dllexported
+ // wxMessagOutput class
+ virtual void DoPrintf(const wxString& format, ...) = 0;
+
+ // called by DoPrintf() to output formatted string
+ virtual void Output(const wxString& str) = 0;
+};
+
+#ifdef __VISUALC__
+ // "non dll-interface class 'wxStringPrintfMixin' used as base interface
+ // for dll-interface class 'wxString'" -- this is OK in our case
+ #pragma warning (disable:4275)
+#endif
+
+class WXDLLIMPEXP_BASE wxMessageOutput : public wxMessageOutputBase
+{
+public:
+ virtual ~wxMessageOutput() { }