Beck, Andrew Thomas - BECAT001 wrote: > How do I know when these things have changed? I have essentially added > more cells for the name & number of args to the macrotemplate class, > allowing them to be edited directly, just like the expansion or display > fields of the macro. In my mind, changing the name or number of arguments > is no different to changing the expansion or display cells.
You could implement MathMacroTemplateInset::doDispatch and look at LFUN_SELFINSERT before handling it down to MathNestInset::doDispatch. AFAIK every character you type in a cell goes through LFUN_SELFINSERT, so you simply need to look whether the current cell is the number of arguments or name and act accordingly. Georg
