]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dcprint.h
Ensure wxCharTypeBuffer data is NUL-terminated after extend() call.
[wxWidgets.git] / include / wx / dcprint.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dcprint.h
3 // Purpose: wxPrinterDC base header
4 // Author: Julian Smart
5 // Modified by:
6 // Created:
7 // Copyright: (c) Julian Smart
8 // RCS-ID: $Id$
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCPRINT_H_BASE_
13 #define _WX_DCPRINT_H_BASE_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_PRINTING_ARCHITECTURE
18
19 #include "wx/dc.h"
20
21 //-----------------------------------------------------------------------------
22 // wxPrinterDC
23 //-----------------------------------------------------------------------------
24
25 class WXDLLIMPEXP_CORE wxPrinterDC : public wxDC
26 {
27 public:
28 wxPrinterDC();
29 wxPrinterDC(const wxPrintData& data);
30
31 wxRect GetPaperRect() const;
32 int GetResolution() const;
33
34 protected:
35 wxPrinterDC(wxDCImpl *impl) : wxDC(impl) { }
36
37 private:
38 DECLARE_DYNAMIC_CLASS(wxPrinterDC)
39 };
40
41 #endif // wxUSE_PRINTING_ARCHITECTURE
42
43 #endif // _WX_DCPRINT_H_BASE_