]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMathFont.cpp
index c5932dd5f388fed7213c45214323d2a72113f5fc..1de00464a7326641ee8b3cb6012de649c9f77df4 100644 (file)
@@ -58,9 +58,7 @@ InsetMath::mode_type InsetMathFont::currentMode() const
 
 bool InsetMathFont::lockedMode() const
 {
-       if (key_->extra == "forcetext")
-               return true;
-       return false;
+       return key_->extra == "forcetext";
 }
 
 
@@ -193,7 +191,7 @@ void InsetMathFont::htmlize(HtmlStream & os) const
 
 
 // The fonts we want to support are listed in lib/symbols
-void InsetMathFont::mathmlize(MathStream & os) const
+void InsetMathFont::mathmlize(MathStream & ms) const
 {
        // FIXME These are not quite right, because they do not nest
        // correctly. A proper fix would presumably involve tracking
@@ -223,18 +221,12 @@ void InsetMathFont::mathmlize(MathStream & os) const
                variant = "monospace";
        // no support at present for textipa, textsc, noun
 
-       if (!variant.empty()) {
-               if (tag == "mathbb" || tag == "mathds") {
-                       os << MTag("mstyle", "class='mathbb' mathvariant='" + variant + "'")
-                          << cell(0)
-                          << ETag("mstyle");
-               } else {
-                       os << MTag("mstyle", "mathvariant='" + variant + "'")
-                                << cell(0)
-                                << ETag("mstyle");
-               }
-       } else
-               os << cell(0);
+       if (!variant.empty())
+               ms << MTag("mstyle", "mathvariant='" + variant + "'")
+                  << cell(0)
+                  << ETag("mstyle");
+       else
+               ms << cell(0);
 }