1. 23 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      delete the 'selection' function. It is no longer possible with a · 778809a4
      Jody Goldberg authored
      2002-06-23  Jody Goldberg <jody@gnome.org>
      	* src/func-builtin.c (func_builtin_init) : delete the 'selection'
      	  function.  It is no longer possible with a sheetview.
      	* src/workbook-control-gui.c (cb_select_auto_expr) : remove
      	  'selection(0)' argument and just pass function name.  The conversion
      	  to SheetView forces a different methodology.
      	* src/workbook-view.c (workbook_view_new) : ditto.
      	(wb_view_auto_expr_recalc) : Make the call manually.
  2. 19 Jun, 2002 2 commits
    • Jody Goldberg's avatar
      no need to unant, that is a view responsibility. · 753f052a
      Jody Goldberg authored
      2002-06-19  Jody Goldberg <jody@gnome.org>
      	* src/sheet.c (sheet_destroy) : no need to unant, that is a view
      	* src/sheet-view.c (sv_weakref_notify) : new.
      	(sv_weak_ref) : new.
      	(sv_weak_unref) : new.
      	(sv_unant) : move here from sheet.
      	(sv_ant) : move here from sheet.
      	(sv_selection_copy): from selection.c
      	(sv_selection_cut) : from selection.c
      	* src/sheet-control.c (sc_view) : new.
      	* src/sheet-control-gui.c (scg_ant) : the animated cursors are now
      	  stored in the view not the sheet.
      	(context_menu_handler) : sync with the workbook control criteria for
      	  enabling paste special.
      	* src/selection.c (sheet_selection_copy) : start the process of
      	  migrating to SheetView and move this there.
      	(sheet_selection_cut) : ditto.
      	* src/item-cursor.c (item_cursor_do_action) : pass a SheetView.
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : pass a
      	* src/corba-sheet.c : untested patch to handle views.
      	* src/commands.c (cmd_ins_del_colrow_undo) : use the sheetview.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_finalize) : remove weakref on the view.
      	(cmd_ins_del_colrow) : add a weak ref to the view.
      	* src/application.c (application_init) : we store a view now, not just
      	  a sheet.
      	(application_clipboard_clear) : update all workbooks, not just this
      	  one, and store the view.
      	(application_clipboard_unant) : use the view.
      	(application_set_selected_sheet) : the selection is now view based.
      	(application_clipboard_cut_copy) : take a view and remove the crufy
      	  enable_paste_special flag.  That is handled locally.
      	(application_clipboard_is_empty) : handle SheetView.
      	(application_clipboard_is_cut) : ditto.
      	(application_clipboard_sheet_get) : ditto.
      	(application_clipboard_sheet_view_get) : ditto.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : Use the
      	  current sheet not some magic sheet.
      	* src/sheet.c (sheet_new) : delete enable_paste_special.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : paste special
      	  is for local copies, use the application data rather than a sheet
      	  local flag.
    • Jody Goldberg's avatar
      renamed from sheet_attach_control. (sheet_detach_view) : renamed from · a4555c21
      Jody Goldberg authored
      2002-06-19  Jody Goldberg <jody@gnome.org>
      	* src/sheet.c (sheet_attach_view) : renamed from sheet_attach_control.
      	(sheet_detach_view) : renamed from sheet_detach_control.
      	* src/sheet-view.c : new.
      	* src/sheet-control.c (sc_sheet_set) : delete bogus.
      	(sc_view) : new.
      	* src/sheet-control-gui.c (sheet_control_gui_new) : A control now takes a
      	  view in place of a model.
      	* src/selection.c (sheet_selection_redraw) : adjustment to
      	* src/gnumeric.h : Add SheetView
      	* src/Makefile.am : Add sheet-view.[ch]
      2002-06-18  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (cb_insert_current_date) : check for
      	  failure to start editing.
      	(cb_insert_current_time) : ditto.
  3. 08 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      libgsf has landed. · 7c1e9d5c
      Jody Goldberg authored
      libgsf has landed.
      2002-06-07  Jody Goldberg <jody@gnome.org>
      	* src/workbook-view.c (wb_view_open) : convert to libgsf.
      	* src/stf.c (stf_open_and_read) : convert to libgsf.
      	(stf_preparse) : ditto.
      	(stf_read_workbook) : ditto.
      	(stf_read_workbook_auto_csvtab) : ditto.
      	(stf_read_default_probe) : ditto.
      	* src/stf-parse.c (stf_parse_is_valid_data) : actually disable the
      	  wide char support if it is not available.
      	* src/gutils.c (gnm_extension_pointer) : copied from libgnome to
      	  decrease our dependence on it.
      	* src/gui-util.c (gnumeric_editable_enters) : modernize a bit.
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : suppress
      	* src/file.c (gnum_file_opener_probe_real) : Use libgsf.
      	(gnum_file_opener_open_real) : ditto.
      	(gnum_file_opener_probe) : ditto.
      	(gnum_file_opener_open) : ditto.
      	(gnum_file_saver_save_to_stream_real) : disable, we can move this out
      	  of here when GsfOutput comes online.
      	* src/collect.c (string_range_function) : suppress warning.
      	* src/cell.c (cell_set_array_formula) : Adjust to the signature change
      	  for gnm_expr_new_array.
      	* src/sheet-autofill.c (autofill_cell) : ditto.
      2002-06-07  Jody Goldberg <jody@gnome.org>
      	* configure.in : require libgsf.
      	* src/xml-io.c (xml_check_version) : move the sanity checking here.
      	(gnumeric_xml_read_workbook) : rather than here.  Support GsfInput.
      	(xml_probe) : and here.
      	(gnumeric_xml_write_workbook_to_stream) : delete.
      2002-05-31  Jody Goldberg <jody@gnome.org>
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : actually
      	  return the result.
  4. 16 Apr, 2002 1 commit
  5. 22 Mar, 2002 1 commit
    • Jody Goldberg's avatar
      Massive rename ExprTree -> GnmExpr · 0ac8fbbf
      Jody Goldberg authored
      2002-03-21  Jody Goldberg <jody@gnome.org>
      	* Massive rename
      	ExprTree -> GnmExpr
      	* src/print-info.c (load_formats) : suppress some warnings.
      	* src/func.c (function_def_call_with_values) : use g_alloca.
  6. 09 Mar, 2002 1 commit
    • Jody Goldberg's avatar
      switch Format->Workbook with Format->AutoFormat ditto. · 73a18b0f
      Jody Goldberg authored
      2002-03-08  Jody Goldberg <jody@gnome.org>
      	* src/GNOME_Gnumeric.xml : switch Format->Workbook with
      	* src/workbook-control-gui.c (workbook_menu_format) : ditto.
      	* src/workbook-view.c (wb_view_is_protected) : new.
      	* src/workbook-edit.c (wbcg_edit_start) : load style directly
      	  don't use cell_get_style.  This enables support for protection of
      	  blank cells.  Use wb_view_is_protected, and command_context_invalid.
      2002-03-08  C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet): don't put us in
      	  edit mode if wbcg_edit_start indicates the cell is locked.
      	* src/workbook-control-gui.c (cb_autosum, cb_autofunction): handle
      	  case where wbcg_edit_start returns FALSE indicating that cell is
      	* src/workbook-edit.c (wbcg_edit_start): this function now returns a
      	   boolean which indicates whether the 'edit_start' attempt succeeded.
      	   Check cell properties to return FALSE if the cell is locked.
      	* src/workbook-edit.h (wbcg_edit_start): modify the prototype as per above.
      	* src/workbook-view.c (wb_view_set_attribute, workbook_view_init):
      	  Remove ARG_VIEW_* enumeration, which isn't used after Gnome2 port.
      	  Add WorkbookView::is_protected attribute, and initialize it to
      	  FALSE.  The update to wb_view_set_attribute is enough to get
      	  xml_sax import working properly (yay, modular code!).
      	* src/workbook-view.h: add 'is_protected' field to WorkbookView struct.
      	  This is TRUE iff the workbook is locked.
      	* src/xml-io.c (xml_write_wbv_attributes):
      	  Write the new 'protected' workbook view attribute.  Two lines are
      	  enough to get read/write from xml_io working.  Score one for
      	  xml_sax: zero should have been sufficient.
      	* src/dialogs/cell-format.glade: The 'worksheet protected' checkbox
      	  shouldn't be greyed-out anymore.
      	* src/dialogs/dialog-cell-format.c (cb_protection_sheet_protected_toggle,
      	fmt_dialog_init_protection_page, cb_fmt_dialog_dialog_buttons):
      	  connect up the 'worksheet protected' button in the
      	  Format->Cells->Protection dialog.  Update worksheet object when
      	  toggled and mark that the dialog's changed.
      	* src/dialogs/dialog-workbook-attr.c src/dialogs/workbook-attr.glade:
      	  Add Format->Worksheet->Protection dialog.
  7. 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
  8. 01 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      A pile of stale commits. · 10a5bf7a
      Jody Goldberg authored
      2002-01-30  Jody Goldberg <jody@gnome.org>
      	* ms-formula-read.c (ms_excel_parse_formula) : give a warning when
      	  dealing with references to external workbooks.
      2002-01-31  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (wbcg_focus_cur_scg) : warning
      	(sheet_control_gui_new) : enable partial scrollbar support.
      	* src/workbook-control.c (wb_control_parse_and_jump) : make defined
      	  names absolute.
      2002-01-30  Jody Goldberg <jody@gnome.org>
      	* src/dialogs/dialog-autoformat.c (templates_load) : changes to
      	* src/xml-io-autoft.c (gnumeric_xml_write_format_template) : take a
      	  context not a control to clarify things.
      	(gnumeric_xml_read_format_template) : ditto.
      	* src/workbook.c (workbook_persist_file_save) : changes to
      	* src/io-context.c (io_context_destroy) : impl is a command context now.
      	(gnumeric_io_context_new) : weaken requirements so that all we need is
      	  a command context.  Not strictly necessary, but makes it less likely
      	  that people will get confused.
      	* src/workbook-view.c (wb_view_save_as) : Take a command context not a
      	  workbook control to avoid confusing what we are saving.
      	(wb_view_save) : ditto.
      	(wb_view_selection_desc) : Implement using an explicit control.
      	(wb_view_open_custom) : add a missing precondition.
      	* src/gui-file.c (do_save_as) : changes to wb_view_save_as.
      	(gui_file_save_to_stream) :  changes to gnumeric_io_context_new.
      	* src/file-autoft.c (category_get_templates_list) : take a command
      	context, not a workbookcontrol.
      	(category_group_get_templates_list) : ditto.
      	* src/format-template.c (format_template_new) : ditto.
      	(format_template_new_from_file) : ditto.
  9. 29 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      move to new sheet widget layout. · b83b3724
      Jody Goldberg authored
      2002-01-29  Jody Goldberg <jody@gnome.org>
      	* ms-excel-read.c (ms_sheet_create_obj) : move to new sheet widget
      2002-01-29  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (cb_notebook_switch_page) : fix changing
  10. 23 Jan, 2002 1 commit
  11. 01 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      generalize and fix leak. (cb_add_clicked) : generalize. (cb_select_row) : · 2ab27ef1
      Jody Goldberg authored
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      	* dialog-autocorrect.c (cb_remove_clicked) : generalize and fix leak.
      	(cb_add_clicked) : generalize.
      	(cb_select_row) : generalize.
      	(autocorrect_init_exception_list) : new.
      	(exceptions_callback) : clean up slightly.
      	(ac_button_toggled) : simplify.
      	(ac_dialog_toggle_init) : new.
      	(dialog_autocorrect) : simplify.  Rather than saving the content
                and restoring on cancel, only store the new values on <OK>.
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-edit.c (entry_changed) : autocomplete is in the wbv now.
      	(wbcg_edit_start) : ditto.
      	* src/sheet-style.c (rstyle_apply) : fix some silliness in the new
      	  code, but more work to come.
      	* src/commands.c (cmd_set_text) : Yay! autocorrect is no longer tied
      	  to the gui.
      	* src/application.c (application_init) : Init autocorrection.
      	* src/workbook-view.c (wb_view_set_arg) : add do_auto_completion.
      	  Make this a per workbook-view, persistent attribute.  We still
      	  initialize from gnome-config, butthis should make things easier
      	  for users.
      	(wb_view_get_arg) : ditto.
      	(workbook_view_class_init) : ditto.
  12. 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.
  13. 25 May, 2001 1 commit
    • Jody Goldberg's avatar
      fix logic to avoid adding a bogus view. · 237ebd5b
      Jody Goldberg authored
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (wb_view_open_custom) : fix logic to avoid
      	  adding a bogus view.
      2001-05-24  Jody Goldberg <jgoldberg@home.com>
      	* src/eval.c (workbook_recalc) : don't clear the flag until after the
      	  calc is complete in case there is a cycle.
      	(cell_eval) : ditto.
  14. 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.
  15. 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.
  16. 29 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Add flags for insert cols/rows and paste special. · 0acb7687
      Almer S. Tigelaar authored
      2001-01-29  Almer S. Tigelaar  <almer1@dds.nl>
      	* src/sheet.h: Add flags for insert cols/rows and paste special.
      	* src/selection.c
      	Remove the settings of insert cols/rows here.
      	Set insert cols/rows menu items and flags correctly.
      	(sheet_selection_reset_only): Reset insert cols/rows flags.
      	* src/application.c
      	(application_clipboard_clear): Set enable paste special flag.
      	(application_clipboard_copy): Ditto.
      	(application_clipboard_cut): Ditto.
      	* src/workbook-view.c, src/workbook-view.h
      	(wb_view_menus_update): New function, updates the
      	insert cols/rows and paste special menu items.
      	(wb_view_sheet_focus): Call menus_update here.
      	(wb_view_sheet_add): Ditto.
      	* src/workbook-control-gui.c
      	(workbook_control_gui_init): Update menu items here.
  17. 05 Dec, 2000 2 commits
    • Jody Goldberg's avatar
      Init the selection descriptor and format format. (wb_view_selection_desc) · 20e35ce1
      Jody Goldberg authored
      2000-12-04  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (wb_view_sheet_focus) : Init the selection
      	  descriptor and format format.
      	(wb_view_selection_desc) : new function.
      	(workbook_view_init) : Init the expression and format before setting
      	  the current sheet.  Setting the sheet will update the content.
      	* src/workbook-control.c (wb_control_sheet_add) : Init the format,
      	  edit line, and selection descriptor.
      	* src/selection.c (sheet_get_selection_name) : Delete.
      	(sheet_selection_extend_to) : Use wb_view_selection_desc.
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_release) : Use
      	* src/item-grid.c (item_grid_event) : Ditto.
    • Jody Goldberg's avatar
      renamed from workbook_edit_load_value and tweaked to operate on the view · acdcd777
      Jody Goldberg authored
      2000-12-04  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (wb_view_edit_line_set) : renamed from
      	  workbook_edit_load_value and tweaked to operate on the view level.
      	* src/workbook-edit.c (workbook_finish_editing) : Adjust to changes in
      	  edit-line update api.
      	* src/sheet.c (sheet_update) : Use wb_view_edit_line_set.
      	* src/workbook-view.c (wb_view_sheet_focus) : bug 34185.
  18. 01 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_position_pixels) : new function. · f4cc38b8
      Jody Goldberg authored
      2000-12-01  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-object.c (sheet_object_position_pts) : new function.
      	(sheet_object_position_pixels) : new function.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/xml-io.c : Begin moving the sheet object xml io into virtuals.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet.c : Add SHEET_FOREACH_CONTROL to help abstract the
      	  implementation of controls and simplify changes later.
      	(sheet_set_zoom_factor) : reposition objects not just comments.
      	(sheet_get_objects) : New function.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-object.c : Move most (not yet all) of the GUI aspects into
      	  the sheet control.  Revamp the semantics of the sheet-object
      	new_view : now handles the sizing and realizing of objects.
      	Add support for persistance here.
      	Delete get/set bound.
      	* src/sheet-object-container.c : convert to new object management design
      	* src/sheet-object-graphic.c : Ditto.
      	* src/sheet-object-item.c : Ditto.
      	* src/sheet-object-widget.c : Ditto.
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) :
      	  sheet_object_construct now takes a default size.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control-gui.c : Move cell comment and sheet object
      	  placement routines here.  Rather than scattering them in non-gui
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/print.c (print_object_view_position) : Convert object position
      	  to points.
      	* src/selection.c (sheet_selection_redraw) : simplify.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) : SheetObject
      	  editing is now specific to the SheetControl.
      	(gnumeric_sheet_key_press) : Ditto.
      	(gnumeric_sheet_key_release) : Ditto.
      	* src/selection.c (sheet_is_cell_selected) : Ditto.
      	(sheet_col_selection_type) : Ditto.
      	(sheet_row_selection_type) : Ditto.
      	* src/item-bar.c (item_bar_draw) : Ditto.
      	* src/item-grid.c (item_grid_draw_background) : Ditto.
      	(item_grid_button_1) : Ditto.
      	(item_grid_event) : Ditto.
      	(cb_obj_create_motion) : Move the object creation GUI here.
      	(cb_obj_create_button_release) : and add partial support for
      	(sheet_object_begin_creation) : Ditto.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/cell.c (cell_copy) : Comments are no longer associated directly
      	  with cells.
      	* src/clipboard.c (paste_cell) : Ditto.
      	(clipboard_release) : Ditto.
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : No need to set bounds
      	  or realize the object here.  That is handed at a higher level.
      2000-11-30  Jody Goldberg <jgoldberg@home.com>
      	* src/number-match.c (compute_value) : Use strtol to simplify things.
      	* src/func.c (tokenized_help_new) : translate the help text.
      2000-11-27  Jody Goldberg <jgoldberg@home.com>
      	* src/formats.c (currency_date_format_init) : quote the currency
  19. 15 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Follow convention that the manager is set when attached, and not before. · ad531019
      Jody Goldberg authored
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control.c (workbook_control_set_view) : Follow
      	  convention that the manager is set when attached, and not before.
      	* src/workbook-view.c (wb_view_attach_control) : Ditto.  Set the
      	  tile on the new control.
      	* src/workbook.c (workbook_attach_view) : Ditto.
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/command-context-corba.[ch] : This is incorrectly named and used
      	  the wrong way :-( But at least it is compilable.  I'll fix this
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/colrow.c (col_row_foreach) : Use ColRowSegments
      	(col_row_restore_sizes) : Ditto.
      	* src/sheet.c (sheet_{col,row}_add) : Ditto.
      	(sheet_{col,row}_get_info) : Ditto.
      	(sheet_{col,row}_get) : Ditto.
      	(sheet_cell_foreach_range) : Ditto.
      	(sheet_{col,row}_destroy) : Ditto.
      	(sheet_regen_adjacent_spans) : Ditto.
      	(colrow_move) : Ditto.
      	(sheet_{col,row}_get_distance_pixels) : Ditto.
      	(sheet_{col,row}_get_distance_pts) : Ditto.
      	(sheet_{col,row}_set_size_pts) : Ditto.
      2000-11-15  Jody Goldberg <jgoldberg@home.com>
      	* src/Makefile.am : Add command-context-corba.[ch] temporarily
      	* configure.in : Default to non-bonobo build
  20. 12 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Use wb_view_sheet_add. · 69b2fb32
      Jody Goldberg authored
      2000-11-12  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook.c (workbook_sheet_attach) : Use wb_view_sheet_add.
      	* src/workbook-view.c (wb_view_sheet_add) : new function.
      	(wb_view_format_feedback) : Ditto.
      	(wb_view_auto_expr) : Store the display result.
      	(wb_view_auto_expr_value_display) : renamed
      	  from wb_view_auto_expr_value_set.
      	(wb_view_destroy) : clear out the new members.
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Calculate
      	  the style here.  This is transitory.  It will eventually move into
      	  the sheet view when that is split.
      	* src/workbook-control.c (wb_control_sheet_add) : Do this manually
      	  so that if the new sheet is the focus sheet for the view we can
      	  update the various feedback mechanisms.
      	(workbook_control_sheets_init) : rather than here.
      	* src/sheet.c (sheet_update) : prepare for having the wb_view handle
      	  the selection.
      	* src/Makefile.am : Add missing workbook-control.h
      	* src/workbook-view.c (wb_view_auto_expr) : When the expression
      	  changes, recalculate.
      	* src/workbook-control-gui.c (wbcg_auto_expr_value) : Mark as updating
      	  the ui.
      	(cb_auto_expr_changed) : test the updating flag here, don't set it.
  21. 09 Nov, 2000 1 commit
  22. 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	(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.
  23. 28 May, 2000 1 commit
    • ERDI Gergo's avatar
      Create and insert GtkComboStacks into the toolbar for Undo/Redols · f7ea6af7
      ERDI Gergo authored
      2000-05-28  ERDI Gergo  <cactus@cactus.rulez.org>
      	* src/workbook.c: Create and insert GtkComboStacks into the
      	toolbar for Undo/Redols
      	* src/commands.c: Use the new undo/redo stack methods
      	* src/workbook-view.[ch]: Several new methods to modify the user interface
      	to the undo/redo stack
  24. 18 Feb, 2000 1 commit
    • Michael Meeks's avatar
      File menu file history work from Mike Kestner: · 22deee2c
      Michael Meeks authored
      2000-02-18  Michael Meeks  <michael@helixcode.com>
      	* src/workbook.c (workbook_new): setup view history.
      	(workbook_do_destroy): add workbook to view history and write config.
      	* src/history.c (history_item_label): substantialy alter.
      	(history_remove_menu_item): kill translation on non bonobo case.
      2000-02-18  Mike Kestner  <mkestner@ameritech.net>
      	* src/application.c (application_history_get_list): add
      	(application_history_update_list, application_history_list_shrink),
      	(application_history_write_config): ditto.
      	* src/workbook-view.c (workbook_view_history_setup): create.
      	(workbook_view_history_update, workbook_view_history_shrink): ditto.
      	* src/Makefile.am: add history.[ch].
      	* src/history.[ch]: Added.
  25. 13 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Clarify that the measurements are in pixels. · b0141d7c
      Jody Goldberg authored
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (workbook_view_set_size) : Clarify that the
      	  measurements are in pixels.
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
  26. 17 Jan, 2000 1 commit
  27. 13 Jan, 2000 1 commit
  28. 05 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Initial version of undo. · 7667d632
      Jody Goldberg authored
      2000-01-04  Jody Goldberg <jgoldberg@home.com>
      	* src/commands.[ch] : New files.
      	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Take
      	  strings to use as suffixes to undo and redo.  NULL indicates
      	* src/sheet.c (sheet_set_current_value) : Use cmd_set_text to register
      	* src/workbook.c (workbook_menu_view) : Make The formula toggle a
      	  toggle item.
      	(workbook_menu_insert) : Move the insert object menu item here,
      	  and adjust the selector characters to make more sense.
      	(undo_cmd, redo_cmd) : Enable.
      	(workbook_init) : Init the undo/redo lists.
      	(workbook_do_destroy) : Clear the undo/redo lists.
      	(wb_input_finished) : Delete.  It was the same as accept_input.
  29. 02 Jan, 2000 1 commit
    • Miguel de Icaza's avatar
      the last element of a paste was being dropped. · 109202e0
      Miguel de Icaza authored
      2000-01-02  Miguel de Icaza  <miguel@gnu.org>
      	* src/clipboard.c (x_selection_to_cell_region): the last element
      	of a paste was being dropped.
      2000-01-02  Miguel de Icaza  <miguel@gnu.org>
      	* src/workbook-view.c (workbook_view_set_paste_special_state):
      	Renamed this function to suit better its new purpose: only manage
      	the paste special item, as paste can pull the information from the
      	X clipboard.
      	* src/parser.y (release_const_tree): New routine used to release
  30. 01 Jan, 2000 1 commit
    • Miguel de Icaza's avatar
      Use application_clipboar_unant here. (gnumeric_sheet_key_mode_object): · fd8a5da2
      Miguel de Icaza authored
      2000-01-01  Miguel de Icaza  <miguel@gnu.org>
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Use
      	application_clipboar_unant here.
      	(gnumeric_sheet_key_mode_object): ditto.
      	* src/sheet.c (sheet_start_editing_at_cursor): ditto.
      	* src/workbook-format-toolbar.c (change_selection_font): ditto
      	(set_selection_halign): ditto
      	* src/application.c (application_clipboard_copy): Use defines.
      	(application_clipboard_cut): Use defines.
      	(application_clipboard_unant): New function, less agressive
      	marking of unanting.
      	* src/workbook-view.c (workbook_view_set_paste_state): Use
      	named defines instead of arbitrary constants.  Please, no magic
      	constants ever in Gnumeric guys.
      	* src/application.c:
      	* src/workbook-private.h: Move the menu_item fields to
  31. 30 Dec, 1999 1 commit
    • Miguel de Icaza's avatar
      New macro, copied from Evolution. We need to refactor our code in Gnumeric · 87152856
      Miguel de Icaza authored
      1999-12-30  Miguel de Icaza  <miguel@gnu.org>
      	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE): New macro, copied
      	from Evolution.  We need to refactor our code in Gnumeric to use
      	this macro.
      	* src/workbook.c (workbook_do_destroy): Destroy the per-workbook
      	context here.  Hardcoded to be a GUI context for now.
      	(workbook_new): Create the context here.
      	(workbook_command_context_gui): This routine is now the one that
      	returns the command context.
      	* src/gnumeric.h: Added CommandCOntext typedef here.
      	* All files: renamed CmdContext to CommandContext.
      	renamed command_context_gui to workbook_command_context_gui.
      	* src/workbook-view.c: Removed the GUI_CmdContext class setup.
      	* src/command-context.c: Replaced the ad-hoc object system with a
      	GtkObject-based system.
  32. 29 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      - Initial usage of the new exception mechanisms. · f8206c57
      Jody Goldberg authored
      - Improve versioning of the plugins.
      - Some bug fixes.
      1999-12-29  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (command_context_gui,
      				command_context_gui_cast) : New functions.
      	* src/workbook.c (workbook_new) : Switch to using the workbook_view
      	  routines to manipulate the undo/redo and paste/paste_special menu
      	* src/func.c (function_iterate_argument_values) : Return an error
      	  for empty/missing arguments.
      	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.
      	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
      	  Call plugin_version_mismatch to do some minimal version matching for
      	  plugins and the running application.
      	* src/Gnumeric.idl : Add PluginProblem.
      	* src/command-context.[ch] (gnumeric_error_splits_array,
      				    command_context_vtbl_init) : New functions.
      	* src/plugin.c (plugin_version_mismatch) : New function.
      	  (plugin_load) : Hard code a GUI context for now.
      	                  Switch to using gnumeric_error_ routines.
      			  Pass a CmdContext to the init_plugin routines.
      			  Only produce an error if the plugin returns -1.
      			  Store the plugin filename.
      	  (plugin_unload) : Free the filename on exit.
      	* *.c : command_context_gui now takes a Workbook argument.
      	      : Switch from gnumeric_no_modify_array_notice
      	                 to gnumeric_error_splits_array in most places.
  33. 17 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Fix a few bugs. Flag a few bugs. Start on the exception handling · 5784bf05
      Jody Goldberg authored
      * Fix a few bugs.
      * Flag a few bugs.
      * Start on the exception handling mechanism.
      * Move many typedefs into gnumeric.h to start the process
        of decoupling the headers.
      1999-12-17  Jody Goldberg <jgoldberg@home.com>
      	* src/cell.c (cell_cleanout) : Publicize.
      	* src/sheet.c (clear_cell_content) : Delete.
      	(sheet_clear_region_content) : Use sheet_clear_region but leave the
      	  styles in place.
      1999-12-15  Jody Goldberg <jgoldberg@home.com>
      	* src/gnumeric.h : Move many of the typedefs here.
      	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Tweak some
      	  const issues and minor logic problems at the boundaries.
      1999-12-14  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-view.c (command_context_gui) : New function.
      	* src/main.c (gnumeric_main) : Add a 'quit' flag for use in testing.
      	  It causes the app to exit immediately after loading all the selected
      	* src/file.c (workbook_import) : Bug 3977.
      	* src/corba-sheet.c (command_context_corba) : New function
      	  temporarily located here.
      	(Sheet_selection_copy) : Pass a CommandContext.
      	(Sheet_selection_cut) : Ditto
      	(Sheet_selection_paste) : Ditto
      	(Sheet_clear_region) : Ditto
      	(Sheet_clear_region_content) : Ditto
      	(Sheet_insert_col) : Ditto
      	(Sheet_delete_col) : Ditto
      	(Sheet_insert_row) : Ditto
      	(Sheet_delete_row) : Ditto
      	(Sheet_shift_rows) : Ditto
      	(Sheet_shift_cols) : Ditto
      	* src/item-cursor.c (item_cursor_do_action) : Ditto.
      	* src/item-grid.c (context_cut_cmd) : Ditto.
      	(context_cut_cmd) : Ditto.
      	(context_copy_cmd) : Ditto.
      	(context_paste_cmd) : Ditto.
      	(context_paste_special_cmd) : Ditto.
      	(context_clear_cmd) : Ditto.
      	* src/clipboard.[ch] (do_clipboard_paste_cell_region) : Take a
      	(sheet_paste_selection) : Ditto.
      	(clipboard_paste_region) : Ditto.
      	* src/selection.c (segments_intersect) : Return additional state 5
      	  to designate equality.
      	(selection_apply) : Use the equality state to simplify state selection.
      	(selection_is_simple) : Use a command context.
      	(sheet_selection_copy) : Ditto.
      	(sheet_selection_cut) : Ditto.
      	(sheet_selection_paste) : Ditto.
      	(sheet_selection_clear) : Ditto.
      	(sheet_selection_clear_content) : Ditto.
      	(sheet_selection_clear_comments) : Ditto.
      	(sheet_selection_clear_formats) : Ditto.
      	* src/workbook.c (copy_cmd) : Ditto.
      	(cut_cmd) : Ditto.
      	(paste_cmd) : Ditto.
      	(paste_special_cmd) : Ditto.
      	(insert_cols_cmd) : Ditto.
      	(insert_rows_cmd) : Ditto.
      	(clear_all_cmd) : Ditto.
      	(clear_formats_cmd) : Ditto.
      	(clear_comments_cmd) : Ditto.
      	(clear_content_cmd) : Ditto.
      	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
      	(dialog_delete_cells) : Ditto.
      	* src/dialogs/dialog-insert-cells.c (dialog_insert_cells_impl) :
      	(dialog_insert_cells) : Ditto.
  34. 29 Nov, 1999 1 commit