-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "math_nestinset.h"
#include "math_cursor.h"
x += 2;
}
+
void MathNestInset::substitute(MathMacro const & m)
{
for (idx_type i = 0; i < nargs(); ++i)
}
-void MathNestInset::notifyCursorLeaves()
-{}
+void MathNestInset::notifyCursorLeaves(idx_type idx)
+{
+ cell(idx).notifyCursorLeaves();
+}
-MathInset::result_type MathNestInset::dispatch
+dispatch_result MathNestInset::dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
{
BufferView * bv = cmd.view();
return
dispatch(
FuncRequest(bv, LFUN_PASTE, bv->getClipboard()), idx, pos);
-
+
case LFUN_MOUSE_PRESS:
if (cmd.button() == mouse_button::button2)
return dispatch(FuncRequest(bv, LFUN_PASTESELECTION), idx, pos);
return UNDISPATCHED;
- default:
+ default:
return MathInset::dispatch(cmd, idx, pos);
}
return UNDISPATCHED;