]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiToc.h
Fix readability
[lyx.git] / src / frontends / qt / GuiToc.h
index f29a9af59c8ffcc21db397e29acb08362a075ff7..9e46d6e3b2558c31d2b52cd59af2c3d9e3a9d4b9 100644 (file)
 #include "DockView.h"
 
 namespace lyx {
+
+class Cursor;
+class DispatchResult;
+class FuncStatus;
+
 namespace frontend {
 
-class TocModel;
 class TocWidget;
 
 class GuiToc : public DockView
@@ -32,23 +36,23 @@ 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);
+                       Qt::WindowFlags flags = {});
 
        ///
-       bool initialiseParams(std::string const & data);
-       void updateView();
-       void enableView(bool enable);
-       bool wantInitialFocus() const { return false; }
-       void closeEvent(QCloseEvent * event);
-       bool isClosing() const { return is_closing_; }
+       bool initialiseParams(std::string const & data) override;
+       void updateView() override;
+       void enableView(bool enable) override;
+       bool wantInitialFocus() const override { return true; }
+       void closeEvent(QCloseEvent * event) override;
+       bool isClosing() const override { return is_closing_; }
 
 public:
        /// clean-up on hide.
-       void clearParams() {}
+       void clearParams() override {}
        ///
-       void dispatchParams();
+       void dispatchParams() override;
        ///
-       bool isBufferDependent() const { return true; }
+       bool isBufferDependent() const override { return true; }
        ///
        void doDispatch(Cursor & cur, FuncRequest const & fr, DispatchResult & dr);
        ///