]>
Commit | Line | Data |
---|---|---|
6762286d | 1 | ///////////////////////////////////////////////////////////////////////////// |
233f5738 | 2 | // Name: wx/osx/dcprint.h |
6762286d SC |
3 | // Purpose: wxPrinterDC class |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
6762286d SC |
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 | ||
5c6eb3a8 | 49 | #endif |
6762286d SC |
50 | // _WX_DCPRINT_H_ |
51 |