]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Cocoa based Qt-4.6 needs to paint every character separately to match metrics computa...
[lyx.git] / src / insets / InsetListings.h
index 9dc5a56e2365998a0e0b1f81adc9a96d9955c82e..c9d833a4adf061626b5c9ff00cfd129576245e0f 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);
        ///
@@ -55,7 +55,7 @@ private:
        ///
        void read(Lexer & lex);
        ///
-       int latex(otexstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///