Yes, Andrè asked for some polish: http://thread.gmane.org/gmane.editors.lyx.devel/65033/focus=65975
I understand that you have improved your patch according to Andre's suggest so I just submitted your newest version to the trunk. Please patch against the trunk if you have some further improvements, and ask JMarc's permission for branch inclusion. Cheers, Bo