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