X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetListings.h;h=88d380a8b2c30e159d96d4674eb0029d9a8fef24;hb=142caff8336c54627606c09d3ce5bb7de7a8adb6;hp=5396b7d0e1f0140a48808034dffeaa2f659faa48;hpb=7eb04d61d98563ea47785e5e8f948872717c24ec;p=lyx.git diff --git a/src/insets/InsetListings.h b/src/insets/InsetListings.h index 5396b7d0e1..88d380a8b2 100644 --- a/src/insets/InsetListings.h +++ b/src/insets/InsetListings.h @@ -13,7 +13,6 @@ #define INSET_LISTINGS_H #include "LaTeXFeatures.h" -#include "InsetERT.h" #include "InsetListingsParams.h" @@ -30,7 +29,7 @@ class InsetListings : public InsetCollapsable { public: /// - InsetListings(Buffer const &, InsetListingsParams const & par = InsetListingsParams()); + InsetListings(Buffer *, InsetListingsParams const & par = InsetListingsParams()); /// ~InsetListings(); /// @@ -41,22 +40,24 @@ private: /// bool isLabeled() const { return true; } /// + bool noFontChange() const { return true; } + /// 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 updateLabels(ParIterator const &); + void updateBuffer(ParIterator const &, UpdateType); /// void write(std::ostream & os) const; /// void read(Lexer & lex); /// - docstring editMessage() const; - /// int latex(odocstream &, OutputParams const &) const; /// + docstring xhtml(XHTMLStream &, OutputParams const &) const; + /// void validate(LaTeXFeatures &) const; /// bool showInsetDialog(BufferView *) const; @@ -76,6 +77,8 @@ private: docstring const buttonLabel(BufferView const & bv) const; /// docstring getCaption(OutputParams const &) const; + /// + bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE; } /// InsetListingsParams params_;