]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/dcprint.h
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_
16 #include "wx/cmndata.h"
18 class wxNativePrinterDC
;
20 class WXDLLEXPORT wxPrinterDC
: public wxDC
23 DECLARE_CLASS(wxPrinterDC
)
25 #if wxUSE_PRINTING_ARCHITECTURE
26 // Create a printer DC
27 wxPrinterDC(const wxPrintData
& printdata
);
28 virtual ~wxPrinterDC();
30 virtual bool StartDoc( const wxString
& WXUNUSED(message
) ) ;
31 virtual void EndDoc(void) ;
32 virtual void StartPage(void) ;
33 virtual void EndPage(void) ;
34 wxPrintData
& GetPrintData() { return m_printData
; }
35 virtual void DoGetSize( int *width
, int *height
) const;
38 wxPrintData m_printData
;
39 wxNativePrinterDC
* m_nativePrinterDC
;
40 #endif // wxUSE_PRINTING_ARCHITECTURE