]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcprint.h
move check for wxUSE_IPV6 being defined to wx/chkconf.h where it belongs; reformatted...
[wxWidgets.git] / include / wx / os2 / dcprint.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
f415cab9 2// Name: wx/os2/dcprint.h
0e320a79 3// Purpose: wxPrinterDC class
f0a56ab0 4// Author: David Webster
0e320a79 5// Modified by:
f0a56ab0 6// Created: 09/12/99
0e320a79 7// RCS-ID: $Id$
f0a56ab0 8// Copyright: (c) David Webster
65571936 9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
ce44c50e
DW
15#if wxUSE_PRINTING_ARCHITECTURE
16
0e320a79 17#include "wx/dc.h"
ce44c50e 18#include "wx/cmndata.h"
2c24e7ad 19#include "wx/os2/dc.h"
0e320a79 20
53a2db12 21class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxPMDCImpl
0e320a79
DW
22{
23 public:
2c24e7ad 24 // Create a printer DC
0e320a79 25
ac7fb818 26 // Create from print data
2c24e7ad
SN
27 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& rData );
28 wxPrinterDCImpl( wxPrinterDC *owner, WXHDC hTheDC);
ce44c50e 29
2c24e7ad
SN
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);
ce44c50e 35
2c24e7ad 36 virtual wxRect GetPaperRect();
f415cab9 37
ce44c50e 38protected:
ac7fb818
DW
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 ,int nRop = wxCOPY
52 ,bool bUseMask = FALSE
6835592c
DW
53 ,wxCoord vXsrcMask = -1
54 ,wxCoord vYsrcMask = -1
ac7fb818
DW
55 );
56
57 // init the dc
58 void Init(void);
59
60 wxPrintData m_printData;
61private:
2c24e7ad
SN
62 DECLARE_CLASS(wxPrinterDCImpl)
63 DECLARE_NO_COPY_CLASS(wxPrinterDCImpl)
ac7fb818 64}; // end of CLASS wxPrinterDC
0e320a79 65
ce44c50e 66// Gets an HDC for the specified printer configuration
53a2db12 67WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(const wxPrintData& rData);
ce44c50e
DW
68
69#endif // wxUSE_PRINTING_ARCHITECTURE
70
0e320a79
DW
71#endif
72 // _WX_DCPRINT_H_
73