]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Remove dead code + whitespace
[lyx.git] / src / insets / InsetListings.h
index 3741f6d0dbd3a1ead79934a9c3b329f7c60ef500..0782d68ec7c2f6f5b42d6f7d547b32accf88ec28 100644 (file)
@@ -40,14 +40,14 @@ public:
 private:
        ///
        bool isLabeled() const { return true; }
-       ///
-       bool noFontChange() const { return true; }
+       /// false is needed since listings do their own font handling.
+       bool inheritFont() const { return false; }
        ///
        InsetCode lyxCode() const { return LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed
        DisplayType display() const;
        ///
-       docstring name() const { return from_ascii("Listings"); }
+       docstring layoutName() const { return from_ascii("Listings"); }
        // Update the counters of this inset and of its contents
        void updateBuffer(ParIterator const &, UpdateType);
        ///
@@ -67,7 +67,7 @@ private:
        ///
        InsetListingsParams & params() { return params_; }
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///