X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64698f9af83fd51d3080a0e6fb3789e9f75b4958..21802234dfc226c369e7d48af58e6c1b7f7242a3:/include/wx/generic/dcpsg.h diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 5638e228a5..fba5f2cb57 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -17,13 +17,13 @@ #include "wx/dc.h" +#if wxUSE_PRINTING_ARCHITECTURE + #if wxUSE_POSTSCRIPT #include "wx/dialog.h" #include "wx/module.h" #include "wx/cmndata.h" -#include - //----------------------------------------------------------------------------- // classes @@ -97,7 +97,7 @@ public: 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); @@ -113,8 +113,8 @@ public: long *externalLeading = (long *) NULL, wxFont *theFont = (wxFont *) NULL ) const; - void GetSize(int* width, int* height) const; - void GetSizeMM(int *width, int *height) const; + void DoGetSize(int* width, int* height) const; + void DoGetSizeMM(int *width, int *height) const; // Resolution in pixels per logical inch wxSize GetPPI(void) const; @@ -125,16 +125,14 @@ public: 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; @@ -170,13 +168,15 @@ public: #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, @@ -273,6 +273,9 @@ WXDLLEXPORT extern void wxInitializePrintSetupData(bool init = TRUE); #endif // wxUSE_POSTSCRIPT + +#endif + // wxUSE_PRINTING_ARCHITECTURE #endif // _WX_DCPSG_H_