]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrinterDC class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
16 #pragma interface "dcprint.h"
20 #include "wx/cmndata.h"
22 class WXDLLEXPORT wxPrinterDC
: public wxDC
25 DECLARE_CLASS(wxPrinterDC
)
27 // Create a printer DC (obsolete function: use wxPrintData version now)
28 wxPrinterDC(const wxString
& driver
, const wxString
& device
, const wxString
& output
, bool interactive
= TRUE
, int orientation
= wxPORTRAIT
);
30 // Create from print data
31 wxPrinterDC(const wxPrintData
& data
);
33 wxPrinterDC(WXHDC theDC
);
37 bool StartDoc(const wxString
& message
);
43 wxPrintData m_printData
;
46 // Gets an HDC for the default printer configuration
47 // WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
49 // Gets an HDC for the specified printer configuration
50 WXHDC WXDLLEXPORT
wxGetPrinterDC(const wxPrintData
& data
);