From c95c30184d5c6693ffc6a5397e05ac34adc44743 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 31 Dec 2009 20:44:09 +0000 Subject: [PATCH] MBox is currently inactive, but in case it becomes active.... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32713 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/HTML/HTML.notes | 4 ++-- src/mathed/InsetMathMBox.cpp | 6 ++++++ src/mathed/InsetMathMBox.h | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/development/HTML/HTML.notes b/development/HTML/HTML.notes index 26447ae68e..c126862184 100644 --- a/development/HTML/HTML.notes +++ b/development/HTML/HTML.notes @@ -54,13 +54,13 @@ Math isues, and not all the insets work. Here are the ones I know still need work: - AMSArray - 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 - - MBox: There is a general issue here with text mode nesting. See the FIXME attached - to the SetMode class. - Overset: Use . - Par? - Phantom: There is some support for this in MathML.... diff --git a/src/mathed/InsetMathMBox.cpp b/src/mathed/InsetMathMBox.cpp index cea14a23b9..0210bc4b80 100644 --- a/src/mathed/InsetMathMBox.cpp +++ b/src/mathed/InsetMathMBox.cpp @@ -118,4 +118,10 @@ void InsetMathMBox::cursorPos(BufferView const & bv, } +void InsetMathMBox::mathmlize(MathStream & ms) const +{ + SetMode textmode(ms, true, from_ascii("class='mbox'")); + ms << cell(0); +} + } // namespace lyx diff --git a/src/mathed/InsetMathMBox.h b/src/mathed/InsetMathMBox.h index e393f908ff..1e5654e940 100644 --- a/src/mathed/InsetMathMBox.h +++ b/src/mathed/InsetMathMBox.h @@ -48,6 +48,8 @@ public: /// int latex(odocstream & os, OutputParams const & runparams) const; /// + void mathmlize(MathStream &) const; + /// Text * getText(int) const; /// void cursorPos(BufferView const & bv, CursorSlice const & sl, -- 2.39.5