]>
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) | |
10 | // Licence: wxWindows licence | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #ifndef __PRINTPSH__ | |
14 | #define __PRINTPSH__ | |
15 | ||
16 | #ifdef __GNUG__ | |
17 | #pragma interface "printps.h" | |
18 | #endif | |
19 | ||
20 | #include "wx/prntbase.h" | |
21 | ||
22 | /* | |
7bcb11d3 JS |
23 | * Represents the printer: manages printing a wxPrintout object |
24 | */ | |
25 | ||
c801d85f KB |
26 | class WXDLLEXPORT wxPostScriptPrinter: public wxPrinterBase |
27 | { | |
7bcb11d3 JS |
28 | DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter) |
29 | ||
30 | public: | |
31 | wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL); | |
32 | ~wxPostScriptPrinter(void); | |
33 | ||
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 | ||
39 | /* | |
7bcb11d3 JS |
40 | * wxPrintPreview |
41 | * Programmer creates an object of this class to preview a wxPrintout. | |
42 | */ | |
43 | ||
c801d85f KB |
44 | class WXDLLEXPORT wxPostScriptPrintPreview: public wxPrintPreviewBase |
45 | { | |
7bcb11d3 JS |
46 | DECLARE_CLASS(wxPostScriptPrintPreview) |
47 | ||
48 | public: | |
49 | wxPostScriptPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintDialogData *data = (wxPrintDialogData *) NULL); | |
50 | ~wxPostScriptPrintPreview(void); | |
51 | ||
52 | virtual bool Print(bool interactive); | |
53 | virtual void DetermineScaling(void); | |
c801d85f KB |
54 | }; |
55 | ||
56 | #endif | |
7bcb11d3 | 57 | // __PRINTPSH__ |