1. 29 Apr, 2000 1 commit
  2. 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
  3. 16 Apr, 2000 1 commit
  4. 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
  5. 09 Apr, 2000 1 commit
  6. 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
  7. 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
  8. 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
  9. 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
  10. 13 Feb, 2000 1 commit
  11. 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
  12. 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
  13. 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
  14. 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
  15. 13 Jan, 2000 2 commits
  16. 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
  17. 10 Dec, 1999 1 commit
  18. 16 Nov, 1999 1 commit
  19. 15 Nov, 1999 2 commits
  20. 14 Sep, 1999 1 commit
    • Morten Welinder's avatar
      Make static. · a7fa8a8c
      Morten Welinder authored
      1999-09-14  Morten Welinder  <terra@diku.dk>
      
      	* src/dialogs/dialog-analysis-tools.c (tools): Make static.
      
      	* src/functions/fn-eng.c (eng_functions_init): Arg fix.
      	* src/functions/fn-string.c (string_functions_init): Ditto.
      	* src/functions/fn-stat.c (stat_functions_init): Ditto.
      	* src/functions/fn-sheet.c (sheet_functions_init): Ditto.
      	* src/functions/fn-misc.c (misc_functions_init): Ditto.
      	* src/functions/fn-math.c (math_functions_init): Ditto.
      	* src/functions/fn-lookup.c (lookup_functions_init): Ditto.
      	* src/functions/fn-logical.c (logical_functions_init): Ditto.
      	* src/functions/fn-information.c (information_functions_init):
       	Ditto.
      	* src/functions/fn-financial.c (finance_functions_init): Ditto.
      	* src/value.c (value_terminate): Ditto.
      
      	* gnumeric.spec.in (Requires): Update gnome-print dependency.
      a7fa8a8c
  21. 13 Sep, 1999 1 commit
    • Jukka-Pekka Iivonen's avatar
      Moved the error functions to information functions file. · b4c1ef87
      Jukka-Pekka Iivonen authored
      1999-09-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-misc.c, src/functions/fn-information.c: Moved the
      	error functions to information functions file.
      
      	* src/functions/fn-math.c, src/function/fn-lookup.c: Moved TRANSPOSE
      	to lookup functions file.
      b4c1ef87
  22. 10 Sep, 1999 1 commit
  23. 09 Sep, 1999 2 commits
  24. 01 Sep, 1999 1 commit
    • Miguel de Icaza's avatar
      Enable the print-preview buttons. · 9ffaadd1
      Miguel de Icaza authored
      
      
      1999-08-31  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/dialogs/dialog-printer-setup.c (do_setup_main_dialog):
      	Enable the print-preview buttons.
      
      	* configure.in (have_bonobo): Test for gnome-print 0.5
      
      	* src/print.c (workbook_print): Adapt to the new gnome-print;
      	Added support for print preview.
      
      	* src/print-preview.c: New file.  Implements the print preview
      	control window.
      
      	* src/functions/fn-financial.c: Add brace to remove ambiguity
      9ffaadd1
  25. 31 Aug, 1999 1 commit
  26. 30 Aug, 1999 1 commit
  27. 26 Aug, 1999 1 commit
  28. 25 Aug, 1999 1 commit
  29. 24 Aug, 1999 1 commit
  30. 23 Aug, 1999 2 commits
  31. 20 Aug, 1999 3 commits
    • Jukka-Pekka Iivonen's avatar
      Made the last two arguments of PMT and PPMT optional. · 09903c87
      Jukka-Pekka Iivonen authored
      1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/fn-financial.c: Made the last two arguments of PMT and PPMT
       	optional.
      09903c87
    • Jukka-Pekka Iivonen's avatar
      DDB() implemented. · 8a6843d0
      Jukka-Pekka Iivonen authored
      1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/fn-financial.c: DDB() implemented.
      8a6843d0
    • Jukka-Pekka Iivonen's avatar
      Removed the last bogus msgid to make it compile again. · 1b2cb619
      Jukka-Pekka Iivonen authored
      1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* po/de.po: Removed the last bogus msgid to make it compile again.
      
      	* src/sheet.c (sheet_insert_object): Added #if ENABLE_BONOBO to
       	make it compile without BONOBO.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_drag_data_get): Ditto.
      
      	* src/collect.[ch]: Wrote collect_dates and collect_dates_value.
      
      	* src/fn-financial.c: DB() and XNPV() implemented.  DOLLARDE() and
       	DOLLARFR() fixed.
      
      	* src/fn-date.c, src/func.h: get_serial_date made public.
      
      	* TODO: Killed the four functions above from the todo list.
      1b2cb619
  32. 11 Aug, 1999 1 commit
    • Jukka-Pekka Iivonen's avatar
      Fixed the rounding of DOLLAR() function. · 2a2c5ee8
      Jukka-Pekka Iivonen authored
      1999-08-11  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/fn-string.c: Fixed the rounding of DOLLAR() function.
      
      	* src/fn-financial.c: Some minor cleaning.
      
      	* src/func.h: Added prototypes for callback_function_make_list.
      
      	* src/fn-stat.c: Fixed PROB() function.
      2a2c5ee8