#include "wx/dc.h"
+#if wxUSE_PRINTING_ARCHITECTURE
+
#if wxUSE_POSTSCRIPT
#include "wx/dialog.h"
#include "wx/module.h"
#include "wx/cmndata.h"
-#include <fstream.h>
-
//-----------------------------------------------------------------------------
// classes
void SetClippingRegion(long x, long y, long width, long height);
void SetClippingRegion( const wxRegion ®ion );
void DestroyClippingRegion();
-
+
void DoSetClippingRegionAsRegion( const wxRegion &WXUNUSED(clip) ) {}
bool StartDoc(const wxString& message);
inline void SetBackgroundMode(int WXUNUSED(mode)) {}
inline void SetPalette(const wxPalette& WXUNUSED(palette)) {}
- inline ofstream *GetStream(void) const { return m_pstream; }
+ wxPrintData& GetPrintData() { return m_printData; }
+ void SetPrintData(const wxPrintData& data) { m_printData = data; }
- inline wxPrintData& GetPrintData() { return m_printData; }
- inline void SetPrintData(const wxPrintData& data) { m_printData = data; }
-
- int GetDepth() const { return 24; }
+ virtual int GetDepth() const { return 24; }
protected:
- ofstream * m_pstream; // PostScript output stream
+ FILE* m_pstream; // PostScript output stream
wxString m_title;
unsigned char m_currentRed;
unsigned char m_currentGreen;
#endif
// Print Orientation (Should also add Left, Right)
-enum {
+enum
+{
PS_PORTRAIT = 1,
PS_LANDSCAPE = 2
};// ps_orientation = PS_PORTRAIT;
// Print Actions
-enum {
+enum
+{
PS_NONE,
PS_PREVIEW,
PS_FILE,
#endif
// wxUSE_POSTSCRIPT
+
+#endif
+ // wxUSE_PRINTING_ARCHITECTURE
#endif
// _WX_DCPSG_H_