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

Re: getting highlighted cell



Le jeudi 28 d�mbre 2006 �4:49 +0100, sylvain a �it :
> 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);





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