]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcps.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPostScriptDC
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This defines the wxWidgets Encapsulated PostScript device context,
14 which can write PostScript files on any platform. See wxDC for
15 descriptions of the member functions.
20 class wxPostScriptDC
: public wxDC
25 Constructor. @a output is an optional file for printing to, and if
26 @a interactive is @true a dialog box will be displayed for adjusting
27 various parameters. @a parent is the parent of the printer dialog box.
28 Use the @e Ok member to test whether the constructor was successful
29 in creating a usable device context.
30 See @ref overview_printersettings "Printer settings" for functions to set and
31 get PostScript printing settings.
32 This constructor and the global printer settings are now deprecated;
33 use the wxPrintData constructor instead.
35 wxPostScriptDC(const wxPrintData
& printData
);
36 wxPostScriptDC(const wxString
& output
,
37 bool interactive
= true,
42 Return resolution used in PostScript output. See
45 static int GetResolution();
48 Set resolution (in pixels per inch) that will be used in PostScript
49 output. Default is 720ppi.
51 static void SetResolution(int ppi
);