4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Kalle Dalheimer
9 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
17 #include "ControlToc.h"
19 #include <QStandardItemModel>
20 #include <QStringListModel>
28 class QToc : public ControlToc
36 void updateToc(int type);
40 QStandardItemModel * tocModel();
41 QStandardItemModel * setTocModel(int type);
43 QStringListModel * typeModel()
44 { return &type_model_; }
47 QModelIndex const getCurrentIndex();
49 void goTo(QModelIndex const & index);
53 std::vector<TocModel *> toc_models_;
55 QStringListModel type_model_;
61 } // namespace frontend