]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dcprint.h
Border corrections, and more compact dialog sizes
[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 #if wxUSE_NEW_DC
20
21 #include "wx/dc.h"
22
23 //-----------------------------------------------------------------------------
24 // wxPrinterDC
25 //-----------------------------------------------------------------------------
26
27 class WXDLLIMPEXP_CORE wxPrinterImplDCBase
28 {
29 public:
30 wxPrinterImplDCBase() { }
31
32 virtual wxRect DoGetPaperRect() = 0;
33 };
34
35
36 class WXDLLIMPEXP_CORE wxPrinterDC: public wxDC
37 {
38 public:
39 wxPrinterDC( const wxPrintData& data );
40
41 wxRect GetPaperRect();
42 };
43
44 #else
45
46
47 #if defined(__WXPALMOS__)
48 #include "wx/palmos/dcprint.h"
49 #elif defined(__WXMSW__)
50 #include "wx/msw/dcprint.h"
51 #endif
52 #if defined(__WXPM__)
53 #include "wx/os2/dcprint.h"
54 #endif
55 #if defined(__WXMAC__)
56 #include "wx/mac/dcprint.h"
57 #endif
58
59 #endif // wxUSE_NEW_DC
60 #endif // wxUSE_PRINTING_ARCHITECTURE
61 #endif
62 // _WX_DCPRINT_H_BASE_