コード例 #1
0
ファイル: InsetFormulaMacro.cpp プロジェクト: djmitche/lyx
InsetFormulaMacro::InsetFormulaMacro
		(docstring const & name, int nargs, docstring const & type)
	: InsetMathNest(2), name_(name)
{
	MathMacroTable::create(MathAtom(new MathMacroTemplate(name, nargs, type)));
}
コード例 #2
0
ファイル: MathAtom.cpp プロジェクト: cburschka/lyx
MathAtom & MathAtom::operator=(MathAtom const & at)
{
	// copy then move-assign
	return operator=(MathAtom(at));
}
コード例 #3
0
ファイル: InsetFormulaMacro.cpp プロジェクト: djmitche/lyx
void InsetFormulaMacro::read(istream & is)
{
	auto_ptr<MathMacroTemplate> p(new MathMacroTemplate(is));
	name_ = p->name();
	MathMacroTable::create(MathAtom(p.release()));
}