mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 02:35:20 +00:00
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:
parent
bfd3401999
commit
5f27992e16
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user