]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiToc.h
index 4c9b6d64fc67f6a239a7c5cf3a57740ae692cb3d..99e0e6dba737e883d5e4cd064fcbf5850e57653c 100644 (file)
@@ -40,7 +40,7 @@ class GuiToc : public DockView
 public:
        ///
        GuiToc(
-               GuiViewBase & parent, ///< the main window where to dock.
+               GuiView & parent, ///< the main window where to dock.
                Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
                Qt::WindowFlags flags = 0);
 
@@ -72,6 +72,8 @@ private:
        TocWidget * widget_;
        ///
        std::vector<TocModel *> toc_models_;
+       ///             
+       void clearTocModels();
 
 public:
        ///
@@ -81,9 +83,6 @@ public:
        std::vector<docstring> const & typeNames() const
        { return type_names_; }
 
-       ///
-       int selectedType() { return selected_type_; }
-
        /// Return the first TocItem before the cursor
        TocIterator currentTocItem(int type) const;
 
@@ -100,21 +99,16 @@ public:
 
        std::vector<std::string> types_;
        std::vector<docstring> type_names_;
-       int selected_type_;
 
        /// Return the guiname from a given cmdName of the TOC param
        docstring guiName(std::string const & type) const;
 
        /// clean-up on hide.
-       void clearParams() { params_.clear(); }
+       void clearParams() {}
        ///
        void dispatchParams();
        ///
        bool isBufferDependent() const { return true; }
-
-private:
-       ///
-       InsetCommandParams params_;
 };
 
 } // namespace frontend