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
This commit is contained in:
Richard Heck 2009-11-14 15:25:32 +00:00
parent 6d48b61171
commit 54b4b8e6b4
2 changed files with 15 additions and 0 deletions

View File

@ -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 << "<math xmlns=\"&mathml;\">";
else
os << "<math display=\"block\" xmlns=\"&mathml;\">";
MathStream ms(os);
InsetMathGrid::mathmlize(ms);
os << "</math>";
return docstring();
}
void InsetMathHull::tocString(odocstream & os) const
{
plaintext(os, OutputParams(0));

View File

@ -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;