]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcprint.h
more long/double to int conversion warnings from HP-UX logs fixed
[wxWidgets.git] / include / wx / os2 / dcprint.h
CommitLineData
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
ce44c50e
DW
15#if wxUSE_PRINTING_ARCHITECTURE
16
0e320a79 17#include "wx/dc.h"
ce44c50e 18#include "wx/cmndata.h"
0e320a79
DW
19
20class WXDLLEXPORT wxPrinterDC: public wxDC
21{
22 public:
23 DECLARE_CLASS(wxPrinterDC)
24
ce44c50e
DW
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();
0e320a79 34
ce44c50e
DW
35 bool StartDoc(const wxString& message);
36 void EndDoc(void);
37 void StartPage(void);
38 void EndPage(void);
39
40protected:
41 wxPrintData m_printData;
0e320a79
DW
42};
43
ce44c50e
DW
44// Gets an HDC for the specified printer configuration
45WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
46
47#endif // wxUSE_PRINTING_ARCHITECTURE
48
0e320a79
DW
49#endif
50 // _WX_DCPRINT_H_
51