Commit f84afb18 authored by Michael Meeks's avatar Michael Meeks Committed by Michael Meeks
Browse files

correct include.

2000-04-11  Michael Meeks  <michael@helixcode.com>

	* src/parser.y: correct include.

	* src/cell.c (cell_set_rendered_text): move up to before its first use.
parent 452d4e17
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
2000-04-11 Michael Meeks <michael@helixcode.com>
* src/parser.y: correct include.
* src/cell.c (cell_set_rendered_text): move up to before its first use.
2000-04-09 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/sheet.h: Rename member "private" -> "priv" in case anyone in the
......
......@@ -71,6 +71,31 @@ cell_cleanout (Cell *cell)
}
}
/*
* cell_set_rendered_text
* @cell: the cell we will modify
* @rendered_text: the text we will display
*
* This routine sets the rendered text field of the cell
* it recomputes the bounding box for the cell as well
*/
static void
cell_set_rendered_text (Cell *cell, const char *rendered_text)
{
String *oldtext;
g_return_if_fail (cell != NULL);
g_return_if_fail (rendered_text != NULL);
cell_modified (cell);
oldtext = cell->text;
cell->text = string_get (rendered_text);
if (oldtext)
string_unref (oldtext);
cell_calc_dimensions (cell, TRUE);
}
void
cell_set_formula (Cell *cell, const char *text)
......@@ -335,32 +360,6 @@ cell_set_comment (Cell *cell, const char *str)
cell_comment_realize (cell);
}
/*
* cell_set_rendered_text
* @cell: the cell we will modify
* @rendered_text: the text we will display
*
* This routine sets the rendered text field of the cell
* it recomputes the bounding box for the cell as well
*/
static void
cell_set_rendered_text (Cell *cell, const char *rendered_text)
{
String *oldtext;
g_return_if_fail (cell != NULL);
g_return_if_fail (rendered_text != NULL);
cell_modified (cell);
oldtext = cell->text;
cell->text = string_get (rendered_text);
if (oldtext)
string_unref (oldtext);
cell_calc_dimensions (cell, TRUE);
}
char *
cell_get_formatted_val (Cell *cell, StyleColor **colour)
{
......
......@@ -21,7 +21,7 @@
#include "expr-name.h"
#include "sheet.h"
#include "application.h"
#include "utils.h"
#include "gutils.h"
#include "auto-format.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