Lars Gullik Bjønnes wrote: >>> Pass the whole InsetParamsXXX in a boost::any to where it is used. >>> The sender and the receiver knows the type so now prob. Now all >>> the mailer code can go. >> > | You replace 20 lines of code per inset with 20 lines of code per > | inset. > > I do not think so... last time I tried this it was more like > replacing 20 lines with 2.
I'd prefer to leave things as they are until I have a working export_inset lfun (to post the data through the lyxserver) and a working register_dialog lfun (so that our dialog is not shown on, say, a mouse click, but rather the data is posted through the lyxserver.) That's all we need to enable everything to be modifiable by lfun (and without cluttering the interface with hundreds of ad hoc lfuns either)... > | (Happy New Year by the way ;-) > and to you as well :-) -- Angus