]> git.lyx.org Git - lyx.git/blob - src/mathed/math_streamstr.C
updates to latexfeatures stuff; allow empty \document_path
[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
7 #include <algorithm>
8
9
10 WriteStream & operator<<(WriteStream & ws, string const & s)
11 {
12         ws.os() << s;
13         ws.line() += std::count(s.begin(), s.end(), '\n');
14         return ws;
15 }
16
17
18 NormalStream & operator<<(NormalStream & ns, string const & s)
19 {
20         ns.os() << s;
21         return ns;
22 }
23
24
25 MapleStream & operator<<(MapleStream & ms, string const & s)
26 {
27         ms.os() << s;
28         return ms;
29 }
30
31
32 MathMLStream & operator<<(MathMLStream & ms, string const & s)
33 {
34         ms.os() << s;
35         return ms;
36 }
37
38
39 OctaveStream & operator<<(OctaveStream & os, string const & s)
40 {
41         os.os() << s;
42         return os;
43 }