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.
15 #include "GViewBase.h"
23 /** This class provides a GTK+ implementation of the Toc Dialog.
25 class GToc : public GViewCB<ControlToc, GViewGladeB> {
31 virtual void apply() {}
33 virtual void doBuild();
35 virtual void update();
38 void updateContents();
40 void onTocViewSelected();
41 void onTypeComboChanged();
43 // Makes TocViewSelected ignore events
46 Gtk::TreeView * tocview_;
47 Gtk::ComboBox * typecombo_;
48 Gtk::TreeModelColumn<Glib::ustring> listCol_;
49 Gtk::TreeModelColumn<unsigned int> listColIndex_;
50 Gtk::TreeModel::ColumnRecord listCols_;
51 Glib::RefPtr<Gtk::ListStore> tocstore_;
52 Glib::RefPtr<Gtk::ListStore> typestore_;
53 Glib::RefPtr<Gtk::TreeSelection> listSel_;
58 } // namespace frontend