2 * \file InsetMathPar.cpp
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 "InsetMathPar.h"
15 #include "MathStream.h"
16 #include "support/std_ostream.h"
21 InsetMathPar::InsetMathPar(MathData const & ar)
27 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
29 FontSetChanger dummy1(mi.base, "textnormal");
30 InsetMathGrid::metrics(mi, dim);
34 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
36 FontSetChanger dummy1(pi.base, "textnormal");
37 InsetMathGrid::draw(pi, x, y);
41 void InsetMathPar::write(WriteStream & os) const
43 for (idx_type i = 0; i < nargs(); ++i)
44 os << cell(i) << "\n";
48 void InsetMathPar::infoize(odocstream & os) const
50 os << "Type: Paragraph ";
54 Inset * InsetMathPar::clone() const
56 return new InsetMathPar(*this);