- 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 = wxTAB_TRAVERSAL,
+ const wxString& name = wxT("panel"));
+ ~wxPreviewControlBar();
+
+ virtual void CreateButtons();
+ virtual void SetZoomControl(int zoom);
+ virtual int GetZoomControl();
+ virtual wxPrintPreviewBase *GetPrintPreview() const
+ { return m_printPreview; }
+
+ void OnWindowClose(wxCommandEvent& event);
+ void OnNext();
+ void OnPrevious();
+ void OnFirst();
+ void OnLast();
+ void OnGoto();
+ void OnPrint();
+ void OnPrintButton(wxCommandEvent& WXUNUSED(event)) { OnPrint(); }
+ void OnNextButton(wxCommandEvent & WXUNUSED(event)) { OnNext(); }
+ void OnPreviousButton(wxCommandEvent & WXUNUSED(event)) { OnPrevious(); }
+ void OnFirstButton(wxCommandEvent & WXUNUSED(event)) { OnFirst(); }
+ void OnLastButton(wxCommandEvent & WXUNUSED(event)) { OnLast(); }
+ void OnGotoButton(wxCommandEvent & WXUNUSED(event)) { OnGoto(); }
+ void OnZoom(wxCommandEvent& event);
+ void OnPaint(wxPaintEvent& event);