]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parinset.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_parinset.C
1
2 #include <config.h>
3
4 #include "math_parinset.h"
5 #include "math_mathmlstream.h"
6 #include "support/LOstream.h"
7
8
9 MathParInset::MathParInset(MathArray const & ar)
10 {
11         cells_[0] = ar;
12 }
13
14
15 void MathParInset::metrics(MathMetricsInfo & mi) const
16 {
17         MathFontSetChanger dummy1(mi.base, "textnormal");
18         MathGridInset::metrics(mi);
19 }
20
21
22 void MathParInset::draw(MathPainterInfo & pi, int x, int y) const
23 {
24         MathFontSetChanger dummy1(pi.base, "textnormal");
25         MathGridInset::draw(pi, x, y);
26 }
27
28
29 void MathParInset::write(WriteStream & os) const
30 {
31         for (idx_type i = 0; i < nargs(); ++i)
32                 os << cell(i) << "\n";
33 }
34
35
36 void MathParInset::infoize(std::ostream & os) const
37 {
38         os << "Type: Paragraph ";
39 }