]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Use new rowFlags() values to remove some inset hardcoding.
[lyx.git] / src / insets / InsetListings.h
index 902fa0437e64009770293859e2540322c3b53fd9..06c310739f76e484ad2b6225f9be65a322c1cc9d 100644 (file)
@@ -26,7 +26,7 @@ struct TexString;
 //
 /////////////////////////////////////////////////////////////////////////
 
-/// A captionable and collapsable text inset for program listings.
+/// A captionable and collapsible text inset for program listings.
 class InsetListings : public InsetCaptionable
 {
 public:
@@ -46,9 +46,9 @@ private:
        ///
        InsetCode lyxCode() const { return LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed
-       DisplayType display() const;
+       RowFlags rowFlags() const;
        ///
-       docstring layoutName() const { return from_ascii("Listings"); }
+       docstring layoutName() const;
        ///
        void write(std::ostream & os) const;
        ///
@@ -56,7 +56,7 @@ private:
        ///
        void latex(otexstream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -79,6 +79,8 @@ private:
        TexString getCaption(OutputParams const &) const;
        ///
        bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE || c == QUOTE_CODE; }
+       ///
+       Encoding const * forcedEncoding(Encoding const *, Encoding const *) const;
 
        ///
        InsetListingsParams params_;