]>
git.saurik.com Git - wxWidgets.git/blob - interface/printdlg.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPrintDialog
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This class represents the print and print setup common dialogs.
14 You may obtain a wxPrinterDC device context from
15 a successfully dismissed print dialog.
20 @see @ref overview_printingoverview "Printing framework overview", @ref
21 overview_wxprintdialogoverview "wxPrintDialog Overview"
23 class wxPrintDialog
: public wxDialog
27 Constructor. Pass a parent window, and optionally a pointer to a block of print
28 data, which will be copied to the print dialog's print data.
30 @see wxPrintDialogData
32 wxPrintDialog(wxWindow
* parent
, wxPrintDialogData
* data
= NULL
);
35 Destructor. If GetPrintDC() has @e not been called,
36 the device context obtained by the dialog (if any) will be deleted.
41 Returns the device context created by the print dialog, if any.
42 When this function has been called, the ownership of the device context
43 is transferred to the application, so it must then be deleted
49 Returns the @ref overview_wxprintdialogdata "print dialog data" associated with
52 wxPrintDialogData
GetPrintDialogData();
55 Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL
56 otherwise. After this function is called, a device context may
57 be retrievable using GetPrintDC().
65 @class wxPageSetupDialog
68 This class represents the page setup common dialog. In MSW, the page setup
69 dialog is standard from Windows 95 on, replacing the print setup dialog (which
70 is retained in Windows and wxWidgets for backward compatibility). On Windows 95
71 and NT 4.0 and above, the page setup dialog is native to the windowing system,
72 otherwise it is emulated.
74 The page setup dialog contains controls for paper size (A4, A5 etc.),
75 orientation (landscape or portrait), and controls for setting left, top, right
76 and bottom margin sizes in millimetres.
78 On Macintosh, the native page setup dialog is used, which lets you select paper
79 size and orientation but it does not let you change the page margins.
81 On other platforms, a generic dialog is used.
83 When the dialog has been closed, you need to query the
84 wxPageSetupDialogData object associated with
87 Note that the OK and Cancel buttons do not destroy the dialog; this must be done
93 @see @ref overview_printingoverview "Printing framework overview",
94 wxPrintDialog, wxPageSetupDialogData
96 class wxPageSetupDialog
: public wxDialog
100 Constructor. Pass a parent window, and optionally a pointer to a block of page
102 data, which will be copied to the print dialog's internal data.
104 wxPageSetupDialog(wxWindow
* parent
,
105 wxPageSetupDialogData
* data
= NULL
);
110 ~wxPageSetupDialog();
113 Returns the @ref overview_wxpagesetupdialogdata "page setup data" associated
116 wxPageSetupDialogData
GetPageSetupData();
119 Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL