]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPar.cpp
MathML: remove redundant mrow in InsetMathScript.
[lyx.git] / src / mathed / InsetMathPar.cpp
1 /**
2  * \file InsetMathPar.cpp
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 "InsetMathPar.h"
14
15 #include "MathData.h"
16 #include "MathStream.h"
17
18 #include "MetricsInfo.h"
19
20 #include <ostream>
21
22 namespace lyx {
23
24 InsetMathPar::InsetMathPar(Buffer * buf, MathData const & ar)
25         : InsetMathHull(buf)
26 {
27         cells_[0] = ar;
28 }
29
30
31 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
32 {
33         Changer dummy = mi.base.changeFontSet("textnormal");
34         InsetMathGrid::metrics(mi, dim);
35 }
36
37
38 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
39 {
40         Changer dummy = pi.base.changeFontSet("textnormal");
41         InsetMathGrid::draw(pi, x, y);
42 }
43
44
45 void InsetMathPar::write(TeXMathStream & os) const
46 {
47         for (idx_type i = 0; i < nargs(); ++i)
48                 os << cell(i) << "\n";
49 }
50
51
52 void InsetMathPar::infoize(odocstream & os) const
53 {
54         os << "Type: Paragraph ";
55 }
56
57
58 Inset * InsetMathPar::clone() const
59 {
60         return new InsetMathPar(*this);
61 }
62
63
64 } // namespace lyx