]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcprint.h
wxDC::StretchBlit() for wxMac and wxMSW (patch 1611973)
[wxWidgets.git] / include / wx / mac / carbon / dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
14
15 #include "wx/dc.h"
16 #include "wx/cmndata.h"
17
18 class wxNativePrinterDC ;
19
20 class WXDLLEXPORT wxPrinterDC: public wxDC
21 {
22 public:
23 #if wxUSE_PRINTING_ARCHITECTURE
24 DECLARE_CLASS(wxPrinterDC)
25
26 // Create a printer DC
27 wxPrinterDC(const wxPrintData& printdata );
28 virtual ~wxPrinterDC();
29
30 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
31 virtual void EndDoc(void) ;
32 virtual void StartPage(void) ;
33 virtual void EndPage(void) ;
34
35 wxRect GetPaperRect();
36
37 wxPrintData& GetPrintData() { return m_printData; }
38 virtual wxSize GetPPI() const;
39 protected:
40 virtual void DoGetSize( int *width, int *height ) const;
41 wxPrintData m_printData ;
42 wxNativePrinterDC* m_nativePrinterDC ;
43 #endif // wxUSE_PRINTING_ARCHITECTURE
44 };
45
46 #endif
47 // _WX_DCPRINT_H_
48