]>
git.saurik.com Git - wxWidgets.git/blob - interface/printdlg.h
90c9c83b2422b40ea812c7a60dcc9e8b9ccf08aa
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxPrintDialog class
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.
21 @ref overview_printingoverview "Printing framework overview", @ref
22 overview_wxprintdialogoverview "wxPrintDialog Overview"
24 class wxPrintDialog
: public wxDialog
28 Constructor. Pass a parent window, and optionally a pointer to a block of print
29 data, which will be copied to the print dialog's print data.
33 wxPrintDialog(wxWindow
* parent
, wxPrintDialogData
* data
= @NULL
);
36 Destructor. If GetPrintDC() has @e not been called,
37 the device context obtained by the dialog (if any) will be deleted.
42 Returns the device context created by the print dialog, if any.
43 When this function has been called, the ownership of the device context
44 is transferred to the application, so it must then be deleted
50 Returns the @ref overview_wxprintdialogdata "print dialog data" associated with
53 wxPrintDialogData
GetPrintDialogData();
56 Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL
57 otherwise. After this function is called, a device context may
58 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
94 @ref overview_printingoverview "Printing framework overview", wxPrintDialog,
97 class wxPageSetupDialog
: public wxDialog
101 Constructor. Pass a parent window, and optionally a pointer to a block of page
103 data, which will be copied to the print dialog's internal data.
105 wxPageSetupDialog(wxWindow
* parent
,
106 wxPageSetupDialogData
* data
= @NULL
);
111 ~wxPageSetupDialog();
114 Returns the @ref overview_wxpagesetupdialogdata "page setup data" associated
117 wxPageSetupDialogData
GetPageSetupData();
120 Shows the dialog, returning wxID_OK if the user pressed OK, and wxID_CANCEL