]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/dcprint.h
Added class to handle selection inside wxGrid
[wxWidgets.git] / include / wx / msw / dcprint.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
4b7f2165 2// Name: wx/msw/dcprint.h
2bda0e17
KB
3// Purpose: wxPrinterDC class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
4b7f2165 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
2bda0e17
KB
14
15#ifdef __GNUG__
4b7f2165 16 #pragma interface "dcprint.h"
2bda0e17
KB
17#endif
18
d427503c
VZ
19#if wxUSE_PRINTING_ARCHITECTURE
20
2bda0e17 21#include "wx/dc.h"
7bcb11d3 22#include "wx/cmndata.h"
2bda0e17
KB
23
24class WXDLLEXPORT wxPrinterDC: public wxDC
25{
7bcb11d3
JS
26public:
27DECLARE_CLASS(wxPrinterDC)
2bda0e17 28
7bcb11d3
JS
29 // Create a printer DC (obsolete function: use wxPrintData version now)
30 wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
2bda0e17 31
7bcb11d3
JS
32 // Create from print data
33 wxPrinterDC(const wxPrintData& data);
34
35 wxPrinterDC(WXHDC theDC);
36
37 ~wxPrinterDC(void);
38
4b7f2165
VZ
39 // override some base class virtuals
40 virtual bool StartDoc(const wxString& message);
41 virtual void EndDoc();
42 virtual void StartPage();
43 virtual void EndPage();
7bcb11d3
JS
44
45protected:
4b7f2165
VZ
46 virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
47 bool useMask = FALSE);
48 virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
49 wxCoord width, wxCoord height,
50 wxDC *source, wxCoord xsrc, wxCoord ysrc,
51 int rop = wxCOPY, bool useMask = FALSE);
52
7bcb11d3 53 wxPrintData m_printData;
2bda0e17
KB
54};
55
56// Gets an HDC for the default printer configuration
7bcb11d3
JS
57// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
58
59// Gets an HDC for the specified printer configuration
60WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
2bda0e17 61
d427503c
VZ
62#endif // wxUSE_PRINTING_ARCHITECTURE
63
2bda0e17 64#endif
bbcdf8bc 65 // _WX_DCPRINT_H_
2bda0e17 66