Commit 0acf0ed7 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Fix a few bugs. Flag a few bugs. Start on the exception handling

* Fix a few bugs.
* Flag a few bugs.
* Start on the exception handling mechanism.
* Move many typedefs into gnumeric.h to start the process
  of decoupling the headers.

1999-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Publicize.

	* src/sheet.c (clear_cell_content) : Delete.
	(sheet_clear_region_content) : Use sheet_clear_region but leave the
	  styles in place.

1999-12-15  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.h : Move many of the typedefs here.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Tweak some
	  const issues and minor logic problems at the boundaries.

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

	* src/workbook-view.c (command_context_gui) : New function.

	* src/main.c (gnumeric_main) : Add a 'quit' flag for use in testing.
	  It causes the app to exit immediately after loading all the selected
	  books.

	* src/file.c (workbook_import) : Bug 3977.

	* src/corba-sheet.c (command_context_corba) : New function
	  temporarily located here.
	(Sheet_selection_copy) : Pass a CommandContext.
	(Sheet_selection_cut) : Ditto
	(Sheet_selection_paste) : Ditto
	(Sheet_clear_region) : Ditto
	(Sheet_clear_region_content) : Ditto
	(Sheet_insert_col) : Ditto
	(Sheet_delete_col) : Ditto
	(Sheet_insert_row) : Ditto
	(Sheet_delete_row) : Ditto
	(Sheet_shift_rows) : Ditto
	(Sheet_shift_cols) : Ditto

	* src/item-cursor.c (item_cursor_do_action) : Ditto.

	* src/item-grid.c (context_cut_cmd) : Ditto.
	(context_cut_cmd) : Ditto.
	(context_copy_cmd) : Ditto.
	(context_paste_cmd) : Ditto.
	(context_paste_special_cmd) : Ditto.
	(context_clear_cmd) : Ditto.

	* src/clipboard.[ch] (do_clipboard_paste_cell_region) : Take a
	  CommandContext.
	(sheet_paste_selection) : Ditto.
	(clipboard_paste_region) : Ditto.

	* src/selection.c (segments_intersect) : Return additional state 5
	  to designate equality.
	(selection_apply) : Use the equality state to simplify state selection.
	(selection_is_simple) : Use a command context.
	(sheet_selection_copy) : Ditto.
	(sheet_selection_cut) : Ditto.
	(sheet_selection_paste) : Ditto.
	(sheet_selection_clear) : Ditto.
	(sheet_selection_clear_content) : Ditto.
	(sheet_selection_clear_comments) : Ditto.
	(sheet_selection_clear_formats) : Ditto.

	* src/workbook.c (copy_cmd) : Ditto.
	(cut_cmd) : Ditto.
	(paste_cmd) : Ditto.
	(paste_special_cmd) : Ditto.
	(insert_cols_cmd) : Ditto.
	(insert_rows_cmd) : Ditto.
	(clear_all_cmd) : Ditto.
	(clear_formats_cmd) : Ditto.
	(clear_comments_cmd) : Ditto.
	(clear_content_cmd) : Ditto.

	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
	  Ditto.
	(dialog_delete_cells) : Ditto.

	* src/dialogs/dialog-insert-cells.c (dialog_insert_cells_impl) :
	  Ditto.
	(dialog_insert_cells) : Ditto.
parent e47470a4
......@@ -19,6 +19,7 @@
#include "utils.h"
#include "ranges.h"
#include "application.h"
#include "workbook-view.h"
#undef DEBUG_POSITIONS
......@@ -769,7 +770,7 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
case GDK_KP_Delete:
case GDK_Delete:
sheet_selection_clear_content (sheet);
sheet_selection_clear_content (command_context_gui(), sheet);
break;
case GDK_KP_Enter:
......
......@@ -19,6 +19,7 @@
#include "utils.h"
#include "ranges.h"
#include "application.h"
#include "workbook-view.h"
#undef DEBUG_POSITIONS
......@@ -769,7 +770,7 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
case GDK_KP_Delete:
case GDK_Delete:
sheet_selection_clear_content (sheet);
sheet_selection_clear_content (command_context_gui(), sheet);
break;
case GDK_KP_Enter:
......
......@@ -22,6 +22,7 @@
#include "application.h"
#include "workbook-cmd-format.h"
#include "pattern.h"
#include "workbook-view.h"
static GnomeCanvasItemClass *item_grid_parent_class;
......@@ -542,21 +543,21 @@ context_destroy_menu (GtkWidget *widget)
static void
context_cut_cmd (GtkWidget *widget, Sheet *sheet)
{
sheet_selection_cut (sheet);
sheet_selection_cut (command_context_gui(), sheet);
context_destroy_menu (widget);
}
static void
context_copy_cmd (GtkWidget *widget, Sheet *sheet)
{
sheet_selection_copy (sheet);
sheet_selection_copy (command_context_gui(), sheet);
context_destroy_menu (widget);
}
static void
context_paste_cmd (GtkWidget *widget, Sheet *sheet)
{
sheet_selection_paste (sheet,
sheet_selection_paste (command_context_gui(), sheet,
sheet->cursor_col,
sheet->cursor_row,
PASTE_DEFAULT,
......@@ -571,7 +572,7 @@ context_paste_special_cmd (GtkWidget *widget, Sheet *sheet)
flags = dialog_paste_special (sheet->workbook);
if (flags != 0)
sheet_selection_paste (sheet,
sheet_selection_paste (command_context_gui(), sheet,
sheet->cursor_col,
sheet->cursor_row,
flags,
......@@ -596,7 +597,7 @@ context_delete_cmd (GtkWidget *widget, Sheet *sheet)
static void
context_clear_cmd (GtkWidget *widget, Sheet *sheet)
{
sheet_selection_clear_content (sheet);
sheet_selection_clear_content (command_context_gui(), sheet);
context_destroy_menu (widget);
}
......
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