]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.h
Enable OK/Apply buttons when resetting to class defaults.
[lyx.git] / src / frontends / qt4 / GuiToc.h
index 2031465613b8aa5854c527ed181a67df3139d681..d403bc94f9b38a0d58541c494d71eb3295b4c05f 100644 (file)
 
 #include "DockView.h"
 
-#include "insets/InsetCommandParams.h"
-
-#include "TocBackend.h"
-
-#include <QStandardItemModel>
-
-#include <vector>
-
 namespace lyx {
 namespace frontend {
 
@@ -42,12 +34,13 @@ public:
                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; }
+       void closeEvent(QCloseEvent * event);
+       bool isClosing() const { return is_closing_; }
 
 public:
        /// clean-up on hide.
@@ -56,10 +49,16 @@ public:
        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_;
+       ///
+       bool is_closing_;
 };
 
 } // namespace frontend