1. 12 Jul, 2001 1 commit
    • Morten Welinder's avatar
      New function. · 3c2b4775
      Morten Welinder authored
      2001-07-12  Morten Welinder  <terra@diku.dk>
      
      	* src/mathfunc.c (range_multinomial): New function.
      
      	* configure.in (evolution): Fix check, but see BUGS.
      
      2001-07-12  Morten Welinder  <terra@diku.dk>
      
      	* fn-math.c (gnumeric_multinomial): Cleanup.
      3c2b4775
  2. 07 Jul, 2001 3 commits
    • Morten Welinder's avatar
      Move EXPRESSION. · 70050162
      Morten Welinder authored
      70050162
    • Morten Welinder's avatar
      Handle errors properly. Don't leak like crazy. · ee21e641
      Morten Welinder authored
      2001-07-07  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_concatenate): Handle errors properly.
        	Don't leak like crazy.
      ee21e641
    • Almer S. Tigelaar's avatar
      Changes from Almer. · 68007bd8
      Almer S. Tigelaar authored
      2001-07-07  Almer S. Tigelaar  <almer@gnome.org>
      
      	* fn-string.c (gnumeric_char): Beautify.
      	(gnumeric_code): Simplify, no need to check type.
      	(gnumeric_lower): Use gstrdown.
      	(gnumeric_mid): Beautify, no need to check type.
      	(gnumeric_upper): Use gstrup.
      	(gnumeric_concatenate): Drastically simplify using GString.
      	(gnumeric_replace): Idem.
      68007bd8
  3. 29 Jun, 2001 1 commit
  4. 27 Jun, 2001 3 commits
    • Jody Goldberg's avatar
      Release 0.66 · a219e328
      Jody Goldberg authored
      a219e328
    • Jody Goldberg's avatar
      load the ui file from a version specific location. · 94f44bfe
      Jody Goldberg authored
      2001-06-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_control_gui_init) : load the ui
      	  file from a version specific location.
      
      	* src/Makefile.am : No need for GNOME_DATADIR anymore.
      
      	* gnumeric.spec.in : Move the bonobo ui file into a version specific
      	  location.
      
      2001-06-26  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-lookup.c (lookup_functions_init) : fix the args for hyperlink.
      	(help_hyperlink) : fix the arg descriptions.
      94f44bfe
    • Jody Goldberg's avatar
      partial patch. Should this be tied to the current locale ? 2001-06-25 Jody · 7666a707
      Jody Goldberg authored
      2001-06-25  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-information.c (translate_table) : partial patch.  Should this be
      	  tied to the current locale ?
      2001-06-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_not_used_old_array_spec) : fix a few warnings.
      7666a707
  5. 22 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Prefer absolute lowest y-value in cases where we have only one side of · 4a6dcac2
      Morten Welinder authored
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* src/goal-seek.c (update_data): Prefer absolute lowest y-value in
       	cases where we have only one side of zero.
      
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* fn-financial.c (gnumeric_rate, gnumeric_irr): No longer respect
       	sign of guess.  It's a nice idea, but breaks tests.
      
      
      (White-space samba in plugins/excel/ms-excel-read.c)
      4a6dcac2
  6. 21 Jun, 2001 1 commit
    • Morten Welinder's avatar
      #include <string.h> for strlen. · fbb769d8
      Morten Welinder authored
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* src/summary.c: #include <string.h> for strlen.
      
      	* src/search.c (calculate_replacement): Warning killer.
      
      	* src/regression.c: #include <stdlib.h> for abs.
      
      	* src/plugin-loader-module.c: #include <string.h> for strcmp.
      
      	* src/formats.c (cell_format_fraction): Avoid accidental use of
       	trigraph.
      
      	* src/complete.c: #include <stdlib.h> for abort.
      
      
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* fn-stat.c: #include <string.h> for memset.
      
      	* fn-lookup.c: #include <stdlib.h> for abs.
      
      	* fn-information.c (translate_table): Fix accidental use of
       	trigraph.
      	#include <stdlib.h> for abs and <string.h> for strcmp.
      
      	* fn-date.c: #include <string.h> for strcmp and <stdlib.h> for
       	abort.
      fbb769d8
  7. 17 Jun, 2001 1 commit
  8. 07 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      We need this for now. There are functions that actualyl rely on the · e7082e55
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      
      2001-06-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gui-file.c (gui_file_open) : There is no point showing the
      	  create/delete/rename buttons when loading.
      	(gui_file_import) : and importing.
      e7082e55
  9. 03 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Do arg type checking here. (fn_def_new): Not here. (function_remove): Free · 5668bf4c
      Morten Welinder authored
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (function_add_args): Do arg type checking here.
      	(fn_def_new): Not here.
      	(function_remove): Free cached arg types.
      	(function_add_args): Pre-calculate arg counts and types.
      	(function_def_get_full_info_if_needed): Ditto.
      	(function_call_with_list): Use pre-calculated arg counts and
       	types.
      	(function_add_name_only): Use FUNCTION_NAMEONLY for type.
      
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (information_functions_init): Don't supply arg
       	spec for node function.
      	* fn-lookup.c (lookup_functions_init): Ditto.
      	* fn-math.c (math_functions_init): Ditto.
      	* fn-eng.c (eng_functions_init): Ditto.
      
      	* fn-date.c (gnumeric_datedif): Constify.
      5668bf4c
  10. 01 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Use value_peek_string. · 19b0b593
      Morten Welinder authored
      2001-05-29  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (gnumeric_cell, gnumeric_info, gnumeric_error,
       	gnumeric_n): Use value_peek_string.
      
      	* fn-financial.c (gnumeric_coupdaybs, gnumeric_coupdays,
       	gnumeric_coupncd, gnumeric_coupnum): Remove mysterious and
       	unnecessary references to VALUE_ERROR.
      	(gnumeric_db): Improve error checking.
      
      	* fn-eng.c (gnumeric_complex): Fix using value_peek_string.
      	(gnumeric_convert): Get rid of one_C_to_K and introduce
       	C_K_offset.  Fix using value_peek_string.
      	(get_constant_of_unit): Constify.
      	(convert): Constify.
      	(help_erfc): complement, not compliment, :-)
      
      	* fn-date.c (gnumeric_datedif): Use value_peek_string.
      19b0b593
  11. 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
  12. 28 May, 2001 1 commit
  13. 26 May, 2001 1 commit
    • 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
  14. 25 May, 2001 1 commit
  15. 20 May, 2001 1 commit
  16. 06 May, 2001 1 commit
  17. 04 May, 2001 3 commits
    • 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
    • Morten Welinder's avatar
      Make public. · 87eb4c0b
      Morten Welinder authored
      2001-05-04  Morten Welinder  <terra@diku.dk>
      
      	* src/analysis-tools.c (set_cell_value): Make public.
      
      	* src/solver-lp.c (solver_sensitivity_report,
       	solver_answer_report): Use set_cell_value.
      
      	* src/value.c (value_peek_string): New function.
      
      	* src/expr.c (eval_expr_real): Simplify CONCAT case using
       	value_peek_string.
      
      	* src/datetime.c (datetime_value_to_serial_raw): Simplify using
       	value_peek_string.
      
      	* src/workbook-view.c (wb_view_auto_expr_recalc): Ditto.
      
      	* src/graph-vector.c (graph_vector_seq_string): Ditto.
      
      	* src/solver-lp.c (find_name): Ditto.
      
      2001-05-04  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_exact, gnumeric_len, gnumeric_rept,
       	gnumeric_find): Ditto.
      
      	* fn-eng.c (value_get_as_complex): Simplify using
       	value_peek_string.
      87eb4c0b
    • Morten Welinder's avatar
      Cleanup. (gnumeric_rept): Un-suckify. · 6557b2b7
      Morten Welinder authored
      2001-05-04  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_len, gnumeric_exact, gnumeric_trim):
       	Cleanup.
      	(gnumeric_rept): Un-suckify.
      6557b2b7
  18. 01 May, 2001 1 commit
  19. 30 Apr, 2001 1 commit
    • Morten Welinder's avatar
      Warning killer. · 5ef75629
      Morten Welinder authored
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (tokenized_help_find): Warning killer.
      
      	* src/value.c (value_new_array): Kill warnings.
      	(value_new_array_empty): Ditto.
      	(value_release): Ditto.
      
      	* src/print-cell.c (print_show): Use proper types.
      	(get_width_string_n): Ditto.
      
      	* src/number-match.c (gnumeric_error_init): Warning killer.
      
      	* src/parser.y (deallocate_all): Warning killer.
      
      	* src/item-bar.c (item_bar_draw): Avoid signedness problems.
      
      	* src/format-template.c (hash_table_destroy): Warning killer.
      
      	* src/colrow.h (struct _ColRowInfo): Make size_pixels an int.
      
      	* src/value-sheet.c (value_area_get_width, value_area_get_height):
       	Return an int, not a guint.
      
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_mid): Un-suckify.
      	(gnumeric_find): Un-suckify.
      	(gnumeric_substitute): Warning killer.
      	(match_string): Warning killer.
      
      	* fn-information.c (translate_cell_format): Warning killer.
      
      	* fn-eng.c (val_to_base): Warning killer.
      
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* ms-summary.c (sum_name_to_excel): Fix index count.  Constify.
        	Make static.
      	(excel_to_gnum_mapping): Make static.
      5ef75629
  20. 29 Apr, 2001 1 commit
  21. 19 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      fix. · 04097024
      Jody Goldberg authored
      
      2001-04-18  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-database.c (find_cells_that_match) : fix.
      04097024
  22. 12 Apr, 2001 1 commit
  23. 17 Mar, 2001 1 commit
  24. 24 Feb, 2001 1 commit
  25. 17 Feb, 2001 1 commit
  26. 13 Feb, 2001 1 commit
  27. 29 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. · 7008d180
      Jody Goldberg authored
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_redraw_cell_region) : support merged cells.
      
      	* src/style.c (style_font_new_simple) : guestimate width.
      	(style_font_get_width) : new function.
      
      	* src/rendered-value.c (rendered_value_new) : appoximate with via pts.
      	  handle merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_region_unmerge) : untag an existing cell as being
      	  merged.
      	(sheet_cell_remove_from_hash) : ditto.
      	(sheet_region_merge) : tag an existing cell as being merged.
      	(sheet_cell_add_to_hash) : ditto.
      
      	* src/item-edit.c (recalc_spans) : support merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_cell) : Early versions had newlines at the
      	  end of their content
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : no need to update
      	  object positions, we have already moved them.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (GNUMERIC_MAKE_COMMAND_WITH_PARENT) : new macro.
      	(update_after_action) : new function to localize calls to
      	  sheet_update, dirty, recalc.
      	(GnumericCommand) : Add a sheet to help localize repeated calls to
      	  sheet_update, dirty, recalc.
      	(command_undo) : Call update_after_action.
      	(command_redo) : Call update_after_action.
      	(command_push_undo) : Call update_after_action.
      	(cmd_*_{undo,redo}) : remove calls to sheet_update, dirty, recalc.
      	(cmd_*) : set the sheet.
      	(cmd_paste_cut_update_origin) : new function.
      	(cmd_paste_cut_undo) : call cmd_paste_cut_update_origin.
      	(cmd_paste_cut_redo) : ditto.
      
      	* src/commands.c (CmdMergeCells) : inherit from CmdUnmergeCells to
      	  facilitate reuse and implement.
      7008d180