]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathFactory.cpp
Native support for \smash[t] and \smash[b]
[lyx.git] / src / mathed / MathFactory.cpp
index 24e35c9b68911a74ae57d676b0ab8099abba953e..85fdf478565f6fa6ad11d4562161f6ec55839932 100644 (file)
@@ -118,7 +118,7 @@ bool canBeDisplayed(char_type c)
 }
 
 
-bool isUnicodeSymbolAvailable(docstring const & name, char_type & c)
+bool isUnicodeSymbolAvailable(docstring const & /*name*/, char_type & /*c*/)
 {
        // this is too fragile, e.g. prodes W instead of capital omega on OS X
 #if 0
@@ -561,6 +561,11 @@ MathAtom createInsetMath(docstring const & s, Buffer * buf)
                return MathAtom(new InsetMathCancelto(buf));
        if (s == "smash")
                return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smash));
+       // The following 2 string values are only for math toolbar use, no LaTeX names
+       if (s == "smashb")
+               return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smashb));
+       if (s == "smasht")
+               return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::smasht));
        if (s == "mathclap")
                return MathAtom(new InsetMathPhantom(buf, InsetMathPhantom::mathclap));
        if (s == "mathllap")