X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathMBox.cpp;h=8facb40d68d65ee852e3eb31e69063d67d44e1a3;hb=5e0121cf5854a2a0039e6cb4970aeddb18bd4b23;hp=0d05d10c36ea3c5fba01c66dc810e3397feb5c3b;hpb=2bf1c09376de37a3d66b79ca5f4304f29d5b4d06;p=lyx.git diff --git a/src/mathed/InsetMathMBox.cpp b/src/mathed/InsetMathMBox.cpp index 0d05d10c36..8facb40d68 100644 --- a/src/mathed/InsetMathMBox.cpp +++ b/src/mathed/InsetMathMBox.cpp @@ -39,11 +39,11 @@ InsetMathMBox::InsetMathMBox() } -InsetMathMBox::InsetMathMBox(LayoutPtr const & layout) +InsetMathMBox::InsetMathMBox(Layout const & layout) { text_.paragraphs().clear(); text_.paragraphs().push_back(Paragraph()); - text_.paragraphs().back().layout(layout); + text_.paragraphs().back().setLayout(layout); } @@ -68,31 +68,30 @@ void InsetMathMBox::draw(PainterInfo & pi, int x, int y) const } -void InsetMathMBox::write(Buffer const & buf, WriteStream & ws) const +void InsetMathMBox::write(WriteStream & ws) const { if (ws.latex()) { ws << "\\mbox{\n"; TexRow texrow; - OutputParams runparams(&buf.params().encoding()); - latexParagraphs(buf, text_, ws.os(), texrow, runparams); + OutputParams runparams(&buffer().params().encoding()); + latexParagraphs(buffer(), text_, ws.os(), texrow, runparams); ws.addlines(texrow.rows()); ws << "}"; } else { ws << "\\mbox{\n"; ostringstream os; - text_.write(buf, os); + text_.write(buffer(), os); ws.os() << from_utf8(os.str()); ws << "}"; } } -int InsetMathMBox::latex(Buffer const & buf, odocstream & os, - OutputParams const & runparams) const +int InsetMathMBox::latex(odocstream & os, OutputParams const & runparams) const { os << "\\mbox{\n"; TexRow texrow; - latexParagraphs(buf, text_, os, texrow, runparams); + latexParagraphs(buffer(), text_, os, texrow, runparams); os << "}"; return texrow.rows(); }