1. 16 May, 2001 2 commits
  2. 15 May, 2001 6 commits
    • Jon K Hellan's avatar
      Define menu state enums for print setup, search/replace and define names · a4a97170
      Jon K Hellan authored
      2001-05-15  Jon K Hellan  <hellan@acm.org>
      
       	* src/workbook-control.h: Define menu state enums for print setup,
       	search/replace and define names and a define for the lot.
      
       	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
       	Add menu_item_print_setup, menu_item_search_replace,
       	menu_item_define_name members.
      
       	* src/workbook-edit.c (workbook_edit_attach_guru,
       	workbook_edit_detach_guru): Update Update print setup,
       	search/replace and define names sensitivity according to whether
       	or not we have guru.
      
       	* src/workbook-control-gui.c (wbcg_menu_state_update): Ditto. This
       	is where it's actually implemented.
      
       	* src/dialogs/dialog-define-names.c (dialog_define_names):
       	Ensure only one guru per workbook.
      
       	* src/dialogs/dialog-search-replace.c (dialog_search_replace):
              Ditto.
      
       	* src/dialogs/dialog-printer-setup.c (dialog_printer_setup):
              Ditto.
      a4a97170
    • Almer S. Tigelaar's avatar
      Sync for adjustment to scrollbars. (horizontal_scroll_offset_changed): · f47b0c8c
      Almer S. Tigelaar authored
      2001-05-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/sheet-control-gui.c (vertical_scroll_offset_changed): Sync
      	for adjustment to scrollbars.
      	(horizontal_scroll_offset_changed): Idem.
      
      2001-05-15  Almer S. Tigelaar  <almer@gnome.org>
      
      	* gnumeric-hscrollbar.c (gnumeric_hscrollbar_button_press): Adjust
      	for new live toggling
      	(gnumeric_hscrollbar_init): Idem.
      	(gnumeric_hscrollbar_adjustment_value_changed): Idem.
      
      	* gnumeric-vscrollbar.c (gnumeric_vscrollbar_button_press): Adjust
      	for new live toggling
      	(gnumeric_vscrollbar_init): Idem.
      	(gnumeric_vscrollbar_adjustment_value_changed): Idem.
      f47b0c8c
    • Stano Visnovsky's avatar
      Updated Slovak translation · 39b2d73c
      Stano Visnovsky authored
      39b2d73c
    • Morten Welinder's avatar
      Commas. · 18dc687d
      Morten Welinder authored
      18dc687d
    • Jody Goldberg's avatar
      reinstate this and optionally support delayed scrolling. · 7b6a0564
      Jody Goldberg authored
      
      2001-05-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (vertical_scroll_offset_changed) : reinstate
      	  this and optionally support delayed scrolling.
      	(horizontal_scroll_offset_changed) : ditto.
      	(scg_construct) : reinstate.
      7b6a0564
    • Jody Goldberg's avatar
      new function. (expr_tree_boundingbox) : implement. · 65581810
      Jody Goldberg authored
      
      2001-05-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (cellref_boundingbox) : new function.
      	(expr_tree_boundingbox) : implement.
      
      2001-05-14  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-cell-format.c (fmt_dialog_impl) : move the containment logic
      	  from here.
      	(setup_color_pickers) : to here.  Adjust the aligment and add a frame.
      65581810
  3. 14 May, 2001 6 commits
    • Almer S. Tigelaar's avatar
      Add shrink flag. (cb_autofit_height_no_shrink): Callback function for new · aca66eeb
      Almer S. Tigelaar authored
      2001-05-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/colrow.c (rows_height_update): Add shrink flag.
      	(cb_autofit_height_no_shrink): Callback function for new
      	autofit without shrinking functionality.
      
      	* src/commands.c (cmd_paste_cut_redo): Adjust for change
      	to rows_height_update.
      	(cmd_paste_copy_undo): Idem.
      	(cmd_autoformat_undo): Idem.
      	(cmd_format_undo): Idem.
      
      	* src/clipboard.c (clipboard_paste_region): Idem.
      
      	* src/sheet.c (sheet_clear_region): Idem.
      	(sheet_apply_style): Idem.
      aca66eeb
    • Almer S. Tigelaar's avatar
      New, contains what was previously in cmd_paste_copy_undo. · f1eb6bf6
      Almer S. Tigelaar authored
      2001-05-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_paste_copy_impl): New, contains
      	what was previously in cmd_paste_copy_undo.
      	(cmd_paste_copy_undo): Call upon cmd_paste_copy_impl.
      	(cmd_paste_copy_redo): Idem.
      	(cmd_paste_copy): Remove initialization of me->is_undo flag,
      	the flag has been burned.
      f1eb6bf6
    • Morten Welinder's avatar
      Commenting. · d0aa7413
      Morten Welinder authored
      d0aa7413
    • Almer S. Tigelaar's avatar
      Bump GAL version requirement to 0.7.99.5 · 14e63ba1
      Almer S. Tigelaar authored
      2001-05-14  Almer S. Tigelaar  <almer@gnome.org>
      
      	* configure.in: Bump GAL version requirement to 0.7.99.5
      
        	* src/workbook-format-toolbar.c (cb_back_color_changed): Add
        	by_user flag handling and sync the combo's on all other views
       	if the color changes.
        	(cb_fore_color_changed): Idem.
        	(workbook_create_format_toolbar): Pass workbook view's to
        	color_group_fetch and sync the colors of the back and fore combo's
       	with the other views on creation.
      
      2001-05-14  Almer S. Tigelaar  <almer@gnome.org>
      
       	* dialog-cell-format.c
      	(cb_custom_back_selected): Remove, We use colorcombo's now.
       	(cb_auto_color_selected): Idem.
       	(cb_custom_color_selected): Idem.
       	(cb_back_preview_color): Adjust for new colorcombo usage.
       	(cb_pattern_preview_color): Idem.
       	(cb_font_preview_color): Idem.
       	(cb_border_color): Idem.
       	(setup_color_pickers): Change entirely for
       	colorcombo support.
       	(draw_pattern_preview): Remove old colorpicker
       	code and update for the new situation.
       	(fmt_dialog_impl): Update for new situation in
       	case there's no back.
      14e63ba1
    • Miguel de Icaza's avatar
      Removed unused scrollbar code. · cc28f5fb
      Miguel de Icaza authored
      
      
      2001-05-14  Miguel de Icaza  <miguel@ximian.com>
      
      	* Makefile.am (libwidgets_a_SOURCES): Removed unused scrollbar code.
      
      2001-05-14  Miguel de Icaza  <miguel@ximian.com>
      
      	* src/sheet-control-gui.c: Removed support routines that used the
      	Excel-like toolbar.  I got fed up with it.
      	(scg_construct): Use regular Gtk scrollbars.  Connect to value
      	changed to reflect the state of the scrollbar on the spreadsheet
      	inmediately instead of doing the broken Excel behaviour.
      	That is one feature I cloned that was totally idiotic.
      cc28f5fb
    • Jody Goldberg's avatar
      Some header cleanup. · 819e57c8
      Jody Goldberg authored
      819e57c8
  4. 13 May, 2001 9 commits
    • Almer S. Tigelaar's avatar
      Resolve warning. · 4d2cc3af
      Almer S. Tigelaar authored
      2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control-gui.c (wbcg_error_splits_array):
      	Resolve warning.
      4d2cc3af
    • Almer S. Tigelaar's avatar
      Fix signedness. · 77ba6057
      Almer S. Tigelaar authored
      2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
      
      	* sylk.c (sylk_parse_line): Fix signedness.
      77ba6057
    • Almer S. Tigelaar's avatar
      Correct descriptor for autofitting. · ae86825c
      Almer S. Tigelaar authored
      2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_resize_colrow): Correct descriptor
      	for autofitting.
      ae86825c
    • Almer S. Tigelaar's avatar
      Use float. (colrow_restore_sizes): Use float. · ea41d091
      Almer S. Tigelaar authored
      2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/colrow.c (colrow_save_sizes): Use float.
       	(colrow_restore_sizes): Use float.
       	(colrow_restore_sizes_group): Walk the selections
       	in parallel with the saved_sizes. Now this will
       	actually work for variabele size multiple selections.
      
      	* src/commands.c (cmd_paste_copy_undo): Use the new
      	is_undo flag. We need this to properly set and restore
      	the row heights.
      	(cmd_paste_copy_redo): Set is_undo to false.
      	(cmd_paste_copy): Init is_undo flag.
      ea41d091
    • Almer S. Tigelaar's avatar
      Fix signedness. · 534928ff
      Almer S. Tigelaar authored
      2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
      
      	* sc.c (sc_parse_coord): Fix signedness.
      534928ff
    • Jody Goldberg's avatar
      Use the new CLEAR_NORESPAN flag. It is premature to respan the content of · c9031b0a
      Jody Goldberg authored
      
      2001-05-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_paste_region) : Use the new CLEAR_NORESPAN
      	  flag.  It is premature to respan the content of surrounding cells.
      	  That should only happen AFTER the new content goes in.
      
      	* src/sheet.c (sheet_cell_calc_span) : check for spans into this cell
      	  even if this cell is a merged cell.
      	(sheet_clear_region) : Make the respan conditional on a new flag.
      
      	* src/workbook-control-gui.c (cb_change_zoom) : Always update the zoom
      	  combo in case the entry does not match what was used.
      c9031b0a
    • Jody Goldberg's avatar
      only print warning once. (cmd_clear_undo) : There is no undo for pasting · 88b2f76c
      Jody Goldberg authored
      
      2001-05-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_clear_selection) : only print warning once.
      	(cmd_clear_undo) : There is no undo for pasting comments.
      	(cmd_paste_copy) : doh! We can not print the name of the target range,
      	  it is out of bounds!
      	(cmd_paste_cut) : ditto.
      88b2f76c
    • Michael Meeks's avatar
      commit the VALUE_EMPTY. · d92daca1
      Michael Meeks authored
      2001-05-13  Michael Meeks  <michael@ximian.com>
      
      	* ms-excel-write.c (write_value): commit the VALUE_EMPTY.
      
      	* ms-biff.c (ms_biff_put_len_next),
      	(ms_biff_put_var_next): add conditional debug to help catch
      	similar problems - none obvious just now.
      d92daca1
    • Jody Goldberg's avatar
      only print warning once. (cmd_clear_undo) : There is no undo for pasting · bea83ed2
      Jody Goldberg authored
      
      2001-05-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_clear_selection) : only print warning once.
      	(cmd_clear_undo) : There is no undo for pasting comments.
      bea83ed2
  5. 12 May, 2001 5 commits
    • Jody Goldberg's avatar
      If everything is hidden we can get into odd states. · bfddce7f
      Jody Goldberg authored
      
      2001-05-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : If everything is hidden we can
      	  get into odd states.
      bfddce7f
    • Valek Frob's avatar
      Updated russian translation. · 93b81f20
      Valek Frob authored
      93b81f20
    • Jody Goldberg's avatar
      New peek code generated some spurious errors when concatenating blanks. · 85e92e53
      Jody Goldberg authored
      
      2001-05-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_expr_real) : New peek code generated some spurious
      	  errors when concatenating blanks.
      85e92e53
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · 17d95497
      Jody Goldberg authored
      
      2001-05-12  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* src/workbook-control-gui.c (show_gui) : remove -64 limit.
      17d95497
    • Jody Goldberg's avatar
      add sheet_merge. (xml_sax_start_element) : add sheet_merge, and · eb7517d7
      Jody Goldberg authored
      2001-05-11  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_sax_characters) : add sheet_merge.
      	(xml_sax_start_element) : add sheet_merge, and sheet_merged_regions.
      	(xml_sax_end_element) : call xml_sax_parse_merge.
      	(xml_sax_parse_merge) : new function.
      	(xml_sax_parse_sheet_end) : new function to set the zoom after the
      	  content.
      	(xml_sax_parse_sheet_start) : renamed from xml_sax_parse_sheet.
      	(xml_parse_sheet_zoom) : just store the zoom don't set till later.
      	(xml_sax_cols_rows) : new function.
      
      2001-05-10  Jody Goldberg <jgoldberg@home.com>
      
      	* xml-sax-read.c (xml_sax_parse_attr_bool) : new function.
      	(xmlSaxParseSheet) : use it here.
      	(xml_sax_parse_wb) : fix inverted cmp.
      	(xmlSaxParseSheet) : no sheet yet here.  Just store the prefs for
      	  later.
      	(xmlSaxParseSheet) : use any saved prefs.
      	(xml_sax_file_open) : typo.
      
      2001-05-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_real_time_auto_expr_recalc) : new
      	  function.
      
      	* src/sheet.c (auto_expr_timer_clear) : new function.
      	(sheet_update) : toggle the selection_content_changed flag here and
      	  use a timer rather than an idle handler.
      
      	* src/workbook-edit.c (wbcg_edit_ctor) : Init the sensitivity timer.
      
      	* src/workbook-control-gui.c (workbook_setup_edit_area) : Use
      	  wbcg_edit_ctor.
      	(wbcg_destroy) : use wbcg_edit_dtor.
      
      	* src/main.c (gnumeric_main) : setlocale (LC_ALL, NULL) to force
      	  initialization of LC_* from the environment.
      eb7517d7
  6. 11 May, 2001 5 commits
    • Almer S. Tigelaar's avatar
      Write dimensions as unsigned integers. (biff_put_text): Signedness. · 169750b3
      Almer S. Tigelaar authored
      2001-05-11  Almer S. Tigelaar  <almer@gnome.org>
      
      	* ms-excel-write.c (write_sheet_bools): Write dimensions as
      	unsigned integers.
      	(biff_put_text): Signedness.
      	(write_externsheets): Signedness.
      	(excel_font_to_string): Signedness.
      	(fonts_free): Signedness.
      	(write_formats): Signedness.
      	(xf_free): Signedness.
      	(pre_cell): Signedness + Unused variabele.
      	(gather_styles): Signedness.
      	(map_pattern_index_to_excel): Signedness.
      	(write_index): Signedness.
      	(write_block): Signedness.
      	(write_sheet): Signedness.
      	(free_workbook): Signedness.
      	(write_workbook): Signedness.
      	(check_sheet): Signedness.
      
      	* ms-excel-formula-write (write_node): Cast untyped pointer.
      169750b3
    • Fatih Demir's avatar
      Updated Turkish translation for gnumeric. · 92f54b0f
      Fatih Demir authored
      92f54b0f
    • Jon Kåre Hellan's avatar
      src/widgets/gnumeric-expr-entry.h · 80d14003
      Jon Kåre Hellan authored
      80d14003
    • Jon K Hellan's avatar
      Improve handling of merged cells. Freeze expr entry display until final · 46049cb0
      Jon K Hellan authored
      2001-05-11  Jon K Hellan  <hellan@acm.org>
      
       	* src/sheet-control-gui.c (scg_rangesel_changed): Improve handling
       	of merged cells. Freeze expr entry display until final range is found.
      
      2001-05-11  Jon K Hellan  <hellan@acm.org>
      
      	* src/widgets/gnumeric-expr-entry.[ch]
      	(gnumeric_expr_entry_freeze, gnumeric_expr_entry_thaw ): New
      	functions, freeze/thay display updating.
      
      	* gnumeric-expr-entry.c (struct _GnumericExprEntry): Add
      	freeze_count and pos members to support feeze/thaw.
      	(gnumeric_expr_entry_set_rangesel_from_text): We don't support
      	this method while frozen. Trap it.
      	(make_display_range): Simplify signature. Parameters are now a
      	target range and the expr entry.
      	(make_rangesel_text): Simplify signature. expr entry is now the
      	only paramater. Take merged cells into account, displaying only
      	the corner cell if range is a merged cell.
      	(update_rangesel_text): Take pos parameter from expr_entry state,
      	so that it can be called from gnumeric_expr_entry_thaw.
      	(gnumeric_expr_entry_set_rangesel_from_range): Don't change text
      	while frozen.
      	(gnumeric_expr_entry_get_rangesel): Use new signature of
      	make_display_range.
      	(gnumeric_expr_entry_toggle_absolute): Send pos to
      	update_rangesel_text via expr_entry state.
      46049cb0
    • Jody Goldberg's avatar
      Clear the combos as well as the menus. · 256f9a97
      Jody Goldberg authored
      
      2001-05-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_sheet_delete) : Clear the combos as well as
      	  the menus.
      256f9a97
  7. 10 May, 2001 7 commits
    • Jody Goldberg's avatar
      intelligent naming. · 22b32c5d
      Jody Goldberg authored
      
      2001-05-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_selection_desc) : intelligent naming.
      22b32c5d
    • Ole Laursen's avatar
      Updated Danish translation · 768eb03f
      Ole Laursen authored
      768eb03f
    • Morten Welinder's avatar
      Complain if binary is more than 180 days old. · d4c516f6
      Morten Welinder authored
      2001-05-10  Morten Welinder  <terra@diku.dk>
      
      	* src/main.c (gnumeric_main): Complain if binary is more than 180
       	days old.
      d4c516f6
    • Almer S. Tigelaar's avatar
      include dialogs.h to supress warning. · 7d048809
      Almer S. Tigelaar authored
      2001-05-10  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-advanced-filter.c : include dialogs.h
      	to supress warning.
      
      	* dialog-cell-sort.c (string_pos_in_list): Cast pointer
      	from untyped to char *.
      
      	* dialog-function-wizard.c (formula_guru_set_expr): Fix
      	signedness by changing variable decl and some casts.
      	(cb_formula_guru_entry_focus_in): Fix signedness by casting,
      	we don't want to pollute our data structures with unsigned
      	integers.
      	(formula_guru_init): Fix signedness by changing decl.
      
      	* dialog-stf-fixed-page.c (fixed_page_autodiscover):
      	Fix signedness by changing decl.
      
      	* dialog-stf-preview.c (stf_preview_get_table_pixel_width):
      	Fix signedness by changing decl.
      	(stf_preview_colformats_clear): Idem.
      	(stf_preview_get_column_at_x): Idem.
      	(stf_preview_get_column_border_at_x): Idem.
      	(stf_preview_get_char_at_x): Idem.
      
      	* dialog-summary.c (dialog_summary_update): Fix signedness by
      	cast.
      7d048809
    • Jon K Hellan's avatar
      Fix include file typo. · 134cf3fc
      Jon K Hellan authored
      2001-05-10  Jon K Hellan  <hellan@acm.org>
      
      	* dialog-search-replace.c: Fix include file typo.
      134cf3fc
    • Jon K Hellan's avatar
      Rename hbox holding range field from hbox2 to range-hbox. Remove range · 80075c62
      Jon K Hellan authored
      2001-05-09  Jon K Hellan  <hellan@acm.org>
      
      	* search-replace.glade: Rename hbox holding range field from hbox2
      	to range-hbox. Remove range combo, let C code add it on the fly.
      
      	* dialog-search-replace.c (ok_clicked): Get text from widget
      	stored in context.
      	(dialog_destroy): Detach guru.
      	(set_focus): New function. Redirect workbook input when an
      	ExprEntry receives focus. Reset when another type of widget
      	receives focus.
      	(range_focused): New function. Set "range" radio button active
      	when focus enters range field.
      	(non_model_dialog): Use gnumeric_keyed_dialog.
      	(dialog_search_replace): Raise existing s+r dialog if there is
      	one.  Add ExprEntry widget on the fly to hold range. Add focus
      	handlers set_focus and range_focused. Attach scg to ExprEntry and
      	dialog to workbook as guru.
      80075c62
    • Almer S. Tigelaar's avatar
      Restore row heights after undo. (cmd_paste_cut_redo): Backup row heights. · 869aae37
      Almer S. Tigelaar authored
      2001-05-10  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/commands.c (cmd_paste_cut_undo): Restore
      	row heights after undo.
      	(cmd_paste_cut_redo): Backup row heights.
      	(cmd_paste_cut_destroy): Destroy saved sizes.
      	(cmd_paste_cut): Initialize saved sizes.
      	(cmd_paste_copy_undo): Save and restore row heights.
      	(cmd_paste_copy_destroy): Destroy saved sizes.
      	(cmd_paste_copy): Initialize saved sizes.
      869aae37