Commit 489a4201 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

- Initial version of formula guru

- Some extensions to auto-fill
- Slight reorg of Bonobo support.

2000-06-13  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
	  the BonoboObject in the ENABLED_BONOBO case.

	* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
	  that may be up.
	(entry_changed) : Do not autocomplete expressions.  Gurus play havoc
	  with this.
	(workbook_edit_auto_complete_init) : Delete unused.
	(workbook_get_entry_logical) : New function.
	(workbook_set_entry) : New function.
	(workbook_edit_attach_guru) : New function.
	(workbook_edit_detach_guru) : New function.
	(workbook_editing_expr) : When a guru is up we are always editing an
	  expression. TODO, tune this.
	(workbook_edit_load_value) : Moved from Sheet, and renamed from
	  sheet_load_cell_val.
	(workbook_edit_init) : Handle gurus.

	* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.

	* src/sheet-vector.c (sheet_vector_new) : The vectors are
	  BonoboObjects, destroy them correctly.
	(sheet_vectors_shutdown) : Ditto.

	* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
	(sheet_object_insert) : Renamed from sheet_insert_object and moved
	  from sheet.c

	* src/pixmaps.h : Enable the Formula guru.

	* src/parser.y (arg_list) : Improve handling of empty arguments.

	* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
	  workbook_get_entry_logical.
	(selection_insert_selection_string) : Ditto.
	(start_cell_selection_at) : Ditto.
	(gnumeric_sheet_key_mode_sheet) : Ditto.

	* src/workbook-private.[ch] : Make this into a Bonobo Object for now.

	* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
	  workbook_new_with_sheets.
	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
	  object.

	* src/history.c (history_menu_item_create) : Ditto.
	(history_menu_locate_separator) : Ditto.
	(history_menu_insert_separator) : Ditto.
	(history_menu_remove_items) : Ditto.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
	* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.

	* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
	(change_menu_label) : Ditto.

	* src/file.c (workbook_try_read) : Workbook is now always just a
	  GtkObject.
	(workbook_import) : Ditto.

	* src/formats.c (cell_format_date) : Add some new formats.

	* src/format.c (find_decimal_char) : Restore constness.
	(format_remove_decimal) : Fix the const correctly.

	* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
	  semantics.

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

	* src/sheet-autofill.c (fill_item_destroy) : Free the format.
	(fill_item_new) : Handle filling by month and year.
	(autofill_compute_delta) : Ditto.
	(autofill_cell) : Ditto.

	* src/formats.c (cell_format_is_number) : currently handle the single
	  character currencies.
	(cell_format_date) : year only formats.

2000-06-10  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
	  optimization.
