]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_splitinset.C
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_splitinset.C
index e7b5c18f182746cd3b83b0d0e9b205b8a4d4f30a..1a37210d7895f9202ba7c060347891e93993eb90 100644 (file)
@@ -3,7 +3,7 @@
 #endif
 
 #include "math_splitinset.h"
-#include "support/LOstream.h"
+#include "math_mathmlstream.h"
 
 
 MathSplitInset::MathSplitInset(int n)
@@ -19,13 +19,13 @@ MathInset * MathSplitInset::clone() const
 }
 
 
-void MathSplitInset::write(std::ostream & os, bool fragile) const
+void MathSplitInset::write(WriteStream & ws) const
 {
-       if (fragile)
-               os << "\\protect";
-       os << "\\begin{split}";
-       MathGridInset::write(os, fragile);
-       if (fragile)
-               os << "\\protect";
-       os << "\\end{split}\n";
+       if (ws.fragile())
+               ws << "\\protect";
+       ws << "\\begin{split}";
+       MathGridInset::write(ws);
+       if (ws.fragile())
+               ws << "\\protect";
+       ws << "\\end{split}\n";
 }