Contents Up Previous Next

wxPostScriptDC

This defines the wxWindows Encapsulated PostScript device context, which can write PostScript files on any platform. See wxDC for descriptions of the member functions.

Derived from

wxDC
wxObject

Include files

<wx/dcps.h>

wxPostScriptDC::wxPostScriptDC
wxPostScriptDC::GetStream


wxPostScriptDC::wxPostScriptDC

wxPostScriptDC(const wxString& output, bool interactive = TRUE,
wxWindow *parent)

Constructor. output is an optional file for printing to, and if interactive is TRUE a dialog box will be displayed for adjusting various parameters. parent is the parent of the printer dialog box.

Use the Ok member to test whether the constructor was successful in creating a useable device context.

See Printer settings for functions to set and get PostScript printing settings.


wxPostScriptDC::GetStream

ostream * GetStream()

Returns the stream currently being used to write PostScript output. Use this to insert any PostScript code that is outside the scope of wxPostScriptDC.