-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <config.h>
#include "math_mathmlstream.h"
#include "math_inset.h"
+#include "math_data.h"
#include "math_extern.h"
#include "debug.h"
#include "support/lyxalgo.h"
namespace {
- bool isAlpha(char c)
+ bool isAlpha(char c)
{
return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
}
}
-
//////////////////////////////////////////////////////////////////////
MapleStream & operator<<(MapleStream & ms, MathAtom const & at)
{
- at->maplize(ms);
+ at->maple(ms);
return ms;
}
MapleStream & operator<<(MapleStream & ms, MathArray const & ar)
{
- maplize(ar, ms);
+ maple(ar, ms);
return ms;
}
//////////////////////////////////////////////////////////////////////
+MaximaStream & operator<<(MaximaStream & ms, MathAtom const & at)
+{
+ at->maxima(ms);
+ return ms;
+}
+
+
+MaximaStream & operator<<(MaximaStream & ms, MathArray const & ar)
+{
+ maxima(ar, ms);
+ return ms;
+}
+
+
+MaximaStream & operator<<(MaximaStream & ms, char const * s)
+{
+ ms.os() << s;
+ return ms;
+}
+
+
+MaximaStream & operator<<(MaximaStream & ms, char c)
+{
+ ms.os() << c;
+ return ms;
+}
+
+
+MaximaStream & operator<<(MaximaStream & ms, int i)
+{
+ ms.os() << i;
+ return ms;
+}
+
+
+//////////////////////////////////////////////////////////////////////
+
+
MathematicaStream & operator<<(MathematicaStream & ms, MathAtom const & at)
{
- at->mathematicize(ms);
+ at->mathematica(ms);
return ms;
}
MathematicaStream & operator<<(MathematicaStream & ms, MathArray const & ar)
{
- mathematicize(ar, ms);
+ mathematica(ar, ms);
return ms;
}
OctaveStream & operator<<(OctaveStream & ns, MathAtom const & at)
{
- at->octavize(ns);
+ at->octave(ns);
return ns;
}
OctaveStream & operator<<(OctaveStream & ns, MathArray const & ar)
{
- octavize(ar, ns);
+ octave(ar, ns);
return ns;
}
//////////////////////////////////////////////////////////////////////
-