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