1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/dcprint.h
3 // Purpose: wxPrinterDC class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DCPRINT_H_
13 #define _WX_DCPRINT_H_
15 #if wxUSE_PRINTING_ARCHITECTURE
18 #include "wx/cmndata.h"
19 #include "wx/os2/dc.h"
21 class WXDLLIMPEXP_CORE wxPrinterDCImpl
: public wxPMDCImpl
24 // Create a printer DC
26 // Create from print data
27 wxPrinterDCImpl( wxPrinterDC
*owner
, const wxPrintData
& rData
);
28 wxPrinterDCImpl( wxPrinterDC
*owner
, WXHDC hTheDC
);
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);
36 virtual wxRect
GetPaperRect() const;
39 virtual void DoDrawBitmap( const wxBitmap
& rBmp
42 ,bool bUseMask
= FALSE
44 virtual bool DoBlit( wxCoord vXdest
51 ,wxRasterOperationMode nRop
= wxCOPY
52 ,bool bUseMask
= FALSE
53 ,wxCoord vXsrcMask
= -1
54 ,wxCoord vYsrcMask
= -1
60 wxPrintData m_printData
;
62 DECLARE_CLASS(wxPrinterDCImpl
)
63 DECLARE_NO_COPY_CLASS(wxPrinterDCImpl
)
64 }; // end of CLASS wxPrinterDC
66 // Gets an HDC for the specified printer configuration
67 WXHDC WXDLLIMPEXP_CORE
wxGetPrinterDC(const wxPrintData
& rData
);
69 #endif // wxUSE_PRINTING_ARCHITECTURE