4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
12 #ifndef TOOLBAR_PIMPL_H
13 #define TOOLBAR_PIMPL_H
16 #include "frontends/Toolbar.h"
17 #include "ToolbarBackend.h"
20 class GToolbar : public Toolbar, public SigC::Object
23 GToolbar(LyXView * o, int x, int y);
28 void add(ToolbarBackend::Toolbar const & tb);
30 /// add a new button to the toolbar.
31 void add(Gtk::Toolbar * toolbar,
33 string const & tooltip);
35 /// display toolbar, not implemented
36 void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
38 /// update the state of the icons
41 /// select the right layout in the combox
42 void setLayout(string const & layout);
44 /// Populate the layout combox; re-do everything if force is true.
45 void updateLayoutList();
47 /// Drop down the layout list
48 void openLayoutList();
50 /// Erase the layout list
51 void clearLayoutList();
53 void onButtonClicked(int action);
54 void onLayoutSelected();
56 std::vector<Gtk::Toolbar*> toolbars_;