]> git.lyx.org Git - lyx.git/blob - src/mathed/math_xyarrowinset.C
popup math panel on right mouse click
[lyx.git] / src / mathed / math_xyarrowinset.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "math_xyarrowinset.h"
8 #include "math_mathmlstream.h"
9 #include "math_streamstr.h"
10
11
12 MathXYArrowInset::MathXYArrowInset()
13         : MathNestInset(1)
14 {}
15
16
17 MathInset * MathXYArrowInset::clone() const
18 {
19         return new MathXYArrowInset(*this);
20 }
21
22
23 void MathXYArrowInset::metrics(MathMetricsInfo const & mi) const
24 {
25         MathNestInset::metrics(mi);
26 }
27
28
29 void MathXYArrowInset::write(WriteStream & os) const
30 {
31         os << "\\ar{";
32         MathNestInset::write(os);
33         os << "}\n";
34 }
35
36
37 void MathXYArrowInset::normalize(NormalStream & os) const
38 {
39         os << "[xyarrow ";
40         MathNestInset::normalize(os);
41         os << "]";
42 }