Contents Up Previous Next

wxPreviewFrame: wxFrame

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


wxPreviewFrame::controlBar

wxPreviewControlBar * controlBar

Protected data member, pointing to the preview control bar.


wxPreviewFrame::previewCanvas

wxCanvas * previewCanvas

Protected data member, pointing to the preview canvas.


wxPreviewFrame::printPreview

wxPrintPreview * printPreview

Protected data member, pointing to the print preview object.


wxPreviewFrame::wxPreviewFrame

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.


wxPreviewFrame::~wxPreviewFrame

void ~wxPreviewFrame(void)

Destructor.


wxPreviewFrame::CreateControlBar

void CreateControlBar(void)

Creates a wxPreviewControlBar. Override this function to allow a user-defined preview control bar object to be created.


wxPreviewFrame::CreateCanvas

void CreateCanvas(void)

Creates a wxPreviewCanvas. Override this function to allow a user-defined preview canvas object to be created.


wxPreviewFrame::Initialize

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.


wxPreviewFrame::OnClose

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.