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>
28 class GuiToc : public QObject, public ControlToc
36 /// \c ControlToc inherited method.
37 virtual bool initialiseParams(std::string const & data);
41 bool canOutline(int type) const;
43 QStandardItemModel * tocModel(int type);
45 QModelIndex const getCurrentIndex(int type) const;
47 void goTo(int type, QModelIndex const & index);
51 int getTocDepth(int type);
54 /// Signal that the internal toc_models_ has been reset.
59 std::vector<TocModel *> toc_models_;
62 } // namespace frontend