1. 09 May, 2001 1 commit
    • Jody Goldberg's avatar
      Round 3 of the great rangesel cursor cleanup · 79f8f44b
      Jody Goldberg authored
      Still some bugs but things are much closer
      
      2001-05-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : split this out into.
      	* src/sheet-merge.c (sheet_merge_find_container) : here.
      	* src/sheet-control-gui.c (scg_rangesel_changed) : and here.
      
      2001-05-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_selection_info) : Use sheet_set_edit_pos.
      
      	* src/selection.c (sheet_selection_extend) : merge into
      	  scg_cursor_extend.
      
      	* src/sheet-control-gui.c (scg_cursor_move_to) : rename from
      	  scg_cursor_move.
      	(scg_cursor_extend) : merge scg_cursor_extend_[hv]
      	(scg_cursor_move) : merge scg_cursor_move_[hv]
      	(scg_rangesel_extend) : merge scg_rangesel_extend_[hv]
      	(scg_rangesel_move) : merge scg_rangesel_move_[hv]
      	(scg_rangesel_start) : cleanup.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : fix handling
      	  of Home. Simplify the function pointers for move vs extend by
      	  merging horizontal and vertical versions.
      79f8f44b
  2. 24 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      save the merged regions. (clipboard_release) : cleanup merged regions. · b18b73be
      Jody Goldberg authored
      
      2001-01-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_copy_range) : save the merged regions.
      	(clipboard_release) : cleanup merged regions.
      
      	* src/commands.c (cmd_merge_cells_redo) : move the non-corner content
      	  clearing from here.
      	* src/sheet-merge.c (sheet_merge_add) : to here.  Apply the style from
      	  the corner to the entire region.
      
      	* src/sheet.c (sheet_range_set_text) : clear range_filled merged
      	  regions.
      
      	* src/item-grid.c (item_grid_draw) : borders & grids for merged cells.
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-style.c (style_row) : move the clearing of grid lines
      	* src/item-grid.c (item_grid_draw) : from here.
      b18b73be
  3. 12 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Rework the style engine. Mostly functional. see BUGS for remaining details. · 9e615b65
      Jody Goldberg authored
      NOTE : I have not tested persistance.
      
      2001-01-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.c (mstyle_ref_multiple) : new function.
      	(mstyle_copy_merge) : new function.
      	(mstyle_new_default) : Do not cache the result.  That is done at the
      	  sheet level.
      	(mstyle_do_merge) : delete.
      	(mstyle_get_format) : constness.
      
      	* src/format-template.c (cb_format_sheet_border) : delete.
      	(format_template_apply_to_sheet_regions) : borders are no longer special.
      
      	* src/expr.c (expr_tree_array_formula_corner) : do not store the
      	  corner anymore.
      	(expr_tree_new_array) : ditto.
      	(do_expr_tree_unref) : ditto.
      
      	* src/cell.c (cell_relocate) : Arrays are simplified.  No need to keep
      	  a pointer to the corner.  It made the system too brittle.
      	(cell_set_mstyle) : delete.
      
      	* src/Makefile.am : remove test.[ch]
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : There is no
      	  1 pixel border.
      
      2001-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.h : Change order of borders to match BorderLocation
      
      2001-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_has_header) : avoid leaking styles.
      
      	* src/cell.c (cell_get_mstyle) : Use sheet_style_get, and do not bump
      	  the ref count.
      	(cell_render_value) : Adjust.
      	(cell_get_format : Adjust.
      	(cell_set_text) : Adjust.
      
      	* src/functions/fn-information.c (gnumeric_cell) : sheet_style_get
      	  does not make a reference. Use it.
      	* src/workbook-format-toolbar.c (modify_cell_format) :  Ditto.
      	(change_selection_font) : Ditto.
      	* src/sheet-autofill.c (fill_item_new) : ditto.
      	* src/print-cell.c (print_cell_range) : ditto.
      	* src/cellspan.c (cell_calc_span) : ditto.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size) : ditto.
      	* src/workbook-view.c (wb_view_format_feedback) : ditto.
      
      2001-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format) :
      	  init initial style to NULL.
      	(fmt_dialog_selection_type) : call sheet_style_get_uniform here.
      
      	* src/commands.c (cmd_format_redo) : Now that apply_border is not
      	  doing a redraw we need to if there is no style applied.
      
      	* src/selection.c (sheet_selection_extend_to) : Add support akin to
      	  gnumeric_sheet_rangesel_cursor_extend to extend to full col/row.
      
      	* src/sheet-control-gui.c (scg_colrow_select) : extend to full col/row
      	  if necessary.
      
      	* src/item-bar.c (item_bar_event) : Set the selection, not extend it.
      9e615b65
  4. 30 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Split merge cell support into a seperate file to decrease the size of sheet.c · afb5ea6f
      Jody Goldberg authored
      Add merged cell support to autofill.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (sheet_autofill_dir) : support merged cells.
      	(fill_item_new) : Ditto.
      
      	* src/sheet.c
      	(sheet_merge_add) : rename
      	(sheet_merge_remove) : rename
      	(sheet_merge_get_overlap) : rename
      	(sheet_merge_contains_pos) : rename
      	(sheet_merge_is_corner) : rename
      	(sheet_merged_relocate) : rename
      	(sheet_merge_get_adjacent) : rename
      
      	* src/rendered-value.c (rendered_value_new) : Use
      	  sheet_merge_is_corner rather than sheet_region_get_merged_cell.
      afb5ea6f