]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Check in InsetLabel if LFUN_INSET_MODIFY is intended for us.
[lyx.git] / src / insets / InsetListings.h
index d307126fe7fecbdd3c8098385ee3bb28a6cfdc73..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);
        ///
@@ -55,7 +55,7 @@ private:
        ///
        void read(Lexer & lex);
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
@@ -67,7 +67,7 @@ private:
        ///
        InsetListingsParams & params() { return params_; }
        ///
-       docstring contextMenu(BufferView const & bv, int x, int y) const;
+       std::string contextMenuName() const;
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///