///
~InsetERT();
///
- Inset::Code lyxCode() const { return Inset::ERT_CODE; }
+ InsetCode lyxCode() const { return ERT_CODE; }
///
docstring name() const { return from_ascii("ERT"); }
///
void write(Buffer const & buf, std::ostream & os) const;
///
- void read(Buffer const & buf, Lexer & lex);
- ///
virtual docstring const editMessage() const;
///
- bool insetAllowed(Inset::Code code) const;
+ bool insetAllowed(InsetCode code) const;
///
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;
- ///
bool forceDefaultParagraphs(idx_type) const { return true; }
/// should paragraph indendation be ommitted in any case?
bool neverIndent(Buffer const &) const { return true; }
virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
///
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();
///