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"
25 InsetMathPar::InsetMathPar(MathData const & ar)
31 bool InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
34 FontSetChanger dummy1(mi.base, "textnormal");
35 InsetMathGrid::metrics(mi);
43 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
45 FontSetChanger dummy1(pi.base, "textnormal");
46 InsetMathGrid::draw(pi, x, y);
50 void InsetMathPar::write(WriteStream & os) const
52 for (idx_type i = 0; i < nargs(); ++i)
53 os << cell(i) << "\n";
57 void InsetMathPar::infoize(odocstream & os) const
59 os << "Type: Paragraph ";
63 auto_ptr<Inset> InsetMathPar::doClone() const
65 return auto_ptr<Inset>(new InsetMathPar(*this));