1. 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
  2. 27 May, 2000 3 commits
    • Jody Goldberg's avatar
      When recalulating all spans, we may need to render some cells too. · 46bc8ec7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_update) : When recalulating all spans, we may
      	  need to render some cells too.
      	(sheet_move_range) : Do not call sheet_update here.
      	(sheet_shift_rows) : Call it here.
      	(sheet_shift_cols) : and here.
      
      	* src/commands.c (cmd_paste_cut_undo) : Do a recalc.
      	(cmd_paste_cut_redo) : No need to force a status range update, move
      	  already did that.
      
      	* src/cmd-edit.c (cmd_paste) : typo.
      46bc8ec7
    • Jody Goldberg's avatar
      Move the handling of singletons and the setting of the selection here. · 984592e7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy) : Move the handling of singletons
      	  and the setting of the selection here.
      	* src/clipboard.c (clipboard_paste_region) : From here.
      
      	* src/cmd-edit.c (cmd_paste_to_selection) : Remove incorrect
      	  precondition.
      984592e7
    • Jody Goldberg's avatar
      Revamp pasting. This needs alot of testing. Some initial work on a · 94c47dab
      Jody Goldberg authored
      Revamp pasting.
      This needs alot of testing.
      Some initial work on a function druid.
      
      2000-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Use a command context.
      	(sheet_selection_paste) : Delete.
      
      	* src/plugin.c : rename error_plugin_problem -> error_plugin.
      
      	* src/item-grid.c (context_paste_cmd) : Use cmd_paste_to_selection.
      	(context_paste_special_cmd) : Ditto.
      
      	* src/gnumeric-sheet.c : remove cached 'controlling_entry' in
      	  preparation for the function druid.
      
      	* src/corba-sheet.c : Delete Sheet_selection_paste.
      	  this will need to be replaced with a new signature.
      
      	* src/item-cursor.c (item_cursor_do_action) : Use new cmd_paste.
      
      	* src/commands.c (cmd_area_set_text_{undo,redo}) : Use new
      	  clipboard_paste_region.
      	(cmd_ins_del_row_col_{undo,redo}) : Ditto.
      	(cmd_clear_{undo,redo}) : Ditto.
      	(cmd_set_date_time_{undo,redo}) : Ditto.
      	(cmd_paste_cut_*) : new functions.
      
      	* src/command-context*.c : Add progress, remove splits_array.
      
      	* src/cmd-edit.c (cmd_paste) : New function.
      	(cmd_paste_to_selection) : New function.
      
      	* src/clipboard.c : Reorganize/rewrite.
      	(clipboard_paste_region) : paste content.
      	(clipboard_paste) : paste content from clipboard or X selection.
      	(paste_target_init) : New function.
      	(sheet_paste_selection) : merge into clipboard_paste_region.
      
      	* src/application.c (application_clipboard_copy) : rename
      	  clipboard_copy_cell_range -> clipboard_copy_range.
      
      	* idl/Gnumeric.idl : Merge InvalidValue, SplitsArray -> InvalidCmd.
      
      	* src/workbook.c (workbook_setup_status_area) : Include a progress bar.
      94c47dab
  3. 22 May, 2000 1 commit
    • Jody Goldberg's avatar
      New files. · 77d84d6c
      Jody Goldberg authored
      
      2000-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.[ch] : New files.
      
      	* src/workbook.c (cb_edit_select_*) : Use the cmd-edit utilities.
      	Make a 'select' sub menu of edit.
      
      	* src/sheet.c : Use the newly added CellPos in each Cell rather than
      	  mallocing a seperate struct.
      
      	* src/selection.c (sheet_select_all) : Move.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Make the
      	  selection commands accelerators.
      77d84d6c