1. 15 May, 2000 1 commit
    • Jody Goldberg's avatar
      Fix typo breaking row/col ins/del breakage :-( · a5e04f49
      Jody Goldberg authored
      Make some minor improvements in status display for row/col selection.
      
      2000-05-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.h : Reformat.
      
      	* src/commands.c (cmd_ins_del_row_col_{undo,redo}) : unant the
      	  selection when the topology changes.
      
      	* src/workbook.c (workbook_expr_relocate) : Fix typo.
      
      	* src/sheet-view.c (sheet_view_{col,row}_selection_changed) : Call
      	  sheet_update after a change.
      a5e04f49
  2. 03 May, 2000 1 commit
    • Jody Goldberg's avatar
      Begin to rationalize support for inverted and 3D references. · de62dd3a
      Jody Goldberg authored
      More renaming and movement name rationalization.
      Some minor improvements in the function wizard.
      
      2000-05-03  Jody Goldberg <jgoldberg@home.com>
      
      	* EvalPosition -> EvalPos
      	  ParsePosition -> ParsePos
      	  new struct RangeRef used in ValueRange
      
      	  eval_pos_init* -> position.[ch]
      	  parse_pos_init*
      	  cell_ref_{get,make}*
      
      	* src/workbook.c : Reorder the toolbar a bit.
      	(workbook_foreach_cell_in_range) : New function.
      	(cb_autofunction) : New routine.
      	(workbook_set_auto_expr) : DO NOT put real code into pre/post
      	  conditions.  It will be removed when debugging is eventually
      	  disabled.
      
      	* src/position.c (range_ref_normalize) : New function.
      
      	* src/ranges.c (range_normalize) : New function.
      
      	* src/expr.c (expr_implicit_intersection) : Use range_ref_normalize.
      
      	* src/eval.c (cell_eval_content) : No need to release the value.
      	  cell_assign_value already does that.
      	(dependency_range_ctor) : Use range_normalize.
      
      	* src/auto-format.c (do_af_suggest) : Use workbook_foreach_cell_in_range.
      
      	* src/cell.c (cell_set_expr_and_value) : link the new expression but
      	  do not queue it for recalc.
      	(cell_assign_value) : Release the old value.
      	(cell_copy) : Init the value to empty.
      
      	* src/func.c (function_iterate_do_value) : Use
      	  workbook_foreach_cell_in_range.
      
      	* src/dialogs/dialog-function-wizard.c (create_description) : Use
      	  a label rather than a text entry widget.  It looks better.
      
      	* src/functions/fn-string.c (gnumeric_expression) : range is already
      	  absolute.
      
      	* src/functions/fn-stat.c (gnumeric_linest) : Handle inverted ranges.
      	(gnumeric_logest) : Ditto.
      
      	* src/functions/fn-information.c (gnumeric_countblank) : Use
      	workbook_foreach_cell_in_range.
      	(gnumeric_{row,column}) : Handle inversions.
      
      	* src/functions/fn-lookup.c (gnumeric_offset) : No need to make
      	  absolute.  The marshaller already did that.
      
      2000-05-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependency_range_ctor) : normalize the range.
      
      	* src/xml-io.c (xml_write_cell_and_position) : Suppress warning.
      
      	* src/pixmaps.h : Add function wizard and equal sign.
      de62dd3a
  3. 20 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Reorg cell contents and assignment. · bedb925b
      Jody Goldberg authored
      Fixs lots of usability details.
      
      2000-04-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Use the edit_pos as the example
      	  not the top left corner.
      
      	* src/functions/fn-stat.c (gnumeric_ftest) : Use eval_pos_cellref
      	  to help localize the strangeness.
      	(gnumeric_ttest) : Ditto.
      
      	* src/xml-io.c (xml_write_cell_and_position) : If this is an array
      	  expression and we are the top left then add attributes to indicate
      	  size of array.  Ignore the rest of the array.
      	(xml_not_used_old_array_spec) : New routinr to handle the old array format.
      	(xml_cell_set_array_expr) : store an array.
      	(xml_read_cell) : Handle the old and the new array formats.
      
      	* src/workbook.c (workbook_close_if_user_permits) : Accept input
      	  first.
      	(wb_edit_key_pressed) : Handle array formulas here.
      	(workbook_detach_sheet) : Do not recalc all if we are exiting.
      	(workbook_start_editing_at_cursor) : When we start editing an
      	  array formula display just the formula not all the extra {}()[][] crap.
      
      	* src/sheet.c (SheetPrivate) : Add a recompute_spans flag.
      	(sheet_calc_spans) : New routine.
      	(sheet_cell_calc_span) : New routine.
      	(sheet_range_calc_spans) : Renamed and extended from
      	  sheet_cells_update.
      	(sheet_update) : Use sheet_calc_spans when necessary.
      	  Update the location region when the edit_pos changes.
      	(cb_recalc_spans_in_col) : Renamed from cb_collect_cells_in_col.
      	  Recalcs spans directly, no need to collect first.
      	(cb_set_cell_content) : New routine to set expr, or expr_and_value.
      	(sheet_range_set_text) : Use cb_set_cell_content, and remember
      	  chosen format with the cell rather than overriding the assigned
      	  format.
      	(sheet_cell_set_text) : Renamed from sheet_set_text.  Be more specific
      	  about how spans, rendering and the rest are handled.
      	(sheet_cell_set_expr) : New routine.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_load_cell_val) : When displaying an array formula add {%s}()[][].
      	(sheet_redraw_cell_region) : Honour spans when redrawing.
      	(sheet_redraw_partial_row) : New routine.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_is_cell_array) : Use cell_is_array.
      	(sheet_range_splits_array) : Renamed from sheet_check_for_partial_array.
      	(sheet_cell_add_to_hash) :  Do not touch spans at this point.
      	(sheet_cell_insert) : Rename from sheet_cell_add made recalc span
      	  optional.
      	(sheet_cell_new) : New routine that does not touch spans.
      	(sheet_cell_remove) : Made redraw optional.
      	(cb_clear_cell_comments) : Remove the cell if there is no comment.
      	(sheet_clear_region) : Remove the cell if there are no comments or
      	  contents.  Flag an update of the status region.
      
      	* src/sheet-view.c (cb_colrow_resize) : New function.
      	(sheet_view_col_size_changed) : Resize all rows, irrespective of
      	(sheet_view_row_size_changed) : existing cells.
      	(sheet_view_redraw_cell_region) : This no longer honours spans.
      
      	* src/sheet-style.c (sheet_style_attach) : Removed call to redraw.
      	sheet_cells_update : rename to sheet_range_calc_spans and move to
      	  sheet.c.
      
      	* src/sheet-autofill.c (autofill_cell) : Use sheet_cell_set_value
      	  rather than set_text.
      
      	* src/selection.c (sheet_selection_changed_hook) : Delete.
      	(sheet_selection_extend_to) : Update the status region to display the
      	  new size.
      	(sheet_selection_cut) : Use sheet_range_splits_array.
      	(selection_check_for_array) : New routine.
      
      	* src/parser.y : Remove icky array formula parsing that conflicted
      	  with array entries.
      
      	* src/number-match.c (format_match) : Return a Value * rather than a
      	  double.
      
      	* src/mstyle.c (mstyle_set_font_size) : Do not allow font sizes < 1.
      
      	* src/main.c (gnumeric_main) : Do NOT create an empty workbook
      	  then delete it if things are successfully loaded.  This causes
      	  a global recalc.  Instead add a flag to disable exit when the
      	  number of workbooks go to zero.  Then only enable the flag AFTER
      	  we have attempted to load the initial workbooks.
      
      	* src/item-grid.c (item_grid_event) : Update the status_region when
      	  button-1 is release.  It should display the edit_pos.
      
      	* src/gutils.c : Move cell_name, col_name, col_from_name,
      	  parse_cell_name, parse_cell_name_or_range and parse_cell_name_list,
      	  to parse-util.c.
      
      	* src/gnumeric.h  : Add RenderedValue.
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : Move
      	  to parse-util.c
      
      	* src/file.c (workbook_read) : Remove freese thaw usage.
      	  Move call to update AFTER mark clean.
      
      	* src/expr.c (eval_pos_init) : Take a cellpos.
      	(parse_pos_evalpos) : New routine.
      	(eval_pos_cellref) : There is some questionable code scattered in the
      	  functions.  This routing localizes the odd bits for correction.
      
      	* src/eval.c (cell_eval_content) : Use sheet_redraw_cell,
      	  and rendered_value_calc_size.
      	(cell_get_dependencies) : Improve constness.
      
      	* src/corba-sheet.c : Remove the freeze thaw operations.
      	(Sheet_cell_set_formula) : Deleted.
      	(Sheet_range_set_formula) : Delete.
      
      	* src/commands.c : Adjust so that registration of command auto
      	  calls redo.  Add misc checks for splitting arrays.
      
      	* src/clipboard.h : Move the CellCopy types here from cell.h
      
      	* src/clipboard.c (paste_cell) : Use cell_has_expr.
      	  Don't insert the new cell till after its contents are assigned.
      
      	* src/cellspan.c (cell_register_span) : Improve constness.
      	(cell_unregister_span) : Ditto.
      	(row_cell_get_displayed_at) : Delete.
      	(cell_calc_span) : Moved here from cell.c
      
      	* src/dialogs/dialog-stf.glade : Adjust the header background colour
      	  to match the purdy new icon.  Add the icon.
      
      	* src/cell-draw.c : Use the rendered_value routines.
      	  Improve constness.
      
      	* src/analysis-tools.c (set_cell) : Use sheet_cell_fetch.
      
      	*.*
      	    cell_set_* -> sheet_cell_set_
      	    cell_set_*_simple -> cell_set_
      	    Cell::{row,col} -> Cell::{row,col}_info
      	    cell_get_text -> cell_get_entered_text
      	    cell_get_content -> cell_get_entered_text
      	    cell_name -> cell_coord_name
      	    cell_get_formatted_val -> cell_get_rendered_text
      	    cell_get_content -> cell_get_entered_text
      
      	* src/cell.c :
      	(cell_dirty) : Renamed from cell_modified.  Use
      	  sheet_set_dirty.
      	(cell_formula_changed) : Make the queuing of the recalc optional.
      	(cell_cleanout) : Handle union of expression and entered_text,
      	  and remove the rendered value.
      	(cell_copy) : Ditto.
      	(cell_destroy) : handle cell_modified -> cell_dirty.
      	(cell_set_text) : Use parse_text_value_or_expr and store the prefered
      	  format.
      	(cell_set_text_and_value) : New routine.
      	(cell_assign_value) : New routine.
      	(cell_set_value) : Support formats.
      	(cell_set_expr_and_value) : New routine.
      	(cell_set_expr_internal) : Split from cell_set_expr.
      	(cell_set_expr) : Divide to allow for not queuing a recalc.
      	(cell_set_array_formula) : Use cell_set_expr_internal.
      	(cell_is_array) : New utility.
      	(cell_is_partial_array) : New utility.
      	(cell_has_expr) : New utility.
      	(cell_render_value) : Use rendered_value_*.
      	Move all comment routines into cell-comment.[ch].
      
      	* idl/Gnumeric.idl : Remove cell_set_formula, and range_set_formula.
      	  These were identical to set_text.  Made Workbook embeddable.
      bedb925b
  4. 04 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Improve status update. · 56a9e1f0
      Jody Goldberg authored
      Simplify a few command paths in preparation for registration.
      Hopefully fix bug 3961
      
      2000-04-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_class_init) : Remove CELL_CHANGED.
      	(workbook_finish_editing) : At LAST! cmd_set_text is responsible for
      	  setting the text directly :-)
      
      	* src/workbook-format-toolbar.c (change_font_size_in_selection_cmd) :
      	  cmd_format takes care of the height adjustments.
      	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply) : Ditto.
      
      	* src/sheet.c (Sheet): Add flags edit_pos_changed, selection_content_changed.
      	(sheet_new) : init them.
      	(sheet_flag_status_update_cell) : New function that sets the flags.
      	(sheet_flag_status_update_range) : Ditto.
      	(sheet_update) : Fix typo. Add support for new flags.
      	(sheet_update_auto_expr) : Const correctness.
      	(sheet_update_controls) : Ditto.
      	(sheet_load_cell_val) : Ditto. Delete unused signal.
      	(sheet_set_text) : Use sheet_flag_status_update_range.
      	(sheet_set_edit_pos) : New routine.
      	(sheet_cursor_move) : Delete.
      	(sheet_fill_selection_with) : Remove.
      
      	* src/selection.c (sheet_selection_changed_hook) : const correctness.
      	(sheet_selection_change) : merge into sheet_selection_set.
      	(sheet_selection_extend_to) : Use sheet_selection_set.
      	(sheet_selection_set) : Merge with sheet_selection_change and use the
      	  sheet_cursor accessors rather than changing things directly.
      	(sheet_selection_walk_step) : Use sheet_selection_set, and sheet_set_edit_pos.
      
      	(sheet_is_all_selected) : const correctness.
      	(sheet_is_cell_selected) : New routine.
      	(sheet_is_range_selected) : New routine.
      
      	* src/item-grid.c (item_grid_draw_background) : Adjust to rename of
      	* sheet_selection_is_cell_selected -> sheet_is_cell_selected.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Cleanup the
      	  logic for creating fills and arrays so that it can have undo
      	  support.
      	  - Change the heuristic for selecting what type of characters can start
      	    an edit session.  Rather than using fixed Latin1 centric codes,
      	    guess that the 'length' field of the event is >0 if the character is
      	    printable.  Be more careful NOT to forward characters to the entry
      	    if we are not editing.
      	  - Use sheet_update.
      
      	* src/commands.c (command_pop_list_top) : Delete.
      	(cmd_format_redo) : Apply the height adjustment here.
      	(cmd_set_area_*) : Implement.
      	(*) : Use sheet_update.
      
      	* src/colrow.c (rows_height_update) : Moved here and generalized from
      	  sheet_selection_height_update.
      
      	* src/clipboard.c (sheet_paste_selection) : No need to call
      	  sheet_cursor_set.  sheet_selection_add_range already does that.
      	(clipboard_paste_region) : Flag updates to the status display if
      	  something changes.
      56a9e1f0
  5. 11 Feb, 2000 1 commit
  6. 04 Feb, 2000 1 commit
    • JP Rosevear's avatar
      Fix typo · 045c02d4
      JP Rosevear authored
      2000-02-05  JP Rosevear  <jpr@arcavia.com>
      
      	* src/commands.h : Fix typo
      045c02d4
  7. 29 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Do NOT clear a cell and save its value when we start editing. I assume this · 523b03fc
      Jody Goldberg authored
        was done so that contents of spanning cells would not be visible when editing
        began.  Rather than doing that I've adjusted the grid to pretend the cell
        being edited is empty.
      
      - Some cleanup editing and assigning text into cells.  Still can not directly
        call redo from the cmd.  Something screws up the memory associated with the
        text entry widget ??
      
      2000-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_set_text_undo) : Special case VALUE_EMPTY.
      	  Move to the previous cell only after reverting its value so that the
      	  edit area is updated.
      	(cmd_set_text) : Retrieve the old text of the cell directly.
      
      	* src/sheet.c (sheet_set_current_value) : Delete and merge into...
      	(sheet_accept_pending_input) : Here.  Harmonize the logic with.
      	(sheet_cancel_pending_input) : this function.
      	(sheet_set_text) : Publicize.
      	(sheet_stop_editing) : Removed storage of value of cell being edited.
      	(sheet_start_editing_at_cursor) : Ditto.
      
      	* src/workbook.c (accept_input) : Use sheet_accept_pending_input.
      	(redo_cmd, undo_cmd) : cancel pending input.
      
      2000-01-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Pretend that the cell being
      	  edited (and anything it spans) are empty.
      
      	* src/sheet.c (sheet_duplicate_colrow) : Delete unused.
      523b03fc
  8. 20 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Col/Row hide undo - Keep selection extension cell visible - Improve · 4f0abdd2
      Jody Goldberg authored
      - Col/Row hide undo
      - Keep selection extension cell visible
      - Improve selection overlap range fragmentation, and debugging.
      
      2000-01-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_{col,row}_{hide,unhide}) :
      	  Use the undo framework.
      
      	* src/sheet.c (sheet_fill_selection_with) : Take a context.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Add
      	  Alt-Pg{Up,Down}.  sheet_fill_selection_with now takes a context.
      
      	* src/commands.c (cmd_hide_selection_rows_cols) : Implement undo for
      	  row/col hiding.
      	(cmd_hide_row_col_{undo,redo,destroy}) : Ditto.
      
      	* src/item-grid.c (context_{col,row}_{hide,unhide}) : Use undo support.
      
      	* src/selection.c (selection_get_ranges) : Improve heuristics.
      	(sheet_selection_extend_{horizontal,vertical}) : Ensure that the cell
      	  being moved stays visible.
      4f0abdd2
  9. 19 Jan, 2000 1 commit
    • JP Rosevear's avatar
      Modularize a bit more for the sort dialog. Use GLADE_FILE macro. · ce29fe57
      JP Rosevear authored
      2000-01-19  JP Rosevear  <jpr@arcavia.com>
      
      	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Modularize a
      	bit more for the sort dialog.  Use GLADE_FILE macro.
      	(dialog_cell_sort_ok): New function connected to the sort
      	dialog ok button.  Builds the clause data and then calls cmd_sort.
      	(dialog_cell_sort_adv): Use GLADE_FILE macro.
      	(clip_range_to_finite): New function, reduces an infinite range to
      	an appropriate finite range.
      
      	* src/commands.c (cmd_sort): New function for new command
      	organization.
      	(cmd_sort_redo): ditto
      	(cmd_sort_undo): ditto
      	(cmd_sort_destroy): ditto
      
      	* src/sort.c (sort_compare_values): The former compare_values
      	function from dialog_cell_sort.c.
      	(sort_compare_values2): Does comparisons on original order
      	for undo.
      	(sort_qsort_func): The former qsort_func function from
      	dialog_cell_sort.c.
      	(sort_qsort_func2): Quicksort function for undo.
      	(sort_range): Performs the sort.  Much the same as the
      	sort_cell_range function that was in dialog_cell_sort.c.
      	Sorts the data of a CmdSort object, creating it if necessary.
      	Takes the quicksort function to call as an argument.
      
      	* src/sort.h : New header file
      
      	* src/ranges.h: Prototype range_name.
      
      	* src/ranges.c (range_name): New function that returns a
      	const char * to "A1:B5" type range name.
      ce29fe57
  10. 15 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Use cmd_clear_selection. · 1a96d682
      Jody Goldberg authored
      
      2000-01-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (clear_{all,formats,comments,content}_cmd) : Use
      	  cmd_clear_selection.
      
      	* src/sheet.c (sheet_clear_region) : Merge all types of deletion into
      	  this routine and add some bit flags to enable the different types.
      	(sheet_clear_region_content) : Delete.
      	(sheet_clear_region_comments) : Delete.
      	(clear_cell_format) : Delete.
      	(sheet_clear_region_formats) : Delete.
      	(sheet_move_range) : Adapt to changes in sheet_clear_region.
      
      	* src/selection.c (cb_sheet_selection_clear) : Delete.
      	(sheet_selection_clear) : Delete.
      	(cb_sheet_selection_clear_content) : Delete.
      	(sheet_selection_clear_content) : Delete.
      	(sheet_selection_clear_comments) : Delete.
      	(sheet_selection_clear_formats) : Delete.
      	(selection_get_ranges) : New function split out from selection_apply.
      	(selection_apply) : Use selection_get_ranges.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use
      	  cmd_clear_selection.
      	* src/item-grid.c (context_clear_cmd) : Ditto.
      
      	* src/corba-sheet.c (Sheet_clear_region) : Adapt to new clear_region
      	  calling convention.
      	(Sheet_clear_region_content) : Use sheet_clear_region.
      	(Sheet_clear_region_comments) : Ditto.
      	(Sheet_clear_region_formats) : Ditto.
      
      	* src/commands.c (cmd_ins_del_row_col_{undo,redo}) : Reload the the
      	  edit bar just in case.
      	(cmd_set_date_time_{undo,redo}) : Ditto.
      	(cmd_clear{,_undo,_redo,_destroy}) : Implement.
      
      	* src/clipboard.c (paste_cell) : No need to flag the existance of
      	  formulas.
      	(paste_cell_flags) : Ditto.
      	(do_clipboard_paste_cell_region) : Don't recalc here.
      	(x_selection_received) : Recalc here.
      	(clipboard_paste_region) : Only use the X selection if the user does
      	  not pass in a CellRegion. Only use the clipboard_paste_callback_data
      	  if we are going through the X selection.
      1a96d682
  11. 14 Jan, 2000 2 commits
    • Jody Goldberg's avatar
      - Bug fix for SUMIF - Support (but no UI) for hiding grid lines - Suppress · 4a550121
      Jody Goldberg authored
      - Bug fix for SUMIF
      - Support (but no UI) for hiding grid lines
      - Suppress some warnings in the autocorrect tool.
      
      2000-01-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-autocorrect.c (autocorrect_tool) : Suppress
      	  warnings.
      
      	* src/commands.h : Do not declare autocorrect_tool here.
      
      	* src/item-grid.c (item_grid_draw) : Add support for hiding the
      	  grid_lines.
      	* src/sheet.c (sheet_new) : Init show_grid.
      
      	* src/functions/fn-math.c (gnumeric_sumif) : Do not ignore empty cells
      	  if there is a result range that we need to stay in sync with.  Fix
      	  handling of inter-sheet references.
      4a550121
    • Jukka-Pekka Iivonen's avatar
      New tool added. Most things should work but not all have been completed. · 9639111b
      Jukka-Pekka Iivonen authored
      2000-01-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialog-autocorrect.c, src/autocorrect.glade,
       	src/autocorrect-exceptions.glade: New tool added.  Most things
       	should work but not all have been completed.
      
      	* workbook.c: Created `Data' menu and moved `Sort' into it.
        	Added `AutoCorrect' tool.
      9639111b
  12. 10 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - undo works undor bonobo now. · 4c82ff1c
      Jody Goldberg authored
      - format toolbar looks better when vertical.
      - More commands dummied up for undo.
      
      2000-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_insert_cols) : Be kinder to translators.
      	(cmd_insert_rows) : Ditto.
      	(cmd_rename_sheet_{undo,redo,destroy}) : Implement.
      	(cmd_rename_sheet) : Implement.
      	(cmd_set_date_time_{undo,redo,destroy}) : Implement.
      	(cmd_set_date_time) : Implement.
      	(cmd_resize_row_col_{undo,redo,destroy}) : Implement.
      	(cmd_resize_row_col) : Implement.
      
      	* src/workbook.c (insert_at_cursor) : Delete.
      	(insert_current_time_cmd) : Use cmd_set_date_time.
      	(insert_current_date_cmd) : Ditto.
      	(sheet_label_text_changed_signal) : Use cmd_rename_sheet.
      	(sheet_action_rename_sheet) : Ditto.
      
      	* src/corba-workbook.c (Workbook_sheet_rename) : Use cmd_rename_sheet.
      	* src/workbook-cmd-format.c (workbook_cmd_format_sheet_change_name) : Ditto.
      	(workbook_format_toolbar_orient) : New function to hide font selector
      	  when vertical.
      	(workbook_create_format_toolbar) : Connect to workbook_format_toolbar_orient.
      
      	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Enable
      	  Bonobo version.
      	(change_menu_label) : Ditto.
      	(workbook_view_set_paste_special_state) : Ditto.
      4c82ff1c
  13. 09 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Undo for - Renaming a sheet - Inserting current date/time - Simplify · ae564e24
      Jody Goldberg authored
      Undo for
      - Renaming a sheet
      - Inserting current date/time
      - Simplify wording for translators.
      
      2000-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_insert_cols) : Be kinder to translators.
      	(cmd_insert_rows) : Ditto.
      	(cmd_rename_sheet) : Implement.
      	(cmd_set_date_time_{undo,redo,destroy}) : Implement.
      	(cmd_set_date_time) : Implement.
      
      	* src/workbook.c (sheet_label_text_changed_signal) : Use
      	  cmd_rename_sheet.
      	(insert_at_cursor) : Delete.
      	(insert_current_time_cmd) : Use cmd_set_date_time.
      	(insert_current_date_cmd) : Use cmd_set_date_time.
      ae564e24
  14. 08 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Patch from list to enable sheet renaming from notebook tab popup. · a0d2eecd
      Jody Goldberg authored
      - Adjust redraw and recalc to be associated with command.
      - Partial cmd wrapper for sheet renaming (unused)
      
      2000-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_move_range) : Recalc here until there is a
      	  command wrapper for shift and cut_paste.
      
      	* src/sheet.c (sheet_{insert,delete}_{rows,cols}) : Move recalc
      	  request into the command wrapper.
      	* src/eval.c (sheet_recalc_dependencies) : Ditto.
      
      2000-01-07  Mike Kestner <mkestner@enteract.com>
      
      	* src/workbook.c (sheet_action_rename_sheet) : Enable rename from the
      	  popup menu associated with sheet tabs.
      a0d2eecd
  15. 06 Jan, 2000 2 commits
    • Jody Goldberg's avatar
      Partial row/col ins/del undo capabilites · e3ba4c02
      Jody Goldberg authored
      Begining support for paste_from_cut.
      
      2000-01-06  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : rename struct expr_relocate_info -> ExprRelocateInfo.
      
      	* src/sheet.c (sheet_save_row_col_sizes) : New routine to support undo.
      	(sheet_save_row_col_sizes) : Ditto.
      	(col_row_info_init) : Init hard_size.
      
      	* src/commands.c (cmd_ins_del_row_col_undo) : Restore the row/col size
      	  info.
      	(cmd_ins_del_row_col_redo) : Save the info.
      e3ba4c02
    • Morten Welinder's avatar
      Some initial stabilization. · 2bff0265
      Morten Welinder authored
      and bug fixing.
      
      2000-01-05  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_set_text_undo) : Free the old string.
      	(command_push_undo) : No need to ref objects.  Things are born with
      	  ref 1.
      	(gnumeric_command_destroy): Brown paper bag fix.
      
      2000-01-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE_WITH_PARENT) : new macro.
      	(GNUMERIC_MAKE_COMMAND) : Use GNUMERIC_MAKE_TYPE_WITH_PARENT rather
      	  than defining an empty Class for each command.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Pop the fake
      	  SetText.
      
      	* src/commands.c (cmd_delete_cols) : Fix typo.
      	(command_list_pop_top_undo) : New command.
      
      	* src/command-context-corba.c (ccc_error_splits_array) : Suppress
      	  warning.
      
      	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Disable
      	  for bonobo versions.
      2bff0265
  16. 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
      	  disabled.
      
      	* src/sheet.c (sheet_set_current_value) : Use cmd_set_text to register
      	  undo.
      
      	* 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.
      7667d632