]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiToc.h
index c7a797fb673a9ac3f8f678ae66043b6b9ca55ea4..d403bc94f9b38a0d58541c494d71eb3295b4c05f 100644 (file)
 
 #include "DockView.h"
 
-#include "insets/InsetCommandParams.h"
-
-#include "TocBackend.h"
-
-#include <QStandardItemModel>
-
-#include <vector>
-
 namespace lyx {
 namespace frontend {
 
@@ -42,13 +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.
@@ -65,6 +57,8 @@ public:
 private:
        ///
        TocWidget * widget_;
+       ///
+       bool is_closing_;
 };
 
 } // namespace frontend