]> git.lyx.org Git - lyx.git/blob - src/mathed/math_parinset.C
Get rid of lyxstring, remove usage of STRCONV.
[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_data.h"
15 #include "math_mathmlstream.h"
16 #include "support/std_ostream.h"
17
18
19 MathParInset::MathParInset(MathArray const & ar)
20 {
21         cells_[0] = ar;
22 }
23
24
25 void MathParInset::metrics(MetricsInfo & mi, Dimension & dim) const
26 {
27         FontSetChanger dummy1(mi.base, "textnormal");
28         MathGridInset::metrics(mi);
29         dim = dim_;
30 }
31
32
33 void MathParInset::draw(PainterInfo & pi, int x, int y) const
34 {
35         FontSetChanger dummy1(pi.base, "textnormal");
36         MathGridInset::draw(pi, x, y);
37 }
38
39
40 void MathParInset::write(WriteStream & os) const
41 {
42         for (idx_type i = 0; i < nargs(); ++i)
43                 os << cell(i) << "\n";
44 }
45
46
47 void MathParInset::infoize(std::ostream & os) const
48 {
49         os << "Type: Paragraph ";
50 }