]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
* src/insets/InsetSpace.cpp:
[lyx.git] / src / insets / Inset.h
index b86f35c5426d6f41d0bf66ffbf72466f13452f49..172add48a9881ccce84c894c90a12cb1a564504c 100644 (file)
@@ -53,8 +53,7 @@ class ParConstIterator;
 class ParIterator;
 class Text;
 class TocList;
-class EmbeddedFile;
-class EmbeddedFileList;
+class FileNameList;
 
 
 namespace graphics { class PreviewLoader; }
@@ -104,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.
        /**
@@ -362,6 +364,9 @@ public:
        /// Is the width forced to some value?
        virtual bool hasFixedWidth() const { return false; }
 
+       /// Is the content of this inset part of the output document?
+       virtual bool producesOutput() const { return true; }
+
        /// \return Tool tip for this inset.
        /// This default implementation returns an empty string.
        virtual docstring toolTip(BufferView const & bv, int x, int y) const;
@@ -434,12 +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 {}
-       /// report files that can be embedded with the lyx file
-       virtual void registerEmbeddedFiles(EmbeddedFileList &) const {}
-       /// update the properties of an embedded file of an inset
-       /// the name of the embedded file should not change.
-       virtual void updateEmbeddedFile(EmbeddedFile 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