X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetListings.h;h=84acbb93db75e8c968651bb558523855347fca13;hb=3d7ede605978461a6bd67b250925fcc8bf8404c3;hp=d307126fe7fecbdd3c8098385ee3bb28a6cfdc73;hpb=222b3580d21a8ce2d8c499db4de885e9b8a94d88;p=lyx.git diff --git a/src/insets/InsetListings.h b/src/insets/InsetListings.h index d307126fe7..84acbb93db 100644 --- a/src/insets/InsetListings.h +++ b/src/insets/InsetListings.h @@ -25,8 +25,8 @@ class LaTeXFeatures; // ///////////////////////////////////////////////////////////////////////// -/// A collapsable text inset for program listings. -class InsetListings : public InsetCollapsable +/// A captionable and collapsable text inset for program listings. +class InsetListings : public InsetCaptionable { public: /// @@ -40,22 +40,20 @@ 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"); } - // Update the counters of this inset and of its contents - void updateBuffer(ParIterator const &, UpdateType); + docstring layoutName() const { return from_ascii("Listings"); } /// void write(std::ostream & os) const; /// void read(Lexer & lex); /// - int latex(odocstream &, OutputParams const &) const; + void latex(otexstream &, OutputParams const &) const; /// docstring xhtml(XHTMLStream &, OutputParams const &) const; /// @@ -67,7 +65,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); ///