]>
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 | ||
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 | 28 | class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase |
c801d85f | 29 | { |
7bcb11d3 JS |
30 | public: |
31 | wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL); | |
d6b9496a VZ |
32 | virtual ~wxPostScriptPrinter(); |
33 | ||
ca65c044 | 34 | virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true); |
7bcb11d3 JS |
35 | virtual wxDC* PrintDialog(wxWindow *parent); |
36 | virtual bool Setup(wxWindow *parent); | |
ca65c044 | 37 | |
47dc9f78 RR |
38 | private: |
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 | 47 | class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase |
c801d85f | 48 | { |
7bcb11d3 | 49 | public: |
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 | ||
62 | private: | |
63 | void Init(wxPrintout *printout, wxPrintout *printoutForPrinting); | |
47dc9f78 RR |
64 | |
65 | private: | |
66 | DECLARE_CLASS(wxPostScriptPrintPreview) | |
c801d85f KB |
67 | }; |
68 | ||
ce4169a4 RR |
69 | #endif |
70 | ||
c801d85f | 71 | #endif |
7bcb11d3 | 72 | // __PRINTPSH__ |