From 707d369d72e0bf8da9ab3f405b20aeafe68f9758 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 1 Apr 2011 21:18:37 +0000 Subject: [PATCH] Get math within text working for XHTML export. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38193 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathEnsureMath.cpp | 12 ++++++++++++ src/mathed/InsetMathEnsureMath.h | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/mathed/InsetMathEnsureMath.cpp b/src/mathed/InsetMathEnsureMath.cpp index 3fdb3fbba9..7221322db0 100644 --- a/src/mathed/InsetMathEnsureMath.cpp +++ b/src/mathed/InsetMathEnsureMath.cpp @@ -72,7 +72,19 @@ void InsetMathEnsureMath::write(WriteStream & os) const void InsetMathEnsureMath::mathmlize(MathStream & os) const { + os << "[EM]"; + SetMode mathmode(os, false); os << cell(0); + os << "[/EM]"; +} + + +void InsetMathEnsureMath::htmlize(HtmlStream & os) const +{ + os << "[EM]"; + SetHTMLMode mathmode(os, false); + os << cell(0); + os << "[/EM]"; } diff --git a/src/mathed/InsetMathEnsureMath.h b/src/mathed/InsetMathEnsureMath.h index ccc136a157..83edf47482 100644 --- a/src/mathed/InsetMathEnsureMath.h +++ b/src/mathed/InsetMathEnsureMath.h @@ -38,6 +38,8 @@ public: /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void infoize(odocstream & os) const; /// InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; }