]> git.lyx.org Git - lyx.git/blob - src/mathed/math_splitinset.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_splitinset.C
1 #ifdef __GNUG__
2 #pragma implementation
3 #endif
4
5 #include "math_splitinset.h"
6 #include "math_mathmlstream.h"
7
8
9 MathSplitInset::MathSplitInset(int n)
10         : MathGridInset(2, n)
11 {
12         setDefaults();
13 }
14
15
16 MathInset * MathSplitInset::clone() const
17 {
18         return new MathSplitInset(*this);
19 }
20
21
22 void MathSplitInset::write(WriteStream & ws) const
23 {
24         if (ws.fragile())
25                 ws << "\\protect";
26         ws << "\\begin{split}";
27         MathGridInset::write(ws);
28         if (ws.fragile())
29                 ws << "\\protect";
30         ws << "\\end{split}\n";
31 }