X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathFont.cpp;h=2a0cb997aa15636665d5df6b046e731b151c8eae;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=512eb629ad1606c18c8c977ea8f5cc11db20d521;hpb=e709a6626e731b460a98ea34d762a776de90b54c;p=lyx.git diff --git a/src/mathed/InsetMathFont.cpp b/src/mathed/InsetMathFont.cpp index 512eb629ad..2a0cb997aa 100644 --- a/src/mathed/InsetMathFont.cpp +++ b/src/mathed/InsetMathFont.cpp @@ -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 @@ -136,8 +134,6 @@ void InsetMathFont::validate(LaTeXFeatures & features) const features.require("mhchem"); if (fontname == "mathds") features.require("dsfont"); - if (fontname == "mathbbm") - features.require("bbm"); } else if (features.runparams().math_flavor == OutputParams::MathAsHTML) { features.addCSSSnippet( "span.normal{font: normal normal normal inherit serif;}\n" @@ -195,7 +191,7 @@ void InsetMathFont::htmlize(HtmlStream & os) const // The fonts we want to support are listed in lib/symbols -void InsetMathFont::mathmlize(MathStream & ms) 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