lyx_mirror/src/frontends/qt4/GuiToc.h
Abdelrazak Younes 9e3823945a Restore docked outline widget. Warning: still instable!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20147 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-08 17:28:14 +00:00

66 lines
1.1 KiB
C++

// -*- C++ -*-
/**
* \file GuiToc.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 GUITOC_H
#define GUITOC_H
#include "ControlToc.h"
#include <QObject>
#include <QStandardItemModel>
#include <QStringListModel>
namespace lyx {
namespace frontend {
class TocModel;
class GuiToc : public QObject, public ControlToc
{
Q_OBJECT
public:
///
GuiToc(Dialog &);
/// \c ControlToc inherited method.
virtual bool initialiseParams(std::string const & data);
///
void updateView();
///
bool canOutline(int type) const;
QStandardItemModel * tocModel(int type);
///
QModelIndex const getCurrentIndex(int type) const;
///
void goTo(int type, QModelIndex const & index);
///
int getType();
///
int getTocDepth(int type);
Q_SIGNALS:
/// Signal that the internal toc_models_ has been reset.
void modelReset();
private:
///
std::vector<TocModel *> toc_models_;
};
} // namespace frontend
} // namespace lyx
#endif // GUITOC_H