X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..e3b81044ee30ead362ba6e1bf95af13248afe41c:/include/wx/generic/dcpsg.h diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index ddd9888e68..e2f9770f69 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -11,15 +11,19 @@ #ifndef _WX_DCPSG_H_ #define _WX_DCPSG_H_ -#include "wx/dc.h" +#include "wx/defs.h" #if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_POSTSCRIPT +#include "wx/dc.h" #include "wx/dialog.h" #include "wx/module.h" #include "wx/cmndata.h" +#include "wx/strvararg.h" + +extern WXDLLIMPEXP_DATA_CORE(int) wxPageNumber; //----------------------------------------------------------------------------- // classes @@ -40,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; } @@ -81,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 ); @@ -90,6 +95,8 @@ public: #endif private: + void DoPsPrintfFormat(const wxChar *fmt, ... ); + static float ms_PSScaleFactor; protected: