]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
addToToc, pass parent ParConstIterator, fix bug 3711
[features.git] / src / insets / Inset.h
index a6b5090ef458b42e6c29a0c72c36a15a864ebef5..c98dcc3a973c1ac506c982ccd5bd34087ad821c6 100644 (file)
@@ -30,6 +30,7 @@ namespace lyx {
 class Buffer;
 class BufferParams;
 class BufferView;
+class ParConstIterator;
 class CursorSlice;
 class FuncRequest;
 class FuncStatus;
@@ -425,7 +426,8 @@ public:
         */
        virtual void addPreview(graphics::PreviewLoader &) const {}
        /// Add an entry to the TocList
-       virtual void addToToc(TocList &, Buffer const &) const {}
+       /// pit is the ParConstIterator of the paragraph containing the inset
+       virtual void addToToc(TocList &, Buffer const &, ParConstIterator & pit) const {}
 
 public:
        /// returns LyX code associated with the inset. Used for TOC, ...)