]>
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 |
77ffb593 | 9 | // Licence: wxWidgets licence |
2bda0e17 KB |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
bbcdf8bc JS |
12 | #ifndef _WX_DCPRINT_H_ |
13 | #define _WX_DCPRINT_H_ | |
2bda0e17 | 14 | |
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
4b7f2165 | 16 | #pragma interface "dcprint.h" |
2bda0e17 KB |
17 | #endif |
18 | ||
d427503c VZ |
19 | #if wxUSE_PRINTING_ARCHITECTURE |
20 | ||
2bda0e17 | 21 | #include "wx/dc.h" |
7bcb11d3 | 22 | #include "wx/cmndata.h" |
2bda0e17 | 23 | |
7ba4fbeb | 24 | class WXDLLEXPORT wxPrinterDC : public wxDC |
2bda0e17 | 25 | { |
7bcb11d3 | 26 | public: |
7bcb11d3 JS |
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); | |
2bda0e17 | 29 | |
7bcb11d3 JS |
30 | // Create from print data |
31 | wxPrinterDC(const wxPrintData& data); | |
32 | ||
33 | wxPrinterDC(WXHDC theDC); | |
34 | ||
4b7f2165 VZ |
35 | // override some base class virtuals |
36 | virtual bool StartDoc(const wxString& message); | |
37 | virtual void EndDoc(); | |
38 | virtual void StartPage(); | |
39 | virtual void EndPage(); | |
7bcb11d3 JS |
40 | |
41 | protected: | |
4b7f2165 VZ |
42 | virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y, |
43 | bool useMask = FALSE); | |
44 | virtual bool DoBlit(wxCoord xdest, wxCoord ydest, | |
45 | wxCoord width, wxCoord height, | |
46 | wxDC *source, wxCoord xsrc, wxCoord ysrc, | |
0cbff120 | 47 | int rop = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1); |
4b7f2165 | 48 | |
7ba4fbeb VZ |
49 | // init the dc |
50 | void Init(); | |
51 | ||
7bcb11d3 | 52 | wxPrintData m_printData; |
7ba4fbeb VZ |
53 | |
54 | private: | |
fc7a2a60 | 55 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC) |
2bda0e17 KB |
56 | }; |
57 | ||
58 | // Gets an HDC for the default printer configuration | |
7bcb11d3 JS |
59 | // WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation); |
60 | ||
61 | // Gets an HDC for the specified printer configuration | |
62 | WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data); | |
2bda0e17 | 63 | |
d427503c VZ |
64 | #endif // wxUSE_PRINTING_ARCHITECTURE |
65 | ||
2bda0e17 | 66 | #endif |
bbcdf8bc | 67 | // _WX_DCPRINT_H_ |
2bda0e17 | 68 |