Next try with smaller steps...
This sets the infrastructure to use dialogs with math insets and the math parser with "real insets". As proof of concept this "unifies" InsetRef, i.e. allows using it within mathed and within main LyX without (hopefully...) differences. The dialogs seem to work at least. Currently there is a bit of confusion which parts should go into insets/ and which parts go into mathed/ but this certainly can be resolved. The other issue is some code duplication. It is actually not as bad as I originally feared, and it will get better when all InsetCommands are "unified". The plan is, of course, to do the other InsetCommands next... Please try the patch and complain if something does not work "as usual". Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)
unified_ref_inset.diff.gz
Description: application/gunzip