Expose measure number and repeat list to plugins

Needed for my plugin Repeat list (http://musescore.org/fr/project/repeatlist).
Hum, I see. Is there any way get the measure index?