///
~InsetERT();
///
- InsetBase::Code lyxCode() const { return InsetBase::ERT_CODE; }
+ InsetCode lyxCode() const { return ERT_CODE; }
///
- void write(Buffer const & buf, std::ostream & os) const;
+ docstring name() const { return from_ascii("ERT"); }
///
- void read(Buffer const & buf, Lexer & lex);
+ void write(Buffer const & buf, std::ostream & os) const;
///
virtual docstring const editMessage() const;
///
- bool insetAllowed(InsetBase::Code code) const;
+ bool insetAllowed(InsetCode code) const;
///
int latex(Buffer const &, odocstream &,
OutputParams const &) const;
///
int plaintext(Buffer const &, odocstream &,
- OutputParams const &) const;
+ OutputParams const &) const;
///
int docbook(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(LyXFont &) 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<InsetBase> doClone() const;
- ///
- void init();
+ virtual Inset * clone() const;
///
void setButtonLabel();
///
///
InsetERTMailer(InsetERT & inset);
///
- virtual InsetBase & inset() const { return inset_; }
+ virtual Inset & inset() const { return inset_; }
///
virtual std::string const & name() const { return name_; }
///