]>
Commit | Line | Data |
---|---|---|
2bda0e17 | 1 | ///////////////////////////////////////////////////////////////////////////// |
4b7f2165 | 2 | // Name: wx/msw/dcprint.h |
2bda0e17 KB |
3 | // Purpose: wxPrinterDC class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
65571936 | 9 | // Licence: wxWindows licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_DCPRINT_H_ |
13 | #define _WX_DCPRINT_H_ | |
2bda0e17 | 14 | |
d427503c VZ |
15 | #if wxUSE_PRINTING_ARCHITECTURE |
16 | ||
2bda0e17 | 17 | #include "wx/dc.h" |
7bcb11d3 | 18 | #include "wx/cmndata.h" |
2bda0e17 | 19 | |
7ba4fbeb | 20 | class WXDLLEXPORT wxPrinterDC : public wxDC |
2bda0e17 | 21 | { |
7bcb11d3 | 22 | public: |
7bcb11d3 | 23 | // Create a printer DC (obsolete function: use wxPrintData version now) |
d71cc120 | 24 | wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT); |
2bda0e17 | 25 | |
7bcb11d3 JS |
26 | // Create from print data |
27 | wxPrinterDC(const wxPrintData& data); | |
28 | ||
29 | wxPrinterDC(WXHDC theDC); | |
30 | ||
4b7f2165 VZ |
31 | // override some base class virtuals |
32 | virtual bool StartDoc(const wxString& message); | |
33 | virtual void EndDoc(); | |
34 | virtual void StartPage(); | |
35 | virtual void EndPage(); | |
7bcb11d3 JS |
36 | |
37 | protected: | |
4b7f2165 | 38 | virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, |
d71cc120 | 39 | bool useMask = false); |
4b7f2165 VZ |
40 | virtual bool DoBlit(wxCoord xdest, wxCoord ydest, |
41 | wxCoord width, wxCoord height, | |
42 | wxDC *source, wxCoord xsrc, wxCoord ysrc, | |
d71cc120 | 43 | int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord); |
4b7f2165 | 44 | |
7ba4fbeb VZ |
45 | // init the dc |
46 | void Init(); | |
47 | ||
7bcb11d3 | 48 | wxPrintData m_printData; |
7ba4fbeb VZ |
49 | |
50 | private: | |
fc7a2a60 | 51 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC) |
2bda0e17 KB |
52 | }; |
53 | ||
54 | // Gets an HDC for the default printer configuration | |
7bcb11d3 JS |
55 | // WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation); |
56 | ||
57 | // Gets an HDC for the specified printer configuration | |
58 | WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data); | |
2bda0e17 | 59 | |
d427503c VZ |
60 | #endif // wxUSE_PRINTING_ARCHITECTURE |
61 | ||
2bda0e17 | 62 | #endif |
bbcdf8bc | 63 | // _WX_DCPRINT_H_ |
2bda0e17 | 64 |