3 #include "math_parser.h"
4 #include "math_bigopinset.h"
5 #include "math_binominset.h"
6 #include "math_decorationinset.h"
7 #include "math_dotsinset.h"
8 #include "math_funcinset.h"
9 #include "math_funcliminset.h"
10 #include "math_fracinset.h"
11 #include "math_macro.h"
12 #include "math_macrotable.h"
13 #include "math_noglyphinset.h"
14 #include "math_notinset.h"
15 #include "math_rootinset.h"
16 #include "math_spaceinset.h"
17 #include "math_sqrtinset.h"
18 #include "math_symbolinset.h"
19 #include "math_stackrelinset.h"
22 MathInset * createMathInset(latexkeys const * l)
27 return new MathNoglyphInset(l);
29 return new MathBigopInset(l);
31 return new MathFuncLimInset(l);
33 return new MathSymbolInset(l);
35 return new MathStackrelInset;
38 return new MathBinomInset;
41 return new MathFracInset;
43 return new MathFracInset(true);
45 return new MathNotInset;
47 return new MathSqrtInset;
49 return new MathRootInset;
50 case LM_TK_DECORATION:
51 return new MathDecorationInset(l);
53 return new MathSpaceInset(l->id);
55 return new MathDotsInset(l);
57 return new MathFuncInset(l->name);
61 MathInset * createMathInset(string const & s)
63 latexkeys const * l = in_word_set(s);
65 return createMathInset(l);
67 if (MathMacroTable::hasTemplate(s))
68 return new MathMacro(MathMacroTable::provideTemplate(s));
70 return new MathFuncInset(s);