From b129d5ebdc265f6fcca96eabd9607deda9ae0b76 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 31 Dec 2009 21:09:28 +0000 Subject: [PATCH] We do not need special treatment of differentials for MathML. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32716 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/HTML/HTML.notes | 2 -- src/mathed/InsetMathDiff.cpp | 12 ------------ src/mathed/InsetMathDiff.h | 2 -- src/mathed/MathExtern.cpp | 6 ++++-- 4 files changed, 4 insertions(+), 18 deletions(-) diff --git a/development/HTML/HTML.notes b/development/HTML/HTML.notes index c126862184..8d6420d12a 100644 --- a/development/HTML/HTML.notes +++ b/development/HTML/HTML.notes @@ -56,8 +56,6 @@ Math - Array - Box: There is a general issue here with text mode nesting. See the FIXME attached to the SetMode class. - - Cases - - Diff: Code exists, but I do not know if it is right. - Binom (in Frac): None of these tags exist in MathML 2.0. We'll just output a fraction with delimiters. - Lefteqn diff --git a/src/mathed/InsetMathDiff.cpp b/src/mathed/InsetMathDiff.cpp index 1e990d7ffb..9052d8999b 100644 --- a/src/mathed/InsetMathDiff.cpp +++ b/src/mathed/InsetMathDiff.cpp @@ -95,18 +95,6 @@ void InsetMathDiff::mathematica(MathematicaStream & os) const } -void InsetMathDiff::mathmlize(MathStream & os) const -{ - os << "diff("; - for (idx_type idx = 0; idx < nargs(); ++idx) { - if (idx != 0) - os << ','; - os << cell(idx); - } - os << ')'; -} - - void InsetMathDiff::write(WriteStream &) const { LYXERR0("should not happen"); diff --git a/src/mathed/InsetMathDiff.h b/src/mathed/InsetMathDiff.h index 6253168397..063e5214cf 100644 --- a/src/mathed/InsetMathDiff.h +++ b/src/mathed/InsetMathDiff.h @@ -39,8 +39,6 @@ public: /// void mathematica(MathematicaStream &) const; /// - void mathmlize(MathStream &) const; - /// void maxima(MaximaStream &) const; /// void write(WriteStream & os) const; diff --git a/src/mathed/MathExtern.cpp b/src/mathed/MathExtern.cpp index afeba3ebe2..1279551fed 100644 --- a/src/mathed/MathExtern.cpp +++ b/src/mathed/MathExtern.cpp @@ -957,8 +957,10 @@ void extractStructure(MathData & ar, ExternalMath kind) extractNumbers(ar); extractMatrices(ar); extractFunctions(ar, kind); - extractDets(ar); - extractDiff(ar); + if (kind != MATHML) { + extractDets(ar); + extractDiff(ar); + } extractExps(ar); extractLims(ar); if (kind != MATHML) -- 2.39.5