1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
16 #include "wx/dcgraph.h"
17 #include "wx/cmndata.h"
19 class wxNativePrinterDC
;
21 class WXDLLIMPEXP_CORE wxPrinterDCImpl
: public wxGCDCImpl
24 #if wxUSE_PRINTING_ARCHITECTURE
26 wxPrinterDCImpl( wxPrinterDC
*owner
, const wxPrintData
& printdata
);
27 virtual ~wxPrinterDCImpl();
29 virtual bool StartDoc( const wxString
& WXUNUSED(message
) ) ;
30 virtual void EndDoc(void) ;
31 virtual void StartPage(void) ;
32 virtual void EndPage(void) ;
34 wxRect
GetPaperRect();
36 wxPrintData
& GetPrintData() { return m_printData
; }
37 virtual wxSize
GetPPI() const;
40 virtual void DoGetSize( int *width
, int *height
) const;
42 wxPrintData m_printData
;
43 wxNativePrinterDC
* m_nativePrinterDC
;
46 DECLARE_CLASS(wxPrinterDC
)
47 #endif // wxUSE_PRINTING_ARCHITECTURE