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"
16 #include "MathStream.h"
22 InsetMathPar::InsetMathPar(MathData const & ar)
28 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
30 FontSetChanger dummy1(mi.base, "textnormal");
31 InsetMathGrid::metrics(mi, dim);
35 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
37 FontSetChanger dummy1(pi.base, "textnormal");
38 InsetMathGrid::draw(pi, x, y);
42 void InsetMathPar::write(WriteStream & os) const
44 for (idx_type i = 0; i < nargs(); ++i)
45 os << cell(i) << "\n";
49 void InsetMathPar::infoize(odocstream & os) const
51 os << "Type: Paragraph ";
55 Inset * InsetMathPar::clone() const
57 return new InsetMathPar(*this);