]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/dcprint.h
Basic support for tooltips under OS X Cocoa.
[wxWidgets.git] / include / wx / osx / 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/dcgraph.h"
17 #include "wx/cmndata.h"
18
19 class wxNativePrinterDC ;
20
21 class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxGCDCImpl
22 {
23 public:
24 #if wxUSE_PRINTING_ARCHITECTURE
25
26 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& printdata );
27 virtual ~wxPrinterDCImpl();
28
29 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
30 virtual void EndDoc(void) ;
31 virtual void StartPage(void) ;
32 virtual void EndPage(void) ;
33
34 wxRect GetPaperRect() const;
35
36 wxPrintData& GetPrintData() { return m_printData; }
37 virtual wxSize GetPPI() const;
38
39 protected:
40 virtual void DoGetSize( int *width, int *height ) const;
41
42 wxPrintData m_printData ;
43 wxNativePrinterDC* m_nativePrinterDC ;
44
45 private:
46 DECLARE_CLASS(wxPrinterDC)
47 #endif // wxUSE_PRINTING_ARCHITECTURE
48 };
49
50 #endif
51 // _WX_DCPRINT_H_
52