1. 03 Jun, 2003 1 commit
    • Jody Goldberg's avatar
      don't freak out with emoty names. · 4d2dd844
      Jody Goldberg authored
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (name_guru_add) : don't freak out with emoty
      	  names.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (name_guru_add) : cmd_define_name is smarter
      	  now we don't need to do any heavy lifting here.
      
      2003-06-02  Jody Goldberg <jody@gnome.org>
      
      	* dialog-define-names.c (cb_scope_changed) : handle failure to change
      	  scope and update the name list on success.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-object.c (sheet_objects_relocate) : kludgy tweak so that
      	  ins/del col/row moves things and cut-n-paste does not.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-filter.c (gnm_filter_overlaps_range) : new.
      	(gnm_filter_contains_row) : delete.
      	* src/sheet-view.c (sv_first_selection_in_filter) : new.
      	(sv_edit_pos_in_filter) : delete.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : use here.
      	(cb_auto_filter) : and here.
      
      2003-06-03  Jody Goldberg <jody@gnome.org>
      
      	* src/expr-name.c (gnm_named_expr_collection_insert) : ease
      	  requirements and allow active names to be inserted.  This is the
      	  majority case for all the places we up/dowgrade placeholders and
      	  change scope.
      	(expr_name_check_for_loop) : rename from name_refer_circular and make
      	  public.
      	(expr_name_downgrade_to_placeholder) : new.
      	(expr_name_set_scope) : no need to diddle ::active now that
      	  collection_insert is less anal.
      	(expr_name_cmp_by_name) : renamed from expr_name_by_name.
      
      	* src/commands.c (cmd_define_name*) : add more checking at the start.
      	  Don't bother keeping a ref to the nexpr.
      	  handle undo for defining an existing placeholder.
      4d2dd844
  2. 26 May, 2003 1 commit
  3. 25 May, 2003 1 commit
    • Jody Goldberg's avatar
      Land the charting engine. · c423fdcc
      Jody Goldberg authored
      2003-05-25  Jody Goldberg <jody@gnome.org>
      
      	* ms-chart.c : remove xml, jump to goffice and disable anything that
      	  does not obviously connect to GOG for now.  All we get are plot
      	  types and series for now, no formating.
      
      2003-05-24  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_sheet_label_drag_begin) : remove
      	  deprecation.
      
      2003-05-23  Jody Goldberg <jody@gnome.org>
      
      	* src/selection.c (sv_selection_to_plot) : skip the dimension if its
      	  can't be filled, don't just keep looking for data to put in it.
      c423fdcc
  4. 10 May, 2003 1 commit
    • Jody Goldberg's avatar
      More graph interface churn · 24be8750
      Jody Goldberg authored
      2003-05-09  Jody Goldberg <jody@gnome.org>
      
      	* src/item-edit.c (item_edit_set_arg) : Use connect_object and
      	  simplify the detroy function
      	(item_edit_destroy) : by not having to recall the handler ids.
      
      2003-05-09  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_data_pivottable) : disable until it
      	  does something.
      	* src/GNOME_Gnumeric.xml : ditto.
      24be8750
  5. 26 Apr, 2003 1 commit
    • Jody Goldberg's avatar
      use connect_swapped, to avoid all the irritating signature differences to · d6e7db09
      Jody Goldberg authored
      2003-04-26  Jody Goldberg <jody@gnome.org>
      
      	* dialog-cell-sort.c : use connect_swapped, to avoid all the
      	  irritating signature differences to call the same function.
      
      2003-04-26  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-util.c (gnm_setup_label_atk) : update.
      
      	* src/workbook-control-gui.c (cb_graph_dim_editor_update) : signature
      	  change for the GnmExprEntry::update signal.
      
      2003-04-25  Jody Goldberg <jody@gnome.org>
      
      	* configure.in : bump gsf version req to force the use of CVS.
      d6e7db09
  6. 25 Apr, 2003 2 commits
  7. 22 Apr, 2003 2 commits
    • Jody Goldberg's avatar
      Tidy up the namespacing. (gnm_expr_entry_new) : use the scg property which · afb8f70d
      Jody Goldberg authored
      
      2003-04-22  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric-expr-entry.c : Tidy up the namespacing.
      	(gnm_expr_entry_new) : use the scg property which seems like a better
      	  match than wbcg, but continue to take a wbcg to keep life simple.
      	(gnm_expr_entry_thaw) : actually implement the update policies
      	  partially.  Things are still broken for direct edits.  Mouse based
      	  selection should work smoothly.
      afb8f70d
    • Morten Welinder's avatar
      White-space. · 5a62f69f
      Morten Welinder authored
      5a62f69f
  8. 05 Apr, 2003 1 commit
  9. 23 Feb, 2003 1 commit
  10. 15 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      support for recalc and iteration attributes. · b24361f0
      Jody Goldberg authored
      2002-10-14  Jody Goldberg <jody@gnome.org>
      
      	* dialog-workbook-attr.c : support for recalc and iteration
      	  attributes.
      
      
      2002-10-14  Jody Goldberg <jody@gnome.org>
      
      	* src/commands.c (update_after_action) : quick and dirty support for
      	  manual recalc.
      	(cmd_paste_cut_update_origin) : ditto.
      b24361f0
  11. 14 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      Add links for Data -> Text To Columns Data -> Import External -> From File · 3ab1a0fb
      Jody Goldberg authored
      
      2002-10-14  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c : Add links for
      	    Data -> Text To Columns
      	    Data -> Import External -> From File
      	Only partially implemented in the last hour, but these are just too
      	easy to pass up.
      
      	* src/stf.c (stf_store_results) : new, split out of.
      	(stf_read_workbook) : here.
      	(cb_get_content) : new utility.
      	(stf_text_to_columns) : new.  Only partially done.
      	  We still need a way to get the target region.
      
      	* src/stf-parse.c (stf_parse_sheet) : take a starting offset for the
      	  output, and return a boolean in place of the sheet that was passed in.
      
      	* src/sheet.c (sheet_queue_respan) : new.
      
      	* src/selection.c (selection_first_range) : start cleanup and take a
      	  CommandContext rather than a Control.
      
      	* src/gui-util.c (gnumeric_notice) : Cheat and access the private
      	  label member to set it to accept markup.
      
      	* src/commands.c (cmd_area_set_text_redo) : a nifty optimization.
      	  Just redraw all and queue respanning for the effected regions.
      
      	* src/GNOME_Gnumeric.xml : Add entries for Text to columns and
      	  External Data -> Import from File
      3ab1a0fb
  12. 05 Oct, 2002 1 commit
  13. 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.
      7d300c8c
  14. 04 Sep, 2002 1 commit
    • Jody Goldberg's avatar
      remove a pile of deprecated glib functions. · b7a61e81
      Jody Goldberg authored
      
      2002-09-04  Jody Goldberg <jody@gnome.org>
      
      	* *.c : remove a pile of deprecated glib functions.
      
      	* src/xml-io.c (xml_probe) : fix test for extension .xml.gz  We only
      	  check the last extension.  So foo.xml.gz has extension .gz.
      	  Don't rip out quite so much of the sax handler.
      b7a61e81
  15. 18 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      New · 2ada9578
      Zbigniew Chyla authored
      
      2002-08-15  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/gnumeric-i18n.[ch]: New
      
      	* src/Makefile.am: Added gnumeric-i18n.[ch]
      
      	* src/gutils.[ch]
      	(g_lang_score_in_lang_list, g_lang_score_is_better): Removed
      
      	* src/format-template.h
      	(FormatTemplateCategoryGroup, FormatTemplateCategory): Removed lang_score
      
      	* src/xml-io-autoft.c (gnumeric_xml_read_format_template_category):
      	Don't assign category->lang_score
      
      	* src/file-autoft.c
      	(category_compare_orig_name): Renamed to
      	category_compare_orig_name_and_dir, compare by both name and directory
      	(category_group_list_get): Don't use lang_score, get translation from
      	the first category in a group. Sorting by name and directory guarantees
      	deterministic results
      
      	* plugins/applix/applix-read.c, plugins/derivatives/options.c,
      	plugins/dif/dif.c, plugins/excel/boot.c, plugins/excel/ms-excel-read.c,
      	plugins/excel/ms-excel-write.c, plugins/excel/ms-formula-read.c,
      	plugins/excel/ms-formula-write.c, plugins/fn-complex/functions.c,
      	plugins/fn-complex/gsl-complex.c, plugins/fn-database/functions.c,
      	plugins/fn-date/functions.c, plugins/fn-eng/functions.c,
      	plugins/fn-financial/functions.c, plugins/fn-info/functions.c,
      	plugins/fn-logical/functions.c, plugins/fn-lookup/functions.c,
      	plugins/fn-math/functions.c, plugins/fn-random/functions.c,
      	plugins/fn-stat/functions.c, plugins/fn-string/functions.c
      	plugins/gb/plugin.c, plugins/gda/plugin-gda.c, plugins/guile/plugin.c,
      	plugins/guile/smob-value.c, plugins/html/html_read.c,
      	plugins/html/roff.c, plugins/lotus-123/lotus.c, plugins/mps/mps.c,
      	plugins/mps/parser.c, plugins/numtheory/numtheory.c,
      	plugins/oleo/oleo.c, plugins/plan-perfect/pln.c,
      	plugins/psiconv/psiconv-read.c, plugins/python/python.c,
      	plugins/python-loader/py-gnumeric.c,
      	plugins/python-loader/python-loader.c, plugins/qpro/qpro-read.c,
      	plugins/sample_datasource/sample_datasource.c, plugins/sc/sc.c,
      	plugins/sylk/sylk.c, plugins/uihello/uihello.c, plugins/xbase/boot.c,
      	plugins/xml_sax/xml-sax-read.c, src/bonobo-io.c, src/clipboard.c,
      	src/cmd-edit.c, src/command-context-stderr.c, src/command-context.c,
      	src/commands.c, src/corba-args.c, src/dates.c,
      	src/dialogs/dao-gui-utils.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-col-width.c,
      	src/dialogs/dialog-consolidate.c, src/dialogs/dialog-define-names.c,
      	src/dialogs/dialog-delete-cells.c, src/dialogs/dialog-formula-guru.c,
      	src/dialogs/dialog-function-select.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-merge.c,
      	src/dialogs/dialog-paste-special.c, src/dialogs/dialog-plugin-manager.c,
      	src/dialogs/dialog-preferences.c, src/dialogs/dialog-printer-setup.c,
      	src/dialogs/dialog-random-generator.c, src/dialogs/dialog-row-height.c,
      	src/dialogs/dialog-search-replace.c, src/dialogs/dialog-search.c,
      	src/dialogs/dialog-sheet-order.c, src/dialogs/dialog-simulation.c,
      	src/dialogs/dialog-solver.c, src/dialogs/dialog-stf-export-sheet-page.c,
      	src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-fixed-page.c,
      	src/dialogs/dialog-stf-format-page.c,
      	src/dialogs/dialog-stf-main-page.c, src/dialogs/dialog-stf-preview.c,
      	src/dialogs/dialog-stf.c, src/dialogs/dialog-summary.c,
      	src/dialogs/dialog-tabulate.c, src/dialogs/dialog-workbook-attr.c,
      	src/dialogs/dialog-zoom.c, src/expr-name.c, src/expr.c,
      	src/file.c, src/format-template.c, src/format.c, src/formats.c,
      	src/func-builtin.c, src/func.c, src/gnumeric-canvas.c,
      	src/gnumeric-graph.c, src/gui-clipboard.c, src/gui-file.c,
      	src/gui-util.c, src/history.c, src/hlink.c, src/item-bar.c,
      	src/item-cursor.c, src/item-edit.c, src/libgnumeric.c,
      	src/main-application.c, src/number-match.c, src/parser.y,
      	src/plugin-loader-module.c, src/plugin-loader.c, src/plugin-service.c,
      	src/plugin-util.c, src/plugin.c, src/print-info.c, src/print.c,
      	src/search.c, src/selection.c, src/sheet-autofill.c,
      	src/sheet-control-gui.c, src/sheet-merge.c, src/sheet-object-bonobo.c,
      	src/sheet-object-container.c, src/sheet-object-graphic.c,
      	src/sheet-object-widget.c, src/sheet-object.c, src/sheet-view.c,
      	src/sheet.c, src/stf-parse.c, src/stf-parse.h, src/stf.c, src/style.c,
      	src/tools/analysis-tools.c, src/tools/auto-correct.c, src/tools/dao.c,
      	src/tools/filter.c, src/tools/random-generator.c,
      	src/tools/simulation.c, src/tools/solver/api.c,
      	src/tools/solver/reports-write.c, src/tools/solver/reports.c,
      	src/tools/solver/solver.c, src/validation.c, src/value-sheet.c,
      	src/value.c, src/widgets/gnumeric-expr-entry.c,
      	src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      	src/workbook-control-gui.c, src/workbook-control.c, src/workbook-edit.c,
      	src/workbook-format-toolbar.c, src/workbook-object-toolbar.c,
      	src/workbook-view.c, src/workbook.c, src/xml-io.c:
      	Use <gnumeric-i18n.h> everywhere
      2ada9578
  16. 19 Jul, 2002 1 commit
    • Jody Goldberg's avatar
      take some eval flags to see if we can support implicit iteration. ditto. · 4e60546c
      Jody Goldberg authored
      
      2002-07-18  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.c (gnm_expr_extract_ref) : take some eval flags to see if
      	  we can support implicit iteration.
      	* src/func.c (function_call_with_list) : ditto.
      
      2002-07-18  Jody Goldberg <jody@gnome.org>
      
      	* src/hlink.c : write url and internal link support.
      
      2002-07-16  Jody Goldberg <jody@gnome.org>
      
      	* src/cellspan.c (cell_calc_span) : center across selection can force
      	  a span for something that would wrap.
      
      	* src/workbook-control-gui.c (wbcg_error_error_info) : add 150% as a
      	  std zoom level.
      
      2002-07-15  Jody Goldberg <jody@gnome.org>
      
      	* src/func.h : add status info to the func def for easy update
      4e60546c
  17. 27 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      move frozen panes here. from here. · a27f4f0f
      Jody Goldberg authored
      
      2002-06-27  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-view.c : move frozen panes here.
      	* src/sheet.c : from here.
      
      	* src/sheet-control-gui.c (scg_resize) : freezing in in view now.
      	(scg_scrollbar_config) : ditto.
      	(gnm_canvas_update_inital_top_left) : ditto.
      	(scg_set_left_col) : ditto.
      	(scg_set_top_row) : ditto.
      	(scg_make_cell_visible) : ditto.
      	(scg_set_panes) : ditto.
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : ditto.
      	(cb_view_freeze_panes) : ditto.
      	* src/xml-io.c (xml_read_sheet_layout) : ditto.
      	(xml_write_sheet_layout) : ditto.
      a27f4f0f
  18. 23 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      take a CellPos. (applix_read_cells) : tidy a smidge. (applix_read_impl) : · d1bcb69c
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* applix-read.c (applix_parse_cellref) : take a CellPos.
      	(applix_read_cells) : tidy a smidge.
      	(applix_read_impl) : start to support named ranges.
      
      2002-06-22  Jody Goldberg <jody@gnome.org>
      
      	* ms-formula-read.c (ms_excel_parse_formula) : enable mem_func
      	  support.
      	(binary_ops) : use range_ctor for RANGE.
      
      2002-06-22  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.h : support constructed ranges.
      	* src/parser.y (parser_sheet_by_name) : ditto.
      	* src/expr-name.c (name_refer_circular) : ditto.
      
      	* src/expr.c (do_gnm_expr_unref) : support range_ctor and reorder to
      	  produce a better jump table.
      	(gnm_expr_equal) : ditto.
      	(do_expr_as_string) : ditto.
      	(gnm_expr_rewrite) : ditto.
      	(ets_hash) : ditto.
      	(ets_equal) : ditto.
      	(expr_tree_sharer_share) : ditto.
      	(expr_eval_real) : ditto and use gnm_expr_extract_ref.
      	(gnm_expr_extract_ref) : new.
      d1bcb69c
  19. 21 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      take a cellpos * · 89274950
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/parse-util.c (parse_cell_name) : take a cellpos *
      
      	* src/func-builtin.c (gnumeric_selection) : dummy out for now until a
      	  different approach is available.
      
      	* src/commands.c : convert to sheetview.
      	  s/parent/cmd/ to make things more readable
      	(cmd_selection_clear) : rename from cmd_clear_selection so that we can
      	  start to group the operations that currently operate on selections.
      	(cmd_selection_format) : rename from cmd_format.
      	(cmd_selection_colrow_hide) : rename from cmd_colrow_hide_selection.
      	(cmd_selection_outline_change) : rename from cmd_colrow_outline_change.
      	(cmd_selection_group) : rename from cmd_group.
      	(cmd_selection_autoformat) : rename from cmd_autoformat.
      	(cmd_colrow_hide_correct_selection) : take a control.
      
      	* src/colrow.c (cb_colrow_visibility) : selections are now part of
      	  sheetview.
      	(colrow_get_visiblity_toggle) : ditto.
      
      	* src/cmd-edit.c (cmd_select_cur_row) : convert to sheetview.
      	(cmd_select_cur_col) : ditto.
      	(cmd_select_cur_array) : ditto.
      	(cmd_select_cur_depends) : ditto.
      	(cmd_select_cur_inputs) : ditto.
      	(cmd_paste_to_selection) : ditto.
      
      	* src/bonobo-io.c (deserialize_wb_from_xml_stream) : pass the wbv into
      	  the context directly.
      	(gnumeric_bonobo_write_workbook) : ditto.
      	(gnumeric_bonobo_read_workbook) : ditto.
      
      	* src/consolidate.c (redraw_respan_and_select) : set selection only
      	  for the calling view.
      	(row_consolidate) : pass in the view.
      	(col_consolidate) : ditto.
      	(colrow_consolidate) : ditto.
      	(consolidate_apply) : Take a control so that we can extract the view.
      
      	* src/commands.c (cmd_consolidate_redo) : Pass the control.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-view.c (sheet_view_init) : init the selection.
      
      	* src/workbook-view.c (workbook_view_new) : init current_sheet_view.
      	(wb_view_format_feedback) : operate on the sheetview.
      	(wb_view_selection_desc) : ditto.
      	(wb_view_edit_line_set) : ditto.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_sheet_add) : Use sheet_get_view.
      	(wb_view_sheet_focus) : ditto.
      	* src/xml-io.c (xml_write_selection_info) : ditto.
      	(xml_read_selection_info): ditto.
      	(xml_workbook_write) : now that the view is in the context don't
      	  bother passing it.
      	(xml_write_wbv_attributes) : ditto.
      	(xml_read_wbv_attributes) : ditto.
      89274950
  20. 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
      	  responsibility.
      
      	* 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
      	  SheetView.
      
      	* 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.
      753f052a
    • 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
      	  SHEET_FOREACH_CONTROL.
      
      	* 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.
      a4555c21
  21. 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/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  22. 19 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      move the tabulate and random numbers into Edit -> Fill ditto. · 4278ed64
      Jody Goldberg authored
      2002-01-19  Jody Goldberg <jody@gnome.org>
      
      	* src/GNOME_Gnumeric.xml : move the tabulate and random numbers into
      	  Edit -> Fill
      	* src/workbook-control-gui.c : ditto.
      
      	* src/xml-io.c (xml_read_cell_copy) : handle content with and without
      	  the 'Content' node.
      	(xml_read_cell) : do the version checks before the strcmps.
      
      	* gnumeric.xsd : Add MergedRegions, do not require the Cell's Content node.
      4278ed64
  23. 21 Dec, 2001 1 commit
  24. 09 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      only display scrollbars if necessary · 46c38043
      Jody Goldberg authored
      2001-12-09  Jody Goldberg <jody@gnome.org>
      
      	* dialog-stf.glade  : only display scrollbars if necessary
      
      2001-12-07  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_make_cell_visible) : add a couple_pane argument.
      	* src/sheet-control-gui.c (scg_cursor_move_to) : merge into.
      	(scg_cursor_move) : here.
      	* src/sheet-control.c (sc_make_cell_visible) : remove the force
      	  argument.
      46c38043
  25. 22 Nov, 2001 1 commit
  26. 11 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      remove the unused copy_fn arg and convert to using GSList. · 260a609c
      Jody Goldberg authored
      2001-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_split_ranges) : remove the unused copy_fn
      	  arg and convert to using GSList.
      	(range_fragment) : convert to GSList..
      	(range_fragment_free) : ditto.
      
      	* src/format-template.c : Convert several things to use Range *.
      	(format_template_check_valid) : split out from.
      	(format_template_apply_to_sheet_regions) : here.
      
      	* src/commands.c (cmd_autoformat) : Use format_template_check_valid.
      	(cmd_area_set_text_destroy) : range_fragment_free instead of doing it
      	  ourselves.
      	(cmd_clear_destroy) : ditto.
      	(cmd_format_destroy) : ditto.
      	(cmd_autoformat_destroy) : ditto.
      
      	* src/xml-io.c (xml_write_selection_clipboard) : fix leak.
      	* src/workbook-format-toolbar.c (cb_unmerge_cells) : ditto.
      	(cb_merge_cells) : ditto.
      
      2001-11-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/print.c (print_page) : fix horiz/vert centering in the presence
      	  of scaling.
      260a609c
  27. 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
  28. 24 Aug, 2001 2 commits
    • Jody Goldberg's avatar
      Rename gnumeric-utils.h gui-utils.h to be more accurate. · d531765d
      Jody Goldberg authored
      Clean out a bunch includes.
      d531765d
    • 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
  29. 23 Aug, 2001 1 commit
  30. 06 Aug, 2001 1 commit
  31. 11 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Marks are in. Having the pane corner != A1 works (thanks Federico) · 348ca635
      Jody Goldberg authored
      Marks are in.
      Having the pane corner != A1 works (thanks Federico)
      Autoscroll is still broken in some cases but the framework is in place.
      
      2001-07-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Draw bound lines for panes.
      
      	* src/gnumeric-pane.c (gnumeric_pane_set_bounds) : new function.
      
      2001-07-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_resize) : Federico wins a dinner for
      	  pointing out the source of the bug with frozen panes starting
      	  somewhere other than 0,0.  It seems that scroll_regions are more
      	  powerful than I thought.
      	(scg_init) : the slider handling is elsewhere.
      	(bar_set_top_row) : remove debug spewage.
      	(scg_stop_sliding) : move to gnumeric_sheet.
      	(scg_sliding_callback) : ditto.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : signature change for slide callbacks.
      	(cb_control_point_event) : changes for panes.
      
      	* src/item-grid.c (cb_extend_cell_range) : signature change for slide
      	  callbacks.
      	(cb_extend_expr_range) : ditto.
      	(item_grid_event) : use gnumeric_sheet_handle_motion.
      	(item_grid_finalize) : switch over from destroy.
      	(item_grid_class_init) : add bound args.
      	(item_grid_set_arg) : ditto.
      	(item_grid_draw) : begin using the bound arg.
      	(item_grid_init) : init the bound arg to fullsheet.
      	(item_grid_realize) : Add an extra GC for drawing the bounding lines.
      	(item_grid_unrealize) : release the new GC.
      
      	* src/item-cursor.c (cb_move_cursor) : signature change for slide
      	  callbacks.
      	(cb_autofill_scroll) : ditto.
      	(item_cursor_handle_motion) : use gnumeric_sheet_handle_motion.
      
      	* src/item-bar.c (item_bar_draw) : remove debug spewage.
      	(cb_extend_selection) : signature change for slide callbacks.
      	(item_bar_event) : use gnumeric_sheet_handle_motion and simplify the
      	  code alot.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_init) : init the sliding members.
      	  The sliding used to be managed by the scg, but it is now handled
      	  with the gsheet (could just as easily be gpane) becuase scrolling
      	  panes needs to know _which_ pane is scrolling.
      	(gsheet_compute_visible_region) : remove the debug spewage.
      	(gnumeric_sheet_stop_sliding) : moved from scg_stop_sliding.
      	(gsheet_sliding_callback) : moved from scg_sliding_callback and
      	  revamped to support frozen panes.
      	(gnumeric_sheet_handle_motion) : new routine to merge in the old
      	  scg_start_sliding and add a pile of replicated code from all the
      	  different users of the sliding mechanism.
      	(gnumeric_sheet_new) : take max col/row as arg.
      
      	* src/gnumeric-pane.c (canvas_bar_adjustment_changed) : delete debug routine.
      	(gnumeric_pane_header_init) : no need for adjust_size handler.
      
      2001-07-10  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/Makefile.am : improve evo handling.
      
      	* configure.in : Fix definition of ENABLE_EVOLUTION in makefiles.
      
      2001-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_event) : clip the minimum col/row size at
      	  the margins.
      
      	* src/sheet.c (colrow_compute_pts_from_pixels) : add some sanity
      	  checking.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_handle_motion) : new function.
      	  begin the process of getting enough information to scroll
      	  effectively with frozen panes.  Also merge alot of similar code.
      
      	* src/item-bar.c (item_bar_event) : Use gnumeric_sheet_handle_motion.
      	* src/item-cursor.c (item_cursor_handle_motion) : ditto.
      	* src/sheet-control-gui.c (cb_slide_handler) : ditto.
      348ca635
  32. 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
  33. 08 Jun, 2001 1 commit
    • Jody Goldberg's avatar
      Add some sanity checking for safety. ditto. (sheet_redraw_cell_region) : · f2bccd97
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : Add some sanity
      	  checking for safety.
      	* src/sheet.c (sheet_set_edit_pos) : ditto.
      	(sheet_redraw_cell_region) : ditto.
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      f2bccd97
  34. 03 Jun, 2001 1 commit
    • Almer S. Tigelaar's avatar
      New, converts a row number to a string. (rows_name): Idem, but for a · 77cadcab
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/parse-util.[ch] (row_name): New, converts
       	a row number to a string.
       	(rows_name): Idem, but for a start/end range.
       	(row_name_internal): Utility routine.
      
       	* src/colrow.c (colrow_string_build): Remove.
       	(colrow_index_list_to_string): Use rows_name
       	and cols_name.
      
       	* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
      
       	* src/commands.c (cmd_insert_rows): Idem.
       	(cmd_delete_cols): Beautify.
       	(cmd_delete_rows): Beautify and use rows_name.
      
       	* src/eval.c (dump_range_dep): Use row_name.
      
       	* src/item-bar.c (get_row_name): Deprecated, remove.
       	(item_bar_draw): Use row_name.
      
       	* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
      
       	* src/item-grid.c (item_grid_draw): Idem.
      
       	* src/ranges.c (range_name): Idem.
       	(range_dump): Idem.
      
       	* src/selection.c (reference_append): Idem.
       	(selection_get_ranges): Idem.
       	(cb_range_to_string): Idem.
      
       	* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
       	(vertical_scroll_offset_changed): Idem.
      
       	* src/value-sheet.c (value_dump): Idem.
       	(encode_cellref): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* dialog-cell-sort.c (col_row_name):
       	Use row_name.
      77cadcab
  35. 30 May, 2001 1 commit
    • Jon K Hellan's avatar
      Previous attempt to commit failed. Trying again. · 37876eb7
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	Previous attempt to commit failed. Trying again.
      
      	* src/sheet-control-gui-priv.h: New file. Implementation details
      	for SheetControlGUI and methods directly accessible from the GUI
      	layer.
      
      	* src/Makefile.am: Add sheet-control-gui-priv.h
      
      	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
      	sheet-control-gui-priv.h. Remove declarations of methods which
      	have been made virtual.
      
      	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet member now lives in SheetControl.
      	Make following methods static - externally available only as
      	virtual SheetControl method: scg_redraw_all,
      	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
      	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
      	scg_compute_visible_region, scg_make_cell_visible. Initialize
      	class object with these as virtual methods together with
      	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
      	and scg_mode_edit.  Rename context_menu_hander (sic!) to
      	context_menu_handler.
      
      	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
      	(sc_destroy): Comment out unused variable.
      	(sheet_control_init_state): Rename to sc_init_state.
      	(sc_sheet): New accessor - returns sheet attribute.
      	(sc_invalidate_sheet): New function - sets sheet attribute to
      	NULL.
      	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
      	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
      	scrollbar_config, mode_edit, compute_visible_region,
      	make_cell_visible, cursor_bound): New virtual methods.
      
      	* src/sheet-control.h: Declare new methods in sheet-control.c
      
      	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
      	instead of scg methods.
      
      	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
      	(sheet_ant): Use sc_ant instead of scg_ant.
      	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
      	(sheet_redraw_all): Use sc_redraw_headers instead of
      	scg_redraw_headers.
      	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
      	(sheet_detach_scg): Rename to sheet_detach_control. Change
      	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
      	sc_invalidate_sheet instead of direct attribute access.
      	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
      	scg_set_zoom_factor.
      	(sheet_update_only_grid): Use sc_compute_visible_region instead of
      	scg_compute_visible_region.
      	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
      	(sheet_redraw_cell_region, sheet_redraw_partial_row,
      	sheet_redraw_cell): Use sc_redraw_cell_region instead of
      	scg_redraw_cell_region.
      	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
      	scg_make_cell_visible.
      	(sheet_cursor_set): Use sc_cursor_bound instead of
      	scg_cursor_bound.
      	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
      	scg_update_cursor_pos.
      	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
      	scg_scrollbar_config.
      	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
      	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
      	and scg_redraw_all.
      
      	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
      	instead of SheetControlGUIs.
      
      	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
      	of scg_mode_edit.
      
      	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      
      	* src/sheet-object-graphic.c: Ditto.
      
      	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet now lives in SheetControl.
      
      	* src/item-bar.c: Ditto.
      
      	* src/item-cursor.c: Ditto.
      
      	* src/item-edit.c: Ditto.
      
      	* src/item-grid.c: Ditto.
      
      	* src/sheet-object-cell-comment.c: Ditto.
      
      	* src/sheet-object-cell-container.c: Ditto.
      
      	* src/sheet-object-item.c: Ditto.
      
      	* src/sheet-object-widget.c: Ditto.
      
      	* src/workbook-control-gui.c: Ditto.
      
      	* src/workbook-object-toolbar.c: Ditto, but don't include
      	sheet-control-gui-priv.h
      
      	* src/sheet-object.c (sheet_object_realize): Cast control to
      	SheetControlGUI.
      37876eb7
  36. 14 May, 2001 1 commit