1. 04 Feb, 2000 2 commits
    • Jody Goldberg's avatar
      - Fix some of the problems with the resolution scaling. · 3e12961e
      Jody Goldberg authored
      - Implement an initial version of paste_cut undo.
      
      2000-02-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.[ch] (sheet_row_info_set_{height, width}) : Make static.
      
      	* src/cell.c (cell_calc_dimensions) : The size is already scaled.
      
      	* src/item-bar.c (item_bar_event) : Only scale by the zoom.
      	  The item-grid canvas is zoomed by the zoom factor, not by the
      	  resolution adjustment.
      	(item_bar_start_resize) : Ditto.
      
      	* src/selection.c (sheet_selection_paste) : Use cmd_paste_cut.
      
      	* src/commands.c (cmd_paste_cut) : Implement.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
      	  function.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.
      3e12961e
    • Jody Goldberg's avatar
      Add some config variables to the application to allow for axis dependent · d6fe542a
      Jody Goldberg authored
      zooming based on the screen display resolution (eg 110 dpi).  No GUI currently
      available.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
      	  function.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_set_internal_width) : Scale by the axis
      	  resolution adjment.
      	(sheet_row_set_internal_height) : Ditto.
      	(colrow_set_units) : Ditto.
      	(sheet_compute_col_row_new_size) : Ditto.
      
      	* src/item-bar.c (item_bar_fonts_init) : Scale by resolution.
      	(item_bar_start_resize) : Ditto.
      	(item_bar_event) : Ditto.
      
      	* src/cell.c (cell_calc_dimensions) : Adjust interface to take the
      	  cell. Scale the height test by the vertical resolution adjustment.
      
      	* src/cell-draw.c (sheet_view_get_style_font) : rename from
      	  sheet_get_style_font in preparation for view split.  Scale
      	  the font by the average of the resolutions.
      d6fe542a
  2. 02 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Fix several memory problems (Thanks Morten) · 390f8af9
      Jody Goldberg authored
      2000-02-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_text) : Fix thinko.  We are assigning to the
      	  entered_text so we should unref that.  Always print the assigning
      	  empty warning.
      
      	* src/str.c (string_unref_ptr) : Delete unused function.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region) : Use the correct
      	  clear flags for sheet_clear_region.
      	(x_selection_handler) : Ditto.
      
      	* src/workbook.c (workbook_expr_relocate) : We need to unref the new
      	  expression because the cell refs it itself.
      
      	* src/format.c (format_remove_decimal) : Correctly remove the last
      	  decimal. bug 5836.
      390f8af9
  3. 25 Jan, 2000 2 commits
    • Jody Goldberg's avatar
      - Fix a problem with zooming caused by the new item-bar enhancements. - · 03198e1d
      Jody Goldberg authored
      
      - Fix a problem with zooming caused by the new item-bar enhancements.
      - Remove gnumeric-sheet.h from a number of places that it had no reason to be.
      - Move all of the row/col pos/offset cache into GnumericSheet.  WARNING
        I do not populate all of it yet.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_set_zoom_factor) : Keep the cursor in
      	  the same place and recompute the alignments for everything.
      
      	* src/item-cursor.c (item_cursor_set_bounds) : New function.
      
      	* src/gnumeric-sheet.h : Add more orthogonal structure for caching
      	  common row/col bounds and their canvas offsets.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create) : Init the new members.
      	(gnumeric_sheet_filenames_dropped) : Keep the canvas private.
      	(gnumeric_sheet_make_cell_visible) : Add 'force_scroll' argument.
      
      	* src/clipboard.c (clipboard_release) : It is possible to have no
      	  styles associated with a region.
      
      	* src/item-grid.c : Remove overlapping cache of bounding rows/cols and
      	  offsets.  Use the superset in GnumericSheet.
      	 (item_grid_find_{row, col}) : Support sliding backwards.
      03198e1d
    • Jody Goldberg's avatar
      Bug 5490. · 0b4cdc20
      Jody Goldberg authored
      2000-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Take the style as an argument, no need
      	  to recompute something that is already available.
      
      	* src/xml-io.c (xml_sheet_read) : Move the {freeze,thaw}_redraws here.
      	(xml_read_cell) : Remove the sillyness about removing newlines and
      	  trailing spaces.  Remove the {freeze,thaw}_redraws.
      
      	* src/cell.c (cell_set_text_simple) : Store the rendered value.
      	(cell_set_text) : Store the entered value.
      0b4cdc20
  4. 17 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Implement a more user preferences. · 76e2dfd1
      Jody Goldberg authored
      2000-01-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Menu items for sheet and workbook preferences.
      
      	* src/sheet-view.c (sheet_view_adjust_preferences) : New function.
      	* src/sheet.c (sheet_adjust_preferences) : New function.
      	(sheet_new) : Init the new preferences.
      	(sheet_set_text) : Avoid leaking in the failure case.
      
      	* src/selection.c (sheet_selection_paste) : Pass a context.
      
      	* src/cell.c (cell_render_value) : display_fomulas is now a sheet
      	  level preference.
      	(cell_is_number) : return boolean.
      	(cell_is_zero) : New function.
      
      	* src/item-grid.c (item_grid_draw_cell) : honour display_zero.
      76e2dfd1
  5. 16 Jan, 2000 1 commit
    • Morten Welinder's avatar
      New file. New file. · f9c9e6c0
      Morten Welinder authored
      2000-01-16  Morten Welinder  <terra@diku.dk>
      
      	* src/auto-format.c: New file.
      	* src/auto-format.h: New file.
      
      	* src/formats.c (cell_format_general, cell_format_numbers,
       	cell_format_currency, cell_format_account, cell_format_date,
       	cell_format_time, cell_format_percent, cell_format_fraction,
       	cell_format_science, cell_format_text): Make static.
      
      	* src/cell.c (cell_set_formula): Free the format.  Only set format
       	if the cell was previously blank.
      	(cell_has_assigned_format, cell_get_format): New functions.
      
      	* src/parser.y (gnumeric_expr_parser): Drop const for
       	desired_format.  On error, free the format.
      	(make_string_return): g_strdup the format.
      
      	* src/expr.c (expr_parse_string): Drop const for desired_format.
      
      	* src/functions/fn-financial.c (finance_functions_init): Add
       	result types for auto-format.
      
      	* src/functions/fn-date.c (date_functions_init): Add result types
       	for auto-format.
      
      	* src/functions/fn-math.c (math_functions_init): Add result types
       	for auto-format.
      
      	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add auto-format.c and
       	auto-format.h.
      
      	* src/main.c (gnumeric_main): Init and shutdown for auto_format.
      f9c9e6c0
  6. 15 Jan, 2000 1 commit
    • Morten Welinder's avatar
      Fix "=$10" error. · f5c4ec3c
      Morten Welinder authored
      2000-01-15  Morten Welinder  <terra@diku.dk>
      
      	* src/cell.c (cell_set_formula): Set the "Pending recomputation"
       	value earlier.
      f5c4ec3c
  7. 08 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Bug 5036 - Fix inconsistancies in the hack to accept formulas with a · d0c30d56
      Jody Goldberg authored
      - Bug 5036
      - Fix inconsistancies in the hack to accept formulas with a leading
        '@'.
      
      2000-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : new function.
      
      	* src/workbook.c (wizard_input) : Use gnumeric_char_start_expr_p.
      
      	* src/cell.c (cell_set_formula) : Add a precondition to ensure that
      	  this is an expression.
      	(cell_set_text_simple) : Use gnumeric_char_start_expr_p.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_move_cursor) : Ditto.
      
      	* src/sheet.c (sheet_set_text) : Ditto.
      d0c30d56
  8. 07 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Undo ins/del row/col mostly works. · 8769a02b
      Jody Goldberg authored
      A few rough edges but mostly functional.
      
      2000-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_*) : Implement.
      
      	* src/cell.c (cell_set_formula_tree_simple) : Correct the docs.
      
      	* src/sheet.c (sheet_insert_cols, sheet_insert_rows,
      	  sheet_delete_cols, sheet_delete_rows) : Return flags to
      	  indicate failure.  return list of expressions and locations that
      	  were modified as a result of the change.
      
      	* src/workbook.c (workbook_expr_relocate) : Correct documentation.
      	(sheet_suspend_auto_expr, sheet_resume_auto_expr) : Delete unused functions.
      	(workbook_expr_unrelocate, workbook_expr_unrelocate_free) : New functions.
      
      	* src/eval.c (sheet_get_intersheet_deps) : No need for sheet member.
      	(sheet_region_get_deps) : No need to init sheet.  Use g_list_concat.
      	(sheet_recalc_dependencies) : All regions & cells in the sheet
      	  contribute.
      	(cb_cell_get_all_depends) : New function.
      	(cb_sheet_get_all_depends) : New function.
      8769a02b
  9. 06 Jan, 2000 2 commits
    • Michael Meeks's avatar
      New Depencency code + docs, · ec6e6517
      Michael Meeks authored
      misc. minor fixes.
      ec6e6517
    • 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
  10. 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
  11. 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
  12. 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
  13. 27 Dec, 1999 1 commit
  14. 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
  15. 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
  16. 20 Nov, 1999 1 commit
  17. 18 Nov, 1999 1 commit
  18. 16 Nov, 1999 1 commit
  19. 14 Nov, 1999 1 commit
  20. 12 Nov, 1999 1 commit
  21. 09 Nov, 1999 1 commit
  22. 07 Nov, 1999 1 commit
  23. 26 Oct, 1999 1 commit
  24. 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
  25. 24 Oct, 1999 1 commit
  26. 22 Oct, 1999 1 commit
  27. 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
  28. 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
  29. 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
  30. 28 Sep, 1999 1 commit
  31. 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
  32. 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
  33. 02 Sep, 1999 1 commit