]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parinset.C
Replace LString.h with support/std_string.h,
[lyx.git] / src / mathed / math_parinset.C
1 /**
2  * \file math_parinset.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "math_parinset.h"
14 #include "math_mathmlstream.h"
15 #include "support/std_ostream.h"
16
17
18 MathParInset::MathParInset(MathArray const & ar)
19 {
20         cells_[0] = ar;
21 }
22
23
24 void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
25 {
26         FontSetChanger dummy1(mi.base, "textnormal");
27         MathGridInset::metrics(mi);
28         dim = dim_;
29 }
30
31
32 void MathParInset::draw(PainterInfo & pi, int x, int y) const
33 {
34         FontSetChanger dummy1(pi.base, "textnormal");
35         MathGridInset::draw(pi, x, y);
36 }
37
38
39 void MathParInset::write(WriteStream & os) const
40 {
41         for (idx_type i = 0; i < nargs(); ++i)
42                 os << cell(i) << "\n";
43 }
44
45
46 void MathParInset::infoize(std::ostream & os) const
47 {
48         os << "Type: Paragraph ";
49 }