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"
25 InsetMathPar::InsetMathPar(MathArray const & ar)
31 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
33 FontSetChanger dummy1(mi.base, "textnormal");
34 InsetMathGrid::metrics(mi);
39 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
41 FontSetChanger dummy1(pi.base, "textnormal");
42 InsetMathGrid::draw(pi, x, y);
46 void InsetMathPar::write(WriteStream & os) const
48 for (idx_type i = 0; i < nargs(); ++i)
49 os << cell(i) << "\n";
53 void InsetMathPar::infoize(odocstream & os) const
55 os << "Type: Paragraph ";
59 auto_ptr<InsetBase> InsetMathPar::doClone() const
61 return auto_ptr<InsetBase>(new InsetMathPar(*this));