]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/print.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / x11 / print.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/print.h
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_PRINT_H_
12 #define _WX_PRINT_H_
13
14 #include "wx/prntbase.h"
15
16 /*
17 * Represents the printer: manages printing a wxPrintout object
18 */
19
20 class WXDLLIMPEXP_CORE wxPrinter: public wxPrinterBase
21 {
22 DECLARE_DYNAMIC_CLASS(wxPrinter)
23
24 public:
25 wxPrinter(wxPrintData *data = NULL);
26 virtual ~wxPrinter();
27
28 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
29 virtual bool PrintDialog(wxWindow *parent);
30 virtual bool Setup(wxWindow *parent);
31 };
32
33 /*
34 * wxPrintPreview
35 * Programmer creates an object of this class to preview a wxPrintout.
36 */
37
38 class WXDLLIMPEXP_CORE wxPrintPreview: public wxPrintPreviewBase
39 {
40 DECLARE_CLASS(wxPrintPreview)
41
42 public:
43 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
44 virtual ~wxPrintPreview();
45
46 virtual bool Print(bool interactive);
47 virtual void DetermineScaling();
48 };
49
50 #endif
51 // _WX_PRINT_H_