]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
fix writing of some spaces.
[lyx.git] / src / mathed / math_streamstr.C
1
2 #ifdef __GNUG__
3 #pragma implementation 
4 #endif
5
6 #include <config.h>
7
8 #include "math_streamstr.h"
9 #include "math_mathmlstream.h"
10 #include "support/LOstream.h"
11 #include "support/lyxalgo.h"
12
13
14 WriteStream & operator<<(WriteStream & ws, string const & s)
15 {
16         ws << s.c_str();
17         return ws;
18 }
19
20
21 NormalStream & operator<<(NormalStream & ns, string const & s)
22 {
23         ns.os() << s;
24         return ns;
25 }
26
27
28 MapleStream & operator<<(MapleStream & ms, string const & s)
29 {
30         ms.os() << s;
31         return ms;
32 }
33
34
35 MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
36 {
37         ms.os() << s;
38         return ms;
39 }
40
41
42 MathMLStream & operator<<(MathMLStream & ms, string const & s)
43 {
44         ms.os() << s;
45         return ms;
46 }
47
48
49 OctaveStream & operator<<(OctaveStream & os, string const & s)
50 {
51         os.os() << s;
52         return os;
53 }