On Sun, Apr 10, 2005 at 09:14:32PM +0300, Martin Vermeer wrote:
> If you can do it more efficiently, why not. I don't like special casing,
> but if you can do it in MathRootInset::doDispatch() it would even be
> clean.
> 
> One reason I didn't consider this (not recognize what was meant,
> actually) was my experience in implementing insert-around-selection for
> font and deco insets (or general nestinsets), which I did in
> LFUN_INSERT_MATH, not LFUN_PASTE. Actually why not implement an
> LFUN_INSERT_MATH in MathRootInset?

Implemetning the idx* functions should be completely sufficient and they
are the hook provided exactly for these needs. Handling LFUNs directly
is wielding a club far to big for that task.

Andre'

Reply via email to