]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_streamstr.C
index 039931351361f988a934a2345e282cd9ff61186c..9bcd9b1763670b29d49444fa9f980ffe5bddbd02 100644 (file)
@@ -1,15 +1,15 @@
+
 #include <config.h>
 
 #include "math_streamstr.h"
 #include "math_mathmlstream.h"
-
-#include <algorithm>
+#include "support/LOstream.h"
+#include "support/lyxalgo.h"
 
 
 WriteStream & operator<<(WriteStream & ws, string const & s)
 {
-       ws.os() << s;
-       ws.line() += std::count(s.begin(), s.end(), '\n');
+       ws << s.c_str();
        return ws;
 }
 
@@ -28,6 +28,20 @@ MapleStream & operator<<(MapleStream & ms, string const & s)
 }
 
 
+MaximaStream & operator<<(MaximaStream & ms, string const & s)
+{
+       ms.os() << s;
+       return ms;
+}
+
+
+MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
+{
+       ms.os() << s;
+       return ms;
+}
+
+
 MathMLStream & operator<<(MathMLStream & ms, string const & s)
 {
        ms.os() << s;