1. 13 Apr, 2002 1 commit
    • Jon Kåre Hellan's avatar
      s/ENABLE_BONOBO/WITH_BONOBO/ · 0390e6ca
      Jon Kåre Hellan authored
      * src/gui-file.c: s/ENABLE_BONOBO/WITH_BONOBO/
      
      * src/gui-util.c: Ditto.
      
      * src/history.c: Ditto.
      
      * src/main.c: Ditto.
      
      * src/sheet.c: Ditto.
      
      * src/sheet-object.c: Ditto.
      
      * src/workbook-control-gui.c: Ditto.
      
      * src/workbook-format-toolbar.c: Ditto.
      
      * src/workbook-object-toolbar.c:
      
      * src/workbook.c: Ditto.
      
      * src/workbook-private.c: Ditto.
      
      * src/xml-io.c: Ditto.
      
      * plugins/excel/ms-chart.c: Ditto
      
      * plugins/excel/ms-excel-read.c: Ditto
      0390e6ca
  2. 25 Feb, 2002 1 commit
  3. 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/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  4. 23 Jan, 2002 1 commit
  5. 21 Dec, 2001 1 commit
  6. 07 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      new. (sheet_colrow_insert_finish) : new. (sheet_colrow_delete_finish) : · d5d25622
      Jody Goldberg authored
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_set_collapse) : new.
      	(sheet_colrow_insert_finish) : new.
      	(sheet_colrow_delete_finish) : new.
      	(sheet_{col,row}_{ins,del} : use them here, we shoulw now correctly
      	  handle collapse states and gutters when ins/del cols/row.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_gutter) : change signature and toggle the
      	  resize flag if necessary.
      	(sheet_update_only_grid) : handle the resize and
      	  recompute_max_{col,row}_group flags.
      
      	* src/colrow.c (colrow_set_states) : use simplified
      	  sheet_colrow_gutter signature.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-cmd-format.c (sheet_dialog_set_row_height) : const.
      
      	* src/workbook-object-toolbar.c : disable some code that is not ready
      	  for release.
      
      	* src/sheet.c (sheet_colrow_insdel_finish) : new.
      	(sheet_{col,row}_{ins,del} : use it here, and adjust the arguments to
      	  include optional state to fill in the new cols/rows.
      	(sheet_colrow_fit_gutter) : simplify.
      	(sheet_colrow_group_ungroup) : ditto.
      	(sheet_colrow_fetch) : new utility.
      	(sheet_colrow_get_info) : ditto.
      
      	* src/sheet-control-gui.c (scg_setup_group_buttons) : new.
      	(scg_resize) : use it here.
      	(sheet_control_gui_new) : handle the layout for the group buttons.
      
      	* src/print.c (compute_group) : const.
      
      	* src/item-grid.c (item_grid_draw) : remove pointless use of
      	  ColRowInfo::pos because I want to remove that eventually.
      	* src/print-cell.c (print_cell_range) : ditto.
      
      	* src/item-bar.c (item_bar_normal_font) : new.
      	(item_bar_indent) : new.
      	(item_bar_draw) : draw the top line as black, to match other buttons,
      	 fix its length.
      
      	* src/history.c (history_menu_locate_separator) : sync with manu
      	  changes.
      
      	* src/gnumeric.h
      	(ColRowStateGroup) : rename from ColRowSizeList.
      	(ColRowStateList) : rename from ColRowRLESizeList.
      
      	* src/gnumeric-canvas.c (gnm_canvas_find_col) : const.
      
      	* src/complete-sheet.c (complete_sheet_search_iteration) : const.
      
      	* src/commands.c (cmd_ins_del_colrow_undo) : pass the states into the
      	  sheet_ routines.  They will handle restoring them, and cleaning up the
      	  collapse states.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_destroy) : simplify.
      	(cmd_colrow_outline_change) : use get_info and avoid the need to check
      	  for NULL.
      	(cmd_group_undo) : simplify.
      	(cmd_group_redo) : ditto.
      	(cmd_group) : simplify.
      
      	* src/colrow.c (colrow_compute_pixels_from_pts) : move here from
      	  sheet.c
      	(colrow_compute_pts_from_pixels) : ditto.
      	(colrow_is_default) : new utility routine so that we can remove ::pos
      	  eventually.
      	(ColRowState) : new struct, will eventually replace the ColRowInfo.
      	(colrow_make_state) : new.
      	(colrow_get_states) : renamed from colrow_save_sizes and add support
      	  for outline levels and collapse state.
      	(colrow_set_sizes) : use the correct aliases for the lists.
      	(colrow_set_states) : renamed from colrow_restore_sizes and support
      	  the extra state info.
      	(colrow_restore_state_group) : rename colrow_restore_sizes_group.
      	(colrow_set_outline) : simplify.
      
      2001-12-05  Jody Goldberg <jody@gnome.org>
      
      	* src/colrow.c (colrow_state_group_destroy) : rename from
      	colrow_rle_size_list_destroy.
      
      	* src/cellspan.c (cell_calc_span) : const.
      
      2001-11-29  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-control-gui.c (scg_resize) : size the select all button.
      
      	* src/item-bar.c (item_bar_indent) : new utility.
      d5d25622
  7. 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
      8ba4a43f
    • 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-advanced-filter.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-plugin-manager.c,
      src/dialogs/dialog-printer-setup.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-private.h,
      src/dialogs/dialog-stf-export-sheet-page.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/gnumeric-vscrollbar.c,
      src/widgets/widget-editable-label.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.
      ac93e10a
  8. 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
      	  stupid.
      	(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
      	  fonts.
      
      	* 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.
      99073bd9
  9. 27 May, 2001 1 commit
    • 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
  10. 21 May, 2001 2 commits
    • Chyla Zbigniew's avatar
      Commented some code to allow gnumeric-bonobo compilation. I haven't tested · 1ef0616b
      Chyla Zbigniew authored
      
      Commented some code to allow gnumeric-bonobo compilation. I haven't tested
      ma last patch with bonobo build (stupid me) and now I must fix this really
      soon.
      1ef0616b
    • 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,
      _GnumFileSaverClass.
      
      * src/workbook.h
      (struct _Workbook): Added file_saver_sig_id field.
      s/FileSaver/GnumFileSaver/
      (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
      simplified.
      (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):
      s/FileSaver/GnumFileSaver/
      
      * src/plugin-service
      Created GnumPluginFileOpener and GnumPluginFileSaver classes (derived
      from GnumFileOpener and GnumFileSaver respectively). Moved contents of
      plugin_service_file_opener_probe_func,
      plugin_service_file_opener_open_func,
      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_initialize,
      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_initialize,
      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.
      s/FileOpener/GnumFileOpener/
      (struct _PluginServiceFileSaver):
      s/FileSaver/GnumFileSaver/
      
      * src/plugin-loader-module.c
      (struct ServiceLoaderDataFileOpener, struct ServiceLoaderDataFileSaver),
      gnumeric_plugin_loader_module_func_file_probe,
      gnumeric_plugin_loader_module_func_file_open,
      gnumeric_plugin_loader_module_func_file_save):
      s/FileOpener/GnumFileOpener/
      s/FileSaver/GnumFileSaver/
      
      * src/stf.c
      (stf_read_workbook, stf_write_workbook): Signature change
      (don't return gboolean).
      (stf_init): Adjusted to file i/o interface changes.
      
      src/xml-io.[ch]
      (gnumeric_xml_get_opener, xml_probe):
      s/FileOpener/GnumFileOpener/
      (gnumeric_xml_get_opener):
      s/FileSaver/GnumFileSaver/
      (gnumeric_xml_read_workbook, gnumeric_xml_write_workbook): Signature
      change (don't return gboolean).
      (xml_init): Adjusted to file i/o interface changes.
      33d35aa2
  11. 31 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      s/float_t/gnum_float/ s/int_t/gnum_int/ · 9eaf277a
      Jody Goldberg authored
      
      2001-01-30  Jody Goldberg <jgoldberg@home.com>
      
      	s/float_t/gnum_float/
      	s/int_t/gnum_int/
      
      	* src/sheet-style.c (sheet_style_get_uniform) : implement.
      
      	* src/parse-util.c (parse_text_value_or_expr) : dont loose the entered
      	  text.
      
      	* src/history.c (history_menu_insert_separator) : keep case
      	  consistent.
      	* src/workbook-control-gui.c (workbook_menu_file) : ditto.
      
      	* configure.in : update GAL req.
      	* README : ditto.
      	* gnumeric.spec.in : ditto.
      
      2001-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.h : decl for StyleRow.
      
      	* src/xml-io.c : Use the Child and Root aliases to ease ease
      	  transition from xml1 -> xml2.
      	(xml_sheet_create) : default name for sheets that fail to specify one.
      
      	* src/workbook.c (workbook_sheet_by_index) : improve safety.
      9eaf277a
  12. 12 Jan, 2001 1 commit
    • Morten Welinder's avatar
      Plug leak. · 1df76530
      Morten Welinder authored
      2001-01-12  Morten Welinder  <terra@diku.dk>
      
              * src/history.c (file_history_cmd) [ENABLE_BONOBO]: Plug leak.
      1df76530
  13. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  14. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  15. 12 Oct, 2000 1 commit
    • Jon K Hellan's avatar
      Require bonobo >= 0.21. We now use bonobo_ui_util_encode_str - added since · a2521fce
      Jon K Hellan authored
      2000-10-12  Jon K Hellan  <hellan@acm.org>
      
      	* configure.in: Require bonobo >= 0.21. We now use
      	bonobo_ui_util_encode_str - added since 0.20.
      
      	* src/gnumeric.xml: Bonobo no longer supports placeholder
      	delimit="both". Use "top" and a separator instead. Indicate
      	separators by <separator/> instead <menuitem/>. Change last
      	remaining descr to _tip.
      
      	* src/history.c (history_menu_insert_items): Bonobo changed
      	again. We fix.
      	(file_history_cmd): Use "tip" instead of "descr"
      a2521fce
  16. 11 Oct, 2000 2 commits
  17. 06 Oct, 2000 1 commit
    • Jon K Hellan's avatar
      Add rudimentary filename canonicalization, so that we do not save relative · a924a88a
      Jon K Hellan authored
      2000-10-07  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-view.c (workbook_view_history_update): Add
      	rudimentary filename canonicalization, so that we do not save
      	relative file names to history list.
      
      	* src/history.c (file_history_cmd): Adapt to new bonobo UI API.
      	(history_menu_insert_items): Complete adaptation to new Bonobo UI
      	API.
      	(history_menu_remove_items): Ditto. Also: Disentangle Bonobo and
      	non Bonobo cases.
      
      	* src/gnumeric.xml: Move FileHistory placeholder in front of
      	FileClose.
      a924a88a
  18. 05 Oct, 2000 1 commit
    • Michael Meeks's avatar
      look for bonobo >= 0.20 · dd659fff
      Michael Meeks authored
      2000-10-05  Michael Meeks  <michael@helixcode.com>
      
      	* configure.in (gnumeric_executable): look for bonobo >= 0.20
      
      	* src/workbook.c (setup_progress_bar): upd.
      
      	* src/gnumeric-util.c (gnumeric_inject_widget_into_bonoboui): upd.
      
      	* src/workbook.c s/BONOBO_UI_VERB/BONOBO_UI_UNSAFE_VERB/
      
      	* src/history.c (history_menu_insert_items): upd.
      	(history_menu_remove_items): upd.
      dd659fff
  19. 23 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Use stock icons. Ditto. Ditto. Add more verbs. · 1c9409f7
      Jody Goldberg authored
      
      2000-09-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c : Use stock icons.
      	* src/workbook-object-toolbar.c : Ditto.
      	* src/workbook.c : Ditto.  Add more verbs.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : toolbar
      	  sensitization is broken for bonobo.
      
      	* src/gnumeric.xml : The beginings of toolbar support.
      
      	* src/application.c : Register all pixmaps as stock icons.
      
      2000-09-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/history.c (history_menu_insert_separator) : Use
      	  history_menu_locate_separator.  This is crufty.
      1c9409f7
  20. 17 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      GraphSeries is responsible for registering. · 8259d107
      Jody Goldberg authored
      2000-09-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-graph-guru.c (cb_create_series_from_range) :
      	  GraphSeries is responsible for registering.
      
      	* src/history.c : Attempt to convert to the new bonobo ui handler.
      
      	* src/graph-series.c (graph_series_eval) : Support string and date
      	  series.
      	(series_get_name) : New function.
      	(impl_vector_scalar_value) : Use it here.
      	(impl_vector_date_value) : here
      	(impl_vector_string_value) : and here.
      	(cb_check_range_for_pure_string) : new function.
      	(graph_series_new) : Start guess whether a series is scalar or string.
      	(graph_series_servant) : Delete.
      	(graph_series_set_subscriber) : Take responsibility for registering
      	  with the remote Graph::Manager.
      
      	* src/gnumeric.xml : Remove bogus '/menu/File/open' placeholder
      	  Name the '/menu/File/FileHistory' placeholder.
      
      	* src/sheet-object-container.c (sheet_object_container_update_bounds)
      	  Fix off by 1 error here.
      	(make_container_item) : And here.
      
      	* src/sheet-object.c (sheet_object_add_view) : Renamed from
      	  sheet_view_object_realize.
      	(sheet_object_remove_view) : Renamed from sheet_view_object_unrealize.
      	(control_point_handle_event) : Enable edit popup from control points.
      8259d107
  21. 15 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Use placeholder for file history. How to have multiple place holders ? · d50e95d8
      Jody Goldberg authored
      
      2000-09-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric.xml : Use placeholder for file history.
      	  How to have multiple place holders ?
      
      	* src/history.c (history_menu_insert_items) : Quick fix to reduce
      	  number of warnings.
      
      	* src/sheet-object.c (sheet_object_stop_editing) : Use set_active.
      	(sheet_mode_edit_object) : Ditto.
      d50e95d8
  22. 06 Sep, 2000 2 commits
    • Michael Meeks's avatar
      Check for bonobo 0.19 · f1ca24dc
      Michael Meeks authored
      2000-09-06  Michael Meeks  <michael@helixcode.com>
      
      	* configure.in: Check for bonobo 0.19
      
      	* src/workbook.c: Add/Modify -> Add\\Modify for now.
      
      	* src/workbook-view.c (workbook_view_set_title): use get_toplevel
      	(workbook_view_set_size):
      
      	* src/workbook-private.h: add a main_vbox to put toolbars into.
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	hack for non-bonobized toolbars.
      
      	* src/workbook.c (workbook_show, workbook_hide, workbook_get_toplevel):
      	helper functions.
      
      	* src/corba-workbook.c (Workbook_show): use workbook show/hide
      
      	* src/analysis-tools.c (prepare_output): ditto.
      
      	* src/main.c (gnumeric_main): ditto.
      
      	* src/clipboard.c (clipboard_paste, x_selection_received),
      	(x_clipboard_bind_workbook): ditto.
      
      	* src/application.c (application_set_selected_sheet): use
      	workbook_get_toplevel
      
      	* src/history.c (file_history_cmd): ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): ditto.
      
      	* src/xml-io.c (xml_workbook_write): get_toplevel upd.
      
      	* src/workbook.c (new_cmd, file_open_cmd, file_import_cmd): show / hide.
      	(workbook_setup_edit_area): get_toplevel
      f1ca24dc
    • Jody Goldberg's avatar
      Remainder of patch to handle non-cell dependents. · 01a95234
      Jody Goldberg authored
      2000-09-05  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add test for pspell.
      	* acconfig.h : Ditto.
      
      	* s/cell.u.expression/cell.base.expression/
      	* s/cell.generation/cell.base.generation/
      	* s/cell.u.entered_text/cell.entered_text/  <- deprecated
      	* s/workbook.formula_cell_list/workbook.dependents/
      
      	* s/sheet_cell_expr_link/dependent_expr_link/
      	* s/sheet_cell_expr_unlink/dependent_expr_unlink/
      
      	* s/eval_queue_cell/dependent_queue_recalc/
      	* s/eval_queue_list/dependent_queue_recalc_list/
      	* s/eval_unqueue_cell/dependent_unqueue_recalc/
      	* s/eval_unqueue_sheet/dependent_unqueue_recalc_sheet/
      	*
      	* s/cell_add_dependencies/dependent_add_dependencies
      	* s/cell_drop_dependencies/dependent_drop_dependencies
      
      	* s/cell_formula_changed/dependent_changed/
      	* s/sheet_cell_expr_link/dependent_link/
      	* s/CELL_IN_EXPR_LIST/DEPENDENT_IN_EXPR_LIST/
      
      	* src/cell.c (cell_eval_content) : moved from eval.c
      
      	* src/eval.c (sheet_region_get_deps) : Take a Range rather than 4 int.
      	(drop_range_dep) : Use dependent_debug_name.
      	(dependency_range_ctor) : Take a CellPos as an arg rather than a Cell.
      	(handle_cell_single_dep) : Take an optional CellPos and a Dependent.
      	(handle_cell_range_deps) : Ditto. Do not check for singletons here.
      	(handle_tree_deps) : Ditto.  Call handle_cell_single_dep directly.
      	(cell_add_explicit_dependency) : Delete.
      	(get_single_dependencies) : Some const.
      
      	* src/cmd-edit.c (cmd_select_cur_depends) : Use dependent_list_filter
      	  to only show cell dependencies for now.
      
      	* src/dependent.c (dependent_list_filter) : new function.
      	(dependent_debug_name) : new function.
      
      	* src/history.c : Add a comment about File/Print Preview for
      	  translators.
      
      	* src/workbook.c (cb_cell_rerender) : Only cells need this.
      01a95234
  23. 10 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Bug 16860 A few portability problems. · 7b8afaf0
      Jody Goldberg authored
      Bug 16860
      A few portability problems.
      
      2000-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/history.c (history_menu_item_create) : Fix.
      
      	* src/stf-parse.c (stf_parse_options_before_modification) : Simplify
      	  for irix compiler.
      
      	* src/print-info.c (print_info_new) : cellrange is a ValueRange.
      	(save_range) : Ditto.
      	* src/dialogs/dialog-printer-setup.c (do_setup_page_info) : Ditto.
      	(do_fetch_page_info) : Ditto.
      7b8afaf0
  24. 18 Jun, 2000 1 commit
  25. 13 Jun, 2000 2 commits
    • Morten Welinder's avatar
      Change "_" to "-", fixing around 14183. · f574bc52
      Morten Welinder authored
      2000-06-14  Morten Welinder  <terra@diku.dk>
      
      	* src/history.c (history_item_label): Change "_" to "-", fixing
       	around 14183.
      f574bc52
    • Jody Goldberg's avatar
      - Initial version of formula guru · d69ee3cb
      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
      	  sheet_load_cell_val.
      	(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
      	  workbook_get_entry_logical.
      	(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
      	  workbook_new_with_sheets.
      	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
      	  object.
      
      	* 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
      	  GtkObject.
      	(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
      	  semantics.
      
      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
      	  optimization.
      d69ee3cb
  26. 07 Jun, 2000 1 commit
  27. 31 May, 2000 1 commit
    • Jody Goldberg's avatar
      undo support for shift range. · 232b5ec2
      Jody Goldberg authored
      The first half of the solution to the paste_cut problems.
      
      2000-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_destroy) : Fix leak.
      	(cmd_paste_cut_*) : We do need to worry about invalidations.  Any
      	  references to the portions of the destination region that do not
      	  overlap the src region get invalidated.
      
      	* src/ranges.c (range_translate) : Adjust the semantics so that the
      	  result warns of a range that was translated completly out of bounds.
      
      	* src/sheet.c (sheet_move_range) : Invalidate the references to the
      	  portions of the destination range that do NOT overlap with the src.
      	(sheet_shift_{cols,rows}) : Rename and move to..
      	* src/cmd-edit.c (cmd_shift_{cols,rows}) : here.  Use cmd_paste_cut
      	  instead of sheet_move_range directly.
      
      	* src/dialogs/dialog-{insert,delete}.c : Switch to cmd_shift_{cols,rows}.
      
      	* src/history.c (history_menu_insert_separator) : Add a more detailed
      	  explaination when the history lookup fails.
      232b5ec2
  28. 29 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Make the sheet_sep, and range_sep conditional so that I can use the parser · a8649632
      Jody Goldberg authored
      
      2000-04-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parser.y : Make the sheet_sep, and range_sep conditional
      	  so that I can use the parser for applix too.
      
      	* src/workbook.c (workbook_unref) : encapsulate workbook_unref.
      
      	* src/application.c (application_init) : Do not save the value if it
      	  is not there.  Fix typo.
      
      	* src/mstyle.c (mstyle_unref) : If the default style is released
      	  clear the cached pointer.  This can happen if the first workbook
      	  loaded fails.
      a8649632
  29. 12 Apr, 2000 1 commit
    • Jon K Hellan's avatar
      Really add accelerators to history menu items. · f3e64d9d
      Jon K Hellan authored
      2000-04-12  Jon K Hellan  <hellan@acm.org>
      
      	* src/history.c (history_menu_item_create): Really add
      	accelerators to history menu items.
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_random_tool): Bug:
      	Dialog would quit when combo list was popped via keyboard. Fix:
      	Remove gnome_dialog_editable_enters from distribution combo.
      
      2000-04-11  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-zoom.c (focus_to_custom): New callback: Set
      	focus to custom spinbutton when custom radiobutton is checked.
      	(dialog_zoom_impl): Connect the callback.
      
      	* src/dialogs/dialog-analysis-tools.c (focus_on_entry): New
      	callback: Set focus to output range entry when output range
      	radiobutton is checked.
      	(set_output_option_signals): Connect the callback.
      	(distribution_parbox_config): Only add accelerator if we've got
      	one.
      f3e64d9d
  30. 07 Apr, 2000 1 commit
    • Morten Welinder's avatar
      Leaks. · 7760802e
      Morten Welinder authored
      2000-04-07  Morten Welinder  <terra@diku.dk>
      
      	* src/selection.c (sheet_selection_reset_only): Free the right list.
      	(sheet_is_range_selected): Avoid double assignment.
      	(sheet_is_cell_selected): Ditto.
      
      	* src/history.c (history_menu_remove_items): Plug leak.
      7760802e
  31. 04 Apr, 2000 1 commit
    • Jon K Hellan's avatar
      Call gnumeric_sheet_make_visible only if sheet widget is realized. · affafc8a
      Jon K Hellan authored
      2000-04-04  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-view.c (sheet_view_set_zoom_factor): Call
      	gnumeric_sheet_make_visible only if sheet widget is realized.
      	(sheet_view_make_edit_pos_visible): New function: Make cell at
      	edit position visible.
      	(sheet_view_size_allocate): Add call to
      	sheet_view_make_edit_pos_visible.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible): Add
      	comment.
      
      	* src/xml-io.c (xml_sheet_read): Read zoom into a local variable
      	before calling sheet_set_zoom_factor. Otherwise,
      	sheet_set_zoom_factor would assume that it had already initialized
      	this factor.
      
      	* src/workbook.c (change_zoom_in_current_sheet_cb): No longer call
      	change_displayed_zoom_cb, sheet_set_zoom_factor will call it
      	indirectly.
      
      	* src/workbook.[ch] (workbook_class_init,
      	workbook_focus_current_sheet, workbook_create_standard_toobar):
      	Rename "sheet_changed" signal to "sheet_entered".  Remove
      	"cell_changed" signal.
      	(workbook_focus_current_sheet): Rename "sheet_changed" signal to
      	"sheet_entered".
      	(workbook_zoom_feedback_set): New function: Update zoom combo in
      	toolbar when zoom changes.
      
      	* src/sheet.c (sheet_update_zoom_controls): New function: Update
      	zoom controls when zoom changes.
      	(sheet_set_zoom_factor): Use it.
      	(sheet_load_cell_val): Do not emit "cell_changed".
      
      	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply):
      	Call sheet_update_controls to update toolbar controls.
      
      	* src/history.c (file_history_cmd): Remove pristine workbook when
      	a new one is read in. For consistency with File/Open, File/Import
      	and Bonobo File/History.
      
      	* src/dialogs/dialog-workbook-attr.c
      	(cb_attr_dialog_dialog_apply): Include workbook-view.h to get
      	prototype for workbook_view_pref_visibility.
      
      	* src/border.h (style_border_print): Remove bogus const in  prototype.
      	Reported by Aron Griffis.
      affafc8a
  32. 24 Mar, 2000 2 commits
    • Morten Welinder's avatar
      Fixing crash on exit after every single save! · 75f5273b
      Morten Welinder authored
      2000-04-23  Morten Welinder  <terra@diku.dk>
      
      	* src/history.c (history_menu_remove_items): Don't crash.
      75f5273b
    • Morten Welinder's avatar
      Stabilise regression tool -- still does not work. · a26a4a65
      Morten Welinder authored
      
      
      2000-04-23  Morten Welinder  <terra@diku.dk>
      
      	* src/regression.c (general_linear_regression): Don't do
       	extra_stat in case of error.
      	(general_linear_regression): Zero extra_stat.
      
      	* src/history.c (history_menu_remove_items): Warning killer.
      
      	* src/item-edit.c (scan_at): Fix usual signed/unsigned problem.
      
      	* src/stf-parse.c (stf_parse_csv_is_separator): Ditto.
      	(stf_parse_is_valid_data): Ditto.
      a26a4a65
  33. 23 Mar, 2000 1 commit
    • Jon K Hellan's avatar
      Add "level" parameter. · 16e00012
      Jon K Hellan authored
      2000-03-23  Jon K Hellan  <hellan@acm.org>
      
      	* src/file.[ch] (file_format_register_save): Add "level" parameter.
      
      	* src/file.h: (FileFormatLevel): Add the enum. At the best level,
      	the save command saves to the given name without asking.  At the
      	worst level, no name has been assigned.
      
      	* src/file.c (_FileSaver): Add "level" member.
      	(file_format_unregister_save): Set level to manual for workbooks
      	which had this saver set.
      	(cb_unregister_save): New function. Helper for
      	file_format_unregister_save.
      	(workbook_read): Set save info. Tag as new.
      	(workbook_import): No longer set needs_name - importer will have
      	set file_format_level.
      	(fs_set_filename): New function: Set default filename in the file
      	selection dialog.
      	(workbook_save_as): Use fs_set_filename. Set save info.
      	(workbook_save): Punt to workbook_save_as if file_format_level <
      	AUTO. Save using wb->file_save_fn.
      
      	* src/workbook.[ch] (workbook_set_saveinfo): New function. Set
      	filename, level and save function, but do nothing if we already
      	have info at a higher level.
      
      	* src/workbook.h (struct _Workbook): Replace needs_name with
      	file_format_level. Add file_save_fn member. Include file.h
      	(workbook_set_saveinfo): Add "level" parameter.
      
      	* src/workbook.c (workbook_do_destroy): Insert in history list
      	when file format level > "new". We used to test needs_name.
      	(workbook_is_pristine): Test file_format_level > "new" instead of
      	needs_name true.
      	(workbook_new): Tag workbook as new. Set save function.
      	(workbook_set_filename): needs_name has no longer exists. Don't
      	set it.
      
      	* src/xml-io.c (gnumeric_xml_read_workbook): Set save info. Tag as
      	AUTO.
      	(xml_init): Tag saver as AUTO.
      
      	* src/corba-workbook.c (Workbook_set_filename): Add FIXME comment.
      
      	* src/history.c (history_item_label): Strip extension only when it
      	is ".gnumeric".
      
      	* plugins/dif/dif.c (dif_read_workbook): Set save info, tag as manual.
      	(init_plugin): Tag saver as manual
      
      	* plugins/ecel/boot.c (excel_load): No longer add ".gnumeric"
              to filename. Set save info. Tag filename as MANUAL. We could
              make it AUTO soon.
      	(excel_init): Tag saver as MANUAL.
      
      	* plugins/ff-csv/csv-io.c (csv_read_workbook): Set save info,
              tag as MANUAL.
      	(init_plugin): Tag saver as MANUAL.
      
      	* plugins/html/boot.c (html_init): Tag html savers as AUTO,
              the others as WRITE_ONLY.
      
      	* plugins/lotus-123/boot.c (lotus_load): No longer change
              filename extension to ".gnumeric". Set save info, tag as manual.
      	(LOTUS_TITLE, LOTUS_DESCR): No, we haven't got export.
      
      	* plugins/oleo/boot.c (oleo_load): No longer change filename
              extension to ".gnumeric". Set save info. Tag as MANUAL.
      	(OLEO_DESCR): Fix typo.
      
      	* plugins/plan-perfect/pln.c (pln_read_workbook): Set
              filename, tag it as MANUAL.
      
      	* plugins/sc/sc.c (sc_read_workbook): Set save info, tag as MANUAL.
      
      	* plugins/sylk/sylk.c (sylk_read_workbook): Set save info,
              tag as MANUAL
      
      	* plugins/text/text-io.c (text_read_workbook): Set save info.
              Tag as MANUAL.
      	(text_init): Tag saver as MANUAL.
      
      	* plugins/xbase/boot.c (xbase_load): No longer change filename
              extension to ".gnumeric". Set save info. Tag as MANUAL.
      	(XBASE_TITLE, XBASE_DESCR): No, we haven't got export.
      16e00012
  34. 14 Mar, 2000 1 commit
    • Jon K Hellan's avatar
      ): We introduce numbers in front of the the history file names for the · 1cd2b66f
      Jon K Hellan authored
      2000-03-14  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-view.c (workbook_view_history_update,
      	workbook_view_history_shrink): ): We introduce numbers in front of
      	the the history file names for the following reasons:
      	1. Bonobo won't let you make 2 entries with the same label in the
      	   same menu. But that's what happens if you e.g. access
      	   worksheets with the same name from 2 different directories.
      	2. The numbers are useful accelerators.
      	This means that when a new item is added, all existing entries get
      	a new number. We access them via the label, so we have to remove
      	all the old list entries and make a new list.
      
      	history_menu_flush is called to remove the old list,
      	history_menu_update to build the new.
      
      	* src/history.c
      	(history_item_label): Add accel_number parameter, make label from
      	accel_number and basename. Rename basename variable to label.
      	(history_menu_item_create): Add accel_number parameter. Use it
      	when calling history_item_label.
      	(history_menu_locate_separator): New static function. Locate the
      	menu and position of history separator. They may not yet exist.
      	(history_menu_insert_separator): New static function. Insert the
      	history separator. Return its position and the menu shell.
      	(history_menu_insert_items): New static function. Add the history
      	items to the file menu.
      	(history_menu_remove_items): New static function. Remove the
      	history items from the file menu.
      	(history_menu_setup): Split into lots of twisty little functions,
      	all different.
      	(history_menu_fill): New exported function. Make the menus for
      	the workbooks show the new history list.
      	(history_menu_flush): New exported function. Remove the history
      	list from the file menus of all workbooks.
      	(history_insert_menu_item): Remove.
      	(history_remove_menu_item): Remove.
      
      	* src/history.h
      	(history_menu_fill, history_menu_flush): Declare.
      	(history_insert_menu_item, history_remove_menu_item): Remove.
      1cd2b66f