]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Do not output deleted rows columns if show changes in output is false
[lyx.git] / src / insets / InsetListings.h
index 14dbda94d096f543cae1a391a0d659c4c9b61146..4be28f850dd942c108d5e83b021f3e9e7f1927a1 100644 (file)
@@ -26,7 +26,7 @@ struct TexString;
 //
 /////////////////////////////////////////////////////////////////////////
 
-/// A captionable and collapsable text inset for program listings.
+/// A captionable and collapsible text inset for program listings.
 class InsetListings : public InsetCaptionable
 {
 public:
@@ -48,7 +48,7 @@ private:
        /// lstinline is inlined, normal listing is displayed
        DisplayType display() const;
        ///
-       docstring layoutName() const { return from_ascii("Listings"); }
+       docstring layoutName() const;
        ///
        void write(std::ostream & os) const;
        ///
@@ -78,7 +78,9 @@ private:
        ///
        TexString getCaption(OutputParams const &) const;
        ///
-       bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE; }
+       bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE || c == QUOTE_CODE; }
+       ///
+       Encoding const * forcedEncoding(Encoding const *, Encoding const *) const;
 
        ///
        InsetListingsParams params_;