4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
17 #include "frontends/Toolbars.h"
18 #include <boost/scoped_ptr.hpp>
24 class GLayoutBox: public LayoutBox, public SigC::Object {
26 GLayoutBox(LyXView &, Gtk::Toolbar &, FuncRequest const &);
28 /// select the right layout in the combox.
29 void set(std::string const & layout);
30 /// Populate the layout combox.
32 /// Erase the layout list.
34 /// Display the layout list.
37 void setEnabled(bool);
49 class GToolbar : public Toolbar, public SigC::Object {
51 GToolbar(ToolbarBackend::Toolbar const &, LyXView &);
52 void add(FuncRequest const & func, std::string const & tooltip);
56 LayoutBox * layout() const { return layout_.get(); }
59 void clicked(FuncRequest);
62 Gtk::Toolbar toolbar_;
63 boost::scoped_ptr<GLayoutBox> layout_;
66 #endif // NOT GTOOLBAR_H