]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/dcpsg.h
converted to 16 colors
[wxWidgets.git] / include / wx / generic / dcpsg.h
index 5be42ac46b2e4c16d28f286e4c6363d024d52d34..fba5f2cb57d1cc3b14ab8c9712a2a9fc63e9c4a3 100644 (file)
 
 #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
 //-----------------------------------------------------------------------------
@@ -125,8 +125,6 @@ public:
   inline void SetBackgroundMode(int WXUNUSED(mode)) {}
   inline void SetPalette(const wxPalette& WXUNUSED(palette)) {}
 
-  ofstream *GetStream(void) const { return m_pstream; }
-
   wxPrintData& GetPrintData() { return m_printData; }
   void SetPrintData(const wxPrintData& data) { m_printData = data; }
 
@@ -134,7 +132,7 @@ public:
 
 protected:
 
-  ofstream *        m_pstream;    // PostScript output stream
+  FILE*             m_pstream;    // PostScript output stream
   wxString          m_title;
   unsigned char     m_currentRed;
   unsigned char     m_currentGreen;
@@ -275,6 +273,9 @@ WXDLLEXPORT extern void wxInitializePrintSetupData(bool init = TRUE);
 
 #endif
     // wxUSE_POSTSCRIPT
+    
+#endif
+    // wxUSE_PRINTING_ARCHITECTURE
 
 #endif
         // _WX_DCPSG_H_