]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/postscpt.tex
Some documentation enhancements for wxRichTextCtrl
[wxWidgets.git] / docs / latex / wx / postscpt.tex
... / ...
CommitLineData
1\section{\class{wxPostScriptDC}}\label{wxpostscriptdc}
2
3This defines the wxWidgets Encapsulated PostScript device context,
4which can write PostScript files on any platform. See \helpref{wxDC}{wxdc} for
5descriptions of the member functions.
6
7\wxheading{Derived from}
8
9\helpref{wxDC}{wxdc}\\
10\helpref{wxObject}{wxobject}
11
12\wxheading{Include files}
13
14<wx/dcps.h>
15
16\latexignore{\rtfignore{\wxheading{Members}}}
17
18\membersection{wxPostScriptDC::wxPostScriptDC}\label{wxpostscriptdcctor}
19
20\func{}{wxPostScriptDC}{\param{const wxPrintData\&}{ printData}}
21
22Constructs a PostScript printer device context from a \helpref{wxPrintData}{wxprintdata} object.
23
24\func{}{wxPostScriptDC}{\param{const wxString\& }{output}, \param{bool }{interactive = true},\\
25 \param{wxWindow *}{parent}}
26
27Constructor. {\it output} is an optional file for printing to, and if
28\rtfsp{\it interactive} is true a dialog box will be displayed for adjusting
29various parameters. {\it parent} is the parent of the printer dialog box.
30
31Use the {\it Ok} member to test whether the constructor was successful
32in creating a usable device context.
33
34See \helpref{Printer settings}{printersettings} for functions to set and
35get PostScript printing settings.
36
37This constructor and the global printer settings are now deprecated;
38use the wxPrintData constructor instead.
39
40
41\membersection{wxPostScriptDC::SetResolution}\label{wxpostscriptdcsetresolution}
42
43\func{static void}{SetResolution}{\param{int}{ ppi}}
44
45Set resolution (in pixels per inch) that will be used in PostScript
46output. Default is 720ppi.
47
48\membersection{wxPostScriptDC::GetResolution}\label{wxpostscriptdcgetresolution}
49
50\func{static int}{GetResolution}{\void}
51
52Return resolution used in PostScript output. See
53\helpref{SetResolution}{wxpostscriptdcsetresolution}.
54