mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 06:03:36 +00:00
86392456e8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29200 a592a061-630c-0410-9148-cb99ea01b6c8
74 lines
1.3 KiB
C++
74 lines
1.3 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 Angus Leeming
|
|
* \author Abdelrazak Younes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef GUITOC_H
|
|
#define GUITOC_H
|
|
|
|
#include "DockView.h"
|
|
|
|
#include "insets/InsetCommandParams.h"
|
|
|
|
#include "TocBackend.h"
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include <vector>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class TocModel;
|
|
class TocWidget;
|
|
|
|
class GuiToc : public DockView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
///
|
|
GuiToc(
|
|
GuiView & parent, ///< the main window where to dock.
|
|
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
|
|
Qt::WindowFlags flags = 0);
|
|
|
|
~GuiToc();
|
|
|
|
///
|
|
bool initialiseParams(std::string const & data);
|
|
void updateView();
|
|
void enableView(bool enable);
|
|
bool wantInitialFocus() const { return false; }
|
|
|
|
public:
|
|
/// clean-up on hide.
|
|
void clearParams() {}
|
|
///
|
|
void dispatchParams();
|
|
///
|
|
bool isBufferDependent() const { return true; }
|
|
///
|
|
void doDispatch(Cursor & cur, FuncRequest const & fr);
|
|
///
|
|
bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & fs) const;
|
|
|
|
private:
|
|
///
|
|
TocWidget * widget_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // GUITOC_H
|