1. 01 Mar, 2000 14 commits
  2. 29 Feb, 2000 11 commits
    • Jon K Hellan's avatar
      Clarified mapping of arrays. · 3c5bb487
      Jon K Hellan authored
      2000-03-01  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Clarified mapping of arrays.
      
      	* plugins/python/python.c (cell_ref_to_python, range_to_python,
      	cell_ref_from_python): Simplify error handling.
      	(boolean_to_python): Simplify
      	(row_to_python): New function. Converts an array row to
      	Python.
      	(array_to_python): New function. Converts an array to Python.
      	(value_to_python): Handle array.
      	(range_check): Factored out of value_from_python.
      	(range_from_python): Restructure to use value_new_cellrange
      	(array_check): New function. Check if object is array.
      	(value_from_python): Restructure to use the value_new_xxx
      	constructors.
      	(apply): Release values when no longer needed.
      3c5bb487
    • Jody Goldberg's avatar
      A present for Quartic, borders can now print. · a1cea178
      Jody Goldberg authored
      2000-02-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-print.c : Sync with logic in item-bar::draw to add borders
      	  and more correctly handle spanning.
      
      	* src/pattern.c (gnumeric_background_set_pc) : New routine cloned from
      	  gnumeric_background_set_gc.
      
      	* src/border.c (style_border_set_pc_dash) : New routine cloned from
      	  style_border_set_gc_dash.
      	(style_border_set_pc) : New routine cloned from style_border_set_gc.
      	(style_border_print) : New routine cloned from style_border_draw.
      
      	* src/cell-draw.c (cell_draw) : No need to return number of spans.
      a1cea178
    • Jukka-Pekka Iivonen's avatar
      Added initialization of all the Solver parameters. · 25a9e4fd
      Jukka-Pekka Iivonen authored
      2000-02-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/sheet.c (sheet_new): Added initialization of all the Solver
       	parameters.
      
      	* src/xml-io.c: Enabled the solver parameter saving again.
      25a9e4fd
    • Jon K Hellan's avatar
      Great renaming: convert_py_exception_to_string -> exception_to_string · 502eb69c
      Jon K Hellan authored
      2000-02-29  Jon K Hellan  <hellan@acm.org>
      
      	* python.c: Great renaming:
      	convert_py_exception_to_string -> exception_to_string
      	convert_cell_ref_to_python     -> cell_ref_to_python
      	convert_range_to_python        -> range_to_python
      	convert_boolean_to_python      -> boolean_to_python
      	convert_value_to_python        -> value_to_python
      	convert_cell_ref_from_python   -> cell_ref_from_python
      	convert_range_from_python      -> range_from_python
      	convert_python_to_value        -> value_from_python
      	gnumeric_apply                 -> apply
      	gnumeric_register_function     -> register_function
      502eb69c
    • Jon K Hellan's avatar
      New function. Make the window a child of the workbook in the command · 8f17d286
      Jon K Hellan authored
      2000-02-29  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.[ch] (gnumeric_set_transient): New
      	function. Make the window a child of the workbook in the command
      	context, if there is one.
      	(gnumeric_editable_enters): New function. Like
      	gnome_dialog_editable_enters, but not just for GnomeDialogs.
      
      	* src/gnumeric-util.c (gnumeric_dialog_run): Remove incorrect
      	comment.
      	(gnumeric_dialog_show): Fix typo.
      8f17d286
    • Jon K Hellan's avatar
      The dialog moved when "Apply" was pressed. This was an unavoidable · c87ec5f1
      Jon K Hellan authored
      2000-02-29  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-cell-format.c: The dialog moved when "Apply"
      	was pressed. This was an unavoidable consequence of using
      	gnome_dialog_run. We switch to a purely callback based design -
      	this module was almost there, anyway. And we can make the dialog
      	modeless if we wish.
      	(cb_fmt_dialog_dialog_destroy): New function. Free resources upon
      	"destroy". This gets called whenever "OK" or "WM close" are
      	pressed.
      	(fmt_dialog_impl): Connect "destroy" handler. Replace
      	gnome_dialog_run (recursive main loop) with gnumeric_dialog_show
      	(no such thing). Set modal explicitly.
      	(dialog_cell_format): Remove initial comment which these changes
      	made incorrect. Allocate state record on heap instead of stack.
      	Move resource deallocation to cb_fmt_dialog_destroy.
      c87ec5f1
    • Kjartan Maraas's avatar
      Updated Norwegian translation. · d06eae16
      Kjartan Maraas authored
      2000-02-28  Kjartan Maraas  <kmaraas@online.no>
      
      	* no.po: Updated Norwegian translation.
      d06eae16
    • Morten Welinder's avatar
      Claim some stuff. · 0e1a9a2b
      Morten Welinder authored
      0e1a9a2b
    • Jody Goldberg's avatar
      Bug 6683. normalize ranges. · 528ce58d
      Jody Goldberg authored
      Bug 6683.
      normalize ranges.
      528ce58d
    • Morten Welinder's avatar
      Use floor. (datetime_serial_raw_to_seconds): Ditto. · cfe3a813
      Morten Welinder authored
      2000-02-28  Morten Welinder  <terra@diku.dk>
      
      	* src/datetime.c (datetime_serial_raw_to_serial): Use floor.
      	(datetime_serial_raw_to_seconds): Ditto.
      
      	* src/format.c (format_number): Keep the sign when considering
       	dates.
      cfe3a813
    • Morten Welinder's avatar
      Handle special error situation without issueing a bogus message. · 7a7c613c
      Morten Welinder authored
      2000-02-28  Morten Welinder  <terra@diku.dk>
      
      	* src/parser.y (unregister_allocation): Handle special error
       	situation without issueing a bogus message.
      7a7c613c
  3. 28 Feb, 2000 13 commits
    • Jody Goldberg's avatar
      update · f8162ca7
      Jody Goldberg authored
      f8162ca7
    • Jody Goldberg's avatar
      Stupid typo, playing havoc with cursor movement. · bc58e19d
      Jody Goldberg authored
      
      Stupid typo, playing havoc with cursor movement.
      
      2000-02-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_walk_step) : Fix typo.
      bc58e19d
    • Miguel de Icaza's avatar
      Memory leak fix. Found by Morten. · c3b3bd2d
      Miguel de Icaza authored
      2000-02-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/widgets/widget-color-combo.c (color_combo_finalize): Memory
      	leak fix.  Found by Morten.
      c3b3bd2d
    • Jon Kåre Hellan's avatar
      *** empty log message *** · d2df84bd
      Jon Kåre Hellan authored
      d2df84bd
    • Jon K Hellan's avatar
      GnumericError: Define (convert_py_exception_to_string): Do not decorate · f9139f66
      Jon K Hellan authored
      2000-02-28  Jon K Hellan  <hellan@acm.org>
      
      	* python.c: GnumericError: Define
      	(convert_py_exception_to_string): Do not decorate the value string
      	of GnumericError - it represents a VALUE_ERROR we have been returned.
      	(gnumeric_apply): Raise GnumericError if function_call_with_values
      	returned error.
      	(initgnumeric): Add GnumericError exception class.
      f9139f66
    • Jody Goldberg's avatar
      - Select All and ctrl-A should be the same. · 11252b02
      Jody Goldberg authored
      - cursor movement should accept pending input.
      11252b02
    • Jody Goldberg's avatar
      Don't walk the entire sheet when moving single cells, stay within · 6dca3ac1
      Jody Goldberg authored
      the current row/col when moving vert/horiz.
      
      S-Tab should move left.
      
      2000-02-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_walk_step) : Don't wrap when moving
      	  the singleton cursor.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Shift tab
      	  should be horizonzontal.
      6dca3ac1
    • Jody Goldberg's avatar
      Improve the handling of backgrounds and selection in the presence of · bb5371b7
      Jody Goldberg authored
      
      Improve the handling of backgrounds and selection
      in the presence of spanning columns.
      
      Improve borders.  Somewhat more correct handling of double lined borders.
      Still mostly wrong, but its a start.
      
      2000-02-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.h : Move FunctionDefinition to
      	* src/gnumeric.h : here.
      
      	* src/cellspan.c (col_hash) : Use GPOINTER_TO_INT.
      	(col_compare) : Ditto.
      	(row_init_span) : Delete.
      	(free_hash_value) : Renamed from free_hash_key.
      	(cell_register_span) : Register all cells in a span, malloc a
      	  CellSpanInfo to store a descriptor about the first and last cols.
      	(assemble_unregister_span_list) : Delete.
      	(span_remove) : New function for use by g_hash_table_foreach_remove.
      	(cell_unregister_span) : Use g_hash_table_foreach_remove.
      	(row_cell_get_displayed_at) : Adjust to new descriptor.
      	(row_span_get) : New function.
      
      	* src/cell.c (cell_calculate_span) : Renamed from cell_get_span.
      
      	* src/cell-draw.c (cell_draw) : Do not draw backgrounds here.
      	  Use new CellSpanInfo to avoid recomputing spans every time.
      	(cell_is_blank) : Remove hack about treating empty strings as empty.
      
      	* src/cellspan.h : New file.  Move span decls here.
      
      	* src/item-grid.c (item_grid_draw) : Rework to correctly handle
      	  backgrounds and borders for spanning columns.
      
      2000-02-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_is_blank) : Update.
      
      	* src/border.c (style_border_draw) : Make somewhat more correct.
      	  Still broken for non-top-left corners.
      
      	* src/item-grid.c (item_grid_draw_border) : Ditto.
      	(item_grid_draw_background) : Rename from item_grid_paint_empty_cell
      	  handle spans more cleanly.
      	(item_grid_draw_cell) : handle conditionals for displaying contents here.
      	  Remove all handling of backgrounds.
      bb5371b7
    • Michael Meeks's avatar
      disable solver xml write for now. · 2564cc1e
      Michael Meeks authored
      2564cc1e
    • Jukka-Pekka Iivonen's avatar
      Bug fix. Single cell constraints can be added again. · 926f1188
      Jukka-Pekka Iivonen authored
      2000-02-28  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/utils.c (parse_cell_name_or_range): Bug fix.  Single cell
      	constraints can be added again.
      926f1188
    • Jukka-Pekka Iivonen's avatar
      The Solver can now solve the negative variables too. · 02e2eb17
      Jukka-Pekka Iivonen authored
      2000-02-28  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/solver-lp.c (count_dimensions, make_solver_arrays,
      	solver_affine_scaling, solver_branch_and_bound): The Solver can
      	now solve the negative variables too.
      
      	* src/dialogs/dialog-solver.c (dialog_solver_options): Made the
      	`Assume non-negative' to be sensitive.
      02e2eb17
    • Morten Welinder's avatar
    • 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
  4. 27 Feb, 2000 1 commit
  5. 26 Feb, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      html.c · 8a3c31de
      Almer. S. Tigelaar authored
      2000-02-26  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* html.c
      	* (html_write_cell_str, html_write_cell32, html_write_cell40) :
      	* (html_write_wb_html32, html_write_wb_html40) :
      	Adjusted so it now uses sheet_style_computer and puts <BR>
      	tags in empty cells, this way the cells will _always_ render
      	in a browser so the 'style' information is not lost for
      	empty cells.
      8a3c31de