]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/dcprint.h
wxMac: wxUniversal integration steps
[wxWidgets.git] / include / wx / os2 / dcprint.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcprint.h
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
DW
8// Copyright: (c) David Webster
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"
0e320a79
DW
19
20class WXDLLEXPORT wxPrinterDC: public wxDC
21{
22 public:
ac7fb818
DW
23 // Create a printer DC [obsolete]
24 wxPrinterDC( const wxString& rsDriver
25 ,const wxString& rsDevice
26 ,const wxString& rsOutput
27 ,bool bInteractive = TRUE
28 ,int nOrientation = wxPORTRAIT
29 );
0e320a79 30
ac7fb818
DW
31 // Create from print data
32 wxPrinterDC(const wxPrintData& rData);
33 wxPrinterDC(WXHDC hTheDC);
ce44c50e 34
ac7fb818 35 bool StartDoc(const wxString& rsMessage);
ce44c50e
DW
36 void EndDoc(void);
37 void StartPage(void);
38 void EndPage(void);
39
40protected:
ac7fb818
DW
41 virtual void DoDrawBitmap( const wxBitmap& rBmp
42 ,wxCoord vX
43 ,wxCoord vY
44 ,bool bUseMask = FALSE
45 );
46 virtual bool DoBlit( wxCoord vXdest
47 ,wxCoord vYdest
48 ,wxCoord vWidth
49 ,wxCoord vHeight
50 ,wxDC* pSource
51 ,wxCoord vXsrc
52 ,wxCoord vYsrc
53 ,int nRop = wxCOPY
54 ,bool bUseMask = FALSE
55 );
56
57 // init the dc
58 void Init(void);
59
60 wxPrintData m_printData;
61private:
62 DECLARE_CLASS(wxPrinterDC)
63}; // end of CLASS wxPrinterDC
0e320a79 64
ce44c50e 65// Gets an HDC for the specified printer configuration
ac7fb818 66WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& rData);
ce44c50e
DW
67
68#endif // wxUSE_PRINTING_ARCHITECTURE
69
0e320a79
DW
70#endif
71 // _WX_DCPRINT_H_
72