]> 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 5d21a0fe1df8606875cc3f173fcf44908cbe8623..620fc428e0e83a7c538082a26970b836b71eda64 100644 (file)
@@ -361,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;
@@ -433,7 +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 {}
+       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