]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/dcprint.h
Chianti, Pinot noir, WINE..
[wxWidgets.git] / include / wx / msw / dcprint.h
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcprint.h
3// Purpose: wxPrinterDC class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
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__
16#pragma interface "dcprint.h"
17#endif
18
19#include "wx/dc.h"
7bcb11d3 20#include "wx/cmndata.h"
2bda0e17
KB
21
22class WXDLLEXPORT wxPrinterDC: public wxDC
23{
7bcb11d3
JS
24public:
25DECLARE_CLASS(wxPrinterDC)
2bda0e17 26
7bcb11d3
JS
27 // Create a printer DC (obsolete function: use wxPrintData version now)
28 wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
2bda0e17 29
7bcb11d3
JS
30 // Create from print data
31 wxPrinterDC(const wxPrintData& data);
32
33 wxPrinterDC(WXHDC theDC);
34
35 ~wxPrinterDC(void);
36
37 bool StartDoc(const wxString& message);
38 void EndDoc(void);
39 void StartPage(void);
40 void EndPage(void);
41
42protected:
43 wxPrintData m_printData;
2bda0e17
KB
44};
45
46// Gets an HDC for the default printer configuration
7bcb11d3
JS
47// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
48
49// Gets an HDC for the specified printer configuration
50WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
2bda0e17
KB
51
52#endif
bbcdf8bc 53 // _WX_DCPRINT_H_
2bda0e17 54