Re: getting highlighted cell

Le jeudi 28 décembre 2006 à 14:49 +0100, sylvain a écrit :

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);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]