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"
18 #include "support/std_string.h"
21 class GToolbar : public Toolbar, public SigC::Object
24 GToolbar(LyXView * o, int x, int y);
29 void add(ToolbarBackend::Toolbar const & tb);
31 /// add a new button to the toolbar.
32 void add(Gtk::Toolbar * toolbar,
33 ToolbarBackend::Item const & item);
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(FuncRequest);
54 void onLayoutSelected();
56 std::vector<Gtk::Toolbar*> toolbars_;