]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPar.cpp
Make members of FuncRequest private, per the FIXME there. Again, this is
[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 <ostream>
19
20 namespace lyx {
21
22 InsetMathPar::InsetMathPar(Buffer * buf, MathData const & ar)
23         : InsetMathHull(buf)
24 {
25         cells_[0] = ar;
26 }
27
28
29 void InsetMathPar::metrics(MetricsInfo & mi, Dimension & dim) const
30 {
31         FontSetChanger dummy1(mi.base, "textnormal");
32         InsetMathGrid::metrics(mi, dim);
33 }
34
35
36 void InsetMathPar::draw(PainterInfo & pi, int x, int y) const
37 {
38         FontSetChanger dummy1(pi.base, "textnormal");
39         InsetMathGrid::draw(pi, x, y);
40 }
41
42
43 void InsetMathPar::write(WriteStream & os) const
44 {
45         for (idx_type i = 0; i < nargs(); ++i)
46                 os << cell(i) << "\n";
47 }
48
49
50 void InsetMathPar::infoize(odocstream & os) const
51 {
52         os << "Type: Paragraph ";
53 }
54
55
56 Inset * InsetMathPar::clone() const
57 {
58         return new InsetMathPar(*this);
59 }
60
61
62 } // namespace lyx