]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/print.tex
Corrected stupid error.
[wxWidgets.git] / docs / latex / wx / print.tex
1 \section{\class{wxPrintData}}\label{wxprintdata}
2
3 This 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
19 Constructor.
20
21 \membersection{wxPrintData::\destruct{wxPrintData}}
22
23 \func{}{\destruct{wxPrintData}}{\void}
24
25 Destructor.
26
27 \membersection{wxPrintData::EnableHelp}\label{wxprintdataenablehelp}
28
29 \func{void}{EnableHelp}{\param{bool }{flag}}
30
31 Enables or disables the `Help' button.
32
33 \membersection{wxPrintData::EnablePageNumbers}\label{wxprintdataenablepagenumbers}
34
35 \func{void}{EnablePageNumbers}{\param{bool }{flag}}
36
37 Enables or disables the `Page numbers' controls.
38
39 \membersection{wxPrintData::EnablePrintToFile}\label{wxprintdataenableprinttofile}
40
41 \func{void}{EnablePrintToFile}{\param{bool }{flag}}
42
43 Enables or disables the `Print to file' checkbox.
44
45 \membersection{wxPrintData::EnableSelection}\label{wxprintdataenableselection}
46
47 \func{void}{EnableSelection}{\param{bool }{flag}}
48
49 Enables or disables the `Selection' radio button.
50
51 \membersection{wxPrintData::GetAllPages}\label{wxprintdatagetallpages}
52
53 \func{bool}{GetAllPages}{\void}
54
55 Returns TRUE if the user requested that all pages be printed.
56
57 \membersection{wxPrintData::GetCollate}\label{wxprintdatagetcollate}
58
59 \func{bool}{GetCollate}{\void}
60
61 Returns 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
67 Returns the {\it from} page number, as entered by the user.
68
69 \membersection{wxPrintData::GetMaxPage}\label{wxprintdatagetmaxpage}
70
71 \func{int}{GetMaxPage}{\void}
72
73 Returns the {\it maximum} page number.
74
75 \membersection{wxPrintData::GetMinPage}\label{wxprintdatagetminpage}
76
77 \func{int}{GetMinPage}{\void}
78
79 Returns the {\it minimum} page number.
80
81 \membersection{wxPrintData::GetNoCopies}\label{wxprintdatagetnocopies}
82
83 \func{int}{GetNoCopies}{\void}
84
85 Returns the number of copies requested by the user.
86
87 \membersection{wxPrintData::GetOrientation}\label{wxprintdatagetorientation}
88
89 \func{int}{GetOrientation}{\void}
90
91 Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
92
93 \membersection{wxPrintData::GetToPage}\label{wxprintdatagettopage}
94
95 \func{int}{GetToPage}{\void}
96
97 Returns 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
103 Sets the 'Collate' checkbox to TRUE or FALSE.
104
105 \membersection{wxPrintData::SetFromPage}\label{wxprintdatasetfrompage}
106
107 \func{void}{SetFromPage}{\param{int }{page}}
108
109 Sets the {\it from} page number.
110
111 \membersection{wxPrintData::SetMaxPage}\label{wxprintdatasetmaxpage}
112
113 \func{void}{SetMaxPage}{\param{int }{page}}
114
115 Sets the {\it maximum} page number.
116
117 \membersection{wxPrintData::SetMinPage}\label{wxprintdatasetminpage}
118
119 \func{void}{SetMinPage}{\param{int }{page}}
120
121 Sets the {\it minimum} page number.
122
123 \membersection{wxPrintData::SetOrientation}\label{wxprintdatasetorientation}
124
125 \func{void}{SetOrientation}{\param{int }{orientation}}
126
127 Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
128
129 \membersection{wxPrintData::SetNoCopies}\label{wxprintdatasetnocopies}
130
131 \func{void}{SetNoCopies}{\param{int }{n}}
132
133 Sets 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
139 Sets 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
145 Determines whether the dialog to be shown will be the Print dialog
146 (pass FALSE) or Print Setup dialog (pass TRUE).
147
148 Note that the setup dialog is obsolete from
149 Windows 95, though retained for backward compatibility.
150
151 \membersection{wxPrintData::SetToPage}\label{wxprintdatasettopage}
152
153 \func{void}{SetToPage}{\param{int }{page}}
154
155 Sets the {\it to} page number.
156
157 \section{\class{wxPrintDialog}}\label{wxprintdialog}
158
159 This class represents the print and print setup common dialogs.
160 You may obtain a \helpref{wxPrinterDC}{wxprinterdc} device context from
161 a 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
180 Constructor. Pass a parent window, and optionally a pointer to a block of print
181 data, 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
191 Destructor. If wxPrintDialog::GetPrintDC has {\it not} been called,
192 the 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
198 Returns the \helpref{print data}{wxprintdata} associated with the print dialog.
199
200 \membersection{wxPrintDialog::GetPrintDC}\label{wxprintdialoggetprintdc}
201
202 \func{wxDC* }{GetPrintDC}{\void}
203
204 Returns the device context created by the print dialog, if any.
205 When this function has been called, the ownership of the device context
206 is transferred to the application, so it must then be deleted
207 explicitly.
208
209 \membersection{wxPrintDialog::ShowModal}\label{wxprintdialogshowmodal}
210
211 \func{int}{ShowModal}{\void}
212
213 Shows the dialog, returning wxID\_OK if the user pressed OK, and wxID\_CANCEL
214 otherwise. After this function is called, a device context may
215 be retrievable using \helpref{wxPrintDialog::GetPrintDC}{wxprintdialoggetprintdc}.
216
217 \section{\class{wxPrinter}}\label{wxprinter}
218
219 This class represents the Windows or PostScript printer, and is the vehicle through
220 which printing may be launched by an application. Printing can also
221 be achieved through using of lower functions and classes, but
222 this and associated classes provide a more convenient and general
223 method 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
240 Constructor. Pass an optional pointer to a block of print
241 data, 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
251 Destructor.
252
253 \membersection{wxPrinter::Abort}\label{wxprinterabort}
254
255 \func{bool}{Abort}{\void}
256
257 Returns 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
263 Creates the default printing abort window, with a cancel button.
264
265 \membersection{wxPrinter::GetPrintData}\label{wxprintergetprintdata}
266
267 \func{wxPrintData\&}{GetPrintData}{\void}
268
269 Returns 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
275 Starts the printing process. Provide a parent window, a user-defined wxPrintout object which controls
276 the printing of a document, and whether the print dialog should be invoked first.
277
278 Print 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
285 Invokes 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
291 Default error-reporting function.
292
293 \membersection{wxPrinter::Setup}\label{wxprintersetup}
294
295 \func{void}{Setup}{\param{wxWindow *}{parent}}
296
297 Invokes the print setup dialog. Note that the setup dialog is obsolete from
298 Windows 95, though retained for backward compatibility.
299
300 \section{\class{wxPrinterDC}}\label{wxprinterdc}
301
302 A printer device context is specific to Windows, and allows access to
303 any printer with a Windows driver. See \helpref{wxDC}{wxdc} for further information
304 on device contexts, and \helpref{wxDC::GetSize}{wxdcgetsize} for advice on
305 achieving 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},
321 \param{const bool }{interactive = TRUE}, \param{int }{orientation = wxPORTRAIT}}
322
323 Constructor. With empty strings for the first three arguments, the default printer dialog is
324 displayed. {\it device} indicates the type of printer and {\it output}
325 is an optional file for printing to. The {\it driver} parameter is
326 currently unused. Use the {\it Ok} member to test whether the
327 constructor was successful in creating a useable device context.
328
329 \section{\class{wxPrintout}}\label{wxprintout}
330
331 This class encapsulates the functionality of printing out an
332 application document. A new class must be derived and members
333 overridden to respond to calls such as OnPrintPage and HasPage.
334 Instances of this class are passed to wxPrinter::Print or a
335 wxPrintPreview 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
352 Constructor. Pass an optional title argument (currently unused).
353
354 \membersection{wxPrintout::\destruct{wxPrintout}}
355
356 \func{}{\destruct{wxPrintout}}{\void}
357
358 Destructor.
359
360 \membersection{wxPrintout::GetDC}\label{wxprintoutgetdc}
361
362 \func{wxDC *}{GetDC}{\void}
363
364 Returns the device context associated with the printout (given to the printout at start of
365 printing or previewing). This will be a wxPrinterDC if printing under Windows,
366 a 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
372 Called by the framework to obtain information from the application about minimum and maximum page values that
373 the user can select, and the required page range to be printed. By default this
374 returns 1, 32000 for the page minimum and maximum values, and 1, 1 for the required page range.
375
376 If {\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
382 Returns 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
388 Returns the size of the printer page in pixels. These may not be the
389 same as the values returned from \helpref{wxDC::GetSize}{wxdcgetsize} if
390 the printout is being used for previewing, since in this case, a
391 memory device context is used, using a bitmap size reflecting the current
392 preview zoom. The application must take this discrepancy into account if
393 previewing is to be supported.
394
395 \membersection{wxPrintout::GetPPIPrinter}\label{wxprintoutgetppiprinter}
396
397 \func{void}{GetPPIPrinter}{\param{int *}{w}, \param{int *}{h}}
398
399 Returns the number of pixels per logical inch of the printer device context.
400 Dividing the printer PPI by the screen PPI can give a suitable scaling
401 factor for drawing text onto the printer. Remember to multiply
402 this 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
408 Returns the number of pixels per logical inch of the screen device context.
409 Dividing the printer PPI by the screen PPI can give a suitable scaling
410 factor for drawing text onto the printer. Remember to multiply
411 this 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
417 Should be overriden to return TRUE if the document has this page, or FALSE
418 if not. Returning FALSE signifies the end of the document. By default,
419 HasPage behaves as if the document has only one page.
420
421 \membersection{wxPrintout::IsPreview}\label{wxprintoutispreview}
422
423 \func{bool}{IsPreview}{\void}
424
425 Returns 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
431 Called by the framework at the start of document printing. Return FALSE from
432 this function cancels the print job. OnBeginDocument is called once for every
433 copy printed.
434
435 The base wxPrintout::OnBeginDocument {\it must} be called (and the return value
436 checked) from within the overriden function, since it calls wxDC::StartDoc.
437
438 \membersection{wxPrintout::OnEndDocument}\label{wxprintoutonenddocument}
439
440 \func{void}{OnEndDocument}{\void}
441
442 Called by the framework at the end of document printing. OnEndDocument
443 is called once for every copy printed.
444
445 The base wxPrintout::OnEndDocument {\it must} be called
446 from within the overriden function, since it calls wxDC::EndDoc.
447
448 \membersection{wxPrintout::OnBeginPrinting}\label{wxprintoutonbeginprinting}
449
450 \func{void}{OnBeginPrinting}{\void}
451
452 Called by the framework at the start of printing. OnBeginPrinting is called once for every
453 print job (regardless of how many copies are being printed).
454
455 \membersection{wxPrintout::OnEndPrinting}\label{wxprintoutonendprinting}
456
457 \func{void}{OnEndPrinting}{\void}
458
459 Called by the framework at the end of printing. OnEndPrinting
460 is 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
466 Called once by the framework before any other demands are made of the
467 wxPrintout object. This gives the object an opportunity to calculate the
468 number of pages in the document, for example.
469
470 \membersection{wxPrintout::OnPrintPage}\label{wxprintoutonprintpage}
471
472 \func{bool}{OnPrintPage}{\param{int}{ pageNum}}
473
474 Called by the framework when a page should be printed. Returning FALSE cancels
475 the print job. The application can use wxPrintout::GetDC to obtain a device
476 context to draw on.
477
478 \section{\class{wxPrintPreview}}\label{wxprintpreview}
479
480 \overview{Printing framework overview}{printingoverview}
481
482 Objects of this class manage the print preview process. The object is passed
483 a wxPrintout object, and the wxPrintPreview object itself is passed to
484 a wxPreviewFrame object. Previewing is started by initializing and showing
485 the preview frame. Unlike wxPrinter::Print, flow of control returns to the application
486 immediately 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
506 Constructor. Pass a printout object, an optional printout object to be
507 used for actual printing, and the address of an optional
508 block of printer data, which will be copied to the print preview object's
509 print data.
510
511 If {\it printoutForPrinting} is non-NULL, a {\bf Print...} button will be placed on the
512 preview frame so that the user can print directly from the preview interface.
513
514 Do not explicitly delete the printout objects once this destructor has been
515 called, since they will be deleted in the wxPrintPreview constructor.
516 The same does not apply to the {\it data} argument.
517
518 Test the Ok member to check whether the wxPrintPreview object was created correctly.
519 Ok 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
526 Destructor. Deletes both print preview objects, so do not destroy these objects
527 in your application.
528
529 \membersection{wxPrintPreview::DrawBlankPage}\label{wxprintpreviewdrawblankpage}
530
531 \func{bool}{DrawBlankPage}{\param{wxWindow* }{window}}
532
533 Draws a representation of the blank page into the preview window. Used
534 internally.
535
536 \membersection{wxPrintPreview::GetCanvas}\label{wxprintpreviewgetcanvas}
537
538 \func{wxWindow* }{GetCanvas}{\void}
539
540 Gets the preview window used for displaying the print preview image.
541
542 \membersection{wxPrintPreview::GetCurrentPage}\label{wxprintpreviewgetcurrentpage}
543
544 \func{int}{GetCurrentPage}{\void}
545
546 Gets the page currently being previewed.
547
548 \membersection{wxPrintPreview::GetFrame}\label{wxprintpreviewgetframe}
549
550 \func{wxFrame *}{GetFrame}{\void}
551
552 Gets the frame used for displaying the print preview canvas
553 and control bar.
554
555 \membersection{wxPrintPreview::GetMaxPage}\label{wxprintpreviewgetmaxpage}
556
557 \func{int}{GetMaxPage}{\void}
558
559 Returns the maximum page number.
560
561 \membersection{wxPrintPreview::GetMinPage}\label{wxprintpreviewgetminpage}
562
563 \func{int}{GetMinPage}{\void}
564
565 Returns the minimum page number.
566
567 \membersection{wxPrintPreview::GetPrintData}\label{wxprintpreviewgetprintdata}
568
569 \func{wxPrintData\&}{GetPrintData}{\void}
570
571 Returns a reference to the internal print data.
572
573 \membersection{wxPrintPreview::GetPrintout}\label{wxprintpreviewgetprintout}
574
575 \func{wxPrintout *}{GetPrintout}{\void}
576
577 Gets the preview printout object associated with the wxPrintPreview object.
578
579 \membersection{wxPrintPreview::GetPrintoutForPrinting}\label{wxprintpreviewgetprintoutforprinting}
580
581 \func{wxPrintout *}{GetPrintoutForPrinting}{\void}
582
583 Gets the printout object to be used for printing from within the preview interface,
584 or NULL if none exists.
585
586 \membersection{wxPrintPreview::Ok}\label{wxprintpreviewok}
587
588 \func{bool}{Ok}{\void}
589
590 Returns TRUE if the wxPrintPreview is valid, FALSE otherwise. It could return FALSE if there was a
591 problem 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
597 This refreshes the preview window with the preview image.
598 It must be called from the preview window's OnPaint member.
599
600 The implementation simply blits the preview bitmap onto
601 the 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
607 Invokes the print process using the second wxPrintout object
608 supplied in the wxPrintPreview constructor.
609 Will normally be called by the {\bf Print...} panel item on the
610 preview frame's control bar.
611
612 \membersection{wxPrintPreview::RenderPage}\label{wxprintpreviewrenderpage}
613
614 \func{bool}{RenderPage}{\param{int }{pageNum}}
615
616 Renders 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
622 Sets 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
628 Sets the current page to be previewed.
629
630 \membersection{wxPrintPreview::SetFrame}\label{wxprintpreviewsetframe}
631
632 \func{void}{SetFrame}{\param{wxFrame *}{frame}}
633
634 Sets the frame to be used for displaying the print preview canvas
635 and control bar.
636
637 \membersection{wxPrintPreview::SetPrintout}\label{wxprintpreviewsetprintout}
638
639 \func{void}{SetPrintout}{\param{wxPrintout *}{printout}}
640
641 Associates a printout object with the wxPrintPreview object.
642
643 \membersection{wxPrintPreview::SetZoom}\label{wxprintpreviewsetzoom}
644
645 \func{void}{SetZoom}{\param{int}{ percent}}
646
647 Sets the percentage preview zoom, and refreshes the preview canvas
648 accordingly.
649
650