Commit 1fa61b92 authored by Arturo Espinosa's avatar Arturo Espinosa

Prototype updates

parent f2729073
......@@ -240,6 +240,8 @@ insure_saver (FileSaver *current)
for (l = gnumeric_file_savers; l; l = l->next){
return l->data;
}
g_assert_not_reached ();
return NULL;
}
void
......
......@@ -359,7 +359,7 @@ Workbook *workbook_read (const char *filename);
void workbook_save_as (Workbook *);
void workbook_save (Workbook *);
void workbook_attach_sheet (Workbook *, Sheet *);
void workbook_detach_sheet (Workbook *, Sheet *);
gboolean workbook_detach_sheet (Workbook *, Sheet *);
Sheet *workbook_focus_current_sheet (Workbook *wb);
Sheet *workbook_get_current_sheet (Workbook *wb);
char *workbook_sheet_get_free_name (Workbook *wb);
......@@ -373,6 +373,7 @@ gboolean workbook_rename_sheet (Workbook *wb,
const char *old_name,
const char *new_name);
int workbook_sheet_count (Workbook *wb);
gboolean workbook_can_detach_sheet (Workbook *wb, Sheet *sheet);
/*
* Does any pending recalculations
......
......@@ -1628,12 +1628,12 @@ workbook_can_detach_sheet (Workbook *wb, Sheet *sheet)
{
GList *dependency_list;
g_return_if_fail (wb != NULL);
g_return_if_fail (sheet != NULL);
g_return_if_fail (IS_SHEET (sheet));
g_return_if_fail (sheet->workbook != NULL);
g_return_if_fail (sheet->workbook == wb);
g_return_if_fail (workbook_sheet_lookup (wb, sheet->name) == sheet);
g_return_val_if_fail (wb != NULL, FALSE);
g_return_val_if_fail (sheet != NULL, FALSE);
g_return_val_if_fail (IS_SHEET (sheet), FALSE);
g_return_val_if_fail (sheet->workbook != NULL, FALSE);
g_return_val_if_fail (sheet->workbook == wb, FALSE);
g_return_val_if_fail (workbook_sheet_lookup (wb, sheet->name) == sheet, FALSE);
dependency_list = region_get_dependencies (sheet, 0, 0, SHEET_MAX_COLS, SHEET_MAX_ROWS);
if (dependency_list == NULL)
......
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