]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_streamstr.C
index 1675f0fe2481b629376c2c4331f52b4119fdabed..5208ba7592b5e2440b46267f14a76806c3790ff2 100644 (file)
@@ -1,16 +1,25 @@
+/**
+ * \file math_streamstr.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include "math_streamstr.h"
 #include "math_mathmlstream.h"
-#include "support/LOstream.h"
+#include "support/std_ostream.h"
 
-#include <algorithm>
+using std::string;
 
 
 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;
 }
 
@@ -29,6 +38,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;