]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/dcprint.h
Added wxPGProperty::Set/GetValuePlain() for direct m_value member access needed by...
[wxWidgets.git] / include / wx / os2 / dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: David Webster
5 // Modified by:
6 // Created: 09/12/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
14
15 #if wxUSE_PRINTING_ARCHITECTURE
16
17 #include "wx/dc.h"
18 #include "wx/cmndata.h"
19 #include "wx/os2/dc.h"
20
21 class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxPMDCImpl
22 {
23 public:
24 // Create a printer DC
25
26 // Create from print data
27 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& rData );
28 wxPrinterDCImpl( wxPrinterDC *owner, WXHDC hTheDC);
29
30 // override some base class virtuals
31 virtual bool StartDoc(const wxString& rsMessage);
32 virtual void EndDoc(void);
33 virtual void StartPage(void);
34 virtual void EndPage(void);
35
36 virtual wxRect GetPaperRect() const;
37
38 protected:
39 virtual void DoDrawBitmap( const wxBitmap& rBmp
40 ,wxCoord vX
41 ,wxCoord vY
42 ,bool bUseMask = FALSE
43 );
44 virtual bool DoBlit( wxCoord vXdest
45 ,wxCoord vYdest
46 ,wxCoord vWidth
47 ,wxCoord vHeight
48 ,wxDC* pSource
49 ,wxCoord vXsrc
50 ,wxCoord vYsrc
51 ,wxRasterOperationMode nRop = wxCOPY
52 ,bool bUseMask = FALSE
53 ,wxCoord vXsrcMask = -1
54 ,wxCoord vYsrcMask = -1
55 );
56
57 // init the dc
58 void Init(void);
59
60 wxPrintData m_printData;
61 private:
62 DECLARE_CLASS(wxPrinterDCImpl)
63 wxDECLARE_NO_COPY_CLASS(wxPrinterDCImpl);
64 }; // end of CLASS wxPrinterDC
65
66 // Gets an HDC for the specified printer configuration
67 WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(const wxPrintData& rData);
68
69 #endif // wxUSE_PRINTING_ARCHITECTURE
70
71 #endif
72 // _WX_DCPRINT_H_
73