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"
20 #include <QStandardItemModel>
21 #include <QStringListModel>
29 class QToc : public QObject, public ControlToc
42 bool canOutline(int type) const;
44 QStandardItemModel * tocModel(int type);
46 QStringListModel * typeModel()
47 { return &type_model_; }
50 QModelIndex const getCurrentIndex(int type) const;
52 void goTo(int type, QModelIndex const & index);
56 int getTocDepth(int type);
59 /// Signal that the internal toc_models_ has been reset.
64 std::vector<TocModel *> toc_models_;
66 QStringListModel type_model_;
71 } // namespace frontend