]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
InsetBox.cpp: only shaded boxes can have multiple paragraphs when there is no inner box
[lyx.git] / src / insets / InsetListings.h
index 4459c9ee14a742cb45c89a0352c4584044e73419..88d380a8b2c30e159d96d4674eb0029d9a8fef24 100644 (file)
@@ -13,7 +13,6 @@
 #define INSET_LISTINGS_H
 
 #include "LaTeXFeatures.h"
-#include "InsetERT.h"
 #include "InsetListingsParams.h"
 
 
@@ -49,7 +48,7 @@ private:
        ///
        docstring name() const { return from_ascii("Listings"); }
        // Update the counters of this inset and of its contents
-       void updateLabels(ParIterator const &, bool);
+       void updateBuffer(ParIterator const &, UpdateType);
        ///
        void write(std::ostream & os) const;
        ///
@@ -57,7 +56,7 @@ private:
        ///
        int latex(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(odocstream &, OutputParams const &) const;
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -78,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_;