1. 12 Jul, 2001 1 commit
    • Morten Welinder's avatar
      New function. · 3c2b4775
      Morten Welinder authored
      2001-07-12  Morten Welinder  <terra@diku.dk>
      
      	* src/mathfunc.c (range_multinomial): New function.
      
      	* configure.in (evolution): Fix check, but see BUGS.
      
      2001-07-12  Morten Welinder  <terra@diku.dk>
      
      	* fn-math.c (gnumeric_multinomial): Cleanup.
      3c2b4775
  2. 11 Jul, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Add error ID's. (gnumeric_parse_error): Accept ID and set ID on error · c44451ea
      Almer S. Tigelaar authored
      2001-07-11  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/parser.y : Add error ID's.
      	(gnumeric_parse_error): Accept ID and set ID on error struct.
      
      	* src/parse-util.[ch]
      	(parse_error_init): Initialize the error id.
      
      	* src/workbook-edit.c (wbcg_edit_finish): When there's a missing
      	closing paren, try appending one and see if it helps.
      
      	* src/stf-parse.c (stf_preparse): New, default preparsing of a file.
      	(stf_read_workbook): Use stf_preparse.
      	(stf_read_default_probe): Prober for reading.
      	(stf_read_workbook_csv_default): New, read a csv file in default formatting.
      	(stf_init): Register stf_read_workbook_csv_default.
      c44451ea
  3. 09 Jul, 2001 1 commit
  4. 08 Jul, 2001 2 commits
  5. 07 Jul, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Changes from Almer. · 68007bd8
      Almer S. Tigelaar authored
      2001-07-07  Almer S. Tigelaar  <almer@gnome.org>
      
      	* fn-string.c (gnumeric_char): Beautify.
      	(gnumeric_code): Simplify, no need to check type.
      	(gnumeric_lower): Use gstrdown.
      	(gnumeric_mid): Beautify, no need to check type.
      	(gnumeric_upper): Use gstrup.
      	(gnumeric_concatenate): Drastically simplify using GString.
      	(gnumeric_replace): Idem.
      68007bd8
  6. 06 Jul, 2001 1 commit
  7. 05 Jul, 2001 2 commits
    • Jody Goldberg's avatar
      update · a5bab033
      Jody Goldberg authored
      a5bab033
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	  stupid.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	  fonts.
      
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
      99073bd9
  8. 29 Jun, 2001 1 commit
  9. 28 Jun, 2001 1 commit
  10. 22 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Prefer absolute lowest y-value in cases where we have only one side of · 4a6dcac2
      Morten Welinder authored
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* src/goal-seek.c (update_data): Prefer absolute lowest y-value in
       	cases where we have only one side of zero.
      
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* fn-financial.c (gnumeric_rate, gnumeric_irr): No longer respect
       	sign of guess.  It's a nice idea, but breaks tests.
      
      
      (White-space samba in plugins/excel/ms-excel-read.c)
      4a6dcac2
  11. 21 Jun, 2001 3 commits
    • Morten Welinder's avatar
      #include <string.h> for strlen. · fbb769d8
      Morten Welinder authored
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* src/summary.c: #include <string.h> for strlen.
      
      	* src/search.c (calculate_replacement): Warning killer.
      
      	* src/regression.c: #include <stdlib.h> for abs.
      
      	* src/plugin-loader-module.c: #include <string.h> for strcmp.
      
      	* src/formats.c (cell_format_fraction): Avoid accidental use of
       	trigraph.
      
      	* src/complete.c: #include <stdlib.h> for abort.
      
      
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* fn-stat.c: #include <string.h> for memset.
      
      	* fn-lookup.c: #include <stdlib.h> for abs.
      
      	* fn-information.c (translate_table): Fix accidental use of
       	trigraph.
      	#include <stdlib.h> for abs and <string.h> for strcmp.
      
      	* fn-date.c: #include <string.h> for strcmp and <stdlib.h> for
       	abort.
      fbb769d8
    • Chyla Zbigniew's avatar
      Updated. · ebdbbdda
      Chyla Zbigniew authored
      
      Updated.
      ebdbbdda
    • Almer S. Tigelaar's avatar
      New, toggles borders around regions. · 9235acc4
      Almer S. Tigelaar authored
      2001-06-21  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/gnumeric-sheet.c (border_mutate): New, toggles
       	borders around regions.
      
       	(gnumeric_sheet_key_mode_sheet):
       	Make Ctrl+Backspace center on the active cell.
       	Add support for Locked scrolling with the arrow keys, home and end.
       	Add support for Ctrl+Shift ~, $, %, ^, #, @, !, & and _ shortcut keys
       	for formatting and border mutations.
      
       	* src/workbook-control-gui.c, src/GNOME_Gnumeric.xml:
       	Change keybinding of Goto Cell from Ctrl+G to F5.
       	Set keybinding of Search&Replace to F6.
       	Set keybinding of Define Names to Ctrl+F3
      9235acc4
  12. 20 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      Adjust to ref semantics change. · 2d2eb8c1
      Jody Goldberg authored
      2001-06-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_search_replace_do_cell) : Adjust to ref
      	  semantics change.
      
      	* src/number-match.c (format_match) : do not add a ref to the
      	  resulting format.
      
      	* src/sheet.c (sheet_cell_set_text) : no need to unref anymore.
      	(sheet_range_set_text) : ditto.
      
      	* src/cell.c (cell_assign_value) : ref before unref.
      	(cell_eval_content) : Use a simplified assignment to avoid refing and
      	  unrefing the formats.
      	(cell_set_text) : cleanup reference handling.
      2d2eb8c1
  13. 19 Jun, 2001 1 commit
  14. 06 Jun, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Add new GlobalRange. · 76a1bbbc
      Almer S. Tigelaar authored
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/gnumeric.h : Add new GlobalRange.
      
      	* src/ranges.[ch] (global_range_new): Create a new globalrange.
      	(global_range_free): Free.
      	(global_range_overlap): Utility function.
      	(global_range_dup): Idem.
      
      	* src/sheet.[ch] (sheet_cell_get_value): New function.
      
      	* src/workbook-control-gui.c (cb_data_consolidate) :
      	Entry point for the data consolidation dialog.
      
      	* src/GNOME_Gnumeric.xml : Add consolidate menu item.
      
      	* src/commands.c (cmd_consolidate) : Undo/redo for consolidate.
      	(cmd_consolidate_destroy) : Idem.
      	(cmd_consolidate_redo) : Idem.
      	(cmd_consolidate_undo) : Idem.
      
      	* src/consolidate.[ch] : Consolidation low-level code.
      
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-consolidate.c : Implementation of the consolidation dialog.
      
      	* consolidate.glade : Idem.
      76a1bbbc
  15. 03 Jun, 2001 5 commits
    • Almer S. Tigelaar's avatar
      Add support for escaped newlines and clean-up. · a1f8bb83
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf.c
      	(stf_parse_csv_cell): Add support for escaped newlines and
      	clean-up.
      	(stf_parse_options_csv_set_customfieldseparator): Support
      	string separator.
      	(stf_parse_options_new): Initialize customfieldseparator.
      	(stf_parse_options_free): Free custom field separator.
      	(stf_parse_csv_is_separator): Handle new string customfield separator.
      	(stf_parse_csv_cell): Idem.
      	(stf_parse_get_colcount): Idem.
      	(stf_parse_get_colwidth): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-stf.glade: Make length of customfield
      	separator infinite.
      
      	* dialog-stf-csv-page.c (csv_page_global_change):
      	Set string customseparator instead of char.
      a1f8bb83
    • Almer S. Tigelaar's avatar
      Exporting wouldn't work because of wrong changes to the code. Fixed. · eb5159f5
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf.c (stf_write_workbook): Exporting wouldn't work
      	because of wrong changes to the code. Fixed.
      eb5159f5
    • Morten Welinder's avatar
      Do arg type checking here. (fn_def_new): Not here. (function_remove): Free · 5668bf4c
      Morten Welinder authored
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (function_add_args): Do arg type checking here.
      	(fn_def_new): Not here.
      	(function_remove): Free cached arg types.
      	(function_add_args): Pre-calculate arg counts and types.
      	(function_def_get_full_info_if_needed): Ditto.
      	(function_call_with_list): Use pre-calculated arg counts and
       	types.
      	(function_add_name_only): Use FUNCTION_NAMEONLY for type.
      
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (information_functions_init): Don't supply arg
       	spec for node function.
      	* fn-lookup.c (lookup_functions_init): Ditto.
      	* fn-math.c (math_functions_init): Ditto.
      	* fn-eng.c (eng_functions_init): Ditto.
      
      	* fn-date.c (gnumeric_datedif): Constify.
      5668bf4c
    • Jody Goldberg's avatar
      doh! (format_compile) : Assign the default conditions. · 3b01ad11
      Jody Goldberg authored
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_compile) : doh!
      	(format_compile) : Assign the default conditions.
      3b01ad11
    • Almer S. Tigelaar's avatar
      New, converts a row number to a string. (rows_name): Idem, but for a · 77cadcab
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/parse-util.[ch] (row_name): New, converts
       	a row number to a string.
       	(rows_name): Idem, but for a start/end range.
       	(row_name_internal): Utility routine.
      
       	* src/colrow.c (colrow_string_build): Remove.
       	(colrow_index_list_to_string): Use rows_name
       	and cols_name.
      
       	* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
      
       	* src/commands.c (cmd_insert_rows): Idem.
       	(cmd_delete_cols): Beautify.
       	(cmd_delete_rows): Beautify and use rows_name.
      
       	* src/eval.c (dump_range_dep): Use row_name.
      
       	* src/item-bar.c (get_row_name): Deprecated, remove.
       	(item_bar_draw): Use row_name.
      
       	* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
      
       	* src/item-grid.c (item_grid_draw): Idem.
      
       	* src/ranges.c (range_name): Idem.
       	(range_dump): Idem.
      
       	* src/selection.c (reference_append): Idem.
       	(selection_get_ranges): Idem.
       	(cb_range_to_string): Idem.
      
       	* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
       	(vertical_scroll_offset_changed): Idem.
      
       	* src/value-sheet.c (value_dump): Idem.
       	(encode_cellref): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* dialog-cell-sort.c (col_row_name):
       	Use row_name.
      77cadcab
  16. 02 Jun, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Implement group undo/redo (cmd_group_redo): Idem. (cmd_group_destroy): · e301f704
      Almer S. Tigelaar authored
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
              * src/commands.[ch] (cmd_group_undo): Implement group undo/redo
        	(cmd_group_redo): Idem.
        	(cmd_group_destroy): Idem.
        	(cmd_group): Idem.
      
        	* src/workbook-control-gui.c (cb_data_group): Implement.
        	(cb_data_ungroup): Idem.
        	(group_ungroup_colrow): Utility function to determine if
        	columns or rows need to be grouped/ungrouped.
      
        	* src/sheet.[ch] (sheet_col_row_group_ungroup): New, high level routine
       	for adjusting outlines.
       	(sheet_col_row_fit_gutter): Dynamically adjust gutter size.
       	(cb_outline_level): Callback for the above.
       	(sheet_col_row_can_group): Query if a range of cols/rows
       	can actually group/ungroup.
       	(sheet_col_row_set_outline_level): Deprecated, remove.
      
       	* src/colrow.[ch] (colrow_set_outline): Set outline on a col/row.
      
        	* src/GNOME_Gnumeric.xml: DataOutlineUnGroup change to
        	DataOutlineUngroup.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* colrow.glade: New simple dialog.
      
      	* dialog-simple-input.c, dialogs.h
      	(dialog_choose_cols_vs_rows): New, let user choose
      	between columns or rows.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* (ms_excel_read_row): Set outline using
      	new functions.
      	(ms_excel_read_colinfo): Idem.
      e301f704
  17. 01 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Use value_peek_string. · 19b0b593
      Morten Welinder authored
      2001-05-29  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (gnumeric_cell, gnumeric_info, gnumeric_error,
       	gnumeric_n): Use value_peek_string.
      
      	* fn-financial.c (gnumeric_coupdaybs, gnumeric_coupdays,
       	gnumeric_coupncd, gnumeric_coupnum): Remove mysterious and
       	unnecessary references to VALUE_ERROR.
      	(gnumeric_db): Improve error checking.
      
      	* fn-eng.c (gnumeric_complex): Fix using value_peek_string.
      	(gnumeric_convert): Get rid of one_C_to_K and introduce
       	C_K_offset.  Fix using value_peek_string.
      	(get_constant_of_unit): Constify.
      	(convert): Constify.
      	(help_erfc): complement, not compliment, :-)
      
      	* fn-date.c (gnumeric_datedif): Use value_peek_string.
      19b0b593
  18. 28 May, 2001 2 commits
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · e18b7e85
      Jody Goldberg authored
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* sheet.c (sheet_name_quote): Escape \ and add more chars to
      	  to quote_chr.
      e18b7e85
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · 3b241834
      Jody Goldberg authored
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* gnumeric-util.h (gnumeric_filter_modifiers): New macro.
      
      	* workbook-control-gui.c (wb_edit_key_pressed): Use it.
      	* gnumeric-sheet.c (gnumeric_filter_modifiers): Ditto.
      3b241834
  19. 26 May, 2001 1 commit
    • Jody Goldberg's avatar
      Save the iteration preferences too. These are workbook level flags. I am · 7eb4a25b
      Jody Goldberg authored
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_sheet_bools) : Save the iteration
      	  preferences too.  These are workbook level flags.  I am unclear why
      	  XL saves them at the sheet level.
      
      	* ms-excel-read.c (ms_excel_read_calccount) : new function.
      	(ms_excel_read_delta) : ditto.
      	(ms_excel_read_iteration) : ditto.
      	(ms_excel_read_sheet) : use them here.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_eval_content) : Use the iteration prefs.
      
      	* src/workbook.c (workbook_iteration_tolerance) : new function.
      	(workbook_iteration_enabled) : ditto.
      	(workbook_iteration_max_number) : ditto.
      7eb4a25b
  20. 25 May, 2001 1 commit
  21. 24 May, 2001 1 commit
    • Jody Goldberg's avatar
      Revamp the recalc queue · af206304
      Jody Goldberg authored
      2001-05-22  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric.spec.in : bump version of libole2
      	* README : ditto.
      	* configure.in : ditto.
      
      2001-05-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_is_pristine) : no need to check the recalc
      	  queue.  If there are no dependents there is nothing to put on the
      	  eval queue.
      
      	* src/func.c (cb_iterate_cellrange) : rename from
      	  iterate_cellrange_callback remove 'generation' mechanism.
      
      	* src/cell.c (cell_cleanout) : Clear both recalc flags,
      	  in_queue and needs
      	(cell_copy) : ditto.
      	(cell_eval_content) : No need to render the value.  assign_value
      	  already does it.
      	(cell_content_changed) : deleted.
      
      	* src/Makefile.am : merge dependent.[ch] into eval.[ch]
      
      2001-05-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c : reorg and merged with dependent.[ch]
      
      	* src/sheet.c (sheet_cell_set_text) :
      	  s/cell_content_changed/cell_queue_recalc/
      	(sheet_cell_set_expr) : ditto.
      	(sheet_cell_set_value) : ditto.
      	(colrow_move) : ditto.
      	(sheet_destroy_contents) :
      	  s/dependent_unqueue_recalc_sheet/dependent_unqueue_sheet/
      
      	* src/cmd-edit.c (cmd_select_cur_row) : Make behavior match XL.
      	(cmd_select_cur_col) : Make behavior match XL.
      
      	* src/format.c (render_number) : avoid temporaries.
      	(do_render_number) : ditto.
      
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_range) : delete.
      	(eval_expr_real) : Use workbook_foreach_cell_in_range rather than
      	  range_eval.  Remove 'generation' mechanism.
      	(cb_range_eval) : a simple pass through
      
      	* src/eval.c (sheet_region_recalc_deps) : rename from
      	  sheet_recalc_dependencies and merge in sheet_region_get_deps.
      	  Use the new foreach style interfaces.
      	(cb_single_recalc_all_depends) : rename from cb_single_get_all_depends
      	  and simplify.
      	(cb_range_recalc_all_depends) : rename from cb_sheet_get_all_depends and simplify.
      	(cb_dependent_queue_recalc) : new wrapper.
      	(cb_region_contained_depend) : renamed from search_range_deps and simplify.
      	(cell_foreach_dep) : rename from cell_get_dependencies and switch to
      	  an in place api rather than creating a list.
      	(cell_foreach_single_dep) : switch to in place api
      	(cell_foreach_range_dep) : ditto.
      	(search_cell_deps) : ditto.
      	(cell_recalc_deps) : ditto.
      	(cell_eval) : ditto.
      	(cb_generation_queue) : new utility.
      
      	* src/dependent.c (dependent_list_filter) : delete.
      
      	* src/cmd-edit.c (cb_collect_deps) : new function split from.
      	(cmd_select_cur_depends) : here. So that we can use the new depend
      	  api.
      
      	* src/sheet.c (sheet_move_range) : use sheet_region_recalc_deps.
      	(sheet_{insert,delete}_{cols,rows}) : ditto.
      	(sheet_cell_remove_simple) : Use in place depend interface.
      
      	* src/cell.c (cell_content_changed) : Use in place depend interface.
      	* src/clipboard.c (clipboard_paste_region) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_autofill_redo) : ditto.
      
      2001-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : remove gnorba and modernize a bit.
      af206304
  22. 22 May, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Bump XML version number. (xml_workbook_write): Write index of sheet names · b89fa763
      Almer S. Tigelaar authored
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/xml-io.c : Bump XML version number.
      	(xml_workbook_write): Write index of sheet names
      	at the beginning of the file and always write
      	latest version number.
      
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* xml-sax-read.c (xml_sax_sheet_name): Don't create
      	sheet here.
      	(xml_sax_wb_sheetname): Create sheet here.
      	(xml_sax_finish_parse_wb_names_name): Fix workbook level
      	name reading.
      	(xml_sax_start_element): Handle new sheetnameindex.
      	(xml_sax_end_element): Idem.
      	(xml_sax_characters): Idem.
      	(xml_sax_wb): Small tweak for correct version reading.
      b89fa763
    • Jody Goldberg's avatar
      Please update this folks · e43b23ee
      Jody Goldberg authored
      e43b23ee
  23. 19 May, 2001 1 commit
  24. 14 May, 2001 1 commit
    • Almer S. Tigelaar's avatar
      New, contains what was previously in cmd_paste_copy_undo. · f1eb6bf6
      Almer S. Tigelaar authored
      2001-05-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_paste_copy_impl): New, contains
      	what was previously in cmd_paste_copy_undo.
      	(cmd_paste_copy_undo): Call upon cmd_paste_copy_impl.
      	(cmd_paste_copy_redo): Idem.
      	(cmd_paste_copy): Remove initialization of me->is_undo flag,
      	the flag has been burned.
      f1eb6bf6
  25. 12 May, 2001 1 commit
  26. 09 May, 2001 1 commit
    • Jody Goldberg's avatar
      s/scg_stop_range_selection/scg_rangesel_stop/ · 534405d6
      Jody Goldberg authored
      
      2001-05-08  Jody Goldberg <jgoldberg@home.com>
      
      	s/scg_stop_range_selection/scg_rangesel_stop/
      
      	s/scg_set_cursor_bounds/scg_cursor_bound/
      	s/scg_cursor_vertical_extend/scg_cursor_extend_v/
      	s/scg_cursor_horizontal_extend/scg_cursor_extend_h/
      	s/scg_cursor_vertical_move/scg_cursor_move_v/
      	s/scg_cursor_horizontal_move/scg_cursor_move_h/
      	s/scg_cursor_vertical_extend/scg_rangesel_extend_v/
      	s/scg_cursor_horizontal_extend/scg_rangesel_extend_h/
      	s/scg_cursor_vertical_move/scg_rangesel_move_v/
      	s/scg_cursor_horizontal_move/scg_rangesel_move_h/
      
      	* src/sheet-control-gui.[ch] : Move the rangesel info from
      	  gnumeric-sheet into here in preparation for panes.
      	(scg_rangesel_extend_v) : merge content from
      	  gnumeric-sheet equivalent.
      	(scg_rangesel_extend_h) : ditto.
      	(scg_rangesel_move_v) : ditto.
      	(scg_rangesel_move_h) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(start_range_selection) : moved from gnumeric-sheet.
      	(scg_rangesel_possible) : renamed from
      	    gnumeric_sheet_can_select_expr_range.
      	(scg_rangesel_changed) : renamed from scg_range_selection_changed
      	  and make this the point that rationalizes the cursor points.
      	(scg_cursor_bound) : renamed from scg_set_cursor_bounds
      	  and make this the point that raionalizes the cursor points.
      	(scg_ant) : changes to item_cursor_set_bounds.
      	(scg_colrow_select) : rangesel support is now in scg.
      	(scg_select_all) : ditto.
      
      	* src/workbook-edit.c : cleanup includes.
      
      	* src/item-grid.c (item_grid_event) : rangesel support is now in scg.
      	(item_grid_button_1) : ditto.
      
      	* src/item-cursor.h : privatize the structure and class.
      
      	* src/item-cursor.c (cb_autofill_scroll) : changes to
      	  item_cursor_set_bounds_visibly signature.
      	(cb_move_cursor) : ditto.
      	(item_cursor_set_bounds_visibly) : changes to item_cursor_set_bounds
      	  signature.
      	(item_cursor_selection_event) : ditto.
      	(item_cursor_set_bounds) : simplify.
      
      	* src/item-bar.c (is_pointer_on_division) : rangesel support is now in scg.
      
      	* src/gnumeric-sheet.[ch] : move the rangesel logic up into scg.
      
      2001-05-08  Jody Goldberg <jgoldberg@home.com>
      
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      	* src/sheet.c: (sheet_clone_colrow_info): Clone col and row
      	  default size.
      534405d6
  27. 07 May, 2001 2 commits
    • Morten Welinder's avatar
      Constify. (dialog_cell_sort_ok): Plug leak. · c863e525
      Morten Welinder authored
      2001-05-06  Morten Welinder  <terra@diku.dk>
      
      	* dialog-cell-sort.c (order_box_get_text, string_pos_in_list):
       	Constify.
      	(dialog_cell_sort_ok): Plug leak.
      c863e525
    • Chyla Zbigniew's avatar
      Improved plugin system performance & scalability: - reading plugin · 4e17aadc
      Chyla Zbigniew authored
      
      Improved plugin system performance & scalability:
      - reading plugin information from file only if necessary
        (usually when activating a plugin)
      - some minor optimizations (using hashes instead of lists, etc.)
      
      * src/Makefile.am
      (GNUMERIC_BASE_SOURCES): Sorted some items.
      
      * src/gutils.h (g_list_to_vector_custom): New macro.
      
      * src/plugin.c:
      Made some functions static.
      s/plugin_loader_get_by_id/plugin_loader_get_type_by_id/
      (struct _PluginInfo): Added has_full_info field.
      (get_file_state_as_string, plugin_file_state_as_string,
      plugin_file_state_from_string, plugin_file_state_free,
      plugin_cache_init, plugin_cache_shutdown):
      New functions, support for caching information about plugin ids
      stored in XML files (together with modification dates).
      (plugin_info_read_full_info_if_needed_error_info,
      plugin_info_read_full_info_if_needed): New functions loading missing
      plugin information from file if necessary.
      (plugin_info_read):
      Use existing PluginInfo struct rather than creating a new one,
      take XML file name (not parsed XML tree) as an argument.
      (plugin_info_new_from_xml):
      New function, creates new PluginInfo struct from XML file (using
      plugin_info_read).
      (plugin_info_new_with_id_and_dir_name_only):
      New function, creates new PluginInfo struct with only plugin id and
      directory name given (sets has_full_info to FALSE).
      (plugin_info_get_name, plugin_info_get_description,
      plugin_info_get_extra_info_list, plugin_info_is_active,
      plugin_info_peek_name, plugin_info_peek_description,
      plugin_info_peek_loader_type_str,
      plugin_info_provides_loader_by_type_str,
      plugin_info_is_loaded, plugin_info_peek_services_data,
      plugin_info_get_loader,
      plugin_inc_dependants, plugin_dec_dependants,
      plugin_dependencies_inc_dependants,
      plugin_dependencies_dec_dependants,
      plugin_get_loader_if_needed, activate_plugin, deactivate_plugin,
      plugin_can_deactivate, plugin_info_force_mark_inactive,
      plugin_load_service, plugin_unload_service,
      plugin_load_dependencies):
      Read full plugin information if needed.
      (plugin_info_free):
      Don't try to free most data if has_full_info == FALSE.
      (plugin_info_list_read_for_dir):
      Return one PluginInfo instead of a list, create incomplete
      PluginInfo (using plugin_info_new_with_id_and_dir_name_only) if
      found a directory in plugin_file_state_dir_hash.
      (plugin_info_list_read_for_subdirs_of_dir):
      Don't check if current file is a directory (it'll be detected
      anyway).
      (plugin_db_get_known_plugin_id_list,
      plugin_db_extend_known_plugin_id_list, plugin_db_is_known_plugin,
      plugin_db_get_saved_active_plugin_id_list,
      plugin_db_is_saved_active_plugin):
      Removed.
      (plugin_db_get_available_plugin_info_list): Just return
      available_plugin_info_list, never fail.
      (plugin_db_mark_plugin_for_deactivation,
      plugin_db_is_plugin_marked_for_deactivation, plugins_shutdown):
      Use hash table (plugins_marked_for_deactivation_hash) instead of
      a list.
      (plugin_db_init): Initialize available_plugin_info_list and
      saved_active_plugin_id_list here, use a hash table when detecting
      new plugins.
      (plugins_init): Call plugin_cache_init.
      (plugins_init): Call plugin_cache_shutdown.
      
      * src/plugin.h
      (plugin_info_read, plugin_info_print, plugin_info_list_read_for_dir,
      plugin_info_list_read_for_subdirs_of_dir,
      plugin_info_list_read_for_subdirs_of_dir_list,
      plugin_info_list_read_for_all_dirs,
      plugin_db_extend_known_plugin_id_list, plugin_db_is_known_plugin,
      plugin_db_extend_saved_active_plugin_id_list,
      plugin_db_is_saved_active_plugin,
      plugin_db_activate_saved_active_plugins):
      Removed (most of them are now static functions).
      
      * src/plugin-service.c
      (plugin_service_file_saver_initialize): Fixed serious typo.
      
      * src/dialogs/dialog-plugin-manager.c
      (cb_pm_button_activate_plugin_clicked,
      cb_pm_button_activate_all_clicked,
      cb_pm_button_deactivate_all_clicked,
      update_plugin_manager_view): Adjusted to
      plugin_db_get_available_plugin_info_list signature change.
      
      * plugins/applix/plugin.xml, plugins/dif/plugin.xml,
      plugins/excel/plugin.xml, plugins/gb/plugin.xml,
      plugins/gda/plugin.xml, plugins/gnome-glossary/plugin.xml,
      plugins/guile/plugin.xml, plugins/html/plugin.xml,
      plugins/lotus-123/plugin.xml, plugins/numtheory/plugin.xml,
      plugins/oleo/plugin.xml, plugins/perl/plugin.xml,
      plugins/plan-perfect/plugin.xml, plugins/py-func/plugin.xml,
      plugins/python/plugin.xml, plugins/python-loader/plugin.xml,
      plugins/sc/plugin.xml, plugins/sylk/plugin.xml,
      plugins/xbase/plugin.xml, plugins/xml_sax/plugin.xml:
      Removed <gnumeric_plugin_group> tags. Now every directory may contain
      only one plugin.
      4e17aadc
  28. 04 May, 2001 2 commits