1. 04 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      don't actually store the value, just start editing with it. · 167c36d3
      Jody Goldberg authored
      2002-02-03  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_insert_current_date) : don't actually
      	  store the value, just start editing with it.
      	(cb_insert_current_time) : ditto.
      
      2002-02-03  Jody Goldberg <jody@gnome.org>
      
      	* src/value.c (value_new_*) : init Value*::fmt
      	(value_duplicate) : ref the fmt too.
      	(value_set_fmt) : new.
      
      	* src/cell.c (cell_cleanout) : no more format.
      	(cell_copy) : ditto.
      	(cell_set_text) : ditto.
      	(cell_set_expr_internal) : ditto.
      	(cell_set_expr_unsafe) : ditto.
      	(cell_get_format) : ditto.
      
      	Change all callers.
      	* src/sheet.c (sheet_cell_set_value) : remove format assingment.
      	* src/cell.c (cell_set_expr_and_value) : remove format assignment.
      	(cell_assign_value) : ditto.
      	(cell_set_value) : ditto.
      	(cell_set_expr) : ditto.
      	* src/parser.y (expr_parse_str) : remove arg to return the suggested
      	  format.  That will be handled at run time.
      	* src/number-match.c (format_match) : remove arg to return the parse
      	  formula.  Store it in the value instead.
      167c36d3
  2. 02 Feb, 2002 1 commit
  3. 26 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      lock the encoding to be utf-8. · f4df79a7
      Jody Goldberg authored
      2002-01-25  Jody Goldberg <jody@gnome.org>
      
      	* src/main.c (main) : lock the encoding to be utf-8.
      
      	* src/eval.c : enable the micro hash by default.
      
      	* src/expr.c (cellref_relocate) : simplify and remove the force
      	  arguments.  Flag invalidations from inside vs to inside. From takes
      	  precendence.
      	(cellref_shift) : new.
      	(cellrange_relocate) : simplfy and try a different tack on how to
      	  handle corners with different sets of relocation needs.
      
      	* src/commands.c (cmd_paste_cut_undo) : pass NULL for the
      	  reloc_storage to disable invalidation.
      
      	* src/sheet.c (sheet_move_range) : document.
      	  Make the reloc_storage optional.  If it is not specified do NOT
      	  invalidate references to the dst region that are being
      	  invalidated.  Since this routine is only used for cut redo/undo
      	  and undo really should not be invalidating we use that as a flag.
      f4df79a7
  4. 18 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      NOTE : The idl change requires an update to guppi. · 425a749a
      Jody Goldberg authored
      2002-01-18  Jody Goldberg <jody@gnome.org>
      
      	* dialog-graph-guru.c (graph_guru_plot_name) : fix the stupid name
      	  generation.
      	(vector_state_series_set_dimension) : create a series if necessary.
      	(cb_graph_guru_series_add) : implement.
      	(graph_guru_select_plot) : make series reset optional.
      	(graph_guru_init) : hook up the add/delete series buttons.
      	(cb_graph_guru_series_delete) : new.
      	(cb_graph_guru_series_add) : new.
      
      2002-01-18  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.c : Add a new dependency hashing scheme but leave it
      	  disabled until 1.1  so thet we can get it tested.
      
      2002-01-18  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-graph.c (gnm_graph_range_to_vectors) : be smarter about
      	  handling vectors rather than ranges.  vectors maintain orientation.
      425a749a
  5. 05 Jan, 2002 2 commits
  6. 29 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      be more forgiving about exit errors. (sheet_destroy_contents) : Remove · a4169542
      Jody Goldberg authored
      2001-12-28  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_destroy) : be more forgiving about exit errors.
      	(sheet_destroy_contents) : Remove stupid hash clearing.  Just delete
      	  the thing.
      
      	* src/eval.c (dependent_unlink) : Add a bogus krufty nasty unpleasant
      	  hack to disable the unlink optimization for sheet objects.
      a4169542
  7. 25 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      it is ok to not rewrite the expression here. (cb_name_invalidate_sheet) : · 1dde747a
      Jody Goldberg authored
      2001-12-25  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.c (invalidate_refs) : it is ok to not rewrite the
      	  expression here.
      	(cb_name_invalidate_sheet) : new.
      	(do_deps_destroy) : use here.
      
      	* src/expr-name.c (expr_name_invalidate_refs_sheet) : delete.
      	(expr_name_invalidate_refs_wb) : delete.
      	(expr_name_handle_references) : new.
      	(expr_name_set_expr) : use it here.
      	(expr_name_add) : Use expr_name_set_expr.
      	(expr_name_unref) : and here.
      	(expr_name_link_deps) : if the dependent being updated is going to be
      	  deleted do not relink or queue for recalc.
      1dde747a
  8. 24 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      mark as needing a recalc, don't just assert it. · 208fc52c
      Jody Goldberg authored
      2001-12-24  Jody Goldberg <jody@gnome.org>
      
      	* src/style-condition.c (style_condition_expr_eval) : mark as needing
      	  a recalc, don't just assert it.
      
      	* src/workbook-edit.c (wbcg_edit_validate) : handle accept/reject/reedit
      	  Generate the title and msg here.  The goal is to move the gui
      	  specific aspects out of here.
      	(wbcg_edit_finish) : ditto.
      
      	* src/gui-validation.c (validation_generate_msg) : disable for now.
      	  It is a nice idea, but the implementation is in the wrong place
      	  and blows goats.
      208fc52c
  9. 21 Dec, 2001 1 commit
  10. 26 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      add OPER_SET. ditto. ditto. (expr_tree_equal) : ditto. (expr_eval_real) : · 217a63bd
      Jody Goldberg authored
      2001-11-25  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.c (handle_tree_deps) : add OPER_SET.
      	* src/expr-name.c (name_refer_circular) :  ditto.
      	* src/expr.c (do_expr_tree_unref) : ditto.
      	(expr_tree_equal) : ditto.
      	(expr_eval_real) : ditto.
      	(expr_rewrite) : ditto.
      	(do_expr_tree_as_string) : ditto.
      	(expr_tree_new_funcall) : use ExprList.
      	(expr_parse_string) : delete.
      	(expr_tree_new_set) : new.
      	(expr_list_unref) : new.
      	(expr_list_equal) : new.
      	(expr_list_as_string) : new.
      
      	* src/gnumeric.h : Add ExprList and ExprSet
      
      	* src/parser.y (expr_parse_str) : renamed from gnumeric_expr_parser.
      	  Add support for multiple expressions.
      	(line) : add support for multiple expressions.
      
      	* src/ranges.c (global_range_parse) : Use expr_parse_str
      	(global_range_list_parse) : rewrite to use expr_parse_str and use the
      	  new multi-expression support in the parser.
      
      	* src/commands.c (cmd_area_set_text_redo) : Use expr_parse_str.
      	* src/xml-io.c (xml_read_style_condition_chain) : ditto.
      	(xml_cell_set_array_expr) : ditto.
      	* src/workbook-view.c (wb_view_auto_expr) : ditto.
      	* src/workbook-edit.c (wbcg_edit_finish) : ditto.
      	* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : ditto.
      	* src/parse-util.c (parse_text_value_or_expr) : ditto.
      
      	* src/auto-format.c (do_af_suggest) : Use ExprList instead of GList
      	(do_af_suggest_list) : ditto.
      	* src/collect.c (collect_floats) : ditto.
      	(collect_floats_value) : ditto.
      	(float_range_function) : ditto.
      	* src/consolidate.c (simple_consolidate) : ditto.
      	(colrow_formula_args_build) : ditto.
      	(consolidate_apply) : ditto.
      217a63bd
  11. 22 Nov, 2001 1 commit
  12. 13 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      handle empty entries correctly. · 57465e93
      Jody Goldberg authored
      2001-11-13  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric-expr-entry.c (gnumeric_expr_entry_rangesel_meaningful) :
      	handle empty entries correctly.
      
      2001-11-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : Fix Frob's magic mystery borders.
      
      	* src/eval.c (dependent_changed) : Add some crash protection.
      
      2001-11-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : fix handling of completely hidden
      	  merges.
      57465e93
  13. 29 Oct, 2001 1 commit
  14. 25 Oct, 2001 1 commit
    • Wayne Schuller's avatar
      New canvas based header and footer preview widget. The customize · f0770524
      Wayne Schuller authored
      2001-10-21  Wayne Schuller <k_wayne@linuxpower.org>
      
      	* dialog-printer-setup.c : New canvas based header and footer preview
      	  widget. The customize header/footer widget now also uses a
      	  GnomePropertyBox for UI consistency.
      	* print.glade : Updated.
      	* hf-config.glade : Updated.
      
      2001-10-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_trim) : decrease lobotomization factor.
      
      2001-10-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (named_expr_new) : renamed from add_real, simplified
      	  interface.
      	(expr_name_add) : take and store a parse position.
      	(expr_name_create) : ditto.
      	(expr_name_destroy) : adjust to stored parsepos.
      	(expr_name_unlink) : ditto.
      	(expr_name_sheet2wb) : ditto.
      	(expr_name_init) : ditto.
      	(expr_name_as_string) : renamed from expr_name_value.
      	(expr_name_eval) : renamed from eval_expr_name.
      
      	s/eval_expr/expr_eval/
      
      	* src/expr.c (do_expr_tree_to_string) : Use value_as_string in most
      	  places.
      	* src/value-sheet.c (value_cellrange_get_as_string) : delete bogus
      	  useless arg.
      	(encode_cellref) : delete redundant.
      
      	* src/parse-util.c (cellref_name) : ICK!  XL wraps relative references
      	  that are out of bounds.
      f0770524
  15. 12 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      fix. · 41adb928
      Jody Goldberg authored
      2001-10-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mathfunc.c (minverse) : fix.
      
      2001-10-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_set_sheet) : new utility.
      
      2001-10-11  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-string.c (gnumeric_code) : unsiged char
      41adb928
  16. 10 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      be smarter about what type of error to report. · 809253d0
      Jody Goldberg authored
      2001-10-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/plugin-util.c (gnumeric_fopen) : be smarter about what type of
      	  error to report.
      
      	* src/xml-io.c (gnumeric_xml_write_workbook) : switch to manually
      	  opening the file then dumping to prepare for xml2.  Apparently it
      	  attempts to escape file names.
      	* src/xml-io-autoft.c (gnumeric_xml_write_format_template) : ditto.
      
      2001-10-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_set_expr) : Make a default handler to merge
      	  all the different states that have croppedup into one place.
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : Use the default.
      	* src/sheet-object-widget.c (checkbox_set_expr) : ditto.
      	* src/style-condition.c (style_condition_dep_set_expr) : The default
      	  handles most of the work.
      
      	* src/style-condition.c : Use DEPENDENT_MAKE_TYPE.
      809253d0
  17. 09 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      Disable embeddable grid, it is broken. · 19c0553b
      Jody Goldberg authored
      2001-10-09  Jody Goldberg <jgoldberg@home.com>
      
      	* GNOME_Gnumeric.oaf.in : Disable embeddable grid, it is broken.
      
      2001-10-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_set_expr) : Make a default handler to merge
      	  all the different states that have croppedup into one place.
      	* src/gnumeric-graph.c (gnm_graph_vector_set_expr) : Use the default.
      	* src/sheet-object-widget.c (checkbox_set_expr) : ditto.
      	* src/style-condition.c (style_condition_dep_set_expr) : The default
      	  handles most of the work.
      
      	* src/style-condition.c : Use DEPENDENT_MAKE_TYPE.
      19c0553b
  18. 20 Sep, 2001 1 commit
  19. 18 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      make headers optional. make headers optional. make headers optional. · a907b34b
      Jody Goldberg authored
      2001-09-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
      	* src/sheet-control.c (sc_redraw_all) : make headers optional.
      	* src/sheet.c (sheet_redraw_all) : make headers optional.
      
      	* src/colrow.c (colrow_set_visibility_list) : redraw_all does headers.
      
      	* src/cell.c (cell_eval_content) : don't redraw here, and only render
      	  if we were already rendered.  This will avoid rendering sheets no
      	  one is looking at.
      
      	* src/eval.c (workbook_recalc) : after a recalc redraw all, but not
      	  headers.
      
      2001-09-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (wb_control_menu_state_sensitivity) : new
      	  virtual.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_sensitivity) : renamed
      	  and moved from.
      	* src/workbook-edit.c (workbook_edit_toolbars_set_sensitive). here.
      
      	* src/workbook-view.c (wb_view_open_custom) : Use
      	  wb_control_menu_state_sensitivity to enable/disable
      	  the menus and toolbars of the manging contol.
      a907b34b
  20. 06 Sep, 2001 1 commit
  21. 02 Sep, 2001 2 commits
    • Jody Goldberg's avatar
      For Wayne Schuller <k_wayne@linuxpower.org> · bb833c86
      Jody Goldberg authored
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      	For Wayne Schuller <k_wayne@linuxpower.org>
      
      	* src/pattern.c (gnumeric_background_set_pc) : Support gray scale
      	  patterns when printing.
      
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-condition.c (style_condition_eval) : Use dependent_eval
      	  and add an invariant that ensures that val is only NULL if we have
      	  been queued for recalc.
      
      	* src/eval.c (dependent_eval) : split from workbook_recalc.
      	(cell_eval) : change return type.  no one was using it.
      	(dependent_needs_recalc) : new macro.
      bb833c86
    • Jody Goldberg's avatar
      split from workbook_recalc. (cell_eval) : change return type. no one was · f260bb65
      Jody Goldberg authored
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_eval) : split from workbook_recalc.
      	(cell_eval) : change return type.  no one was using it.
      
      2001-08-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : add a way to force 12 hour mode
      	  without showing am/pm
      f260bb65
  22. 31 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix. We need to check for recalc before we unlink, and possibly queue the · 62345d71
      Jody Goldberg authored
      2001-08-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_destroy) : fix.  We need to check
      	  for recalc before we unlink, and possibly queue the dependents
      	  of cells which had constant values.
      
      	* src/eval.c : rearrange
      	DependentSingle &
      	DependentRange to keep the dep_list at the top
      	Then define DependentAny for generic operations.
      	(depsingle_dtor) : delete.
      	(deprange_dtor) : delete.
      	(dependent_queue_recalc_list) : remove unnecessary parameter.
      	(sheet_region_queue_recalc) : walk the hash in both cases.
      	(dependent_unlink) : only unlink if there is a dep list.
      	(cb_search_rangedeps) : renamed from search_cell_deps.
      	(cb_single_recalc_all_depends) : delete.
      	(cb_range_recalc_all_depends) : delete.
      	(cb_recalc_all_depends) : new.
      	(cb_dep_hash_invalidate) : merge cb_single_hash_invalidate,
      	  cb_range_hash_invalidate.
      	(do_deps_destroy) : use the merged invalidation routines.
      	(add_range_dep) : loop through the range buckets.
      	(drop_range_dep) : loop through the range buckets.
      	(dependent_unlink_sheet) : use SHEET_FOREACH_DEPENDENT.
      	(cell_foreach_range_dep) : only check useful buckets.
      	(dependency_data_new) : create the buckets.
      	(sheet_dump_dependencies) : handle ranges.
      62345d71
  23. 30 Aug, 2001 3 commits
    • Morten Welinder's avatar
      New macro. (WORKBOOK_FOREACH_DEPENDENT): Re-factor. (Workbook): Move · 52f2f380
      Morten Welinder authored
      2001-08-30  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.h (WORKBOOK_FOREACH_SHEET): New macro.
      	(WORKBOOK_FOREACH_DEPENDENT): Re-factor.
      	(Workbook): Move dependents to DependencyContainer, see below.
      	Introduce new external_dependents, not yet used.
      
      	* src/sheet.h (SHEET_FOREACH_DEPENDENT): New macro.
      
      	* src/eval.h: (DependencyContainer): type moved from eval.c and
       	renamed from DependencyData.  Add dependent_list member which used
       	to be in Workbook.
      	(DEPENDENT_IS_CELL): New macro.  Put into used lots of places.
      	(DEPENDENT_CONTAINER_FOREACH_DEPENDENT): New macro.
      
      	* src/eval.c (cb_dependent_queue_recalc): Allocate single list
       	element on stack, not heap.
      	(dependent_queue_recalc_list): Don't essentailly copy all lists.
      	(UNLINK_DEP): Take only dep arguement and find the container from
       	that.
      52f2f380
    • Morten Welinder's avatar
      Avoid listifying. (cb_dependent_queue_recalc, cell_queue_recalc): Recast · 12a001cb
      Morten Welinder authored
      2001-08-29  Morten Welinder  <terra@diku.dk>
      
      	* src/eval.c (workbook_queue_all_recalc): Avoid listifying.
      	(cb_dependent_queue_recalc, cell_queue_recalc): Recast in terms of
       	dependent_queue_recalc_list.
      	(dependent_queue_recalc_list): Eliminate recursion which used to
       	be unbounded deep.
      
      	* src/eval.h (struct _Dependent): Name next to next_dep and prev
       	to prev_dep.  (Because we might need a similar list for evaluation
       	at some point.)
      
      	(DEPENDENT_TYPE): New macro type hide most uses of the ugly
       	DEPENDENT_TYPE_MASK.  All such uses fixed.
      12a001cb
    • Jody Goldberg's avatar
      fix my breakage and don't bother recursing for already queued cells. · 52fb8834
      Jody Goldberg authored
      2001-08-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_queue_recalc_list) : fix my breakage and don't
      	  bother recursing for already queued cells.
      	(workbook_queue_all_recalc) : remove sillyness.
      	(dependent_unqueue) : delete unused routine.
      
      	* src/cell.c (cell_cleanout) : remove useless 'in_recalc_queue' flag.
      	(cell_copy) : ditto.
      
      	* src/sheet.c (sheet_cell_destroy) : no need to unqueue, unlink
      	  handles it.
      	(sheet_move_range) : ditto.
      52fb8834
  24. 29 Aug, 2001 3 commits
    • Jody Goldberg's avatar
      1 extra space · 67786797
      Jody Goldberg authored
      67786797
    • Jody Goldberg's avatar
      make this a macro. (cb_dependent_queue_recalc) : simplify to just mark the · 3f3c9b99
      Jody Goldberg authored
      2001-08-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_queue_recalc) : make this a macro.
      	(cb_dependent_queue_recalc) : simplify to just mark the requirement
      	  now that there is no distinct reval queue.
      	(dependent_unqueue) : this is now trivial.
      	(dep_slist_filter_sheet) : delete.
      	(dependent_unqueue_sheet) : delete.
      	(dependent_unlink) : clear the recalc flag directly.
      	(cell_foreach_single_dep) : remove broken debugging.
      	(workbook_recalc) : just walk the dependent list.  We can optimize
      	  this later if need be.
      	(sheet_dump_dependencies) : remove unnecessary debug info.
      
      	* src/sheet.c (sheet_destroy_contents) : no need to unqueue_sheet.
      	  unlink handles it.
      
      	* src/workbook.c (workbook_destroy) : no more eval_queue.
      3f3c9b99
    • Jody Goldberg's avatar
      Clear the sheet in case the dependent tries to clear itself later. · bcbea365
      Jody Goldberg authored
      2001-08-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependent_unlink_sheet) : Clear the sheet in case the
      	  dependent tries to clear itself later.
      bcbea365
  25. 28 Aug, 2001 1 commit
    • Morten Welinder's avatar
      point to first dependent directly, not via an slist. · d48e13b0
      Morten Welinder authored
      2001-08-28  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.h (struct _Workbook): point to first dependent
       	directly, not via an slist.
      
      	* src/eval.h (struct _Dependent): Add prev and next fields.
      
      	* src/eval.c (dependent_unlink, dependent_unlink_sheet): Fix-up
       	unlinking.
      	(dependent_link): Link using new double-linked structure.
      	(sheet_region_queue_recalc): Use new dependent linking structure.
      	(workbook_queue_all_recalc): Make an slist of dependents here.
      
      	* src/workbook-control-gui.c (TOGGLE_HANDLER/display_formulas):
       	Adapt to new dependent linking structure.
      
      	* src/workbook.c (workbook_expr_relocate): Adapt to new dependent
       	linking structure.
      d48e13b0
  26. 26 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      fix typo. and generate the expression using the source cell rather than · b6548888
      Jody Goldberg authored
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-information.c (gnumeric_expression) : fix typo.
      	  and generate the expression using the source cell rather than then
      	  position with the call to expression.
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : merge with
      	  gnum_graph_vector_new and add intelligence to merge multiple
      	  requests for the same vector into a single vector.
      
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/position.c (cellref_get_abs_pos) : rename and adjust signature.
      
      	* src/expr.c (expr_tree_equal) : new function.
      b6548888
  27. 13 Jul, 2001 1 commit
  28. 18 Jun, 2001 1 commit
  29. 03 Jun, 2001 1 commit
    • 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
  30. 02 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      rewrite, not quite done. · f423353e
      Jody Goldberg authored
      
      2001-06-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_compile) : rewrite, not quite done.
      
      	* src/commands.c (cmd_set_text_undo) : queue a recalc.
      	(cmd_clear_redo) : ditto.
      	* src/corba-sheet.c (Sheet_clear_region) : ditto.
      	(Sheet_clear_region_content) : ditto.
      	* src/gui-clipboard.c (x_selection_handler) : ditto.
      	* src/sheet-merge.c (sheet_merge_add) : ditto.
      
      	* src/eval.c : switch the depend lists to be singly linked.
      	(dep_slist_filter_sheet) : convenience routine.
      	(dependent_unqueue_sheet) : Used here.
      	(dependent_unlink_sheet) : and here.
      
      	* src/workbook-control-gui.c (display_formulas) :  convert the single
      	  lists.
      f423353e
  31. 31 May, 2001 2 commits
    • Jody Goldberg's avatar
      Use cell_eval in place of cell_eval_content. · c42dae7a
      Jody Goldberg authored
      
      2001-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/solver-lp.c : Use cell_eval in place of cell_eval_content.
      
      	* src/eval.c (cb_range_hash_invalidate) : disconnect the list from the
      	  dep record while removing its contents.  We don't want to modify the
      	  list while we are walking it.  This is also an optimization in that
      	  we don't need to modify the list.
      	(cb_single_hash_invalidate) : ditto.
      	(depsingle_dtor) : Ensure that the list has already been cleared.
      	(deprange_dtor) : ditto.
      	(dependent_unlink) : short circuit if we are destroying.
      
      	* src/sheet.c (sheet_destroy) : Clear the controls first.
      c42dae7a
    • Jody Goldberg's avatar
      Handle errors. (gnumeric_count) : ditto. (gnumeric_counta) : ditto. · d0bee477
      Jody Goldberg authored
      2001-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-stat.c (gnumeric_mode) : Handle errors.
      	(gnumeric_count) : ditto.
      	(gnumeric_counta) : ditto.
      	(gnumeric_prob) : return the correct error, and simplfy.
      	(gnumeric_frequency) : ditto.
      	(make_list) : renamed from init_make_list_closure, and moved
      	  replicated code here.
      	(stat_helper) : helper routine.
      	(gnumeric_ftest) : use here.
      	(gnumeric_ttest) : and here.
      
      2001-05-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_new_error_err) : change name from
      	  value_new_error_err since we don't actually new anything.
      
      	* src/position.c (eval_pos_init_cellref) : delete broken crap.
      
      	* src/func.c (cb_iterate_cellrange) : duplicate error here.
      	(function_iterate_argument_values) : duplicate the non-terminate
      	  error here.
      	* src/collect.c (collect_floats) : not here.
      d0bee477
  32. 28 May, 2001 1 commit
    • Jody Goldberg's avatar
      Switch the BIFF_WINDOW2 0x23e -> 0x3e (write_names) : fix biff type. · f86b3d74
      Jody Goldberg authored
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_window2) :
      	  Switch the BIFF_WINDOW2 0x23e -> 0x3e
      	(write_names) : fix biff type.
      
      	* ms-excel-read.c (ms_excel_read_formula) : cleanup some old
      	  inconsistentcies.  keep as many of the BIFF_* using their major
      	  types.
      	  Switch the BIFF_STRING 0x207 -> 0x07
      	  Switch the BIFF_BOOLERR 0x205 -> 0x05
      	(ms_excel_read_window2) : split this out into a neater bundle.
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (sheet_region_queue_recalc) : Queue the dependents in the
      	  region not just those that depend on it.
      	(cell_queue_recalc) : no need to queue non expression cells.
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_expr_real) : recurse for arrays too.
      	(expr_tree_array_corner) : rename from expr_tree_array_formula_corner,
      	  and return the corner, not the expression in the corner.
      
      	* src/eval.c (cb_range_hash_invalidate) : invalidate and free things
      	  in place.
      	(cb_single_hash_invalidate) : ditto.
      	(do_deps_destroy) : simplify.
      
      	* src/workbook-control-gui.c (wbcg_sheet_rename) : Use the table not
      	  the container.
      f86b3d74
  33. 27 May, 2001 1 commit
    • Jody Goldberg's avatar
      If successful queue everything for recalc. (xml_cell_set_array_expr) : no · b740bf75
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_sax_file_open) : If successful queue everything
      	  for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc for arrays.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (colrow_move) : no need to queue recalc here.
      	(cb_sheet_cell_copy) : Actually copy the array values.
      
      	* src/cell.c (cell_relocate) : Just relink, no need to queue a recalc.
      	(cell_set_array_formula) : Remove the ability to queue the recalc at
      	  this level.  Just link the formulas in.  Reorder the the arguments
      	  to match the standard approach.
      
      	* src/eval.c (workbook_recalc_all) : Used here.
      	(workbook_queue_all_recalc) : new function.
      
      	* src/xml-io.c (xml_workbook_read) : Queue everything for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc here.
      
      	* src/commands.c (cmd_autofill_redo) : queue the recalc here.
      	(cmd_area_set_text_redo) : we need to manually queue a recalc for
      	  arrays now.
      
      	* src/sheet.c (sheet_cell_set_text) : we need to queue a recalc for
      	  both expressions and values now.
      	(sheet_range_set_text) : queue recalcs for the region as a block.
      
      	* src/graph-vector.c (graph_vector_new) : Just use dependent_link if
      	  we don't want a recalc.
      b740bf75