]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFont.cpp
nullptr
[lyx.git] / src / mathed / InsetMathFont.cpp
index 6611590a4786b171f0f32b2c9f1344694ef2468e..2a0cb997aa15636665d5df6b046e731b151c8eae 100644 (file)
@@ -58,13 +58,11 @@ InsetMath::mode_type InsetMathFont::currentMode() const
 
 bool InsetMathFont::lockedMode() const
 {
-       if (key_->extra == "forcetext")
-               return true;
-       return false;
+       return key_->extra == "forcetext";
 }
 
 
-void InsetMathFont::write(WriteStream & os) const
+void InsetMathFont::write(TeXMathStream & os) const
 {
        // Close the mode changing command inserted during export if
        // we are going to output another mode changing command that
@@ -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(MathMLStream & ms) const
 {
        // FIXME These are not quite right, because they do not nest
        // correctly. A proper fix would presumably involve tracking
@@ -224,11 +222,11 @@ void InsetMathFont::mathmlize(MathStream & os) const
        // no support at present for textipa, textsc, noun
 
        if (!variant.empty())
-               os << MTag("mstyle", "mathvariant='" + variant + "'")
+               ms << MTag("mstyle", "mathvariant='" + variant + "'")
                   << cell(0)
                   << ETag("mstyle");
        else
-               os << cell(0);
+               ms << cell(0);
 }