]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcps.h | |
e54c96f1 | 3 | // Purpose: interface of wxPostScriptDC |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxPostScriptDC | |
11 | @wxheader{dcps.h} | |
7c913512 | 12 | |
3a7fb603 BP |
13 | This defines the wxWidgets Encapsulated PostScript device context, which |
14 | can write PostScript files on any platform. See wxDC for descriptions of | |
15 | the member functions. | |
7c913512 | 16 | |
23324ae1 FM |
17 | @library{wxbase} |
18 | @category{dc} | |
19 | */ | |
20 | class wxPostScriptDC : public wxDC | |
21 | { | |
22 | public: | |
3a7fb603 BP |
23 | /** |
24 | Constructs a PostScript printer device context from a wxPrintData | |
25 | object. | |
26 | */ | |
27 | wxPostScriptDC(const wxPrintData& printData); | |
23324ae1 | 28 | /** |
4cc4bfaf FM |
29 | Constructor. @a output is an optional file for printing to, and if |
30 | @a interactive is @true a dialog box will be displayed for adjusting | |
31 | various parameters. @a parent is the parent of the printer dialog box. | |
3a7fb603 BP |
32 | |
33 | Use the wxDC::Ok() member to test whether the constructor was | |
34 | successful in creating a usable device context. | |
35 | ||
36 | See wxPrintData for various functions to set and get PostScript | |
37 | printing settings. | |
38 | ||
39 | @deprecated This constructor is deprecated. | |
23324ae1 | 40 | */ |
7c913512 | 41 | wxPostScriptDC(const wxString& output, |
4cc4bfaf FM |
42 | bool interactive = true, |
43 | wxWindow* parent); | |
23324ae1 FM |
44 | |
45 | /** | |
3a7fb603 BP |
46 | Return resolution used in PostScript output. |
47 | ||
48 | @see SetResolution() | |
23324ae1 FM |
49 | */ |
50 | static int GetResolution(); | |
51 | ||
52 | /** | |
53 | Set resolution (in pixels per inch) that will be used in PostScript | |
54 | output. Default is 720ppi. | |
55 | */ | |
56 | static void SetResolution(int ppi); | |
57 | }; | |
58 |