1. 30 Aug, 2000 2 commits
    • Morten Welinder's avatar
      Fixup IRR same as RATE. · 6fb55943
      Morten Welinder authored
      6fb55943
    • Morten Welinder's avatar
      Fix a few type errors. · a9807ec1
      Morten Welinder authored
      2000-08-30  Morten Welinder  <terra@diku.dk>
      
      	* src/print-cell.c (print_show_iso8859_1): Fix a few type errors.
      
      	* src/functions/fn-financial.c (gnumeric_rate): Respect the sign
       	of the guess.  Work much harder at getting an answer.
      
      	* src/goal-seek.c (goal_seek_point): New function.
      a9807ec1
  2. 29 Aug, 2000 1 commit
  3. 28 Aug, 2000 1 commit
    • Morten Welinder's avatar
      Fix special case. · 9c4cd9b7
      Morten Welinder authored
      2000-08-28  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-financial.c (gnumeric_rate): Fix special case.
      9c4cd9b7
  4. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Improve regexps. · 9ad38a63
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Improve regexps.
      
      	* src/formats.c (cell_format_is_number) : Format always uses standard
      	  decimal chars.
      
      	* src/format.c (gnumeric_setlocale) : New routine that clears cached
      	  locale info.
      	(format_get_decimal) : Improve use mon_decimal.
      	(format_get_thousand) : Improve use mon_thousands_sep.
      	(format_get_arg_sep) : New func.
      	(format_get_col_sep) : New func.
      	(format_destroy) : Use GPtrArray.
      	(render_number) : Improve localization.
      	(format_add_thousand) : rename format_toggle_thousands. De-localize.
      	(find_decimal_char) : De-localize.
      	(format_remove_decimal) : Ditto.
      	(format_add_decimal) : Ditto.
      	(format_number) : Ditto.
      
      	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.
      
      	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.
      
      	* src/auto-format.c (auto_style_format_suggest) :
      	  style_format_new -> style_format_new_XL
      
      	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
      	  the format string anymore.
      	(mstyle_set_format_text) : Add a warning.
      
      	* src/gutils.[ch] (float_get_from_range) : Delete.
      	(int_get_from_range) : Ditto.
      
      	* src/parser.y : Revamp lexer to use strtol, and strtod for number
      	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)
      
      	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.
      
      	* src/sheet.h : Move SpanCalcFlags.
      	* src/gnumeric.h : here.
      
      	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]
      
      	* src/value.c (value_get_as_string) : Correctly localize things for
      	  output.
      
      	* src/workbook-format-toolbar.c (modify_cell_format) : format
      	  modification callback modifies the StyleFormat.
      
      	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.
      
      	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
      	(xml_workbook_write) : Ditto.
      	(xml_read_cell) : Use style_format_new_XL.
      	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
      	(xml_write_style) : Ditto.
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
      	  Display localized number formats.
      	(fillin_negative_samples) : Not need to localize generated number
      	  formats.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
      	  format_get_arg_sep.
      
      	* src/dialogs/dialog-stf-format-page.c
      	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
      	  stored in a locale neutral format.
      
      	* src/functions/fn-string.c (gnumeric_text) : changes to
      	  style_format_new.
      
      	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.
      
      	* src/functions/fn-information.c (translate_cell_format) : This should
      	  now work for different locales.
      
      2000-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Extend the match algorithms to
      	  handle the new regexps.
      
      	* src/format.c (format_get_thousand) : provide a better default for
      	  countries using ',' as a decimal point.
      9ad38a63
  5. 09 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Some simple auditing of the functions. · de2dbf79
      Jody Goldberg authored
      They were not handling error arguments nicely.
      This sort of things should really be handled in a more centralized manner.
      
      2000-08-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-date.c (gnumeric_datevalue) : Handle error values.
      	(gnumeric_timevalue) : Ditto.
      	(gnumeric_year) : Ditto.
      	(gnumeric_month) : Ditto.
      	(gnumeric_day) : Ditto.
      	(gnumeric_weekday) : Ditto.
      	(gnumeric_days360) : Ditto.
      	(gnumeric_eomonth) : Ditto.
      	(gnumeric_workday) : Ditto.
      	(networkdays_holiday_callback) : Ditto.
      	(gnumeric_networkdays) : Ditto.
      
      	* src/functions/fn-financial.c (gnumeric_coupdaybs) : Ditto.
      	(gnumeric_coupdays) : Ditto.
      	(gnumeric_coupncd) : Ditto.
      	(gnumeric_coupnum) : Ditto.
      de2dbf79
  6. 08 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Handle blanks as 0. (callback_function_make_list) : Ditto. · c644804f
      Jody Goldberg authored
      
      2000-08-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-stat.c (callback_function_stat) : Handle blanks as 0.
      	(callback_function_make_list) : Ditto.
      	(callback_function_ttest) : Ditto.
      	(gnumeric_mode) : Explicitly ignore blanks.
      	(gnumeric_count) : Ditto.
      	(gnumeric_ztest) : Ditto.
      	(gnumeric_counta) : Ditto.
      	(gnumeric_percentile) : Ditto.
      	(gnumeric_quartile) : Ditto.
      	(gnumeric_prob) : DO NOT IGNORE BLANKS.
      	(gnumeric_ftest) : Ditto.
      	(gnumeric_ttest) : Ditto.
      	(gnumeric_frequency) : Ditto.
      
      	* src/functions/fn-logical.c (gnumeric_and) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_or) : Ditto.
      	* src/functions/fn-math.c (gnumeric_lcm) : Ditto.
      	(gnumeric_multinomial) : Ditto.
      	(gnumeric_seriessum) : Ditto.
      
      	* src/functions/fn-financial.c (gnumeric_mirr) : Use the old
      	  behavior of ignoring blanks.
      	(gnumeric_irr) : Ditto.
      	(gnumeric_npv) : Ditto.
      
      	* src/functions/fn-eng.c (gnumeric_improduct) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_imsum) : Ditto.
      
      	* src/func.c (function_iterate_argument_values) : Add ignore_blank
      	  flag.
      
      	* src/collect.c (callback_function_collect) : Support new collect flag
      	  COLLECT_IGNORE_BLANKS.
      	(collect_floats) : change to function_iterate_argument_values.
      	(float_range_function2) : Use COLLECT_IGNORE_BLANKS.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (fill_item_new) : It is legal to have 'D' and 'M'
      	  for day or month fields.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      	For : John N S Gill <bmrg@gofree.indigo.ie>
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Implement support
      	  for double click on autofill button.
      c644804f
  7. 18 Jul, 2000 1 commit
  8. 12 Jul, 2000 1 commit
    • Michael Meeks's avatar
      add bonobo_shutdown. · c9f44cc8
      Michael Meeks authored
      2000-07-12  Michael Meeks  <michael@helixcode.com>
      
      	* src/main.c (gnumeric_main): add bonobo_shutdown.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_destroy): unref not
      	destroy the bonobo object.
      
      	* src/sheet-object-container.c (item_destroyed): ditto.
      
      	* src/sheet-vector.c (sheet_vector_new): ditto.
      
      2000-07-07  Michael Meeks  <michael@helixcode.com>
      
      	* src/file.c (do_save_as, dialog_query_load_file): make check less
      	stringent for fnames if using bonobo.
      
      	* src/functions/fn-financial.c (coupdaybs): add brackets.
      
      	* src/sheet-object.c (sheet_object_stop_editing): NULL the
      	current_object.
      c9f44cc8
  9. 06 Jul, 2000 1 commit
  10. 04 Jul, 2000 1 commit
    • Jukka-Pekka Iivonen's avatar
      Implemented basis 0 for COUPDAYBS. · 9a7d6d65
      Jukka-Pekka Iivonen authored
      2000-07-04  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-financial.c: Implemented basis 0 for COUPDAYBS.
      
      	* src/functions/fn-financial.c (coupdays): Implemented frequency 1
       	for basis 1 (frequences 2 and 4 are still not done).
      9a7d6d65
  11. 03 Jul, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      Implemented `Histogram' tool (mostly). · 275dc86f
      Jukka-Pekka Iivonen authored
      2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/analysis-tools.c: Implemented `Histogram' tool (mostly).
      
      	* src/dialogs/tools.h: Related changes.
      
      	* src/dialogs/analysis-tools.glade,
      	src/dialogs/dialog-analysis-tools.c: Added dialogs for `Histogram'
      	and `Fourier Analysis' tools.  The later is not implemented yet.
      275dc86f
    • Jukka-Pekka Iivonen's avatar
      Implemented COUPNUM(). · 7dc4e081
      Jukka-Pekka Iivonen authored
      2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-financial.c: Implemented COUPNUM().
      
      	* src/analysis-tools.c: Started the implementation of the third
      	anova tool (two-factor with replication).
      
      	* src/dialogs/analysis-tools.glade: Added dialog for the new
      	tool.  Fixed the `Correlation' dialog.
      
      	* src/dialogs/dialog-analysis-tools.c: Added
      	dialog_anova_two_factor_without_r_tool().
      
      	* src/dialogs/tools.h: Related changes.
      
      	* TODO: Added `Data analysis tools' section.
      7dc4e081
  12. 26 Jun, 2000 1 commit
  13. 16 Jun, 2000 1 commit
  14. 09 May, 2000 1 commit
  15. 03 May, 2000 1 commit
    • Jody Goldberg's avatar
      Begin to rationalize support for inverted and 3D references. · de62dd3a
      Jody Goldberg authored
      More renaming and movement name rationalization.
      Some minor improvements in the function wizard.
      
      2000-05-03  Jody Goldberg <jgoldberg@home.com>
      
      	* EvalPosition -> EvalPos
      	  ParsePosition -> ParsePos
      	  new struct RangeRef used in ValueRange
      
      	  eval_pos_init* -> position.[ch]
      	  parse_pos_init*
      	  cell_ref_{get,make}*
      
      	* src/workbook.c : Reorder the toolbar a bit.
      	(workbook_foreach_cell_in_range) : New function.
      	(cb_autofunction) : New routine.
      	(workbook_set_auto_expr) : DO NOT put real code into pre/post
      	  conditions.  It will be removed when debugging is eventually
      	  disabled.
      
      	* src/position.c (range_ref_normalize) : New function.
      
      	* src/ranges.c (range_normalize) : New function.
      
      	* src/expr.c (expr_implicit_intersection) : Use range_ref_normalize.
      
      	* src/eval.c (cell_eval_content) : No need to release the value.
      	  cell_assign_value already does that.
      	(dependency_range_ctor) : Use range_normalize.
      
      	* src/auto-format.c (do_af_suggest) : Use workbook_foreach_cell_in_range.
      
      	* src/cell.c (cell_set_expr_and_value) : link the new expression but
      	  do not queue it for recalc.
      	(cell_assign_value) : Release the old value.
      	(cell_copy) : Init the value to empty.
      
      	* src/func.c (function_iterate_do_value) : Use
      	  workbook_foreach_cell_in_range.
      
      	* src/dialogs/dialog-function-wizard.c (create_description) : Use
      	  a label rather than a text entry widget.  It looks better.
      
      	* src/functions/fn-string.c (gnumeric_expression) : range is already
      	  absolute.
      
      	* src/functions/fn-stat.c (gnumeric_linest) : Handle inverted ranges.
      	(gnumeric_logest) : Ditto.
      
      	* src/functions/fn-information.c (gnumeric_countblank) : Use
      	workbook_foreach_cell_in_range.
      	(gnumeric_{row,column}) : Handle inversions.
      
      	* src/functions/fn-lookup.c (gnumeric_offset) : No need to make
      	  absolute.  The marshaller already did that.
      
      2000-05-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependency_range_ctor) : normalize the range.
      
      	* src/xml-io.c (xml_write_cell_and_position) : Suppress warning.
      
      	* src/pixmaps.h : Add function wizard and equal sign.
      de62dd3a
  16. 29 Apr, 2000 1 commit
  17. 20 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Reorg cell contents and assignment. · bedb925b
      Jody Goldberg authored
      Fixs lots of usability details.
      
      2000-04-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Use the edit_pos as the example
      	  not the top left corner.
      
      	* src/functions/fn-stat.c (gnumeric_ftest) : Use eval_pos_cellref
      	  to help localize the strangeness.
      	(gnumeric_ttest) : Ditto.
      
      	* src/xml-io.c (xml_write_cell_and_position) : If this is an array
      	  expression and we are the top left then add attributes to indicate
      	  size of array.  Ignore the rest of the array.
      	(xml_not_used_old_array_spec) : New routinr to handle the old array format.
      	(xml_cell_set_array_expr) : store an array.
      	(xml_read_cell) : Handle the old and the new array formats.
      
      	* src/workbook.c (workbook_close_if_user_permits) : Accept input
      	  first.
      	(wb_edit_key_pressed) : Handle array formulas here.
      	(workbook_detach_sheet) : Do not recalc all if we are exiting.
      	(workbook_start_editing_at_cursor) : When we start editing an
      	  array formula display just the formula not all the extra {}()[][] crap.
      
      	* src/sheet.c (SheetPrivate) : Add a recompute_spans flag.
      	(sheet_calc_spans) : New routine.
      	(sheet_cell_calc_span) : New routine.
      	(sheet_range_calc_spans) : Renamed and extended from
      	  sheet_cells_update.
      	(sheet_update) : Use sheet_calc_spans when necessary.
      	  Update the location region when the edit_pos changes.
      	(cb_recalc_spans_in_col) : Renamed from cb_collect_cells_in_col.
      	  Recalcs spans directly, no need to collect first.
      	(cb_set_cell_content) : New routine to set expr, or expr_and_value.
      	(sheet_range_set_text) : Use cb_set_cell_content, and remember
      	  chosen format with the cell rather than overriding the assigned
      	  format.
      	(sheet_cell_set_text) : Renamed from sheet_set_text.  Be more specific
      	  about how spans, rendering and the rest are handled.
      	(sheet_cell_set_expr) : New routine.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_load_cell_val) : When displaying an array formula add {%s}()[][].
      	(sheet_redraw_cell_region) : Honour spans when redrawing.
      	(sheet_redraw_partial_row) : New routine.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_is_cell_array) : Use cell_is_array.
      	(sheet_range_splits_array) : Renamed from sheet_check_for_partial_array.
      	(sheet_cell_add_to_hash) :  Do not touch spans at this point.
      	(sheet_cell_insert) : Rename from sheet_cell_add made recalc span
      	  optional.
      	(sheet_cell_new) : New routine that does not touch spans.
      	(sheet_cell_remove) : Made redraw optional.
      	(cb_clear_cell_comments) : Remove the cell if there is no comment.
      	(sheet_clear_region) : Remove the cell if there are no comments or
      	  contents.  Flag an update of the status region.
      
      	* src/sheet-view.c (cb_colrow_resize) : New function.
      	(sheet_view_col_size_changed) : Resize all rows, irrespective of
      	(sheet_view_row_size_changed) : existing cells.
      	(sheet_view_redraw_cell_region) : This no longer honours spans.
      
      	* src/sheet-style.c (sheet_style_attach) : Removed call to redraw.
      	sheet_cells_update : rename to sheet_range_calc_spans and move to
      	  sheet.c.
      
      	* src/sheet-autofill.c (autofill_cell) : Use sheet_cell_set_value
      	  rather than set_text.
      
      	* src/selection.c (sheet_selection_changed_hook) : Delete.
      	(sheet_selection_extend_to) : Update the status region to display the
      	  new size.
      	(sheet_selection_cut) : Use sheet_range_splits_array.
      	(selection_check_for_array) : New routine.
      
      	* src/parser.y : Remove icky array formula parsing that conflicted
      	  with array entries.
      
      	* src/number-match.c (format_match) : Return a Value * rather than a
      	  double.
      
      	* src/mstyle.c (mstyle_set_font_size) : Do not allow font sizes < 1.
      
      	* src/main.c (gnumeric_main) : Do NOT create an empty workbook
      	  then delete it if things are successfully loaded.  This causes
      	  a global recalc.  Instead add a flag to disable exit when the
      	  number of workbooks go to zero.  Then only enable the flag AFTER
      	  we have attempted to load the initial workbooks.
      
      	* src/item-grid.c (item_grid_event) : Update the status_region when
      	  button-1 is release.  It should display the edit_pos.
      
      	* src/gutils.c : Move cell_name, col_name, col_from_name,
      	  parse_cell_name, parse_cell_name_or_range and parse_cell_name_list,
      	  to parse-util.c.
      
      	* src/gnumeric.h  : Add RenderedValue.
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : Move
      	  to parse-util.c
      
      	* src/file.c (workbook_read) : Remove freese thaw usage.
      	  Move call to update AFTER mark clean.
      
      	* src/expr.c (eval_pos_init) : Take a cellpos.
      	(parse_pos_evalpos) : New routine.
      	(eval_pos_cellref) : There is some questionable code scattered in the
      	  functions.  This routing localizes the odd bits for correction.
      
      	* src/eval.c (cell_eval_content) : Use sheet_redraw_cell,
      	  and rendered_value_calc_size.
      	(cell_get_dependencies) : Improve constness.
      
      	* src/corba-sheet.c : Remove the freeze thaw operations.
      	(Sheet_cell_set_formula) : Deleted.
      	(Sheet_range_set_formula) : Delete.
      
      	* src/commands.c : Adjust so that registration of command auto
      	  calls redo.  Add misc checks for splitting arrays.
      
      	* src/clipboard.h : Move the CellCopy types here from cell.h
      
      	* src/clipboard.c (paste_cell) : Use cell_has_expr.
      	  Don't insert the new cell till after its contents are assigned.
      
      	* src/cellspan.c (cell_register_span) : Improve constness.
      	(cell_unregister_span) : Ditto.
      	(row_cell_get_displayed_at) : Delete.
      	(cell_calc_span) : Moved here from cell.c
      
      	* src/dialogs/dialog-stf.glade : Adjust the header background colour
      	  to match the purdy new icon.  Add the icon.
      
      	* src/cell-draw.c : Use the rendered_value routines.
      	  Improve constness.
      
      	* src/analysis-tools.c (set_cell) : Use sheet_cell_fetch.
      
      	*.*
      	    cell_set_* -> sheet_cell_set_
      	    cell_set_*_simple -> cell_set_
      	    Cell::{row,col} -> Cell::{row,col}_info
      	    cell_get_text -> cell_get_entered_text
      	    cell_get_content -> cell_get_entered_text
      	    cell_name -> cell_coord_name
      	    cell_get_formatted_val -> cell_get_rendered_text
      	    cell_get_content -> cell_get_entered_text
      
      	* src/cell.c :
      	(cell_dirty) : Renamed from cell_modified.  Use
      	  sheet_set_dirty.
      	(cell_formula_changed) : Make the queuing of the recalc optional.
      	(cell_cleanout) : Handle union of expression and entered_text,
      	  and remove the rendered value.
      	(cell_copy) : Ditto.
      	(cell_destroy) : handle cell_modified -> cell_dirty.
      	(cell_set_text) : Use parse_text_value_or_expr and store the prefered
      	  format.
      	(cell_set_text_and_value) : New routine.
      	(cell_assign_value) : New routine.
      	(cell_set_value) : Support formats.
      	(cell_set_expr_and_value) : New routine.
      	(cell_set_expr_internal) : Split from cell_set_expr.
      	(cell_set_expr) : Divide to allow for not queuing a recalc.
      	(cell_set_array_formula) : Use cell_set_expr_internal.
      	(cell_is_array) : New utility.
      	(cell_is_partial_array) : New utility.
      	(cell_has_expr) : New utility.
      	(cell_render_value) : Use rendered_value_*.
      	Move all comment routines into cell-comment.[ch].
      
      	* idl/Gnumeric.idl : Remove cell_set_formula, and range_set_formula.
      	  These were identical to set_text.  Made Workbook embeddable.
      bedb925b
  18. 16 Apr, 2000 1 commit
  19. 10 Apr, 2000 1 commit
    • Miguel de Icaza's avatar
      Do not destroy the context here, as it is dereferenced later in the · 30aba440
      Miguel de Icaza authored
      
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* main.c (button_cancel): Do not destroy the context here, as it
      	is dereferenced later in the mainloop.
      
      2000-04-10  Miguel de Icaza  <miguel@gnu.org>
      
      	* Lots of files: replaces utils.h for gutils.h
      
      	* renamed utils.h to gutils.h to avoid the compilation problem on
      	some Unices (yes, fixing the Makefile would have done it, but
      	utils.h was still a lame name;  Of course gutils.h is not any
      	better, but it is now done).
      
      2000-04-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cellspan.c (span_remove): Pretify code.
      30aba440
  20. 09 Apr, 2000 1 commit
  21. 07 Apr, 2000 1 commit
    • Morten Welinder's avatar
      Get rid of COLLECT_IGNORE_POSITIVE and COLLECT_IGNORE_NEGATIVE. · 6b3ee7b5
      Morten Welinder authored
      2000-04-07  Morten Welinder  <terra@diku.dk>
      
      	* src/collect.h (CollectFlags): Get rid of COLLECT_IGNORE_POSITIVE
       	and COLLECT_IGNORE_NEGATIVE.
      
      	* src/collect.c (callback_function_collect): Don't have the above
       	flags.
      
      	* src/functions/fn-financial.c (irr_npv_df): New function.
      	(gnumeric_irr): Use irr_npv_df for better results.
      	(gnumeric_ipmt, gnumeric_ppmt): Fix order of arguments!  (It works
       	so much better that way.)
      	(gnumeric_mirr): Fix formula.
      
      	* src/goal-seek.c (update_data): Spelling fix.
      
      	* src/functions/fn-financial.c (gnumeric_rate, gnumeirc_irr,
       	gnumeric_xirr): Use the supplied guess.
      6b3ee7b5
  22. 01 Apr, 2000 2 commits
    • Jody Goldberg's avatar
    • Jody Goldberg's avatar
      Regenerate. · e6add3d7
      Jody Goldberg authored
      
      2000-04-01  Jody Goldberg <jgoldberg@home.com>
      
      	* docs/C/func.defs, docs/C/functions.sgml : Regenerate.
      
      	* src/functions/*.c : Adjust some 'See Also' tags to point to existing
      	  functions.
      
      	* src/workbook.c (workbook_menu_format_sheet) : Do not use
      	  GNOMEUIINFO_TOGGLEITEM as it requires an xpm, and bonobo crashes
      	  when fed a NULL xpm.
      e6add3d7
  23. 02 Mar, 2000 1 commit
    • Dom Lachowicz's avatar
      Catch Div0 && invalid log() domain. · a681f037
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/functions/fn-eng.c (val_to_base): Catch Div0 && invalid log()
      	domain.
      
      	* src/functions/fn-financial (gnumeric_accrint, gnumeric_recieved),
      	(gnumeric_pricemat): Same
      
      	* src/functions/fn-stat.c (gnumeric_ttest): Ditto
      a681f037
  24. 28 Feb, 2000 1 commit
    • Dom Lachowicz's avatar
      catch DIV0 · 09f59d38
      Dom Lachowicz authored
      2000-02-24  Dom Lachowicz <dominicl@seas.upenn.edu>
      
       	* src/functions/fn-eng.c (convert): catch DIV0
      
       	* src/functions/fn-financial.c (gnumeric_accrint), (gnumeric_accrintm),
       	(gnumeric_intrate), (gnumeric_disc), (gnumeric_db),
       	(gnumeric_ddb), (gnumeric_mirr), (gnumeric_pv): More errors.
      
       	* src/function/fn-math.c (gnumeric_quotient): ditto.
      
       	* src/function/fn-stat.c (callback_function_stat),
      	(callback_function_chitest_theoretical, gnumeric_betadist),
      	(gnumeric_confidence, gnumeric_ftest): ditto.
      09f59d38
  25. 13 Feb, 2000 1 commit
  26. 10 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Remove inclusion of cell.h. Adjust includes to loosen things a bit more. · f6b62c13
      Jody Goldberg authored
      
      2000-02-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.h : Remove inclusion of cell.h.  Adjust includes to loosen
      	  things a bit more.
      
      	* src/colrow.h : Remove margin_a_pt margin_b_pt.  Margins are NOT
      	  scaled by resolution or zoom.
      	  Rename units -> size_pts and store as float rather than double.
      	  Rename pixels-> size_pixels
      	  hard_size -> use gboolean rather than a 1 element bitfield
      
      	* src/style.h : Move the typedefs from here.
      	* src/gnumeric.h : to here.
      
      	*.[ch] : Catch up with the renames and include changes.
      f6b62c13
  27. 17 Jan, 2000 1 commit
    • Morten Welinder's avatar
      New file. New file. · 5f38af0a
      Morten Welinder authored
      2000-01-16  Morten Welinder  <terra@diku.dk>
      
      	* src/datetime.c: New file.
      	* src/datetime.h: New file.
      
      	* src/format.c (split_time): Use datetime functions.
      
      	* src/commands.c (cmd_set_date_time_redo): Do proper rounding.
      
      	* src/functions/fn-date.c: Move date handling to datetime.c
      
      	* src/utils.c: Move date stuff to datetime.c.  Renamed
       	systematically; all callers changed.
      
      	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add datetime.c and
       	datetime.h.
      5f38af0a
  28. 16 Jan, 2000 1 commit
    • Morten Welinder's avatar
      New file. New file. · f9c9e6c0
      Morten Welinder authored
      2000-01-16  Morten Welinder  <terra@diku.dk>
      
      	* src/auto-format.c: New file.
      	* src/auto-format.h: New file.
      
      	* src/formats.c (cell_format_general, cell_format_numbers,
       	cell_format_currency, cell_format_account, cell_format_date,
       	cell_format_time, cell_format_percent, cell_format_fraction,
       	cell_format_science, cell_format_text): Make static.
      
      	* src/cell.c (cell_set_formula): Free the format.  Only set format
       	if the cell was previously blank.
      	(cell_has_assigned_format, cell_get_format): New functions.
      
      	* src/parser.y (gnumeric_expr_parser): Drop const for
       	desired_format.  On error, free the format.
      	(make_string_return): g_strdup the format.
      
      	* src/expr.c (expr_parse_string): Drop const for desired_format.
      
      	* src/functions/fn-financial.c (finance_functions_init): Add
       	result types for auto-format.
      
      	* src/functions/fn-date.c (date_functions_init): Add result types
       	for auto-format.
      
      	* src/functions/fn-math.c (math_functions_init): Add result types
       	for auto-format.
      
      	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add auto-format.c and
       	auto-format.h.
      
      	* src/main.c (gnumeric_main): Init and shutdown for auto_format.
      f9c9e6c0
  29. 14 Jan, 2000 1 commit
    • Jon K Hellan's avatar
      Fix typo · 32946ad8
      Jon K Hellan authored
      2000-01-14  Jon K Hellan  <hellan@acm.org>
      
      	* src/functions/fn-financial.c (help_disc): Fix typo
      
              * src/plugin.c (plugin_load): Include context when calling
      	init_plugin. "data" was freed to early
      32946ad8
  30. 13 Jan, 2000 2 commits
  31. 18 Dec, 1999 2 commits
    • Morten Welinder's avatar
      New skeleton function. · 9e77fdd9
      Morten Welinder authored
      1999-12-18  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-financial.c (gnumeric_yieldmat,
       	gnumeric_yielddisc, gnumeric_oddlyield, gnumeric_oddfyield,
       	gnumeric_oddfprice, gnumeric_oddlprice, gnumeric_yield,
       	gnumeric_price): New skeleton function.
      9e77fdd9
    • Morten Welinder's avatar
      check params better. · de58fdd0
      Morten Welinder authored
      1999-12-18  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-financial.c (gnumeric_tbilleq,
       	gnumeric_tbillyield): check params better.
      de58fdd0
  32. 10 Dec, 1999 1 commit
  33. 16 Nov, 1999 1 commit
  34. 15 Nov, 1999 2 commits