Commit 44a5ba1b authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

new routine testing whether a range is contained in another, similar to

2001-10-30  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/ranges.c/h (global_range_contained) : new routine testing whether
	  a range is contained in another, similar to range_contained.

2001-10-30  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* dialog-solver.c : rewritten as a semi-modal guru using the expr-entry
	  widget
	* solver.glade : redesign dialog as semi-modal guru
parent 570010d9
2001-10-30 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/ranges.c/h (global_range_contained) : new routine testing whether
a range is contained in another, similar to range_contained.
2001-10-30 Morten Welinder <terra@diku.dk>
* src/validation.c: #include <config.h>
......
Gnumeric 0.75
Andreas:
* Rewrite solver dialog as guru (semi-modal using the
expr-entry widget).
Jukka:
* Documented the advanced filter.
......
2001-10-30 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/ranges.c/h (global_range_contained) : new routine testing whether
a range is contained in another, similar to range_contained.
2001-10-30 Morten Welinder <terra@diku.dk>
* src/validation.c: #include <config.h>
......
2001-10-30 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/ranges.c/h (global_range_contained) : new routine testing whether
a range is contained in another, similar to range_contained.
2001-10-30 Morten Welinder <terra@diku.dk>
* src/validation.c: #include <config.h>
......
2001-10-30 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/ranges.c/h (global_range_contained) : new routine testing whether
a range is contained in another, similar to range_contained.
2001-10-30 Morten Welinder <terra@diku.dk>
* src/validation.c: #include <config.h>
......
2001-10-30 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-solver.c : rewritten as a semi-modal guru using the expr-entry
widget
* solver.glade : redesign dialog as semi-modal guru
2001-10-29 Jody Goldberg <jgoldberg@home.com>
* Release 0.74
......
This diff is collapsed.
This diff is collapsed.
......@@ -1110,3 +1110,41 @@ global_range_list_foreach (GSList *gr_list, EvalPos const *ep,
return NULL;
}
/**
* global_range_contained:
* @a:
* @b:
*
* return true if a is containde in b
* we do not handle 3d ranges
*
**/
gboolean
global_range_contained (Value *a, Value *b)
{
if ((a->type != VALUE_CELLRANGE) || (b->type != VALUE_CELLRANGE))
return FALSE;
if (a->v_range.cell.a.sheet != a->v_range.cell.b.sheet)
return FALSE;
if ((a->v_range.cell.a.sheet != b->v_range.cell.a.sheet)
&& (a->v_range.cell.a.sheet != b->v_range.cell.b.sheet))
return FALSE;
if (a->v_range.cell.a.row < b->v_range.cell.a.row)
return FALSE;
if (a->v_range.cell.b.row > b->v_range.cell.b.row)
return FALSE;
if (a->v_range.cell.a.col < b->v_range.cell.a.col)
return FALSE;
if (a->v_range.cell.b.col > b->v_range.cell.b.col)
return FALSE;
return TRUE;
}
......@@ -108,5 +108,6 @@ Value *global_range_list_foreach (GSList *gr_list, EvalPos const *ep,
gboolean only_existing,
ForeachCellCB handler,
gpointer closure);
gboolean global_range_contained (Value *a, Value *b);
#endif /* GNUMERIC_RANGES_H */
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