X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/11e3af6e7eed3c4717608ba2095a688b1fea60e0..1b7751aaa9a86d76a850b9267bc0c201e3cea30f:/interface/wx/printdlg.h diff --git a/interface/wx/printdlg.h b/interface/wx/printdlg.h index bdd743179d..630e03a0af 100644 --- a/interface/wx/printdlg.h +++ b/interface/wx/printdlg.h @@ -3,7 +3,7 @@ // Purpose: interface of wxPrintDialog // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -18,7 +18,7 @@ @see @ref overview_printing, @ref overview_cmndlg_print */ -class wxPrintDialog : public wxDialog +class wxPrintDialog : public wxObject { public: /** @@ -30,6 +30,7 @@ public: @see wxPrintDialogData */ wxPrintDialog(wxWindow* parent, wxPrintDialogData* data = NULL); + wxPrintDialog(wxWindow *parent, wxPrintData* data); /** Destructor. @@ -54,6 +55,12 @@ public: */ virtual wxPrintDialogData& GetPrintDialogData(); + /** + Returns the @ref overview_printing_printdata "print data" associated + with the print dialog. + */ + virtual wxPrintData& GetPrintData(); + /** Shows the dialog, returning @c wxID_OK if the user pressed OK, and @c wxID_CANCEL otherwise. @@ -69,20 +76,14 @@ public: /** @class wxPageSetupDialog - This class represents the page setup common dialog. In MSW, the page setup - dialog is standard from Windows 95 on, replacing the print setup dialog (which - is retained in Windows and wxWidgets for backward compatibility). - On Windows 95 and NT 4.0 and above, the page setup dialog is native to the windowing - system, otherwise it is emulated. + This class represents the page setup common dialog. - The page setup dialog contains controls for paper size (A4, A5 etc.), - orientation (landscape or portrait), and controls for setting left, top, right - and bottom margin sizes in millimetres. + The page setup dialog contains controls for paper size (letter, A4, A5 etc.), + orientation (landscape or portrait), and, only under Windows currently, + controls for setting left, top, right and bottom margin sizes in millimetres. - On Macintosh, the native page setup dialog is used, which lets you select paper - size and orientation but it does not let you change the page margins. - - On other platforms, a generic dialog is used. + The exact appearance of this dialog varies among the platforms as a native + dialog is used when available (currently the case for all major platforms). When the dialog has been closed, you need to query the wxPageSetupDialogData object associated with the dialog. @@ -93,10 +94,9 @@ public: @library{wxcore} @category{printing} - @see @ref overview_printing "Printing framework overview", - wxPrintDialog, wxPageSetupDialogData + @see @ref overview_printing, wxPrintDialog, wxPageSetupDialogData */ -class wxPageSetupDialog : public wxDialog +class wxPageSetupDialog : public wxObject { public: /** @@ -121,6 +121,6 @@ public: Shows the dialog, returning @c wxID_OK if the user pressed OK, and @c wxID_CANCEL otherwise. */ - virtual int ShowModal(); + int ShowModal(); };