]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/print.h
wxRTC: fixed guidelines overwriting adjacent cell borders; corrected capitalisation...
[wxWidgets.git] / include / wx / x11 / print.h
CommitLineData
83df96d6 1/////////////////////////////////////////////////////////////////////////////
1b88201f 2// Name: wx/x11/print.h
83df96d6
JS
3// Purpose: wxPrinter, wxPrintPreview classes
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
83df96d6 7// Copyright: (c) Julian Smart
1b88201f 8// Licence: wxWindows licence
83df96d6
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PRINT_H_
12#define _WX_PRINT_H_
13
83df96d6
JS
14#include "wx/prntbase.h"
15
16/*
17* Represents the printer: manages printing a wxPrintout object
18*/
19
53a2db12 20class WXDLLIMPEXP_CORE wxPrinter: public wxPrinterBase
83df96d6
JS
21{
22 DECLARE_DYNAMIC_CLASS(wxPrinter)
1b88201f 23
83df96d6
JS
24public:
25 wxPrinter(wxPrintData *data = NULL);
d3c7fc99 26 virtual ~wxPrinter();
1b88201f 27
83df96d6
JS
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
53a2db12 38class WXDLLIMPEXP_CORE wxPrintPreview: public wxPrintPreviewBase
83df96d6
JS
39{
40 DECLARE_CLASS(wxPrintPreview)
1b88201f 41
83df96d6
JS
42public:
43 wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
d3c7fc99 44 virtual ~wxPrintPreview();
1b88201f 45
83df96d6
JS
46 virtual bool Print(bool interactive);
47 virtual void DetermineScaling();
48};
49
50#endif
1b88201f 51 // _WX_PRINT_H_