]>
Commit | Line | Data |
---|---|---|
0dbd6262 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcprint.h | |
3 | // Purpose: wxPrinterDC class | |
a31a5f85 | 4 | // Author: Stefan Csomor |
0dbd6262 | 5 | // Modified by: |
a31a5f85 | 6 | // Created: 1998-01-01 |
0dbd6262 | 7 | // RCS-ID: $Id$ |
a31a5f85 | 8 | // Copyright: (c) Stefan Csomor |
d921af51 | 9 | // Licence: wxWindows licence |
0dbd6262 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCPRINT_H_ | |
13 | #define _WX_DCPRINT_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
0dbd6262 SC |
16 | #pragma interface "dcprint.h" |
17 | #endif | |
18 | ||
19 | #include "wx/dc.h" | |
519cb848 | 20 | #include "wx/cmndata.h" |
0dbd6262 | 21 | |
1da7f7a5 SC |
22 | class wxNativePrinterDC ; |
23 | ||
0dbd6262 SC |
24 | class WXDLLEXPORT wxPrinterDC: public wxDC |
25 | { | |
26 | public: | |
27 | DECLARE_CLASS(wxPrinterDC) | |
28 | ||
03e11df5 | 29 | #if wxUSE_PRINTING_ARCHITECTURE |
0dbd6262 | 30 | // Create a printer DC |
519cb848 | 31 | wxPrinterDC(const wxPrintData& printdata ); |
0dbd6262 | 32 | ~wxPrinterDC(); |
519cb848 SC |
33 | |
34 | virtual bool StartDoc( const wxString& WXUNUSED(message) ) ; | |
35 | virtual void EndDoc(void) ; | |
36 | virtual void StartPage(void) ; | |
37 | virtual void EndPage(void) ; | |
1da7f7a5 SC |
38 | wxPrintData& GetPrintData() { return m_printData; } |
39 | virtual void DoGetSize( int *width, int *height ) const; | |
40 | ||
bcaba9a0 | 41 | protected: |
1da7f7a5 SC |
42 | wxPrintData m_printData ; |
43 | wxNativePrinterDC* m_nativePrinterDC ; | |
03e11df5 | 44 | #endif // wxUSE_PRINTING_ARCHITECTURE |
0dbd6262 SC |
45 | }; |
46 | ||
47 | #endif | |
48 | // _WX_DCPRINT_H_ | |
49 |