]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPar.cpp
* dynamic macros as described in http://1stein.org/download/dynmacro.pdf
[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 #include "MathData.h"
15 #include "MathStream.h"
16 #include "support/std_ostream.h"
17
18
19 namespace lyx {
20
21 InsetMathPar::InsetMathPar(MathData const & ar)
22 {
23         cells_[0] = ar;
24 }
25
26
27 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
28 {
29         FontSetChanger dummy1(mi.base, "textnormal");
30         InsetMathGrid::metrics(mi, dim);
31 }
32
33
34 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
35 {
36         FontSetChanger dummy1(pi.base, "textnormal");
37         InsetMathGrid::draw(pi, x, y);
38 }
39
40
41 void InsetMathPar::write(WriteStream & os) const
42 {
43         for (idx_type i = 0; i < nargs(); ++i)
44                 os << cell(i) << "\n";
45 }
46
47
48 void InsetMathPar::infoize(odocstream & os) const
49 {
50         os << "Type: Paragraph ";
51 }
52
53
54 Inset * InsetMathPar::clone() const
55 {
56         return new InsetMathPar(*this);
57 }
58
59
60 } // namespace lyx