]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/dcprint.h
Make storing non-trivial data in wxThreadSpecificInfo possible.
[wxWidgets.git] / include / wx / osx / dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_DCPRINT_H_
12 #define _WX_DCPRINT_H_
13
14 #include "wx/dc.h"
15 #include "wx/dcgraph.h"
16 #include "wx/cmndata.h"
17
18 class wxNativePrinterDC ;
19
20 class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxGCDCImpl
21 {
22 public:
23 #if wxUSE_PRINTING_ARCHITECTURE
24
25 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& printdata );
26 virtual ~wxPrinterDCImpl();
27
28 virtual bool StartDoc( const wxString& WXUNUSED(message) ) ;
29 virtual void EndDoc(void) ;
30 virtual void StartPage(void) ;
31 virtual void EndPage(void) ;
32
33 wxRect GetPaperRect() const;
34
35 wxPrintData& GetPrintData() { return m_printData; }
36 virtual wxSize GetPPI() const;
37
38 protected:
39 virtual void DoGetSize( int *width, int *height ) const;
40
41 wxPrintData m_printData ;
42 wxNativePrinterDC* m_nativePrinterDC ;
43
44 private:
45 DECLARE_CLASS(wxPrinterDC)
46 #endif // wxUSE_PRINTING_ARCHITECTURE
47 };
48
49 #endif
50 // _WX_DCPRINT_H_
51