2 * \file math_parinset.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "math_parinset.h"
14 #include "math_data.h"
15 #include "math_mathmlstream.h"
16 #include "support/std_ostream.h"
22 MathParInset::MathParInset(MathArray const & ar)
28 void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
30 FontSetChanger dummy1(mi.base, "textnormal");
31 MathGridInset::metrics(mi);
36 void MathParInset::draw(PainterInfo & pi, int x, int y) const
38 FontSetChanger dummy1(pi.base, "textnormal");
39 MathGridInset::draw(pi, x, y);
43 void MathParInset::write(WriteStream & os) const
45 for (idx_type i = 0; i < nargs(); ++i)
46 os << cell(i) << "\n";
50 void MathParInset::infoize(std::ostream & os) const
52 os << "Type: Paragraph ";
56 auto_ptr<InsetBase> MathParInset::doClone() const
58 return auto_ptr<InsetBase>(new MathParInset(*this));