4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Abdelrazak Younes
9 * Full author contact details are available in file CREDITS.
17 #include "qt_helpers.h"
19 #include <QStandardItemModel>
27 class TocModel: public QStandardItemModel {
33 TocModel(toc::Toc const & toc_list);
37 TocModel const & operator=(toc::Toc const & toc_list);
41 void populate(toc::Toc const & toc_list);
43 toc::TocItem const item(QModelIndex const & index) const;
45 QModelIndex const index(std::string const & toc_str) const;
49 void populate(toc::Toc::const_iterator & iter,
50 toc::Toc::const_iterator const & end,
51 QModelIndex const & parent);
53 typedef std::map<QModelIndex, toc::TocItem> ItemMap;
55 typedef std::map<std::string, QModelIndex> IndexMap;
61 } // namespace frontend