Commit 4b40747a authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

new function. (sheet_style_get_extent) : quick easy implementation.


2001-01-12  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (cb_style_extent) : new function.
	(sheet_style_get_extent) : quick easy implementation.
parent 6dafae3c
......@@ -6,7 +6,6 @@ Release Critical
----------------
- Styles
- get_extent
- uniform
- test persistance
- more tuning
......
2001-01-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_style_extent) : new function.
(sheet_style_get_extent) : quick easy implementation.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (sheet_style_get_extent) : implement.
(cb_style_extent) : implement.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/mstyle.c (mstyle_ref_multiple) : new function.
......
2001-01-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_style_extent) : new function.
(sheet_style_get_extent) : quick easy implementation.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (sheet_style_get_extent) : implement.
(cb_style_extent) : implement.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/mstyle.c (mstyle_ref_multiple) : new function.
......
2001-01-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_style_extent) : new function.
(sheet_style_get_extent) : quick easy implementation.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (sheet_style_get_extent) : implement.
(cb_style_extent) : implement.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/mstyle.c (mstyle_ref_multiple) : new function.
......
2001-01-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_style_extent) : new function.
(sheet_style_get_extent) : quick easy implementation.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (sheet_style_get_extent) : implement.
(cb_style_extent) : implement.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/mstyle.c (mstyle_ref_multiple) : new function.
......
2001-01-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_style_extent) : new function.
(sheet_style_get_extent) : quick easy implementation.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (sheet_style_get_extent) : implement.
(cb_style_extent) : implement.
2001-01-11 Jody Goldberg <jgoldberg@home.com>
* src/mstyle.c (mstyle_ref_multiple) : new function.
......
......@@ -1331,10 +1331,40 @@ sheet_style_insert_colrow (ExprRelocateInfo const *rinfo)
}
}
static void
cb_style_extent (MStyle *style,
int corner_col, int corner_row, int width, int height,
Range const *apply_to, gpointer user)
{
if (mstyle_visible_in_blank (style)) {
Range *r = (Range *)user;
int tmp;
tmp = corner_col+width-1;
if (r->end.col < tmp)
r->end.col = tmp;
tmp = corner_row+height-1;
if (r->end.row < tmp)
r->end.row = tmp;
}
}
/**
* sheet_style_get_extent :
*
* @sheet :
* @r :
*
* A simple implementation that find the max lower and right styles that are
* visible.
*/
void
sheet_style_get_extent (Sheet const *sheet, Range *r)
{
#warning FIXME : trivial finish get_extent
{
/* This could easily be optimized */
foreach_tile (sheet->style_data->styles,
TILE_TOP_LEVEL, 0, 0, r,
cb_style_extent, r);
}
/****************************************************************************/
......
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