1. 16 Oct, 2002 2 commits
  2. 15 Oct, 2002 1 commit
  3. 12 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      jump to the new interface. · dc2319e8
      Jody Goldberg authored
      
      2002-10-12  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (func_builtin_init) : jump to the new interface.
      
      	* src/func.h : some renaming and api cleanup.
      	  The big one was
      	    s/ModulePluginFunctionInfo/GnmFuncDescriptor/
      	  Some extension of that structure to add additional fields (at the
      	  end) and api changes to use it pervasively.  This includes
      	  placeholders for function flags, and implementation and testing
      	  status.
      
      	  Some general cleanup with
      	    s/FunctionDefinition/GnmFunc/
      	    s/func_lookup_by_name/gnm_func_lookup/
      	    s/function_add_placeholder/gnm_func_add_placeholder/
      	    s/function_def_get_name/gnm_func_get_name/
      	    s/function_def_set_user_data/gnm_func_set_user_data/
      	    s/function_def_get_user_data/gnm_func_get_user_data/
      
      	  remove function_add_args vs function_add_nodes and replace them with
      	  a GnmFuncDescriptor based gnm_func_add
      
      2002-10-12  Jody Goldberg <jody@gnome.org>
      
      	* src/cellspan.c (row_calc_spans) : some simple optimizations
      	  to prune the length we check based on col/row maxima and sparseness.
      	  This can be significantly faster when we add per row maxima.
      
      	* src/symbol.c (symbol_install) : use g_warning and table_replace in
      	  case of a collison.
      
      	* src/format.c (format_number) : Make utf8 clean
      
      	* src/sheet-control-gui.c (scg_set_panes) : more initial work on
      	  supporting h/v only freezing.
      
      2002-10-11  Jody Goldberg <jody@gnome.org>
      
      	* src/libgnumeric.c (gnm_dump_func_defs) : add a flag to indicate
      	  dumping def or status
      	* src/func.c (function_dump_defs) : ditto.
      	* src/main-application.c (main) : add --func-state-dump
      dc2319e8
  4. 07 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      Added ref_notify (fn_def_new): Get extra (optional) argument and copy it · 25045eda
      Zbigniew Chyla authored
      
      2002-08-04  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/func.[ch]
      	(struct _FunctionDefinition): Added ref_notify
      	(fn_def_new): Get extra (optional) argument and copy it to ref_notify
      	(function_add_args, function_add_nodes, function_add_name_only):
      	Get extra arg and pass it to fn_def_new.
      	(func_ref): Call ->ref_notify on every change of refcount from 0 to 1
      	(func_unref): ... and from 1 to 0
      
      	* src/plugin-service.c:
      	(plugin_service_function_group_func_ref_notify): New,
      	call gnm_plugin_use_(un)ref when provided function is (de)referenced.
      	(plugin_service_function_group_activate): Removed FIXME, pass
      	extra argument to function_add_name_only.
      
      	* func-builtin.c
      	(func_builtin_init): Adjusted to function_add_* signature changes.
      25045eda
  5. 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
  6. 14 Jul, 2002 1 commit
    • Jody Goldberg's avatar
      fix 3d handling, and convert. · 7627f07e
      Jody Goldberg authored
      
      2002-07-13  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook.c (workbook_foreach_cell_in_range) : fix 3d handling,
      	  and convert.
      
      	* src/sheet.c (sheet_foreach_cell_in_range) : convert from boolean to
      	  bit flags and support only_visible in addition to only existing.
      	(sheet_col_size_fit_pixels) : Only fit visible cells.
      	(sheet_row_size_fit_pixels) : ditto.
      
      2002-07-12  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (cb_max_cell_width) : leave merged cells out of the
      	  running.
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=87987
      	(sheet_range_bounding_box) : nice catch, thankfully it is a new bug.
      7627f07e
  7. 18 Apr, 2002 1 commit
    • Morten Welinder's avatar
      inter-plugin calls are probably not a good idea... · 4cf4a7c7
      Morten Welinder authored
      
      2002-04-18  Morten Welinder  <terra@diku.dk>
      
      	* src/gnumeric-graph.c: Resurrect enough so that the excel plugin
      	will load.  This doens't mean things will work!
      
      	* src/func-builtin.c (func_builtin_init): New file.  Some stuff
      	from src/functions/fn-math.c imported.
      
      	* src/libgnumeric.c (gnm_shutdown): Shutdown functions also.
      
      	* src/func.c (functions_init): Init builtins.
      	(functions_shutdown): New function.
      4cf4a7c7
  8. 22 Mar, 2002 2 commits
    • Jody Goldberg's avatar
      suppress warning. (solver_performance_report) : fix typo. · 680c2888
      Jody Goldberg authored
      2002-03-22  Jody Goldberg <jody@gnome.org>
      
      	* reports-write.c (solver_program_report) : suppress warning.
      	(solver_performance_report) : fix typo.
      
      2002-03-21  Jody Goldberg <jody@gnome.org>
      
      	* Massive rename
      	eval.[ch] -> dependent.[ch]
      680c2888
    • Jody Goldberg's avatar
      Massive rename ExprTree -> GnmExpr · 0ac8fbbf
      Jody Goldberg authored
      
      2002-03-21  Jody Goldberg <jody@gnome.org>
      
      	* Massive rename
      	ExprTree -> GnmExpr
      
      	* src/print-info.c (load_formats) : suppress some warnings.
      
      	* src/func.c (function_def_call_with_values) : use g_alloca.
      0ac8fbbf
  9. 19 Mar, 2002 1 commit
    • Andreas J. Guelzow's avatar
      rewritten rewritten rewritten rewritten change argument · 87caed2e
      Andreas J. Guelzow authored
      2002-03-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-formula-guru.c : rewritten
      	* dialog-function-select.c : rewritten
      	* formula-guru.glade : rewritten
      	* function-select.glade : rewritten
      	* dialogs.h (dialog_formula_guru) : change argument
      	(dialog_function_select) : change argument and return type
      
      2002-03-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/func.[ch] (function_def_get_arg_type_string) : new
      	(function_def_get_arg_name) : new
      	* src/gui-util.[ch] (gnumeric_dialog_raise_if_exists) :
      	  change return type from gboolean to gpointer
      	* src/workbook-control-gui.c : add argument to call to
      	  dialog_formula_guru
      87caed2e
  10. 09 Mar, 2002 1 commit
  11. 08 Mar, 2002 2 commits
    • Jon Kåre Hellan's avatar
      Add. · a7133935
      Jon Kåre Hellan authored
      * src/command-context-stderr.[ch]: Add.
      
      * src/Makefile.am: Add command-context-stderr.[ch]
      
      * src/main.c (main): Force load plugins before dumping function
      definitions.
      
      * src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
      plugin_db_activate_saved_active_plugins, plugins_init): Add
      force_load parameter.
      (plugins_init): Use virtual function gnumeric_error_error_info to
      report error.
      
      * src/plugin-service.[ch]
      (plugin_service_function_group_initialize): Add force_load
      parameter. Get function info if force loaded.
      (plugin_service_activate): Propagate force_load parameter.
      
      * src/gnumeric.h: Declare CommandContextStderr.
      
      * src/func.[ch] (function_def_get_full_info_if_needed): Make
      public so that it's available when force-loading plugins.
      
      * src/error-info.c (error_info_print_with_offset): Print to stderr
      instead of stdout.
      
      * dialog-plugin-manager.c (cb_pm_button_activate_plugin_clicked):
      Add parameter force_load = FALSE to activate_plugin call.
      (cb_pm_button_activate_all_clicked): Add parameter force_load =
      FALSE to plugin_db_activate_plugin_list call.
      a7133935
    • Jody Goldberg's avatar
      cleanup handling of 'int' and fix handling of between. · c87a2cd1
      Jody Goldberg authored
      2002-03-08  Jody Goldberg <jody@gnome.org>
      
      	* src/validation.c (validation_eval) : cleanup handling of 'int'
      	and fix handling of between.
      
      2002-03-08  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.h : Add DEPENDENT_ALWAYS_UNLINK.
      	  and the as yet unused DEPENDENT_HAS_3D.
      
      	* src/io-context.c (gnm_io_warning) : new stub.
      	(gnm_io_warning_unknown_font) : ditto.
      	(gnm_io_warning_unknown_function) : ditto.
      	(gnm_io_warning_unsupported_feature) : ditto.
      
      	* src/func.c (function_def_get_full_info_if_needed) :  add
      	  link/unlink.
      
      	* src/plugin-service.c
      	(plugin_service_function_group_get_full_info_callback) : add
      	  link/unlink.  This is a terrible interface.  Why not just make the
      	  thing into the FunctionDescriptor.
      	* src/plugin-loader-module.c
      	(gnumeric_plugin_loader_module_func_get_full_function_info) : ditto.
      
      2002-03-08  Jody Goldberg <jody@gnome.org>
      
      	* src/xml-io.c (xml_write_print_info) : handle missing paper so that
      	  we can save again.
      
      	* templates/autoformat/autoformat.3D.button.xml : fix.
      
      	* plugins/Makefile.am (SUBDIRS) : add sample_datasource.
      c87a2cd1
  12. 07 Mar, 2002 1 commit
    • Jody Goldberg's avatar
      revamp extensheet handling and name import. Still does not work for XL95, · 3452c25e
      Jody Goldberg authored
      2002-03-07  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c : revamp extensheet handling and name import.
      	  Still does not work for XL95, but things should be ok for >= 97.
      	  Getting closer to supporting external references.
      
      2002-03-02  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-write.c (write_externsheets) : Use unquoted.  This code
      	  needs some love.
      
      2002-03-02  Jody Goldberg <jody@gnome.org>
      
      	* ms-excel-read.c (ms_excel_read_formula) : avoid leaking when faced
      	  with bad input.
      	(ms_excel_read_formula) : ditto.
      
      2002-03-06  Jody Goldberg <jody@gnome.org>
      
      	* dialog-advanced-filter.c (advanced_filter) : Use eval_pos_init_sheet.
      
      	* dialog-solver.c (cb_dialog_solve_clicked) : fix leak.
      
      2002-03-07  Jody Goldberg <jody@gnome.org>
      
      	* src/position.c (eval_pos_init*) : handle the optional dependent.
      
      	* src/eval.c (link_expr_dep) : support the adjustment to EvalPos.
      	(unlink_expr_dep) : support the adjustment to EvalPos.
      
      	* *.c : directly include gnome-i18n.h, value.h and expr.h
      	  where necessary now that they are no longer included.
      	* src/func.h : here.
      
      	* src/position.h (EvalPos) : Pass in an optional Dependent.
      
      	* src/expr.h (FunctionEvalInfo) : remove the func_def.  Send in the
      	  ExprFunc wrapper instead.  That contains the func-def if desired.
      
      	* src/func.c (function_set_link_handlers) : differentiate signatures
      	  for link & unlink.
      3452c25e
  13. 02 Mar, 2002 1 commit
  14. 21 Feb, 2002 1 commit
  15. 20 Feb, 2002 1 commit
    • Morten Welinder's avatar
      Constify. · bfa95c6a
      Morten Welinder authored
      2002-02-20  Morten Welinder  <terra@diku.dk>
      
              * src/func.c (fn_def_new, function_add_args, function_add_nodes):
              Constify.
      
      
      2002-02-20  Morten Welinder  <terra@diku.dk>
      
              * fn-*.c: Constify all help texts.
      bfa95c6a
  16. 21 Dec, 2001 1 commit
  17. 26 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      add OPER_SET. ditto. ditto. (expr_tree_equal) : ditto. (expr_eval_real) : · 217a63bd
      Jody Goldberg authored
      2001-11-25  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.c (handle_tree_deps) : add OPER_SET.
      	* src/expr-name.c (name_refer_circular) :  ditto.
      	* src/expr.c (do_expr_tree_unref) : ditto.
      	(expr_tree_equal) : ditto.
      	(expr_eval_real) : ditto.
      	(expr_rewrite) : ditto.
      	(do_expr_tree_as_string) : ditto.
      	(expr_tree_new_funcall) : use ExprList.
      	(expr_parse_string) : delete.
      	(expr_tree_new_set) : new.
      	(expr_list_unref) : new.
      	(expr_list_equal) : new.
      	(expr_list_as_string) : new.
      
      	* src/gnumeric.h : Add ExprList and ExprSet
      
      	* src/parser.y (expr_parse_str) : renamed from gnumeric_expr_parser.
      	  Add support for multiple expressions.
      	(line) : add support for multiple expressions.
      
      	* src/ranges.c (global_range_parse) : Use expr_parse_str
      	(global_range_list_parse) : rewrite to use expr_parse_str and use the
      	  new multi-expression support in the parser.
      
      	* src/commands.c (cmd_area_set_text_redo) : Use expr_parse_str.
      	* src/xml-io.c (xml_read_style_condition_chain) : ditto.
      	(xml_cell_set_array_expr) : ditto.
      	* src/workbook-view.c (wb_view_auto_expr) : ditto.
      	* src/workbook-edit.c (wbcg_edit_finish) : ditto.
      	* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : ditto.
      	* src/parse-util.c (parse_text_value_or_expr) : ditto.
      
      	* src/auto-format.c (do_af_suggest) : Use ExprList instead of GList
      	(do_af_suggest_list) : ditto.
      	* src/collect.c (collect_floats) : ditto.
      	(collect_floats_value) : ditto.
      	(float_range_function) : ditto.
      	* src/consolidate.c (simple_consolidate) : ditto.
      	(colrow_formula_args_build) : ditto.
      	(consolidate_apply) : ditto.
      217a63bd
  18. 16 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added help_is_localized field. · beb610c2
      Chyla Zbigniew authored
      * src/func.h (struct TokenizedHelp): Added help_is_localized field.
      
      * src/func.c (tokenized_help_new): Initialize it here.
      
      * src/dialogs/dialog-function-wizard.c (formula_guru_init_args):
      Use the default argument separator (comma) if the function's help is
      not localized.
      beb610c2
  19. 18 Jul, 2001 1 commit
    • Chyla Zbigniew's avatar
      Use locale dependent argument separator. · b538014a
      Chyla Zbigniew authored
      * src/dialogs/dialog-function-wizard.c (formula_guru_init_args): Use
      locale dependent argument separator.
      
      * src/func.h (function_get_category,
      function_get_category_with_translation): Renamed args.
      
      * src/func.c
      (function_category_compare): Don't use g_strcasecmp, it's broken.
      (function_get_category): Use function_get_category_with_translation.
      (function_get_category_with_translation): Some code moved from
      function_get_category, keep categories sorted by display_name, store
      internal_name in "normalized" form (converted to lowercase).
      b538014a
  20. 18 Jun, 2001 1 commit
  21. 03 Mar, 2001 1 commit
    • Chyla Zbigniew's avatar
      Plugin code cleanup (removed unnecessary function arguments) + small · ed7ceda2
      Chyla Zbigniew authored
      
      Plugin code cleanup (removed unnecessary function arguments) + small
      fixes.
      
      * src/func.[ch]
      (struct _FunctionDefinition):
      Removed get_full_info_callback_data field.
      (function_add_name_only): Removed callback_data argument.
      (function_def_get_full_info_if_needed, FunctionGetFullInfoCallback):
      Now we just pass fn_def instead of name + callback_data.
      (function_call_with_list):
      Added missing function_def_get_full_info_if_needed() call.
      
      * src/plugin-loader.[ch]
      (gnumeric_plugin_loader_load_service,
      gnumeric_plugin_loader_unload_service):
      Return error (instead of crashing) if service is not supported.
      (gnumeric_plugin_loader_is_loaded): New function.
      
      * src/plugin-service.h
      (struct _PluginServiceGeneral, struct _PluginServiceFileOpener,
      struct _PluginServiceFileSaver, _PluginServicePluginLoader):
      Removed unneeded plugin argument from every function.
      
      * src/plugin-service.c
      (plugin_service_function_group_get_full_info_callback): Get fn_def
      arg instead of fn_name + callback_data.
      (plugin_service_function_group_initialize): Store pointer to service
      in fn_def's user_data.
      Adjusted to plugin-service.h (removed plugin argument).
      
      * src/plugin-loader-module.c
      (gnumeric_plugin_loader_module_func_init,
      gnumeric_plugin_loader_module_func_can_deactivate,
      gnumeric_plugin_loader_module_func_cleanup,
      gnumeric_plugin_loader_module_func_file_probe,
      gnumeric_plugin_loader_module_func_file_open,
      gnumeric_plugin_loader_module_func_file_save,
      gnumeric_plugin_loader_module_func_get_full_function_info,
      gnumeric_plugin_loader_module_func_get_loader_type):
      Adjusted to plugin-service.h (removed plugin argument).
      
      * src/plugin.[ch]
      s/plugin_load_loader_if_needed/plugin_get_loader_if_needed
      (plugin_info_get_extra_info_list): Get loader if it's not available.
      (plugin_info_is_loaded, plugin_info_get_loader): New functions.
      ed7ceda2
  22. 24 Feb, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added files: plugin-service.[ch], plugin-loader.[ch], · a924975e
      Chyla Zbigniew authored
      
      * src/Makefile.am: Added files:  plugin-service.[ch],
      plugin-loader.[ch], plugin-loader-module.[ch], module-plugin-defs.h.
      
      * src/error-info.[ch] (error_info_new_from_errno): New function.
      
      * src/file.c
      (struct _FileOpener, struct _FileSaver): Moved from file.h
      (file_opener_get_format_description, file_opener_has_probe,
      file_saver_get_extension,  file_saver_get_format_description):
      New accessor functions.
      (file_opener_probe, file_opener_open, file_saver_save,
      file_opener_set_user_data, file_opener_get_user_data,
      file_saver_set_user_data, file_saver_get_user_data): New
      functions.
      (get_file_opener_by_id, get_file_saver_by_id): Removed
      Now using FileOpener*/FileSaver* instead of FileOpenerId/FileSaverId
      everywhere.
      
      * src/file.h
      (struct _FileOpener, struct _FileSaver): Moved to file.c.
      Adjusted to file.c.
      
      * src/gui-file.c: Adjusted to file.[ch], now FileSaver.extension
      field should contain real extension (without a dot).
      
      * src/func.[ch]
      (enum FunctionFlags, struct _FunctionDefinition): Moved from func.h
      to func.c.
      (struct _FunctionCategory): Added "internal_name" and "display_name"
      in place of "name" field.
      (function_get_category_with_translation,
      function_category_remove_func, func_get_ref_count, function_remove,
      function_add_name_only): New functions.
      Now it's possible to load function implementation on demand (after
      registering function using function_add_name_only() and providing
      function of type FunctionGetFullInfoCallback).
      Rename fd and fndef to fn_def for consistency.
      
      * src/functions/fn-database.c (database_functions_init),
      src/functions/fn-date.c (date_functions_init),
      src/functions/fn-eng.c (eng_functions_init),
      src/functions/fn-financial.c (finance_functions_init),
      src/functions/fn-information.c (information_functions_init),
      src/functions/fn-logical.c (logical_functions_init),
      src/functions/fn-lookup.c (lookup_functions_init),
      src/functions/fn-math.c (math_functions_init),
      src/functions/fn-sheet.c (sheet_functions_init),
      src/functions/fn-stat.c (stat_functions_init),
      src/functions/fn-string.c (string_functions_init):
      Use function_get_category_with_translation, instead of
      function_get_category.
      
      * src/plugin.[ch]
      (struct _PluginInfo): Removed many fields.
      (plugin_info_get_extra_info_list):
      Just call gnumeric_plugin_loader_get_extra_info_list.
      (plugin_info_peek_services_data, plugin_info_peek_loader_type_str):
      New accessor functions.
      (plugin_info_read_service_list, plugin_info_read_loader,
      plugin_info_read):
      Read services and loader info, use functions from
      gal/util/e-xml-utils.h everywhere.
      (activate_plugin, deactivate_plugin): Just activate/deactivate all
      plugin services.
      (plugin_can_deactivate): Ask plugin services.
      (plugin_load_service, plugin_unload_service,
      plugin_info_offers_loader_by_type_str,
      plugin_loader_register_type, plugin_loader_register_id_only,
      plugin_loader_get_by_id, plugin_loader_is_available_by_id,
      plugin_list_sort_by_dependency):
      New functions.
      (plugin_db_activate_plugin_list): Activate plugins in correct order,
      using plugin_list_sort_by_dependency function.
      (plugin_info_print): Removed.
      (module_plugin_print_info, module_plugin_info_get_extra_info_list,
      module_plugin_free, module_plugin_info_read, module_plugin_activate,
      module_plugin_deactivate, module_plugin_can_deactivate): Removed,
      most code  moved to plugin-loader.c and plugin-loader-module.c.
      
      * src/plugin-service.[ch]: New files, support for plugin services
      (five types of these so far).
      
      * src/plugin-loader.[ch]: New files, base class for plugin loaders.
      
      * src/plugin-loader-module.[ch]: New files, support for "g_module"
      plugins.
      
      * src/plugin-util.[ch] (gnumeric_fopen_error_info,
      gnumeric_open_error_info, gnumeric_mmap_error_info): New functions.
      
      * src/gutils.[ch] (g_list_free_custom, g_slist_free_custom,
      gnumeric_time_counter_push, gnumeric_time_counter_pop):
      New functions.
      
      * src/io-context-priv.h (struct _IOContext): Added error_info field.
      
      * src/io-context.[ch] (gnumeric_io_context_new,
      gnumeric_io_context_free, gnumeric_io_error_info_set,
      gnumeric_io_error_info_push, gnumeric_io_error_info_pop,
      gnumeric_io_error_info_clear, gnumeric_io_error_info_display,
      gnumeric_io_has_error_info): New functions, quick hack to add
      support for ErrorInfo.
      
      * src/module-plugin-defs.h: New file, should be included be every
      g_module plugin.
      
      * src/auto-format.c: Use accessor function from func.h.
      
      * src/bonobo-io.c (gnumeric_bonobo_write_workbook,
      gnumeric_bonobo_read_workbook, gnumeric_bonobo_io_probe),
      src/stf.c (stf_read_workbook, stf_write_workbook),
      src/xml-io.[ch] (xml_probe, gnumeric_xml_read_workbook,
      gnumeric_xml_write_workbook):
      Signature changes.
      
      * src/workbook.c: Adjusted to
      workbook_load_from/gnumeric_xml_write_workbook signature change.
      
      * src/dialogs/dialog-function-select.c: Adjust to func.[ch].
      
      * src/dialogs/dialog-plugin-manager.c
      Adjust to plugin.[ch].
      (cb_pm_button_activate_plugin_clicked): Check if loader for current
      plugin is available, suggest activating loader plugin otherwise.
      a924975e
  23. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  24. 08 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Handle blanks as 0. (callback_function_make_list) : Ditto. · c644804f
      Jody Goldberg authored
      
      2000-08-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-stat.c (callback_function_stat) : Handle blanks as 0.
      	(callback_function_make_list) : Ditto.
      	(callback_function_ttest) : Ditto.
      	(gnumeric_mode) : Explicitly ignore blanks.
      	(gnumeric_count) : Ditto.
      	(gnumeric_ztest) : Ditto.
      	(gnumeric_counta) : Ditto.
      	(gnumeric_percentile) : Ditto.
      	(gnumeric_quartile) : Ditto.
      	(gnumeric_prob) : DO NOT IGNORE BLANKS.
      	(gnumeric_ftest) : Ditto.
      	(gnumeric_ttest) : Ditto.
      	(gnumeric_frequency) : Ditto.
      
      	* src/functions/fn-logical.c (gnumeric_and) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_or) : Ditto.
      	* src/functions/fn-math.c (gnumeric_lcm) : Ditto.
      	(gnumeric_multinomial) : Ditto.
      	(gnumeric_seriessum) : Ditto.
      
      	* src/functions/fn-financial.c (gnumeric_mirr) : Use the old
      	  behavior of ignoring blanks.
      	(gnumeric_irr) : Ditto.
      	(gnumeric_npv) : Ditto.
      
      	* src/functions/fn-eng.c (gnumeric_improduct) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_imsum) : Ditto.
      
      	* src/func.c (function_iterate_argument_values) : Add ignore_blank
      	  flag.
      
      	* src/collect.c (callback_function_collect) : Support new collect flag
      	  COLLECT_IGNORE_BLANKS.
      	(collect_floats) : change to function_iterate_argument_values.
      	(float_range_function2) : Use COLLECT_IGNORE_BLANKS.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (fill_item_new) : It is legal to have 'D' and 'M'
      	  for day or month fields.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      	For : John N S Gill <bmrg@gofree.indigo.ie>
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Implement support
      	  for double click on autofill button.
      c644804f
  25. 31 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Convert most of the routines to take 'Scalar' rather than '?' which did · ebc1d288
      Jody Goldberg authored
      
      2000-07-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-date.c (date_functions_ini) : Convert most of the
      	  routines to take 'Scalar' rather than '?' which did not handle
      	  ranges or arrays.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_arg_new) : Handle
      	  'Scalar'
      
      	* src/func.c (function_marshal_arg) : Add 'S' scalar.
      
      2000-07-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/global-gnome-font.c (global_gnome_font_init) : Adjust to
      	  signature change for gnome_font_family_list.
      ebc1d288
  26. 17 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Improve the look of diagonal double borders. They still handle · a4ba034b
      Jody Goldberg authored
      
      2000-07-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/border.c (style_border_draw) : Improve the look of diagonal double
      	  borders.  They still handle intersections poorly, but this improves
      	  things a bit.
      	(style_border_print) : Ditto.
      
      2000-07-16  Jody Goldberg <jgoldberg@home.com>
      	For : Matt Bissiri <bissiri@eecs.umich.edu>
      
      	* src/clipboard.c: Implemented 'paste link' and 'skip blanks' for paste special.
      	(paste_link): New function.
      	(paste_cell): Do not clear the target cells if PASTE_SKIP_BLANKS is specified.
      	Call paste_link if PASTE_LINK is specified.
      
      	* src/clipboard.h:
      	Added PASTE_LINK and PASTE_SKIP_BLANKS flags.
      
      	* src/dialogs/dialog-paste-special.c:
      	(transpose_cb): Rename transpose_cb -> checkbutton_toggled.
      	(dialog_destroy): New function.
      	(paste_link_set_sensitive): New function.
      	(dialog_paste_special): Add 'paste link' and 'skip blanks' to the dialog.
      a4ba034b
  27. 09 Jul, 2000 1 commit
    • Jody Goldberg's avatar
      Take units in pixels or points. (sheet_{col,row}_set_default_size_pixels) · b519fbd3
      Jody Goldberg authored
      
      2000-07-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_row_default_init) : Take units in pixels or
      	  points.
      	(sheet_{col,row}_set_default_size_pixels) : new functions.  This
      	  interface sucks.  Clean it up.
      
      	* src/parser.y : Optionally insert a place holder when an
      	  unknown function is found.
      
      	* src/func.c (function_add_placeholder) : New function, moved from the
      	  XL import code.
      
      	* src/expr.c (expr_parse_string) : gnumeric_expr_parser signature
      	  change.
      	* src/workbook.c (workbook_set_auto_expr) : Ditto.
      
      	* src/application.c (application_dpi_to_pixels) : New function.
      	* src/item-bar.c (item_bar_fonts_init) : Use it here.
      	* src/sheet-view.c (sheet_view_get_style_font) : And here.
      	* src/style.c (font_init) : and here.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (cellref_r1c1_get) : Make stricter.
      	(r1c1_get_item) : Ditto.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* plugins/Makefile.am (SUBDIRS) : Enable applix.
      
      2000-07-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parse-util.c (col_from_name) : Add optional arg to indicate
      	  where parsing stoped.  Similar to strtod.
      
      2000-07-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_write_style_border) : Trivial optimization.  No
      	  need to save colour for STYLE_BORDER_NONE.
      	(xml_read_style_border) : Ditto.
      b519fbd3
  28. 28 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      new function. · 93f11589
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-sheet.c (GNUMERIC_VERSION) : new function.
      
      	* src/workbook.c (workbook_do_destroy) : No need to release the
      	  clipboard here.  The Sheet does it for us.
      
      	* src/workbook-format-toolbar.c : Add Fill to the default money
      	  format.
      
      	* src/symbol.c : The only symbols are functions.  The global table
      	  should not be world visible.
      
      	* src/sheet.c (sheet_flag_status_update_cell) : Take a CellPos.
      	(sheet_get_extent_cb) : Use Cell::pos rather than adding an
      	  indirection.
      	(cb_set_cell_content) : Use StyleFormat.
      	(sheet_cell_set_value) : Call sheet_flag_status_update_cell.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_destroy) : Prepare to clear out named expressions.
      	(colrow_move) : Handle changes in cell_relocate signature.
      	(sheet_move_range) : Ditto.
      
      	* src/sheet-autofill.c : Use StyleFormats.
      
      	* src/position.c (parse_pos_init) : Global position are permitted.
      
      	* src/parser.y : Large change.  Do not automaticlly look for function
      	  names or named expressions in the lexer.  The lexer returns STRING
      	  and QUOTED_STRING.  The parser then does the appropriate lookups to
      	  potentially convert to something else.  This allows us to have sheet
      	  names that are the same as functions.
      
      	* src/parse-util.c (cellref_name) : Add flag to optionally disable the
      	  addition of the sheet name.  This is useful when printing
      	  Sheet2!A1:A3 rather than Sheet2!A1:Sheet2!A3.
      
      	* src/number-match.c (format_create_regexp) : Handle fill formats.
      
      	* src/mstyle.c (mstyle_get_border) : Fix constness.
      
      	* src/mathfunc.c (combin, fact) : Moved these here from
      	  functions/fn-math.c
      
      	* src/main.c (gnumeric_main) : No more constants_init, or
      	  global_symbol_init.
      
      	* src/func.c () : Reorg.  Remove some dead code.  Begin adding
      	  workbook local function support, Begin adding volatile, and
      	  semi-volatile functions.  Move the use of SymbolTable internal
      	  in preparation for eliminating it.
      
      	* src/format.c (format_number) : Improve support for pound, yen, and euro.
      	  Remember to produce a number when we hit spacing.
      
      	* src/expr.c : Have ExprFunc refer directly to the FunctionDefinition
      	  We still use a SymbolTable internally, but that will be merged out
      	  later.
      
      	* src/expr-name.c : Major reorg.  Not complete.
      
      	* src/corba-sheet.c (fill_corba_value) : Adjust to changes in
      	  cellref_name signature.
      
      	* src/commands.c (cmd_set_date_time_undo) : No need to manually call
      	  update_cell_flag.  cell_remove, and cell_set_text do that for us.
      	(cmd_set_date_time_redo) : Ditto.
      	  Use StyleFormat.
      
      	* src/clipboard.c (paste_cell) : Take the ExprRewriteInfo as an
      	  argument.
      	(clipboard_paste_region) : Init the ExprRewriteInfo.  We need to do
      	  this here rather than in cell_relocate because we may be moving a
      	  region, not just a single cell, and references within the region
      	  should not be changed.
      
      	* src/cell.c (cell_relocate) : Take the relocation info as an
      	  argument.  Non NULL indicates a request to check bounds.  We can not
      	  do this at the cell level. becuase we may be moving a block rather
      	  than just a single cell, and references into the block should NOT be
      	  rewritten.
      	(cell_set_text_and_value) : Take a StyleFormat.
      	(cell_assign_value) : Ditto.
      	(cell_set_value) : Ditto.
      	(cell_set_expr_internal) : Ditto.
      	(cell_set_expr_unsafe) : Ditto.
      	(cell_set_expr) : Ditto.
      
      	* src/auto-format.c (do_af_suggest) : Expression now refers directly
      	  to functionDef.
      93f11589
  29. 14 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      Bug 12042 · aba702b5
      Jody Goldberg authored
      2000-06-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-math.c (callback_function_sumproduct) : Handle
      	  empty.
      	(gnumeric_sumproduct) : Handle blank cells correctly, correct error
      	  handling slightly.
      
      	* src/func.c (iterate_cellrange_callback) : Handle empty cells.
      	(function_iterate_do_value) : Add a new argument to control the
      	  handling of empty cells.
      	(function_iterate_argument_values) : Hard code the ignore_blanks
      	  argument to TRUE the same as the previous behavior.
      aba702b5
  30. 03 May, 2000 1 commit
    • Jody Goldberg's avatar
      Begin to rationalize support for inverted and 3D references. · de62dd3a
      Jody Goldberg authored
      More renaming and movement name rationalization.
      Some minor improvements in the function wizard.
      
      2000-05-03  Jody Goldberg <jgoldberg@home.com>
      
      	* EvalPosition -> EvalPos
      	  ParsePosition -> ParsePos
      	  new struct RangeRef used in ValueRange
      
      	  eval_pos_init* -> position.[ch]
      	  parse_pos_init*
      	  cell_ref_{get,make}*
      
      	* src/workbook.c : Reorder the toolbar a bit.
      	(workbook_foreach_cell_in_range) : New function.
      	(cb_autofunction) : New routine.
      	(workbook_set_auto_expr) : DO NOT put real code into pre/post
      	  conditions.  It will be removed when debugging is eventually
      	  disabled.
      
      	* src/position.c (range_ref_normalize) : New function.
      
      	* src/ranges.c (range_normalize) : New function.
      
      	* src/expr.c (expr_implicit_intersection) : Use range_ref_normalize.
      
      	* src/eval.c (cell_eval_content) : No need to release the value.
      	  cell_assign_value already does that.
      	(dependency_range_ctor) : Use range_normalize.
      
      	* src/auto-format.c (do_af_suggest) : Use workbook_foreach_cell_in_range.
      
      	* src/cell.c (cell_set_expr_and_value) : link the new expression but
      	  do not queue it for recalc.
      	(cell_assign_value) : Release the old value.
      	(cell_copy) : Init the value to empty.
      
      	* src/func.c (function_iterate_do_value) : Use
      	  workbook_foreach_cell_in_range.
      
      	* src/dialogs/dialog-function-wizard.c (create_description) : Use
      	  a label rather than a text entry widget.  It looks better.
      
      	* src/functions/fn-string.c (gnumeric_expression) : range is already
      	  absolute.
      
      	* src/functions/fn-stat.c (gnumeric_linest) : Handle inverted ranges.
      	(gnumeric_logest) : Ditto.
      
      	* src/functions/fn-information.c (gnumeric_countblank) : Use
      	workbook_foreach_cell_in_range.
      	(gnumeric_{row,column}) : Handle inversions.
      
      	* src/functions/fn-lookup.c (gnumeric_offset) : No need to make
      	  absolute.  The marshaller already did that.
      
      2000-05-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c (dependency_range_ctor) : normalize the range.
      
      	* src/xml-io.c (xml_write_cell_and_position) : Suppress warning.
      
      	* src/pixmaps.h : Add function wizard and equal sign.
      de62dd3a
  31. 10 Mar, 2000 1 commit
    • Jody Goldberg's avatar
      Constness. · c2af08a9
      Jody Goldberg authored
      2000-03-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/func.c (tokenized_help_new) : Constness.
      
      	* src/widgets/gtk-combo-box.c (cb_state_change) : New function to keep
      	  the state of the combo display button and the combo arrow in sync.
      	(gtk_combo_box_init) : Connect cb_state_change to the arrow.
      	(gtk_combo_box_set_display) : Ditto for the display widget.
      
      	* src/sheet.c (sheet_set_zoom_factor) : Bound the factor at 10% and 500%
      
      	* src/workbook.c (change_zoom_in_current_sheet_cb) :
      	  call change_displayed_zoom_cb to adjust the combo to contain the
      	(workbook_focus_current_sheet) : Only emit signal if the sheet
      	  changed.
      
      2000-03-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/collect.c (callback_function_collect) : Treat arrays and ranges
      	  as errors.
      
      	* src/format.c (format_value) : formating a range returns a
      	  #VALUE! message.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) :
      	  Use the workbook flags, and delete the icky globals.
      	(start_cell_selection_at) : Hide the std cursor when a cell selection
      	  cursor is created.
      	(gnumeric_sheet_stop_cell_selection) : Restore the std cursor.
      
      2000-03-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (accept_input) : Use workbook_finish_editing.
      	(cancel_input) : Ditto.
      	(do_focus_sheet) : Support range selection across spreadsheets.
      	(workbook_get_sheet_position) : Fix and document.
      	(workbook_move_sheet) : Fix.
      	(workbook_focus_sheet) : Handle errors cleanly.
      	(wb_edit_key_pressed) : Improve F4 handling.
      	(wizard_input) : Begin non-modal function wizard.  NOT FINSIHED.
      	(workbook_start_editing_at_cursor) : transfered from
      	  sheet_start_editing_at_cursor.
      	(workbook_finish_editing) : Distilled from sheet_{accept,cancel}_pending_input.
      	(Workbook) : Add editing_cell, editing_sheet, editing.
      
      	* src/sheet.c (sheet_stop_editing) : Delete.
      	(sheet_accept_pending_input) : Merge into workbook_finish_editing.
      	(sheet_cancel_pending_input) : Ditto.
      	(sheet_start_editing_at_cursor) :
      	(sheet_create_edit_cursor) : New function.
      	(sheet_destroy_edit_cursor) : New function.
      	(sheet_destroy_cell_select_cursor) :  New function.
      	(Sheet) : Delete editing and editing_cell.
      
      	* src/selection.c (sheet_selection_changed_hook) : Make public.  This
      	  should eventually move but I'm not sure where.  It is used for more
      	  than just changes in the selection in the current sheet.  It must
      	  also be called when the sheet changes.  What it REALLY does it to
      	  sync the shared workbook state with the current sheet's selection.
      
      	* src/item-cursor.c (item_cursor_init) : Handle change from
      	  sheet_accept_pending_input -> workbook_finish_editing.
      	* src/item-grid.c (item_grid_button_1) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_move_cursor) : Edit moved
      	  from sheet -> workbook.
      	(selection_insert_selection_string) : Extend to support
      	  abs/rel refs and intersheet-refs.
      	(gnumeric_sheet_stop_cell_selection) : Add clear_string argument
      	  to optionally remove the selection range.
      	(gnumeric_sheet_key_mode_sheet) : Adjust to movement of editing flag
      	  from sheet -> workbook.  Be careful to use the original sheet when
      	  moving rather than the current sheet.  Support F4 while editing.
      
      	* src/cell-draw.c (cell_draw) : editing_cell has moved from sheet to
      	  workbook.  Fix font ref leak when drawing the edit cell.
      
      	* src/dialogs/dialog-function-wizard.c : Begin transition to being
      	  non-modal.  NOT FINISHED.
      c2af08a9
  32. 02 Mar, 2000 1 commit
    • Jon K Hellan's avatar
      Updated documentation · d875fc7e
      Jon K Hellan authored
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      
      	* doc/python-gnumeric.txt: Updated documentation
      
      	* src/func.h: Make FunctionCategory.name a String * instead of
      	gchar *. This was necessary to allow user defined categories.
      	src/func.c (function_category_compare, function_get_category): Use
      	new FunctionCategory. Fix wrong use of g_list_find_custom.
      	(function_def_count_args, function_def_get_arg_type): Null pointer
      	check.
      
      	* src/dialogs/dialog-function-select.c (function_categories_fill):
      	ditto.
      
      2000-03-01  Jon K Hellan  <hellan@acm.org>
      
      	* python.c (exception_to_string): Rename to string_from_exception.
      	(value_from_exception): New function. Converts the current Python
      	exception to a new VALUE_ERROR.
      	(file static variable eval_pos): remove
      	(value_to_python): Fix refcounting bug re Py_None.
      	(value_from_python): Caller is now responsible for converting
      	exception to VALUE_ERROR.
      	(marshal_func): Handle optional arguments. Use
      	value_from_exception. Do away with eval_pos kludge. Consequence:
      	We must pass FunctionEvalInfo as an extra parameter to the python
      	functions.
      	(apply): Add context parameter.
      	(register_function): Add category parameter to Python
      	signature. Register function in given category.
      
      	* gnumeric_startup.py: Add category argument to all
      	register_function calls.
      	(gnumeric_mid, py_abs): Add context parameter.
      
      	* python.c
      d875fc7e
  33. 16 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      More header cleanup. Remove value.h and sheet.h from expr.h. Remove · c73b937c
      Jody Goldberg authored
      
      2000-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : More header cleanup.  Remove value.h and sheet.h
      	  from expr.h.  Remove sheet.h from cell.h.
      
      2000-02-16  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/plugin-manager.c : Move functionality.
      	* src/dialogs/dialog-plugin-manager.c : here.  and move to libglade.
      
      	* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
      	  of plugin_manager_new.
      c73b937c
  34. 13 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Major rationalization of pts vs pixels and the use of margins. · b6d04cff
      Jody Goldberg authored
      Some redraw speedups and the addition of XL2000 style alpha bended selections.
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* ./src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      
      2000-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
      	  margin changes.
      
      	* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
      	  XL2000.  Things are correct for rows, colwidth are quoted in pts
      	  rather than char widths.
      	(get_col_from_pos) : Use visible flag.
      	(item_bar_start_resize) : Function renaming.
      	(is_pointer_on_division) : Ditto.
      	(item_bar_draw) : Changes to margins.
      
      	* src/item-edit.c : Function renaming.
      	* src/item-cursor.c : Ditto.  decrease spacing for auto handle.
      
      	* src/item-grid.c (item_grid_draw) : Remove inversion process for the
      	  selection.  Instead have the cells draw their background
      	  differently.  Use the visible flag.
      	(item_grid_paint_empty_cell) : Ditto.
      	(item_grid_paint_cell) : Ditto.
      
      	* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
      
      	* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
      	  a selected cell differently.
      
      	* src/print-cell.c (DIM) : margins are already included.
      	(print_cell_text) : Adjust argument order to more closely match
      	  cell_draw.  Add support for vertical alignment of 1 line cells.
      	  Invert control of single vs multiple lines.
      	(print_cell) : Adjust to changes in the arguments.
      	(print_cell_range) : Use the visible flag.
      	  Draw line at the boundary rather than pretending there were
      	  additional rows/cols.
      
      	* src/print.c (compute_groups) : size_pts INCLUDES margins.  Use 'visible' flag.
      	(print_page) : Adjust to function renaming.
      	(print_range_used_units) : Ditto.
      
      	* src/selection.c : Include sheet-view directly for now.
      	(cb_set_row_height) : Adjust to function renaming.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
      	  renaming.
      	(sheet_view_redraw_headers) : Ditto.
      	(sheet_view_set_zoom_factor) : Ditto.
      	(sheet_view_col_size_changed) : Ditto.
      	(sheet_view_row_size_changed) : Ditto.
      	(sheet_view_comment_get_points) : Ditto.
      
      	* src/sheet.[ch] : Rationalize function names, and add glossary.
      	Make the use of margins and sizes (in points and pixels) consistant.
      
      	(sheet_col_get_external_width : Delete.
      	(sheet_row_get_external_height : Delete.
      	(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
      	(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
      	(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
      	(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
      	(sheet_col_set_width : Rename sheet_col_set_size_pixels.
      	(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
      	(sheet_row_set_height : Rename sheet_row_set_size_pixels.
      	(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
      	(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
      	(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
      	(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
      	(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
      	(sheet_{row,col}_set_default_size_pts) : New functions.
      
      	(sheet_init_default_styles) : Tune to match XL defaults.
      
      	* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
      
      	* src/style.c (style_color_new) : Init the selection colour as a 50%
      	  alpha blend with lavender.
      
      	* src/style.h : Change default font to be Helvetica 9 because it will
      	  scale better when the standard 96 dpi resolution is assumed.
      	  Add a selected_color to StyleColor.
      
      	* src/value-sheet.c : Include <gnome.h> to get the
      	  internationalization support.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
      	  sheet_col_set_width -> sheet_col_set_size_pixels.
      	(workbook_cmd_format_column_width) :
      	  sheet_col_set_width_units -> sheet_col_set_size_pts.
      	(workbook_cmd_format_row_auto_fit) :
                sheet_row_set_height -> sheet_row_set_size_pixels
      	(workbook_cmd_format_row_height) :
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      
      	* src/xml-io.c (xml_read_rows_info) : Rename
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      	(xml_read_cols_info) : Rename
      	  sheet_col_set_height_units -> sheet_col_set_size_pts.
      	(xml_read_colrow_info) : Remove hack with negative pixels.
      	  Use 'visible' flag instead.
      	(xml_write_colrow_info) : Ditto.
      b6d04cff
  35. 03 Feb, 2000 1 commit
  36. 02 Feb, 2000 1 commit
    • Jukka-Pekka Iivonen's avatar
      Bug fix. Convert RHS values to non-negative. · 54ec394c
      Jukka-Pekka Iivonen authored
      2000-02-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/solver-lp.c (solver_simplex): Bug fix.  Convert RHS values
       	to non-negative.
      
      	* src/solver-lp.c: Implemented `Sensitivity Report' for Solver
       	tool.  Not complete though.
      54ec394c
  37. 26 Jan, 2000 1 commit
    • Jukka-Pekka Iivonen's avatar
      Implemented `Advanced Filter'. · a0ec6d64
      Jukka-Pekka Iivonen authored
      2000-01-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialog-advanced-filter.c, src/func.h, src/workbook.c:
      	Implemented `Advanced Filter'.
      
      	* src/mathfuns.[ch], src/analysis-tools.c, src/dialogs/dialogs.h,
       	src/dialogs/dialog-analysis-tools.c: Added the following
       	distributions for the random number generation tool:
      	- poisson
      	- binomial
      	- negative binomial
      	- exponential
      a0ec6d64