]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/dcprint.h
2165191bfdc6debfe8eb44c9561483e46e9f0c1f
1 /////////////////////////////////////////////////////////////////////////////
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_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "dcprint.h"
20 #include "wx/cmndata.h"
22 class wxNativePrinterDC
;
24 class WXDLLEXPORT wxPrinterDC
: public wxDC
27 #if wxUSE_PRINTING_ARCHITECTURE
28 DECLARE_CLASS(wxPrinterDC
)
30 // Create a printer DC
31 wxPrinterDC(const wxPrintData
& printdata
);
34 virtual bool StartDoc( const wxString
& WXUNUSED(message
) ) ;
35 virtual void EndDoc(void) ;
36 virtual void StartPage(void) ;
37 virtual void EndPage(void) ;
38 wxPrintData
& GetPrintData() { return m_printData
; }
39 virtual void DoGetSize( int *width
, int *height
) const;
40 #if wxMAC_USE_CORE_GRAPHICS
41 void MacSetCGContext( void * cg
) ;
44 wxPrintData m_printData
;
45 wxNativePrinterDC
* m_nativePrinterDC
;
46 #endif // wxUSE_PRINTING_ARCHITECTURE