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.
30 class GuiToc : public DockView
37 GuiView & parent, ///< the main window where to dock.
38 Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
39 Qt::WindowFlags flags = {});
42 bool initialiseParams(std::string const & data) override;
43 void updateView() override;
44 void enableView(bool enable) override;
45 bool wantInitialFocus() const override { return true; }
46 void closeEvent(QCloseEvent * event) override;
47 bool isClosing() const override { return is_closing_; }
51 void clearParams() override {}
53 void dispatchParams() override;
55 bool isBufferDependent() const override { return true; }
57 void doDispatch(Cursor & cur, FuncRequest const & fr, DispatchResult & dr);
59 bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & fs) const;
68 } // namespace frontend