1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DCPRINT_H_
12 #define _WX_DCPRINT_H_
14 #if wxUSE_PRINTING_ARCHITECTURE
17 #include "wx/cmndata.h"
18 #include "wx/os2/dc.h"
20 class WXDLLIMPEXP_CORE wxPrinterDCImpl
: public wxPMDCImpl
23 // Create a printer DC
25 // Create from print data
26 wxPrinterDCImpl( wxPrinterDC
*owner
, const wxPrintData
& rData
);
27 wxPrinterDCImpl( wxPrinterDC
*owner
, WXHDC hTheDC
);
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);
35 virtual wxRect
GetPaperRect() const;
38 virtual void DoDrawBitmap( const wxBitmap
& rBmp
41 ,bool bUseMask
= FALSE
43 virtual bool DoBlit( wxCoord vXdest
50 ,wxRasterOperationMode nRop
= wxCOPY
51 ,bool bUseMask
= FALSE
52 ,wxCoord vXsrcMask
= -1
53 ,wxCoord vYsrcMask
= -1
59 wxPrintData m_printData
;
61 DECLARE_CLASS(wxPrinterDCImpl
)
62 wxDECLARE_NO_COPY_CLASS(wxPrinterDCImpl
);
63 }; // end of CLASS wxPrinterDC
65 // Gets an HDC for the specified printer configuration
66 WXHDC WXDLLIMPEXP_CORE
wxGetPrinterDC(const wxPrintData
& rData
);
68 #endif // wxUSE_PRINTING_ARCHITECTURE