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