]>
Commit | Line | Data |
---|---|---|
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 | |
53a2db12 | 24 | class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase |
c801d85f | 25 | { |
7bcb11d3 | 26 | public: |
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 |
34 | private: |
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 | 43 | class WXDLLIMPEXP_CORE wxPostScriptPrintPreview : public wxPrintPreviewBase |
c801d85f | 44 | { |
7bcb11d3 | 45 | public: |
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 | ||
58 | private: | |
59 | void Init(wxPrintout *printout, wxPrintout *printoutForPrinting); | |
47dc9f78 RR |
60 | |
61 | private: | |
62 | DECLARE_CLASS(wxPostScriptPrintPreview) | |
c801d85f KB |
63 | }; |
64 | ||
ce4169a4 RR |
65 | #endif |
66 | ||
c801d85f | 67 | #endif |
7bcb11d3 | 68 | // __PRINTPSH__ |