/* AbiSource Program Utilities * Copyright (C) 1998 AbiSource, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef __TOPAZTOOLBAR_H__ #define __TOPAZTOOLBAR_H__ #include #include "ut_types.h" #include "ut_vector.h" #include "xap_Types.h" #include "ev_Toolbar.h" #include "xav_Listener.h" #include "ap_Toolbar_Id.h" #include "ev_UnixToolbar.h" class XAP_UnixApp; class XAP_Frame; class EV_UnixToolbar_ViewListener; class TopazToolbar : public EV_UnixToolbar { public: TopazToolbar(XAP_UnixApp * pUnixApp, XAP_Frame *pFrame, const char * szToolbarLayoutName, const char * szToolbarLabelSetName); virtual ~TopazToolbar(void); virtual void event (const gchar *method); virtual bool synthesize(void); virtual bool bindListenerToView(AV_View * pView); virtual bool refreshToolbar(AV_View * pView, AV_ChangeMask mask); virtual bool repopulateStyles(void); virtual UT_sint32 destroy(void); virtual void rebuildToolbar(UT_sint32 oldpos); virtual void setCurrentEvent(GdkEvent * event) {m_eEvent = event;} virtual void show(void); virtual void hide(void); protected: virtual GtkToolbarStyle getStyle(void); virtual bool getDetachable(void) { return true; } virtual void setDetachable(gboolean detachable) { /* only the GNOME version does that ATM */ } virtual void populateFonts(void); virtual void _releaseListener(void); }; #endif /* __TOPAZTOOLBAR_H__ */