#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
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; }
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 );
#endif
private:
+ void DoPsPrintfFormat(const wxChar *fmt, ... );
+
static float ms_PSScaleFactor;
protected: