namespace lyx {
class LaTeXFeatures;
+struct TexString;
/////////////////////////////////////////////////////////////////////////
//
//
/////////////////////////////////////////////////////////////////////////
-/// A collapsable text inset for program listings.
-class InsetListings : public InsetCollapsable
+/// A captionable and collapsable text inset for program listings.
+class InsetListings : public InsetCaptionable
{
public:
///
DisplayType display() const;
///
docstring layoutName() const { return from_ascii("Listings"); }
- // Update the counters of this inset and of its contents
- void updateBuffer(ParIterator const &, UpdateType);
///
void write(std::ostream & os) const;
///
///
InsetListingsParams & params() { return params_; }
///
- docstring contextMenuName() const;
+ std::string contextMenuName() const;
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
///
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; }
+ bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE || c == QUOTE_CODE; }
///
InsetListingsParams params_;