]> git.saurik.com Git - wxWidgets.git/blame - interface/dcprint.h
Minor doc corrections for [q-r] in ticket #9581 (most of the patch was applied alread...
[wxWidgets.git] / interface / dcprint.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcprint.h
e54c96f1 3// Purpose: interface of wxPrinterDC
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxPrinterDC
11 @wxheader{dcprint.h}
7c913512 12
3a7fb603
BP
13 A printer device context is specific to MSW and Mac, and allows access to
14 any printer with a Windows or Macintosh driver. See wxDC for further
15 information on device contexts, and wxDC::GetSize() for advice on achieving
16 the correct scaling for the page.
7c913512 17
23324ae1
FM
18 @library{wxcore}
19 @category{printing}
7c913512 20
3a7fb603 21 @see @ref overview_printing, wxDC
23324ae1
FM
22*/
23class wxPrinterDC : public wxDC
24{
25public:
23324ae1 26 /**
3a7fb603
BP
27 Constructor. Pass a wxPrintData object with information necessary for
28 setting up a suitable printer device context. This is the recommended
29 way to construct a wxPrinterDC. Make sure you specify a reference to a
30 wxPrintData object, not a pointer - you may not even get a warning if
31 you pass a pointer instead.
23324ae1
FM
32 */
33 wxPrinterDC(const wxPrintData& printData);
3a7fb603
BP
34 /**
35 Constructor. With empty strings for the first three arguments, the
36 default printer dialog is displayed. @a device indicates the type of
37 printer and @a output is an optional file for printing to. The
38 @a driver parameter is currently unused. Use the wxDC::Ok() member to
39 test whether the constructor was successful in creating a usable device
40 context.
41
42 @deprecated This constructor is deprecated and retained only for
43 backward compatibility.
44 */
7c913512 45 wxPrinterDC(const wxString& driver, const wxString& device,
3a7fb603 46 const wxString& output, const bool interactive = true,
7c913512 47 int orientation = wxPORTRAIT);
23324ae1
FM
48
49 /**
3a7fb603
BP
50 Return the rectangle in device coordinates that corresponds to the full
51 paper area, including the nonprinting regions of the paper. The point
52 (0,0) in device coordinates is the top left corner of the page
53 rectangle, which is the printable area on MSW and Mac. The coordinates
54 of the top left corner of the paper rectangle will therefore have small
55 negative values, while the bottom right coordinates will be somewhat
56 larger than the values returned by wxDC::GetSize().
23324ae1
FM
57 */
58 wxRect wxPrinterDC::GetPaperRect();
59};
e54c96f1 60