]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Restore XHTML output for InsetListings.
[lyx.git] / src / insets / InsetListings.h
index 09d1ac73000f837939ede43789e6e2fc51c6f24d..fc2ba3bd5ad564461236726684f24300604a2d88 100644 (file)
@@ -30,7 +30,7 @@ class InsetListings : public InsetCollapsable
 {
 public:
        ///
-       InsetListings(Buffer const &, InsetListingsParams const & par = InsetListingsParams());
+       InsetListings(Buffer *, InsetListingsParams const & par = InsetListingsParams());
        ///
        ~InsetListings();
        ///
@@ -41,22 +41,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 updateLabels(ParIterator const &, bool);
        ///
        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;
@@ -73,7 +75,7 @@ private:
        ///
        Inset * clone() const { return new InsetListings(*this); }
        ///
-       void setButtonLabel(BufferView const & bv);
+       docstring const buttonLabel(BufferView const & bv) const;
        ///
        docstring getCaption(OutputParams const &) const;