]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/dcprint.h
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"
19 #if wxUSE_PRINTING_ARCHITECTURE
22 #include "wx/cmndata.h"
24 class WXDLLEXPORT wxPrinterDC
: public wxDC
27 DECLARE_CLASS(wxPrinterDC
)
29 // Create a printer DC (obsolete function: use wxPrintData version now)
30 wxPrinterDC(const wxString
& driver
, const wxString
& device
, const wxString
& output
, bool interactive
= TRUE
, int orientation
= wxPORTRAIT
);
32 // Create from print data
33 wxPrinterDC(const wxPrintData
& data
);
35 wxPrinterDC(WXHDC theDC
);
39 // override some base class virtuals
40 virtual bool StartDoc(const wxString
& message
);
41 virtual void EndDoc();
42 virtual void StartPage();
43 virtual void EndPage();
46 virtual void DoDrawBitmap(const wxBitmap
&bmp
, wxCoord x
, wxCoord y
,
47 bool useMask
= FALSE
);
48 virtual bool DoBlit(wxCoord xdest
, wxCoord ydest
,
49 wxCoord width
, wxCoord height
,
50 wxDC
*source
, wxCoord xsrc
, wxCoord ysrc
,
51 int rop
= wxCOPY
, bool useMask
= FALSE
);
53 wxPrintData m_printData
;
56 // Gets an HDC for the default printer configuration
57 // WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
59 // Gets an HDC for the specified printer configuration
60 WXHDC WXDLLEXPORT
wxGetPrinterDC(const wxPrintData
& data
);
62 #endif // wxUSE_PRINTING_ARCHITECTURE