X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathMBox.cpp;h=8b38755f0485eb9d98ecc698596837d64fdd7019;hb=bca9a6ca73b05856eb24f38795d67fdefa939878;hp=bf27b8d102050d395e7409ac37da080f911c2a29;hpb=2f44dc2583bd9d68a46961d708b9eaed5d2b0d85;p=lyx.git diff --git a/src/mathed/InsetMathMBox.cpp b/src/mathed/InsetMathMBox.cpp index bf27b8d102..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,13 +119,13 @@ void InsetMathMBox::cursorPos(BufferView const & bv, void InsetMathMBox::mathmlize(MathStream & ms) const { - SetMode textmode(ms, true, "class='mbox'"); + SetMode textmode(ms, true); ms << cell(0); } void InsetMathMBox::htmlize(HtmlStream & ms) const { - SetHTMLMode textmode(ms, true, "class='mbox'"); + SetHTMLMode textmode(ms, true); ms << cell(0); }