From 54b4b8e6b468da638b54187fca7be9c1dce8ddd1 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 14 Nov 2009 15:25:32 +0000 Subject: [PATCH] Get MathML output for XHTML working a bit. Turns out MathML is already here, for the most part, so this will not be too bad at all. Anyone else think that is very cool?! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31979 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 13 +++++++++++++ src/mathed/InsetMathHull.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index d68e3bc742..b89d5be5b8 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1735,6 +1735,19 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons } +docstring InsetMathHull::xhtml(odocstream & os, OutputParams const &) const +{ + if (getType() == hullSimple) + os << ""; + else + os << ""; + MathStream ms(os); + InsetMathGrid::mathmlize(ms); + os << ""; + return docstring(); +} + + void InsetMathHull::tocString(odocstream & os) const { plaintext(os, OutputParams(0)); diff --git a/src/mathed/InsetMathHull.h b/src/mathed/InsetMathHull.h index 4cdb1b4f88..db4ea41770 100644 --- a/src/mathed/InsetMathHull.h +++ b/src/mathed/InsetMathHull.h @@ -122,6 +122,8 @@ public: int plaintext(odocstream &, OutputParams const &) const; /// int docbook(odocstream &, OutputParams const &) const; + /// + docstring xhtml(odocstream &, OutputParams const &) const; /// the string that is passed to the TOC void tocString(odocstream &) const; -- 2.39.2