lyx_mirror/src/frontends/qt4/QToc.h
Abdelrazak Younes ff83a99e94 * QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772
* TocModel.[Ch]: small cleanup + eol-style set to native


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13774 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 09:16:48 +00:00

65 lines
1012 B
C++

// -*- C++ -*-
/**
* \file QToc.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Kalle Dalheimer
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef QTOC_H
#define QTOC_H
#include "ControlToc.h"
#include <QStandardItemModel>
#include <QStringListModel>
namespace lyx {
namespace frontend {
class ControlToc;
class TocModel;
class QToc : public ControlToc
{
public:
QToc(Dialog &);
void update();
void updateToc(int type);
bool canOutline();
QStandardItemModel * tocModel();
QStandardItemModel * setTocModel(int type);
QStringListModel * typeModel()
{ return &type_model_; }
///
QModelIndex const getCurrentIndex();
///
void goTo(QModelIndex const & index);
private:
std::vector<TocModel *> toc_models_;
QStringListModel type_model_;
int type_;
int outline_type_;
};
} // namespace frontend
} // namespace lyx
#endif // QTOC_H