lyx_mirror/src/mathed/math_streamstr.C
André Pönitz cd19a0b33b Geof Piroux's patch for Mathematica support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4506 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-01 11:17:14 +00:00

50 lines
778 B
C

#include <config.h>
#include "math_streamstr.h"
#include "math_mathmlstream.h"
#include "support/LOstream.h"
#include "support/lyxalgo.h"
WriteStream & operator<<(WriteStream & ws, string const & s)
{
ws.os() << s;
ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
return ws;
}
NormalStream & operator<<(NormalStream & ns, string const & s)
{
ns.os() << s;
return ns;
}
MapleStream & operator<<(MapleStream & ms, string const & s)
{
ms.os() << s;
return ms;
}
MathematicaStream & operator<<(MathematicaStream & ms, string const & s)
{
ms.os() << s;
return ms;
}
MathMLStream & operator<<(MathMLStream & ms, string const & s)
{
ms.os() << s;
return ms;
}
OctaveStream & operator<<(OctaveStream & os, string const & s)
{
os.os() << s;
return os;
}