]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Do not allow a program listing to be in a font changing command.
[lyx.git] / src / insets / InsetListings.h
index fcf16726ea68054c7dcb3c343742f1926d456582..8883b98343b3738d1a514a8acc3475c0b064f756 100644 (file)
@@ -30,7 +30,7 @@ class InsetListings : public InsetCollapsable
 {
 public:
        ///
-       InsetListings(Buffer const &, InsetListingsParams const & par = InsetListingsParams());
+       InsetListings(Buffer *, InsetListingsParams const & par = InsetListingsParams());
        ///
        ~InsetListings();
        ///
@@ -41,6 +41,8 @@ private:
        ///
        bool isLabeled() const { return true; }
        ///
+       bool noFontChange() const { return true; }
+       ///
        InsetCode lyxCode() const { return LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed
        DisplayType display() const;