X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_parinset.C;h=28e2209f1f12d3bbf6ad02577ead2fa64389e924;hb=3e93baac3cd18e27db3eb2a1fcaf90b25e0918a6;hp=28af5f9ccb3fdccab724a930b2978a5d8ca60d6c;hpb=f68213134ccaaf8f76f60d3e9990db72b8025868;p=lyx.git diff --git a/src/mathed/math_parinset.C b/src/mathed/math_parinset.C index 28af5f9ccb..28e2209f1f 100644 --- a/src/mathed/math_parinset.C +++ b/src/mathed/math_parinset.C @@ -1,25 +1,38 @@ +/** + * \file math_parinset.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author André Pönitz + * + * Full author contact details are available in file CREDITS. + */ + +#include #include "math_parinset.h" +#include "math_data.h" #include "math_mathmlstream.h" -#include "debug.h" +#include "support/std_ostream.h" -MathParInset::MathParInset() +MathParInset::MathParInset(MathArray const & ar) { - lyxerr << "constructing MathParInset\n"; + cells_[0] = ar; } -void MathParInset::metrics(MathMetricsInfo & mi) const +void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const { - MathFontSetChanger dummy1(mi.base, "textnormal"); + FontSetChanger dummy1(mi.base, "textnormal"); MathGridInset::metrics(mi); + dim = dim_; } -void MathParInset::draw(MathPainterInfo & pi, int x, int y) const +void MathParInset::draw(PainterInfo & pi, int x, int y) const { - MathFontSetChanger dummy1(pi.base, "textnormal"); + FontSetChanger dummy1(pi.base, "textnormal"); MathGridInset::draw(pi, x, y); } @@ -35,4 +48,3 @@ void MathParInset::infoize(std::ostream & os) const { os << "Type: Paragraph "; } -