]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocModel.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / TocModel.h
index 6385a586b5c61ea170bad2ead3d25394d71d1d3e..bc479c7de13044be924952f0dae059c2c1e3682c 100644 (file)
@@ -53,6 +53,8 @@ public:
        ///
        void reset();
        ///
+       void updateItem(DocIterator const & dit);
+       ///
        void clear();
        ///
        QAbstractItemModel * model();
@@ -111,9 +113,14 @@ public:
        ///
        void updateBackend() const;
        ///
+       void updateItem(QString const & type, DocIterator const & dit);
+       ///
        void sort(QString const & type, bool sort_it);
        ///
        bool isSorted(QString const & type) const;
+       /// the item that is currently selected
+       TocItem const currentItem(QString const & type,
+               QModelIndex const & index) const;
 
 Q_SIGNALS:
        /// Signal that the internal toc_models_ has been reset.