]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/dcprint.h
Cast for argument to delete[] - VC6 doesn't want to delete a const pointer
[wxWidgets.git] / include / wx / mac / carbon / dcprint.h
index d2527e599129f8186b2183d49536e1dbc684cb42..1e64559a2d6a572c3db5978603b90e86f8a71040 100644 (file)
 #define _WX_DCPRINT_H_
 
 #include "wx/dc.h"
+#include "wx/dcgraph.h"
 #include "wx/cmndata.h"
 
 class wxNativePrinterDC ;
 
-class WXDLLEXPORT wxPrinterDC: public wxDC
+class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxGCDCImpl
 {
- public:
+public:
 #if wxUSE_PRINTING_ARCHITECTURE
-  DECLARE_CLASS(wxPrinterDC)
 
-  // Create a printer DC
-  wxPrinterDC(const wxPrintData& printdata );
-  virtual ~wxPrinterDC();
+    wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& printdata );
+    virtual ~wxPrinterDCImpl();
 
     virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
     virtual void EndDoc(void) ;
@@ -36,13 +35,15 @@ class WXDLLEXPORT wxPrinterDC: public wxDC
 
     wxPrintData& GetPrintData() { return m_printData; }
     virtual wxSize GetPPI() const;
-#if wxMAC_USE_CORE_GRAPHICS
-    void MacSetCGContext( void * cg ) ;
-#endif    
- protected:
+    
+protected:
     virtual void DoGetSize( int *width, int *height ) const;
-    wxPrintData   m_printData ;
+    
+    wxPrintData        m_printData ;
     wxNativePrinterDC* m_nativePrinterDC ;
+    
+private:
+    DECLARE_CLASS(wxPrinterDC)
 #endif // wxUSE_PRINTING_ARCHITECTURE
 };