///
~InsetIndex();
///
- virtual InsetBase * clone() const {
- return new InsetIndex(params());
+ virtual std::auto_ptr<InsetBase> clone() const {
+ return std::auto_ptr<InsetBase>(new InsetIndex(params()));
}
///
dispatch_result localDispatch(FuncRequest const & cmd);
///
EDITABLE editable() const { return IS_EDITABLE; }
///
- Inset::Code lyxCode() const;
+ InsetOld::Code lyxCode() const;
///
int docbook(Buffer const *, std::ostream &, bool mixcont) const;
};
///
~InsetPrintIndex();
///
- InsetBase * clone() const {
- return new InsetPrintIndex(params());
+ virtual std::auto_ptr<InsetBase> clone() const {
+ return std::auto_ptr<InsetBase>(new InsetPrintIndex(params()));
}
///
//dispatch_result localDispatch(FuncRequest const & cmd);
///
bool display() const { return true; }
///
- Inset::Code lyxCode() const;
+ InsetOld::Code lyxCode() const;
///
string const getScreenLabel(Buffer const *) const;
///