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 Angus Leeming
10 * \author Abdelrazak Younes
12 * Full author contact details are available in file CREDITS.
20 #include "insets/InsetCommandParams.h"
22 #include "TocBackend.h"
24 #include <QStandardItemModel>
34 class GuiToc : public DockView
41 GuiView & parent, ///< the main window where to dock.
42 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
43 Qt::WindowFlags flags = 0);
48 bool initialiseParams(std::string const & data);
50 void enableView(bool enable);
51 bool wantInitialFocus() const { return false; }
52 void closeEvent(QCloseEvent * event);
53 bool isClosing() const { return is_closing_; }
59 void dispatchParams();
61 bool isBufferDependent() const { return true; }
63 void doDispatch(Cursor & cur, FuncRequest const & fr);
65 bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & fs) const;
74 } // namespace frontend