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>
26 class GLayoutBox: public LayoutBox, public SigC::Object {
28 GLayoutBox(LyXView &, Gtk::Toolbar &, FuncRequest const &);
30 /// select the right layout in the combox.
31 void set(std::string const & layout);
32 /// Populate the layout combox.
34 /// Erase the layout list.
36 /// Display the layout list.
39 void setEnabled(bool);
51 class GToolbar : public Toolbar, public SigC::Object {
53 GToolbar(ToolbarBackend::Toolbar const &, LyXView &);
54 void add(FuncRequest const & func, std::string const & tooltip);
58 LayoutBox * layout() const { return layout_.get(); }
61 void clicked(FuncRequest);
64 Gtk::Toolbar toolbar_;
65 boost::scoped_ptr<GLayoutBox> layout_;
68 } // namespace frontend
71 #endif // NOT GTOOLBAR_H