]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_factory.C
mathed uglyfication
[lyx.git] / src / mathed / math_factory.C
index f92e7715e71640639501679750f7871ed447aa39..dbf0223d3d452a2278f6046b999b99385abc43c8 100644 (file)
@@ -20,6 +20,7 @@
 #include "math_casesinset.h"
 #include "math_colorinset.h"
 #include "math_decorationinset.h"
+#include "math_dfracinset.h"
 #include "math_dotsinset.h"
 #include "math_ertinset.h"
 #include "math_fboxinset.h"
@@ -64,6 +65,7 @@
 using lyx::support::LibFileSearch;
 using lyx::support::split;
 
+using std::string;
 using std::endl;
 using std::istringstream;
 
@@ -309,7 +311,11 @@ MathAtom createMathInset(string const & s)
        if (s == "boldsymbol")
                return MathAtom(new MathBoldsymbolInset);
        if (s == "color")
-               return MathAtom(new MathColorInset);
+               return MathAtom(new MathColorInset(true));
+       if (s == "textcolor")
+               return MathAtom(new MathColorInset(false));
+       if (s == "dfrac")
+               return MathAtom(new MathDfracInset);
 
        if (MathMacroTable::has(s))
                return MathAtom(new MathMacro(s));