#include "inset.h"
-class InsetNewline : public Inset {
+class InsetNewline : public InsetOld {
public:
InsetNewline() {}
- virtual Inset * clone(Buffer const &, bool = false) const {
- return new InsetNewline;
+ virtual std::auto_ptr<InsetBase> clone() const {
+ return std::auto_ptr<InsetBase>(new InsetNewline);
}
- Inset::Code lyxCode() const { return Inset::NEWLINE_CODE; }
+ InsetOld::Code lyxCode() const { return InsetOld::NEWLINE_CODE; }
- void dimension(BufferView *, LyXFont const &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
- virtual void draw(BufferView *, LyXFont const &,
- int baseline, float & x) const;
+ virtual void draw(PainterInfo & pi, int x, int y) const;
- virtual int latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
+ virtual int latex(Buffer const *, std::ostream &,
+ LatexRunParams const &) const;
virtual int ascii(Buffer const *, std::ostream &, int linelen) const;