]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
fix http://bugzilla.lyx.org/show_bug.cgi?id=4998
[lyx.git] / src / insets / Inset.h
index be04893b4593eccfc18b2f32faba61da06092dcc..172add48a9881ccce84c894c90a12cb1a564504c 100644 (file)
@@ -103,6 +103,9 @@ public:
        /// retrieve associated Buffer
        virtual Buffer & buffer();
        virtual Buffer const & buffer() const;
+       /// This checks whether the Buffer * actually points to an open 
+       /// Buffer. It might not if that Buffer has been closed.
+       bool isBufferValid() const;
 
        /// initialize view for this inset.
        /**
@@ -436,7 +439,7 @@ public:
        virtual void addPreview(graphics::PreviewLoader &) const {}
        /// Add an entry to the TocList
        /// pit is the ParConstIterator of the paragraph containing the inset
-       virtual void addToToc(ParConstIterator const &) const {}
+       virtual void addToToc(DocIterator const &) {}
        /// Fill keys with BibTeX information
        virtual void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const {}
        /// Update the counters of this inset and of its contents