Commit 4924bd08 authored by Arturo Espinosa's avatar Arturo Espinosa
Browse files

Add fact sheet

parent 5b7c5e7a
* Functions:
* Importers/Exporters:
Excel .xls import/export.
Lotus 1-2-3 import.
* Spreadsheet
* Workbooks can contain multiple sheets.
* Values
* Values are compatible with Excel.
* Format engine is compatible with Excel.
* Print support
* Prints using GnomePrint to Postscript.
*
\ No newline at end of file
......@@ -695,8 +695,6 @@ cell_content_changed (Cell *cell)
cell->row->pos);
if (deps)
cell_queue_recalc_list (deps, TRUE);
workbook_cell_changed (cell->sheet->workbook, cell);
}
......
......@@ -72,9 +72,9 @@ gnumeric_sheet_get_cell_bounds (GnumericSheet *gsheet, int col, int row, int *x,
/*
* gnumeric_sheet_cursor_set
* @gsheet: The sheet
* @col: the column
* @row: the row
* @gsheet: The sheet
* @col: the column
* @row: the row
*
* This informs the GnumericSheet of the cursor position. It is
* used to sync the contents of the scrollbars with our position
......@@ -113,11 +113,11 @@ gnumeric_sheet_cursor_set (GnumericSheet *gsheet, int col, int row)
/*
* gnumeric_sheet_set_selection:
* @gsheet: The sheet name
* @start_col: The starting column.
* @start_row: The starting row
* @end_col: The end column
* @end_row: The end row
* @gsheet: The sheet name
* @start_col: The starting column.
* @start_row: The starting row
* @end_col: The end column
* @end_row: The end row
*
* Set the current selection to cover the inclusive area delimited by
* start_col, start_row, end_col and end_row. The actual cursor is
......@@ -139,10 +139,11 @@ gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection *ss)
/*
* move_cursor:
* @Sheet: The sheet where the cursor is located
* @col: The new column for the cursor.
* @row: The new row for the cursor.
* @clear_selection: If set, clear the selection before moving
* @gsheet: The sheet where the cursor is located
* @col: The new column for the cursor.
* @row: The new row for the cursor.
* @clear_selection: If set, clear the selection before moving
*
* Moves the sheet cursor to a new location, it clears the selection,
* accepts any pending output on the editing line and moves the cell
* cursor.
......
......@@ -72,9 +72,9 @@ gnumeric_sheet_get_cell_bounds (GnumericSheet *gsheet, int col, int row, int *x,
/*
* gnumeric_sheet_cursor_set
* @gsheet: The sheet
* @col: the column
* @row: the row
* @gsheet: The sheet
* @col: the column
* @row: the row
*
* This informs the GnumericSheet of the cursor position. It is
* used to sync the contents of the scrollbars with our position
......@@ -113,11 +113,11 @@ gnumeric_sheet_cursor_set (GnumericSheet *gsheet, int col, int row)
/*
* gnumeric_sheet_set_selection:
* @gsheet: The sheet name
* @start_col: The starting column.
* @start_row: The starting row
* @end_col: The end column
* @end_row: The end row
* @gsheet: The sheet name
* @start_col: The starting column.
* @start_row: The starting row
* @end_col: The end column
* @end_row: The end row
*
* Set the current selection to cover the inclusive area delimited by
* start_col, start_row, end_col and end_row. The actual cursor is
......@@ -139,10 +139,11 @@ gnumeric_sheet_set_selection (GnumericSheet *gsheet, SheetSelection *ss)
/*
* move_cursor:
* @Sheet: The sheet where the cursor is located
* @col: The new column for the cursor.
* @row: The new row for the cursor.
* @clear_selection: If set, clear the selection before moving
* @gsheet: The sheet where the cursor is located
* @col: The new column for the cursor.
* @row: The new row for the cursor.
* @clear_selection: If set, clear the selection before moving
*
* Moves the sheet cursor to a new location, it clears the selection,
* accepts any pending output on the editing line and moves the cell
* cursor.
......
......@@ -3863,6 +3863,11 @@ sheet_cursor_set (Sheet *sheet, int base_col, int base_row, int start_col, int s
end_col, end_row);
}
sheet_load_cell_val (sheet);
/*
* For speach synthesis
*/
workbook_cursor_moved (sheet->workbook, base_col, base_row, start_col, start_row, end_col, end_row);
}
/**
......
......@@ -114,10 +114,6 @@ typedef struct {
#else
GtkObjectClass gtk_parent_class;
#endif
/*
* Signals
*/
void (*cell_content_changed) (Workbook *workbook, void *cell);
} WorkbookClass;
GtkType workbook_get_type (void);
......@@ -198,9 +194,4 @@ extern Workbook *current_workbook;
void workbook_corba_setup (Workbook *);
void workbook_corba_shutdown (Workbook *);
/*
* For signaling changes (output synthesis)
*/
void workbook_cell_changed (Workbook *wb, void *cell);
#endif
......@@ -45,15 +45,7 @@ static int workbook_count;
static GList *workbook_list = NULL;
/*
* For the Workbook class
*/
enum {
CELL_CONTENT_CHANGED,
LAST_SIGNAL,
};
static WORKBOOK_PARENT_CLASS *workbook_parent_class;
static guint wb_signals [LAST_SIGNAL] = { 0, };
static void workbook_set_focus (GtkWindow *window, GtkWidget *focus, Workbook *wb);
......@@ -1948,19 +1940,6 @@ workbook_class_init (GtkObjectClass *object_class)
workbook_parent_class = gtk_type_class (WORKBOOK_PARENT_CLASS_TYPE);
object_class->destroy = workbook_destroy;
wb_signals [CELL_CONTENT_CHANGED] =
gtk_signal_new (
"cell_content_changed",
GTK_RUN_LAST,
object_class->type,
GTK_SIGNAL_OFFSET (WorkbookClass, cell_content_changed),
gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 0);
workbook_class->cell_content_changed = NULL;
gtk_object_class_add_signals (object_class, wb_signals, LAST_SIGNAL);
}
GtkType
......@@ -2849,10 +2828,3 @@ workbook_selection_to_string (Workbook *wb, Sheet *base_sheet)
return result;
}
void
workbook_cell_changed (Workbook *wb, void *c)
{
Cell *cell = c;
gtk_signal_emit (GTK_OBJECT (wb), wb_signals [CELL_CONTENT_CHANGED], cell);
}
......@@ -114,10 +114,6 @@ typedef struct {
#else
GtkObjectClass gtk_parent_class;
#endif
/*
* Signals
*/
void (*cell_content_changed) (Workbook *workbook, void *cell);
} WorkbookClass;
GtkType workbook_get_type (void);
......@@ -198,9 +194,4 @@ extern Workbook *current_workbook;
void workbook_corba_setup (Workbook *);
void workbook_corba_shutdown (Workbook *);
/*
* For signaling changes (output synthesis)
*/
void workbook_cell_changed (Workbook *wb, void *cell);
#endif
Supports Markdown
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