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.
16 #include "frontends/Toolbars.h"
18 #include <boost/scoped_ptr.hpp>
27 class GLayoutBox: public LayoutBox, public sigc::trackable {
29 GLayoutBox(LyXView &, Gtk::Toolbar &, FuncRequest const &);
31 /// select the right layout in the combox.
32 void set(std::string const & layout);
33 /// Populate the layout combox.
35 /// Erase the layout list.
37 /// Display the layout list.
40 void setEnabled(bool);
51 class GToolbar : public Toolbar, public sigc::trackable {
53 GToolbar(ToolbarBackend::Toolbar const &, LyXView &);
54 void add(FuncRequest const & func, std::string const & tooltip);
58 LayoutBox * layout() const { return layout_.get(); }
60 void clicked(FuncRequest);
63 Gtk::Toolbar toolbar_;
64 Gtk::Tooltips tooltips_;
65 boost::scoped_ptr<GLayoutBox> layout_;
68 } // namespace frontend
71 #endif // NOT GTOOLBAR_H