#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, ... );
- void PsPrint( const char* psdata );
+ WX_DEFINE_VARARG_FUNC_VOID(PsPrintf, DoPsPrintfFormat)
+ void PsPrint( const wxString& psdata );
void PsPrint( int ch );
-#if wxUSE_UNICODE
- void PsPrint( const wxChar* psdata ) { PsPrint( wxConvUTF8.cWX2MB( psdata ) ); }
-#endif
-
private:
+ void DoPsPrintfFormat(const wxChar *fmt, ... );
+
static float ms_PSScaleFactor;
protected: