]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMBox.cpp
Fix #7549, due to a problem in exporting to plaintext a
[lyx.git] / src / mathed / InsetMathMBox.cpp
index bf27b8d102050d395e7409ac37da080f911c2a29..8b38755f0485eb9d98ecc698596837d64fdd7019 100644 (file)
@@ -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);
 }