This class provides the default method of managing the print preview interface. Member functions may be overridden to replace functionality, or the class may be used without derivation.
See also wxPreviewCanvas, wxPreviewControlBar, wxPrintPreview.
wxPreviewFrame::controlBar
wxPreviewFrame::previewCanvas
wxPreviewFrame::printPreview
wxPreviewFrame::wxPreviewFrame
wxPreviewFrame::~wxPreviewFrame
wxPreviewFrame::CreateControlBar
wxPreviewFrame::CreateCanvas
wxPreviewFrame::Initialize
wxPreviewFrame::OnClose
wxPreviewControlBar * controlBar
Protected data member, pointing to the preview control bar.
wxCanvas * previewCanvas
Protected data member, pointing to the preview canvas.
wxPrintPreview * printPreview
Protected data member, pointing to the print preview object.
void wxPreviewFrame(wxPrintPreview *preview, wxFrame *parent, char *title,
int x = -1, int y = -1,
int width = -1, int height = -1,
long style = wxSDI | wxDEFAULT_FRAME, char *name = "frame")
Constructor. Pass a print preview object plus other normal frame arguments.
void ~wxPreviewFrame(void)
Destructor.
void CreateControlBar(void)
Creates a wxPreviewControlBar. Override this function to allow a user-defined preview control bar object to be created.
void CreateCanvas(void)
Creates a wxPreviewCanvas. Override this function to allow a user-defined preview canvas object to be created.
void Initialize(void)
Creates the preview canvas and control bar, and calls wxWindow::MakeModal(TRUE) to disable other top-level windows in the application.
This function should be called by the application prior to showing the frame.
Bool OnClose(void)
Enables the other frames in the application, and deletes the print preview object, implicitly deleting any printout objects associated with the print preview object.