*/
-class InsetListings : public InsetERT {
+class InsetListings : public InsetCollapsable {
public:
///
InsetListings(BufferParams const &, InsetListingsParams const & par = InsetListingsParams());
///
~InsetListings();
///
- Inset::Code lyxCode() const { return Inset::LISTINGS_CODE; }
+ InsetCode lyxCode() const { return LISTINGS_CODE; }
/// lstinline is inlined, normal listing is displayed
virtual DisplayType display() const;
///
///
virtual docstring const editMessage() const;
///
+ bool isMacroScope(Buffer const &) const { return true; }
+ ///
int latex(Buffer const &, odocstream &, OutputParams const &) const;
///
void validate(LaTeXFeatures &) const;
///
- bool metrics(MetricsInfo &, Dimension &) const;
- ///
- void draw(PainterInfo & pi, int x, int y) const;
- ///
bool showInsetDialog(BufferView *) const;
///
- void getDrawFont(Font &) const;
- ///
InsetListingsParams const & params() const { return params_; }
///
InsetListingsParams & params() { return params_; }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
private:
- virtual std::auto_ptr<Inset> doClone() const;
- ///
- void init();
+ virtual Inset * clone() const;
///
void setButtonLabel();
///