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"
18 #include "MetricsInfo.h"
24 InsetMathPar::InsetMathPar(Buffer * buf, MathData const & ar)
31 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
33 Changer dummy = mi.base.changeFontSet("textnormal");
34 InsetMathGrid::metrics(mi, dim);
38 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
40 Changer dummy = pi.base.changeFontSet("textnormal");
41 InsetMathGrid::draw(pi, x, y);
45 void InsetMathPar::write(WriteStream & os) const
47 for (idx_type i = 0; i < nargs(); ++i)
48 os << cell(i) << "\n";
52 void InsetMathPar::infoize(odocstream & os) const
54 os << "Type: Paragraph ";
58 Inset * InsetMathPar::clone() const
60 return new InsetMathPar(*this);