1. 02 Jun, 2001 3 commits
    • Almer S. Tigelaar's avatar
      Implement group undo/redo (cmd_group_redo): Idem. (cmd_group_destroy): · e301f704
      Almer S. Tigelaar authored
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
              * src/commands.[ch] (cmd_group_undo): Implement group undo/redo
        	(cmd_group_redo): Idem.
        	(cmd_group_destroy): Idem.
        	(cmd_group): Idem.
      
        	* src/workbook-control-gui.c (cb_data_group): Implement.
        	(cb_data_ungroup): Idem.
        	(group_ungroup_colrow): Utility function to determine if
        	columns or rows need to be grouped/ungrouped.
      
        	* src/sheet.[ch] (sheet_col_row_group_ungroup): New, high level routine
       	for adjusting outlines.
       	(sheet_col_row_fit_gutter): Dynamically adjust gutter size.
       	(cb_outline_level): Callback for the above.
       	(sheet_col_row_can_group): Query if a range of cols/rows
       	can actually group/ungroup.
       	(sheet_col_row_set_outline_level): Deprecated, remove.
      
       	* src/colrow.[ch] (colrow_set_outline): Set outline on a col/row.
      
        	* src/GNOME_Gnumeric.xml: DataOutlineUnGroup change to
        	DataOutlineUngroup.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* colrow.glade: New simple dialog.
      
      	* dialog-simple-input.c, dialogs.h
      	(dialog_choose_cols_vs_rows): New, let user choose
      	between columns or rows.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* (ms_excel_read_row): Set outline using
      	new functions.
      	(ms_excel_read_colinfo): Idem.
      e301f704
    • Jody Goldberg's avatar
      be consistent and don't block. · 9fc2426c
      Jody Goldberg authored
      
      2001-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/main.c (handle_paint_events) : be consistent and don't block.
      
      	* src/io-context.c (io_progress_update) : avoid an infinite loop.
      9fc2426c
    • Jody Goldberg's avatar
      rewrite, not quite done. · f423353e
      Jody Goldberg authored
      
      2001-06-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_compile) : rewrite, not quite done.
      
      	* src/commands.c (cmd_set_text_undo) : queue a recalc.
      	(cmd_clear_redo) : ditto.
      	* src/corba-sheet.c (Sheet_clear_region) : ditto.
      	(Sheet_clear_region_content) : ditto.
      	* src/gui-clipboard.c (x_selection_handler) : ditto.
      	* src/sheet-merge.c (sheet_merge_add) : ditto.
      
      	* src/eval.c : switch the depend lists to be singly linked.
      	(dep_slist_filter_sheet) : convenience routine.
      	(dependent_unqueue_sheet) : Used here.
      	(dependent_unlink_sheet) : and here.
      
      	* src/workbook-control-gui.c (display_formulas) :  convert the single
      	  lists.
      f423353e
  2. 01 Jun, 2001 1 commit
    • Chyla Zbigniew's avatar
      Support for reporting i/o progress via IOContext. · a1a6847e
      Chyla Zbigniew authored
      
      Support for reporting i/o progress via IOContext.
      
      * src/command-context-priv.h (struct CommandContextClass): Added
      progress_message_set virtual.
      
      * src/command-context.[ch] (gnumeric_progress_message_set): New.
      
      * src/io-context-priv.h
      Made IOContext a GtkObject.
      (enum GnumProgressHelperType, struct GnumProgressHelper): New.
      
      * src/io-context.[ch]
      Made IOContext a GtkObject.
      (io_progress_update, io_progress_message,
      file_io_progress_set, file_io_progress_update,
      memory_io_progress_set, memory_io_progress_update,
      count_io_progress_set, count_io_progress_update,
      io_progress_unset): New functions.
      (gnumeric_io_context_free): Removed, use gtk_object_destroy instead.
      
      * src/workbook-control-gui.c (wbcg_progress_message_set): New,
      implementation of CommandContext virtual.
      
      * src/workbook-view.c
      (wb_view_save_as, wb_view_save, wb_view_open_custom):
      s/gnumeric_io_context_free/gtk_object_destroy
      
      * src/xml-io.h
      (struct _XmlParseContext): New members (io_context, element_counter) for
      progress reporting.
      
      * src/xml-io.c
      (xml_read_styles): Update i/o progress every N_ELEMENTS_BETWEEN_UPDATES
      styles.
      (xml_sheet_read): Ditto for cells.
      (xml_get_n_children, xml_read_sheet_n_elements,
      xml_read_workbook_n_elements): Internal functions, calculating the
      number of "elements" (styles and cells) in workbook.
      (xml_workbook_read): Set up io progress to "Processing XML tree" stage.
      (gnumeric_xml_read_workbook): Load the file into an XML tree using the
      Push mode and update i/o progress regularly.
      
      * src/plugin-util.c
      #include <libgnome/libgnome.h> instead of <gnome.h>.
      a1a6847e
  3. 31 May, 2001 5 commits
    • Jody Goldberg's avatar
      Use cell_eval in place of cell_eval_content. · c42dae7a
      Jody Goldberg authored
      
      2001-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/solver-lp.c : Use cell_eval in place of cell_eval_content.
      
      	* src/eval.c (cb_range_hash_invalidate) : disconnect the list from the
      	  dep record while removing its contents.  We don't want to modify the
      	  list while we are walking it.  This is also an optimization in that
      	  we don't need to modify the list.
      	(cb_single_hash_invalidate) : ditto.
      	(depsingle_dtor) : Ensure that the list has already been cleared.
      	(deprange_dtor) : ditto.
      	(dependent_unlink) : short circuit if we are destroying.
      
      	* src/sheet.c (sheet_destroy) : Clear the controls first.
      c42dae7a
    • Karl Eichwalder's avatar
      Fix 2 typos. · 1ccda572
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* src/GNOME_Gnumeric.xml: Fix 2 typos.
      1ccda572
    • Karl Eichwalder's avatar
      Write gnome.desktop.in. Add gnome.desktop.in. · e7aeedf6
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* configure.in: Write gnome.desktop.in.
      	* .cvsignore: Add gnome.desktop.in.
      e7aeedf6
    • Chyla Zbigniew's avatar
      Handle opener errors without crashing. · 6475408c
      Chyla Zbigniew authored
      
      * workbook-view (wb_view_open_custom): Handle opener errors without
      crashing.
      6475408c
    • Jody Goldberg's avatar
      Handle errors. (gnumeric_count) : ditto. (gnumeric_counta) : ditto. · d0bee477
      Jody Goldberg authored
      2001-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-stat.c (gnumeric_mode) : Handle errors.
      	(gnumeric_count) : ditto.
      	(gnumeric_counta) : ditto.
      	(gnumeric_prob) : return the correct error, and simplfy.
      	(gnumeric_frequency) : ditto.
      	(make_list) : renamed from init_make_list_closure, and moved
      	  replicated code here.
      	(stat_helper) : helper routine.
      	(gnumeric_ftest) : use here.
      	(gnumeric_ttest) : and here.
      
      2001-05-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_new_error_err) : change name from
      	  value_new_error_err since we don't actually new anything.
      
      	* src/position.c (eval_pos_init_cellref) : delete broken crap.
      
      	* src/func.c (cb_iterate_cellrange) : duplicate error here.
      	(function_iterate_argument_values) : duplicate the non-terminate
      	  error here.
      	* src/collect.c (collect_floats) : not here.
      d0bee477
  4. 30 May, 2001 2 commits
    • Jon K Hellan's avatar
      New file. Implementation details for SheetControlGUI and methods directly · 32d52b23
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-control-gui-priv.h: New file. Implementation details
      	for SheetControlGUI and methods directly accessible from the GUI
      	layer.
      
      	* src/Makefile.am: Add sheet-control-gui-priv.h
      
      	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
      	sheet-control-gui-priv.h. Remove declarations of methods which
      	have been made virtual.
      
      	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet member now lives in SheetControl.
      	Make following methods static - externally available only as
      	virtual SheetControl method: scg_redraw_all,
      	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
      	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
      	scg_compute_visible_region, scg_make_cell_visible. Initialize
      	class object with these as virtual methods together with
      	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
      	and scg_mode_edit.  Rename context_menu_hander (sic!) to
      	context_menu_handler.
      
      	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
      	(sc_destroy): Comment out unused variable.
      	(sheet_control_init_state): Rename to sc_init_state.
      	(sc_sheet): New accessor - returns sheet attribute.
      	(sc_invalidate_sheet): New function - sets sheet attribute to
      	NULL.
      	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
      	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
      	scrollbar_config, mode_edit, compute_visible_region,
      	make_cell_visible, cursor_bound): New virtual methods.
      
      	* src/sheet-control.h: Declare new methods in sheet-control.c
      
      	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
      	instead of scg methods.
      
      	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
      	(sheet_ant): Use sc_ant instead of scg_ant.
      	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
      	(sheet_redraw_all): Use sc_redraw_headers instead of
      	scg_redraw_headers.
      	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
      	(sheet_detach_scg): Rename to sheet_detach_control. Change
      	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
      	sc_invalidate_sheet instead of direct attribute access.
      	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
      	scg_set_zoom_factor.
      	(sheet_update_only_grid): Use sc_compute_visible_region instead of
      	scg_compute_visible_region.
      	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
      	(sheet_redraw_cell_region, sheet_redraw_partial_row,
      	sheet_redraw_cell): Use sc_redraw_cell_region instead of
      	scg_redraw_cell_region.
      	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
      	scg_make_cell_visible.
      	(sheet_cursor_set): Use sc_cursor_bound instead of
      	scg_cursor_bound.
      	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
      	scg_update_cursor_pos.
      	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
      	scg_scrollbar_config.
      	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
      	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
      	and scg_redraw_all.
      
      	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
      	instead of SheetControlGUIs.
      
      	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
      	of scg_mode_edit.
      
      	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      
      	* src/sheet-object-graphic.c: Ditto.
      
      	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet now lives in SheetControl.
      
      	* src/item-bar.c: Ditto.
      
      	* src/item-cursor.c: Ditto.
      
      	* src/item-edit.c: Ditto.
      
      	* src/item-grid.c: Ditto.
      
      	* src/sheet-object-cell-comment.c: Ditto.
      
      	* src/sheet-object-cell-container.c: Ditto.
      
      	* src/sheet-object-item.c: Ditto.
      
      	* src/sheet-object-widget.c: Ditto.
      
      	* src/workbook-control-gui.c: Ditto.
      
      	* src/workbook-object-toolbar.c: Ditto, but don't include
      	sheet-control-gui-priv.h
      
      	* src/sheet-object.c (sheet_object_realize): Cast control to
      	SheetControlGUI.
      32d52b23
    • Chyla Zbigniew's avatar
      Register as importer. · 2ba74b3c
      Chyla Zbigniew authored
      
      * src/stf.c (stf_init): Register as importer.
      2ba74b3c
  5. 29 May, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added FileProbeLevel argument. (GNUM_FILE_OPENER_CLASS, · ecec4fee
      Chyla Zbigniew authored
      
      * src/file.h
      (typedef enum FileProbeLevel) New.
      (typedef GnumFileOpenerProbeFunc, gnum_file_opener_probe): Added
      FileProbeLevel argument.
      (GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
      GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
      Macros moved to file-priv.h.
      
      * src/file-priv.h
      (struct _GnumFileOpenerClass::probe):
      (GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
      GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
      Macros moved from file.h.
      
      * src/file.c
      (gnum_file_opener_probe_real, gnum_file_opener_probe):
      Added FileProbeLevel argument.
      
      * src/workbook-view.c
      (wb_view_open_custom): Iterate over FileProbeLevel values when probing
      the file (passing current value to probe function).
      
      * src/xml-io.c
      (xml_probe): Added FileProbeLevel argument, testing only file name if
      probe level == FILE_PROBE_FILE_NAME.
      
      * src/plugin-service.c (gnum_plugin_file_opener_probe):
      Use file_patterns only if probe level == FILE_PROBE_FILE_NAME, otherwise
      call module's probe function.
      
      * src/bonobo-io.c (gnumeric_bonobo_io_probe),
      src/plugin-service.h (struct _PluginServiceFileOpener),
      src/plugin-loader-module.c
      (gnumeric_plugin_loader_module_func_file_probe,
      struct ServiceLoaderDataFileOpener::module_func_file_probe):
      Added FileProbeLevel argument.
      ecec4fee
  6. 28 May, 2001 3 commits
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · e18b7e85
      Jody Goldberg authored
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* sheet.c (sheet_name_quote): Escape \ and add more chars to
      	  to quote_chr.
      e18b7e85
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · 3b241834
      Jody Goldberg authored
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* gnumeric-util.h (gnumeric_filter_modifiers): New macro.
      
      	* workbook-control-gui.c (wb_edit_key_pressed): Use it.
      	* gnumeric-sheet.c (gnumeric_filter_modifiers): Ditto.
      3b241834
    • Jody Goldberg's avatar
      Switch the BIFF_WINDOW2 0x23e -> 0x3e (write_names) : fix biff type. · f86b3d74
      Jody Goldberg authored
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_window2) :
      	  Switch the BIFF_WINDOW2 0x23e -> 0x3e
      	(write_names) : fix biff type.
      
      	* ms-excel-read.c (ms_excel_read_formula) : cleanup some old
      	  inconsistentcies.  keep as many of the BIFF_* using their major
      	  types.
      	  Switch the BIFF_STRING 0x207 -> 0x07
      	  Switch the BIFF_BOOLERR 0x205 -> 0x05
      	(ms_excel_read_window2) : split this out into a neater bundle.
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (sheet_region_queue_recalc) : Queue the dependents in the
      	  region not just those that depend on it.
      	(cell_queue_recalc) : no need to queue non expression cells.
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_expr_real) : recurse for arrays too.
      	(expr_tree_array_corner) : rename from expr_tree_array_formula_corner,
      	  and return the corner, not the expression in the corner.
      
      	* src/eval.c (cb_range_hash_invalidate) : invalidate and free things
      	  in place.
      	(cb_single_hash_invalidate) : ditto.
      	(do_deps_destroy) : simplify.
      
      	* src/workbook-control-gui.c (wbcg_sheet_rename) : Use the table not
      	  the container.
      f86b3d74
  7. 27 May, 2001 6 commits
    • Nathan Cullen's avatar
      Fixed keyboard navigation problem in non-bonobo build with separator for · f0ded15a
      Nathan Cullen authored
      2001-05-27  Nathan Cullen <furyu@fuse.net>
      
       	* src/history.c (history_menu_insert_separator): Fixed keyboard
       	navigation problem in non-bonobo build with separator for recently
       	opened files.  There was an "invisible" separator item so you needed
       	to arrow down twice to get from "Print Preview" to the first file.
      f0ded15a
    • Jody Goldberg's avatar
      Use the table not the container. · 626c0954
      Jody Goldberg authored
      
      2001-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_sheet_rename) : Use the table not
      	  the container.
      626c0954
    • Chyla Zbigniew's avatar
      Fixed typo. · 99f63c62
      Chyla Zbigniew authored
      
      * src/plugin-service.c (parse_format_level_str): Fixed typo.
      99f63c62
    • Jody Goldberg's avatar
      If successful queue everything for recalc. (xml_cell_set_array_expr) : no · b740bf75
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_sax_file_open) : If successful queue everything
      	  for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc for arrays.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (colrow_move) : no need to queue recalc here.
      	(cb_sheet_cell_copy) : Actually copy the array values.
      
      	* src/cell.c (cell_relocate) : Just relink, no need to queue a recalc.
      	(cell_set_array_formula) : Remove the ability to queue the recalc at
      	  this level.  Just link the formulas in.  Reorder the the arguments
      	  to match the standard approach.
      
      	* src/eval.c (workbook_recalc_all) : Used here.
      	(workbook_queue_all_recalc) : new function.
      
      	* src/xml-io.c (xml_workbook_read) : Queue everything for recalc.
      	(xml_cell_set_array_expr) : no need to queue a recalc here.
      
      	* src/commands.c (cmd_autofill_redo) : queue the recalc here.
      	(cmd_area_set_text_redo) : we need to manually queue a recalc for
      	  arrays now.
      
      	* src/sheet.c (sheet_cell_set_text) : we need to queue a recalc for
      	  both expressions and values now.
      	(sheet_range_set_text) : queue recalcs for the region as a block.
      
      	* src/graph-vector.c (graph_vector_new) : Just use dependent_link if
      	  we don't want a recalc.
      b740bf75
    • Karl Eichwalder's avatar
      Remove file. New file. Adjust it for gnumeric.desktop.in.in. · 17843497
      Karl Eichwalder authored
      2001-05-27  Karl Eichwalder  <ke@suse.de>
      
      	* Run xml-i18n-prepare:
      	* gnumeric.desktop.in: Remove file.
      	* gnumeric.desktop.in.in: New file.
      	* Makefile.am: Adjust it for gnumeric.desktop.in.in.
      
      2001-05-27  Karl Eichwalder  <ke@suse.de>
      
      	* da.po, es.po, et.po, fr.po, gl.po, hu.po, ja.po, ko.po, no.po,
      	pl.po, pt.po, ru.po, sk.po, sv.po:
      17843497
    • Jody Goldberg's avatar
      typo. · 68d7e0f7
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.h : typo.
      68d7e0f7
  8. 26 May, 2001 6 commits
    • Jon K Hellan's avatar
      Derive from SheetControl rather than GtkObject. · be489c8e
      Jon K Hellan authored
      2001-05-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-control-gui.[ch]: Derive from SheetControl rather than
      	GtkObject.
      
      	* src/gnumeric.h: Add incomplete def of SheetControl.
      
      	* src/Makefile.am: Add sheet-control.c, sheet-control.h,
      	sheet-control-priv.h
      
      	* src/sheet-control.c: New file. Stub base class for
      	SheetControlGUI.
      
      	* src/sheet-control.h: Strip down even more from existing stub in
      	CVS.
      
      	* src/sheet-control-priv.h: New file. Private header for
      	SheetControl.
      be489c8e
    • Jody Goldberg's avatar
      suppress minus for "\(" to match "(" · a9201bb2
      Jody Goldberg authored
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : suppress minus for "\(" to match "("
      a9201bb2
    • Karl Eichwalder's avatar
      Fix typo. · a00a96a8
      Karl Eichwalder authored
      2001-05-26  Karl Eichwalder  <ke@suse.de>
      
      	* src/workbook-control-gui.c: Fix typo.
      a00a96a8
    • Jody Goldberg's avatar
      Save the iteration preferences too. These are workbook level flags. I am · 7eb4a25b
      Jody Goldberg authored
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-write.c (write_sheet_bools) : Save the iteration
      	  preferences too.  These are workbook level flags.  I am unclear why
      	  XL saves them at the sheet level.
      
      	* ms-excel-read.c (ms_excel_read_calccount) : new function.
      	(ms_excel_read_delta) : ditto.
      	(ms_excel_read_iteration) : ditto.
      	(ms_excel_read_sheet) : use them here.
      
      2001-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_eval_content) : Use the iteration prefs.
      
      	* src/workbook.c (workbook_iteration_tolerance) : new function.
      	(workbook_iteration_enabled) : ditto.
      	(workbook_iteration_max_number) : ditto.
      7eb4a25b
    • Chyla Zbigniew's avatar
      If recently used saver has been removed, use default saver, not the first · 6c31b872
      Chyla Zbigniew authored
      
      * src/gui-file.c (fill_save_menu): If recently used saver has been
      removed, use default saver, not the first one.
      
      * src/file.c
      (unregister_file_opener, unregister_file_opener_as_importer): Fixed
      leaks.
      (unregister_file_saver): Fixed stupid bug (and leaks).
      
      * src/plugin-service.h (struct _PluginServiceFileSaver): Added
      default_saver_priority field.
      
      * src/plugin-service.c
      (plugin_service_file_saver_read): Read "default_saver_priority"
      attribute.
      (plugin_service_file_saver_initialize): Register as default saver if
      default_saver_priority is non-negative.
      6c31b872
    • Jody Goldberg's avatar
      new routine. This looks ugly. We should be able to avoid replicating this · f1b88ce2
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_diff) : new routine.  This looks ugly.  We should
      	  be able to avoid replicating this code.
      
      	* src/cell.c (cell_eval_content) : support iteration.
      
      	* src/format.c (render_number) : make the buffer big enough.
      	  The assumtion that mantissa and exp are both maxed should leave
      	  enough room for thousand separators.
      f1b88ce2
  9. 25 May, 2001 2 commits
    • Jon K Hellan's avatar
      Bugfix: Connect button_press_event handler with scg->table as data instead · a34cb69d
      Jon K Hellan authored
      2001-05-25  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui.c (wbcg_sheet_add): Bugfix: Connect
      	button_press_event handler with scg->table as data instead of scg.
      a34cb69d
    • Jody Goldberg's avatar
      fix logic to avoid adding a bogus view. · 237ebd5b
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_open_custom) : fix logic to avoid
      	  adding a bogus view.
      
      2001-05-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (workbook_recalc) : don't clear the flag until after the
      	  calc is complete in case there is a cycle.
      	(cell_eval) : ditto.
      237ebd5b
  10. 24 May, 2001 4 commits
    • Jon K Hellan's avatar
      Rename view to scg. Retrieve it from object data on table. · bae5f52b
      Jon K Hellan authored
      2001-05-24  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui.c (sheet_to_page_index): Rename view to
      	scg. Retrieve it from object data on table.
      	(sheet_to_page_index):
      	(wb_control_gui_focus_cur_sheet, cb_sheet_label_button_press,
      	cb_notebook_switch_page): Retrieve scg from object data on table.
      	(wbcg_sheet_add): Show and insert in notebook scg->table. scg no
      	longer is a GtkTable, it has one.
      
      	* src/sheet-control-gui.c (scg_parent_class): Change to
      	GtkObjectClass.
      	(cb_table_destroy): New function. Finish all table and canvas
      	dependent activities and set scg->table, scg->canvas to NULL.
      	(scg_init): Don't create table here.
      	(scg_construct): ..but here. Change terminology. Old: outer_table,
      	table. New: scg->table, inner_table. Add scg to scg->table as
      	object data. Add a destroy callback to scg->table.
      	(scg_destroy): Move parts to cb_table_destroy. Unref table if not
      	NULL.
      	(scg_class_init, GNUMERIC_MAKE_TYPE): Inherit from GtkObject
      	instead of GtkTable.
      	(scg_cursor_visible): Be prepared for scg->canvas being NULL
      
      	* src/sheet-control-gui.h (struct _SheetControlGUI,
      	SheetControlGUIClass): Inherit from GtkObject instead of GtkTable.
      bae5f52b
    • Jody Goldberg's avatar
      new function. Init recursive_dirty_enabled. Use recursive_dirty_enabled. · 65288fd6
      Jody Goldberg authored
      
      2001-05-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_enable_recursive_dirty) : new function.
      	* src/workbook-private.c (workbook_private_init) : Init
      	  recursive_dirty_enabled.
      	* src/sheet.c (sheet_cell_remove) : Use recursive_dirty_enabled.
      	* src/eval.c (dependent_changed) : ditto.
      
      	* src/workbook-view.c (wb_view_open_custom) : while loading disable
      	  recursive depend dirtying.  We are loading everything it is up to
      	  the loader to handle the queuing correctly (either queuing all, or
      	  just those necessary)
      65288fd6
    • Jody Goldberg's avatar
      optionally queue the dependents of this cell for recalc. · 7c1b3f75
      Jody Goldberg authored
      
      2001-05-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_destroy) : optionally queue the dependents
      	  of this cell for recalc.
      7c1b3f75
    • Jody Goldberg's avatar
      Revamp the recalc queue · af206304
      Jody Goldberg authored
      2001-05-22  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric.spec.in : bump version of libole2
      	* README : ditto.
      	* configure.in : ditto.
      
      2001-05-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_is_pristine) : no need to check the recalc
      	  queue.  If there are no dependents there is nothing to put on the
      	  eval queue.
      
      	* src/func.c (cb_iterate_cellrange) : rename from
      	  iterate_cellrange_callback remove 'generation' mechanism.
      
      	* src/cell.c (cell_cleanout) : Clear both recalc flags,
      	  in_queue and needs
      	(cell_copy) : ditto.
      	(cell_eval_content) : No need to render the value.  assign_value
      	  already does it.
      	(cell_content_changed) : deleted.
      
      	* src/Makefile.am : merge dependent.[ch] into eval.[ch]
      
      2001-05-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c : reorg and merged with dependent.[ch]
      
      	* src/sheet.c (sheet_cell_set_text) :
      	  s/cell_content_changed/cell_queue_recalc/
      	(sheet_cell_set_expr) : ditto.
      	(sheet_cell_set_value) : ditto.
      	(colrow_move) : ditto.
      	(sheet_destroy_contents) :
      	  s/dependent_unqueue_recalc_sheet/dependent_unqueue_sheet/
      
      	* src/cmd-edit.c (cmd_select_cur_row) : Make behavior match XL.
      	(cmd_select_cur_col) : Make behavior match XL.
      
      	* src/format.c (render_number) : avoid temporaries.
      	(do_render_number) : ditto.
      
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_range) : delete.
      	(eval_expr_real) : Use workbook_foreach_cell_in_range rather than
      	  range_eval.  Remove 'generation' mechanism.
      	(cb_range_eval) : a simple pass through
      
      	* src/eval.c (sheet_region_recalc_deps) : rename from
      	  sheet_recalc_dependencies and merge in sheet_region_get_deps.
      	  Use the new foreach style interfaces.
      	(cb_single_recalc_all_depends) : rename from cb_single_get_all_depends
      	  and simplify.
      	(cb_range_recalc_all_depends) : rename from cb_sheet_get_all_depends and simplify.
      	(cb_dependent_queue_recalc) : new wrapper.
      	(cb_region_contained_depend) : renamed from search_range_deps and simplify.
      	(cell_foreach_dep) : rename from cell_get_dependencies and switch to
      	  an in place api rather than creating a list.
      	(cell_foreach_single_dep) : switch to in place api
      	(cell_foreach_range_dep) : ditto.
      	(search_cell_deps) : ditto.
      	(cell_recalc_deps) : ditto.
      	(cell_eval) : ditto.
      	(cb_generation_queue) : new utility.
      
      	* src/dependent.c (dependent_list_filter) : delete.
      
      	* src/cmd-edit.c (cb_collect_deps) : new function split from.
      	(cmd_select_cur_depends) : here. So that we can use the new depend
      	  api.
      
      	* src/sheet.c (sheet_move_range) : use sheet_region_recalc_deps.
      	(sheet_{insert,delete}_{cols,rows}) : ditto.
      	(sheet_cell_remove_simple) : Use in place depend interface.
      
      	* src/cell.c (cell_content_changed) : Use in place depend interface.
      	* src/clipboard.c (clipboard_paste_region) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_autofill_redo) : ditto.
      
      2001-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : remove gnorba and modernize a bit.
      af206304
  11. 23 May, 2001 2 commits
    • Chyla Zbigniew's avatar
      Added "case_sensitive" field. (gnum_plugin_file_opener_probe): Support · 8c3538b2
      Chyla Zbigniew authored
      
      * src/plugin-service.c
      (struct _InputFilePattern): Added "case_sensitive" field.
      (gnum_plugin_file_opener_probe): Support "case_sensitive" attribute when
      checking if file name matches the pattern.
      (plugin_service_file_opener_read): Support "case_sensitive" attribute.
      Now matching is case _insensitive_ by default.
      8c3538b2
    • Chyla Zbigniew's avatar
      Removed #include "xml-io.h". · b9071979
      Chyla Zbigniew authored
      
      * src/bonobo-io.c, src/clipboard.c, src/file.c, src/plugin.c,
      src/sheet-object.c, src/stf.c, src/workbook.c:
      Removed #include "xml-io.h".
      
      * src/dialogs/dialog-plugin-manager.c (gnumeric_dialog_question_yes_no):
      Function moved ...
      
      * src/gnumeric-util.[ch]: ... here.
      
      * src/gui-file.c
      (gui_file_import): Sorting file importers.
      (fill_save_menu): Sorting file savers, function simplified (doesn't use
      file_saver_is_default_format).
      (can_try_save_to): Function simplified, uses
      gnumeric_dialog_question_yes_no from gnumeric-util.h, default answer
      for question about overwriting a file is configurable.
      b9071979
  12. 22 May, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Bump XML version number. (xml_workbook_write): Write index of sheet names · b89fa763
      Almer S. Tigelaar authored
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/xml-io.c : Bump XML version number.
      	(xml_workbook_write): Write index of sheet names
      	at the beginning of the file and always write
      	latest version number.
      
      2001-05-22  Almer S. Tigelaar  <almer@gnome.org>
      
      	* xml-sax-read.c (xml_sax_sheet_name): Don't create
      	sheet here.
      	(xml_sax_wb_sheetname): Create sheet here.
      	(xml_sax_finish_parse_wb_names_name): Fix workbook level
      	name reading.
      	(xml_sax_start_element): Handle new sheetnameindex.
      	(xml_sax_end_element): Idem.
      	(xml_sax_characters): Idem.
      	(xml_sax_wb): Small tweak for correct version reading.
      b89fa763
    • Jon K Hellan's avatar
      Use renamed function gnumeric_expr_entry_rangesel_meaningful. · 34aad2e5
      Jon K Hellan authored
      2001-05-22  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-edit.c (wbcg_editing_expr): Use renamed function
      	gnumeric_expr_entry_rangesel_meaningful.
      
      2001-05-22  Jon K Hellan  <hellan@acm.org>
      
      	* src/widgets/gnumeric-expr-entry.[ch]
      	(gnumeric_expr_entry_at_subexpr_boundary_p): Rename to
      	gnumeric_expr_entry_rangesel_meaningful.
      	Rangesel after ':' or ')' do not make sense. Return FALSE.
      34aad2e5
  13. 21 May, 2001 3 commits
    • Chyla Zbigniew's avatar
      Added gtk-doc style documentation. (struct _GnumFileOpener, struct · 434748ad
      Chyla Zbigniew authored
      
      * file.c
      (gnum_file_opener_setup, gnum_file_opener_new, gnum_file_opener_probe,
      gnum_file_opener_open, gnum_file_saver_setup, gnum_file_saver_new,
      gnum_file_saver_save, gnum_file_saver_fix_file_name,
      register_file_opener, register_file_opener_as_importer,
      unregister_file_opener, unregister_file_opener_as_importer,
      register_file_saver, register_file_saver_as_default,
      unregister_file_saver, get_default_file_saver,
      get_file_opener_by_id, get_file_saver_by_id,
      get_file_savers, get_file_openers, get_file_importers):
      Added gtk-doc style documentation.
      (struct _GnumFileOpener, struct _GnumFileOpenerClass,
      struct _GnumFileSaver, struct _GnumFileSaverClass): Removed structs
      already defined in file-priv.h.
      
      * workbook-view.c
      (wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom):
      Added gtk-doc style documentation.
      
      * file.h
      (gnum_file_opener_setup, gnum_file_saver_setup): Declarations moved ...
      
      * file-priv.h: ... here
      434748ad
    • Jon K Hellan's avatar
      Add toolbar_is_sensitive member. · 532b3946
      Jon K Hellan authored
      2001-05-21  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
      	Add toolbar_is_sensitive member.
      
      	* src/workbook-control-gui.c (workbook_control_gui_init):
      	Initialize wbcg->toolbar_is_sensitive.
      
      	* src/workbook-edit.c (workbook_edit_toolbars_set_sensitive): Use
      	wbcg->toolbar_is_sensitive instead of static is_sensitive.
      532b3946
    • Chyla Zbigniew's avatar
      (workbook_persist_file_load): Use wb_view_open instead of · ce12ef5e
      Chyla Zbigniew authored
      
      (workbook_persist_file_load): Use wb_view_open instead of
      workbook_load_from.
      (workbook_persist_file_save): Use wb_view_save_as instead of calling
      gnumeric_xml_write_workbook directly.
      
      Of course it's still broken as it was before :(
      ce12ef5e