#include "TocBackend.h"
-#include <QObject>
#include <QStandardItemModel>
-#include <QStringListModel>
#include <vector>
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;
///
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