]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parinset.C
architectural changes to tex2lyx
[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(MetricsInfo & mi, Dimension & dim) const
16 {
17         FontSetChanger dummy1(mi.base, "textnormal");
18         MathGridInset::metrics(mi);
19         dim = dim_;
20 }
21
22
23 void MathParInset::draw(PainterInfo & pi, int x, int y) const
24 {
25         FontSetChanger dummy1(pi.base, "textnormal");
26         MathGridInset::draw(pi, x, y);
27 }
28
29
30 void MathParInset::write(WriteStream & os) const
31 {
32         for (idx_type i = 0; i < nargs(); ++i)
33                 os << cell(i) << "\n";
34 }
35
36
37 void MathParInset::infoize(std::ostream & os) const
38 {
39         os << "Type: Paragraph ";
40 }