Le jeudi 28 décembre 2006 à 14:49 +0100, sylvain a écrit :
> Hi!!
> 
> I'm writing a plugin in python for gnumeric, and i'd like to know, how
> to know which is the current higlighted cell in a function called by a
> menu item.

You might have several selected cells at once. The following code gets
the first selected range for WorkbookView *wv (C code):

Sheet *sheet = wb_view_cur_sheet (wv);
SheetView *sv = sheet_get_view (sheet, wv);
GnmRange *range = selection_first_range (sv, NULL, NULL);


_______________________________________________
gnumeric-list mailing list
gnumeric-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnumeric-list

Reply via email to