///
bool insertInset(BufferView *, Inset *);
///
- bool insetAllowed(Inset::Code) const { return false; }
+ bool insetAllowed(Inset::Code code) const { return code == Inset::NEWLINE_CODE; }
///
void setFont(BufferView *, LyXFont const &,
bool toggleall = false, bool selectall = false);
///
- void edit(BufferView *, int, int, mouse_button::state);
- ///
- void edit(BufferView * bv, bool front = true);
- ///
EDITABLE editable() const;
///
int latex(Buffer const *, std::ostream &, bool fragile,
///
int width(BufferView *, LyXFont const &) const;
///
- void draw(BufferView *, const LyXFont &, int , float &, bool) const;
+ void draw(BufferView *, const LyXFont &, int , float &) const;
/// set the status of the inset
void status(BufferView *, ERTStatus const st) const;
///
///
int getMaxWidth(BufferView *, UpdatableInset const *) const;
///
- void update(BufferView *, LyXFont const &, bool =false);
+ void update(BufferView *, bool =false);
private:
///
///
InsetERTMailer(InsetERT & inset);
///
- virtual Inset & inset() const { return inset_; }
+ virtual InsetBase & inset() const { return inset_; }
///
virtual string const & name() const { return name_; }
///
static string const params2string(InsetERT::ERTStatus);
private:
///
- string const name_;
+ static string const name_;
///
InsetERT & inset_;
};
-
#endif