InsetFormulaMacro::InsetFormulaMacro (docstring const & name, int nargs, docstring const & type) : InsetMathNest(2), name_(name) { MathMacroTable::create(MathAtom(new MathMacroTemplate(name, nargs, type))); }
MathAtom & MathAtom::operator=(MathAtom const & at) { // copy then move-assign return operator=(MathAtom(at)); }
void InsetFormulaMacro::read(istream & is) { auto_ptr<MathMacroTemplate> p(new MathMacroTemplate(is)); name_ = p->name(); MathMacroTable::create(MathAtom(p.release())); }