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