namespace lyx {
class LaTeXFeatures;
+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:
///
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;
///
///
void latex(otexstream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const;
+ ///
+ void docbook(XMLStream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
///
docstring const buttonLabel(BufferView const & bv) const;
///
- docstring getCaption(OutputParams const &) const;
+ TexString getCaption(OutputParams const &) const;
+ ///
+ bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE || c == QUOTE_CODE; }
///
- bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE; }
+ Encoding const * forcedEncoding(Encoding const *, Encoding const *) const;
///
InsetListingsParams params_;