public:
InsetPagebreak() {}
- Inset::Code lyxCode() const { return Inset::PAGEBREAK_CODE; }
+ InsetCode lyxCode() const { return PAGEBREAK_CODE; }
- bool metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const;
void draw(PainterInfo & pi, int x, int y) const;
virtual std::string getCmdName() const { return "\\newpage"; }
private:
- virtual std::auto_ptr<Inset> doClone() const
+ virtual Inset * clone() const
{
- return std::auto_ptr<Inset>(new InsetPagebreak);
+ return new InsetPagebreak;
}
};
std::string getCmdName() const { return "\\clearpage"; }
private:
- virtual std::auto_ptr<Inset> doClone() const
+ virtual Inset * clone() const
{
- return std::auto_ptr<Inset>(new InsetClearPage);
+ return new InsetClearPage;
}
};
std::string getCmdName() const { return "\\cleardoublepage"; }
private:
- virtual std::auto_ptr<Inset> doClone() const
+ virtual Inset * clone() const
{
- return std::auto_ptr<Inset>(new InsetClearDoublePage);
+ return new InsetClearDoublePage;
}
};