]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcprint.h | |
3 | // Purpose: wxPrinterDC class | |
f0a56ab0 | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
f0a56ab0 | 6 | // Created: 09/12/99 |
0e320a79 | 7 | // RCS-ID: $Id$ |
f0a56ab0 DW |
8 | // Copyright: (c) David Webster |
9 | // Licence: wxWindows licence | |
0e320a79 DW |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_DCPRINT_H_ | |
13 | #define _WX_DCPRINT_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "dcprint.h" | |
17 | #endif | |
18 | ||
ce44c50e DW |
19 | #if wxUSE_PRINTING_ARCHITECTURE |
20 | ||
0e320a79 | 21 | #include "wx/dc.h" |
ce44c50e | 22 | #include "wx/cmndata.h" |
0e320a79 DW |
23 | |
24 | class WXDLLEXPORT wxPrinterDC: public wxDC | |
25 | { | |
26 | public: | |
27 | DECLARE_CLASS(wxPrinterDC) | |
28 | ||
ce44c50e DW |
29 | // Create a printer DC [obsolete] |
30 | wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT); | |
31 | ||
32 | // Create from print data | |
33 | wxPrinterDC(const wxPrintData& data); | |
34 | ||
35 | wxPrinterDC(WXHDC theDC); | |
36 | ||
37 | ~wxPrinterDC(); | |
0e320a79 | 38 | |
ce44c50e DW |
39 | bool StartDoc(const wxString& message); |
40 | void EndDoc(void); | |
41 | void StartPage(void); | |
42 | void EndPage(void); | |
43 | ||
44 | protected: | |
45 | wxPrintData m_printData; | |
0e320a79 DW |
46 | }; |
47 | ||
ce44c50e DW |
48 | // Gets an HDC for the specified printer configuration |
49 | WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data); | |
50 | ||
51 | #endif // wxUSE_PRINTING_ARCHITECTURE | |
52 | ||
0e320a79 DW |
53 | #endif |
54 | // _WX_DCPRINT_H_ | |
55 |