]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: dcprint.h | |
3 | // Purpose: documentation for wxPrinterDC class | |
4 | // Author: wxWidgets team | |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxPrinterDC | |
11 | @wxheader{dcprint.h} | |
7c913512 | 12 | |
23324ae1 FM |
13 | A printer device context is specific to MSW and Mac, and allows access to any |
14 | printer with a Windows or Macintosh driver. See wxDC for further | |
15 | information on device contexts, and wxDC::GetSize for | |
16 | advice on achieving the correct scaling for the page. | |
7c913512 | 17 | |
23324ae1 FM |
18 | @library{wxcore} |
19 | @category{printing} | |
7c913512 | 20 | |
23324ae1 FM |
21 | @seealso |
22 | @ref overview_printingoverview "Printing framework overview", wxDC | |
23 | */ | |
24 | class wxPrinterDC : public wxDC | |
25 | { | |
26 | public: | |
27 | //@{ | |
28 | /** | |
29 | Constructor. With empty strings for the first three arguments, the default | |
30 | printer dialog is | |
4cc4bfaf FM |
31 | displayed. @a device indicates the type of printer and @e output |
32 | is an optional file for printing to. The @a driver parameter is | |
23324ae1 FM |
33 | currently unused. Use the @e Ok member to test whether the |
34 | constructor was successful in creating a usable device context. | |
23324ae1 FM |
35 | This constructor is deprecated and retained only for backward compatibility. |
36 | */ | |
37 | wxPrinterDC(const wxPrintData& printData); | |
7c913512 FM |
38 | wxPrinterDC(const wxString& driver, const wxString& device, |
39 | const wxString& output, | |
4cc4bfaf | 40 | const bool interactive = true, |
7c913512 | 41 | int orientation = wxPORTRAIT); |
23324ae1 FM |
42 | //@} |
43 | ||
44 | /** | |
45 | Return the rectangle in device coordinates that corresponds to the full paper | |
46 | area, including the nonprinting regions of the paper. The point (0,0) in device | |
47 | coordinates is the top left corner of the page rectangle, which is the printable | |
48 | area on MSW and Mac. The coordinates of the top left corner of the paper | |
49 | rectangle will therefore have small negative values, while the bottom right | |
50 | coordinates will be somewhat larger than the values returned by | |
51 | wxDC::GetSize. | |
52 | */ | |
53 | wxRect wxPrinterDC::GetPaperRect(); | |
54 | }; |