2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcps.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxPostScriptDC
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxPostScriptDC
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-04-19 04:12:58 -04:00
|
|
|
This defines the wxWidgets Encapsulated PostScript device context, which
|
|
|
|
can write PostScript files on any platform. See wxDC for descriptions of
|
|
|
|
the member functions.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxbase}
|
|
|
|
@category{dc}
|
|
|
|
*/
|
|
|
|
class wxPostScriptDC : public wxDC
|
|
|
|
{
|
|
|
|
public:
|
2008-04-19 04:12:58 -04:00
|
|
|
/**
|
2008-09-18 14:47:34 -04:00
|
|
|
Constructs a PostScript printer device context from a wxPrintData object.
|
2008-04-19 04:12:58 -04:00
|
|
|
*/
|
|
|
|
wxPostScriptDC(const wxPrintData& printData);
|
2008-09-18 14:47:34 -04:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-03-09 08:33:59 -04:00
|
|
|
Constructor. @a output is an optional file for printing to, and if
|
|
|
|
@a interactive is @true a dialog box will be displayed for adjusting
|
|
|
|
various parameters. @a parent is the parent of the printer dialog box.
|
2008-04-19 04:12:58 -04:00
|
|
|
|
|
|
|
Use the wxDC::Ok() member to test whether the constructor was
|
|
|
|
successful in creating a usable device context.
|
|
|
|
|
|
|
|
See wxPrintData for various functions to set and get PostScript
|
|
|
|
printing settings.
|
|
|
|
|
|
|
|
@deprecated This constructor is deprecated.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
wxPostScriptDC(const wxString& output,
|
2008-09-18 14:47:34 -04:00
|
|
|
bool interactive,
|
2008-03-09 08:33:59 -04:00
|
|
|
wxWindow* parent);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
2008-04-19 04:12:58 -04:00
|
|
|
Return resolution used in PostScript output.
|
|
|
|
|
|
|
|
@see SetResolution()
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
static int GetResolution();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Set resolution (in pixels per inch) that will be used in PostScript
|
|
|
|
output. Default is 720ppi.
|
|
|
|
*/
|
|
|
|
static void SetResolution(int ppi);
|
|
|
|
};
|
|
|
|
|