InsetPagebreak() {}
- std::auto_ptr<InsetBase> clone() const {
- return std::auto_ptr<InsetBase>(new InsetPagebreak);
- }
-
- InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
+ InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
void metrics(MetricsInfo &, Dimension &) const;
bool directWrite() const { return true; }
bool display() const { return true; }
+private:
+ virtual std::auto_ptr<InsetBase> doClone() const
+ {
+ return std::auto_ptr<InsetBase>(new InsetPagebreak);
+ }
};
#endif // INSET_NEWLINE_H