]>
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$ | |
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 | ||
d6b9496a VZ |
22 | // ---------------------------------------------------------------------------- |
23 | // Represents the printer: manages printing a wxPrintout object | |
24 | // ---------------------------------------------------------------------------- | |
7bcb11d3 | 25 | |
d6b9496a | 26 | class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase |
c801d85f | 27 | { |
7bcb11d3 | 28 | DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter) |
d6b9496a | 29 | |
7bcb11d3 JS |
30 | public: |
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); | |
c801d85f KB |
37 | }; |
38 | ||
d6b9496a VZ |
39 | // ---------------------------------------------------------------------------- |
40 | // wxPrintPreview: programmer creates an object of this class to preview a | |
41 | // wxPrintout. | |
42 | // ---------------------------------------------------------------------------- | |
7bcb11d3 | 43 | |
d6b9496a | 44 | class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase |
c801d85f | 45 | { |
7bcb11d3 | 46 | DECLARE_CLASS(wxPostScriptPrintPreview) |
d6b9496a | 47 | |
7bcb11d3 | 48 | public: |
d6b9496a VZ |
49 | wxPostScriptPrintPreview(wxPrintout *printout, |
50 | wxPrintout *printoutForPrinting = (wxPrintout *) NULL, | |
51 | wxPrintDialogData *data = (wxPrintDialogData *) NULL); | |
52 | wxPostScriptPrintPreview(wxPrintout *printout, | |
53 | wxPrintout *printoutForPrinting, | |
54 | wxPrintData *data); | |
55 | ||
56 | virtual ~wxPostScriptPrintPreview(); | |
57 | ||
7bcb11d3 | 58 | virtual bool Print(bool interactive); |
d6b9496a VZ |
59 | virtual void DetermineScaling(); |
60 | ||
61 | private: | |
62 | void Init(wxPrintout *printout, wxPrintout *printoutForPrinting); | |
c801d85f KB |
63 | }; |
64 | ||
65 | #endif | |
7bcb11d3 | 66 | // __PRINTPSH__ |