]> git.lyx.org Git - lyx.git/blob - src/mathed/MathStream.C
move everything into namespace lyx
[lyx.git] / src / mathed / MathStream.C
1 /**
2  * \file MathStream.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "MathStream.h"
14 #include "MathMLStream.h"
15
16
17 namespace lyx {
18
19 using std::string;
20
21
22 WriteStream & operator<<(WriteStream & ws, string const & s)
23 {
24         ws << s.c_str();
25         return ws;
26 }
27
28
29 NormalStream & operator<<(NormalStream & ns, string const & s)
30 {
31         // FIXME UNICODE
32         ns.os() << from_utf8(s);
33         return ns;
34 }
35
36
37 MapleStream & operator<<(MapleStream & ms, string const & s)
38 {
39         // FIXME UNICODE
40         ms.os() << from_utf8(s);
41         return ms;
42 }
43
44
45 MaximaStream & operator<<(MaximaStream & ms, string const & s)
46 {
47         // FIXME UNICODE
48         ms.os() << from_utf8(s);
49         return ms;
50 }
51
52
53 MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
54 {
55         // FIXME UNICODE
56         ms.os() << from_utf8(s);
57         return ms;
58 }
59
60
61 MathMLStream & operator<<(MathMLStream & ms, string const & s)
62 {
63         // FIXME UNICODE
64         ms.os() << from_utf8(s);
65         return ms;
66 }
67
68
69 OctaveStream & operator<<(OctaveStream & os, string const & s)
70 {
71         // FIXME UNICODE
72         os.os() << from_utf8(s);
73         return os;
74 }
75
76
77 } // namespace lyx