]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
Change inset label from ": filename" to "Program Listing: filename" for listings...
[lyx.git] / src / insets / Inset.h
index b86f35c5426d6f41d0bf66ffbf72466f13452f49..620fc428e0e83a7c538082a26970b836b71eda64 100644 (file)
@@ -53,8 +53,7 @@ class ParConstIterator;
 class ParIterator;
 class Text;
 class TocList;
-class EmbeddedFile;
-class EmbeddedFileList;
+class FileNameList;
 
 
 namespace graphics { class PreviewLoader; }
@@ -362,6 +361,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 +436,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