#include "inset.h"
-class InsetNewline : public Inset {
+class InsetNewline : public InsetOld {
public:
InsetNewline() {}
- virtual Inset * clone() 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 metrics(MetricsInfo &, Dimension &) const;