X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7445ff8ee26e39fab1e35455e1bef954bdf636f..e3b81044ee30ead362ba6e1bf95af13248afe41c:/include/wx/generic/dcpsg.h diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 7d9ea915f3..e2f9770f69 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -21,6 +21,7 @@ #include "wx/dialog.h" #include "wx/module.h" #include "wx/cmndata.h" +#include "wx/strvararg.h" extern WXDLLIMPEXP_DATA_CORE(int) wxPageNumber; @@ -43,9 +44,10 @@ public: wxPostScriptDC(const wxPrintData& printData); // Recommended destructor :-) - ~wxPostScriptDC(); + virtual ~wxPostScriptDC(); - virtual bool Ok() const; + virtual bool Ok() const { return IsOk(); } + virtual bool IsOk() const; bool CanDrawBitmap() const { return true; } @@ -84,7 +86,7 @@ public: static void SetResolution(int ppi); static int GetResolution(); - void PsPrintf( const wxChar* fmt, ... ); + WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, DoPsPrintfFormat) void PsPrint( const char* psdata ); void PsPrint( int ch ); @@ -93,6 +95,8 @@ public: #endif private: + void DoPsPrintfFormat(const wxChar *fmt, ... ); + static float ms_PSScaleFactor; protected: