Commit fa5c033c authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

create the client site here. (sheet_object_bonobo_set_object_iid) : rather


2000-12-14  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
	  the client site here.
	(sheet_object_bonobo_set_object_iid) : rather than here.

2000-12-14  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
	  Add ')' bug 35149
parent ac323c40
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
the client site here.
(sheet_object_bonobo_set_object_iid) : rather than here.
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
Add ')' bug 35149
2000-12-11 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Apply patch from
......
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
the client site here.
(sheet_object_bonobo_set_object_iid) : rather than here.
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
Add ')' bug 35149
2000-12-11 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Apply patch from
......
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
the client site here.
(sheet_object_bonobo_set_object_iid) : rather than here.
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
Add ')' bug 35149
2000-12-11 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Apply patch from
......
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
the client site here.
(sheet_object_bonobo_set_object_iid) : rather than here.
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
Add ')' bug 35149
2000-12-11 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Apply patch from
......
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
the client site here.
(sheet_object_bonobo_set_object_iid) : rather than here.
2000-12-14 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
Add ')' bug 35149
2000-12-11 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Apply patch from
......
This diff is collapsed.
/* $Id$/
Cell Content Jody Goldberg <jgoldberg@home.com>
Overview
Cell is one of the most widely used aspects of Gnumeric. This document
describes the operations and state changes that are available.
Content
location : Cells contain pointers to their sheet, the row, and the column
that contains them. This may change.
value : A Value *. All displayable cells should have a value.
renderedvalue : A placeholder for future use.
parse_format : Expressions store the results of autoformat and values store the
format used to parse the value that was entered.
LifeCycle
When a cell is first created it is initialized to have value_empty and no location.
Actions
- Mark sheet as dirty
- Queue depends for recalc
- Calculate
- Render
- Dimension
- Spans
- Redraw
- link expression to master list
- Update the edit area
- Recalc the auto expression
Future plans
- just in time rendering and span calculation
- span ovelap
- Have spans use run length encoding
/* $Id$/
Cell Content Jody Goldberg <jgoldberg@home.com>
Overview
Cell is one of the most widely used aspects of Gnumeric. This document
describes the operations and state changes that are available.
Content
location : Cells contain pointers to their sheet, the row, and the column
that contains them. This may change.
value : A Value *. All displayable cells should have a value.
renderedvalue : A placeholder for future use.
parse_format : Expressions store the results of autoformat and values store the
format used to parse the value that was entered.
LifeCycle
When a cell is first created it is initialized to have value_empty and no location.
Actions
- Mark sheet as dirty
- Queue depends for recalc
- Calculate
- Render
- Dimension
- Spans
- Redraw
- link expression to master list
- Update the edit area
- Recalc the auto expression
Future plans
- just in time rendering and span calculation
- span ovelap
- Have spans use run length encoding
......@@ -616,9 +616,10 @@ gnumeric_entry_at_subexpr_boundary_p (GtkEntry *entry)
return FALSE;
switch (entry->text [cursor_pos-1]){
case '=': case '-': case '*': case '/': case '^':
case '+': case '&': case '(': case '%': case '!':
case ':': case ',': case '<': case '>':
case ':': case ',': case '=':
case '(': case ')': case '<': case '>':
case '+': case '-': case '*': case '/':
case '^': case '&': case '%': case '!':
return TRUE;
default :
......
......@@ -616,9 +616,10 @@ gnumeric_entry_at_subexpr_boundary_p (GtkEntry *entry)
return FALSE;
switch (entry->text [cursor_pos-1]){
case '=': case '-': case '*': case '/': case '^':
case '+': case '&': case '(': case '%': case '!':
case ':': case ',': case '<': case '>':
case ':': case ',': case '=':
case '(': case ')': case '<': case '>':
case '+': case '-': case '*': case '/':
case '^': case '&': case '%': case '!':
return TRUE;
default :
......
......@@ -311,17 +311,17 @@ GNUMERIC_MAKE_TYPE (sheet_object_bonobo,
sheet_object_get_type ())
SheetObjectBonobo *
sheet_object_bonobo_construct (SheetObjectBonobo *sob, Sheet *sheet,
const char *object_id)
sheet_object_bonobo_construct (SheetObjectBonobo *sob,
Sheet const *sheet,
char const *object_id)
{
g_return_val_if_fail (IS_SHEET (sheet), NULL);
g_return_val_if_fail (IS_SHEET_OBJECT_BONOBO (sob), NULL);
if (object_id == NULL) {
sob->object_id = NULL;
sob->object_server = NULL;
sob->client_site = NULL;
} else
sob->object_id = NULL;
sob->object_server = NULL;
sob->client_site = bonobo_client_site_new (sheet->workbook->priv->bonobo_container);
if (object_id != NULL)
sheet_object_bonobo_set_object_iid (sob, object_id);
return sob;
......@@ -336,15 +336,13 @@ sheet_object_bonobo_get_object_iid (SheetObjectBonobo const *sob)
}
gboolean
sheet_object_bonobo_set_object_iid (SheetObjectBonobo *sob, char const *object_id)
sheet_object_bonobo_set_object_iid (SheetObjectBonobo *sob,
char const *object_id)
{
Sheet *sheet;
g_return_val_if_fail (IS_SHEET_OBJECT_BONOBO (sob), FALSE);
g_return_val_if_fail (sob->object_id == NULL, FALSE);
g_return_val_if_fail (object_id != NULL, FALSE);
sheet = SHEET_OBJECT (sob)->sheet;
sob->object_id = g_strdup (object_id);
sob->object_server = bonobo_object_activate (object_id, 0);
if (!sob->object_server) {
......@@ -352,7 +350,6 @@ sheet_object_bonobo_set_object_iid (SheetObjectBonobo *sob, char const *object_i
return FALSE;
}
sob->client_site = bonobo_client_site_new (sheet->workbook->priv->bonobo_container);
if (!bonobo_client_site_bind_embeddable (sob->client_site,
sob->object_server)) {
gtk_object_destroy (GTK_OBJECT (sob));
......
......@@ -36,12 +36,12 @@ typedef struct {
} SheetObjectBonoboClass;
GtkType sheet_object_bonobo_get_type (void);
SheetObjectBonobo *sheet_object_bonobo_construct (SheetObjectBonobo *sob,
Sheet *sheet,
const char *object_id);
SheetObjectBonobo *sheet_object_bonobo_construct (SheetObjectBonobo *sob,
Sheet const *sheet,
char const *object_id);
char const *sheet_object_bonobo_get_object_iid (SheetObjectBonobo const *sob);
gboolean sheet_object_bonobo_set_object_iid (SheetObjectBonobo *sob,
char const *object_id);
gboolean sheet_object_bonobo_set_object_iid (SheetObjectBonobo *sob,
char const *object_id);
gboolean sheet_object_bonobo_load_file (SheetObjectBonobo *sob,
char const *fname);
gboolean sheet_object_bonobo_load_stream (SheetObjectBonobo *sob,
......
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