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