]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
remove noload/don't typeset
[lyx.git] / src / mathed / math_streamstr.C
1 #include <config.h>
2
3 #include "math_streamstr.h"
4 #include "math_mathmlstream.h"
5 #include "support/LOstream.h"
6 #include "support/lyxalgo.h"
7
8
9 WriteStream & operator<<(WriteStream & ws, string const & s)
10 {
11         if (ws.pendingSpace()) {
12                 ws.os() << ' ';
13                 ws.pendingSpace(false);
14         }
15         ws.os() << s;
16         ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
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 }