]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/printps.h
Fix memory leak by letting the base class version handle the
[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)
77ffb593 10// Licence: wxWidgets licence
c801d85f
KB
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef __PRINTPSH__
14#define __PRINTPSH__
15
12028905 16#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
JS
30public:
31 wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
d6b9496a
VZ
32 virtual ~wxPostScriptPrinter();
33
7bcb11d3
JS
34 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
35 virtual wxDC* PrintDialog(wxWindow *parent);
36 virtual bool Setup(wxWindow *parent);
47dc9f78
RR
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
c801d85f
KB
40};
41
d6b9496a
VZ
42// ----------------------------------------------------------------------------
43// wxPrintPreview: programmer creates an object of this class to preview a
44// wxPrintout.
45// ----------------------------------------------------------------------------
7bcb11d3 46
d6b9496a 47class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
c801d85f 48{
7bcb11d3 49public:
d6b9496a
VZ
50 wxPostScriptPrintPreview(wxPrintout *printout,
51 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
52 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
53 wxPostScriptPrintPreview(wxPrintout *printout,
54 wxPrintout *printoutForPrinting,
55 wxPrintData *data);
56
57 virtual ~wxPostScriptPrintPreview();
58
7bcb11d3 59 virtual bool Print(bool interactive);
d6b9496a
VZ
60 virtual void DetermineScaling();
61
62private:
63 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
47dc9f78
RR
64
65private:
66 DECLARE_CLASS(wxPostScriptPrintPreview)
c801d85f
KB
67};
68
ce4169a4
RR
69#endif
70
c801d85f 71#endif
7bcb11d3 72// __PRINTPSH__