]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Less expensive OP first as this might be called often.
[lyx.git] / src / insets / InsetListings.h
index 41be4394ceb9a8c9431946c11b993395e6dbdebc..d75f96851e95c0aeda8d021f600388fc3c9c3644 100644 (file)
@@ -38,6 +38,8 @@ public:
        static void string2params(std::string const &, InsetListingsParams &);
        ///
        static std::string params2string(InsetListingsParams const &);
+       ///
+       bool isEnvironment() const override { return !params().isInline(); }
 private:
        ///
        bool isLabeled() const override { return true; }
@@ -46,7 +48,7 @@ private:
        ///
        InsetCode lyxCode() const override { return LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed
-       RowFlags rowFlags() const override;
+       int rowFlags() const override;
        ///
        docstring layoutName() const override;
        ///