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,
32 ToolbarBackend::Item const & item);
34 /// display toolbar, not implemented
35 void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
37 /// update the state of the icons
40 /// select the right layout in the combox
41 void setLayout(std::string const & layout);
43 /// Populate the layout combox; re-do everything if force is true.
44 void updateLayoutList();
46 /// Drop down the layout list
47 void openLayoutList();
49 /// Erase the layout list
50 void clearLayoutList();
52 void onButtonClicked(FuncRequest);
53 void onLayoutSelected();
55 std::vector<Gtk::Toolbar*> toolbars_;