#include "math_mathmlstream.h"
#include "math_support.h"
#include "math_symbolinset.h"
+#include "dispatchresult.h"
#include "debug.h"
#include "funcrequest.h"
+
#include <boost/assert.hpp>
+
+using std::string;
using std::max;
using std::auto_ptr;
using std::endl;
}
-dispatch_result MathScriptInset::dispatch
- (FuncRequest const & cmd, idx_type & idx, pos_type & pos)
+DispatchResult
+MathScriptInset::priv_dispatch(FuncRequest const & cmd,
+ idx_type & idx, pos_type & pos)
{
if (cmd.action == LFUN_MATH_LIMITS) {
if (!cmd.argument.empty()) {
else
limits_ = 0;
} else if (limits_ == 0)
- limits_ = (hasLimits()) ? -1 : 1;
+ limits_ = hasLimits() ? -1 : 1;
else
limits_ = 0;
- return DISPATCHED;
+ return DispatchResult(true, true);
}
- return MathNestInset::dispatch(cmd, idx, pos);
+ return MathNestInset::priv_dispatch(cmd, idx, pos);
}