]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/printps.h
Add functor-taking overload of CallAfter().
[wxWidgets.git] / include / wx / generic / printps.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/generic/printps.h
c801d85f
KB
3// Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4// wxGenericPageSetupDialog
5// Author: Julian Smart
6// Modified by:
7// Created: 01/02/97
8// RCS-ID: $Id$
99d80019 9// Copyright: (c) Julian Smart
65571936 10// Licence: wxWindows licence
c801d85f
KB
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef __PRINTPSH__
14#define __PRINTPSH__
15
c801d85f
KB
16#include "wx/prntbase.h"
17
b51434be 18#if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
ce4169a4 19
d6b9496a
VZ
20// ----------------------------------------------------------------------------
21// Represents the printer: manages printing a wxPrintout object
22// ----------------------------------------------------------------------------
7bcb11d3 23
53a2db12 24class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase
c801d85f 25{
7bcb11d3 26public:
d3b9f782 27 wxPostScriptPrinter(wxPrintDialogData *data = NULL);
d6b9496a
VZ
28 virtual ~wxPostScriptPrinter();
29
ca65c044 30 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
7bcb11d3
JS
31 virtual wxDC* PrintDialog(wxWindow *parent);
32 virtual bool Setup(wxWindow *parent);
ca65c044 33
47dc9f78
RR
34private:
35 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
c801d85f
KB
36};
37
d6b9496a
VZ
38// ----------------------------------------------------------------------------
39// wxPrintPreview: programmer creates an object of this class to preview a
40// wxPrintout.
41// ----------------------------------------------------------------------------
7bcb11d3 42
53a2db12 43class WXDLLIMPEXP_CORE wxPostScriptPrintPreview : public wxPrintPreviewBase
c801d85f 44{
7bcb11d3 45public:
d6b9496a 46 wxPostScriptPrintPreview(wxPrintout *printout,
d3b9f782
VZ
47 wxPrintout *printoutForPrinting = NULL,
48 wxPrintDialogData *data = NULL);
d6b9496a
VZ
49 wxPostScriptPrintPreview(wxPrintout *printout,
50 wxPrintout *printoutForPrinting,
51 wxPrintData *data);
52
53 virtual ~wxPostScriptPrintPreview();
54
7bcb11d3 55 virtual bool Print(bool interactive);
d6b9496a
VZ
56 virtual void DetermineScaling();
57
58private:
59 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
47dc9f78
RR
60
61private:
62 DECLARE_CLASS(wxPostScriptPrintPreview)
c801d85f
KB
63};
64
ce4169a4
RR
65#endif
66
c801d85f 67#endif
7bcb11d3 68// __PRINTPSH__