* the GNU General Public Licence version 2 or later.
*/
+#include <config.h>
+
#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::write(WriteStream & os) const
{
- os << '\\' << name().c_str() << ' ';
+ os << '\\' << name().c_str();
+ os.pendingSpace(true);
}
}
+void MathInset::maximize(MaximaStream & os) const
+{
+ MapleStream ns(os.os());
+ maplize(ns);
+}
+
+
void MathInset::mathematicize(MathematicaStream & os) const
{
NormalStream ns(os.os());
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();
+ return STRCONV(os.str());
}
}
-Dialogs & getDialogs()
+ostream & operator<<(ostream & os, MathAtom const & at)
{
- return mathcursor->formula()->view()->owner()->getDialogs();
+ WriteStream wi(os, false, false);
+ at->write(wi);
+ return os;
}
-LyXFunc & getLyXFunc()
+Dialogs & getDialogs()
{
- return mathcursor->formula()->view()->owner()->getLyXFunc();
+ return mathcursor->formula()->view()->owner()->getDialogs();
}