]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcprint.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[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
f0a56ab0 7// Copyright: (c) David Webster
65571936 8// Licence: wxWindows licence
0e320a79
DW
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DCPRINT_H_
12#define _WX_DCPRINT_H_
13
ce44c50e
DW
14#if wxUSE_PRINTING_ARCHITECTURE
15
0e320a79 16#include "wx/dc.h"
ce44c50e 17#include "wx/cmndata.h"
2c24e7ad 18#include "wx/os2/dc.h"
0e320a79 19
53a2db12 20class WXDLLIMPEXP_CORE wxPrinterDCImpl: public wxPMDCImpl
0e320a79
DW
21{
22 public:
2c24e7ad 23 // Create a printer DC
0e320a79 24
ac7fb818 25 // Create from print data
2c24e7ad
SN
26 wxPrinterDCImpl( wxPrinterDC *owner, const wxPrintData& rData );
27 wxPrinterDCImpl( wxPrinterDC *owner, WXHDC hTheDC);
ce44c50e 28
2c24e7ad
SN
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);
ce44c50e 34
6d52ca53 35 virtual wxRect GetPaperRect() const;
f415cab9 36
ce44c50e 37protected:
ac7fb818
DW
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
89efaf2b 50 ,wxRasterOperationMode nRop = wxCOPY
ac7fb818 51 ,bool bUseMask = FALSE
6835592c
DW
52 ,wxCoord vXsrcMask = -1
53 ,wxCoord vYsrcMask = -1
ac7fb818
DW
54 );
55
56 // init the dc
57 void Init(void);
58
59 wxPrintData m_printData;
60private:
2c24e7ad 61 DECLARE_CLASS(wxPrinterDCImpl)
c0c133e1 62 wxDECLARE_NO_COPY_CLASS(wxPrinterDCImpl);
ac7fb818 63}; // end of CLASS wxPrinterDC
0e320a79 64
ce44c50e 65// Gets an HDC for the specified printer configuration
53a2db12 66WXHDC WXDLLIMPEXP_CORE wxGetPrinterDC(const wxPrintData& rData);
ce44c50e
DW
67
68#endif // wxUSE_PRINTING_ARCHITECTURE
69
0e320a79
DW
70#endif
71 // _WX_DCPRINT_H_
72