Restore the MathML output we had before. Still work to be done here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32540 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-15 13:14:57 +00:00
parent bfd3401999
commit 5f27992e16
2 changed files with 7 additions and 6 deletions

View File

@ -29,6 +29,7 @@
#include "LaTeXFeatures.h" #include "LaTeXFeatures.h"
#include "LyXRC.h" #include "LyXRC.h"
#include "MacroTable.h" #include "MacroTable.h"
#include "output_xhtml.h"
#include "sgml.h" #include "sgml.h"
#include "TextPainter.h" #include "TextPainter.h"
#include "TocBackend.h" #include "TocBackend.h"
@ -1764,15 +1765,15 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons
} }
docstring InsetMathHull::xhtml(odocstream & os, OutputParams const &) const docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const &) const
{ {
if (getType() == hullSimple) if (getType() == hullSimple)
os << "<math xmlns=\"http://www.w3.org/1998/Math/MathML\">"; xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"");
else else
os << "<math display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\">"; xs << StartTag("math", "display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"");
MathStream ms(os); MathStream ms(xs.os());
InsetMathGrid::mathmlize(ms); InsetMathGrid::mathmlize(ms);
os << "</math>"; xs << EndTag("math");
return docstring(); return docstring();
} }

View File

@ -123,7 +123,7 @@ public:
/// ///
int docbook(odocstream &, OutputParams const &) const; int docbook(odocstream &, OutputParams const &) const;
/// ///
docstring xhtml(odocstream &, OutputParams const &) const; docstring xhtml(XHTMLStream &, OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC
void tocString(odocstream &) const; void tocString(odocstream &) const;