- wxPreviewControlBar(wxPrintPreviewBase *preview, long buttons,
- wxWindow *parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = 0, const wxString& name = "panel");
- ~wxPreviewControlBar();
-
- virtual void CreateButtons();
- virtual void SetZoomControl(int zoom);
- virtual int GetZoomControl();
- inline virtual wxPrintPreviewBase *GetPrintPreview() const { return m_printPreview; }
-
- void OnPrint(wxCommandEvent& event);
- void OnClose(wxCommandEvent& event);
- void OnNext(wxCommandEvent& event);
- void OnPrevious(wxCommandEvent& event);
- void OnZoom(wxCommandEvent& event);
- void OnPaint(wxPaintEvent& event);
+ wxPreviewControlBar(wxPrintPreviewBase *preview,
+ long buttons,
+ wxWindow *parent,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ const wxString& name = "panel");
+ ~wxPreviewControlBar();
+
+ virtual void CreateButtons();
+ virtual void SetZoomControl(int zoom);
+ virtual int GetZoomControl();
+ virtual wxPrintPreviewBase *GetPrintPreview() const
+ { return m_printPreview; }
+
+ void OnPrint(wxCommandEvent& event);
+ void OnWindowClose(wxCommandEvent& event);
+ void OnNext();
+ void OnPrevious();
+ void OnNextButton(wxCommandEvent &event) { OnNext(); }
+ void OnPreviousButton(wxCommandEvent &event) { OnPrevious(); }
+ void OnChar(wxKeyEvent &event);
+ void OnZoom(wxCommandEvent& event);
+ void OnPaint(wxPaintEvent& event);