X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a47d3c193a8358f9be6a9249af28b6cb10eacff..027aa6fa77e5b4643d2296f63d6911beb496c5bc:/docs/latex/wx/tprint.tex diff --git a/docs/latex/wx/tprint.tex b/docs/latex/wx/tprint.tex index 6588e312c4..df5a703f3e 100644 --- a/docs/latex/wx/tprint.tex +++ b/docs/latex/wx/tprint.tex @@ -1,18 +1,22 @@ \section{Printing overview}\label{printingoverview} -Classes: \helpref{wxPrintout}{wxprintout}, \helpref{wxPrinter}{wxprinter},\rtfsp -\helpref{wxPrintPreview}{wxprintpreview}, \helpref{wxPrinterDC}{wxprinterdc},\rtfsp -\helpref{wxPrintDialog}{wxprintdialog}. +Classes: \helpref{wxPrintout}{wxprintout}, +\helpref{wxPrinter}{wxprinter}, +\helpref{wxPrintPreview}{wxprintpreview}, +\helpref{wxPrinterDC}{wxprinterdc}, +\helpref{wxPrintDialog}{wxprintdialog}, +\helpref{wxPrintData}{wxprintdata}, +\helpref{wxPrintDialogData}{wxprintdialogdata}, +\helpref{wxPageSetupDialog}{wxpagesetupdialog}, +\helpref{wxPageSetupDialogData}{wxpagesetupdialogdata} The printing framework relies on the application to provide classes whose member functions can respond to particular requests, such as `print this page' or `does this page exist in the document?'. -This method allows wxWindows to take over the housekeeping duties of +This method allows wxWidgets to take over the housekeeping duties of turning preview pages, calling the print dialog box, creating the printer device context, and so on: the application can concentrate on the rendering of the information onto a device context. -The printing framework is mainly a Windows feature; PostScript -support under non-Windows platforms is emerging but has not been rigorously tested. The \helpref{document/view framework}{docviewoverview} creates a default wxPrintout object for every view, calling wxView::OnDraw to achieve a @@ -26,7 +30,7 @@ previewing. The following code (from the printing sample) shows how easy it is to initiate printing, previewing and the print setup dialog, once the wxPrintout functionality has been defined. Notice the use of MyPrintout for both printing and previewing. All the preview user interface functionality -is taken care of by wxWindows. For details on how MyPrintout is defined, +is taken care of by wxWidgets. For details on how MyPrintout is defined, please look at the printout sample code. \begin{verbatim} @@ -34,7 +38,7 @@ please look at the printout sample code. { wxPrinter printer; MyPrintout printout("My printout"); - printer.Print(this, &printout, TRUE); + printer.Print(this, &printout, true); break; } case WXPRINT_PREVIEW: @@ -44,14 +48,14 @@ please look at the printout sample code. wxPreviewFrame *frame = new wxPreviewFrame(preview, this, "Demo Print Preview", 100, 100, 600, 650); frame->Centre(wxBOTH); frame->Initialize(); - frame->Show(TRUE); + frame->Show(true); break; } case WXPRINT_PRINT_SETUP: { wxPrintDialog printerDialog(this); - printerDialog.GetPrintData().SetSetupDialog(TRUE); - printerDialog.Show(TRUE); + printerDialog.GetPrintData().SetSetupDialog(true); + printerDialog.Show(true); break; } \end{verbatim}