#include <config.h>
#include "command_inset.h"
+#include "math_data.h"
#include "math_mathmlstream.h"
+#include "dispatchresult.h"
#include "funcrequest.h"
#include "support/std_sstream.h"
+
+using std::string;
using std::auto_ptr;
using std::ostringstream;
button_.draw(pi, x, y);
}
-dispatch_result
-CommandInset::dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
-{
- switch (cmd.action) {
- default:
- return MathNestInset::dispatch(cmd, idx, pos);
- }
- return UNDISPATCHED;
-}
-
void CommandInset::write(WriteStream & os) const
{
WriteStream wsdata(data);
write(wsdata);
wsdata << "\n\\end_inset\n\n";
- return STRCONV(data.str());
+ return data.str();
}