]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/dcprint.h
Fixed virtual function hiding problem
[wxWidgets.git] / include / wx / msw / dcprint.h
... / ...
CommitLineData
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$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCPRINT_H_
13#define _WX_DCPRINT_H_
14
15#ifdef __GNUG__
16#pragma interface "dcprint.h"
17#endif
18
19#if wxUSE_PRINTING_ARCHITECTURE
20
21#include "wx/dc.h"
22#include "wx/cmndata.h"
23
24class WXDLLEXPORT wxPrinterDC: public wxDC
25{
26public:
27DECLARE_CLASS(wxPrinterDC)
28
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);
31
32 // Create from print data
33 wxPrinterDC(const wxPrintData& data);
34
35 wxPrinterDC(WXHDC theDC);
36
37 ~wxPrinterDC(void);
38
39 bool StartDoc(const wxString& message);
40 void EndDoc(void);
41 void StartPage(void);
42 void EndPage(void);
43
44protected:
45 wxPrintData m_printData;
46};
47
48// Gets an HDC for the default printer configuration
49// WXHDC WXDLLEXPORT wxGetPrinterDC(int orientation);
50
51// Gets an HDC for the specified printer configuration
52WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& data);
53
54#endif // wxUSE_PRINTING_ARCHITECTURE
55
56#endif
57 // _WX_DCPRINT_H_
58