Commit 661ccc2d authored by Jukka-Pekka Iivonen's avatar Jukka-Pekka Iivonen Committed by jpekka

Added a few #if ENABLE_BONOBO checks to make it compile again.

1999-09-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* ms-obj.[ch]: Added a few #if ENABLE_BONOBO checks to make it
 	compile again.
parent 4f374830
1999-09-20 Jukka-Pekka Iivonen <iivonen@iki.fi>
* ms-obj.[ch]: Added a few #if ENABLE_BONOBO checks to make it
compile again.
1999-09-20 Jody Goldberg <jgoldberg@home.com>
* ms-escher.c (ms_escher_read_ClientData) : Handle unknown object
......
......@@ -46,6 +46,7 @@ ms_obj_realize(MSObj * obj, ExcelWorkbook *wb, ExcelSheet * sheet)
anchor = obj->anchor;
#ifdef ENABLE_BONOBO
switch (obj->gnumeric_type) {
case SHEET_OBJECT_BUTTON :
sheet_object_create_button (sheet->gnum_sheet,
......@@ -94,7 +95,7 @@ ms_obj_realize(MSObj * obj, ExcelWorkbook *wb, ExcelSheet * sheet)
default :
break;
};
#endif
g_free (obj);
return FALSE;
}
......@@ -421,6 +422,7 @@ ms_read_OBJ (BiffQuery *q, ExcelWorkbook * wb, Sheet * sheet)
};
gboolean errors;
#ifdef ENABLE_BONOBO
SheetObjectType type;
MSObj * obj = g_new(MSObj, 1);
obj->excel_type = (unsigned)-1; /* Set to undefined */
......@@ -495,4 +497,5 @@ ms_read_OBJ (BiffQuery *q, ExcelWorkbook * wb, Sheet * sheet)
#endif
return obj;
#endif
}
......@@ -26,7 +26,9 @@ typedef struct
int id;
/* Type specific parameters */
#ifdef ENABLE_BONOBO
SheetObjectType gnumeric_type;
#endif
unsigned excel_type;
union {
struct {
......
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