]> git.lyx.org Git - lyx.git/blob - src/mathed/math_substackinset.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_substackinset.C
1 #include <config.h>
2
3 #ifdef __GNUG__
4 #pragma implementation
5 #endif
6
7 #include "math_substackinset.h"
8 #include "math_mathmlstream.h"
9 #include "math_streamstr.h"
10
11
12 MathSubstackInset::MathSubstackInset()
13         : MathGridInset(1, 1)
14 {}
15
16
17 MathInset * MathSubstackInset::clone() const
18 {
19         return new MathSubstackInset(*this);
20 }
21
22
23 void MathSubstackInset::metrics(MathMetricsInfo const & st) const
24 {
25         MathMetricsInfo mi = st;
26         if (mi.style == LM_ST_DISPLAY)
27                 mi.style = LM_ST_TEXT;
28         MathGridInset::metrics(mi);
29 }
30
31
32 void MathSubstackInset::write(WriteStream & os) const
33 {
34         os << "\\substack{";
35         MathGridInset::write(os);
36         os << "}\n";
37 }
38
39
40 void MathSubstackInset::normalize(NormalStream & os) const
41 {
42         os << "[substack ";
43         MathGridInset::normalize(os);
44         os << "]";
45 }
46
47
48 void MathSubstackInset::maplize(MapleStream & os) const
49 {
50         os << "substack(";
51         MathGridInset::maplize(os);
52         os << ")";
53 }