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"
20 #include <boost/scoped_ptr.hpp>
27 class stringcolumns : public Gtk::TreeModel::ColumnRecord {
34 Gtk::TreeModelColumn<Glib::ustring> name;
38 class GLayoutBox: public LayoutBox, public sigc::trackable {
40 GLayoutBox(LyXView &, Gtk::Toolbar &, FuncRequest const &);
42 /// select the right layout in the combox.
43 void set(std::string const & layout);
44 /// Populate the layout combox.
46 /// Erase the layout list.
48 /// Display the layout list.
51 void setEnabled(bool);
57 Glib::RefPtr<Gtk::ListStore> model_;
65 class GToolbar : public Toolbar, public sigc::trackable {
67 GToolbar(ToolbarBackend::Toolbar const &, LyXView &);
68 void add(FuncRequest const & func, std::string const & tooltip);
72 LayoutBox * layout() const { return layout_.get(); }
74 void clicked(FuncRequest);
77 Gtk::Toolbar toolbar_;
78 Gtk::Tooltips tooltips_;
79 boost::scoped_ptr<GLayoutBox> layout_;
82 } // namespace frontend
85 #endif // NOT GTOOLBAR_H