1 \section{\class{wxPrintData
}}\label{wxprintdata
}
3 This class holds a variety of information related to print dialogs.
5 \wxheading{Derived from
}
7 \helpref{wxObject
}{wxobject
}
11 \helpref{wxPrintDialog
}{wxprintdialog
},
\helpref{wxPrintDialog Overview
}{wxprintdialogoverview
}
13 \latexignore{\rtfignore{\wxheading{Members
}}}
15 \membersection{wxPrintData::wxPrintData
}
17 \func{}{wxPrintData
}{\void}
21 \membersection{wxPrintData::
\destruct{wxPrintData
}}
23 \func{}{\destruct{wxPrintData
}}{\void}
27 \membersection{wxPrintData::EnableHelp
}\label{wxprintdataenablehelp
}
29 \func{void
}{EnableHelp
}{\param{bool
}{flag
}}
31 Enables or disables the `Help' button.
33 \membersection{wxPrintData::EnablePageNumbers
}\label{wxprintdataenablepagenumbers
}
35 \func{void
}{EnablePageNumbers
}{\param{bool
}{flag
}}
37 Enables or disables the `Page numbers' controls.
39 \membersection{wxPrintData::EnablePrintToFile
}\label{wxprintdataenableprinttofile
}
41 \func{void
}{EnablePrintToFile
}{\param{bool
}{flag
}}
43 Enables or disables the `Print to file' checkbox.
45 \membersection{wxPrintData::EnableSelection
}\label{wxprintdataenableselection
}
47 \func{void
}{EnableSelection
}{\param{bool
}{flag
}}
49 Enables or disables the `Selection' radio button.
51 \membersection{wxPrintData::GetAllPages
}\label{wxprintdatagetallpages
}
53 \func{bool
}{GetAllPages
}{\void}
55 Returns TRUE if the user requested that all pages be printed.
57 \membersection{wxPrintData::GetCollate
}\label{wxprintdatagetcollate
}
59 \func{bool
}{GetCollate
}{\void}
61 Returns TRUE if the user requested that the
document(s) be collated.
63 \membersection{wxPrintData::GetFromPage
}\label{wxprintdatagetfrompage
}
65 \func{int
}{GetFromPage
}{\void}
67 Returns the
{\it from
} page number, as entered by the user.
69 \membersection{wxPrintData::GetMaxPage
}\label{wxprintdatagetmaxpage
}
71 \func{int
}{GetMaxPage
}{\void}
73 Returns the
{\it maximum
} page number.
75 \membersection{wxPrintData::GetMinPage
}\label{wxprintdatagetminpage
}
77 \func{int
}{GetMinPage
}{\void}
79 Returns the
{\it minimum
} page number.
81 \membersection{wxPrintData::GetNoCopies
}\label{wxprintdatagetnocopies
}
83 \func{int
}{GetNoCopies
}{\void}
85 Returns the number of copies requested by the user.
87 \membersection{wxPrintData::GetOrientation
}\label{wxprintdatagetorientation
}
89 \func{int
}{GetOrientation
}{\void}
91 Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
93 \membersection{wxPrintData::GetToPage
}\label{wxprintdatagettopage
}
95 \func{int
}{GetToPage
}{\void}
97 Returns the
{\it to
} page number, as entered by the user.
99 \membersection{wxPrintData::SetCollate
}\label{wxprintdatasetcollate
}
101 \func{void
}{SetCollate
}{\param{bool
}{flag
}}
103 Sets the 'Collate' checkbox to TRUE or FALSE.
105 \membersection{wxPrintData::SetFromPage
}\label{wxprintdatasetfrompage
}
107 \func{void
}{SetFromPage
}{\param{int
}{page
}}
109 Sets the
{\it from
} page number.
111 \membersection{wxPrintData::SetMaxPage
}\label{wxprintdatasetmaxpage
}
113 \func{void
}{SetMaxPage
}{\param{int
}{page
}}
115 Sets the
{\it maximum
} page number.
117 \membersection{wxPrintData::SetMinPage
}\label{wxprintdatasetminpage
}
119 \func{void
}{SetMinPage
}{\param{int
}{page
}}
121 Sets the
{\it minimum
} page number.
123 \membersection{wxPrintData::SetOrientation
}\label{wxprintdatasetorientation
}
125 \func{void
}{SetOrientation
}{\param{int
}{orientation
}}
127 Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
129 \membersection{wxPrintData::SetNoCopies
}\label{wxprintdatasetnocopies
}
131 \func{void
}{SetNoCopies
}{\param{int
}{n
}}
133 Sets the default number of copies to be printed out.
135 \membersection{wxPrintData::SetPrintToFile
}\label{wxprintdatasetprinttofile
}
137 \func{void
}{SetPrintToFile
}{\param{bool
}{flag
}}
139 Sets the 'Print to file' checkbox to TRUE or FALSE.
141 \membersection{wxPrintData::SetSetupDialog
}\label{wxprintdatasetsetupdialog
}
143 \func{void
}{SetSetupDialog
}{\param{bool
}{flag
}}
145 Determines whether the dialog to be shown will be the Print dialog
146 (pass FALSE) or Print Setup dialog (pass TRUE).
148 Note that the setup dialog is obsolete from
149 Windows
95, though retained for backward compatibility.
151 \membersection{wxPrintData::SetToPage
}\label{wxprintdatasettopage
}
153 \func{void
}{SetToPage
}{\param{int
}{page
}}
155 Sets the
{\it to
} page number.
157 \section{\class{wxPrintDialog
}}\label{wxprintdialog
}
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.
163 \wxheading{Derived from
}
165 \helpref{wxDialog
}{wxdialog
}\\
166 \helpref{wxWindow
}{wxwindow
}\\
167 \helpref{wxEvtHandler
}{wxevthandler
}\\
168 \helpref{wxObject
}{wxobject
}
172 \helpref{wxPrintDialog Overview
}{wxprintdialogoverview
}
174 \latexignore{\rtfignore{\wxheading{Members
}}}
176 \membersection{wxPrintDialog::wxPrintDialog
}
178 \func{}{wxPrintDialog
}{\param{wxWindow*
}{parent
},
\param{wxPrintData*
}{data = NULL
}}
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.
185 \helpref{wxPrintData
}{wxprintdata
}
187 \membersection{wxPrintDialog::
\destruct{wxPrintDialog
}}
189 \func{}{\destruct{wxPrintDialog
}}{\void}
191 Destructor. If wxPrintDialog::GetPrintDC has
{\it not
} been called,
192 the device context obtained by the dialog (if any) will be deleted.
194 \membersection{wxPrintDialog::GetPrintData
}\label{wxprintdialoggetprintdata
}
196 \func{wxPrintData\&
}{GetPrintData
}{\void}
198 Returns the
\helpref{print data
}{wxprintdata
} associated with the print dialog.
200 \membersection{wxPrintDialog::GetPrintDC
}\label{wxprintdialoggetprintdc
}
202 \func{wxDC*
}{GetPrintDC
}{\void}
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
209 \membersection{wxPrintDialog::ShowModal
}\label{wxprintdialogshowmodal
}
211 \func{int
}{ShowModal
}{\void}
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
}.
217 \section{\class{wxPrinter
}}\label{wxprinter
}
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
225 \wxheading{Derived from
}
227 \helpref{wxObject
}{wxobject
}
231 \helpref{Printing framework overview
}{printingoverview
},
\helpref{wxPrinterDC
}{wxprinterdc
},
\helpref{wxPrintDialog
}{wxprintdialog
},
\rtfsp
232 \helpref{wxPrintout
}{wxprintout
},
\helpref{wxPrintPreview
}{wxprintpreview
}.
234 \latexignore{\rtfignore{\wxheading{Members
}}}
236 \membersection{wxPrinter::wxPrinter
}
238 \func{}{wxPrinter
}{\param{wxPrintData*
}{data = NULL
}}
240 Constructor. Pass an optional pointer to a block of print
241 data, which will be copied to the printer object's print data.
245 \helpref{wxPrintData
}{wxprintdata
}
247 \membersection{wxPrinter::
\destruct{wxPrinter
}}
249 \func{}{\destruct{wxPrinter
}}{\void}
253 \membersection{wxPrinter::Abort
}\label{wxprinterabort
}
255 \func{bool
}{Abort
}{\void}
257 Returns TRUE if the user has aborted the print job.
259 \membersection{wxPrinter::CreateAbortWindow
}\label{wxprintercreateabortwindow
}
261 \func{void
}{CreateAbortWindow
}{\param{wxWindow*
}{parent
},
\param{wxPrintout*
}{printout
}}
263 Creates the default printing abort window, with a cancel button.
265 \membersection{wxPrinter::GetPrintData
}\label{wxprintergetprintdata
}
267 \func{wxPrintData\&
}{GetPrintData
}{\void}
269 Returns the
\helpref{print data
}{wxprintdata
} associated with the printer object.
271 \membersection{wxPrinter::Print
}\label{wxprinterprint
}
273 \func{bool
}{Print
}{\param{wxWindow *
}{parent
},
\param{wxPrintout *
}{printout
},
\param{bool
}{prompt=TRUE
}}
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.
278 Print could return FALSE if there was a problem initializing the printer device context
279 (current printer not set, for example).
281 \membersection{wxPrinter::PrintDialog
}\label{wxprinterprintdialog
}
283 \func{bool
}{PrintDialog
}{\param{wxWindow *
}{parent
}}
285 Invokes the print dialog.
287 \membersection{wxPrinter::ReportError
}\label{wxprinterreporterror
}
289 \func{void
}{ReportError
}{\param{wxWindow *
}{parent
},
\param{wxPrintout *
}{printout
},
\param{const wxString\&
}{message
}}
291 Default error-reporting function.
293 \membersection{wxPrinter::Setup
}\label{wxprintersetup
}
295 \func{void
}{Setup
}{\param{wxWindow *
}{parent
}}
297 Invokes the print setup dialog. Note that the setup dialog is obsolete from
298 Windows
95, though retained for backward compatibility.
300 \section{\class{wxPrinterDC
}}\label{wxprinterdc
}
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.
307 \wxheading{Derived from
}
309 \helpref{wxDC
}{wxdc
}\\
310 \helpref{wxObject
}{wxdc
}
314 \helpref{wxDC
}{wxdc
},
\helpref{Printing framework overview
}{printingoverview
}
316 \latexignore{\rtfignore{\wxheading{Members
}}}
318 \membersection{wxPrinterDC::wxPrinterDC
}
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
}}
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.
329 \section{\class{wxPrintout
}}\label{wxprintout
}
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.
337 \wxheading{Derived from
}
339 \helpref{wxObject
}{wxobject
}
343 \helpref{Printing framework overview
}{printingoverview
},
\helpref{wxPrinterDC
}{wxprinterdc
},
\helpref{wxPrintDialog
}{wxprintdialog
},
\rtfsp
344 \helpref{wxPrinter
}{wxprinter
},
\helpref{wxPrintPreview
}{wxprintpreview
}
346 \latexignore{\rtfignore{\wxheading{Members
}}}
348 \membersection{wxPrintout::wxPrintout
}
350 \func{}{wxPrintout
}{\param{const wxString\&
}{title = "Printout"
}}
352 Constructor. Pass an optional title argument (currently unused).
354 \membersection{wxPrintout::
\destruct{wxPrintout
}}
356 \func{}{\destruct{wxPrintout
}}{\void}
360 \membersection{wxPrintout::GetDC
}\label{wxprintoutgetdc
}
362 \func{wxDC *
}{GetDC
}{\void}
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.
368 \membersection{wxPrintout::GetPageInfo
}\label{wxprintoutgetpageinfo
}
370 \func{void
}{GetPageInfo
}{\param{int *
}{minPage
},
\param{int *
}{maxPage
},
\param{int *
}{pageFrom
},
\param{int *
}{pageTo
}}
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.
376 If
{\it minPage
} is zero, the page number controls in the print dialog will be disabled.
378 \membersection{wxPrintout::GetPageSizeMM
}\label{wxprintoutgetpagesizemm
}
380 \func{void
}{GetPageSizeMM
}{\param{int *
}{w
},
\param{int *
}{h
}}
382 Returns the size of the printer page in millimetres.
384 \membersection{wxPrintout::GetPageSizePixels
}\label{wxprintoutgetpagesizepixels
}
386 \func{void
}{GetPageSizePixels
}{\param{int *
}{w
},
\param{int *
}{h
}}
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.
395 \membersection{wxPrintout::GetPPIPrinter
}\label{wxprintoutgetppiprinter
}
397 \func{void
}{GetPPIPrinter
}{\param{int *
}{w
},
\param{int *
}{h
}}
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.
404 \membersection{wxPrintout::GetPPIScreen
}\label{wxprintoutgetppiscreen
}
406 \func{void
}{GetPPIScreen
}{\param{int *
}{w
},
\param{int *
}{h
}}
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.
413 \membersection{wxPrintout::HasPage
}\label{wxprintouthaspage
}
415 \func{bool
}{HasPage
}{\param{int
}{ pageNum
}}
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.
421 \membersection{wxPrintout::IsPreview
}\label{wxprintoutispreview
}
423 \func{bool
}{IsPreview
}{\void}
425 Returns TRUE if the printout is currently being used for previewing.
427 \membersection{wxPrintout::OnBeginDocument
}\label{wxprintoutonbegindocument
}
429 \func{bool
}{OnBeginDocument
}{\param{int
}{ startPage
},
\param{int
}{ endPage
}}
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
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.
438 \membersection{wxPrintout::OnEndDocument
}\label{wxprintoutonenddocument
}
440 \func{void
}{OnEndDocument
}{\void}
442 Called by the framework at the end of
document printing. OnEndDocument
443 is called once for every copy printed.
445 The base wxPrintout::OnEndDocument
{\it must
} be called
446 from within the overriden function, since it calls wxDC::EndDoc.
448 \membersection{wxPrintout::OnBeginPrinting
}\label{wxprintoutonbeginprinting
}
450 \func{void
}{OnBeginPrinting
}{\void}
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).
455 \membersection{wxPrintout::OnEndPrinting
}\label{wxprintoutonendprinting
}
457 \func{void
}{OnEndPrinting
}{\void}
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).
462 \membersection{wxPrintout::OnPreparePrinting
}\label{wxprintoutonprepareprinting
}
464 \func{void
}{OnPreparePrinting
}{\void}
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.
470 \membersection{wxPrintout::OnPrintPage
}\label{wxprintoutonprintpage
}
472 \func{bool
}{OnPrintPage
}{\param{int
}{ pageNum
}}
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
478 \section{\class{wxPrintPreview
}}\label{wxprintpreview
}
480 \overview{Printing framework overview
}{printingoverview
}
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.
488 \wxheading{Derived from
}
490 \helpref{wxObject
}{wxobject
}
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
}.
499 \latexignore{\rtfignore{\wxheading{Members
}}}
501 \membersection{wxPrintPreview::wxPrintPreview
}
503 \func{}{wxPrintPreview
}{\param{wxPrintout*
}{printout
},
\param{wxPrintout*
}{printoutForPrinting
},
504 \param{wxPrintData*
}{data=NULL
}}
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
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.
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.
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).
522 \membersection{wxPrintPreview::
\destruct{wxPrintPreview
}}
524 \func{}{\destruct{wxPrinter
}}{\void}
526 Destructor. Deletes both print preview objects, so do not destroy these objects
529 \membersection{wxPrintPreview::DrawBlankPage
}\label{wxprintpreviewdrawblankpage
}
531 \func{bool
}{DrawBlankPage
}{\param{wxWindow*
}{window
}}
533 Draws a representation of the blank page into the preview window. Used
536 \membersection{wxPrintPreview::GetCanvas
}\label{wxprintpreviewgetcanvas
}
538 \func{wxWindow*
}{GetCanvas
}{\void}
540 Gets the preview window used for displaying the print preview image.
542 \membersection{wxPrintPreview::GetCurrentPage
}\label{wxprintpreviewgetcurrentpage
}
544 \func{int
}{GetCurrentPage
}{\void}
546 Gets the page currently being previewed.
548 \membersection{wxPrintPreview::GetFrame
}\label{wxprintpreviewgetframe
}
550 \func{wxFrame *
}{GetFrame
}{\void}
552 Gets the frame used for displaying the print preview canvas
555 \membersection{wxPrintPreview::GetMaxPage
}\label{wxprintpreviewgetmaxpage
}
557 \func{int
}{GetMaxPage
}{\void}
559 Returns the maximum page number.
561 \membersection{wxPrintPreview::GetMinPage
}\label{wxprintpreviewgetminpage
}
563 \func{int
}{GetMinPage
}{\void}
565 Returns the minimum page number.
567 \membersection{wxPrintPreview::GetPrintData
}\label{wxprintpreviewgetprintdata
}
569 \func{wxPrintData\&
}{GetPrintData
}{\void}
571 Returns a reference to the internal print data.
573 \membersection{wxPrintPreview::GetPrintout
}\label{wxprintpreviewgetprintout
}
575 \func{wxPrintout *
}{GetPrintout
}{\void}
577 Gets the preview printout object associated with the wxPrintPreview object.
579 \membersection{wxPrintPreview::GetPrintoutForPrinting
}\label{wxprintpreviewgetprintoutforprinting
}
581 \func{wxPrintout *
}{GetPrintoutForPrinting
}{\void}
583 Gets the printout object to be used for printing from within the preview interface,
584 or NULL if none exists.
586 \membersection{wxPrintPreview::Ok
}\label{wxprintpreviewok
}
588 \func{bool
}{Ok
}{\void}
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).
593 \membersection{wxPrintPreview::PaintPage
}\label{wxprintpreviewpaintpage
}
595 \func{bool
}{PaintPage
}{\param{wxWindow*
}{window
}}
597 This refreshes the preview window with the preview image.
598 It must be called from the preview window's OnPaint member.
600 The implementation simply blits the preview bitmap onto
601 the canvas, creating a new preview bitmap if none exists.
603 \membersection{wxPrintPreview::Print
}\label{wxprintpreviewprint
}
605 \func{bool
}{Print
}{\param{bool
}{prompt
}}
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.
612 \membersection{wxPrintPreview::RenderPage
}\label{wxprintpreviewrenderpage
}
614 \func{bool
}{RenderPage
}{\param{int
}{pageNum
}}
616 Renders a page into a wxMemoryDC. Used internally by wxPrintPreview.
618 \membersection{wxPrintPreview::SetCanvas
}\label{wxprintpreviewsetcanvas
}
620 \func{void
}{SetCanvas
}{\param{wxWindow*
}{window
}}
622 Sets the window to be used for displaying the print preview image.
624 \membersection{wxPrintPreview::SetCurrentPage
}\label{wxprintpreviewsetcurrentpage
}
626 \func{void
}{SetCurrentPage
}{\param{int
}{ pageNum
}}
628 Sets the current page to be previewed.
630 \membersection{wxPrintPreview::SetFrame
}\label{wxprintpreviewsetframe
}
632 \func{void
}{SetFrame
}{\param{wxFrame *
}{frame
}}
634 Sets the frame to be used for displaying the print preview canvas
637 \membersection{wxPrintPreview::SetPrintout
}\label{wxprintpreviewsetprintout
}
639 \func{void
}{SetPrintout
}{\param{wxPrintout *
}{printout
}}
641 Associates a printout object with the wxPrintPreview object.
643 \membersection{wxPrintPreview::SetZoom
}\label{wxprintpreviewsetzoom
}
645 \func{void
}{SetZoom
}{\param{int
}{ percent
}}
647 Sets the percentage preview zoom, and refreshes the preview canvas