]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/print.tex
fixes
[wxWidgets.git] / docs / latex / wx / print.tex
CommitLineData
a660d684
KB
1\section{\class{wxPrintData}}\label{wxprintdata}
2
3This class holds a variety of information related to print dialogs.
4
5\wxheading{Derived from}
6
7\helpref{wxObject}{wxobject}
8
9\wxheading{See also}
10
11\helpref{wxPrintDialog}{wxprintdialog}, \helpref{wxPrintDialog Overview}{wxprintdialogoverview}
12
13\latexignore{\rtfignore{\wxheading{Members}}}
14
15\membersection{wxPrintData::wxPrintData}
16
17\func{}{wxPrintData}{\void}
18
19Constructor.
20
21\membersection{wxPrintData::\destruct{wxPrintData}}
22
23\func{}{\destruct{wxPrintData}}{\void}
24
25Destructor.
26
27\membersection{wxPrintData::EnableHelp}\label{wxprintdataenablehelp}
28
29\func{void}{EnableHelp}{\param{bool }{flag}}
30
31Enables or disables the `Help' button.
32
33\membersection{wxPrintData::EnablePageNumbers}\label{wxprintdataenablepagenumbers}
34
35\func{void}{EnablePageNumbers}{\param{bool }{flag}}
36
37Enables or disables the `Page numbers' controls.
38
39\membersection{wxPrintData::EnablePrintToFile}\label{wxprintdataenableprinttofile}
40
41\func{void}{EnablePrintToFile}{\param{bool }{flag}}
42
43Enables or disables the `Print to file' checkbox.
44
45\membersection{wxPrintData::EnableSelection}\label{wxprintdataenableselection}
46
47\func{void}{EnableSelection}{\param{bool }{flag}}
48
49Enables or disables the `Selection' radio button.
50
51\membersection{wxPrintData::GetAllPages}\label{wxprintdatagetallpages}
52
53\func{bool}{GetAllPages}{\void}
54
55Returns TRUE if the user requested that all pages be printed.
56
57\membersection{wxPrintData::GetCollate}\label{wxprintdatagetcollate}
58
59\func{bool}{GetCollate}{\void}
60
61Returns TRUE if the user requested that the document(s) be collated.
62
63\membersection{wxPrintData::GetFromPage}\label{wxprintdatagetfrompage}
64
65\func{int}{GetFromPage}{\void}
66
67Returns the {\it from} page number, as entered by the user.
68
69\membersection{wxPrintData::GetMaxPage}\label{wxprintdatagetmaxpage}
70
71\func{int}{GetMaxPage}{\void}
72
73Returns the {\it maximum} page number.
74
75\membersection{wxPrintData::GetMinPage}\label{wxprintdatagetminpage}
76
77\func{int}{GetMinPage}{\void}
78
79Returns the {\it minimum} page number.
80
81\membersection{wxPrintData::GetNoCopies}\label{wxprintdatagetnocopies}
82
83\func{int}{GetNoCopies}{\void}
84
85Returns the number of copies requested by the user.
86
87\membersection{wxPrintData::GetOrientation}\label{wxprintdatagetorientation}
88
89\func{int}{GetOrientation}{\void}
90
91Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
92
93\membersection{wxPrintData::GetToPage}\label{wxprintdatagettopage}
94
95\func{int}{GetToPage}{\void}
96
97Returns the {\it to} page number, as entered by the user.
98
99\membersection{wxPrintData::SetCollate}\label{wxprintdatasetcollate}
100
101\func{void}{SetCollate}{\param{bool }{flag}}
102
103Sets the 'Collate' checkbox to TRUE or FALSE.
104
105\membersection{wxPrintData::SetFromPage}\label{wxprintdatasetfrompage}
106
107\func{void}{SetFromPage}{\param{int }{page}}
108
109Sets the {\it from} page number.
110
111\membersection{wxPrintData::SetMaxPage}\label{wxprintdatasetmaxpage}
112
113\func{void}{SetMaxPage}{\param{int }{page}}
114
115Sets the {\it maximum} page number.
116
117\membersection{wxPrintData::SetMinPage}\label{wxprintdatasetminpage}
118
119\func{void}{SetMinPage}{\param{int }{page}}
120
121Sets the {\it minimum} page number.
122
123\membersection{wxPrintData::SetOrientation}\label{wxprintdatasetorientation}
124
125\func{void}{SetOrientation}{\param{int }{orientation}}
126
127Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
128
129\membersection{wxPrintData::SetNoCopies}\label{wxprintdatasetnocopies}
130
131\func{void}{SetNoCopies}{\param{int }{n}}
132
133Sets the default number of copies to be printed out.
134
135\membersection{wxPrintData::SetPrintToFile}\label{wxprintdatasetprinttofile}
136
137\func{void}{SetPrintToFile}{\param{bool }{flag}}
138
139Sets the 'Print to file' checkbox to TRUE or FALSE.
140
141\membersection{wxPrintData::SetSetupDialog}\label{wxprintdatasetsetupdialog}
142
143\func{void}{SetSetupDialog}{\param{bool }{flag}}
144
145Determines whether the dialog to be shown will be the Print dialog
146(pass FALSE) or Print Setup dialog (pass TRUE).
147
148Note that the setup dialog is obsolete from
149Windows 95, though retained for backward compatibility.
150
151\membersection{wxPrintData::SetToPage}\label{wxprintdatasettopage}
152
153\func{void}{SetToPage}{\param{int }{page}}
154
155Sets the {\it to} page number.
156
157\section{\class{wxPrintDialog}}\label{wxprintdialog}
158
159This class represents the print and print setup common dialogs.
160You may obtain a \helpref{wxPrinterDC}{wxprinterdc} device context from
161a successfully dismissed print dialog.
162
163\wxheading{Derived from}
164
165\helpref{wxDialog}{wxdialog}\\
166\helpref{wxWindow}{wxwindow}\\
167\helpref{wxEvtHandler}{wxevthandler}\\
168\helpref{wxObject}{wxobject}
169
170\wxheading{See also}
171
172\helpref{wxPrintDialog Overview}{wxprintdialogoverview}
173
174\latexignore{\rtfignore{\wxheading{Members}}}
175
176\membersection{wxPrintDialog::wxPrintDialog}
177
178\func{}{wxPrintDialog}{\param{wxWindow* }{parent}, \param{wxPrintData* }{data = NULL}}
179
180Constructor. Pass a parent window, and optionally a pointer to a block of print
181data, which will be copied to the print dialog's print data.
182
183\wxheading{See also}
184
185\helpref{wxPrintData}{wxprintdata}
186
187\membersection{wxPrintDialog::\destruct{wxPrintDialog}}
188
189\func{}{\destruct{wxPrintDialog}}{\void}
190
191Destructor. If wxPrintDialog::GetPrintDC has {\it not} been called,
192the device context obtained by the dialog (if any) will be deleted.
193
194\membersection{wxPrintDialog::GetPrintData}\label{wxprintdialoggetprintdata}
195
196\func{wxPrintData\&}{GetPrintData}{\void}
197
198Returns the \helpref{print data}{wxprintdata} associated with the print dialog.
199
200\membersection{wxPrintDialog::GetPrintDC}\label{wxprintdialoggetprintdc}
201
202\func{wxDC* }{GetPrintDC}{\void}
203
204Returns the device context created by the print dialog, if any.
205When this function has been called, the ownership of the device context
206is transferred to the application, so it must then be deleted
207explicitly.
208
209\membersection{wxPrintDialog::ShowModal}\label{wxprintdialogshowmodal}
210
211\func{int}{ShowModal}{\void}
212
213Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
214otherwise. After this function is called, a device context may
215be retrievable using \helpref{wxPrintDialog::GetPrintDC}{wxprintdialoggetprintdc}.
216
217\section{\class{wxPrinter}}\label{wxprinter}
218
219This class represents the Windows or PostScript printer, and is the vehicle through
220which printing may be launched by an application. Printing can also
221be achieved through using of lower functions and classes, but
222this and associated classes provide a more convenient and general
223method of printing.
224
225\wxheading{Derived from}
226
227\helpref{wxObject}{wxobject}
228
229\wxheading{See also}
230
231\helpref{Printing framework overview}{printingoverview}, \helpref{wxPrinterDC}{wxprinterdc}, \helpref{wxPrintDialog}{wxprintdialog},\rtfsp
232\helpref{wxPrintout}{wxprintout}, \helpref{wxPrintPreview}{wxprintpreview}.
233
234\latexignore{\rtfignore{\wxheading{Members}}}
235
236\membersection{wxPrinter::wxPrinter}
237
238\func{}{wxPrinter}{\param{wxPrintData* }{data = NULL}}
239
240Constructor. Pass an optional pointer to a block of print
241data, which will be copied to the printer object's print data.
242
243\wxheading{See also}
244
245\helpref{wxPrintData}{wxprintdata}
246
247\membersection{wxPrinter::\destruct{wxPrinter}}
248
249\func{}{\destruct{wxPrinter}}{\void}
250
251Destructor.
252
253\membersection{wxPrinter::Abort}\label{wxprinterabort}
254
255\func{bool}{Abort}{\void}
256
257Returns TRUE if the user has aborted the print job.
258
259\membersection{wxPrinter::CreateAbortWindow}\label{wxprintercreateabortwindow}
260
261\func{void}{CreateAbortWindow}{\param{wxWindow* }{parent}, \param{wxPrintout* }{printout}}
262
263Creates the default printing abort window, with a cancel button.
264
265\membersection{wxPrinter::GetPrintData}\label{wxprintergetprintdata}
266
267\func{wxPrintData\&}{GetPrintData}{\void}
268
269Returns the \helpref{print data}{wxprintdata} associated with the printer object.
270
271\membersection{wxPrinter::Print}\label{wxprinterprint}
272
273\func{bool}{Print}{\param{wxWindow *}{parent}, \param{wxPrintout *}{printout}, \param{bool }{prompt=TRUE}}
274
275Starts the printing process. Provide a parent window, a user-defined wxPrintout object which controls
276the printing of a document, and whether the print dialog should be invoked first.
277
278Print could return FALSE if there was a problem initializing the printer device context
279(current printer not set, for example).
280
281\membersection{wxPrinter::PrintDialog}\label{wxprinterprintdialog}
282
283\func{bool}{PrintDialog}{\param{wxWindow *}{parent}}
284
285Invokes the print dialog.
286
287\membersection{wxPrinter::ReportError}\label{wxprinterreporterror}
288
289\func{void}{ReportError}{\param{wxWindow *}{parent}, \param{wxPrintout *}{printout}, \param{const wxString\& }{message}}
290
291Default error-reporting function.
292
293\membersection{wxPrinter::Setup}\label{wxprintersetup}
294
295\func{void}{Setup}{\param{wxWindow *}{parent}}
296
297Invokes the print setup dialog. Note that the setup dialog is obsolete from
298Windows 95, though retained for backward compatibility.
299
300\section{\class{wxPrinterDC}}\label{wxprinterdc}
301
302A printer device context is specific to Windows, and allows access to
303any printer with a Windows driver. See \helpref{wxDC}{wxdc} for further information
304on device contexts, and \helpref{wxDC::GetSize}{wxdcgetsize} for advice on
305achieving the correct scaling for the page.
306
307\wxheading{Derived from}
308
309\helpref{wxDC}{wxdc}\\
310\helpref{wxObject}{wxdc}
311
312\wxheading{See also}
313
314\helpref{wxDC}{wxdc}, \helpref{Printing framework overview}{printingoverview}
315
316\latexignore{\rtfignore{\wxheading{Members}}}
317
318\membersection{wxPrinterDC::wxPrinterDC}
319
320\func{}{wxPrinterDC}{\param{const wxString\& }{driver}, \param{const wxString\& }{device}, \param{const wxString\& }{output},
eaaa6a06 321 \param{const bool }{interactive = TRUE}, \param{int }{orientation = wxPORTRAIT}}
a660d684
KB
322
323Constructor. With empty strings for the first three arguments, the default printer dialog is
324displayed. {\it device} indicates the type of printer and {\it output}
325is an optional file for printing to. The {\it driver} parameter is
326currently unused. Use the {\it Ok} member to test whether the
327constructor was successful in creating a useable device context.
328
329\section{\class{wxPrintout}}\label{wxprintout}
330
331This class encapsulates the functionality of printing out an
332application document. A new class must be derived and members
333overridden to respond to calls such as OnPrintPage and HasPage.
334Instances of this class are passed to wxPrinter::Print or a
335wxPrintPreview object to initiate printing or previewing.
336
337\wxheading{Derived from}
338
339\helpref{wxObject}{wxobject}
340
341\wxheading{See also}
342
343\helpref{Printing framework overview}{printingoverview}, \helpref{wxPrinterDC}{wxprinterdc}, \helpref{wxPrintDialog}{wxprintdialog},\rtfsp
344\helpref{wxPrinter}{wxprinter}, \helpref{wxPrintPreview}{wxprintpreview}
345
346\latexignore{\rtfignore{\wxheading{Members}}}
347
348\membersection{wxPrintout::wxPrintout}
349
350\func{}{wxPrintout}{\param{const wxString\& }{title = "Printout"}}
351
352Constructor. Pass an optional title argument (currently unused).
353
354\membersection{wxPrintout::\destruct{wxPrintout}}
355
356\func{}{\destruct{wxPrintout}}{\void}
357
358Destructor.
359
360\membersection{wxPrintout::GetDC}\label{wxprintoutgetdc}
361
362\func{wxDC *}{GetDC}{\void}
363
364Returns the device context associated with the printout (given to the printout at start of
365printing or previewing). This will be a wxPrinterDC if printing under Windows,
366a wxPostScriptDC if printing on other platforms, and a wxMemoryDC if previewing.
367
368\membersection{wxPrintout::GetPageInfo}\label{wxprintoutgetpageinfo}
369
370\func{void}{GetPageInfo}{\param{int *}{minPage}, \param{int *}{maxPage}, \param{int *}{pageFrom}, \param{int *}{pageTo}}
371
372Called by the framework to obtain information from the application about minimum and maximum page values that
373the user can select, and the required page range to be printed. By default this
374returns 1, 32000 for the page minimum and maximum values, and 1, 1 for the required page range.
375
376If {\it minPage} is zero, the page number controls in the print dialog will be disabled.
377
378\membersection{wxPrintout::GetPageSizeMM}\label{wxprintoutgetpagesizemm}
379
380\func{void}{GetPageSizeMM}{\param{int *}{w}, \param{int *}{h}}
381
382Returns the size of the printer page in millimetres.
383
384\membersection{wxPrintout::GetPageSizePixels}\label{wxprintoutgetpagesizepixels}
385
386\func{void}{GetPageSizePixels}{\param{int *}{w}, \param{int *}{h}}
387
388Returns the size of the printer page in pixels. These may not be the
389same as the values returned from \helpref{wxDC::GetSize}{wxdcgetsize} if
390the printout is being used for previewing, since in this case, a
391memory device context is used, using a bitmap size reflecting the current
392preview zoom. The application must take this discrepancy into account if
393previewing is to be supported.
394
395\membersection{wxPrintout::GetPPIPrinter}\label{wxprintoutgetppiprinter}
396
397\func{void}{GetPPIPrinter}{\param{int *}{w}, \param{int *}{h}}
398
399Returns the number of pixels per logical inch of the printer device context.
400Dividing the printer PPI by the screen PPI can give a suitable scaling
401factor for drawing text onto the printer. Remember to multiply
402this by a scaling factor to take the preview DC size into account.
403
404\membersection{wxPrintout::GetPPIScreen}\label{wxprintoutgetppiscreen}
405
406\func{void}{GetPPIScreen}{\param{int *}{w}, \param{int *}{h}}
407
408Returns the number of pixels per logical inch of the screen device context.
409Dividing the printer PPI by the screen PPI can give a suitable scaling
410factor for drawing text onto the printer. Remember to multiply
411this by a scaling factor to take the preview DC size into account.
412
413\membersection{wxPrintout::HasPage}\label{wxprintouthaspage}
414
415\func{bool}{HasPage}{\param{int}{ pageNum}}
416
417Should be overriden to return TRUE if the document has this page, or FALSE
418if not. Returning FALSE signifies the end of the document. By default,
419HasPage behaves as if the document has only one page.
420
421\membersection{wxPrintout::IsPreview}\label{wxprintoutispreview}
422
423\func{bool}{IsPreview}{\void}
424
425Returns TRUE if the printout is currently being used for previewing.
426
427\membersection{wxPrintout::OnBeginDocument}\label{wxprintoutonbegindocument}
428
429\func{bool}{OnBeginDocument}{\param{int}{ startPage}, \param{int}{ endPage}}
430
431Called by the framework at the start of document printing. Return FALSE from
432this function cancels the print job. OnBeginDocument is called once for every
433copy printed.
434
435The base wxPrintout::OnBeginDocument {\it must} be called (and the return value
436checked) from within the overriden function, since it calls wxDC::StartDoc.
437
438\membersection{wxPrintout::OnEndDocument}\label{wxprintoutonenddocument}
439
440\func{void}{OnEndDocument}{\void}
441
442Called by the framework at the end of document printing. OnEndDocument
443is called once for every copy printed.
444
445The base wxPrintout::OnEndDocument {\it must} be called
446from within the overriden function, since it calls wxDC::EndDoc.
447
448\membersection{wxPrintout::OnBeginPrinting}\label{wxprintoutonbeginprinting}
449
450\func{void}{OnBeginPrinting}{\void}
451
452Called by the framework at the start of printing. OnBeginPrinting is called once for every
453print job (regardless of how many copies are being printed).
454
455\membersection{wxPrintout::OnEndPrinting}\label{wxprintoutonendprinting}
456
457\func{void}{OnEndPrinting}{\void}
458
459Called by the framework at the end of printing. OnEndPrinting
460is called once for every print job (regardless of how many copies are being printed).
461
462\membersection{wxPrintout::OnPreparePrinting}\label{wxprintoutonprepareprinting}
463
464\func{void}{OnPreparePrinting}{\void}
465
466Called once by the framework before any other demands are made of the
467wxPrintout object. This gives the object an opportunity to calculate the
468number of pages in the document, for example.
469
470\membersection{wxPrintout::OnPrintPage}\label{wxprintoutonprintpage}
471
472\func{bool}{OnPrintPage}{\param{int}{ pageNum}}
473
474Called by the framework when a page should be printed. Returning FALSE cancels
475the print job. The application can use wxPrintout::GetDC to obtain a device
476context to draw on.
477
478\section{\class{wxPrintPreview}}\label{wxprintpreview}
479
480\overview{Printing framework overview}{printingoverview}
481
482Objects of this class manage the print preview process. The object is passed
483a wxPrintout object, and the wxPrintPreview object itself is passed to
484a wxPreviewFrame object. Previewing is started by initializing and showing
485the preview frame. Unlike wxPrinter::Print, flow of control returns to the application
486immediately after the frame is shown.
487
488\wxheading{Derived from}
489
490\helpref{wxObject}{wxobject}
491
492\wxheading{See also}
493
494\overview{Printing framework overview}{printingoverview}, \helpref{wxPrinterDC}{wxprinterdc}, \helpref{wxPrintDialog}{wxprintdialog},\rtfsp
495\helpref{wxPrintout}{wxprintout}, \helpref{wxPrinter}{wxprinter},\rtfsp
496\helpref{wxPreviewCanvas}{wxpreviewcanvas}, \helpref{wxPreviewControlBar}{wxpreviewcontrolbar},\rtfsp
497\helpref{wxPreviewFrame}{wxpreviewframe}.
498
499\latexignore{\rtfignore{\wxheading{Members}}}
500
501\membersection{wxPrintPreview::wxPrintPreview}
502
503\func{}{wxPrintPreview}{\param{wxPrintout* }{printout}, \param{wxPrintout* }{printoutForPrinting},
504\param{wxPrintData* }{data=NULL}}
505
506Constructor. Pass a printout object, an optional printout object to be
507used for actual printing, and the address of an optional
508block of printer data, which will be copied to the print preview object's
509print data.
510
511If {\it printoutForPrinting} is non-NULL, a {\bf Print...} button will be placed on the
512preview frame so that the user can print directly from the preview interface.
513
514Do not explicitly delete the printout objects once this destructor has been
515called, since they will be deleted in the wxPrintPreview constructor.
516The same does not apply to the {\it data} argument.
517
518Test the Ok member to check whether the wxPrintPreview object was created correctly.
519Ok could return FALSE if there was a problem initializing the printer device context
520(current printer not set, for example).
521
522\membersection{wxPrintPreview::\destruct{wxPrintPreview}}
523
524\func{}{\destruct{wxPrinter}}{\void}
525
526Destructor. Deletes both print preview objects, so do not destroy these objects
527in your application.
528
529\membersection{wxPrintPreview::DrawBlankPage}\label{wxprintpreviewdrawblankpage}
530
531\func{bool}{DrawBlankPage}{\param{wxWindow* }{window}}
532
533Draws a representation of the blank page into the preview window. Used
534internally.
535
536\membersection{wxPrintPreview::GetCanvas}\label{wxprintpreviewgetcanvas}
537
538\func{wxWindow* }{GetCanvas}{\void}
539
540Gets the preview window used for displaying the print preview image.
541
542\membersection{wxPrintPreview::GetCurrentPage}\label{wxprintpreviewgetcurrentpage}
543
544\func{int}{GetCurrentPage}{\void}
545
546Gets the page currently being previewed.
547
548\membersection{wxPrintPreview::GetFrame}\label{wxprintpreviewgetframe}
549
550\func{wxFrame *}{GetFrame}{\void}
551
552Gets the frame used for displaying the print preview canvas
553and control bar.
554
555\membersection{wxPrintPreview::GetMaxPage}\label{wxprintpreviewgetmaxpage}
556
557\func{int}{GetMaxPage}{\void}
558
559Returns the maximum page number.
560
561\membersection{wxPrintPreview::GetMinPage}\label{wxprintpreviewgetminpage}
562
563\func{int}{GetMinPage}{\void}
564
565Returns the minimum page number.
566
567\membersection{wxPrintPreview::GetPrintData}\label{wxprintpreviewgetprintdata}
568
569\func{wxPrintData\&}{GetPrintData}{\void}
570
571Returns a reference to the internal print data.
572
573\membersection{wxPrintPreview::GetPrintout}\label{wxprintpreviewgetprintout}
574
575\func{wxPrintout *}{GetPrintout}{\void}
576
577Gets the preview printout object associated with the wxPrintPreview object.
578
579\membersection{wxPrintPreview::GetPrintoutForPrinting}\label{wxprintpreviewgetprintoutforprinting}
580
581\func{wxPrintout *}{GetPrintoutForPrinting}{\void}
582
583Gets the printout object to be used for printing from within the preview interface,
584or NULL if none exists.
585
586\membersection{wxPrintPreview::Ok}\label{wxprintpreviewok}
587
588\func{bool}{Ok}{\void}
589
590Returns TRUE if the wxPrintPreview is valid, FALSE otherwise. It could return FALSE if there was a
591problem initializing the printer device context (current printer not set, for example).
592
593\membersection{wxPrintPreview::PaintPage}\label{wxprintpreviewpaintpage}
594
595\func{bool}{PaintPage}{\param{wxWindow* }{window}}
596
597This refreshes the preview window with the preview image.
598It must be called from the preview window's OnPaint member.
599
600The implementation simply blits the preview bitmap onto
601the canvas, creating a new preview bitmap if none exists.
602
603\membersection{wxPrintPreview::Print}\label{wxprintpreviewprint}
604
605\func{bool}{Print}{\param{bool }{prompt}}
606
607Invokes the print process using the second wxPrintout object
608supplied in the wxPrintPreview constructor.
609Will normally be called by the {\bf Print...} panel item on the
610preview frame's control bar.
611
612\membersection{wxPrintPreview::RenderPage}\label{wxprintpreviewrenderpage}
613
614\func{bool}{RenderPage}{\param{int }{pageNum}}
615
616Renders a page into a wxMemoryDC. Used internally by wxPrintPreview.
617
618\membersection{wxPrintPreview::SetCanvas}\label{wxprintpreviewsetcanvas}
619
620\func{void}{SetCanvas}{\param{wxWindow* }{window}}
621
622Sets the window to be used for displaying the print preview image.
623
624\membersection{wxPrintPreview::SetCurrentPage}\label{wxprintpreviewsetcurrentpage}
625
626\func{void}{SetCurrentPage}{\param{int}{ pageNum}}
627
628Sets the current page to be previewed.
629
630\membersection{wxPrintPreview::SetFrame}\label{wxprintpreviewsetframe}
631
632\func{void}{SetFrame}{\param{wxFrame *}{frame}}
633
634Sets the frame to be used for displaying the print preview canvas
635and control bar.
636
637\membersection{wxPrintPreview::SetPrintout}\label{wxprintpreviewsetprintout}
638
639\func{void}{SetPrintout}{\param{wxPrintout *}{printout}}
640
641Associates a printout object with the wxPrintPreview object.
642
643\membersection{wxPrintPreview::SetZoom}\label{wxprintpreviewsetzoom}
644
645\func{void}{SetZoom}{\param{int}{ percent}}
646
647Sets the percentage preview zoom, and refreshes the preview canvas
648accordingly.
649
650