]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/printps.h
fixing 10.5 only compiles
[wxWidgets.git] / include / wx / generic / printps.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: printps.h
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
d6b9496a 24class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
c801d85f 25{
7bcb11d3
JS
26public:
27 wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) 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
d6b9496a 43class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
c801d85f 44{
7bcb11d3 45public:
d6b9496a
VZ
46 wxPostScriptPrintPreview(wxPrintout *printout,
47 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
48 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
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__