1. 05 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      renamed from sheet_cell_formula_{link,unlink}. · 7f94ba9e
      Jody Goldberg authored
      
      2000-06-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_expr_{link,unlink}) : renamed from
      	  sheet_cell_formula_{link,unlink}.
      
      	* src/cell.c (cell_relocate) : Doh! use the offset flags now that they
      	  are being passed.
      
      	* src/clipboard.c (paste_cell) : Renamed from paste_cell_flags.
      
      	* src/expr.c (compare) : value_is_empty_cell -> VALUE_IS_EMPTY.
      
      	* src/value.c (VALUE_IS_EMPTY) : rename from value_is_empty_cell.
      
      	* src/sheet-private.h : Add resize_scrollbar.
      
      	* src/sheet.c (sheet_{col,row}_add) : Use resize_scrollbar flag rather
      	  than manually updating the scrolling bar.
      	(sheet_update) : Handle resize_scrollbar.
      	(sheet_cell_expr_link) : renamed from sheet_cell_formula_link.
      	(sheet_cell_expr_unlink) : renamed from sheet_cell_formula_unlink.
      7f94ba9e
    • Morten Welinder's avatar
      Fix comment to match Jody's last change. · 3a33d315
      Morten Welinder authored
      3a33d315
  2. 04 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      str == "" is not empty · 112af83f
      Jody Goldberg authored
      
      2000-06-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_is_empty_cell) : str == "" is not empty
      
      	* src/expr.c (compare) : comparisons between "" and empty are special.
      112af83f
    • Jody Goldberg's avatar
      Set the CELL_IN_SHEET_LIST flag. (sheet_cell_remove_from_hash) : Clear the · c6a63d53
      Jody Goldberg authored
      
      2000-06-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_add_to_hash) : Set the CELL_IN_SHEET_LIST
      	  flag.
      	(sheet_cell_remove_from_hash) : Clear the CELL_IN_SHEET_LIST flag.
      	(cb_remove_allcells) : Ditto.
      	(sheet_cell_formula_link) : Set the CELL_IN_EXPR_LIST flag.
      	(sheet_cell_formula_unlink) : Clear the CELL_IN_EXPR_LIST flag.
      	(sheet_formulas_unlink) : Ditto.
      
      	* src/clipboard.c (paste_cell_flags) : Take some additional arguments
      	  so that pasted cells can potentially have their references made
      	  invariant, this is for sorting.
      	(clipboard_paste_region) : Pass the additional offsets when
      	  PASTE_EXPR_RELOCATE is specified.
      	(append_cell_closure_t) : Delete this type.  Move the origin cell info
      	  into CellRegion.
      
      	* src/cell.c (cell_copy) : Clear the sheet and associated flags for
      	  the copied cell.  This avoids accidentally realizing comments that
      	  become undeletable.
      	(cell_relocate) : Remove the unlink flag now that we have the
      	  additional cell_flags.
      c6a63d53
  3. 02 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      Delete unused routine. (sheet_selection_to_list) : Ditto. · 7baa890a
      Jody Goldberg authored
      
      2000-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_reset) : Delete unused routine.
      	(sheet_selection_to_list) : Ditto.
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Use new undoable
      	  version of autofill.
      
      	* src/corba-sheet.c (Sheet_selection_reset) : Delete.
      
      	* src/commands.c (cmd_area_set_text_undo) : We want to restore
      	  formulas, not values.
      	(cmd_clear_selection) : Paste by value should be exclusive of paste by
      	  formula.
      	(cmd_autofill_*) : New functions.
      
      	* idl/Gnumeric.idl : Remove useless function selection_reset.
      
      	* src/number-match.c (format_match) : Handle numbers larger than
      	  LONG_{MAX,MIN} by falling through to double.
      
      	* src/sheet.c (sheet_recompute_spans_for_col) : Use closure.
      7baa890a
    • Jody Goldberg's avatar
      Adjust to changes in sheet_foreach_colrow. · 840f684c
      Jody Goldberg authored
      
      2000-06-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_sheet_write) : Adjust to changes in
      	  sheet_foreach_colrow.
      
      	* src/sheet.c (sheet_foreach_colrow) : Adjust signature.
      	(colrow_compute_pixels_from_pts) : Adjust to changes in sheet_foreach_colrow.
      	(sheet_set_zoom_factor) : Ditto.
      	(cb_recalc_spans_in_col) : Ditto.
      	(sheet_recompute_spans_for_col) : Ditto.
      	(cb_colrow_compute_pixels_from_pts) : New function wrapper.
      	(sheet_find_boundary_{horizontal,vertical}) : Fix case of being on the
      	  last non-blank element of a col/row and jumping to the far edge.
      	(sheet_move_range) : Redraw prior to moving incase the src region
      	  contains a span.
      
      	(sheet_redraw_cell_region) : Be more intelligent about skipping over
      	  large empty regions.
      	(sheet_cell_foreach_range) : Ditto.
      
      	(cb_check_array_{horizontal,vertical}) : new functions.
      	(sheet_range_splits_array) : Rewrite to be use sheet_foreach_colrow.
      
      	* src/selection.c (sheet_selection_cut) : Adjust to changes in
      	  sheet_range_splits_array.
      
      	* src/commands.c (cmd_paste_cut_undo) : Select the src range when
      	  undoing a cut.  This seems like a nice effect.
      
      	* src/colrow.c (cb_set_row_height) : Adjust to the changes in
      	  sheet_foreach_colrow.
      
      	* src/auto-format.c (auto_format_suggest) : Make static.
      
      	* src/gnumeric-util.c (gnumeric_wb_dialog_run) : Silence warning.
      840f684c
  4. 01 Jun, 2000 2 commits
    • Jon K Hellan's avatar
      Do not set parent if parent is already the right one. This avoids unwanted · 17c94018
      Jon K Hellan authored
      2000-06-02  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (gnumeric_wb_dialog_run): Do not set parent
      	if parent is already the right one. This avoids unwanted moving of
      	already displayed dialogs.
      
      	* src/about.c: Make sure it is only popped up once
      	(cb_closed): New callback to remove dialog from workbook window's
      	object data.
      	(dialog_about): Check if dialog exists as object data on workbook
      	window. If so, raise dialog window instead of creating a new one.
      	Otherwise store dialog as object data, and connect signal handler
      	for "close".  Replace calls to gnome_dialog_set_parent,
      	gnome_dialog_set_close and gtk_widget_show with a call to
      	gnumeric_dialog_show which does it all.
      
      2000-06-02  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-autocorrect.c: #include dialog-autocorrect.h to silence
      	warning.
      
      	* dialog-printer-setup.c (spin_button_adapt_to_unit): Add default
      	clause to switch in order to silence warning.
      
      	* dialogs.h: Define key for storing about dialog as object data
      	on the workbook window.
      17c94018
    • Michael Meeks's avatar
      kill libole2 hack. · b82df064
      Michael Meeks authored
      2000-05-30  Michael Meeks  <michael@helixcode.com>
      
      	* src/Makefile.am (gnumeric_libs): kill libole2 hack.
      
      	* configure.in: kill CONFIG_SUBDIRS for libole2.
      b82df064
  5. 31 May, 2000 4 commits
    • Almer. S. Tigelaar's avatar
      : Remove misplaced gtk_main_quit. · 3d8aa13b
      Almer. S. Tigelaar authored
      2000-05-31  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* src/dialogs/dialog-stf.c :
      	(stf_dialog_druid_page_cancel) : Remove misplaced gtk_main_quit.
      
      	* src/dialogs/dialog-stf-export.c :
      	(stf_export_dialog_druid_page_cancel) : Idem.
      3d8aa13b
    • Jody Goldberg's avatar
      Fix typo reported by <matasmi@iki.fi> Bug 12428. · 47f6db34
      Jody Goldberg authored
      
      2000-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-information.c (gnumeric_countblank) : Fix typo
      	  reported by <matasmi@iki.fi> Bug 12428.
      47f6db34
    • Jody Goldberg's avatar
      invalidate destination before adjsuting src to point to dst. · ca66ede8
      Jody Goldberg authored
      
      2000-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_move_range) : invalidate destination before
      	  adjsuting src to point to dst.
      	(cmd_paste_cut_*) : keep a list of displaced content, not just the
      	  lost bits of the destination range, but also the portions of the src
      	  that are out of range.
      ca66ede8
    • 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
  6. 30 May, 2000 4 commits
    • Morten Welinder's avatar
      a9f83c61
    • Jon K Hellan's avatar
      Add MARGIN_NONE for use with set_horizontal/vertical_bounds. · a7d25ea4
      Jon K Hellan authored
      2000-05-30  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-printer-setup.c (enum MarginOrientation): Add
      	MARGIN_NONE for use with set_horizontal/vertical_bounds.
      	(spin_button_set_bound): New function. Allow the value in spin
      	button to increase by at most space_to_grow.
      	(get_printable_width): New function. Return page width minus
      	margins in specified unit.
      	(get_printable_height): New function. Return page height minus
      	margins, header and footer in specified unit.
      	(set_horizontal_bounds): New function. Set the upper bounds for
      	left and right margins.
      	(set_vertical_bounds): New function. Set the upper bounds for
      	top/bottom margins, headers and footers.
      	(draw_margin): Add default branch to silence warning - MARGIN_NONE
      	now exists.
      	(canvas_update): Update bounds for margins when paper size has
      	changed.
      	(spin_button_adapt_to_unit): New function. Select suitable
      	increments and number of digits for the unit.
      	(do_convert): Call function above.
      	(unit_changed): Update bounds for margins when a margin has
      	changed.
      	(unit_editor_configure): Call spin_button_adapt_to_unit.
      a7d25ea4
    • Jody Goldberg's avatar
      Off by one error when undoing insert/delete row/col · 1dfd3744
      Jody Goldberg authored
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_undo) : Bounds are inclusive.
      1dfd3744
    • Jody Goldberg's avatar
      The button can not have focus. · d187b9e8
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* gtk-combo-stack.c (gtk_combo_stack_construct) : The button can not
      	  have focus.
      d187b9e8
  7. 29 May, 2000 9 commits
    • Jody Goldberg's avatar
      adjust to the fact that glade files are versioned. Remove the default · d2b3a267
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-stf.glade{,.h} : adjust to the fact that glade files are
      	  versioned.  Remove the default labels from the Clists, they
      	  were being translated.
      	* dialog-stf-export.glade{,.h} :  Ditto.
      
      	* font-sel.glade{,.h} : Remove default labels from Clists.
      
      	* import.glade{,.h} : Ditto.
      d2b3a267
    • Jody Goldberg's avatar
      translate the menu labels. · b97010d1
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (create_popup_menu) : translate the menu labels.
      b97010d1
    • Jody Goldberg's avatar
      Translate the parm label. (add_output_frame) : Translate the frame label. · 1d48c1d3
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-analysis-tools.c (add_check_buttons) : Translate the parm
      	  label.
      	(add_output_frame) : Translate the frame label.
      	(dialog_descriptive_stat_tool) : Translate the buttons.
      	(distribution_parbox_config) : Ditto.
      	(combo_get_distribution) : Handle translation.
      	(dialog_random_tool) : Translate elements.
      	(dialog_data_analysis) : Ditto.
      1d48c1d3
    • Michael Meeks's avatar
      update for new PersistStream API. · 6f789f04
      Michael Meeks authored
      2000-05-27  Michael Meeks  <michael@helixcode.com>
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_load),
      	(sheet_object_bonobo_load_from_file): update for new PersistStream API.
      
      	* configure.in (gnumeric_executable): check for bonobo 0.14
      6f789f04
    • Jody Goldberg's avatar
      Only relocate a range if both elements need relocation. · fc9485cf
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (cellrange_relocate) : Only relocate a range if both
      	  elements need relocation.
      fc9485cf
    • Jody Goldberg's avatar
      Arrrggh. textdomain seems to use a static buffer. We need to strdup the · c15cd1d4
      Jody Goldberg authored
      
      2000-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_write) : Arrrggh.  textdomain seems to
      	  use a static buffer.  We need to strdup the result.  A more thorough
      	  reading of the docs suggests that changing the textdomain is
      	  completely wrong.  It is not doing what I had originally thought at
      	  all.  Any idea what the correct solution would be ?  I'll patch this
      	  for now because 12461 is serious, and this does solve the problem,
      	  even if the solution is crap.
      c15cd1d4
    • Jody Goldberg's avatar
      The button relief needs to be set too. · d679caf8
      Jody Goldberg authored
      
      2000-05-28  Jody Goldberg <jgoldberg@home.com>
      
      	* gtk-combo-stack.c (gtk_combo_stack_construct) : The button relief
      	  needs to be set too.
      d679caf8
    • Jody Goldberg's avatar
      Add missing file. · ba0e55ba
      Jody Goldberg authored
      ba0e55ba
    • ÉRDI Gergo's avatar
      Compile-time warnings. The final frontier. · 16b8c97a
      ÉRDI Gergo authored
      These are the voyages of Cactus, on a mission to seek out and fix new
      warnings, to boldly hack where noone has hacked before.
      16b8c97a
  8. 28 May, 2000 7 commits
    • ERDI Gergo's avatar
      Turn off the button reliefs on the toolbar · 006d8d8b
      ERDI Gergo authored
      2000-05-29  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* src/workbook.c (workbook_create_standard_toobar): Turn off the
      	button reliefs on the toolbar
      006d8d8b
    • 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
      f7ea6af7
    • ERDI Gergo's avatar
      New clear() method · dd5af307
      ERDI Gergo authored
      2000-05-28  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* gtk-combo-stack.c: New clear() method
      dd5af307
    • ERDI Gergo's avatar
      Create the stack widget with a stock pixmap · 4bd9bf41
      ERDI Gergo authored
      2000-05-28  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* gtk-combo-stack.[ch]: Create the stack widget with a stock
      	pixmap
      
      	* gtk-combo-box.c (gtk_combo_box_set_arrow_sensitive): new method
      	to make the dropdown button sensitive/unsensitive
      4bd9bf41
    • Jody Goldberg's avatar
      The first time through we transpose. After that we are jsut replace the · 57618e03
      Jody Goldberg authored
      
      2000-05-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy_undo) : The first time through we
      	  transpose.  After that we are jsut replace the old content.  no
      	  transpose needed.
      57618e03
    • Jody Goldberg's avatar
      When pasting a transpose we are more lenient about resizing things. I am · 9e0e872e
      Jody Goldberg authored
      
      2000-05-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c
      	(cmd_paste_copy) : When pasting a transpose we are more lenient about
      	  resizing things.  I am not sure I agree with this behavior.
      9e0e872e
    • Jody Goldberg's avatar
      Handle undo correctly when an attempt to paste fails. · 92922018
      Jody Goldberg authored
      2000-05-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy_undo) : handle paste errors.
      	(cmd_paste_copy_destroy) : do not release unless we are permitted to.
      
      	* src/clipboard.c (clipboard_paste_region) : Return a boolean
      	  indicating success or failure.
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_paste_region) : Off by one error.
      92922018
  9. 27 May, 2000 8 commits