1. 06 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Partial row/col ins/del undo capabilites · e3ba4c02
      Jody Goldberg authored
      Begining support for paste_from_cut.
      
      2000-01-06  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : rename struct expr_relocate_info -> ExprRelocateInfo.
      
      	* src/sheet.c (sheet_save_row_col_sizes) : New routine to support undo.
      	(sheet_save_row_col_sizes) : Ditto.
      	(col_row_info_init) : Init hard_size.
      
      	* src/commands.c (cmd_ins_del_row_col_undo) : Restore the row/col size
      	  info.
      	(cmd_ins_del_row_col_redo) : Save the info.
      e3ba4c02
  2. 05 Jan, 2000 3 commits
    • Jody Goldberg's avatar
      typo. · 418392f9
      Jody Goldberg authored
      418392f9
    • Morten Welinder's avatar
      Ignore NULLs. · 9a9864f8
      Morten Welinder authored
      2000-01-05  Morten Welinder  <terra@diku.dk>
      
      	* src/parser.y (register_allocation, unregister_allocation):
       	Ignore NULLs.
      9a9864f8
    • Morten Welinder's avatar
      revamp the allocation and deallocation system. · 749b89f0
      Morten Welinder authored
      2000-01-03  Morten Welinder  <terra@diku.dk>
      
      	* parser.y: revamp the allocation and deallocation system.
      
      	* src/cell.c (cell_set_formula): Plug leak.
      
      	* src/solver-lp.c (solver_simplex): j not used.
      
      	* src/cell.c (cell_cleanout): Not static since prototyped in
       	cell.h.
      749b89f0
  3. 04 Jan, 2000 1 commit
    • Miguel de Icaza's avatar
      Do not check for cell->sheet and cell->sheet->workbook, these must be · 831920d7
      Miguel de Icaza authored
      2000-01-03  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell.c (cell_render_value): Do not check for cell->sheet and
      	cell->sheet->workbook, these must be true.
      
      2000-01-02  Martin Sheppard  <martin.sheppard@iname.com>
      
      	* src/workbook.h (struct _Workbook): add option to display text of
      	formulas instead of their value
      
      	* src/workbook.c (workbook_menu_edit): add menu oiption for toggling
      	the display of formulas
      	(toggle_formuals_cmd,cb_cell_rerender): new function to toggle the
      	display of formulas
      	(workbook_new): initialize the display formulas option
      
      	* src/cell.c (cell_render_value): implemented displaying formulas
      831920d7
  4. 02 Jan, 2000 2 commits
    • Jody Goldberg's avatar
      - Correct some statics · 59daaff7
      Jody Goldberg authored
      - Correct some const
      - Add descriptors and copywrites to a few files.
      59daaff7
    • Miguel de Icaza's avatar
      Add warning if cell_set_text is invoked with the empty string. · 33f83b80
      Miguel de Icaza authored
      2000-01-01  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell.c (cell_set_text): Add warning if cell_set_text is
      	invoked with the empty string.
      
      	* src/workbook.c (workbook_edit_comment): Set the cell value to
      	VALUE_EMPTY instead of setting it to "".
      
      	* src/sheet.c (cellref_a1_get): Chek the range
      33f83b80
  5. 27 Dec, 1999 1 commit
  6. 17 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Fix a few bugs. Flag a few bugs. Start on the exception handling · 5784bf05
      Jody Goldberg authored
      * 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.
      5784bf05
  7. 06 Dec, 1999 1 commit
    • Michael Meeks's avatar
      Privatize FunctionDefinition · 90956c8c
      Michael Meeks authored
      remove dump.[ch]; moving to func.c for now,
      various stylistic cleans,
      make plugin-sample better practice,
      
      1999-12-06  Michael Meeks  <mmeeks@gnu.org>
      
      	* src/eval.c (search_cell_deps): Cull dead 'draw' code.
      
      1999-12-05  Michael Meeks  <mmeeks@gnu.org>
      
      	* src/expr.c (eval_funcall): Extract body to func.c
      	(cell_ref_make_absolute, free_values): move to func.c
      	(do_expr_decode_tree): Use function_def_get_name
      
      	* src/func.c (function_call_with_list): Clean to use new
      	helper functions + update style; use eval_expr not
      	eval_expr_real in 1 place; cleans flow;
      	(cell_ref_make_absolute): make args more convenient.
      
      	* Makefile.am: Kill dump.[ch]
      
      	* src/dump.[ch]: kill + move to
      
      	* src/func.c: (function_dump_defs).
      
      	* src/main.c (gnumeric_main): Use function_dump_defs
      
      	* src/func.c (function_def_get_fn): implement.
      	(function_def_get_user_data, function_def_set_user_data),
      	(function_def_count_args, function_def_get_name): implement.
      	(function_def_get_arg_type): implement.
      	Hide FunctionDefinition here. Stylistic cleans.
      
      	* plugins/python/python.c (marshal_func): use function_def_count_args
      	(__register_function): kill ancient mem leak in duff code.
      
      	* src/dialogs/dialog-function-select.c (function_definition_update):
      	use function_def_get_name.
      
      	* src/dialogs/dialog-function-wizard.c (arg_data_list_new): rewrite to
      	use count_args + get_arg_type: much safer. (get_text_value): use get_name.
      
      	* src/expr.h: Add user_data to function definition + hack it out.
      
      	* src/sheet.c (sheet_cell_get, sheet_cell_fetch): move up & inline
      90956c8c
  8. 20 Nov, 1999 1 commit
  9. 18 Nov, 1999 1 commit
  10. 16 Nov, 1999 1 commit
  11. 14 Nov, 1999 1 commit
  12. 12 Nov, 1999 1 commit
  13. 09 Nov, 1999 1 commit
  14. 07 Nov, 1999 1 commit
  15. 26 Oct, 1999 1 commit
  16. 25 Oct, 1999 2 commits
    • Michael Meeks's avatar
      Update NEWS & TODO ( big clean ), · feed2c7e
      Michael Meeks authored
      More Style docs,
      cell-span fixes.
      feed2c7e
    • Miguel de Icaza's avatar
      Create the span if required. · d069a550
      Miguel de Icaza authored
      1999-10-24  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cellspan.c (cell_register_span): Create the span if required.
      
      	* src/sheet.c (sheet_destroy_contents): Remove debugging messages.
      	(sheet_row_new): Row spans are now created on demand.
      d069a550
  17. 24 Oct, 1999 1 commit
  18. 22 Oct, 1999 1 commit
  19. 21 Oct, 1999 1 commit
    • Miguel de Icaza's avatar
      Focus current sheet also to kill any F2 editing. · 14251401
      Miguel de Icaza authored
      1999-10-21  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet.c (sheet_accept_pending_input): Focus current sheet
      	also to kill any F2 editing.
      
      	* configure.in (bonobo): Require Bonobo 0.5
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_selection_cursor_base): New
      	routine to control the "base" spinning location.
      
      	* src/item-grid.c (item_grid_button_1): Start cell selection if
      	user clicks and a selection is going on.  Reset the spin base here.
      
      	* src/sheet.c (sheet_cancel_pending_input): Queue a recalc here,
      	as we have modified the cell values.
      14251401
  20. 17 Oct, 1999 1 commit
    • Miguel de Icaza's avatar
      Set the Column/Row dimensions here after loading them, as the new · 0f62302a
      Miguel de Icaza authored
      1999-10-16  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/xml-io.c (xml_read_colrow_info): Set the Column/Row
      	dimensions here after loading them, as the new
      	sheet_set_zoom_factor can no longer be used to reset lingering
      	values (the value of the pixels was being computed here after we
      	had read the units).
      
      	* src/eval.c (cell_get_dependencies): Prototype change.  We now
      	take the Cell as an argument and we scan all the sheets that
      	depend on us.
      0f62302a
  21. 04 Oct, 1999 1 commit
    • Jody Goldberg's avatar
      - Large speed improvement loading by removing the lists of cells in cols, and · 7d0ab7ad
      Jody Goldberg authored
        keeping cols rows in segmented arrays.
      
      - Large speed improvement in exit by operating on the entire sheet rather than
        cell by cell.
      
      - Large speed improvement in Col/Row auto-fills.  they're still too damn slow
        and we use too much memory, but its a start.
      
      - Insert/delete/Shift rows/cols now correctly adjusts references to and from
        the region.
      
      - Code in place to restructure 'copy'
      
      - A few minor dialog adjustments, some from me, some from the mailing list.
      7d0ab7ad
  22. 28 Sep, 1999 1 commit
  23. 10 Sep, 1999 1 commit
    • Miguel de Icaza's avatar
      Updated to the new sheet selection API changes. · b5d837ae
      Miguel de Icaza authored
      1999-09-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/corba-sheet.c: Updated to the new sheet selection API
      	changes.
      
      	* src/gnumeric-sheet.c (destroy_item_editor): Removed FIXME
      	comment.  More fixing from Federico's talk
      	(gnumeric_sheet_stop_cell_selection): ditto
      
      	* src/cell.c: Replaced unrefs of windows with destroys.  Federico
      	explained a thing or two to me today.
      
      	* src/file.c (dialog_query_load_file): Added a key handler to
      	handle ESC on dialog boxes to mean cancel.
      	(workbook_save_as): ditto.
      b5d837ae
  24. 08 Sep, 1999 1 commit
    • Jody Goldberg's avatar
      Wed Sep 8 14:11:52 EDT 1999 · 2264af5a
      Jody Goldberg authored
          1st stab at scrollbars adjusting to visible region.
          Move selection code into a new file, no changes.
          Minor const fixups.
      2264af5a
  25. 02 Sep, 1999 1 commit
  26. 26 Aug, 1999 1 commit
  27. 19 Aug, 1999 1 commit
  28. 17 Aug, 1999 1 commit
    • Miguel de Icaza's avatar
      Added cell_content_changed signal. (workbook_do_destroy): Do not enable · 637e6a62
      Miguel de Icaza authored
      1999-08-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c (workbook_class_init): Added cell_content_changed
      	signal.
      	(workbook_do_destroy): Do not enable widgets to be focused.
      
      	* src/cell.c (cell_content_changed): Calls workbook_cell_changed.
      	This is for Paolo and his speech system for GNOME.
      
      	* configure.in: New bonobo detection code and support for not
      	compiling Bonobo support even if it is present on the system
      637e6a62
  29. 16 Aug, 1999 1 commit
  30. 07 Aug, 1999 1 commit
    • Miguel de Icaza's avatar
      Use the standard procedure to set the font. · f8361526
      Miguel de Icaza authored
      1999-08-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/corba-sheet.c (Sheet_cell_set_font): Use the standard
      	procedure to set the font.
      
      	* src/cell.c: deleted finally cell_set_font.
      
      	* src/workbook.c: Reorganization to make the code be a GtkObject.
      	Redone the destruction bits of the Workbook.
      
      	* src/workbook.h: Split sheet.h into workbook.h and sheet.h
      
      	* src/workbook.h: Now the Workbook is a GtkObject or a
      	GnomeObject, depending on the compilation flags.
      f8361526
  31. 05 Aug, 1999 1 commit
    • Morten Welinder's avatar
      Obsolete -- #if 0 for now. · 30c54a98
      Morten Welinder authored
      1999-08-05  Morten Welinder  <terra@diku.dk>
      
      	* src/cell.c (cell_set_font): Obsolete -- #if 0 for now.
      
      	* src/cell.h: Remove now-static cell_formula_changed,
       	calc_text_dimensions, and cell_set_font.
      30c54a98
  32. 04 Aug, 1999 1 commit
  33. 03 Aug, 1999 1 commit
    • Morten Welinder's avatar
      Handle integer operations more carefully with respect to overflow. · 07999d52
      Morten Welinder authored
      1999-08-02  Morten Welinder  <terra@diku.dk>
      
      	* src/expr.c (eval_expr_real): Handle integer operations more
       	carefully with respect to overflow.
      
      	* src/cell.c (cell_cleanout): Don't unlink unless there is a sheet
       	to unlink from.
      
      	* src/collect.c (float_range_function2): Actually call the right
       	function.
      	(collect_floats_value): Fix type of result.
      
      	* src/mathfunc.c (range_rsq_pop, range_rsq_est): New functions.
      
      	* src/fn-stat.c (gnumeric_pearson): Simplify.
      	(gnumeric_rsq): Simplify.
      07999d52
  34. 01 Aug, 1999 1 commit
    • Morten Welinder's avatar
      This is somewhere between tragic and ridiculous. INTERSECT and friends · afc6b355
      Morten Welinder authored
      still leak like crazy.
      
      
      1999-08-01  Morten Welinder  <terra@diku.dk>
      
      	* src/format.c (format_number): YAL -- yet another leak.
      
      	* src/fn-string.c (gnumeric_text): Plug leak.
      
      	* src/expr.c (do_expr_tree_unref): Plug array value leak.
      
      	* src/cell.c (cell_set_array_formula): Unref the wrappers so we
       	don't leak a reference.
      
      	* src/fn-math.c (gnumeric_countif): Initialise total_num member.
      afc6b355
  35. 30 Jul, 1999 1 commit
    • Morten Welinder's avatar
      Improvements after VALUE_ERROR. · 27c1c882
      Morten Welinder authored
      1999-07-30  Morten Welinder  <terra@diku.dk>
      
      	* src/cell.c (cell_cleanout): New function.
      	(cell_set_formula): Don't bother with CELL_ERROR.  Set value field
       	in all cases.
      	(cell_set_array_formula): Set cell values.
      	(cell_set_value_simple): Simplify using cell_cleanout.
      	(cell_set_text_simple): Ditto.
      	(cell_set_formula_tree_simple): Ditto.
      	(cell_destroy): Ditto.
      	(cell_get_text): Simplify.
      	(cell_get_content): Ditto.
      
      	* src/eval.c (cell_eval): Reorganise slightly.
      
      	* src/expr.c (eval_expr_real): value should no longer be null.
      
      	* src/cell.h (CELL_ERROR): Obsolete.
      27c1c882
  36. 29 Jul, 1999 1 commit