1. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      2002-02-15  Jody Goldberg <jody@gnome.org>
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      	* src/formats.c (cell_format_classify) : handle general.
      	* src/file-priv.h : Inherit from GObject.
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      	* src/Makefile.am : distribute the marshaller.list
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      2002-02-11  Jody Goldberg <jody@gnome.org>
      	* src/stf.c (stf_init) : Make the names of the text import/export
  2. 03 Feb, 2002 1 commit
  3. 01 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      cleanup the includes a bit and make the libole2 requirement specific to · cda21e74
      Jody Goldberg authored
      2002-02-01  Jody Goldberg <jody@gnome.org>
      	* configure.in : cleanup the includes a bit and make the libole2
      	  requirement specific to the XL plugin.  Tidy up the gda, and gb
      	  tests to be consistent and more informative.
      	* src/main.c : remove ole debug flag.
      	* src/gnumeric-graph.c (gnm_graph_new) : return a GObject
      	  makes it easier to handle NULL.
  4. 26 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      lock the encoding to be utf-8. · f4df79a7
      Jody Goldberg authored
      2002-01-25  Jody Goldberg <jody@gnome.org>
      	* src/main.c (main) : lock the encoding to be utf-8.
      	* src/eval.c : enable the micro hash by default.
      	* src/expr.c (cellref_relocate) : simplify and remove the force
      	  arguments.  Flag invalidations from inside vs to inside. From takes
      	(cellref_shift) : new.
      	(cellrange_relocate) : simplfy and try a different tack on how to
      	  handle corners with different sets of relocation needs.
      	* src/commands.c (cmd_paste_cut_undo) : pass NULL for the
      	  reloc_storage to disable invalidation.
      	* src/sheet.c (sheet_move_range) : document.
      	  Make the reloc_storage optional.  If it is not specified do NOT
      	  invalidate references to the dst region that are being
      	  invalidated.  Since this routine is only used for cut redo/undo
      	  and undo really should not be invalidating we use that as a flag.
  5. 23 Jan, 2002 1 commit
  6. 01 Jan, 2002 1 commit
    • Andreas J. Guelzow's avatar
      describe geometry option streamline label output (don't overwrite cells) · 855c6e9b
      Andreas J. Guelzow authored
      2001-12-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
      	* src/main.c : describe geometry option
      	* src/analysis-tools.c (anova_two_factor_with_r_tool) : streamline
      	  label output (don't overwrite cells)
      2001-12-31  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      	* histogram.glade : correct label
      	* dialog-analysis-tools.c (anova_two_factor_tool_ok_clicked_cb) :
      	  correct error message
      	(random_tool_ok_clicked_cb) : correct error messages
  7. 21 Dec, 2001 2 commits
    • Jody Goldberg's avatar
      Cleanup and standardize the #include files · 65d67daa
      Jody Goldberg authored
    • Jody Goldberg's avatar
      add support for FORMULA_PTG_REF_ERR. FORMULA_PTG_AREA_ERR. · 54eb7e96
      Jody Goldberg authored
      2001-12-20  Jody Goldberg <jody@gnome.org>
      	* ms-formula-read.c (ms_excel_parse_formula) : add support for
      	* ms-obj.c (ms_read_OBJ) : add protection against missing virtuals.
      	  If the object is a graph read it even if we do not support them in
      	  this context (embedded in another object) or if we do not support
      	  graphs at all.  This enables us to read embedded graphs without
      	  throwing off the rest of the parsing.
      2001-12-21  Jody Goldberg <jody@gnome.org>
      	* src/clipboard.c (clipboard_paste_region) : transpose merges too.
      	* src/colrow.c (colrow_compute_pixels_from_pts) : ensure that things
      	  do not get too small.
      2001-12-20  Jody Goldberg <jody@gnome.org>
      	* src/commands.c (cmd_autofill_redo) : clear merges before filling.
      	* src/sheet.c (sheet_clear_region) : Add CLEAR_MERGED.
      	* src/clipboard.c (clipboard_paste_region) : use sheet_clear_region to
      	  remove the merges.
      	* src/sheet-autofill.c (fill_item_new) : init the merge sizze to 1x1
      	  if we are not merged.  This simplifies logic later.  Remove the
      	  'is_merged' flag it was redundant.
      	(autofill_create_fill_items) : rename region_count -> region_size
      	  it is clearer.  If a cell is merged be smarter about incrementing
      	  in a way consistent with what the user sees.
      	(sheet_autofill_dir) : ditto.
      	* src/workbook-cmd-format.c (sheet_dialog_set_row_height) : honour
      	(sheet_dialog_set_column_width) : ditto.
      	* src/colrow.c (colrow_compute_pixels_from_pts) : don't let the pixel
      	  size shrink below the margin size.
  8. 27 Nov, 2001 1 commit
  9. 06 Sep, 2001 2 commits
  10. 24 Aug, 2001 2 commits
    • Jody Goldberg's avatar
      fix. · 8ba4a43f
      Jody Goldberg authored
      2001-08-24  Jody Goldberg <jgoldberg@home.com>
      	* idl/Makefile.am : fix.
      	* src/gnumeric-canvas.c : add gnome-i18n.
      	* src/gnumeric-util.c : add gnome-{i18n,util}
      	* src/gui-file.c : add gnome-{i18n,config,util}
      	* src/history.c : add gnome-i18n.
      	* src/main.c : add gnome-config.
      	* src/sheet-control-gui.c : add gnome-i18n.
      	* src/workbook.c : Add gnome-i18n, loosen sheet-control-gui req to
      	  just sheet-control.
      	* src/workbook-edit.c : add gnome-i18n.
      	* src/workbook-view.c : add gnome-i18n and gnome-config, remove widget.
      	* src/workbook-control-gui.c : Add gnome-i18n and gnome-config.
      	* src/xml-io-autoft.c : add unistd.h
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
  11. 15 Aug, 2001 1 commit
    • Ariel Rios's avatar
      Remove guile stuff. We no longer need to take over main and all guile init · c295f1b7
      Ariel Rios authored
      2001-08-14  Ariel Rios  <ariel@linuxppc.org>
              * src/main.c (main): Remove guile stuff. We no longer need
              to take over main and all guile init functions are now handle
              by the guile plugin itself.
      2001-08-14  Ariel Rios  <ariel@linuxppc.org>
              * plugin.c (plugin_init_general): We now initialize guile
              (has_gnumeric_been_compiled_with_guile_support): Probably,
              we don't need this function anymore. Anyway, it was moved
              from src/main.c
  12. 10 Aug, 2001 1 commit
  13. 18 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Fix. SheetControl no longer inherits from Table it now contains it. · 972110b3
      Jody Goldberg authored
      2001-07-17  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control-gui.c (wbcg_sheet_move) : Fix.
      	  SheetControl no longer inherits from Table it now contains it.
      	* src/sheet-control-gui.c (cb_sheet_object_view_destroy) : rename from
      	* src/sheet-object.c (cb_sheet_object_configure) : Use
      	  sheet_object_view_obj and sheet_object_view_control.
      	(sheet_object_view_destroyed) : remove the sheetcontrol key from the
      	  view when it is destroyed.  And remove our reference to the control.
      	(sheet_object_new_view) : give the view a ref of the control.
      	* src/item-grid.c (item_grid_draw) : only draw bound lines at pane
      	* src/item-bar.c (item_bar_event) : dont draw the resize bar past the
      	  minimum size.
  14. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
  15. 18 Jun, 2001 1 commit
  16. 02 Jun, 2001 2 commits
    • 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.
    • 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
  17. 24 May, 2001 1 commit
    • 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) :
      	(sheet_cell_set_expr) : ditto.
      	(sheet_cell_set_value) : ditto.
      	(colrow_move) : ditto.
      	(sheet_destroy_contents) :
      	* 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
      	* 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.
  18. 21 May, 2001 1 commit
    • Chyla Zbigniew's avatar
      Cleaned up file i/o interface. · 33d35aa2
      Chyla Zbigniew authored
      Cleaned up file i/o interface.
      * src/Makefile.am: Added file-priv.h.
      * src/file.[ch]:
      Made GnumFileOpener and GnumFileSaver GtkObjects with virtual probe,
      open and save methods.
      New GnumFileOpener methods: get_id.
      New GnumFileSaver methods: get_id, fix_file_name.
      New functions: 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.
      * src/file-priv.h: New file with definitions of structs:
      _GnumFileOpener, _GnumFileOpenerClass, _GnumFileSaver,
      * src/workbook.h
      (struct _Workbook): Added file_saver_sig_id field.
      (workbook_get_file_saver): New accessor function.
      * src/workbook.c
      (cb_saver_destroy_event, workbook_destroy, workbook_set_saveinfo):
      When setting new file_saver, connect to its "destroy" signal and
      set file_saver to NULL in signal handler. Disconnect when changing file
      saver or destroying the workbook.
      (workbook_get_file_saver): New accessor function.
      * src/workbook-view.[ch]
      (wb_view_set_attributev): Renamed to wb_view_set_attribute_list and
      (wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom): New
      methods (some code moved from file.c).
      * src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped):
      Use wb_view_open() instead of workbook_try_read()+file_finish_load().
      * src/gui-file.c
      (gui_file_import): Use get_file_importers(). Use
      wb_view_open_custom() instead of file_opener_open() + manual creation
      of wb_view, error checking, etc.
      (is_saver_registered): Removed.
      (saver_activate): Don't check if saver is really registered.
      (file_saver_is_default_format): Use get_default_file_saver() instead
      of strcmp(extension, "gnumeric") hack.
      (do_save_as): Use gnum_file_saver_fix_file_name().
      Adjusted everything to file.h, workbook.h, workbook-control.h.
      * src/gui-file.h (gui_file_import): Signature change, now function
      returns gboolean.
      * src/gutils.[ch] (g_list_index_custom): New function.
      * src/history.c (file_history_cmd), src/main.c (gnumeric_main),
      src/workbook-control-gui.c (cb_file_open): Use wb_view_open()
      instead of workbook_read().
      * src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
      * src/plugin-service
      Created GnumPluginFileOpener and GnumPluginFileSaver classes (derived
      from GnumFileOpener and GnumFileSaver respectively). Moved contents of
      plugin_service_file_saver_save_func into
      gnum_plugin_file_opener_probe, gnum_plugin_file_opener_open,
      gnum_plugin_file_saver_save methods (slightly modified).
      (plugin_service_file_opener_read): Read "open" and "import" attributes
      of <service> tag.
      plugin_service_file_opener_cleanup): Register/unregister created
      file opener (GnumPluginFileOpener object) as normal opener and/or
      importer depending on "open" and "import" XML attributes.
      plugin_service_file_opener_cleanup): Register/unregister created
      file saver (GnumPluginFileSaver object).
      * src/plugin-service.h
      (struct _PluginServiceFileOpener):
      Added can_open and can_import fields.
      (struct _PluginServiceFileSaver):
      * src/plugin-loader-module.c
      (struct ServiceLoaderDataFileOpener, struct ServiceLoaderDataFileSaver),
      * src/stf.c
      (stf_read_workbook, stf_write_workbook): Signature change
      (don't return gboolean).
      (stf_init): Adjusted to file i/o interface changes.
      (gnumeric_xml_get_opener, xml_probe):
      (gnumeric_xml_read_workbook, gnumeric_xml_write_workbook): Signature
      change (don't return gboolean).
      (xml_init): Adjusted to file i/o interface changes.
  19. 14 May, 2001 1 commit
  20. 12 May, 2001 1 commit
    • Jody Goldberg's avatar
      add sheet_merge. (xml_sax_start_element) : add sheet_merge, and · eb7517d7
      Jody Goldberg authored
      2001-05-11  Jody Goldberg <jgoldberg@home.com>
      	* xml-sax-read.c (xml_sax_characters) : add sheet_merge.
      	(xml_sax_start_element) : add sheet_merge, and sheet_merged_regions.
      	(xml_sax_end_element) : call xml_sax_parse_merge.
      	(xml_sax_parse_merge) : new function.
      	(xml_sax_parse_sheet_end) : new function to set the zoom after the
      	(xml_sax_parse_sheet_start) : renamed from xml_sax_parse_sheet.
      	(xml_parse_sheet_zoom) : just store the zoom don't set till later.
      	(xml_sax_cols_rows) : new function.
      2001-05-10  Jody Goldberg <jgoldberg@home.com>
      	* xml-sax-read.c (xml_sax_parse_attr_bool) : new function.
      	(xmlSaxParseSheet) : use it here.
      	(xml_sax_parse_wb) : fix inverted cmp.
      	(xmlSaxParseSheet) : no sheet yet here.  Just store the prefs for
      	(xmlSaxParseSheet) : use any saved prefs.
      	(xml_sax_file_open) : typo.
      2001-05-11  Jody Goldberg <jgoldberg@home.com>
      	* src/application.c (application_real_time_auto_expr_recalc) : new
      	* src/sheet.c (auto_expr_timer_clear) : new function.
      	(sheet_update) : toggle the selection_content_changed flag here and
      	  use a timer rather than an idle handler.
      	* src/workbook-edit.c (wbcg_edit_ctor) : Init the sensitivity timer.
      	* src/workbook-control-gui.c (workbook_setup_edit_area) : Use
      	(wbcg_destroy) : use wbcg_edit_dtor.
      	* src/main.c (gnumeric_main) : setlocale (LC_ALL, NULL) to force
      	  initialization of LC_* from the environment.
  21. 10 May, 2001 1 commit
  22. 12 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      fix chema's spanning problem. · 5c3d4bf0
      Jody Goldberg authored
      2001-04-10  Jody Goldberg <jgoldberg@home.com>
      	* src/cellspan.c (cell_calc_span) : fix chema's spanning problem.
      	* src/workbook-control-gui.c (workbook_menu_data) : Add an icon for
      	  the sort menu item.
      2001-04-9  Jody Goldberg <jgoldberg@home.com>
      	* src/commands.c (cmd_colrow_outline_change) : new wrapper for
      	  colrow_hide that handled outline changes.
      	* src/workbook-control-gui.c (cb_insert_{cols,rows}) : cancel edit.
      	(cb_select_auto_expr) : return a value.
      	* src/colrow.c (cb_col_row_visibility) : Use get rather than fetch.
      	(colrow_find_outline_bound) : new function.
      	(cb_colrow_visibility) : turn this into a wrapper for.
      	(colrow_visibility) : this, and add honour_collapse flag.
      	  invert the search to go fro mthe end to the start in preparation for
      	  supporting the honour_collapse flag.  Insert the items into a sorted
      	  list in case we want to merge them some day.
      	(colrow_get_outline_toggle) : use new routine here too.
      2001-04-05  Jody Goldberg <jgoldberg@home.com>
      	* src/item-bar.c (item_bar_event) : Doh!  The outline events are
      	  controled by the minor coordinate.
      2001-04-01  Jody Goldberg <jgoldberg@home.com>
      	* src/main.c (gnumeric_main) : shut plugins down first.
  23. 30 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      remove style_debug option tha was unused. It was only mostly unused :-) · bd9663e4
      Jody Goldberg authored
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      	* src/main.c : remove style_debug option tha was unused.
      	* src/mstyle.c (mstyle_elements_equal) : It was only mostly unused :-)
      	* src/workbook-control-gui.c (wbcg_menu_state_sheet_count) : fix.
      	* src/item-bar.c (is_pointer_on_division) : robustify in the face of
      	  clicking out of bounds.
      	(item_bar_event) : ditto, also simplfy a bit.
  24. 20 Mar, 2001 1 commit
    • Chyla Zbigniew's avatar
      Moved XL support from Gnumeric binary into real plugin. · aec1f2bf
      Chyla Zbigniew authored
      Moved XL support from Gnumeric binary into real plugin.
      * src/Makefile.am
      (gnumeric_libs): Removed ../plugins/excel/libexcel.a
      * src/main.c:
      - include "../plugins/excel/boot.h"
      - xxx_debug variables
      - (gnumeric_popt_options) excel debugging options
      - excel_init() and excel_shutdown() calls
  25. 20 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      remove inclusion of embeddable-grid.h this causes problems in the release · 8bfaab32
      Jody Goldberg authored
      2001-02-20  Jody Goldberg <jgoldberg@home.com>
      	* src/main.c : remove inclusion of embeddable-grid.h this causes
      	  problems in the release because main.c then depends on files that
      	  are only available in the ENABLE_BONOBO case.
      	* src/item-bar.c (bar_draw_cell) : set the clip for the text.  no need
      	  to clip a rectangle or shadow whose boundaries we define.
      	* src/sheet-control-gui.c (scg_redraw_cell_region) : Handle shrinkage.
  26. 14 Feb, 2001 1 commit
  27. 11 Feb, 2001 3 commits
  28. 25 Jan, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added error-info.[ch] · fbc4a7c5
      Chyla Zbigniew authored
      * src/Makefile.am (GNUMERIC_BASE_SOURCES): Added error-info.[ch]
      * error-info.[ch]: New files.
      * src/plugin.[ch]: New plugin engine.
      * src/dialogs/dialog-plugin-manager.c,
      New plugin manager.
      * src/main.c (gnumeric_main): Call plugins_shutdown() on shutdown.
      * src/bonobo-io.c
      (gnumeric_bonobo_write_workbook, gnumeric_bonobo_read_workbook,
      gnumeric_bonobo_io_probe): Added "user_data" arg.
      (gnumeric_bonobo_io_init): Saving saver/opener id.
      * src/file-autoft.c (gnumeric_extra_autoformat_dirs): Used
      gnumeric_config_get_string_list function.
      * src/file.c
      (file_format_register_open, file_format_register_save): Added
      user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save): Take
      only FileOpenerId/FileSaverId as parameter.
      (get_file_saver_by_id, get_file_opener_by_id): New functions.
      (do_load_from): Pass user_data parameter to "probe" and "open"
      (workbook_save_as, workbook_save): Pass user_data parameter to "save"
      * src/file.h
      (FileFormatProbe, FileFormatOpen, FileFormatSave): Adder user_data
      (struct _FileOpener, struct _FileSaver): Added opener_id/saver_id
      (file_format_register_open, file_format_register_save):
      Added user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save):
      Take only FileOpenerId/FileSaverId as parameter.
      * src/gnumeric-util.[ch]
      (gnumeric_error_info_dialog_show, static ctree_insert_error_info):
      New functions displaying dialog with ErrorInfo contents.
      * src/gui-file.c (gui_file_import): Pass user_data parameter to
      "open" function.
      * src/gutils.[ch]
      New functions: gnumeric_config_get_string_list,
      gnumeric_config_set_string_list, g_string_list_copy,
      (g_create_list): Added missing va_end().
      * src/stf.c (stf_read_workbook, stf_write_workbook): Added user_data
      * src/workbook.[ch] (workbook_set_saveinfo): Now takes file_saver_id
      instead of save_fn.
      * src/xml-io.c
      (xml_probe, gnumeric_xml_read_workbook, gnumeric_xml_write_workbook):
      Added user_data parameter.
      (xml_init): Store xml_opener_id and xml_saver_id.
      (gnumeric_xml_get_opener_id, gnumeric_xml_get_saver_id): New
  29. 31 Dec, 2000 1 commit
  30. 25 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      clean up includes. · 0ae4c759
      Jody Goldberg authored
      2000-12-25  Jody Goldberg <jgoldberg@home.com>
      	* src/ranges.h : clean up includes.
  31. 10 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      comment out the warning. These the life cycles of names are too fluid to · e605d42e
      Jody Goldberg authored
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      	* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out the
      	  warning.  These the life cycles of names are too fluid to scare
      	  users yet.
      	(expr_name_invalidate_refs_wb) : Ditto.
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      	* src/cell.c (cell_set_text) : send the current format to the
      	  number matcher..
      	* src/sheet.c (sheet_cell_set_text) : Ditto.
      	* src/parse-util.c (parse_text_value_or_expr) : send the curent
      	  format to the number matcher.
      	* src/number-match.c (format_match) : take the current format as a
      	  parameter.  Begin using it to handle cells formated as text.
      	* src/format.c (style_format_is_text)  utility routine.
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      	* src/selection.c (sheet_selection_set_internal) : rename from
      	  sheet_selection_set and add the 'just_add_it' flag to indicate that
      	  we don't need to do anything fancy.
  32. 09 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      delete. (sheet_object_set_bounds) : Delete. (sheet_object_set_sheet) : new · 313e9dc3
      Jody Goldberg authored
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-object.c (sheet_object_construct) : delete.
      	(sheet_object_set_bounds) : Delete.
      	(sheet_object_set_sheet) : new function.
      	(sheet_object_clear_sheet) : new function.
      	(sheet_object_read_xml) : implement.
      	(sheet_object_write_xml) : implement.
      	(sheet_object_range_get) : support setting the range without a having
      	  a sheet.
      	(sheet_relocate_objects) : Use set_sheet & clear_sheet.
      	(sheet_object_register) : new function.
      	* src/sheet-object-widget.c (sheet_widget_checkbox_set_sheet) : new
      	  function.  we need to move the dependent into the new sheet.
      	(sheet_widget_checkbox_clear_sheet) :  ditto.
      	* src/sheet-object-graphic.c : (sheet_object_graphic_{read,write)_xml) :
      	  new functions.
      	(sheet_object_filled_{read,write)_xml) : new functions.
      	* src/sheet-object-container.c (view_activated_cb) : no more
      	* src/sheet-object-cell-comment.c (cell_comment_{read,write)_xml) :
      	  new functions.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_{read,write)_xml) :
      	  New functions.  These need work.  the 'read_fn' and 'write_fn' do
      	  not merge nicely yet.
      	* src/main.c (gnumeric_main) : Register the sheet obect types.
      	  We need this until the plugin scheme is ready.
      	* src/item-grid.c (cb_obj_create_button_release) : Use set_sheet
      	  rather than realize.
      	* src/bonobo-io.c (gnumeric_bonobo_obj_write) : constness.
  33. 07 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Add some new icons · 850e9b36
      Jody Goldberg authored
      2000-12-07  Jody Goldberg <jgoldberg@home.com>
      	* src/application.c (application_init) : Add some new icons
      	* src/gnumeric.xml : Use the new icons
      	* src/workbook-control-gui.c : Ditto
      	* src/workbook-format-toolbar.c : Ditto.
  34. 05 Dec, 2000 1 commit