X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathMBox.cpp;h=8b38755f0485eb9d98ecc698596837d64fdd7019;hb=bca9a6ca73b05856eb24f38795d67fdefa939878;hp=0210bc4b804a9209ac7c15b6812715ee50605a42;hpb=c95c30184d5c6693ffc6a5397e05ac34adc44743;p=lyx.git diff --git a/src/mathed/InsetMathMBox.cpp b/src/mathed/InsetMathMBox.cpp index 0210bc4b80..8b38755f04 100644 --- a/src/mathed/InsetMathMBox.cpp +++ b/src/mathed/InsetMathMBox.cpp @@ -75,7 +75,8 @@ void InsetMathMBox::write(WriteStream & ws) const ws << "\\mbox{\n"; TexRow texrow; OutputParams runparams(&buffer().params().encoding()); - latexParagraphs(buffer(), text_.text(), ws.os(), texrow, runparams); + otexstream os(ws.os(), texrow); + latexParagraphs(buffer(), text_.text(), os, runparams); ws.addlines(texrow.rows()); ws << "}"; } else { @@ -88,13 +89,11 @@ void InsetMathMBox::write(WriteStream & ws) const } -int InsetMathMBox::latex(odocstream & os, OutputParams const & runparams) const +void InsetMathMBox::latex(otexstream & os, OutputParams const & runparams) const { os << "\\mbox{\n"; - TexRow texrow; - latexParagraphs(buffer(), text_.text(), os, texrow, runparams); + latexParagraphs(buffer(), text_.text(), os, runparams); os << "}"; - return texrow.rows(); } @@ -120,7 +119,13 @@ void InsetMathMBox::cursorPos(BufferView const & bv, void InsetMathMBox::mathmlize(MathStream & ms) const { - SetMode textmode(ms, true, from_ascii("class='mbox'")); + SetMode textmode(ms, true); + ms << cell(0); +} + +void InsetMathMBox::htmlize(HtmlStream & ms) const +{ + SetHTMLMode textmode(ms, true); ms << cell(0); }