1. 05 Jul, 2000 1 commit
  2. 04 Jul, 2000 8 commits
    • Jody Goldberg's avatar
      Nat having a guru in place is not an error. · 689545d7
      Jody Goldberg authored
      
      2000-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
      	  guru in place is not an error.
      689545d7
    • Jody Goldberg's avatar
      No need to sheet_update or recalc. cmd_paste_copy handles that. · 6e39158a
      Jody Goldberg authored
      
      2000-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (x_selection_received) : No need to sheet_update or
      	  recalc.  cmd_paste_copy handles that.
      
      	* src/gnumeric-util.c (gnumeric_non_modal_dialog) : New function.
      6e39158a
    • Morten Welinder's avatar
      Update current sheet, not a NULL sheet. · 3b4bfb23
      Morten Welinder authored
      2000-07-04  Morten Welinder  <terra@diku.dk>
      
      	* src/clipboard.c (x_selection_received): Update current sheet,
       	not a NULL sheet.
      3b4bfb23
    • Almer. S. Tigelaar's avatar
      Fix previously made 'unclear' entries. · 449e5868
      Almer. S. Tigelaar authored
      2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* Changelog:
      	Fix previously made 'unclear' entries.
      449e5868
    • Almer. S. Tigelaar's avatar
      Downgrade libtool requirment from 1.3.4 to 1.3.3. because compiling · f1c3b650
      Almer. S. Tigelaar authored
      2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* autogen.sh :
      	Downgrade libtool requirment from 1.3.4 to 1.3.3.
      	because compiling Gnumeric works fine with 1.3.3.
      f1c3b650
    • 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
    • Almer. S. Tigelaar's avatar
      Fix column mangling in fixed width import. · f1ab3f8d
      Almer. S. Tigelaar authored
      2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-fixed-page.c :
      	Fix column mangling in fixed width import.
      
      	* src/dialogs/dialog-stf-format-page.c :
      	Fix USB (==Ugly Selection Bug).
      
      	* src/stf-parse.c, src/stf-parse.h :
      	(stf_parse_options_fixed_autodiscover) : New!
      	Column autodiscovery for fixed width.
      
      	* src/dialogs/dialog-stf.glade :
      	Add clear and autodiscovery buttons
      
      	* src/dialogs/dialog-stf-fixed-page.c :
      	(fixed_page_autodiscover) : Autodiscovery routine.
      	(fixed_page_clear_clicked) : Clear click handler
      	(fixed_page_auto_clicked) : Autodiscovery click handler
      f1ab3f8d
    • Jukka-Pekka Iivonen's avatar
      Changed the third test case of ERROR.TYPE. It seems that XL produces · 4cf35245
      Jukka-Pekka Iivonen authored
      2000-07-04  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* samples/excel/infofuns.xls: Changed the third test case of
       	ERROR.TYPE.  It seems that XL produces #VALUE! error for
       	STDEV("foo") but #DIV/0! error for STDEV(A1) when A1 contains
       	string `foo'.  Cool.
      4cf35245
  3. 03 Jul, 2000 5 commits
    • Morten Welinder's avatar
      Don't add one to the number of lines if the last line is empty. · 332034ff
      Morten Welinder authored
      2000-07-03  Morten Welinder  <terra@diku.dk>
      
      	* src/stf-parse.c (stf_parse_get_rowcount): Don't add one to the
       	number of lines if the last line is empty.
      
      	* src/sheet.c (sheet_cell_set_text): Plug leak.
      
      	* src/workbook-format-toolbar.c
       	(do_sheet_selection_apply_number_format): Avoid double translation
       	of format.
      
      	* src/mstyle.c (mstyle_set_format_text): Renamed from
       	mstyle_set_format.
      	(mstyle_set_format): New function taking a StyleFormat *.
      332034ff
    • Jody Goldberg's avatar
      Begin the Name menu. · 672ded42
      Jody Goldberg authored
      
      2000-07-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Begin the Name menu.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : New function.
      	(workbook_finish_editing) : Use here.
      	(workbook_start_editing_at_cursor) : And here.
      	(workbook_edit_attach_guru) : And here.
      	(workbook_edit_detach_guru) : And here.
      	(workbook_edit_entry_redirect_p) : New function.
      
      	* src/item-grid.c (item_grid_button_1) : If we have a guru up, but are
      	  not selecting a region ignore clicks.
      	(item_grid_event) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without selecting regions.
      
      	* src/expr-name.c (expr_name_list) : Doh!
      
      2000-07-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_rewrite) : Names can contain relative references,
      	  we need to check them too.
      
      	* src/parser.y (exp) : Add production for sheet specific names.
      	  eg Sheet2!name
      
      2000-07-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-string.c (parse_search_strin) : Use g_strdup.
      672ded42
    • 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
    • Jody Goldberg's avatar
      Add production for sheet specific names. eg Sheet2!name · ada6538e
      Jody Goldberg authored
      
      2000-07-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parser.y (exp) : Add production for sheet specific names.
      	  eg Sheet2!name
      ada6538e
  4. 01 Jul, 2000 4 commits
    • Morten Welinder's avatar
      Constify. Handle empty name. (do_save_as): Ditto. (wants_to_overwrite): · 21bd7015
      Morten Welinder authored
      2000-07-01  Morten Welinder  <terra@diku.dk>
      
      	* src/file.c (can_try_save_to): Constify.  Handle empty name.
      	(do_save_as): Ditto.
      	(wants_to_overwrite): Ditto.
      
      2000-07-01  Morten Welinder  <terra@diku.dk>
      
      	* dialog-plugin-manager.c (refresh_right_frame): Use time_t, not
       	long for times.  Make sure to delete the right character ('\n'),
       	not an arbitrary one.
      21bd7015
    • Morten Welinder's avatar
      Guard against empty entry. · 9ba10168
      Morten Welinder authored
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* src/file.c (dialog_query_load_file): Guard against empty entry.
      9ba10168
    • Morten Welinder's avatar
      Plug leak. · 1067a54a
      Morten Welinder authored
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* src/parse-util.c (parse_cell_name_list): Plug leak.
      
      
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* dialog-solver.c (dialog_results): Initialise
       	keep_solver_solution.
      	(dialog_solver): Remove buffer overflow.  Mark string for
       	translation.  Call free_original_values to plug leak.  Remove
       	several bogus casts.
      	(constr_change_click): Remove buffer overflow.
      	(free_original_values): New function.
      
      	* dialog-autocorrect.c (add_fl_clicked): Use g_strdup.
      	(add_in_clicked): Ditto.
      1067a54a
    • Morten Welinder's avatar
      Remove a number of evil fixed-length buffers. · c2479cad
      Morten Welinder authored
      
      
      2000-06-30  Morten Welinder  <terra@diku.dk>
      
      	* src/solver-lp.c (write_constraint_str): Return an allocated
       	string instead of taking an unsized buffer.  Constify.  All
       	callers changed.
      c2479cad
  5. 30 Jun, 2000 5 commits
    • Morten Welinder's avatar
      Get rid of old plugins. · 43074ed0
      Morten Welinder authored
      43074ed0
    • JP Rosevear's avatar
      Use consistent names. · 8bf014a8
      JP Rosevear authored
      2000-06-30  JP Rosevear  <jpr@arcavia.com>
      
      	* src/embeddable-grid.c (EmbeddableGridFactory_init): Use
      consistent names.
      
      	* gnumeric.gnorba: Make server names consistent
      
      	* gnumeric.oafinfo: Make server names consistent
      8bf014a8
    • Jody Goldberg's avatar
      It is possible to have a guru up without editing. · 69d6d36b
      Jody Goldberg authored
      
      2000-06-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without editing.
      	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
      	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
      	(gnumeric_sheet_focus_in) : Enable the input context.
      	(gnumeric_sheet_focus_out) : Disable the input context.
      	(gnumeric_sheet_realize) : Create the input context.
      	(gnumeric_sheet_unrealize) : Destroy the input context.
      	(gnumeric_sheet_class_init) : Register the new methods.
      	(gnumeric_sheet_init) : Init the input context.
      
      	* src/clipboard.c (x_selection_handler) : Adjust to changes in
      	  application_clipboard_clear.
      	(x_selection_clear) : Ditto.
      	* src/cmd-edit.c (cmd_paste) : Ditto.
      	* src/sheet.c (sheet_destroy) : Ditto.
      
      	* src/application.c (application_clipboard_clear) : Make dropping the
      	  selection optional.  This removes the kludges necessary to handle
      	  changing the clipboard when we already have the selection.
      
      	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
      	  fix signatures.
      69d6d36b
    • Jukka-Pekka Iivonen's avatar
      Added FALSE(). · 4beddd14
      Jukka-Pekka Iivonen authored
      2000-06-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-logical.c: Added FALSE().
      4beddd14
    • Jody Goldberg's avatar
      Bug 15796 · 71d65f69
      Jody Goldberg authored
      2000-06-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_set_selected_sheet) : short circuit
      	  clearing the selection if we are in the same workbook, not just the
      	  same sheet.
      71d65f69
  6. 29 Jun, 2000 3 commits
  7. 28 Jun, 2000 4 commits
    • Jody Goldberg's avatar
      Ref the function here. · c3de6cfe
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_tree_new_funcall) : Ref the function here.
      c3de6cfe
    • Jody Goldberg's avatar
      Init the new elements. · ca054481
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/func.c (fn_def_new) : Init the new elements.
      ca054481
    • Jody Goldberg's avatar
      new function. · 93f11589
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-sheet.c (GNUMERIC_VERSION) : new function.
      
      	* src/workbook.c (workbook_do_destroy) : No need to release the
      	  clipboard here.  The Sheet does it for us.
      
      	* src/workbook-format-toolbar.c : Add Fill to the default money
      	  format.
      
      	* src/symbol.c : The only symbols are functions.  The global table
      	  should not be world visible.
      
      	* src/sheet.c (sheet_flag_status_update_cell) : Take a CellPos.
      	(sheet_get_extent_cb) : Use Cell::pos rather than adding an
      	  indirection.
      	(cb_set_cell_content) : Use StyleFormat.
      	(sheet_cell_set_value) : Call sheet_flag_status_update_cell.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_destroy) : Prepare to clear out named expressions.
      	(colrow_move) : Handle changes in cell_relocate signature.
      	(sheet_move_range) : Ditto.
      
      	* src/sheet-autofill.c : Use StyleFormats.
      
      	* src/position.c (parse_pos_init) : Global position are permitted.
      
      	* src/parser.y : Large change.  Do not automaticlly look for function
      	  names or named expressions in the lexer.  The lexer returns STRING
      	  and QUOTED_STRING.  The parser then does the appropriate lookups to
      	  potentially convert to something else.  This allows us to have sheet
      	  names that are the same as functions.
      
      	* src/parse-util.c (cellref_name) : Add flag to optionally disable the
      	  addition of the sheet name.  This is useful when printing
      	  Sheet2!A1:A3 rather than Sheet2!A1:Sheet2!A3.
      
      	* src/number-match.c (format_create_regexp) : Handle fill formats.
      
      	* src/mstyle.c (mstyle_get_border) : Fix constness.
      
      	* src/mathfunc.c (combin, fact) : Moved these here from
      	  functions/fn-math.c
      
      	* src/main.c (gnumeric_main) : No more constants_init, or
      	  global_symbol_init.
      
      	* src/func.c () : Reorg.  Remove some dead code.  Begin adding
      	  workbook local function support, Begin adding volatile, and
      	  semi-volatile functions.  Move the use of SymbolTable internal
      	  in preparation for eliminating it.
      
      	* src/format.c (format_number) : Improve support for pound, yen, and euro.
      	  Remember to produce a number when we hit spacing.
      
      	* src/expr.c : Have ExprFunc refer directly to the FunctionDefinition
      	  We still use a SymbolTable internally, but that will be merged out
      	  later.
      
      	* src/expr-name.c : Major reorg.  Not complete.
      
      	* src/corba-sheet.c (fill_corba_value) : Adjust to changes in
      	  cellref_name signature.
      
      	* src/commands.c (cmd_set_date_time_undo) : No need to manually call
      	  update_cell_flag.  cell_remove, and cell_set_text do that for us.
      	(cmd_set_date_time_redo) : Ditto.
      	  Use StyleFormat.
      
      	* src/clipboard.c (paste_cell) : Take the ExprRewriteInfo as an
      	  argument.
      	(clipboard_paste_region) : Init the ExprRewriteInfo.  We need to do
      	  this here rather than in cell_relocate because we may be moving a
      	  region, not just a single cell, and references within the region
      	  should not be changed.
      
      	* src/cell.c (cell_relocate) : Take the relocation info as an
      	  argument.  Non NULL indicates a request to check bounds.  We can not
      	  do this at the cell level. becuase we may be moving a block rather
      	  than just a single cell, and references into the block should NOT be
      	  rewritten.
      	(cell_set_text_and_value) : Take a StyleFormat.
      	(cell_assign_value) : Ditto.
      	(cell_set_value) : Ditto.
      	(cell_set_expr_internal) : Ditto.
      	(cell_set_expr_unsafe) : Ditto.
      	(cell_set_expr) : Ditto.
      
      	* src/auto-format.c (do_af_suggest) : Expression now refers directly
      	  to functionDef.
      93f11589
    • Miguel de Icaza's avatar
      Add OAF support here. · d0321221
      Miguel de Icaza authored
      2000-06-22  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-object-item.c (sheet_object_item_new): Add OAF support
      	here.
      d0321221
  8. 27 Jun, 2000 2 commits
    • JP Rosevear's avatar
      Undo transposition of find_bound_walk parameters. · c6075c55
      JP Rosevear authored
      2000-06-27  JP Rosevear  <jpr@arcavia.com>
      
      	* src/functions/fn-lookup.c (find_index_bisection): Undo
      	transposition of find_bound_walk parameters.
      
      	* samples/excel/lookfuns2.xls: Add type mismatch tests.
      c6075c55
    • Jukka-Pekka Iivonen's avatar
      Fixed copy-paste bug in documentation. · aa8a7aa8
      Jukka-Pekka Iivonen authored
      2000-06-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-stat.c (help_finv): Fixed copy-paste bug in
       	documentation.
      
      	* src/functions/fn-logical.c: Added TRUE() function since it is
       	also a function in Excel.
      
      	* TODO: Updated the status of the build-in functions.
      aa8a7aa8
  9. 26 Jun, 2000 4 commits
    • JP Rosevear's avatar
      New function that doesn't require an error variable - use only if · 6b68e93d
      JP Rosevear authored
      2000-06-26  JP Rosevear  <jpr@arcavia.com>
      
      	* src/value.c (value_get_as_checked_bool): New function that
      	doesn't require an error variable - use only if confident that
      	the value does actually exist.
      
      	* src/value.h: Add new prototype.
      
      	* src/functions/fn-lookup.c: Clean up cruft
      	(find_type_valid): See if the value is a string or is gnumeric.
      	(find_compare_type_valid): See if the types are comparable.
      	(find_bound_walk): Walk an integer range first in one direction
      	and then in the other direction.
      	(find_index_linear): Do a linear search on a range or array.
      	(find_index_bisection): Do a bisection search on a range or array
      	that also follows excel rules for for handling type mismatches
      	during the search and finding the first and last item matching
      	the search.
      	(gnumeric_vlookup): Use new functions and implement undocumented
      	excel behaviour.
      	(gnumeric_hlookup): ditto
      	(gnumeric_lookup): ditto
      	(gnumeric_match): ditto
      6b68e93d
    • Morten Welinder's avatar
      Don't double translate. Compare the right number of characters. · ef4e3980
      Morten Welinder authored
      2000-06-26  Morten Welinder  <terra@diku.dk>
      
      	* src/format.c (lookup_color): Don't double translate.  Compare
       	the right number of characters.
      ef4e3980
    • Michael Meeks's avatar
      return non-filenames as NULL. · c13cb208
      Michael Meeks authored
      2000-06-26  Michael Meeks  <michael@helixcode.com>
      
      	* src/sheet-object-bonobo.c (get_file_name): return non-filenames
      	as NULL.
      c13cb208
    • Jukka-Pekka Iivonen's avatar
      Implemented COUPDAYS for basis 0, 2, 3, and 4 (basis 1 is still not · b02f342f
      Jukka-Pekka Iivonen authored
      2000-06-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
       	2, 3, and 4 (basis 1 is still not implented).
      b02f342f
  10. 23 Jun, 2000 4 commits
    • Morten Welinder's avatar
      Constify. (set_group_option_signals): Constify. (new_frame): Constify. · 9379ee6e
      Morten Welinder authored
      2000-06-23  Morten Welinder  <terra@diku.dk>
      
      	* src/dialogs/dialog-analysis-tools.c (set_output_option_signals):
       	Constify.
      	(set_group_option_signals): Constify.
      	(new_frame): Constify.
      	(error_in_entry): Constify.
      	(new_dialog): Constify.
      
      	* src/analysis-tools.c: major cleanup.  Eliminate fixed-size
       	buffers that might overflow; constify; plug leaks; improve
       	precision; produce numbers without going through strings.
      	(set_cell_float, set_cell_int, set_cell_na, set_cell_printf): New
       	functions.
      
      	* src/xml-io.c (xml_write_range): Constify.
      	(xml_get_gnome_canvas_points): Mark code as bogus.
      	(xml_set_gnome_canvas_points): Constify.  Improve space checks.
      	(xml_set_value_int): Improve buffer sizing.
      	(xml_set_value_string): Constify.
      	(xml_set_color_value): Improve buffer sizing.
      
      	* src/ranges.c (parse_range): Constify, simplify, optimise, and
       	secure.
      	(range_parse): Fix strict case.
      
      	* src/parse-util.c (parse_cell_name_or_range): Remove bogus cast.
      9379ee6e
    • Jon K Hellan's avatar
      (sheet_object_container_new_bonobo): As suggested by Michael: use the · 57fdcf94
      Jon K Hellan authored
      2000-06-23  Jon K Hellan  <hellan@acm.org>
      
      	(sheet_object_container_new_bonobo): As suggested by Michael:
      	use the accessor function bonobo_client_site_get_embeddable to
      	get the bound embeddable.
      57fdcf94
    • Karl Eichwalder's avatar
      198d2f30
    • Jody Goldberg's avatar
      Revert part of patch 1.48 to item-edit.c · 2512f495
      Jody Goldberg authored
      2000-06-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-edit.c (item_edit_draw_text) : Restore code that was
      	  deleted to handle a cursor on another line, or at the start of the
      	  line.
      2512f495