]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiToc.h
index f73291f48f439433d0525cb16a31a2a34bccaedc..9621f3e8207efc8afd7663ef1e439f4ce9c2b6be 100644 (file)
@@ -21,9 +21,7 @@
 
 #include "TocBackend.h"
 
-#include <QObject>
 #include <QStandardItemModel>
-#include <QStringListModel>
 
 #include <vector>
 
@@ -80,11 +78,7 @@ public:
        TocList const & tocs() const;
 
        /// Return the list of types available
-       std::vector<docstring> const & typeNames() const
-       { return type_names_; }
-
-       ///
-       int selectedType() { return selected_type_; }
+       QStringList const & typeNames() const { return type_names_; }
 
        /// Return the first TocItem before the cursor
        TocIterator currentTocItem(int type) const;
@@ -100,23 +94,20 @@ public:
        ///
        void updateBackend();
 
-       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_;
+       QStringList types_;
+       ///
+       QStringList type_names_;
 };
 
 } // namespace frontend