1. 30 Dec, 2001 1 commit
  2. 21 Dec, 2001 1 commit
  3. 16 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      add the 16x16 graph guru icon. · 32975887
      Jody Goldberg authored
      2001-12-15  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c (application_init) : add the 16x16 graph guru icon.
      
      	* doc/C/Makefile.am : distribute header & footer too.
      	* gnumeric.spec.in : s/images/figures/
      
      	* src/GNOME_Gnumeric.xml : The icon for Exit is 'Quit' not 'Exit'
      	  Add insert Graph.
      32975887
  4. 22 Nov, 2001 1 commit
  5. 01 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      generalize and fix leak. (cb_add_clicked) : generalize. (cb_select_row) : · 2ab27ef1
      Jody Goldberg authored
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-autocorrect.c (cb_remove_clicked) : generalize and fix leak.
      	(cb_add_clicked) : generalize.
      	(cb_select_row) : generalize.
      	(autocorrect_init_exception_list) : new.
      	(exceptions_callback) : clean up slightly.
      	(ac_button_toggled) : simplify.
      	(ac_dialog_toggle_init) : new.
      	(dialog_autocorrect) : simplify.  Rather than saving the content
                and restoring on cancel, only store the new values on <OK>.
      
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (entry_changed) : autocomplete is in the wbv now.
      	(wbcg_edit_start) : ditto.
      
      	* src/sheet-style.c (rstyle_apply) : fix some silliness in the new
      	  code, but more work to come.
      
      	* src/commands.c (cmd_set_text) : Yay! autocorrect is no longer tied
      	  to the gui.
      
      	* src/application.c (application_init) : Init autocorrection.
      
      	* src/workbook-view.c (wb_view_set_arg) : add do_auto_completion.
      	  Make this a per workbook-view, persistent attribute.  We still
      	  initialize from gnome-config, butthis should make things easier
      	  for users.
      	(wb_view_get_arg) : ditto.
      	(workbook_view_class_init) : ditto.
      2ab27ef1
  6. 18 Oct, 2001 1 commit
  7. 05 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      Add a matching save icon for the toolbar. · 9626fe3b
      Jody Goldberg authored
      2001-10-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : Add a matching save icon for
      	  the toolbar.
      
      	* src/workbook-control-gui.c (workbook_standard_toolbar) : Use it.
      	* src/GNOME_Gnumeric.xml : and here.
      9626fe3b
  8. 03 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      merge application_clipboard_cut and application_clipboard_copy. Make the · 25b21d90
      Jody Goldberg authored
      2001-10-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_clipboard_cut_copy) : merge
      	  application_clipboard_cut and application_clipboard_copy.
      	  Make the animated cursor optional.
      
      	* src/selection.c (sheet_selection_cut) : interface change.
      	(sheet_selection_copy) : ditto.
      	* src/commands.c (cmd_ins_del_colrow_undo) : ditto.
      	(cmd_ins_del_colrow_redo) : ditto.
      
      2001-10-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_match_create) : ensure we don't compile
      	  General.
      	  (format_match_init) : no need to filter General here.
      	* src/format.c (style_format_new_XL) : do it here.
      25b21d90
  9. 24 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-advanced-filter.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-plugin-manager.c,
      src/dialogs/dialog-printer-setup.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export-private.h,
      src/dialogs/dialog-stf-export-sheet-page.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/gnumeric-vscrollbar.c,
      src/widgets/widget-editable-label.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
      ac93e10a
  10. 15 Aug, 2001 1 commit
  11. 02 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      Add search&replace icon from evo. Use it. · 2d485384
      Jody Goldberg authored
      2001-08-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : Add search&replace icon from
      	  evo.
      	* src/workbook-control-gui.c (workbook_standard_toolbar_orient) : Use
      	  it.
      2d485384
  12. 01 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      add new icons from evolution. Use them. · 1fb8bf0c
      Jody Goldberg authored
      2001-07-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : add new icons from evolution.
      	* src/workbook-control-gui.c (workbook_standard_toolbar_orient) : Use
      	  them.
      1fb8bf0c
  13. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	  stupid.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	  fonts.
      
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
      99073bd9
  14. 15 May, 2001 1 commit
    • 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
  15. 12 May, 2001 1 commit
    • 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
  16. 08 May, 2001 1 commit
    • Almer S. Tigelaar's avatar
      New, combine all the enabling/disabling of menu items here including the · 86c531df
      Almer S. Tigelaar authored
      2001-05-08  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update): New, combine
      	all the enabling/disabling of menu items here including the newly
      	added show/hide menu items.
      	(wbcg_menu_state_enable_insert): Remove.
      	(wbcg_menu_state_paste_special): Remove.
      	(workbook_control_gui_ctor_class): Init menu_state_update callback
      	and remove paste_special and enable_insert initializations.
      	(workbook_control_gui_init): Initialize show/hide menu items.
      
      	* src/workbook-control-gui-priv.h: Add show/hide detail menu items
      	and tidy structure lay-out.
      
      	* src/workbook-control-priv.h: Remove menu_state_enable_insert
      	and menu_state_paste_special callbacks and add menu_state_update
      	callback.
      
      	* src/workbook-control.[ch]: Add wb_menu_state_update and
      	remove wb_menu_state_paste_special and wb_menu_state_enable_insert.
      	(wb_control_sheet_add): call wb_menu_state_update, Remove
      	call to menu_state_paste_special.
      
      	* src/sheet-private.h: Add enable_showhide_detail.
      
      	* src/sheet.c (sheet_new): Initialize menu state booleans.
      	(sheet_menu_state_enable_insert): Use wb_control_menu_state_update.
      
      	* src/workbook-view.c (wb_view_menus_update): Idem and
      	remove call to wb_control_menu_state_paste_special.
      
      	* src/application.c (application_clipboard_clear): Idem.
      	(application_clipboard_copy): Idem.
      	(application_clipboard_cut): Idem.
      
      	* src/selection.c (sheet_selection_set_internal): Add comment for
      	show/hide detail enabling/disabling, something we can't do just yet.
      86c531df
  17. 04 May, 2001 2 commits
    • Jody Goldberg's avatar
      s/clipboard_release/cellregion_free/ s/range_copy/range_dup/ · 32bde6ee
      Jody Goldberg authored
      
      2001-05-04  Jody Goldberg <jgoldberg@home.com>
      
      	s/clipboard_release/cellregion_free/
      	s/range_copy/range_dup/
      	s/cell_region_render_ascii/cellregion_to_string/
      	s/clipboard_release/cellregion_free/
      
      	* src/commands.c (cmd_autofill) : Use sheet_range_contains_region.
      	(cmd_autofill_redo) : no need to test here.
      	(cmd_paste_cut) : test destination for validity and ensure that it
      	  does not slice up any merged regions or arrays.  Make the descriptor
      	  an argument so that other commands can use this one.
      	(cmd_ins_del_colrow_redo) : use colrow_max.
      	(cmd_area_set_text_redo) : use sheet_ranges_split_region.
      	(cmd_colrow_outline_change) : suppress warning.
      
      	* src/gui-clipboard.c (x_selection_to_cell_region) : simplify by using
      	  some of the convenience routines.
      
      	* src/gutils.c (gnumeric_sys_data_dir) : warning suppression.
      	(gnumeric_sys_lib_dir) : ditto.
      
      	* src/item-bar.c (item_bar_draw) : add missing warning.
      
      	* src/item-cursor.c (item_cursor_drag_event) : Don't assume the
      	  release came from the button that started the grab (think about
      	  multiple simultaneous button downs.
      	(item_cursor_selection_event) : ditto.
      	(item_cursor_do_drop) : changes to selection_first_range.
      
      	* src/parse-util.c (col_name_internal) : new routine split from
      	  col_name with better buffer handling.
      	(col_name) : used here.
      	(cols_name) : and in this new function.
      
      	* src/print.c (sheet_print_selection) : changes to
      	  selection_first_range.
      
      	* src/print-info.c (print_info_new) : default even_if_only_styles to
      	  false.  This is probably what most people want.
      
      	* src/ranges.c (range_translate) : don't invert.
      	(range_height) : new util.  could probably be #define.
      	(range_width) : new util.  could probably be #define.
      	(range_is_infinite) : use range_is_full.
      	(range_is_full) : new util.
      
      	* src/search.c (calculate_replacement) : warning suppression.
      
      	* src/selection.c (sheet_selection_cut) : Use
      	  sheet_range_splits_region and selection_first_range.
      	(sheet_selection_copy) : Use selection_first_range and remove TODO
      	  about supporting not paste by content for partial arrays.
      	(selection_first_range) : Add optional error reporting if there are
      	  multiple selection ranges.
      
      	* src/format.c (format_get_currency) : diddle the logic to get
      	  undefined to work the way people expect for locale C.
      
      	* src/sheet-merge.c (sheet_merge_relocate) : remove some dead code.
      	(sheet_merge_add) : changes to sheet_range_splits_array.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_construct) :
      	  changes to selection_first_range.
      
      	* src/sheet.c (sheet_delete_{cols,rows}) : changes to
      	  sheet_range_splits_array.
      	(sheet_insert_{cols,rows}) : use sheet_range_splits_array.
      	(avoid_dividing_array_vertical) : delete.
      	(avoid_dividing_array_horizontal) : delete.
      	(sheet_is_pristine) : constness.
      	(sheet_mark_clean) : delete.
      	(sheet_clear_region) : changes to sheet_range_splits_array.
      	(sheet_ranges_split_region) : renamed from selection_check_for_array.
      	(sheet_range_splits_region) : new routine to check arrays and merged
      	  regions.
      	(sheet_range_splits_array) : improve and add hooks to be used for
      	  overlapping checks.
      	(cb_check_array_vertical) : report the array being split.
      	(cb_check_array_horizontal) : report the array being split.
      
      	* src/stf-parse.c (stf_parse_region) : use cellregion_new.
      	(stf_parse_is_valid_data) : simplify.
      
      	* src/value-sheet.c (value_area_get_width) : warning suppression.
      	(value_area_get_height) : warning suppression.
      	(value_area_fetch_x_y : signedness.
      	(value_area_get_x_y) : signedness.
      
      	* src/value.c (value_array_resize) : signedness.
      	(value_array_set) : signedness.
      
      	* src/workbook-control-gui.c (wbcg_error_splits_array) : signature
      	  change.
      	(cb_insert_rows) : use selection_first_range
      	(cb_insert_cols) : ditto.
      	(sort_cmd) : ditto.
      	(cb_workbook_debug_info) : clean out some deadwood.
      
      	* src/workbook-edit.c (auto_complete_matches) : warning suppression.
      
      	* src/workbook.c (workbook_sheet_detach) : warning suppression.
      	(g_ptr_array_insert) : warning suppression, moved to gutils.
      
      	* src/xml-io.c (xml_write_attributes) : warning suppression.
      	(xml_read_selection_clipboard) : use cellregion_new and tidyup.
      
      	* src/clipboard.c (paste_link) : Only make the link sheet specific if
      	  we need to.
      	(clipboard_paste_region) : constness, support being able to paste
      	  content only as link or value.
      	(clipboard_prepend_cell) : check for arrays.
      	(clipboard_copy_range) : use cellregion_new
      	(cellregion_new) : new function
      	(cellregion_free) : renamed from clipboard_release.
      	(cellregion_to_string) : moved here from render-ascii.
      
      	src/cmd-edit.c (cmd_paste) : more protection. Merge in
      	  application_paste.
      	(cmd_paste_to_selection) : handle changes to selection_is_simple and
      	  use selection_first_range
      	(cmd_shift_rows) : changes to cmd_paste_cut.
      	(cmd_shift_cols) : ditto.
      
      	* src/command-context-priv.h : change signature of splits array.
      	* src/command-context.h : ditto.
      	* src/command-context.c (gnumeric_error_splits_array) : ditto.
      
      	* src/application.c (application_clipboard_clear) :
      	(application_set_selected_sheet) : remove #warning, it is not portable.
      
      	* src/commands.c
      	* src/Makefile.am : remove render-ascii.[ch]  Move their content into
      	  clipboard.
      
      2001-05-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_prepend_cell) : remove ugly
      	  implementation.
      
      	* src/workbook-edit.c (auto_complete_matches) : remove warning.
      
      	* src/xml-io.c (xml_write_attributes) : remove warning.
      32bde6ee
    • Almer S. Tigelaar's avatar
      Correct InsertComment pixmap, add pixmap for Sort and add separators on · aa36c8c1
      Almer S. Tigelaar authored
      2001-05-04  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/GNOME_Gnumeric.xml: Correct InsertComment
       	pixmap, add pixmap for Sort and add separators
       	on the right places.
      
       	* src/pixmaps: Split sort ascending into 16x16 and
       	24x24 versions.
      
       	* src/application.c: Account for the split. This
       	will make the menu item show up with a correct
       	icon in Bonobo.
      
      	* src/workbook-control-gui.c: Idem. Use the 16x16
      	icon for the menu.
      aa36c8c1
  18. 01 May, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Use sheet_unant. (application_clipboard_clear): Idem. · e6d66e4a
      Almer S. Tigelaar authored
      2001-05-01  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/application.[ch] (application_clipboard_unant): Use
      	sheet_unant.
      	(application_clipboard_clear): Idem.
      	(application_clipboard_copy): Use sheet_ant.
      	(application_clipboard_cut): Idem.
      	(application_clipboard_is_cut): New function, is the area
      	on the clipboard marked for cutting or for copying?
      
      	* src/selection.[ch] (sheet_selection_ant): Deprecated, remove.
      	(sheet_selection_unant): Idem.
      
      	* src/sheet-control-gui.[ch] (scg_selection_ant): Rename
      	to scg_ant and add a ranges parameter where the ranges to
      	ant can be specified.
      	(scg_selection_unant): Rename to scg_unant.
      	(scg_destroy): Make sure to un-ant everything.
      	(scg_construct): Ant all anted regions on the sheet.
      
      	* src/sheet.[ch] (sheet_ant): New, ants one or more regions
      	on the sheet.
      	(sheet_unant): New, unants all currently anted region on the
      	sheet.
      	(sheet_destroy): Make sure to free the ant list.
      
      	* src/commands.c (cmd_ins_del_colrow_undo): Remove ugly ant-hack,
      	this is no longer needed, application_clipboard_cut/copy handles
      	this now.
      	(cmd_ins_del_colrow_redo): Idem
      	(cmd_ins_del_colrow): Oh dear, we were actually storing both
      	the cut and copied area as a cut area and we were actually
      	cutting even if the range was a copied area after shifting.
      e6d66e4a
  19. 19 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      clear old span when an expression is assigned. (sheet_cell_set_text) : · 02adb706
      Jody Goldberg authored
      
      2001-04-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cell_set_expr) : clear old span when an
      	  expression is assigned.
      	(sheet_cell_set_text) : ditto.
      
      	* src/application.c (application_init) : add new icons.
      
      	* src/workbook-control-gui.c : Use the new icons.
      	* src/GNOME_Gnumeric.xml : ditto.
      02adb706
  20. 29 Mar, 2001 1 commit
    • Morten Welinder's avatar
      Responding to lots of bug reports from drk@sgi.com: · ef014508
      Morten Welinder authored
      2001-03-29  Morten Welinder  <terra@diku.dk>
      
      	Responding to lots of bug reports from drk@sgi.com:
      
      	* src/application.c (application_display_dpi_get): Don't
       	explicitly inline.  (The compiler hopefully will by itself.)
      
      	* src/sheet-object-widget.c (DEP_TO_CHECKBOX): Avoid pointer
       	arithmetic on void pointers.
      
      	* src/item-bar.c: Don't use zero-sized array.
      ef014508
  21. 18 Feb, 2001 1 commit
    • 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
  22. 31 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Remove all menu item state flags. · ce14739d
      Almer S. Tigelaar authored
      2001-01-31  Almer S. Tigelaar  <almer1@dds.nl>
      
       	* src/sheet.h :
       	Remove all menu item state flags.
      
       	* src/sheet-private.h:
       	Put the menu item state flags here.
      
       	* src/workbook-control-gui.c:
       	(wbcg_paste_special_enable): Remove the second argument to
       	this function. Instead read this directly out of the flags. Add sheet
      	argument.
       	(wbcg_insert_cols_rows_enable): Ditto for the 3rd argument and
       	also remove the cols arguments so that one call will update both
       	row and column menu items. Also add sheet argument.
      
       	* src/workbook-control.c, src/workbook-control.h,
      	src/workbook-control-priv.h:
       	Adjust arguments to wbcg_paste_special_enable and insert_cols_rows.
      
       	* src/application.c:
      	(application_clipboard_copy): First set the paste special flag
       	and don't pass argument to paste_special_enable.
       	(application_clipboard_cut): Ditto.
       	(application_clipboard_clear): Ditto.
      
       	* src/workbook-view.c:
       	(wb_view_menus_update): Update to don't pass flags as argument, don't
       	do separate calls for cols and rows and optimize to do all calls in one loop.
      
       	* src/selection.c:
       	(sheet_selection_set_internal): Disable or enable insert cols/rows,
       	update UI only when neccessary and rename label for clarity.
       	(sheet_selection_reset): Enable insert cols/rows flags.
      ce14739d
  23. 29 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Add flags for insert cols/rows and paste special. · 0acb7687
      Almer S. Tigelaar authored
      2001-01-29  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/sheet.h: Add flags for insert cols/rows and paste special.
      
      	* src/selection.c
      	(sheet_selection_add_range):
      	Remove the settings of insert cols/rows here.
      	(sheet_selection_set_internal):
      	Set insert cols/rows menu items and flags correctly.
      	(sheet_selection_reset_only): Reset insert cols/rows flags.
      
      	* src/application.c
      	(application_clipboard_clear): Set enable paste special flag.
      	(application_clipboard_copy): Ditto.
      	(application_clipboard_cut): Ditto.
      
      	* src/workbook-view.c, src/workbook-view.h
      	(wb_view_menus_update): New function, updates the
      	insert cols/rows and paste special menu items.
      	(wb_view_sheet_focus): Call menus_update here.
      	(wb_view_sheet_add): Ditto.
      
      	* src/workbook-control-gui.c
      	(workbook_control_gui_init): Update menu items here.
      0acb7687
  24. 22 Jan, 2001 1 commit
    • Morten Welinder's avatar
      When relevant, check that the range text is not empty. · aead02d0
      Morten Welinder authored
      2001-01-22  Morten Welinder  <terra@diku.dk>
      
      	* src/search.c (search_replace_verify): When relevant, check that
       	the range text is not empty.
      
      	* src/application.c (application_dpi_to_pixels): Fix prototype.
      	(application_history_update_list): Constify.
      	(application_display_dpi_get, application_display_dpi_set): Change
       	to using doubles, not floats.
      aead02d0
  25. 07 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Add some new icons · 850e9b36
      Jody Goldberg authored
      
      2000-12-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : Add some new icons
      
      	* src/gnumeric.xml : Use the new icons
      	* src/workbook-control-gui.c : Ditto
      	* src/workbook-format-toolbar.c : Ditto.
      850e9b36
  26. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  27. 01 Nov, 2000 2 commits
    • Jody Goldberg's avatar
      Split sanity check into new function. (range_check_sanity) : here. · 22587963
      Jody Goldberg authored
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_translate) : Split sanity check into new function.
      	(range_check_sanity) : here.
      
      	* src/xml-io.c (xml_read_range) : Use it.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_new) : Be mroe fine grained about the changes to
      	  the edit position.
      	(sheet_flag_status_update_cell) : Only content and format have changed.
      	(sheet_flag_status_update_range) : handle the new flags.
      	(sheet_flag_format_update_range) : new function.
      	(sheet_update_editpos) : delete and split up.
      	(sheet_update) : Do each update seperately. NOTE : this is broken.
      	  All of these flags should be at the View level.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_copy) : pass a workbookcontrol.
      	(sheet_selection_cut) : Ditto.
      
      	* src/commands.c (cmd_format_undo) : flag the format change.
      	(cmd_format_redo) : Ditto.
      
      	* src/workbook-control.h (wb_control_claim_selection) : new virtual.
      	* src/application.c (application_set_selected_sheet) : Used here.
      	(application_clipboard_copy) : Take a WorkbookControl.
      	(application_clipboard_cut) : Ditto.
      
      	* src/workbook-control-gui.c (wbcg_paste_from_selection) : new
      	  function.
      	(workbook_control_gui_ctor_class) : register it.
      
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print-cell.c (print_cell_range) : We are only outputing
      	  something in the case of a blank cell if the format is visible.
      22587963
    • Jody Goldberg's avatar
      Register a shrunken version of the print preview. · fa639cd5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_init) : Register a shrunken version
      	  of the print preview.
      
      	* src/workbook-control-gui.c (workbook_menu_file) : Use the new
      	  shrunken print preview icon.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (cb_cancel_input) : renamed from
      	  cancel_input, and return focus to the sheet.
      	(cb_accept_input) : renamed from accept_input, and return focus
      	  to the sheet.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_popup_menu) : Use the MENU versions of
      	  the stock pixmaps.
      fa639cd5
  28. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  29. 23 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Use stock icons. Ditto. Ditto. Add more verbs. · 1c9409f7
      Jody Goldberg authored
      
      2000-09-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c : Use stock icons.
      	* src/workbook-object-toolbar.c : Ditto.
      	* src/workbook.c : Ditto.  Add more verbs.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : toolbar
      	  sensitization is broken for bonobo.
      
      	* src/gnumeric.xml : The beginings of toolbar support.
      
      	* src/application.c : Register all pixmaps as stock icons.
      
      2000-09-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/history.c (history_menu_insert_separator) : Use
      	  history_menu_locate_separator.  This is crufty.
      1c9409f7
  30. 06 Sep, 2000 1 commit
    • Michael Meeks's avatar
      Check for bonobo 0.19 · f1ca24dc
      Michael Meeks authored
      2000-09-06  Michael Meeks  <michael@helixcode.com>
      
      	* configure.in: Check for bonobo 0.19
      
      	* src/workbook.c: Add/Modify -> Add\\Modify for now.
      
      	* src/workbook-view.c (workbook_view_set_title): use get_toplevel
      	(workbook_view_set_size):
      
      	* src/workbook-private.h: add a main_vbox to put toolbars into.
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	hack for non-bonobized toolbars.
      
      	* src/workbook.c (workbook_show, workbook_hide, workbook_get_toplevel):
      	helper functions.
      
      	* src/corba-workbook.c (Workbook_show): use workbook show/hide
      
      	* src/analysis-tools.c (prepare_output): ditto.
      
      	* src/main.c (gnumeric_main): ditto.
      
      	* src/clipboard.c (clipboard_paste, x_selection_received),
      	(x_clipboard_bind_workbook): ditto.
      
      	* src/application.c (application_set_selected_sheet): use
      	workbook_get_toplevel
      
      	* src/history.c (file_history_cmd): ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): ditto.
      
      	* src/xml-io.c (xml_workbook_write): get_toplevel upd.
      
      	* src/workbook.c (new_cmd, file_open_cmd, file_import_cmd): show / hide.
      	(workbook_setup_edit_area): get_toplevel
      f1ca24dc
  31. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Improve regexps. · 9ad38a63
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Improve regexps.
      
      	* src/formats.c (cell_format_is_number) : Format always uses standard
      	  decimal chars.
      
      	* src/format.c (gnumeric_setlocale) : New routine that clears cached
      	  locale info.
      	(format_get_decimal) : Improve use mon_decimal.
      	(format_get_thousand) : Improve use mon_thousands_sep.
      	(format_get_arg_sep) : New func.
      	(format_get_col_sep) : New func.
      	(format_destroy) : Use GPtrArray.
      	(render_number) : Improve localization.
      	(format_add_thousand) : rename format_toggle_thousands. De-localize.
      	(find_decimal_char) : De-localize.
      	(format_remove_decimal) : Ditto.
      	(format_add_decimal) : Ditto.
      	(format_number) : Ditto.
      
      	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.
      
      	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.
      
      	* src/auto-format.c (auto_style_format_suggest) :
      	  style_format_new -> style_format_new_XL
      
      	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
      	  the format string anymore.
      	(mstyle_set_format_text) : Add a warning.
      
      	* src/gutils.[ch] (float_get_from_range) : Delete.
      	(int_get_from_range) : Ditto.
      
      	* src/parser.y : Revamp lexer to use strtol, and strtod for number
      	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)
      
      	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.
      
      	* src/sheet.h : Move SpanCalcFlags.
      	* src/gnumeric.h : here.
      
      	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]
      
      	* src/value.c (value_get_as_string) : Correctly localize things for
      	  output.
      
      	* src/workbook-format-toolbar.c (modify_cell_format) : format
      	  modification callback modifies the StyleFormat.
      
      	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.
      
      	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
      	(xml_workbook_write) : Ditto.
      	(xml_read_cell) : Use style_format_new_XL.
      	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
      	(xml_write_style) : Ditto.
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
      	  Display localized number formats.
      	(fillin_negative_samples) : Not need to localize generated number
      	  formats.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
      	  format_get_arg_sep.
      
      	* src/dialogs/dialog-stf-format-page.c
      	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
      	  stored in a locale neutral format.
      
      	* src/functions/fn-string.c (gnumeric_text) : changes to
      	  style_format_new.
      
      	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.
      
      	* src/functions/fn-information.c (translate_cell_format) : This should
      	  now work for different locales.
      
      2000-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Extend the match algorithms to
      	  handle the new regexps.
      
      	* src/format.c (format_get_thousand) : provide a better default for
      	  countries using ',' as a decimal point.
      9ad38a63
  32. 09 Jul, 2000 2 commits
    • Jody Goldberg's avatar
      return a double. returning a float caused just enough loss of precision to · 176602e7
      Jody Goldberg authored
      
      2000-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_dpi_to_pixels) : return a double.
      	  returning a float caused just enough loss of precision to break
      	  my putrid use of 9pt fonts.
      
      	* src/workbook.c (workbook_set_auto_expr) : autoexpr are always parsed
      	  in the 'C' locale.
      
      	* src/parser.y (gnumeric_parse_error) : New function.  Makes code
      	  cleaner, and offers a handy dandy place for a break point.
      
      	* src/workbook.c (workbook_setup_edit_area) : Pass '0' rather than
      	  'FALSE' to avoid translation problems.
      176602e7
    • Jody Goldberg's avatar
      Take units in pixels or points. (sheet_{col,row}_set_default_size_pixels) · b519fbd3
      Jody Goldberg authored
      
      2000-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_row_default_init) : Take units in pixels or
      	  points.
      	(sheet_{col,row}_set_default_size_pixels) : new functions.  This
      	  interface sucks.  Clean it up.
      
      	* src/parser.y : Optionally insert a place holder when an
      	  unknown function is found.
      
      	* src/func.c (function_add_placeholder) : New function, moved from the
      	  XL import code.
      
      	* src/expr.c (expr_parse_string) : gnumeric_expr_parser signature
      	  change.
      	* src/workbook.c (workbook_set_auto_expr) : Ditto.
      
      	* src/application.c (application_dpi_to_pixels) : New function.
      	* src/item-bar.c (item_bar_fonts_init) : Use it here.
      	* src/sheet-view.c (sheet_view_get_style_font) : And here.
      	* src/style.c (font_init) : and here.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (cellref_r1c1_get) : Make stricter.
      	(r1c1_get_item) : Ditto.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* plugins/Makefile.am (SUBDIRS) : Enable applix.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (col_from_name) : Add optional arg to indicate
      	  where parsing stoped.  Similar to strtod.
      
      2000-07-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_write_style_border) : Trivial optimization.  No
      	  need to save colour for STYLE_BORDER_NONE.
      	(xml_read_style_border) : Ditto.
      b519fbd3
  33. 30 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      It is possible to have a guru up without editing. · 69d6d36b
      Jody Goldberg authored
      
      2000-06-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without editing.
      	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
      	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
      	(gnumeric_sheet_focus_in) : Enable the input context.
      	(gnumeric_sheet_focus_out) : Disable the input context.
      	(gnumeric_sheet_realize) : Create the input context.
      	(gnumeric_sheet_unrealize) : Destroy the input context.
      	(gnumeric_sheet_class_init) : Register the new methods.
      	(gnumeric_sheet_init) : Init the input context.
      
      	* src/clipboard.c (x_selection_handler) : Adjust to changes in
      	  application_clipboard_clear.
      	(x_selection_clear) : Ditto.
      	* src/cmd-edit.c (cmd_paste) : Ditto.
      	* src/sheet.c (sheet_destroy) : Ditto.
      
      	* src/application.c (application_clipboard_clear) : Make dropping the
      	  selection optional.  This removes the kludges necessary to handle
      	  changing the clipboard when we already have the selection.
      
      	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
      	  fix signatures.
      69d6d36b
    • Jody Goldberg's avatar
      Bug 15796 · 71d65f69
      Jody Goldberg authored
      2000-06-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/application.c (application_set_selected_sheet) : short circuit
      	  clearing the selection if we are in the same workbook, not just the
      	  same sheet.
      71d65f69
  34. 05 Jun, 2000 1 commit
    • Miguel de Icaza's avatar
      This adds autocompletion. · aa133206
      Miguel de Icaza authored
      It is missing one forced repaint that makes the stuff look slower
      than it is.
      
      2000-06-05  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gtk_radio_button_select): Add
      	precondition.  Chema found this, but we should add the proper
      	check at an upper layer.
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p):
      	Change prototype to use GtkEntry instead of GtkWidget.
      
      	* src/workbook-edit.c (workbook_finish_editing): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(entry_changed): ditto.
      	(workbook_start_editing_at_cursor): ditto.
      	(workbook_editing_expr): ditto.
      	(workbook_edit_get_display_text): ditto.
      
      	* src/workbook.c (autosum_cmd): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(do_focus_sheet): ditto.
      	(wb_edit_key_pressed): ditto.
      	(workbook_setup_edit_area): ditto.
      
      	* src/workbook.c (cb_autofunction): ditto.
      
      	* src/workbook-private.h: Make edit_line a structure to keep track
      	of the entry and its signal changed.  Also take a chance to change
      	this to the self descriptive GtkEntry instead of GtkWidget.
      
      	* src/commands.c (cmd_set_text): Added const here.
      
      	* src/workbook.c (workbook_do_destroy): Add destroy notification
      	for the editing facilities
      
      	* src/item-edit.c (item_edit_set_arg): removed auto complete code
      	from here.
      
      2000-06-03  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/workbook-edit.c, src/workbook-edit.h: New files.  Moved
      	workbook_start_editing_at_cursor, workbook_finish_editing,
      	workbook_get_entry, workbook_editing_expr here.  Killed
      	workbook_set_entry prototype.
      
      	* src/workbook.c (workbook_start_editing_at_cursor): Moved
      	autocomplete here.
      
      	* src/workbook.h: Removed warning.  #include <config.h> is a
      	mandatory header file in every C file.  A correct approach is to
      	use something like Nautilus' perl script that verifies the
      	presence of config.h as the first include.
      
      	* src/workbook.c (close_cmd): Removed ulgy (void)
      	(quit_cmd): More.
      	(sheet_action_rename_sheet): more.
      	(workbook_finish_editing): Fixed more ugly.
      
      	* src/gutils.c (gnumeric_sys_glade_dir): Fixed ugly indentation.
      	(gnumeric_usr_plugin_dir): More ugly stuff fixed.
      	(gnumeric_usr_dir): Removed ugly const.
      
      2000-05-02  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.h: New ::entry member, auto_max_size, auto_complete_text
      
      	* src/item-edit.c (item_edit_draw_text): Take an ItemEdit as a
      	first argument, and reduce the cluttered arguments we were
      	passing.
      	(item_edit_draw): Cursor_pos is now only the position, it is not
      	overloaded with show/hide cursor as well.
      	(item_edit_draw_text): Update acoordingly.
      	(item_edit_draw_cursor): This new routine paints the cursor only.
      	(item_edit_set_arg): Add a new signal handler for "activated" on
      	the entry
      	(cb_item_edit_cursor_blink): Removed FIXME.
      	(item_edit_set_arg): Init item_edit->entry.  I am pretty sure this
      	existed in the past.
      
      2000-05-01  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.c (item_edit_draw): Pass auto-completing flag.
      	(item_edit_draw_text): Invert auto-complete region.
      	(item_edit_set_arg): Init auto_completing here.
      	(item_edit_complete_notify): Set the entry from the
      	auto-completing data here.
      
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* dialog-function-wizard.c (dialog_function_druid): Use
      	workbook_get_entry here.
      
      	* dialog-printer-setup.c (spin_button_adapt_to_unit): Added
      	g_assert_not_reached ();
      aa133206
  35. 27 May, 2000 1 commit
    • Jody Goldberg's avatar
      Revamp pasting. This needs alot of testing. Some initial work on a · 94c47dab
      Jody Goldberg authored
      Revamp pasting.
      This needs alot of testing.
      Some initial work on a function druid.
      
      2000-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Use a command context.
      	(sheet_selection_paste) : Delete.
      
      	* src/plugin.c : rename error_plugin_problem -> error_plugin.
      
      	* src/item-grid.c (context_paste_cmd) : Use cmd_paste_to_selection.
      	(context_paste_special_cmd) : Ditto.
      
      	* src/gnumeric-sheet.c : remove cached 'controlling_entry' in
      	  preparation for the function druid.
      
      	* src/corba-sheet.c : Delete Sheet_selection_paste.
      	  this will need to be replaced with a new signature.
      
      	* src/item-cursor.c (item_cursor_do_action) : Use new cmd_paste.
      
      	* src/commands.c (cmd_area_set_text_{undo,redo}) : Use new
      	  clipboard_paste_region.
      	(cmd_ins_del_row_col_{undo,redo}) : Ditto.
      	(cmd_clear_{undo,redo}) : Ditto.
      	(cmd_set_date_time_{undo,redo}) : Ditto.
      	(cmd_paste_cut_*) : new functions.
      
      	* src/command-context*.c : Add progress, remove splits_array.
      
      	* src/cmd-edit.c (cmd_paste) : New function.
      	(cmd_paste_to_selection) : New function.
      
      	* src/clipboard.c : Reorganize/rewrite.
      	(clipboard_paste_region) : paste content.
      	(clipboard_paste) : paste content from clipboard or X selection.
      	(paste_target_init) : New function.
      	(sheet_paste_selection) : merge into clipboard_paste_region.
      
      	* src/application.c (application_clipboard_copy) : rename
      	  clipboard_copy_cell_range -> clipboard_copy_range.
      
      	* idl/Gnumeric.idl : Merge InvalidValue, SplitsArray -> InvalidCmd.
      
      	* src/workbook.c (workbook_setup_status_area) : Include a progress bar.
      94c47dab
  36. 21 May, 2000 1 commit
    • Jody Goldberg's avatar
      A few delayed patches. · 2779b474
      Jody Goldberg authored
      These optimize paste, exit, sheet deletetion,
      and start the process for fixing a few things.
      
      2000-05-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_copy_cell_range) : Adjust signature to
      	  take a range.
      	(sheet_paste_selection) : Export in preparation for adding undo.
      
      	* src/commands.c (cmd_paste_copy) : Some initial work.  Not used or
      	  complete.
      
      	* src/parse-util.c (parse_text_value_or_expr) : Start passing in the
      	  current format so that we can eventually attempt to match it before
      	  trying all the others.
      
      	* src/sheet.c (sheet_formulas_unlink) : New function.
      	(sheet_destroy_contents) : Optimize.
      
      	* src/dialogs/dialog-plugin-manager.c : Make a bit prettier.
      	* src/dialogs/plugin-manager.glade : Ditto.
      
      2000-05-16  Jody Goldberg <jgoldberg@home.com>
      
      	* plugins/*/*.c : Rationalize the naming scheme.
      
      2000-05-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.[ch] : Rename
      	  cell_queue_recalc      -> eval_queue_cell
      	  cell_queue_recalc_list -> eval_queue_list
      	  cell_unqueue_recalc    -> eval_unqueue_cell
      	(eval_unqueue_sheet) : New function.
      
      	* src/sheet.c (sheet_cell_remove_simple) : Add precautionary removal
      	  of cells from recalc list.  We should not need this in most
      	  instances, but the check is inexpensive so I'll play it safe.
      	(sheet_destroy_contents) : Batch cleanups rather than doing it cell by
      	  cell.
      
      	* src/cell.c (cell_make_value) : Fill in the implementation.
      
      	* src/clipboard.c (paste_cell_flags) : Remove some dead code.
      	  Merged in paste_cell and fixed handling of paste by value.
      
      2000-05-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (paste_cell) : No need to call cell_content_changed
      	  we can queue the recalc for the entire region later.  It is
      	  sufficent to make the cell as changed with sheet_cell_changed.
      	(paste_cell) : It is premature to redraw, we have no yet calculated
      	  spans.  Redraw and respan at the range level, not the cell.
      2779b474