1. 22 May, 2003 1 commit
    • Morten Welinder's avatar
      Extra argument here is a GdkScreen pointer. Supply that to · bc294c73
      Morten Welinder authored
      2003-05-22  Morten Welinder  <terra@gnome.org>
      	* src/workbook-control-gui.c (workbook_control_gui_new): Extra
      	argument here is a GdkScreen pointer.  Supply that to
      	workbook_control_gui_init.  All callers changed.
      	* src/workbook-control-priv.h (WorkbookControlClass): Add extra
      	parameter to control_new method.
      	* src/workbook-control.c (wb_control_wrapper_new): Add "extra"
      	argument here also and supply it to control_new.  All callers
      	* src/workbook-control-gui.c (workbook_control_gui_init): Make
      	static.  Take extra GdkScreen parameter and set the new screen
      	asap before we go creating pango contexts and gcs relating to the
      	default screen.  All callers changed.
  2. 06 Sep, 2002 1 commit
    • Jody Goldberg's avatar
      convert to using RangeRef and rangeref_parse and rangeref_as_string. · 7d300c8c
      Jody Goldberg authored
      2002-09-06  Jody Goldberg <jody@gnome.org>
      	* gnumeric-expr-entry.c : convert to using RangeRef and rangeref_parse
      	  and rangeref_as_string.
      2002-09-06  Jody Goldberg <jody@gnome.org>
      	* src/sheet-control-gui.c (scg_colrow_select) : don't do a start and a
      	  change.  Do a start or a change.  do not sheet_update for rangesel.
      	* src/parser.y : some utf8 fixes for escaped characters
      	* src/expr.c (do_expr_as_string) : rangeref_name -> rangeref_as_string
      	* src/parse-util.c (rangeref_parse) : new.
      	(parse_surrounding_ranges) : delete.
  3. 09 Aug, 2002 1 commit
    • Jody Goldberg's avatar
      improve handling of arrays. · 7ddc71db
      Jody Goldberg authored
      2002-08-08  Jody Goldberg <jody@gnome.org>
      	* ms-formula-read.c (ms_excel_parse_formula) : improve handling of
      	* ms-excel-read.c (biff_boundsheet_data_new) : improve debug spew.
      	(sst_read_string) : no need to pass version an sst is biff8 specific.
      	(ms_excel_read_SST) : ditto.
      	(ms_excel_read_EXSST) : new convience routine.
      	(biff_boundsheet_data_new) : move boundsheet_data_by_index into a ptr
      	  array, and store the gnumeric sheets directly.
      	(ms_excel_workbook_new) : use g_hash_table_new_full to make cleanup
      	(ms_excel_workbook_destroy) : simplify.
      	(ms_excel_read_SETUP) : support the 'print comments' flag
      	(ms_excel_read_MULRK) : split into its own function.
      	(ms_excel_read_MULBLANK) : ditto.
      	(ms_excel_read_SCL) : ditto
      	(ms_excel_read_sheet) : spew the sheet password in case we need to
      	  generate it.
      	(ms_excel_SUPBOOK) : I finally understand the self reference magic.
      	  More work to do to support external links.
      	(ms_excel_workbook_get_externsheet_v8) : improve the warnings on error.
      	(ms_excel_externsheet_v8) : those sheet indicies are BOUNDSHEET
      	  references if the supbook is a self reference.  We can not directly
      	  access the Gnumeric sheets because XL has hidden elements that skew
      	  the index.
      	(ms_excel_workbook_get_externsheet_v7) : ditto.
      	(ms_excel_externsheet_v7) : store the sheet directly.
      	* ms-excel-write.c (write_magic_interface) : biff8 stores the code
      	  page in the interface header for some reason.
      	(ms_excel_write_EOF) : rename from biff_write_eof.
      	(excel_write_SETUP) : new.
      	(write_wsbool) : remove duplicate code.
      	(excel_write_COUNTRY) : new.
      	(write_sheet_head) : tidy.
      	(excel_write_sheet_tail) : SCL is not version specific.
      	(sst_collect_str) : new.
      	(ms_excel_write_SST) : prepare to write an SST (not finished)
      2002-08-08  Jody Goldberg <jody@gnome.org>
      	* src/workbook-view.c (wb_view_new_from_input) : its ok to have 0 sheets,
      	  this is not the place to display the error messages.
      	* src/expr-name.c (expr_name_init) : activate the builtins to help
      	  catch someone trying to unref them.
      	* gnumeric.desktop.in (Categories) : add encoding
      	* src/value.c (value_get_as_string) : quote strings in arrays
      2002-08-07  Jody Goldberg <jody@gnome.org>
      	* src/command-context.c (cmd_context_set_sensitive) : move here from
      	* src/workbook-view.c (wb_view_save_as) : use it here.
      	* src/gui-file.c (gui_file_read) : rename it here.
      	* src/command-context-stderr.c (ccs_get_password) : new.
      	(ccs_set_sensitive) : new.
      	(ccs_class_init) : register them.
  4. 21 Jun, 2002 1 commit
    • Andreas J. Guelzow's avatar
      new new (application_clipboard_clear) : emit "clipboard_modified" rather · eb4178dc
      Andreas J. Guelzow authored
      2002-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
      	* src/application.h (gnumeric_application_get_app) : new
      	* src/application.c (gnumeric_application_get_app) : new
      	(application_clipboard_clear) : emit "clipboard_modified" rather than
      	  calling wb_control_menu_state_update on each control
      	(application_clipboard_cut_copy) : ditto
      	* src/libgnumeric.c (gnm_common_init) : remove debug spew, no need
      	  to keep an app pointer
      	(gnm_shutdown) : use gnumeric_application_get_app rather than a static
      	  app pointer
      	* src/workbook-control-priv.h : new clipboard_changed_signal field in
      	* src/workbook-control.c (cb_wbc_clipboard_modified) : new
      	(wbc_finalize) : disconnect signal handler
      	(workbook_control_init) : new
  5. 19 Jun, 2002 2 commits
    • Jody Goldberg's avatar
      no need to unant, that is a view responsibility. · 753f052a
      Jody Goldberg authored
      2002-06-19  Jody Goldberg <jody@gnome.org>
      	* src/sheet.c (sheet_destroy) : no need to unant, that is a view
      	* src/sheet-view.c (sv_weakref_notify) : new.
      	(sv_weak_ref) : new.
      	(sv_weak_unref) : new.
      	(sv_unant) : move here from sheet.
      	(sv_ant) : move here from sheet.
      	(sv_selection_copy): from selection.c
      	(sv_selection_cut) : from selection.c
      	* src/sheet-control.c (sc_view) : new.
      	* src/sheet-control-gui.c (scg_ant) : the animated cursors are now
      	  stored in the view not the sheet.
      	(context_menu_handler) : sync with the workbook control criteria for
      	  enabling paste special.
      	* src/selection.c (sheet_selection_copy) : start the process of
      	  migrating to SheetView and move this there.
      	(sheet_selection_cut) : ditto.
      	* src/item-cursor.c (item_cursor_do_action) : pass a SheetView.
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : pass a
      	* src/corba-sheet.c : untested patch to handle views.
      	* src/commands.c (cmd_ins_del_colrow_undo) : use the sheetview.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_finalize) : remove weakref on the view.
      	(cmd_ins_del_colrow) : add a weak ref to the view.
      	* src/application.c (application_init) : we store a view now, not just
      	  a sheet.
      	(application_clipboard_clear) : update all workbooks, not just this
      	  one, and store the view.
      	(application_clipboard_unant) : use the view.
      	(application_set_selected_sheet) : the selection is now view based.
      	(application_clipboard_cut_copy) : take a view and remove the crufy
      	  enable_paste_special flag.  That is handled locally.
      	(application_clipboard_is_empty) : handle SheetView.
      	(application_clipboard_is_cut) : ditto.
      	(application_clipboard_sheet_get) : ditto.
      	(application_clipboard_sheet_view_get) : ditto.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : Use the
      	  current sheet not some magic sheet.
      	* src/sheet.c (sheet_new) : delete enable_paste_special.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : paste special
      	  is for local copies, use the application data rather than a sheet
      	  local flag.
    • Jody Goldberg's avatar
      renamed from sheet_attach_control. (sheet_detach_view) : renamed from · a4555c21
      Jody Goldberg authored
      2002-06-19  Jody Goldberg <jody@gnome.org>
      	* src/sheet.c (sheet_attach_view) : renamed from sheet_attach_control.
      	(sheet_detach_view) : renamed from sheet_detach_control.
      	* src/sheet-view.c : new.
      	* src/sheet-control.c (sc_sheet_set) : delete bogus.
      	(sc_view) : new.
      	* src/sheet-control-gui.c (sheet_control_gui_new) : A control now takes a
      	  view in place of a model.
      	* src/selection.c (sheet_selection_redraw) : adjustment to
      	* src/gnumeric.h : Add SheetView
      	* src/Makefile.am : Add sheet-view.[ch]
      2002-06-18  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (cb_insert_current_date) : check for
      	  failure to start editing.
      	(cb_insert_current_time) : ditto.
  6. 16 May, 2002 1 commit
    • Jody Goldberg's avatar
      Use wb_control_set_sensitive. · 1da94cb5
      Jody Goldberg authored
      2002-05-16  Jody Goldberg <jody@gnome.org>
      	* src/workbook-view.c (wb_view_open) : Use wb_control_set_sensitive.
      	* src/workbook-control-priv.h :
      	  remove menu.set_sensitivity
      	  add set_sensitive
      	* src/workbook-control.[ch] : ditto.
      	* src/workbook-control-gui.c (cb_thaw_ui_toolbar) : call
      	  wbcg_menu_state_sensitivity directly.
      	(wbcg_edit_set_sensitive) : ditto.
      	(wbcg_set_sensitive) : new.
      	(workbook_control_gui_ctor_class) : register wbcg_set_sensitive and
      	  remove wbcg_menu_state_sensitivity.
  7. 13 May, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Call wb_control_paste_from_selection without 'time' parameter. · 8908491b
      Jon Kåre Hellan authored
      * src/cmd-edit.c (cmd_paste): Call wb_control_paste_from_selection
      without 'time' parameter.
      (cmd_paste_to_selection): Call cmd_paste without 'time' parameter.
      * src/item-cursor.c (item_cursor_do_action): Remove 'time'
      parameter. Call cmd_paste without 'time' argument.
      (context_menu_hander, item_cursor_do_drop): Call
      item_cursor_do_action without 'time' argument.
      * src/gui-clipboard.c
      (x_clipboard_to_cell_region): Renamed from
      (x_clipboard_received): Renamed from
      x_selection_received. 'widget' parameter replaced with
      'clipboard', and 'time' parameter dropped. Call
      gtk_clipboard_request_contents instead of gtk_selection_convert.
      (x_clipboard_get_cb): Renamed from x_selection_handler. 'widget'
      parameter replaced with 'clipboard', and 'time' parameter dropped.
      Don't trust 'info' parameter. Gtk bug?
      (x_clipboard_clear_cb): New function. Replaces x_selection_clear,
      but even simpler.
      (x_request_clipboard): Call gtk_clipboard_request_contents instead
      of gtk_selection_convert.
      * src/workbook-control.[ch], src/workbook-control-priv.h: Remove
      'time' parameter from paste_from_selection method.
      * src/workbook-control-component.c (wbcc_claim_selection): Remove.
      (workbook_control_component_ctor_class): Inherit claim_selection
      from superclass.
      * src/workbook-control-gui.c (wbcg_paste_from_selection): Remove
      'time' parameter and call x_request_clipboard without 'time'
      (wbcg_claim_selection): Replace old implementation with call to
      new function x_claim_clipboard.
      (workbook_control_gui_init): Remove call to
  8. 08 May, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Include "dialogs.h" to get prototype for dialog_search. · dc0a6dcd
      Jon Kåre Hellan authored
      * src/workbook-control-component.c: Include "dialogs.h" to get
      prototype for dialog_search.
      * src/bonobo-io.c (cleanup_stream): Return status.
      * src/workbook-control.[ch], src/workbook-control-priv.h
      (wb_control_edit_set_sensitive): New virtual, replacing
      workbook_edit_set_sensitive in workbook-edit. Made parameter names
      descriptive because it's now used far away from where it is
      * src/workbook-control-component.c (wbcc_edit_set_sensitive): Null
      implementation of new virtual.
      (workbook_control_component_init): Construct, but don't show, the
      edit area, to avoid warnings when range selecting.
      (workbook_control_component_ctor_class): Register
      edit_set_sensitive implementation.
      * src/workbook-control-gui.[ch] (wbcg_toolbar_timer_clear): Moved
      from workbook-edit, renamed and exported.
      * src/workbook-control-gui.h (cb_thaw_ui_toolbar): Moved from
      (wbcg_edit_set_sensitive): Implementation of new virtual
      wb_control_edit_set_sensitive, moved from workbook-edit and
      renamed from workbook_edit_set_sensitive.
      (workbook_control_gui_ctor_class): Register edit_set_sensitive
      * src/workbook-edit.c (toolbar_timer_clear, cb_thaw_ui_toolbar,
      workbook_edit_set_sensitive): Move to workbook-control-gui.
      (wbcg_edit_finish, (wbcg_edit_start, wbcg_edit_attach_guru,
  9. 19 Apr, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Re-enable · 7d8300da
      Jon Kåre Hellan authored
      * src/bonobo-io.c (hack_xmlSAXParseFile): Re-enable
      * src/main-component.c: No longer a dummy. Remove DUMMY compile
      (load_workbook_from_stream): Remove.
      (dummy_add_interfaces): Rename to add_interfaces. Pass control to
      (gnumeric_component_factory): Make a real gnumeric component.
      * src/sheet-control-gui.c (scg_take_focus): Test if wbcg_toplevel
      != NULL.
      * src/workbook-control-priv.h: Virtualize menu_state.sheet_count.
      * src/workbook-control-component.c (wbcc_get_password,
      wbcc_progress_set, wbcc_progress_message_set, wbcc_init_state,
      wbcc_title_set, wbcc_format_feedback, wbcc_zoom_feedback,
      wbcc_edit_line_set, wbcc_edit_selection_descr_set,
      wbcc_auto_expr_value, wbcc_undo_redo_clear,
      wbcc_undo_redo_truncate, wbcc_undo_redo_pop, wbcc_undo_redo_push,
      wbcc_undo_redo_labels, wbcc_menu_state_update,
      wbcc_menu_state_sheet_prefs, wbcc_menu_state_sheet_count,
      wbcc_menu_state_sensitivity, wbcc_validation_msg): New no-op
      (wbcc_error_system, wbcc_error_plugin, wbcc_error_read,
      wbcc_error_save, wbcc_error_invalid, wbcc_error_error_info,
      wbcc_control_new, wbcc_sheet_focus, wbcc_claim_selection): New
      (workbook_control_component_init): New function.
      (workbook_control_component_ctor_class): Flesh out.
      (workbook_control_component_new): New function.
      * src/workbook-control-gui.c (wbcg_cur_scg, wbcg_sheet_remove,
      wbcg_sheet_rename, wbcg_sheet_focus, wbcg_sheet_move, cb_edit_cut,
      cb_sheet_remove): Use new name of from sheet_to_page_index and
      make public.
      (wbcg_sheet_add): Use virtualized menu_sheet_count.
      (workbook_control_gui_ctor_class): Virtualize menu_sheet_count.
  10. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      2002-02-15  Jody Goldberg <jody@gnome.org>
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      	* src/formats.c (cell_format_classify) : handle general.
      	* src/file-priv.h : Inherit from GObject.
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      	* src/Makefile.am : distribute the marshaller.list
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      2002-02-11  Jody Goldberg <jody@gnome.org>
      	* src/stf.c (stf_init) : Make the names of the text import/export
  11. 12 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      Coloured tabs from Excel · 07cf2a63
      Jody Goldberg authored
      Rework validation.
      2002-01-10  Jody Goldberg <jody@gnome.org>
      	* xml-sax-read.c (xml_sax_attr_bool) : fix return type
      	(xml_sax_attr_double) : ditto.
      	(xml_sax_attr_int) : ditto.
      	(xml_sax_color) : ditto.
      	(xml_sax_validation) : rework.
      	(xml_sax_style_condition) : delete.
      	(xml_sax_style_condition_chain) : delete.
      	(xml_sax_style_condition_expr) : delete.
      	(xml_sax_style_condition_constraint) : delete.
      	(xml_sax_style_condition_flags) : delete.
      	(xml_sax_start_element) : remove deleted elements.
      2002-01-12  Jody Goldberg <jody@gnome.org>
      	* ms-excel-read.c (ms_excel_read_dv) : reorg slightly and enable.
      	* ms-excel-read.c (ms_excel_read_tab_color) : new function.
      	(ms_excel_read_sheet) : called from here.
      2002-01-11  Jody Goldberg <jody@gnome.org>
      	* ms-formula-read.c (ms_excel_parse_formula) : fix area 3d and its
      	  missing break.
      2002-01-12  Jody Goldberg <jody@gnome.org>
      	* src/xml-io.c (xml_write_style_condition_chain) : delete.
      	(xml_read_style_condition_chain) : delete.
      	(xml_write_style) : change validation support.
      	(xml_read_style) : ditto.
      2002-01-12  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (cb_sheet_label_changed) : Use
      	(wbcg_sheet_add) : init the tab colour.
      	(wbcg_sheet_rename) : ditto.
      	(wbcg_validation_msg) : new.
      	(workbook_control_gui_ctor_class) : register wbcg_validation_msg.
      	* src/workbook-control.c (wb_control_validation_msg) : new.
      	* src/workbook-edit.c (wbcg_edit_validate) : delete.
      	(wbcg_edit_finish) : improve validation.
      	* src/validation.c : rework.  In list is still missing.
      	* src/sheet.c (sheet_new) : init tab colour.
      	(sheet_destroy) : release the tab colour.
      	(sheet_set_tab_color) : new function.
      	* src/mstyle.c (mstyle_link_sheet) : disable linking of validations.
      	  They are no longer dependents.
      	(mstyle_unlink) : ditto.
      2002-01-11  Jody Goldberg <jody@gnome.org>
      	* src/colrow.c (colrow_set_visibility_list) : when making a region
      	  visible we need to restore spans for the new content.
      2002-01-09  Jody Goldberg <jody@gnome.org>
      	* src/workbook-control-gui.c (wbcg_error_splits_array) : accept NULL
      	  as an array specification.
      	* src/ranges.c (range_name) : add protection against NULL.
      	* src/expr.c (expr_implicit_intersection) : handle blank inputs.
  12. 18 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      make headers optional. make headers optional. make headers optional. · a907b34b
      Jody Goldberg authored
      2001-09-18  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet-control-gui.c (scg_redraw_all) : make headers optional.
      	* src/sheet-control.c (sc_redraw_all) : make headers optional.
      	* src/sheet.c (sheet_redraw_all) : make headers optional.
      	* src/colrow.c (colrow_set_visibility_list) : redraw_all does headers.
      	* src/cell.c (cell_eval_content) : don't redraw here, and only render
      	  if we were already rendered.  This will avoid rendering sheets no
      	  one is looking at.
      	* src/eval.c (workbook_recalc) : after a recalc redraw all, but not
      2001-09-17  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control.c (wb_control_menu_state_sensitivity) : new
      	* src/workbook-control-gui.c (wbcg_menu_state_sensitivity) : renamed
      	  and moved from.
      	* src/workbook-edit.c (workbook_edit_toolbars_set_sensitive). here.
      	* src/workbook-view.c (wb_view_open_custom) : Use
      	  wb_control_menu_state_sensitivity to enable/disable
      	  the menus and toolbars of the manging contol.
  13. 16 May, 2001 1 commit
  14. 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
      	* 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.
  15. 18 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      implement. · 203ab6fe
      Jody Goldberg authored
      	* src/workbook-control-gui.c (wbcg_init_state) : implement.
      2001-04-16  Jody Goldberg <jgoldberg@home.com>
      	* src/commands.c (command_setup_combos) : new function to initialize
      	  the undo/redo combos into a known state.
      	* src/workbook-control.c (workbook_control_sheets_init) : called here.
      	* src/workbook-control.c (wb_control_change_view) : new virtual.
      	(workbook_control_set_view) : called here.
  16. 15 Apr, 2001 1 commit
    • Jody Goldberg's avatar
      new virtual (workbook_control_gui_ctor_class) : connect it here. · b4e680c8
      Jody Goldberg authored
      2001-04-15  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook-control-gui.c (wbcg_finish_editing) : new virtual
      	(workbook_control_gui_ctor_class) : connect it here.
      	(wbcg_sheet_remove_all) : be sure we are no longer editing.
      	* src/workbook-control-priv.h : new virtual.
      	* src/workbook-control.c : ditto.
      	* src/workbook-control.h : ditto.
      	* src/colrow.c (colrow_visibility) : One last potential NULL.
      	* src/graph-vector.c : some portability fixes.
  17. 18 Feb, 2001 2 commits
    • 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
      	* 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
      	(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_selection_reset) : ditto.
    • Almer S. Tigelaar's avatar
      Add flag for insert cells. · be02e2b8
      Almer S. Tigelaar authored
      2001-02-18  Almer S. Tigelaar  <almer1@dds.nl>
      	* src/sheet-private.h : Add flag for insert cells.
      	* src/workbook-control-gui.c :
      	(wbcg_insert_cells_enable) : New, enable/disable the Insert->Cells menu item.
      	(workbook_control_gui_init) : Initialize the insert_cells menu item.
      	(workbook_control_gui_ctor_class) : Initialize insert_cells function pointer.
      	* src/workbook-control-gui.h : Add menu_item_insert_cells.
      	* src/workbook-control.c, src/workbook-control.h, src/workbook-control-priv.h :
      	Export wbcg_insert_cell_enable to workbook-control.
      	* src/selection.c
      	(sheet_selection_set_internal) : If the whole sheet is selected,
      	disable Insert->Cells. Otherwise enable it.
      	(sheet_selection_reset) : Enable Insert->Cells.
       	* src/workbook-view.c
       	(wb_view_menus_update) : Update Insert->Cells too.
  18. 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
       	(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,
       	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.
  19. 25 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Remove insert struct, there is only one function in it anyway so no need · 26a47636
      Almer S. Tigelaar authored
      2001-01-25  Almer S. Tigelaar  <almer1@dds.nl>
              * src/workbook-control-priv.h: Remove insert struct, there
      	is only one function in it anyway so no need for a struct.
      	* src/workbook-control.c: Adjust for removal of the insert struct.
      	* src/workbook-control-gui.c
      	(wbcg_paste_special_enable): Use change_menu_sensitivity.
      	(workbook_control_gui_ctor_class): Adjust for removal of the insert struct.
  20. 22 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Fixes #32417 · f359d7fe
      Almer S. Tigelaar authored
      2001-01-22  Almer S. Tigelaar  <almer1@dds.nl>
      	Fixes #32417
      	* src/workbook-control-gui.c, src/workbook-control-gui-priv.h:
      	(wbcg_insert_cols_rows_enable): New, handles enabling/disabling
      	of insert cols/rows menu items.
      	(change_menu_sensitivity): New, for settings the sensitivity
      	of menu items.
      	(workbook_control_gui_ctor_class): Add insert_cols_rows.enable
      	* src/workbook-control.c, src/workbook-control.h: Add
      	insert_cols_rows_enable as a virtual function.
      	* src/workbook-control-priv.h: Add struct for insert_cols_rows
      	* src/selection.c
      	(sheet_selection_add_range): After adding a range, find out if
      	any range specifies either a whole row or whole col selection
      	and disable insert rows/cols accordingly.
      	(sheet_selection_reset_only): Re-enable insert rows/cols here.
  21. 20 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Limit size of undo/redo stack. · 0e537e1c
      Morten Welinder authored
      2000-11-20  Morten Welinder  <terra@diku.dk>
      	* gnumeric.spec.in (gal): Require 0.2.99.
      	* configure.in (gal): Require 0.2.99 (and fix check).
      	* src/workbook-control-gui.c (workbook_control_gui_ctor_class):
       	Set undo_redo.truncate.
      	(wbcg_undo_redo_truncate): New function.
      	* src/commands.c (command_push_undo): truncate undo information.
      	(truncate_undo_info): New function.
      	(cmd_format): Properly size undo information.
  22. 18 Nov, 2000 1 commit
  23. 12 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Use wb_view_sheet_add. · 69b2fb32
      Jody Goldberg authored
      2000-11-12  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook.c (workbook_sheet_attach) : Use wb_view_sheet_add.
      	* src/workbook-view.c (wb_view_sheet_add) : new function.
      	(wb_view_format_feedback) : Ditto.
      	(wb_view_auto_expr) : Store the display result.
      	(wb_view_auto_expr_value_display) : renamed
      	  from wb_view_auto_expr_value_set.
      	(wb_view_destroy) : clear out the new members.
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Calculate
      	  the style here.  This is transitory.  It will eventually move into
      	  the sheet view when that is split.
      	* src/workbook-control.c (wb_control_sheet_add) : Do this manually
      	  so that if the new sheet is the focus sheet for the view we can
      	  update the various feedback mechanisms.
      	(workbook_control_sheets_init) : rather than here.
      	* src/sheet.c (sheet_update) : prepare for having the wb_view handle
      	  the selection.
      	* src/Makefile.am : Add missing workbook-control.h
      	* src/workbook-view.c (wb_view_auto_expr) : When the expression
      	  changes, recalculate.
      	* src/workbook-control-gui.c (wbcg_auto_expr_value) : Mark as updating
      	  the ui.
      	(cb_auto_expr_changed) : test the updating flag here, don't set it.
  24. 01 Nov, 2000 1 commit
    • 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
      	(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.
  25. 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	(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.