#include <wx/print.h>

Public Member Functions | |
| wxPreviewFrame (wxPrintPreviewBase *preview, wxWindow *parent, const wxString &title="Print Preview", const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr) | |
| virtual | ~wxPreviewFrame () |
| virtual void | CreateCanvas () |
| virtual void | CreateControlBar () |
| virtual void | Initialize () |
| void | OnCloseWindow (wxCloseEvent &event) |
| wxPreviewFrame::wxPreviewFrame | ( | wxPrintPreviewBase * | preview, | |
| wxWindow * | parent, | |||
| const wxString & | title = "Print Preview", |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxDEFAULT_FRAME_STYLE, |
|||
| const wxString & | name = wxFrameNameStr | |||
| ) |
Constructor.
Pass a print preview object plus other normal frame arguments. The print preview object will be destroyed by the frame when it closes.
| virtual wxPreviewFrame::~wxPreviewFrame | ( | ) | [virtual] |
Destructor.
| virtual void wxPreviewFrame::CreateCanvas | ( | ) | [virtual] |
Creates a wxPreviewCanvas.
Override this function to allow a user-defined preview canvas object to be created.
| virtual void wxPreviewFrame::CreateControlBar | ( | ) | [virtual] |
Creates a wxPreviewControlBar.
Override this function to allow a user-defined preview control bar object to be created.
| virtual void wxPreviewFrame::Initialize | ( | ) | [virtual] |
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.
| void wxPreviewFrame::OnCloseWindow | ( | wxCloseEvent & | event | ) |
Enables the other frames in the application, and deletes the print preview object, implicitly deleting any printout objects associated with the print preview object.
|
[ top ] |