]> git.lyx.org Git - lyx.git/blob - src/mathed/math_mathmlstream.C
change output to uses streams instead of strings
[lyx.git] / src / mathed / math_mathmlstream.C
1
2 #include "math_inset.h"
3 #include "math_mathmlstream.h"
4
5
6 MathMLStream & MathMLStream::operator<<(MathInset const * p)
7 {
8         p->mathmlize(*this);
9         return *this;           
10 }
11
12
13 MathMLStream & MathMLStream::operator<<(MathArray const & ar)
14 {
15         ar.mathmlize(*this);
16         return *this;           
17 }
18
19
20 MathMLStream & MathMLStream::operator<<(char const * s)
21 {
22         os_ << s;
23         return *this;           
24 }
25
26
27 MathMLStream & MathMLStream::operator<<(char c)
28 {
29         os_ << c;
30         return *this;           
31 }
32
33
34
35
36 MapleStream & MapleStream::operator<<(MathInset const * p)
37 {
38         p->maplize(*this);
39         return *this;           
40 }
41
42
43 MapleStream & MapleStream::operator<<(MathArray const & ar)
44 {
45         ar.maplize(*this);
46         return *this;           
47 }
48
49
50 MapleStream & MapleStream::operator<<(char const * s)
51 {
52         os_ << s;
53         return *this;           
54 }
55
56
57 MapleStream & MapleStream::operator<<(char c)
58 {
59         os_ << c;
60         return *this;           
61 }
62
63
64
65
66 OctaveStream & OctaveStream::operator<<(MathInset const * p)
67 {
68         p->octavize(*this);
69         return *this;           
70 }
71
72
73 OctaveStream & OctaveStream::operator<<(MathArray const & ar)
74 {
75         ar.octavize(*this);
76         return *this;           
77 }
78
79
80 OctaveStream & OctaveStream::operator<<(char const * s)
81 {
82         os_ << s;
83         return *this;           
84 }
85
86
87 OctaveStream & OctaveStream::operator<<(char c)
88 {
89         os_ << c;
90         return *this;           
91 }
92