* the GNU General Public Licence version 2 or later.
*/
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <config.h>
-#include "Lsstream.h"
+
#include "math_inset.h"
+#include "Lsstream.h"
#include "math_scriptinset.h"
#include "math_mathmlstream.h"
#include "math_cursor.h"
#include "BufferView.h"
#include "formulabase.h"
-
using std::ostream;
-using std::vector;
int MathInset::height() const
}
-ostream & operator<<(ostream & os, MathAtom const & at)
-{
- WriteStream wi(os, false, false);
- at->write(wi);
- return os;
-}
-
-
MathInset::size_type MathInset::nargs() const
{
return 0;
}
-void MathInset::octavize(OctaveStream & os) const
+void MathInset::octave(OctaveStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
}
-void MathInset::maplize(MapleStream & os) const
+void MathInset::maple(MapleStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
}
-void MathInset::mathematicize(MathematicaStream & os) const
+void MathInset::maxima(MaximaStream & os) const
+{
+ MapleStream ns(os.os());
+ maple(ns);
+}
+
+
+void MathInset::mathematica(MathematicaStream & os) const
{
NormalStream ns(os.os());
normalize(ns);
MathInset::result_type
- MathInset::dispatch(FuncRequest const &, idx_type &, pos_type &)
+ MathInset::dispatch(FuncRequest const &, idx_type &, pos_type &)
{
return UNDISPATCHED;
}
std::ostringstream os;
WriteStream ws(os);
ws << ar;
- return os.str().c_str();
+ return STRCONV(os.str());
}
}
+ostream & operator<<(ostream & os, MathAtom const & at)
+{
+ WriteStream wi(os, false, false);
+ at->write(wi);
+ return os;
+}
+
+
Dialogs & getDialogs()
{
return mathcursor->formula()->view()->owner()->getDialogs();