1. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      
      2002-02-15  Jody Goldberg <jody@gnome.org>
      
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      
      	* src/formats.c (cell_format_classify) : handle general.
      
      	* src/file-priv.h : Inherit from GObject.
      
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      
      	* src/Makefile.am : distribute the marshaller.list
      
      	s/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  2. 07 Feb, 2002 1 commit
  3. 06 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      changes to the classification interface. It will continue to evolve. · eee2e6a6
      Jody Goldberg authored
      2002-02-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-autofill.c (autofill_create_fill_items) : changes to the
      	classification interface.  It will continue to evolve.
      
      	* src/formats.c (cell_format_classify) : change the signature.  In the
      	  future this should really be split.  This routine is
      	  1) stupid
      	  2) wrong
      	  It is really only useful in the context of the format dialog.
      	  however, our desire to call it elsewhere indicates what the new
      	  format engine should make easiliy accessible.
      
      	* src/expr.c (expr_eval_real) : quick and easy support for autoformat
      	  style formating for percent operator.  Just a quick test to see how
      	  hard it would be, and it wasn't.
      
      	* src/auto-format.c : Convert to StyleFormat.  Nothing actually uses
      	  this anymore but I have not merged its logic into the eval structure
      	  yet.
      
      	* src/format-template.c (format_template_check_valid) : warning
      	  suppression.
      
      	* src/format.c (style_format_general) : new.
      	(style_format_default_date) : new.
      	(style_format_default_time) : new.
      	(style_format_default_percentage) : new.
      	(style_format_default_money) : new.
      
      	* src/cell.c (cell_get_format) : finish the conversion.
      eee2e6a6
  4. 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
  5. 02 Feb, 2002 1 commit
  6. 25 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      some added protection just in case. · a1ce8bc1
      Jody Goldberg authored
      2001-12-25  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : some added protection
      	  just in case.
      
      	* src/rendered-value.c (cell_rendered_height) : we can be smarter
      	  about unrendered expressions.
      a1ce8bc1
  7. 23 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      add some very special purpose code to clip the bounds of autofilled arrays · 7c7049c8
      Jody Goldberg authored
      2001-12-23  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-autofill.c (sheet_autofill_dir) : add some very special
      	  purpose code to clip the bounds of autofilled arrays that are being
      	  clipped when filling a non-integer multiple of the original block
      	  size.
      
      	* src/expr.c (expr_tree_new_array) : reorder args to match the rest of
      	  the app.
      7c7049c8
  8. 21 Dec, 2001 2 commits
    • Jody Goldberg's avatar
      Cleanup and standardize the #include files · 65d67daa
      Jody Goldberg authored
      65d67daa
    • Jody Goldberg's avatar
      you do need to unref the resulting style. I forgot that autoformat · e8b0714a
      Jody Goldberg authored
      2001-12-21  Jody Goldberg <jody@gnome.org>
      
      	* src/parse-util.c (parse_text_value_or_expr) : you do need to unref
      	  the resulting style.  I forgot that autoformat generates formats.
      
      	* src/format.c (style_format_unref) : unrefing NULL is ok.
      
      	* src/cell.c (cell_set_text) : adjust to ref semantic change in
      	  parse_text_value_or_expr.
      	* src/commands.c (cmd_search_replace_do_cell) : ditto.
      	* src/sheet.c (sheet_range_set_text) : ditto.
      	(sheet_cell_set_text) : ditto.
      	* src/xml-io.c (xml_read_cell_copy) : ditto.
      e8b0714a
  9. 19 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      remove objects before relocations. (sheet_delete_rows) : ditto. · 8d0cbbed
      Jody Goldberg authored
      2001-12-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_delete_cols) : remove objects before relocations.
      	(sheet_delete_rows) : ditto.
      
      	* src/sheet-object.c (sheet_objects_clear) : new.
      	(sheet_objects_relocate) : rename from sheet_relocate_objects.
      	(sheet_objects_get) : rename from sheet_get_objects.
      
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_class_init) : Doh!
      
      	* src/xml-io.c (xml_read_cell) : fix format leak.
      	(xml_sheet_write) : clarify variable names.
      8d0cbbed
  10. 22 Nov, 2001 1 commit
  11. 31 Oct, 2001 1 commit
  12. 26 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      remove the loops, and recursions. match against formatted values before · fea69d08
      Jody Goldberg authored
      2001-10-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (wbcg_edit_finish) : remove the loops, and
      	  recursions.  match against formatted values before expressions, then
      	  fall back to strings.
      
      	* src/parse-util.c (parse_text_value_or_expr) : match against
      	  formatted values before expressions, then fall back to strings.
      
      	* src/cell.c (cell_set_text) : parse_text_value_or_expr takes a ParsePos.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/widgets/gnumeric-expr-entry.c
      	  (gnumeric_expr_entry_key_press_event) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_area_set_text) : ditto.
      	(cmd_search_replace_do_cell) : create a tmp EvalPos to avoid changing
      	  the search data structures.
      
      	* src/expr.c (expr_tree_get_range) : renamed from range_from_expr_tree.
      	  add support for singletons.
      
      	* src/ranges.c (global_range_parse) : tweak slightly.
      
      2001-10-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_match_init) : don't include text in the
      	  stock set of formats they should only match numbers.
      fea69d08
  13. 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
  14. 18 Sep, 2001 2 commits
    • Jody Goldberg's avatar
      implemenent a bit of just in time rendering. ditto. ditto. · b3731e36
      Jody Goldberg authored
      2001-09-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : implemenent a bit of just in time
      	  rendering.
      	* src/print-cell.c (print_cell) : ditto.
      	* src/cell.c (cell_eval_content) : ditto.
      b3731e36
    • 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
  15. 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
  16. 30 Aug, 2001 1 commit
    • 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
  17. 23 Aug, 2001 1 commit
  18. 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
  19. 18 Jun, 2001 1 commit
  20. 14 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      use the scale info and round it correctly. (do_setup_page) : ditto. · 4a3bcd3a
      Jody Goldberg authored
      2001-06-11  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-printer-setup.c (do_fetch_page) : use the scale info and
      	  round it correctly.
      	(do_setup_page) : ditto.
      
      	* print.glade : partially enable the print scaling.
      2001-06-11  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_setup) : new routine.
      	(write_sheet_bools) : split out from here.
      
      	* ms-excel-read.c (ms_excel_read_sheet) : split the setup parser out
      	  of here into.
      	(ms_excel_read_setup) : here.  and modernize it.  Read the number of
      	  copies and the scaling if specified.
      
      2001-06-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (render_number) : improve rounding and cleanup.
      
      2001-06-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_cleanout) : call dirty here.
      	(cell_destroy) : not here.
      	(cell_set_text) : or here.
      	(cell_set_value) : or here.
      	(cell_set_expr_and_value) : or here.
      	(cell_set_expr_internal) : or here.
      
      2001-06-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (compute_group) : add more error checking to avoid
      	  possibility of infinite loop.
      
      	* src/print-info.c (print_info_new) : init num copies.
      
      	* src/mathfunc.c (stern_brocot) : move this here from
      	* format.c : here.
      4a3bcd3a
  21. 31 May, 2001 1 commit
    • 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
  22. 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
  23. 26 May, 2001 2 commits
    • 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
    • Jody Goldberg's avatar
      new routine. This looks ugly. We should be able to avoid replicating this · f1b88ce2
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_diff) : new routine.  This looks ugly.  We should
      	  be able to avoid replicating this code.
      
      	* src/cell.c (cell_eval_content) : support iteration.
      
      	* src/format.c (render_number) : make the buffer big enough.
      	  The assumtion that mantissa and exp are both maxed should leave
      	  enough room for thousand separators.
      f1b88ce2
  24. 25 May, 2001 1 commit
    • Jody Goldberg's avatar
      fix logic to avoid adding a bogus view. · 237ebd5b
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_open_custom) : fix logic to avoid
      	  adding a bogus view.
      
      2001-05-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (workbook_recalc) : don't clear the flag until after the
      	  calc is complete in case there is a cycle.
      	(cell_eval) : ditto.
      237ebd5b
  25. 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
  26. 12 May, 2001 1 commit
  27. 04 May, 2001 1 commit
    • Jody Goldberg's avatar
      s/clipboard_release/cellregion_free/ s/range_copy/range_dup/ · 32bde6ee
      Jody Goldberg authored
      
      2001-05-04  Jody Goldberg <jgoldberg@home.com>
      
      	s/clipboard_release/cellregion_free/
      	s/range_copy/range_dup/
      	s/cell_region_render_ascii/cellregion_to_string/
      	s/clipboard_release/cellregion_free/
      
      	* src/commands.c (cmd_autofill) : Use sheet_range_contains_region.
      	(cmd_autofill_redo) : no need to test here.
      	(cmd_paste_cut) : test destination for validity and ensure that it
      	  does not slice up any merged regions or arrays.  Make the descriptor
      	  an argument so that other commands can use this one.
      	(cmd_ins_del_colrow_redo) : use colrow_max.
      	(cmd_area_set_text_redo) : use sheet_ranges_split_region.
      	(cmd_colrow_outline_change) : suppress warning.
      
      	* src/gui-clipboard.c (x_selection_to_cell_region) : simplify by using
      	  some of the convenience routines.
      
      	* src/gutils.c (gnumeric_sys_data_dir) : warning suppression.
      	(gnumeric_sys_lib_dir) : ditto.
      
      	* src/item-bar.c (item_bar_draw) : add missing warning.
      
      	* src/item-cursor.c (item_cursor_drag_event) : Don't assume the
      	  release came from the button that started the grab (think about
      	  multiple simultaneous button downs.
      	(item_cursor_selection_event) : ditto.
      	(item_cursor_do_drop) : changes to selection_first_range.
      
      	* src/parse-util.c (col_name_internal) : new routine split from
      	  col_name with better buffer handling.
      	(col_name) : used here.
      	(cols_name) : and in this new function.
      
      	* src/print.c (sheet_print_selection) : changes to
      	  selection_first_range.
      
      	* src/print-info.c (print_info_new) : default even_if_only_styles to
      	  false.  This is probably what most people want.
      
      	* src/ranges.c (range_translate) : don't invert.
      	(range_height) : new util.  could probably be #define.
      	(range_width) : new util.  could probably be #define.
      	(range_is_infinite) : use range_is_full.
      	(range_is_full) : new util.
      
      	* src/search.c (calculate_replacement) : warning suppression.
      
      	* src/selection.c (sheet_selection_cut) : Use
      	  sheet_range_splits_region and selection_first_range.
      	(sheet_selection_copy) : Use selection_first_range and remove TODO
      	  about supporting not paste by content for partial arrays.
      	(selection_first_range) : Add optional error reporting if there are
      	  multiple selection ranges.
      
      	* src/format.c (format_get_currency) : diddle the logic to get
      	  undefined to work the way people expect for locale C.
      
      	* src/sheet-merge.c (sheet_merge_relocate) : remove some dead code.
      	(sheet_merge_add) : changes to sheet_range_splits_array.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_construct) :
      	  changes to selection_first_range.
      
      	* src/sheet.c (sheet_delete_{cols,rows}) : changes to
      	  sheet_range_splits_array.
      	(sheet_insert_{cols,rows}) : use sheet_range_splits_array.
      	(avoid_dividing_array_vertical) : delete.
      	(avoid_dividing_array_horizontal) : delete.
      	(sheet_is_pristine) : constness.
      	(sheet_mark_clean) : delete.
      	(sheet_clear_region) : changes to sheet_range_splits_array.
      	(sheet_ranges_split_region) : renamed from selection_check_for_array.
      	(sheet_range_splits_region) : new routine to check arrays and merged
      	  regions.
      	(sheet_range_splits_array) : improve and add hooks to be used for
      	  overlapping checks.
      	(cb_check_array_vertical) : report the array being split.
      	(cb_check_array_horizontal) : report the array being split.
      
      	* src/stf-parse.c (stf_parse_region) : use cellregion_new.
      	(stf_parse_is_valid_data) : simplify.
      
      	* src/value-sheet.c (value_area_get_width) : warning suppression.
      	(value_area_get_height) : warning suppression.
      	(value_area_fetch_x_y : signedness.
      	(value_area_get_x_y) : signedness.
      
      	* src/value.c (value_array_resize) : signedness.
      	(value_array_set) : signedness.
      
      	* src/workbook-control-gui.c (wbcg_error_splits_array) : signature
      	  change.
      	(cb_insert_rows) : use selection_first_range
      	(cb_insert_cols) : ditto.
      	(sort_cmd) : ditto.
      	(cb_workbook_debug_info) : clean out some deadwood.
      
      	* src/workbook-edit.c (auto_complete_matches) : warning suppression.
      
      	* src/workbook.c (workbook_sheet_detach) : warning suppression.
      	(g_ptr_array_insert) : warning suppression, moved to gutils.
      
      	* src/xml-io.c (xml_write_attributes) : warning suppression.
      	(xml_read_selection_clipboard) : use cellregion_new and tidyup.
      
      	* src/clipboard.c (paste_link) : Only make the link sheet specific if
      	  we need to.
      	(clipboard_paste_region) : constness, support being able to paste
      	  content only as link or value.
      	(clipboard_prepend_cell) : check for arrays.
      	(clipboard_copy_range) : use cellregion_new
      	(cellregion_new) : new function
      	(cellregion_free) : renamed from clipboard_release.
      	(cellregion_to_string) : moved here from render-ascii.
      
      	src/cmd-edit.c (cmd_paste) : more protection. Merge in
      	  application_paste.
      	(cmd_paste_to_selection) : handle changes to selection_is_simple and
      	  use selection_first_range
      	(cmd_shift_rows) : changes to cmd_paste_cut.
      	(cmd_shift_cols) : ditto.
      
      	* src/command-context-priv.h : change signature of splits array.
      	* src/command-context.h : ditto.
      	* src/command-context.c (gnumeric_error_splits_array) : ditto.
      
      	* src/application.c (application_clipboard_clear) :
      	(application_set_selected_sheet) : remove #warning, it is not portable.
      
      	* src/commands.c
      	* src/Makefile.am : remove render-ascii.[ch]  Move their content into
      	  clipboard.
      
      2001-05-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_prepend_cell) : remove ugly
      	  implementation.
      
      	* src/workbook-edit.c (auto_complete_matches) : remove warning.
      
      	* src/xml-io.c (xml_write_attributes) : remove warning.
      32bde6ee
  28. 26 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      Move the #define wrapper out here. · a0aaf6ad
      Jody Goldberg authored
      
      2001-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mathfunc.h (FINITE) : Move the #define wrapper out here.
      
      	* src/cell.c : prune some includes
      	(cell_default_halign) : rename to
      	* src/style.c (style_default_halign) : to simplify headers for systems
      	  that do not support fwd declarations of enums. H - cough - PUX
      a0aaf6ad
  29. 27 Mar, 2001 1 commit
    • Morten Welinder's avatar
      New function, extracted from cmd_search_replace_do. · 9afef623
      Morten Welinder authored
      2001-03-26  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.c (workbook_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/sheet.c (sheet_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/cell.c (cell_has_comment_pos): New function for those cells
       	that aren't really there.
      
      	* src/commands.c (cmd_search_replace_do): Use workbook_cells and
       	sheet_cells.
      	(cmd_search_replace_do_cell): Change to take position instead of
       	cell.  Handle missing cells without crashing.
      9afef623
  30. 21 Feb, 2001 1 commit
  31. 18 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      s/display_zero/hide_zero/ + necessary logic inversions · a8dc5b30
      Jody Goldberg authored
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	s/display_zero/hide_zero/		+ necessary logic inversions
      	s/show_grid/hide_grid/			+ necessary logic inversions
      	s/show_col_header/hide_col_header/	+ necessary logic inversions
      	s/show_row_header/hide_row_header/	+ necessary logic inversions
      	s/wb_control_paste_special_enable/wb_control_menu_state_paste_special/
      	s/wbcg_paste_special_enable/wbcg_menu_state_paste_special/
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
      	  Simplfy and use wbcg::updating_ui.
      	(workbook_format_halign_feedback_set) : use simplified interface.
      	(workbook_feedback_set) : Ditto.
      	(set_selection_halign) : If the current alignment is already set to
      	  the target type revert to general.
      
      	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
      	  will default to width / 2.
      	* src/item-grid.c (item_grid_draw_merged_range) : Ditto.
      	(item_grid_draw) : Ditto.
      
      	* src/print-cell.c (print_cell) : print_cell::h_center
      	  will default to width / 2.
      	(print_merged_range) : Ditto.
      	(print_cell_range) : Ditto.
      
      	* src/sheet.c (sheet_adjust_preferences) : Update the menus to reflect
      	  changes in prefs.  Take a flag to control redraw requests.
      	(sheet_menu_state_enable_insert) : new function.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_enable_insert) : Merge
      	  all the insert col/row/cell menu updates into here.
      	(wbcg_menu_state_sheet_prefs) : new function.
      	(cb_sheet_pref_display_formulas) : reentrancy protection and use
      	  sheet_adjust_preferences.
      	(cb_sheet_pref_hide_zeros) : ditto.
      	(cb_sheet_pref_hide_grid_lines) : ditto.
      	(cb_sheet_pref_hide_col_header) : ditto.
      	(cb_sheet_pref_hide_row_header) : ditto.
      	(workbook_control_gui_init) : add the new menu items.
      	(workbook_control_gui_ctor_class) : reorg a bit.
      
      	src/workbook-control.c : reorg a bit.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Make python plugin optional.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (wb_control_sheet_add) : update menus here.
      
      	* src/print-cell.c (print_cell) : fix the display zero logic.
      	* src/cell-draw.c (cell_draw) : ditto.  And fix the comment.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_default_halign) : Handle alignment of numbers
      	  correctly when displaying formulas.
      
      	* src/embeddable-grid.c (set_header_visibility) : start using our
      	  native MVC.
      	(Grid_set_header_visibility) : ditto.
      	(embeddable_grid_set_header_visibility) : delete.
      
      	* src/sheet-control-gui.c (scg_set_header_visibility) : delete.
      	(scg_adjust_preferences) : Make this contingent on having a wbcg.
      
      	* src/selection.c (sheet_selection_set_internal) : Use
      	  sheet_menu_state_enable_insert.
      	(sheet_selection_reset) : ditto.
      a8dc5b30
  32. 23 Jan, 2001 1 commit
    • Morten Welinder's avatar
      I got this right-end condition wrong. Oh dear. · 14e3515d
      Morten Welinder authored
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (match_is_word): I got this right-end condition
       	wrong.  Oh dear.
      
      	* src/cell.c (cell_has_comment): Resurrect.
      
      	* src/commands.c (cmd_search_replace_do_cell): No need for the
       	sheet argument.
      	(command_push_undo): Remove duplicate call to update_after_action.
        	First check parameters, then use them.
      	(command_register_undo): New function, split from
       	command_push_undo.
      	(command_push_undo): Use command_register_undo.
      	(truncate_undo_info): Change to take a Workbook directly.  Caller
       	changed.
      	(cmd_search_replace): Use command_register_undo and eliminate
       	gross hack.
      14e3515d
  33. 12 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Rework the style engine. Mostly functional. see BUGS for remaining details. · 9e615b65
      Jody Goldberg authored
      NOTE : I have not tested persistance.
      
      2001-01-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.c (mstyle_ref_multiple) : new function.
      	(mstyle_copy_merge) : new function.
      	(mstyle_new_default) : Do not cache the result.  That is done at the
      	  sheet level.
      	(mstyle_do_merge) : delete.
      	(mstyle_get_format) : constness.
      
      	* src/format-template.c (cb_format_sheet_border) : delete.
      	(format_template_apply_to_sheet_regions) : borders are no longer special.
      
      	* src/expr.c (expr_tree_array_formula_corner) : do not store the
      	  corner anymore.
      	(expr_tree_new_array) : ditto.
      	(do_expr_tree_unref) : ditto.
      
      	* src/cell.c (cell_relocate) : Arrays are simplified.  No need to keep
      	  a pointer to the corner.  It made the system too brittle.
      	(cell_set_mstyle) : delete.
      
      	* src/Makefile.am : remove test.[ch]
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : There is no
      	  1 pixel border.
      
      2001-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.h : Change order of borders to match BorderLocation
      
      2001-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_has_header) : avoid leaking styles.
      
      	* src/cell.c (cell_get_mstyle) : Use sheet_style_get, and do not bump
      	  the ref count.
      	(cell_render_value) : Adjust.
      	(cell_get_format : Adjust.
      	(cell_set_text) : Adjust.
      
      	* src/functions/fn-information.c (gnumeric_cell) : sheet_style_get
      	  does not make a reference. Use it.
      	* src/workbook-format-toolbar.c (modify_cell_format) :  Ditto.
      	(change_selection_font) : Ditto.
      	* src/sheet-autofill.c (fill_item_new) : ditto.
      	* src/print-cell.c (print_cell_range) : ditto.
      	* src/cellspan.c (cell_calc_span) : ditto.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size) : ditto.
      	* src/workbook-view.c (wb_view_format_feedback) : ditto.
      
      2001-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format) :
      	  init initial style to NULL.
      	(fmt_dialog_selection_type) : call sheet_style_get_uniform here.
      
      	* src/commands.c (cmd_format_redo) : Now that apply_border is not
      	  doing a redraw we need to if there is no style applied.
      
      	* src/selection.c (sheet_selection_extend_to) : Add support akin to
      	  gnumeric_sheet_rangesel_cursor_extend to extend to full col/row.
      
      	* src/sheet-control-gui.c (scg_colrow_select) : extend to full col/row
      	  if necessary.
      
      	* src/item-bar.c (item_bar_event) : Set the selection, not extend it.
      9e615b65
  34. 02 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      add the new file. · 8f9fa37b
      Jody Goldberg authored
      
      2001-01-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : add the new file.
      
      	* src/sheet-style.h : new file split from sheet.h in preparation
      	  for changing the style engine.
      8f9fa37b
  35. 22 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_container_new_bonobo) : delete. · 1afafe3a
      Jody Goldberg authored
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-container.c (sheet_object_container_new) : new
      	  function.
      	(sheet_object_container_new_bonobo) : delete.
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_expr_and_value) : Make linking the
      	  expression optional.
      
      	* src/ranges.c (range_init_full_sheet) : adjusted from
      	  sheet_get_full_range.
      
      2000-12-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Don't create the object
      	  here.  Pass it in.
      1afafe3a
  36. 15 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Move the span handling here. from here. · 17fb06d4
      Jody Goldberg authored
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Move the span handling here.
      	* src/cell-draw.c (cell_draw) : from here.
      
      	* src/print-cell.c (print_cell_range) : Move the span handling here.
      	(print_cell) : rather than here.
      
      	* src/sheet-control-gui.c (scg_get_distance) : merge
      	  sheet_{row,col}_distance_get_pixels and make the result sheet
      	  control specific.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_convert_expr_to_value) : rename from cell_make_value.
      
      	* src/format.c (format_number) : adjust signature to take the
      	  colwidth in preparation for supporting
      	(format_value) : pass in the width.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/formats.c (currency_date_format_init) : correctly place currency
      	  before or after the value, and optionally include a space.
      
      	* src/format.c (format_get_currency) : include info on currency
      	  placement.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_sheet_rename) : Handle renames that only
      	  change case more smoothly.
      17fb06d4
  37. 10 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      comment out the warning. These the life cycles of names are too fluid to · e605d42e
      Jody Goldberg authored
      
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out the
      	  warning.  These the life cycles of names are too fluid to scare
      	  users yet.
      	(expr_name_invalidate_refs_wb) : Ditto.
      
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_text) : send the current format to the
      	  number matcher..
      	* src/sheet.c (sheet_cell_set_text) : Ditto.
      
      	* src/parse-util.c (parse_text_value_or_expr) : send the curent
      	  format to the number matcher.
      
      	* src/number-match.c (format_match) : take the current format as a
      	  parameter.  Begin using it to handle cells formated as text.
      
      	* src/format.c (style_format_is_text)  utility routine.
      
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : rename from
      	  sheet_selection_set and add the 'just_add_it' flag to indicate that
      	  we don't need to do anything fancy.
      e605d42e