]> git.lyx.org Git - lyx.git/blob - src/mathed/math_splitinset.C
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_splitinset.C
1 #ifdef __GNUG__
2 #pragma implementation
3 #endif
4
5 #include "math_splitinset.h"
6 #include "support/LOstream.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(MathWriteInfo & os) const
23 {
24         if (os.fragile)
25                 os << "\\protect";
26         os << "\\begin{split}";
27         MathGridInset::write(os);
28         if (os.fragile)
29                 os << "\\protect";
30         os << "\\end{split}\n";
31 }