Commit db73c048 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow
Browse files

use global_range_name

2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* dialog-analysis-tools.c (tool_load_selection) : use
	  global_range_name

2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/ranges.h (global_range_name) : new
	* src/ranges.c (global_range_name) : new
parent 7af7715a
2002-01-24 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-analysis-tools.c (tool_load_selection) : use
global_range_name
2002-01-24 Jody Goldberg <jody@gnome.org>
* cell-format.glade : fix typo.
......@@ -23,7 +28,6 @@
* correlation.glade : added underline property
* covariance.glade : added underline property
* descriptive-stats.glade : added underline property
* dialog-analysis-tools.c : added underline property
* exp-smoothing.glade : added underline property
* fourier-analysis.glade : added underline property
* histogram.glade : added underline property
......
......@@ -994,6 +994,17 @@ global_range_dup (GlobalRange const *src)
return global_range_new (src->sheet, &src->range);
}
char *
global_range_name (Sheet *sheet, Range const *r)
{
char const * the_range_name = range_name (r);
if (sheet == NULL)
return g_strdup (the_range_name);
return g_strdup_printf ("%s!%s", sheet->name_quoted, the_range_name);
}
/**
* global_range_parse:
* @sheet: the sheet where the cell range is evaluated. This really only needed if
......
......@@ -99,6 +99,7 @@ void global_range_free (GlobalRange *gr);
gboolean global_range_overlap (GlobalRange const *a, GlobalRange const *b);
GlobalRange *global_range_dup (GlobalRange const *src);
Value *global_range_parse (Sheet *sheet, char const *range);
char *global_range_name (Sheet *sheet, Range const *r);
GSList *global_range_list_parse (Sheet *sheet, char const *str);
Value *global_range_list_foreach (GSList *gr_list, EvalPos const *ep,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment