1. 13 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      Outline mode events and undo/redo are working. · c0aa8960
      Jody Goldberg authored
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (colrow_set_visibility) : don't collapse things unless
      	  they are at the end of the region.  Always uncollapse things.
      
      2001-04-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_draw) : tweak the redraw a bit to match
      	  event handling
      
      	* src/mstyle.c (mstyle_elements_equal) : remove pointless asserts and
      	  correct the logic.
      	(mstyle_element_equal) : Stop passing structs.
      	(mstyle_elements_equal) : adjust here.
      	(mstyle_elements_compare) : and here.
      
      2001-04-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (colrow_set_visibility) : collapse state changes can
      	  occur more than once within a range.
      
      	* src/sheet.c (sheet_col_row_gutter_pts) : simplify, no need to store
      	  sizes in pts.  Outline level is enough.
      	  s/sheet_col_row_gutter_pts/sheet_col_row_gutter/
      c0aa8960
  2. 12 Apr, 2001 1 commit
  3. 31 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      Some improvements to blip loading. · 186ac28d
      Jody Goldberg authored
      and some tuning that greatly improves startup time.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-container.c (ms_container_init) : Take a parent container.
      	(ms_container_finalize) : handle NULL blips smoothly.
      	(ms_container_get_blip) : check the container if we are empty.
      
      	* ms-escher.c (ms_escher_read_Blip) : always register a blip, even if
      	  it is NULL, otherwise the index gets confused.  Move the
      	  registration here.
      	(ms_escher_blip_new) : from here.
      	(ms_escher_read_ClientData) : replace blips we can't understand with
      	  rectangles.
      
      	* ms-chart.c (ms_excel_chart) : Pass in the charts container.
      
      	* ms-excel-read.c (ms_excel_workbook_new) : workbook have no parents.
      	(ms_excel_sheet_new) : Sheets are contained by workbooks.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_sheet_remove_all) : clear the
      	  notebook BEFORE deleting it to avoid updating during destuction.
      
      	* src/cellspan.c (cell_calc_span) : Cells in hidden columns can not
      	  have spans.
      
      	* src/file.c (file_finish_load) : no need to manually respan this will
      	  happen via sheet_update.  This gives us a nice speed up.
      
      	* src/sheet.c (sheet_cell_calc_span) : don't reregister spans that
      	  have not changed.
      	(sheet_new) : init all flags to true to ensure things get updated.
      186ac28d
  4. 30 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      remove style_debug option tha was unused. It was only mostly unused :-) · bd9663e4
      Jody Goldberg authored
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/main.c : remove style_debug option tha was unused.
      	* src/mstyle.c (mstyle_elements_equal) : It was only mostly unused :-)
      
      	* src/workbook-control-gui.c (wbcg_menu_state_sheet_count) : fix.
      
      	* src/item-bar.c (is_pointer_on_division) : robustify in the face of
      	  clicking out of bounds.
      	(item_bar_event) : ditto, also simplfy a bit.
      bd9663e4
  5. 28 Mar, 2001 1 commit
  6. 27 Mar, 2001 1 commit
    • Morten Welinder's avatar
      New function, extracted from cmd_search_replace_do. · 9afef623
      Morten Welinder authored
      2001-03-26  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.c (workbook_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/sheet.c (sheet_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/cell.c (cell_has_comment_pos): New function for those cells
       	that aren't really there.
      
      	* src/commands.c (cmd_search_replace_do): Use workbook_cells and
       	sheet_cells.
      	(cmd_search_replace_do_cell): Change to take position instead of
       	cell.  Handle missing cells without crashing.
      9afef623
  7. 17 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      Handle outline mode. (ms_excel_read_colinfo) : ditto. (ms_excel_read_guts) · e1a87d5f
      Jody Goldberg authored
      
      2001-03-15  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_read_row) : Handle outline mode.
      	(ms_excel_read_colinfo) : ditto.
      	(ms_excel_read_guts) : ditto.
      
      2001-03-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_calc_size) : rename from
      	  item_bar_fonts_init.
      
      	* src/sheet-control-gui.c (scg_set_zoom_factor) : prepare for panes by
      	  zooming the col/row header canvases.  We need this as we transition
      	  to using gnumeric-sheets instead of canvases to hold the item-bars.
      
      2001-03-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (colrow_equal) : handle outline&collapse.
      	(colrow_copy) : ditto.
      
      	* src/item-bar.c (outline_button_press) : new function.
      	(item_bar_event) : used here.
      
      2001-03-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (compute_pixels_from_pts) : new function.
      	(item_bar_fonts_init) : resize the indent gutters based on the zoom.
      	(item_bar_realize) : add another gc for outline drawing.
      	(item_bar_unrealize) : ditto.
      	(item_bar_draw) : implement drawing for groupings.
      	(set_cursor) : handle cursor in the presence of groupings.
      
      2001-03-14  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : update the handling of the oaf file.
      
      	* src/sheet.c (sheet_col_row_default_calc) : rename from
      	  sheet_col_row_default_init.
      
      2001-03-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_write_print_repeat_range) : PrintRepeatRange now
      	  uses a simple Range.
      	(xml_read_print_repeat_range) : ditto.
      	* src/print-info.c (print_info_new) : ditto.
      	(save_range) : Ditto.
      	* src/dialogs/dialog-printer-setup.c (do_fetch_page_info) : ditto.
      	* src/print.c (print_range_used_units) : ditto.
      	(print_range_right_then_down) : ditto.
      	(print_range_down_then_right) : ditto.
      	(print_page_repeated_intersect) : ditto.
      	(print_page_repeated_cols) : ditto.
      	(print_page_repeated_rows) : ditto.
      	(print_page) : ditto.
      
      	* src/sheet-control-gui.c (scg_set_zoom_factor) : The sizing has moved
      	  into the itembar.
      
      	* src/item-bar.c : s/orientation/is_col_header/
      	(item_bar_fonts_init) : Init the ideal cell size.
      	(item_bar_update) : Begin to support grouping.
      	(item_bar_draw) : ditto.
      	(item_bar_init) : init the new members.
      
      	* src/print-cell.c (print_cell) : re-enable halign FILL.
      	* src/cell-draw.c (cell_draw) : ditto.
      e1a87d5f
  8. 11 Mar, 2001 1 commit
    • Jody Goldberg's avatar
      avoid generating a spurious signal when pressing on the scrollbar but not · 77e75622
      Jody Goldberg authored
      
      2001-03-10  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric-[vh]scrollbar.c (gnumeric_[vh]scrollbar_button_press) : avoid
      	  generating a spurious signal when pressing on the scrollbar but not
      	  moving.
      
      2001-03-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_construct) : lay some ground work for
      	  multiple panes.
      
      2001-03-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : fix off by
      	  one width/height error at far boundary.
      
      	* src/xml-io.c (xml_get_print_unit) : make units case sensitive.
      77e75622
  9. 04 Mar, 2001 1 commit
  10. 25 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Bart bugs · dcbb2ead
      Jody Goldberg authored
      2001-02-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : Invert the logic if this test.
      	  We increment again later.  So what we really want is to avoid double
      	  incrementing and avoid incrementing past the end.
      
      	* src/cellspan.c (cell_calc_span) : rework when to increment
      	  boundaries.  It is important not to have a span end in a hidden
      	  column or it will not be drawn.  As such we need to be careful to
      	  only increment the margin args when a bound extends into a visible
      	  column.
      
      	* src/sheet.c (sheet_regen_adjacent_spans) : check for spans before
      	  cells in case we are cutting off the span at its core.
      
      	* src/colrow.c (colrow_set_visibility_list) : set all visibilities
      	  before regening spans.
      
      	* src/cell-draw.c (cell_draw) : Add some warnings for cols/rows that
      	  are too small.
      dcbb2ead
  11. 24 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      reorder to handle unmerging directly. (cmd_merge_cells_undo) : ditto. · ab441bef
      Jody Goldberg authored
      
      2001-02-23  Jody Goldberg <jgoldberg@home.com>
      
       	* src/commands.c (cmd_merge_cells_redo) : reorder to handle unmerging
       	  directly.
       	(cmd_merge_cells_undo) : ditto.
       	(CmdMergeCells) : no need to inherit from CmdUnmergeCells.
       	(cmd_unmerge_cells_redo) : merge the 'internal' versions.
       	(cmd_unmerge_cells_undo) : merge the 'internal' versions.
      
      2001-02-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-border.c (style_border_vmargins) : remove unnecessary
      	  reference to next_sr.  sr.bottom == next_sr.top
      	  For normal borders horizontal always dominates vertical.
      	(style_border_hmargins) : Only cut corners for doubles if the corner
      	  is a double.
      
      	* src/sheet.c (sheet_cursor_set_full) : new function.
      
      	* src/selection.c (sheet_selection_set_internal) : Use it here.
      	  The trick is that when extending a selection to include merged cells
      	  it is possible that the edit cell is neither the base nor the move
      	  col/row.  When you then shrink the selection to the pre-extended
      	  state, without the merged region, you have lost track of the corner
      	  and can easily loose the edit_position.
      
      	* src/workbook-format-toolbar.c (toggled_from_toolbar) : delete this
      	  ugliness.  We don't need it anymore.
      
      2001-02-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_ui_update_begin) : new utility
      	(wbcg_ui_update_end) : new utility
      
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Use them
      	  here.
      	(workbook_format_halign_feedback_set) : update center-across-selection
      	  in the bonobo case.
      	(do_modify_format) : rewrite to use the format from the edit cell and
      	  to support undo.
      
      	* src/format.c (format_toggle_thousands) : delete.
      
      2001-02-23  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : post release version bump to 0.64.
      ab441bef
  12. 18 Feb, 2001 2 commits
    • Jody Goldberg's avatar
      Some bug stomping. · d6270f26
      Jody Goldberg authored
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c : Back port the help text from the bonobo
      	  verson.
      	(workbook_menu_edit_select) : Use Meta-space for select row,
      	  Shift-space does not work well.
      	(wbcg_close_control) : fix typo (bug 51058)
      
      	* src/workbook-edit.c (workbook_finish_editing) : Editig is local to
      	  the control.
      	(workbook_start_editing_at_cursor) : ditto.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c : reindent some ugliness from the rename.
      
      	* src/sheet.c (sheet_create_editor) : delete.
      d6270f26
    • Jody Goldberg's avatar
      s/display_zero/hide_zero/ + necessary logic inversions · a8dc5b30
      Jody Goldberg authored
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	s/display_zero/hide_zero/		+ necessary logic inversions
      	s/show_grid/hide_grid/			+ necessary logic inversions
      	s/show_col_header/hide_col_header/	+ necessary logic inversions
      	s/show_row_header/hide_row_header/	+ necessary logic inversions
      	s/wb_control_paste_special_enable/wb_control_menu_state_paste_special/
      	s/wbcg_paste_special_enable/wbcg_menu_state_paste_special/
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
      	  Simplfy and use wbcg::updating_ui.
      	(workbook_format_halign_feedback_set) : use simplified interface.
      	(workbook_feedback_set) : Ditto.
      	(set_selection_halign) : If the current alignment is already set to
      	  the target type revert to general.
      
      	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
      	  will default to width / 2.
      	* src/item-grid.c (item_grid_draw_merged_range) : Ditto.
      	(item_grid_draw) : Ditto.
      
      	* src/print-cell.c (print_cell) : print_cell::h_center
      	  will default to width / 2.
      	(print_merged_range) : Ditto.
      	(print_cell_range) : Ditto.
      
      	* src/sheet.c (sheet_adjust_preferences) : Update the menus to reflect
      	  changes in prefs.  Take a flag to control redraw requests.
      	(sheet_menu_state_enable_insert) : new function.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_enable_insert) : Merge
      	  all the insert col/row/cell menu updates into here.
      	(wbcg_menu_state_sheet_prefs) : new function.
      	(cb_sheet_pref_display_formulas) : reentrancy protection and use
      	  sheet_adjust_preferences.
      	(cb_sheet_pref_hide_zeros) : ditto.
      	(cb_sheet_pref_hide_grid_lines) : ditto.
      	(cb_sheet_pref_hide_col_header) : ditto.
      	(cb_sheet_pref_hide_row_header) : ditto.
      	(workbook_control_gui_init) : add the new menu items.
      	(workbook_control_gui_ctor_class) : reorg a bit.
      
      	src/workbook-control.c : reorg a bit.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Make python plugin optional.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control.c (wb_control_sheet_add) : update menus here.
      
      	* src/print-cell.c (print_cell) : fix the display zero logic.
      	* src/cell-draw.c (cell_draw) : ditto.  And fix the comment.
      
      2001-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_default_halign) : Handle alignment of numbers
      	  correctly when displaying formulas.
      
      	* src/embeddable-grid.c (set_header_visibility) : start using our
      	  native MVC.
      	(Grid_set_header_visibility) : ditto.
      	(embeddable_grid_set_header_visibility) : delete.
      
      	* src/sheet-control-gui.c (scg_set_header_visibility) : delete.
      	(scg_adjust_preferences) : Make this contingent on having a wbcg.
      
      	* src/selection.c (sheet_selection_set_internal) : Use
      	  sheet_menu_state_enable_insert.
      	(sheet_selection_reset) : ditto.
      a8dc5b30
  13. 15 Feb, 2001 1 commit
  14. 13 Feb, 2001 1 commit
  15. 11 Feb, 2001 1 commit
  16. 09 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Remove the ugly alight right · 2f67d8d0
      Jody Goldberg authored
      
      2001-02-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric.xml : Remove the ugly alight right
      
      	* src/style-border.c (style_borders_row_draw) : Do a quick
      	  implementation of diagonals.
      2f67d8d0
  17. 07 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      typo. · cb906df6
      Jody Goldberg authored
      
      2001-02-06  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_read_default_col_width) : typo.
      
      2001-02-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (print_page) : Print areas with visible styles too.
      
      	* src/sheet-style.c (sheet_style_has_visible_content) : new function
      
      2001-02-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-border.c (style_borders_row_print) : Use print_hline
      	  print_vline to simplify things later.
      
      	* src/print.c (print_page) : typo.
      
      	* src/sheet.c (sheet_col_set_default_size_pts) : Add some safety.
      	(sheet_row_set_default_size_pts) : Add some safety.
      cb906df6
  18. 04 Feb, 2001 1 commit
  19. 01 Feb, 2001 1 commit
    • Jody Goldberg's avatar
      Border drawing now handles the intersection cases. we still need to tidy up · b6ac6866
      Jody Goldberg authored
      the grid line intersection and move them into the border drawing routines.
      However, as a proof of concept we're pretty close.
      
      2001-02-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_get_extent) : don't call style_extent.  The
      	  caller can do that if desired.
      
      	* src/item-grid.c (item_grid_draw) : Use the new drawing code.
      
      	* src/style-border.c (style_border_fetch) : init 'width'
      	(style_border_set_gc_dash) : Use 'CAP_NOT_LAST' to get consistent
      	  behavior with width 0 and width > 0 lines.
      	(style_border_hdraw) : implement.
      	(style_border_vdraw) : implement.
      b6ac6866
  20. 29 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Rename to sheet_selection_reset. · 2862b796
      Almer S. Tigelaar authored
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/selection.c, src/selection.h:
      	(sheet_selection_reset_only): Rename to sheet_selection_reset.
      
      	* src/cmd-edit.c: s/sheet_selection_reset_only/sheet_selection_reset.
      	* src/commands.c: Ditto.
      	* src/gnumeric-sheet.c: Ditto.
      	* src/item-grid.c: Ditto.
      	* src/sheet.c: Ditto.
      	* src/sheet-control-gui.c: Ditto.
      	* src/xml-io.c: Ditto.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* ms-excel-read.c (ms_excel_read_selection):
      	Rename sheet_selection_reset_only to sheet_selection_reset.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* xml2.c
      	(xml2ParseSelection): Rename sheet_selection_reset_only
      	to sheet_selection_reset.
      2862b796
  21. 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
  22. 23 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      If we are not selecting a range for an expression then we should cancel · 63e24beb
      Jody Goldberg authored
      
      2001-01-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_colrow_select) : If we are not
      	  selecting a range for an expression then we should cancel editing.
      	(scg_context_menu) : cancel editing.
      
      2001-01-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c : Use the new wrapper function in scg (for now) rather
      	  than a direct call to gsheet.
      
      	* src/sheet-control-gui.c (scg_set_cursor_bounds) : new function to
      	  wrap direct calls to gsheet.  This is prep for supporting panes.
      	(scg_compute_visible_region) : new function
      	(scg_make_cell_visible) : new function
      	(scg_create_editor) : new function
      	(scg_stop_editing) : new function
      	(scg_stop_cell_selection) : new function
      
      	* src/pattern.c (gnumeric_background_set_gc) : no need for setting GC
      	  in non selection case.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create_editor) : renamed from
      	  gnumeric_sheet_create_editing_cursor.
      	(gsheet_compute_visible_region) : rename from
      	  gnumeric_sheet_compute_visible_ranges
      63e24beb
  23. 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
  24. 09 Jan, 2001 1 commit
  25. 02 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      add the new file. · 8f9fa37b
      Jody Goldberg authored
      
      2001-01-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : add the new file.
      
      	* src/sheet-style.h : new file split from sheet.h in preparation
      	  for changing the style engine.
      8f9fa37b
  26. 30 Dec, 2000 2 commits
    • Jody Goldberg's avatar
      support multiline text in merged cells. · ff6ecb93
      Jody Goldberg authored
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : support multiline text in merged
      	  cells.
      
      	* src/sheet.c (cb_max_cell_height) : merged cells do not contribute to
      	  the row height.
      ff6ecb93
    • 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
  27. 29 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. · 7008d180
      Jody Goldberg authored
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_redraw_cell_region) : support merged cells.
      
      	* src/style.c (style_font_new_simple) : guestimate width.
      	(style_font_get_width) : new function.
      
      	* src/rendered-value.c (rendered_value_new) : appoximate with via pts.
      	  handle merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_region_unmerge) : untag an existing cell as being
      	  merged.
      	(sheet_cell_remove_from_hash) : ditto.
      	(sheet_region_merge) : tag an existing cell as being merged.
      	(sheet_cell_add_to_hash) : ditto.
      
      	* src/item-edit.c (recalc_spans) : support merged cells.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_cell) : Early versions had newlines at the
      	  end of their content
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : no need to update
      	  object positions, we have already moved them.
      
      2000-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (GNUMERIC_MAKE_COMMAND_WITH_PARENT) : new macro.
      	(update_after_action) : new function to localize calls to
      	  sheet_update, dirty, recalc.
      	(GnumericCommand) : Add a sheet to help localize repeated calls to
      	  sheet_update, dirty, recalc.
      	(command_undo) : Call update_after_action.
      	(command_redo) : Call update_after_action.
      	(command_push_undo) : Call update_after_action.
      	(cmd_*_{undo,redo}) : remove calls to sheet_update, dirty, recalc.
      	(cmd_*) : set the sheet.
      	(cmd_paste_cut_update_origin) : new function.
      	(cmd_paste_cut_undo) : call cmd_paste_cut_update_origin.
      	(cmd_paste_cut_redo) : ditto.
      
      	* src/commands.c (CmdMergeCells) : inherit from CmdUnmergeCells to
      	  facilitate reuse and implement.
      7008d180
  28. 28 Dec, 2000 1 commit
  29. 27 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      hook up the commands. (cb_merge_cells) : ditto. Although merge is not yet · f678e4ba
      Jody Goldberg authored
      
      2000-12-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (cb_unmerge_cells) : hook up the
      	  commands.
      	(cb_merge_cells) : ditto.  Although merge is not yet implemented.
      
      	* src/sheet.c (sheet_update_only_grid) : Add support for repositioning
      	  the selection.
      	(sheet_region_unmerge) : set the flag here.
      	(sheet_region_merge) : and here.
      
      	* src/commands.c (cmd_unmerge_cells) : implement.
      	(cmd_unmerge_cells_destroy) : ditto.
      	(cmd_unmerge_cells_redo) : ditto.
      	(cmd_unmerge_cells_undo) : ditto.
      f678e4ba
  30. 25 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      clean up includes. · 0ae4c759
      Jody Goldberg authored
      
      2000-12-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.h : clean up includes.
      0ae4c759
  31. 22 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      new function. (sheet_object_container_new_bonobo) : delete. · 1afafe3a
      Jody Goldberg authored
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-container.c (sheet_object_container_new) : new
      	  function.
      	(sheet_object_container_new_bonobo) : delete.
      
      2000-12-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_expr_and_value) : Make linking the
      	  expression optional.
      
      	* src/ranges.c (range_init_full_sheet) : adjusted from
      	  sheet_get_full_range.
      
      2000-12-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Don't create the object
      	  here.  Pass it in.
      1afafe3a
  32. 20 Dec, 2000 2 commits
    • Jody Goldberg's avatar
      Make test for simplicity smarter. · 2862c5d8
      Jody Goldberg authored
      2000-12-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Handle merged cells and
      	  arrays.
      
      	* src/sheet.c (sheet_relocate_merged) : new function.
      
      	* src/sheet-object.c (sheet_relocate_objects) : we only need to move
      	  objects in the origin zone.
      2862c5d8
    • Jody Goldberg's avatar
      new function. · d62e7b89
      Jody Goldberg authored
      
      2000-12-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_relocate_merged) : new function.
      
      	* src/sheet-object.c (sheet_relocate_objects) : we only need to move
      	  objects in the origin zone.
      d62e7b89
  33. 19 Dec, 2000 1 commit
  34. 17 Dec, 2000 3 commits
    • Jody Goldberg's avatar
      support merged cells fully. (sheet_find_boundary_vertical) : Ditto. · 01660787
      Jody Goldberg authored
      
      2000-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells
      	  fully.
      	(sheet_find_boundary_vertical) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_cursor_bounds) : Remove
      	  unnecessary sanity checks.
      	(cursor_horizontal_move) : pass the base row.
      	(cursor_vertical_move) : Ditto.
      	(rangesel_horizontal_move) : Ditto.
      	(rangesel_vertical_move) : Ditto.
      	(rangesel_horizontal_extend) : Ditto.
      	(rangesel_vertical_extend) : Ditto.
      
      	* src/selection.c (sheet_selection_extend) : Pass the base row/col.
      	* src/item-cursor.c (item_cursor_selection_event) : Ditto.
      01660787
    • Jody Goldberg's avatar
      no need to normalize. (sheet_cursor_set) : no need to normalize. · 523cc03f
      Jody Goldberg authored
      
      2000-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_new_sheet_view) : no need to normalize.
      	(sheet_cursor_set) : no need to normalize.
      
      	* src/item-cursor.c (item_cursor_set_bounds) : Add a notion of
      	  move_corner and base_corner.
      
      	* src/gnumeric-sheet.c
      	(cursor_horizontal_move) : renamed from move_cursor_horizontal.
      	(cursor_horizontal_extend) : renamed from move_horizontal_selection.
      	(cursor_vertical_move) : renamed from move_cursor_vertical.
      	(cursor_vertical_extend) : renamed from move_vertical_selection.
      	(gnumeric_sheet_selection_extend) : no need to normalize.  the
      	  item-cursor now does it for us.
      	(rangesel_horizontal_move) : renamed from selection_cursor_move_horizontal.
      	(rangesel_vertical_move) : renamed from selection_cursor_move_vertical.
      	(rangesel_horizontal_extend) : renamed from selection_expand_horizontal.
      	  Use the new item-cursor base/move corners.
      	(rangesel_vertical_extend) : renamed from selection_expand_vertical.
      	  Use the new item-cursor base/move corners.
      	(gnumeric_sheet_key_mode_sheet) : simplify.
      
      	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells.
      	(sheet_find_boundary_vertical) : ditto.
      	(sheet_set_edit_pos) : Add edit_pos vs edit_pos_real to improve merged
      	  cell support.
      	(sheet_region_get_merged_cell) : new function.
      
      	* src/gnumeric-sheet.c (move_cursor_horizontal) : Use edit_pos_real to
      	  improve handling for merged cells.
      	(move_cursor_vertical) : Ditto.
      	(start_cell_selection) : Ditto.
      523cc03f
    • Jody Goldberg's avatar
      support merged cells. (sheet_find_boundary_vertical) : ditto. · 17579c92
      Jody Goldberg authored
      
      2000-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells.
      	(sheet_find_boundary_vertical) : ditto.
      	(sheet_set_edit_pos) : Add edit_pos vs edit_pos_real to improve merged
      	  cell support.
      	(sheet_region_get_merged_cell) : new function.
      
      	* src/gnumeric-sheet.c (move_cursor_horizontal) : Use edit_pos_real to
      	  improve handling for merged cells.
      	(move_cursor_vertical) : Ditto.
      	(start_cell_selection) : Ditto.
      
      2000-12-16  Jody Goldberg <jgoldberg@home.com>
      
      	s/Sheet::cursor::edit_pos/Sheet::edit_pos/
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_new) : No need to pass in the
      	  col/row items.  They are available from the sheet control.
      
      	* src/sheet-control-gui.c (sheet_view_construct) : signature change to
      	  gnumeric_sheet_new.
      17579c92
  35. 16 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Tidy up the naming scheme a bit. s/row_col/colrow/ s/col_row/colrow/ · 30c9841e
      Jody Goldberg authored
      
      2000-12-15  Jody Goldberg <jgoldberg@home.com>
      
      	Tidy up the naming scheme a bit.
      	s/row_col/colrow/
      	s/col_row/colrow/
      	s/SheetSelection/Range/
      
      	* src/workbook-cmd-format.c (workbook_cmd_resize_selected_colrow) :
      	  Merged from workbook_cmd_format_column_width and.
      	  & workbook_cmd_format_row_height
      
      	* src/item-bar.c (item_bar_end_resize) : Call scg_colrow_size_set
      	  directly.
      	(item_bar_class_init) : remove the SIZE_CHANGED signal.
      
      	* src/selection.c (sheet_selection_full_cols_rows) : merge
      	  sheet_selection_full_cols & sheet_selection_full_rows.
      30c9841e