1. 31 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      New base class for Cells. Convert everything to access the elements that · 8b5866fb
      Jody Goldberg authored
      2000-08-30  Jody Goldberg <jgoldberg@home.com>
      	* dependent.[ch] : New base class for Cells.
      	  Convert everything to access the elements that are now
      	  in the cell's base.
      	* Makefile.am : Because of XL we need to build plugins before src.
      	  That will need changing.
      	* src/func.c (function_marshal_arg) : Use expr_array_intersection.
      	* src/expr.c (eval_expr_real) : Do implicit conversions from strings
      	  to numbers if possible.
      	  Access the first element of an array.  NOTE : This is WRONG
      	  We need to implement array expression behavior some day.
      	(expr_array_intersection) : New routine.
  2. 15 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Set the size after initializing everything else. · b9075446
      Jody Goldberg authored
      2000-08-15  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook.c (workbook_new) : Set the size after initializing
      	  everything else.
      	* src/workbook-view.c (workbook_view_set_size) : size the notebook,
      	  not the toplevel window.
      	* src/colrow.h (ROW_INTERNAL_HEIGHT) : Delete.
      	* configure.in : CVS bonobo is 0.18.
  3. 12 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Add graph-guru for bonobo enabled builds. · c665e798
      Jody Goldberg authored
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      	* src/dialogs/Makefile.am : Add graph-guru for bonobo enabled builds.
      	* src/dialogs/formula-guru.glade (rolled_label) : Don't fill.
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      	* src/functions/fn-math.c (gnumeric_g_product) : Ignore blanks.
      	(gnumeric_product) : Ditto.
      	(gnumeric_sumsq) : Ditto.
      	(gnumeric_suma) : Ditto.
      	(gnumeric_sum) : Ditto.
      	(gnumeric_gcd) : Ditto.
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      	* src/corba-args.c : Remove support for Gnorba. Die Pig Die !
      	* src/corba-workbook-factory.c : Ditto.
      	* src/embeddable-grid.c : Ditto.
      	* src/sheet-object.c : Ditto.
      	* src/workbook.c : Ditto.
      	* src/cell-comment.c (cell_comment_realize) : Use Cell::pos rather
      	  than Cell::{row,col}_info->pos.
      	(cell_comment_reposition) : Ditto.
      	* src/cell-draw.c (cell_draw) : Ditto.
      	* src/cellspan.c (cell_register_span) : Ditto.
      	(cell_calc_span) : Ditto.
      	* src/clipboard.c (paste_cell_with_operation) : Ditto.
      	(paste_cell) : Ditto.
      	* src/cmd-edit.c (cb_compare_deps) : Ditto.
      	(cmd_select_cur_depends) : Ditto.
      	* src/eval.c (dependency_range_ctor) : Ditto.
      	(handle_cell_single_dep) : Ditto.
      	(handle_cell_range_deps) : Ditto.
      	(cell_get_range_dependencies) : Ditto.
      	(cell_get_dependencies) : Ditto.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      	* src/parse-util.c (cell_name) : Ditto.
      	* src/position.c (eval_pos_init_cell) : Ditto.
      	* src/print-cell.c (print_cell) : Ditto.
      	(print_cell_range) : Ditto.
      	* src/sheet-autofill.c (autofill_cell) : Ditto.
      	* src/sheet-vector.c (sheet_vectors_cell_changed) : Ditto.
      	* src/sheet.c (sheet_cell_calc_span) : Ditto.
      	(sheet_reposition_comments) : Ditto.
      	(sheet_get_extent_cb) : Ditto.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_cell_add_to_hash) : Ditto.
      	(sheet_cell_insert) : Ditto.
      	(sheet_cell_new) : Ditto.
      	(sheet_cell_remove_from_hash) : Ditto.
      	(sheet_move_range) : Ditto.
      	* src/solver-lp.c (solver_simplex) : Ditto.
      	(make_solver_arrays) : Ditto.
      	(solver_affine_scaling) : Ditto.
      	(make_int_array) : Ditto.
      	(solver_branch_and_bound) : Ditto.
      	(solver_answer_report) : Ditto.
      	(solver_sensitivity_report) : Ditto.
      	* src/xml-io.c (xml_write_cell) : Ditto.
      	(xml_cell_set_array_expr) : Ditto.
      	(xml_write_solver) : Ditto.
      	* src/dialogs/dialog-solver.c (check_int_constraints) : Ditto.
      	* src/about.c : Move the ABOUT_KEY here from.
      	* src/dialogs/dialogs.h : here.  Also, add dialog_graph_guru.
      	* src/Makefile.am : Remove wizard.h and the seperate wizard library.
  4. 05 Jul, 2000 2 commits
    • Jody Goldberg's avatar
      Remove -lglade-bonobo for now. · bd9fc8e8
      Jody Goldberg authored
      2000-07-05  Jody Goldberg <jgoldberg@home.com>
      	* src/Makefile.am (EXTRA_DIST) : Remove -lglade-bonobo for now.
      	* src/main.c (gnumeric_main) : glade_bonobo_init -> glade_gnome_init
    • Michael Meeks's avatar
      implement. (write_mem_to_storage): implement. (create_xml_bonobo_stream): · ed8df623
      Michael Meeks authored
      2000-07-05  Michael Meeks  <michael@helixcode.com>
      	* src/bonobo-io.c (write_stream_to_storage): implement.
      	(write_mem_to_storage): implement.
      	(create_xml_bonobo_stream): create.
      	(hack_xmlSAXParseFile): copy from libxml.
      	* src/sheet-object.c (sheet_object_drop_file): update; this should
      	be totaly re-written.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_load): clean up.
      	* src/sheet-object-item.c (sheet_object_item_new): remove,
      	redundant; re-tool calls to sheet_object_container_new_object.
      	* src/sheet-object.c (create_object): rename the one use.
      	* src/sheet-object-container.c (sheet_object_container_new_from_object_id):
      	remove activation logic.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_destroy): free
      	object_id. (sheet_object_bonobo_construct): do activation in here.
      	(sheet_object_bonobo_get_object_iid): implement.
      	* src/sheet-object-container.c (sheet_object_container_new_from_goadid):
      	rename to (sheet_object_container_new_object): this.
      	* src/xml-io.c (xml_write_sheet_object): add bonobo io.
      	(xml_read_sheet_object): add bonobo and re-scope vars.
      	(xml_parse_ctx_new_full): implement.
      	* src/main.c (gnumeric_main): add bonobo_io_init.
      	* src/xml-io.c (xml_parse_ctx_init): implement,
      	(xml_parse_ctx_shutdown): ditto.
      	(xml_workbook_write): moved
      	(gnumeric_xml_write_workbook): s/parse_xml_context_t/XmlParseContext/
      	* src/xml-io.c (xml_workbook_read): publicise.
      	(xml_workbook_write): ditto.
      2000-07-04  Michael Meeks  <michael@helixcode.com>
      	* src/about.c (dialog_about): sort alphabeticaly.
  5. 28 Jun, 2000 1 commit
  6. 13 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      - Initial version of formula guru · 489a4201
      Jody Goldberg authored
      - Some extensions to auto-fill
      - Slight reorg of Bonobo support.
      2000-06-13  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
      	  the BonoboObject in the ENABLED_BONOBO case.
      	* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
      	  that may be up.
      	(entry_changed) : Do not autocomplete expressions.  Gurus play havoc
      	  with this.
      	(workbook_edit_auto_complete_init) : Delete unused.
      	(workbook_get_entry_logical) : New function.
      	(workbook_set_entry) : New function.
      	(workbook_edit_attach_guru) : New function.
      	(workbook_edit_detach_guru) : New function.
      	(workbook_editing_expr) : When a guru is up we are always editing an
      	  expression. TODO, tune this.
      	(workbook_edit_load_value) : Moved from Sheet, and renamed from
      	(workbook_edit_init) : Handle gurus.
      	* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
      	* src/sheet-vector.c (sheet_vector_new) : The vectors are
      	  BonoboObjects, destroy them correctly.
      	(sheet_vectors_shutdown) : Ditto.
      	* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
      	(sheet_object_insert) : Renamed from sheet_insert_object and moved
      	  from sheet.c
      	* src/pixmaps.h : Enable the Formula guru.
      	* src/parser.y (arg_list) : Improve handling of empty arguments.
      	* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
      	(selection_insert_selection_string) : Ditto.
      	(start_cell_selection_at) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.
      	* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
      	* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
      	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
      	* src/history.c (history_menu_item_create) : Ditto.
      	(history_menu_locate_separator) : Ditto.
      	(history_menu_insert_separator) : Ditto.
      	(history_menu_remove_items) : Ditto.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
      	* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
      	* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
      	(change_menu_label) : Ditto.
      	* src/file.c (workbook_try_read) : Workbook is now always just a
      	(workbook_import) : Ditto.
      	* src/formats.c (cell_format_date) : Add some new formats.
      	* src/format.c (find_decimal_char) : Restore constness.
      	(format_remove_decimal) : Fix the const correctly.
      	* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
      2000-06-12  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-autofill.c (fill_item_destroy) : Free the format.
      	(fill_item_new) : Handle filling by month and year.
      	(autofill_compute_delta) : Ditto.
      	(autofill_cell) : Ditto.
      	* src/formats.c (cell_format_is_number) : currently handle the single
      	  character currencies.
      	(cell_format_date) : year only formats.
      2000-06-10  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
  7. 05 Jun, 2000 1 commit
    • Miguel de Icaza's avatar
      This adds autocompletion. · aa133206
      Miguel de Icaza authored
      It is missing one forced repaint that makes the stuff look slower
      than it is.
      2000-06-05  Miguel de Icaza  <miguel@helixcode.com>
      	* src/gnumeric-util.c (gtk_radio_button_select): Add
      	precondition.  Chema found this, but we should add the proper
      	check at an upper layer.
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p):
      	Change prototype to use GtkEntry instead of GtkWidget.
      	* src/workbook-edit.c (workbook_finish_editing): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(entry_changed): ditto.
      	(workbook_start_editing_at_cursor): ditto.
      	(workbook_editing_expr): ditto.
      	(workbook_edit_get_display_text): ditto.
      	* src/workbook.c (autosum_cmd): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(do_focus_sheet): ditto.
      	(wb_edit_key_pressed): ditto.
      	(workbook_setup_edit_area): ditto.
      	* src/workbook.c (cb_autofunction): ditto.
      	* src/workbook-private.h: Make edit_line a structure to keep track
      	of the entry and its signal changed.  Also take a chance to change
      	this to the self descriptive GtkEntry instead of GtkWidget.
      	* src/commands.c (cmd_set_text): Added const here.
      	* src/workbook.c (workbook_do_destroy): Add destroy notification
      	for the editing facilities
      	* src/item-edit.c (item_edit_set_arg): removed auto complete code
      	from here.
      2000-06-03  Miguel de Icaza  <miguel@helixcode.com>
      	* src/workbook-edit.c, src/workbook-edit.h: New files.  Moved
      	workbook_start_editing_at_cursor, workbook_finish_editing,
      	workbook_get_entry, workbook_editing_expr here.  Killed
      	workbook_set_entry prototype.
      	* src/workbook.c (workbook_start_editing_at_cursor): Moved
      	autocomplete here.
      	* src/workbook.h: Removed warning.  #include <config.h> is a
      	mandatory header file in every C file.  A correct approach is to
      	use something like Nautilus' perl script that verifies the
      	presence of config.h as the first include.
      	* src/workbook.c (close_cmd): Removed ulgy (void)
      	(quit_cmd): More.
      	(sheet_action_rename_sheet): more.
      	(workbook_finish_editing): Fixed more ugly.
      	* src/gutils.c (gnumeric_sys_glade_dir): Fixed ugly indentation.
      	(gnumeric_usr_plugin_dir): More ugly stuff fixed.
      	(gnumeric_usr_dir): Removed ugly const.
      2000-05-02  Miguel de Icaza  <miguel@helixcode.com>
      	* src/item-edit.h: New ::entry member, auto_max_size, auto_complete_text
      	* src/item-edit.c (item_edit_draw_text): Take an ItemEdit as a
      	first argument, and reduce the cluttered arguments we were
      	(item_edit_draw): Cursor_pos is now only the position, it is not
      	overloaded with show/hide cursor as well.
      	(item_edit_draw_text): Update acoordingly.
      	(item_edit_draw_cursor): This new routine paints the cursor only.
      	(item_edit_set_arg): Add a new signal handler for "activated" on
      	the entry
      	(cb_item_edit_cursor_blink): Removed FIXME.
      	(item_edit_set_arg): Init item_edit->entry.  I am pretty sure this
      	existed in the past.
      2000-05-01  Miguel de Icaza  <miguel@helixcode.com>
      	* src/item-edit.c (item_edit_draw): Pass auto-completing flag.
      	(item_edit_draw_text): Invert auto-complete region.
      	(item_edit_set_arg): Init auto_completing here.
      	(item_edit_complete_notify): Set the entry from the
      	auto-completing data here.
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      	* dialog-function-wizard.c (dialog_function_druid): Use
      	workbook_get_entry here.
      	* dialog-printer-setup.c (spin_button_adapt_to_unit): Added
      	g_assert_not_reached ();
  8. 01 Jun, 2000 1 commit
    • Michael Meeks's avatar
      kill libole2 hack. · b82df064
      Michael Meeks authored
      2000-05-30  Michael Meeks  <michael@helixcode.com>
      	* src/Makefile.am (gnumeric_libs): kill libole2 hack.
      	* configure.in: kill CONFIG_SUBDIRS for libole2.
  9. 22 May, 2000 1 commit
    • Jody Goldberg's avatar
      New files. · 77d84d6c
      Jody Goldberg authored
      2000-05-21  Jody Goldberg <jgoldberg@home.com>
      	* src/cmd-edit.[ch] : New files.
      	* src/workbook.c (cb_edit_select_*) : Use the cmd-edit utilities.
      	Make a 'select' sub menu of edit.
      	* src/sheet.c : Use the newly added CellPos in each Cell rather than
      	  mallocing a seperate struct.
      	* src/selection.c (sheet_select_all) : Move.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Make the
      	  selection commands accelerators.
  10. 18 May, 2000 1 commit
  11. 10 May, 2000 2 commits
    • Michael Meeks's avatar
      Depend on a separate libole2; · 777d750e
      Michael Meeks authored
      2000-05-11  Michael Meeks  <michael@helixcode.com>
      	* src/Makefile.am (gnumeric_libs): kill libole2 libs kludge.
      2000-05-10  Michael Meeks  <michael@helixcode.com>
      	* configure.in: Add check for libole2 and add to gnome-config.
    • Jacob Berkman's avatar
      check for using window icons · 0c100069
      Jacob Berkman authored
      2000-05-10  Jacob Berkman  <jacob@helixcode.com>
      	* configure.in (use_wm_icons): check for using window icons
      	* src/main.c (gnumeric_main): use an icon if available in
      	* src/Makefile.am (INCLUDES): add a -D for the icon dir
  12. 09 May, 2000 1 commit
    • Jody Goldberg's avatar
      Mark the changed cell for status update. · 912ae5b5
      Jody Goldberg authored
      2000-05-09  Jody Goldberg <jgoldberg@home.com>
      	* src/commands.c (cmd_set_date_time_{undo,redo}) : Mark the changed cell for
      	  status update.
      	* src/Makefile.am (INCLUDES) : Remove extra '/' at end.
      	* src/workbook.c (insert_current_time_cmd) : fix cut-n-paste-o.
  13. 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]
      	* 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
      	* 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
      	* 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
      	* src/functions/fn-stat.c (gnumeric_linest) : Handle inverted ranges.
      	(gnumeric_logest) : Ditto.
      	* src/functions/fn-information.c (gnumeric_countblank) : Use
      	(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.
  14. 01 May, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Export GNUMERIC_VERSION · 761d1ee7
      Almer. S. Tigelaar authored
      2000-05-01  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* configure.in:
      	* acconfig.h:
      	Undefine GNUMERIC_VERSION
      	* */Makefile.am:
      	Removed -DGNUMERIC_VERSION, now located in config.h
      	* src/functions/Makefile.am, src/dialogs/Makefile.am :
      	VERSION changed to gnumeric_version.
      	* plugins/excel/libole2/Makefile.am, plugins/guile/Makefile.am :
      	* plugins/perl/Makefile.am :
  15. 29 Apr, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      New, low-level stf-export code. · 8e16da38
      Almer. S. Tigelaar authored
      2000-04-29  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/stf-export.[ch] : New,
      	low-level stf-export code.
      	* src/dialogs/dialog-stf-export.glade : New,
      	stf export dialog.
      	* src/dialogs/dialog-stf-export.glade.h : New,
      	stf export dialog strings.
      	* src/dialogs/dialog-stf-export.[ch] : New,
      	top-level controlling code for the stf export dialog.
      	* src/dialogs/dialog-stf-export-private.h : New,
      	private declarations for the stf exporter.
      	* src/dialogs/dialog-stf-export-format-page.c : New,
      	controlling code for the format page of the stf export dialog
      	* src/dialogs/dialog-stf-export-sheet-page.c : New,
      	controlling code for the sheet page of the stf export dialog
      	* src/Makefile.am : Updated to include new files
      	* src/stf.c : Now also provides export for csv files
      	using the new stf export dialog
      	* src/dialogs/Makefile.am : Updated to include new files
  16. 28 Apr, 2000 1 commit
  17. 27 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Improve versioning. Fix a few bugs. · 2c8b64d0
      Jody Goldberg authored
      Improve versioning.
      Fix a few bugs.
      2000-04-26  Jody Goldberg <jgoldberg@home.com>
      	* src/command-context.c (gnumeric_error_sys_err) : New function.
      	* src/command-context-gui.c (ccg_error_sys_err) : Support it.
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
      	* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
      	(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
      	* src/plugin.c (load_all_plugins) : Use
      	  gnumeric_usr_plugin_dir, and  gnumeric_sys_plugin_dir.
      	* src/item-edit.c (point_is_inside_range) : Handle non-singleton
      	  expr start characters.
      2000-04-25  Jody Goldberg <jgoldberg@home.com>
      	* *.c : glade_new_xml -> gnumeric_glade_new_xml
      	  Localize GNUMERIC_GLADEDIR so that plugins can use it too.
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
      	* */Makefile.am : Set 'DATADIR' rather than GLADEDIR.  And version
      	  the glade file the same way the plugins are set.  This should
      	  probably expand to include architecture akin to gcc.
      	* src/widgets/widget-editable-label.c (el_button_press_event) :
      	  Clicking in another window accepts the changes.  Once we have
      	  reliquished our grab push the button event back on the queue
      	  so that it can be forwarded on to the appropriate recipient (9007).
      	* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
      	  strings which could start an expression.
  18. 26 Apr, 2000 1 commit
    • Miguel de Icaza's avatar
      Call complete_start here; Pass the text to scan_for_range now. · 39650656
      Miguel de Icaza authored
      2000-04-25  Miguel de Icaza  <miguel@helixcode.com>
      	* src/item-edit.c (entry_changed): Call complete_start here;  Pass
      	the text to scan_for_range now.
      	(item_edit_set_arg): Create the complete_sheet object here.
      	(item_edit_destroy): kill it here.
      	* src/complete.c: New file.  Implements the abstract
      	auto-completion class;
      	* src/complete-sheet.c: New file.  Implements the sheet-based
      	completion code.
      	* src/item-edit.c (item_edit_draw_text): Take a GtkStyle instead
      	of a GdkGC.
      	* src/item-grid.c (create_popup_menu): Remove unrequired code.
  19. 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
      	(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_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
      	(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
      	(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
      	* 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
      	* 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
      	(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
      	(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.
  20. 15 Apr, 2000 1 commit
    • Morten Welinder's avatar
      Delete print-preview.[ch] · a8fd80ae
      Morten Welinder authored
      2000-04-15  Morten Welinder  <terra@diku.dk>
      	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Delete
      	* src/print.c: Kill many #includes.
  21. 14 Apr, 2000 1 commit
    • Michael Meeks's avatar
      Make component printing, at least in the non-scissored case work. · 8a4b4824
      Michael Meeks authored
      2000-04-14  Michael Meeks  <michael@helixcode.com>
      	* src/print.c (print_job_info_get): setup sheet object list.
      	(print_job_info_destroy): check it. (print_sheet_range): build a list of
      	pre-printed sheet objects. (print_page_object): updated.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_print): simplify muchly
      	to new API.
  22. 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.
  23. 09 Apr, 2000 1 commit
    • Michael Meeks's avatar
      More print work; #ifdef out all bonobo-print work. · 42e62f53
      Michael Meeks authored
      More print work;
      #ifdef out all bonobo-print work.
      2000-04-09  Michael Meeks  <michael@helixcode.com>
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_class_init): add print
      	* src/sheet-object-graphic.c (sheet_object_graphic_print): implement.
      	(sheet_object_graphic_class_init): setup print method
      	* src/print.c (print_page_object): implement.
      	(print_page): add hook.
      	* src/sheet-object.c (sheet_object_print): implement.
      	(sheet_object_class_init): setup default print behavior.
      	* src/sheet-object.h: Add virtual method 'print'
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page):
      	free list after creation. (fmt_dialog_impl, cb_notebook_destroy):
      	pass the signal id without using the FormatState that is free'd by
      	the time we destroy the notebook.
  24. 26 Mar, 2000 4 commits
  25. 18 Mar, 2000 1 commit
  26. 12 Mar, 2000 2 commits
    • JP Rosevear's avatar
      Reflect new location of idl. · c20b930e
      JP Rosevear authored
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      	* src/Makefile.am: Reflect new location of idl.
      2000-03-12  JP Rosevear  <jpr@arcavia.com>
      	* graphic-type.c: Reflect the fact that the idl dir is now in
      	the INCLUDEs.
      	* graphic-context.h: Reflect the fact that the idl dir is now
      	in the INCLUDEs.
      	* Makefile.am: Reflect new location of idl.
    • Miguel de Icaza's avatar
      Cleaned Makefile. · c2c4899e
      Miguel de Icaza authored
      2000-03-11  Miguel de Icaza  <miguel@helixcode.com>
      	* src/Makefile.am: Cleaned Makefile.
      	* graph/Makefile.am: ditto.
      	* graph/sample.c: fix
      	* idl/Makefile.am, idl/Graph.idl, idl/Gnumeric.idl: Moved IDL
      	files here, and create the libGnumeric.a and libGraph.a libraries
  27. 10 Mar, 2000 1 commit
  28. 08 Mar, 2000 1 commit
  29. 06 Mar, 2000 1 commit
  30. 01 Mar, 2000 1 commit
    • Miguel de Icaza's avatar
      Notify the sheet that the cell changed using sheet_cell_changed. · eec41abe
      Miguel de Icaza authored
      2000-02-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* src/cell.c (cell_content_changed): Notify the sheet that the
      	cell changed using sheet_cell_changed.
      	* src/sheet-vector.c: New file.  Implements the Gnumeric:Vector
      	interface (and supports non-contiguous ranges)
      	* src/sheet.c (sheet_destroy): free private structure.
      	(sheet_new): init private structure.
      	(sheet_cell_changed): New function.
      	* src/sheet-private.h: New file.
      	* src/sheet.h: Sheet structure includes SheetPrivate field now.
  31. 28 Feb, 2000 1 commit
    • 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.
  32. 25 Feb, 2000 2 commits
    • Miguel de Icaza's avatar
      Removed iconsdir if it is not going to get used. · dea5c086
      Miguel de Icaza authored
      2000-02-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* src/Makefile.am (-DGNUMERIC_GLADEDIR): Removed iconsdir if it is
      	not going to get used.
      2000-02-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* src/widgets/widget-color-combo.c (color_combo_construct): Fix
      	* src/sheet-object-container.c (sheet_object_container_realize):
      	OOPS.  Add uih back.
      	* Fresh ChangeLog.
      2000-02-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* Makefile.am (-DGNUMERIC_ICONSDIR): GNUMERIC_ICONSDIR defined
      2000-02-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* graphic-type.c (graphic_type_boot): Fixety fix;  Create notebook
      	with previews, connect signals
    • Miguel de Icaza's avatar
      remove invocation to glade_gnome_init(), this is not required. · 5fb70574
      Miguel de Icaza authored
      2000-02-23  Miguel de Icaza  <miguel@helixcode.com>
      	* src/dialogs/dialog-stf.c (dialog_stf): remove invocation to
      	glade_gnome_init(), this is not required.
      	* src/sheet-object-container.c (sheet_object_container_realize):
      	Update to new Bonobo API.
      2000-02-19  Miguel de Icaza  <miguel@gnu.org>
      	* src/workbook.c (launch_graphics_wizard_cmd): New function, used
      	to launch the graphics wizard.
      	* src/wizard.h: New file.
      	* src/corba-workbook-factory.c (WorkbookFactory_read): Fixed
      	command_context_corba usage.  Kill memory leak.
      	* src/sheet-object.c (sheet_set_mode_type): Remove the sheet event
      	button binding code from here.
      	(sheet_object_bind_button_events): New function.  To here.
      	* src/sheet.h: New creation mode: SHEET_OBJECT_CREATE_COMPONENT.
      	The GRAPHICS one will be used only by the wizard.
      	* src/pixmaps.h: Include object.xpm.
      	* src/pixmaps/object.xpm: More Modern Art work from Miguel, this
      	image represents an object.  The object has suffered a lot and is
      	in pain as you can see by the colors chosen by the artist.
      2000-02-24  Miguel de Icaza  <miguel@helixcode.com>
      	* main.c (graphics_wizard): Grab focus, run mainloop,
      	(button_cancel): quit mainloop.
      	* graphic-type.c: Add the graphic types.
      	* graphic-context.c (data_range_destroy): Implement.
      	(data_range_new): Implement.
      2000-02-23  Miguel de Icaza  <miguel@helixcode.com>
      	* main.c (customize): remove dead code.
      	* graphic-context.c (graphic_context_new): Cleanup and update the
      2000-02-19  Miguel de Icaza  <miguel@gnu.org>
      	* Makefile.am: Changed it to be a static library.  For now it will
      	simplify the debugging process on Red Hat Linux 6.1.  A combo
      	which is extraordinarly bad for debugging anything bigger than 10
      	lines of code.
  33. 20 Feb, 2000 1 commit
    • Jukka-Pekka Iivonen's avatar
      Implemented Affine Scaling algorithm for the Solver tool. · 5c980847
      Jukka-Pekka Iivonen authored
      2000-02-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/mathfunc.c: Implemented Affine Scaling algorithm for the
      	Solver tool.
      	* src/solver-lp.c: Switched the solver to use the affine scaling
      	instead of the simplex.  Beautified the generated reports.
      	* src/solver.h: Renamed some of the Solver constants.
      	* src/analysis-tools.h: New file.  Moved stuff from