parent f574bc52
......@@ -4,8 +4,6 @@ and longer term bugs.
Release Critical
----------------
- Selection in the font name combo is partly broken. Manually entering a value
does not change the selected entry.
- Changing an expression name that is in use causes a crash.
- Saving xml should not rely on changing the textdomain to disable translation
of TRUE/FALSE.
......@@ -22,6 +20,8 @@ Long term breakage
and remove decimals.
- Auto resize needs to handle empty cells.
- auto-fill does not resize row/col
- The implication of mixed mode references ($B$2:C3)
is large. All accesses to a RangeRef need to be normalized. (1/2 done)
......@@ -34,6 +34,9 @@ Long term breakage
quotes) in a cell with an assigned format of Text. This should be treated as
text. Instead It parses as a Date (Oct 1) and gets converted.
- Some number formats are being written in their native locale. Breaking things when
they are reloaded in other locales.
- The File->Print Preview icon is too big. Use the stock version when the next
release of gnome-libs is made. (tigert is adding to gnome-libs)
......@@ -44,14 +47,9 @@ Long term breakage
gnome-print has a function we could use for printing which returns the
underline thickness.
- auto-fill does not resize row/col
- Some number formats are being written in their native locale. Breaking things when
they are reloaded in other locales.
Dialogs
-------
- Finish function wizard
- Enhance function wizard
- Use color combos in format dialog.
Function Breakage
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
......@@ -8,7 +8,8 @@ Jody:
* Improve cut/copy/paste.
* Improve col/row resize.
* Undo for copy/paste, autofill, col/row resize
* More work on function druid.
* More work on formula guru.
* Extend auto-fill to support months and years.
* Some translation bugs.
Jon Kåre:
......@@ -16,7 +17,7 @@ Jon K
* Synchronize list selection with entry field in combo boxes.
* Make units in print setup dialog user selectable.
* More dialog polishing.
JPR:
* Sorting now moves styles with the elements
* Sorting now detects headers when sorting
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
the BonoboObject in the ENABLED_BONOBO case.
* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
that may be up.
(entry_changed) : Do not autocomplete expressions. Gurus play havoc
with this.
(workbook_edit_auto_complete_init) : Delete unused.
(workbook_get_entry_logical) : New function.
(workbook_set_entry) : New function.
(workbook_edit_attach_guru) : New function.
(workbook_edit_detach_guru) : New function.
(workbook_editing_expr) : When a guru is up we are always editing an
expression. TODO, tune this.
(workbook_edit_load_value) : Moved from Sheet, and renamed from
sheet_load_cell_val.
(workbook_edit_init) : Handle gurus.
* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
* src/sheet-vector.c (sheet_vector_new) : The vectors are
BonoboObjects, destroy them correctly.
(sheet_vectors_shutdown) : Ditto.
* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
(sheet_object_insert) : Renamed from sheet_insert_object and moved
from sheet.c
* src/pixmaps.h : Enable the Formula guru.
* src/parser.y (arg_list) : Improve handling of empty arguments.
* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
workbook_get_entry_logical.
(selection_insert_selection_string) : Ditto.
(start_cell_selection_at) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto.
* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
workbook_new_with_sheets.
(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
object.
* src/history.c (history_menu_item_create) : Ditto.
(history_menu_locate_separator) : Ditto.
(history_menu_insert_separator) : Ditto.
(history_menu_remove_items) : Ditto.
* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
(change_menu_label) : Ditto.
* src/file.c (workbook_try_read) : Workbook is now always just a
GtkObject.
(workbook_import) : Ditto.
* src/formats.c (cell_format_date) : Add some new formats.
* src/format.c (find_decimal_char) : Restore constness.
(format_remove_decimal) : Fix the const correctly.
* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
semantics.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (fill_item_destroy) : Free the format.
(fill_item_new) : Handle filling by month and year.
(autofill_compute_delta) : Ditto.
(autofill_cell) : Ditto.
* src/formats.c (cell_format_is_number) : currently handle the single
character currencies.
(cell_format_date) : year only formats.
2000-06-10 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
optimization.
2000-06-13 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_round): Round properly.
......
......@@ -209,6 +209,7 @@ GNUMERIC_BASE_SOURCES = \
workbook-format-toolbar.c \
workbook-format-toolbar.h \
workbook-private.h \
workbook-private.c \
workbook-view.h \
workbook-view.c \
xml-io.c \
......
......@@ -707,21 +707,22 @@ cmd_ins_del_row_col_redo (GnumericCommand *cmd, CommandContext *context)
CmdInsDelRowCol *me = CMD_INS_DEL_ROW_COL(cmd);
Range r;
gboolean trouble;
int index;
int first, last;
g_return_val_if_fail (me != NULL, TRUE);
g_return_val_if_fail (me->sizes == NULL, TRUE);
g_return_val_if_fail (me->contents == NULL, TRUE);
index = (me->is_insert)
first = (me->is_insert)
? (((me->is_cols) ? SHEET_MAX_COLS : SHEET_MAX_ROWS) - me->count)
: me->index;
me->sizes = col_row_save_sizes (me->sheet, me->is_cols, index, me->count);
last = first + me->count - 1;
me->sizes = col_row_save_sizes (me->sheet, me->is_cols, first, last);
me->contents = clipboard_copy_range (me->sheet,
(me->is_cols)
? range_init (&r, index, 0, index + me->count - 1, SHEET_MAX_ROWS - 1)
: range_init (&r, 0, index, SHEET_MAX_COLS-1, index + me->count - 1));
? range_init (&r, first, 0, last, SHEET_MAX_ROWS - 1)
: range_init (&r, 0, first, SHEET_MAX_COLS-1, last));
if (me->is_insert) {
if (me->is_cols)
......
2000-06-13 Jody Goldberg <jgoldberg@home.com>
* dialog-function-wizard.c : Major overhaul to support non-modality
and selecting ranges using the mouse. Lots of work remains.
2000-06-12 Jody Goldberg <jgoldberg@home.com>
* dialog-cell-format.c (fmt_dialog_enable_widgets) : Currency formats
always have thousands seperators.
2000-06-13 Jon K Hellan <hellan@acm.org>
* print.glade(.h)?: No automatic support in Glade/libglade for
......
<
......@@ -606,14 +606,14 @@ fmt_dialog_init_fmt_list (GtkCList *cl, char const * const *formats,
static void
fmt_dialog_enable_widgets (FormatState *state, int page)
{
static FormatWidget contents[12][7] = {
static FormatWidget contents[12][8] = {
/* General */
{ F_GENERAL, F_MAX_WIDGET },
/* Number */
{ F_DECIMAL_BOX, F_DECIMAL_SPIN, F_SEPARATOR,
F_NEGATIVE_SCROLL, F_NEGATIVE, F_MAX_WIDGET },
/* Currency */
{ F_DECIMAL_BOX, F_DECIMAL_SPIN, F_SYMBOL_LABEL, F_SYMBOL,
{ F_DECIMAL_BOX, F_DECIMAL_SPIN, F_SEPARATOR, F_SYMBOL_LABEL, F_SYMBOL,
F_NEGATIVE_SCROLL, F_NEGATIVE, F_MAX_WIDGET },
/* Accounting */
{ F_DECIMAL_BOX, F_DECIMAL_SPIN, F_SYMBOL_LABEL, F_SYMBOL, F_MAX_WIDGET },
......@@ -721,7 +721,7 @@ cb_format_changed (GtkObject *obj, FormatState *state)
{