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