]> git.saurik.com Git - wxWidgets.git/blame - interface/dcps.h
add default parameters for width and style parameters of FindOrCreatePen() for consis...
[wxWidgets.git] / interface / dcps.h
CommitLineData
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
23324ae1
FM
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.
7c913512 16
23324ae1
FM
17 @library{wxbase}
18 @category{dc}
19*/
20class wxPostScriptDC : public wxDC
21{
22public:
23 //@{
24 /**
4cc4bfaf
FM
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.
23324ae1
FM
28 Use the @e Ok member to test whether the constructor was successful
29 in creating a usable device context.
23324ae1
FM
30 See @ref overview_printersettings "Printer settings" for functions to set and
31 get PostScript printing settings.
23324ae1
FM
32 This constructor and the global printer settings are now deprecated;
33 use the wxPrintData constructor instead.
34 */
35 wxPostScriptDC(const wxPrintData& printData);
7c913512 36 wxPostScriptDC(const wxString& output,
4cc4bfaf
FM
37 bool interactive = true,
38 wxWindow* parent);
23324ae1
FM
39 //@}
40
41 /**
7c913512 42 Return resolution used in PostScript output. See
23324ae1
FM
43 SetResolution().
44 */
45 static int GetResolution();
46
47 /**
48 Set resolution (in pixels per inch) that will be used in PostScript
49 output. Default is 720ppi.
50 */
51 static void SetResolution(int ppi);
52};
53