virtual ColorCode ColorName() const { return Color_newpage; }
private:
- Inset * clone() const { return new InsetNewpage; }
+ Inset * clone() const { return new InsetNewpage(*this); }
};
ColorCode ColorName() const { return Color_pagebreak; }
private:
- virtual Inset * clone() const
- {
- return new InsetPagebreak;
- }
+ virtual Inset * clone() const { return new InsetPagebreak(*this); }
};
std::string getCmdName() const { return "\\clearpage"; }
private:
- virtual Inset * clone() const
- {
- return new InsetClearPage;
- }
+ virtual Inset * clone() const { return new InsetClearPage(*this); }
};
std::string getCmdName() const { return "\\cleardoublepage"; }
private:
- virtual Inset * clone() const
- {
- return new InsetClearDoublePage;
- }
+ virtual Inset * clone() const { return new InsetClearDoublePage(*this); }
};
} // namespace lyx
static bool isCompatibleCommand(std::string const & s)
{ return s == "nomenclature"; }
private:
- Inset * clone() const { return new InsetNomencl(params()); }
+ Inset * clone() const { return new InsetNomencl(*this); }
/// unique id for this nomenclature entry for docbook export
docstring nomenclature_entry_id;
};
static bool isCompatibleCommand(std::string const & s)
{ return s == "printnomenclature"; }
private:
- Inset * clone() const { return new InsetPrintNomencl(params()); }
+ Inset * clone() const { return new InsetPrintNomencl(*this); }
};