#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)
+
+DispatchResult
+CommandInset::priv_dispatch(LCursor & bv, FuncRequest const & cmd)
{
switch (cmd.action) {
default:
- return MathNestInset::dispatch(cmd, idx, pos);
+ return MathNestInset::priv_dispatch(bv, cmd);
}
- return UNDISPATCHED;
+ return DispatchResult(false);
}
WriteStream wsdata(data);
write(wsdata);
wsdata << "\n\\end_inset\n\n";
- return STRCONV(data.str());
+ return data.str();
}