1. 01 Jul, 2002 1 commit
    • Morten Welinder's avatar
      Fix PERMUT. · 4d4f58b5
      Morten Welinder authored
      2002-07-01  Morten Welinder  <terra@diku.dk>
      
      	* src/mathfunc.c (fact): Use table and avoid recursion.
      	(permut): New function.
      	(combin): Improve precision.
      4d4f58b5
  2. 28 Jun, 2002 1 commit
  3. 27 Jun, 2002 8 commits
    • 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
    • Jody Goldberg's avatar
      include gui-file.h · 55137528
      Jody Goldberg authored
      
      2002-06-27  Jody Goldberg <jody@gnome.org>
      
      	* src/main-application.c : include gui-file.h
      55137528
    • Jody Goldberg's avatar
      silence some warnings. · 4e0b367e
      Jody Goldberg authored
      
      2002-06-27  Jody Goldberg <jody@gnome.org>
      
      	* src/mathfunc.c : silence some warnings.
      4e0b367e
    • Jody Goldberg's avatar
      add missing include. · e8ffe15b
      Jody Goldberg authored
      
      2002-06-27  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-util.c : add missing include.
      e8ffe15b
    • Pablo Saratxaga's avatar
      updated Catalan file · b4acfea5
      Pablo Saratxaga authored
      b4acfea5
    • Jody Goldberg's avatar
      add a dummy to silence the warning. · d165d654
      Jody Goldberg authored
      
      2002-06-27  Jody Goldberg <jody@gnome.org>
      
      	* api.c (qp_algorithm) : add a dummy to silence the warning.
      d165d654
    • Jon Kåre Hellan's avatar
      brag · 73839937
      Jon Kåre Hellan authored
      73839937
    • Jody Goldberg's avatar
      add missing break. · c7e7774e
      Jody Goldberg authored
      
      2002-06-26  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.c (do_gnm_expr_unref) : add missing break.
      
      2002-06-26  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-util.c (gui_file_open) : move the magic directory selector
      	  for here.
      	(gnumeric_dialog_file_selection) : to here, so that it works for other
      	  situations too.
      c7e7774e
  4. 26 Jun, 2002 1 commit
  5. 25 Jun, 2002 3 commits
  6. 24 Jun, 2002 4 commits
  7. 23 Jun, 2002 3 commits
    • Jody Goldberg's avatar
      position the cursors for the newly attached control. · e86ef7d6
      Jody Goldberg authored
      
      2002-06-23  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-view.c (sv_attach_control) : position the cursors for the
      	  newly attached control.
      e86ef7d6
    • Jody Goldberg's avatar
      delete the 'selection' function. It is no longer possible with a · 778809a4
      Jody Goldberg authored
      
      2002-06-23  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (func_builtin_init) : delete the 'selection'
      	  function.  It is no longer possible with a sheetview.
      
      	* src/workbook-control-gui.c (cb_select_auto_expr) : remove
      	  'selection(0)' argument and just pass function name.  The conversion
      	  to SheetView forces a different methodology.
      	* src/workbook-view.c (workbook_view_new) : ditto.
      	(wb_view_auto_expr_recalc) : Make the call manually.
      778809a4
    • 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
  8. 22 Jun, 2002 2 commits
  9. 21 Jun, 2002 8 commits
    • Andreas J. Guelzow's avatar
      new deleted (dialog_histogram_tool) : use dialog_tool_init remove code · 10a5f152
      Andreas J. Guelzow authored
      2002-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* tool-dialogs.h (dialog_tool_init) : new
      	* dialog-advanced-filter.c (dialog_histogram_tool_init) : deleted
      	(dialog_histogram_tool) : use dialog_tool_init
      	* dialog-random-generator.c (dialog_random_tool_init) : remove code duplicated
      	  in dialog_tool_init
      	(dialog_random_tool) : use dialog_tool_init
      	* dialog-analysis-tools.c : use improved dialog_tool_init in all dialog...tool
      	(dialog_tool_cmp) : new
      	(dialog_tool_init) : generalize and initial more fields
      10a5f152
    • Jody Goldberg's avatar
      add views of all existing sheets. · 4aa83804
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (workbook_view_new) : add views of all existing
      	  sheets.
      4aa83804
    • Morten Welinder's avatar
      Import also dnbinom.c and dhyper.c · 8c491ccb
      Morten Welinder authored
      2002-06-21  Morten Welinder  <terra@diku.dk>
      
      	* import-R: Import also dnbinom.c and dhyper.c
      
      
      2002-06-21  Morten Welinder  <terra@diku.dk>
      
      	* functions.c (gnumeric_negbinomdist): Use R's distribution
      	function for better precision.
      	(gnumeric_hypgeomdist): Ditto.
      8c491ccb
    • Jody Goldberg's avatar
      move to new signature. · 55709da4
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-component.c (wbcc_sheet_focus) : move to new
      	signature.
      55709da4
    • Jody Goldberg's avatar
      do not free the clipboard here. It is too late. · bfa63387
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c (gnumeric_application_finalize) : do not free the
      	  clipboard here.  It is too late.
      bfa63387
    • 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
    • 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
      	  WorkbookControl
      	* src/workbook-control.c (cb_wbc_clipboard_modified) : new
      	(wbc_finalize) : disconnect signal handler
      	(workbook_control_init) : new
      eb4178dc
    • Morten Welinder's avatar
      Fix 86103. · 1ee3253a
      Morten Welinder authored
      1ee3253a
  10. 20 Jun, 2002 3 commits
    • Jon Kåre Hellan's avatar
      Add test for Pygtk. · 4a28f7f1
      Jon Kåre Hellan authored
      * configure.in (have_pygtk): Add test for Pygtk.
      
      * acconfig.h: Add WITH_PYGTK
      
      * plugins/python/python-loader.c: Include pygobject.h if Pygtk is
      installed.
      (initialize_python_if_needed): Add init_pygobject if Pygtk is
      installed.
      (gnumeric_plugin_loader_python_func_file_probe): Replace file name
      argument with GsfInput. Try to wrap GsfInput in Python object if
      Pygtk is installed. Otherwise give up with warning.
      (gnumeric_plugin_loader_python_func_file_open): Ditto.
      
      * plugins/python/Makefile.am: Add PYGTK_CFLAGS to includes.
      4a28f7f1
    • Morten Welinder's avatar
      Initialize vars. (applix_read): the keys are strings, not ints. · 7f25d885
      Morten Welinder authored
      2002-06-20  Morten Welinder <terra@diku.dk>
      
      	* applix-read.c (applix_read_impl): Initialize vars.
      	(applix_read): the keys are strings, not ints.
      	(applix_read_cells): Isolate the key -- sometimes there seems to be
      	a formula there also.
      7f25d885
    • Morten Welinder's avatar
      New function. · ec34251c
      Morten Welinder authored
      2002-06-20  Morten Welinder  <terra@diku.dk>
      
      	* check-config-h.pl (guess_config_file): New function.
      ec34251c
  11. 19 Jun, 2002 6 commits
    • Jody Goldberg's avatar
      Use sv_weak_ref. (application_clipboard_clear) : Use sv_weak_unref. · 4c2722fd
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c (application_clipboard_cut_copy) : Use sv_weak_ref.
      	(application_clipboard_clear) : Use sv_weak_unref.
      
      	* src/workbook-view.c (wb_view_sheet_add) : create the view before
      	  potentially looking for it.
      
      	* src/workbook-edit.c (wbcg_edit_finish) : Accept text with only a
      	  leading expr char as strings, we know they can not be expressions.
      
      	* src/parse-util.c (gnumeric_char_start_expr_p) : be more lenient
      	  about accepting leading '+' as the start of an expression.
      
      	* src/application.c (application_set_selected_sheet) : merge into.
      	(application_clipboard_cut_copy) : here.
      4c2722fd
    • Andreas J. Guelzow's avatar
      gobjectify gobjectify; replace app. with app-> throughout · e092b5ac
      Andreas J. Guelzow authored
      2002-06-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/application.h : gobjectify
      	* src/application.c : gobjectify; replace app. with app-> throughout
      	(application_init) : deleted
      	(gnumeric_application_init) : new
      	(gnumeric_application_class_init) : new
      	(application_display_dpi_set) : deleted
      	(application_use_auto_complete) : use gconf
      	(application_live_scrolling) : ditto
      	(application_auto_expr_recalc_lag) : ditto
      	(gnumeric_application_setup_icons) : new
      	(gnumeric_application_finalize) : finalize
      	* src/libgnumeric.c (gnm_common_init) : use new application object
      	(gnm_shutdown) : ditto
      	* src/commands.c (cmd_cell_range_is_locked_effective) : use range type
      	(cmd_dao_is_locked_effective) : new
      	(cmd_sort_redo) : check for locks
      e092b5ac
    • Morten Welinder's avatar
      Remove some old hacks that are no longer needed. · c2056d85
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
             * import-R (import_file): Remove some old hacks that are no longer
             needed.
      c2056d85
    • 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
    • Morten Welinder's avatar
      Import also pexp.c and pweibull.c. · 8cbaa7c7
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
      	* import-R: Import also pexp.c and pweibull.c.
      8cbaa7c7
    • Morten Welinder's avatar
      Update to R 1.5.1. (pexp, pweibull): Use R's version. All callers changed · 5a222f6d
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
      	* src/mathfunc.c: Update to R 1.5.1.
      	(pexp, pweibull): Use R's version.  All callers
      	changed to match new prototype.
      5a222f6d