1. 16 Oct, 2002 1 commit
  2. 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
  3. 30 Sep, 2002 2 commits
  4. 20 Sep, 2002 1 commit
    • Jody Goldberg's avatar
      rework yet again to use a 2 object system. 1) SheetControl 2) BonoboObject · a0ac7278
      Jody Goldberg authored
      2002-09-20  Jody Goldberg <jody@gnome.org>
      
      	* corba-sheet.c : rework yet again to use a 2 object system.
      	  1) SheetControl
      	  2) BonoboObject based wrapper for idl interface.
      
      2002-09-20  Jody Goldberg <jody@gnome.org>
      
      	* src/plugin-util.c (gnumeric_mmap_error_info) : delete.
      
      	* src/plugin-service.c (plugin_service_general_activate) : init error.
      	(plugin_service_general_deactivate) : ditto.
      	(gnum_plugin_file_opener_probe) : ditto.
      a0ac7278
  5. 13 Sep, 2002 1 commit
    • Jody Goldberg's avatar
      accept ranges that start or end at the cursor. · d3cd8897
      Jody Goldberg authored
      2002-09-13  Jody Goldberg <jody@gnome.org>
      
      	* gnumeric-expr-entry.c (gnm_expr_entry_rangesel_start) : accept
      	  ranges that start or end at the cursor.
      
      2002-09-13  Jody Goldberg <jody@gnome.org>
      
      	*  functions.c (get_value_class) : delete.
      	(gnumeric_check_for_err) : delete.
      	(gnumeric_iserror) : make this a 'node' function that takes a scalar
      	  This allows implicit iteration to work.
      	(gnumeric_isna) : ditto.
      	(gnumeric_iserr) : ditto.
      	(gnumeric_error_type) : ditto.
      	(gnumeric_islogical) : ditto.
      	(gnumeric_isnontext) : ditto.
      	(gnumeric_isnumber) : ditto.
      	(gnumeric_istext) : ditto.
      	(gnumeric_type) : ditto.
      
      2002-09-13  Jody Goldberg <jody@gnome.org>
      
      	* src/func.c (function_call_with_list) : support implicit iteration.
      
      	* src/value-sheet.c (value_area_fetch_x_y) : catch value_empty too.
      
      	* src/parse-util.c (col_parse) : don't change accept the column unless
      	  at least 1 char was read.
      	(row_parse) : ditto.
      	(rangeref_parse) : off by 1 error when handling full ranges.
      
      	* src/dependent.h (cell_eval) : make this a macro.
      
      	* src/plugin-service.c (gnum_plugin_file_opener_probe) : silence a
      	  warning.
      
      	* src/expr.c (gnm_expr_eval) : rename from expr_eval_real and move the
      	  empty handling into.
      	(handle_empty) : here.
      	(gnm_expr_array_intersection) : delete.
      d3cd8897
  6. 11 Sep, 2002 1 commit
    • Morten Welinder's avatar
      Plug leak. · 97a50432
      Morten Welinder authored
      2002-09-11  Morten Welinder  <terra@diku.dk>
      
      	* src/plugin-service.c (plugin_service_ui_activate): Plug leak.
      97a50432
  7. 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
  8. 29 Aug, 2002 1 commit
  9. 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
  10. 10 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      :get_description): New method (PluginService): Added saved_description · 823fdb6d
      Zbigniew Chyla authored
      
      2002-08-09  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/plugin-service.[ch]
      	(PluginServiceClass::get_description): New method
      	(PluginService): Added saved_description field
      	(plugin_service_general_get_description,
      	plugin_service_file_opener_get_description,
      	plugin_service_file_saver_get_description,
      	plugin_service_function_group_get_description,
      	plugin_service_plugin_loader_get_description,
      	plugin_service_ui_get_description):
      	Implementations of the new method
      	(plugin_service_get_description):
      	New, store generated strings in service->saved_description
      
      	* src/plugin.[ch]
      	(gnm_plugin_get_extra_info_list): Removed
      	(gnm_plugin_get_services): New
      
      	* src/plugin-loader.[ch]
      	(gnumeric_plugin_loader_get_extra_info_list,
      	GnumericPluginLoaderClass::get_extra_info_list): Removed
      
      	* src/plugin-loader-module.c
      	(gnumeric_plugin_loader_module_info_get_extra_info_list): Removed
      823fdb6d
  11. 07 Aug, 2002 3 commits
    • Zbigniew Chyla's avatar
      src/plugin-service.c s/g_strcasecmp/g_ascii_strcasecmp/ · 6be0bb42
      Zbigniew Chyla authored
      
      2002-08-07  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/plugin-service.c
      	s/g_strcasecmp/g_ascii_strcasecmp/
      6be0bb42
    • 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
    • Zbigniew Chyla's avatar
      New · 1d7891b3
      Zbigniew Chyla authored
      
      2002-08-05  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/plugin-service.h
      	(PluginServiceUICallbacks, GNM_PLUGIN_SERVICE_UI_TYPE,
      	GNM_PLUGIN_SERVICE_UI, GNM_IS_PLUGIN_SERVICE_UI): New
      
      	* src/plugin-service.c
      	(PluginServiceUIClass, struct _PluginServiceUI, plugin_service_ui_init,
      	plugin_service_ui_finalize, plugin_service_ui_read_xml, ui_verb_fn,
      	plugin_service_ui_activate, plugin_service_ui_deactivate,
      	plugin_service_ui_class_init): Implementation of the "ui" service.
      	(service_types): Added "ui".
      
      	* src/plugin-loader.h
      	(struct _GnumericPluginLoaderClass):
      	Added load_service_ui and load_service_ui methods.
      
      	* src/plugin-loader.c
      	(gnumeric_plugin_loader_unload_service_ui_real,
      	gnumeric_plugin_loader_class_init,
      	gnumeric_plugin_loader_load_service,
      	gnumeric_plugin_loader_unload_service): Added support for ui service
      
      	* plugin-loader-module.h
      	(ModulePluginUIVerbInfo): New
      
      	* src/plugin-loader-module.c
      	gnumeric_plugin_loader_module_class_init
      	ServiceLoaderDataUI
      	gnumeric_plugin_loader_module_func_exec_verb
      	gnumeric_plugin_loader_module_load_service_ui
      	gnumeric_plugin_loader_module_unload_service_ui
      
      	* src/workbook-control-gui-priv.h
      	(struct _WorkbookControlGUI): Added custom_ui_components field
      
      	* src/workbook-control-gui.h
      	(register_xml_ui, unregister_xml_ui): New
      
      	* src/workbook-control-gui.c
      	(struct _CustomXmlUI, registered_xml_uis,
      	wbcg_add_custom_ui, wbcg_remove_custom_ui,
      	add_ui_to_workbook_controls, remove_ui_from_workbook_controls,
      	register_xml_ui, unregister_xml_ui): New
      	(workbook_control_gui_init): Initialize wbcg->custom_ui_components
      	hash table, add all registered uis to the workbook control.
      	(wbcg_finalize): Destroy wbcg->custom_ui_components
      1d7891b3
  12. 06 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      Put information about PLUGIN_ALWAYS_LOAD in the comment. · a265fecb
      Zbigniew Chyla authored
      
      2002-08-06  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/plugin.h: Put information about PLUGIN_ALWAYS_LOAD in the comment.
      
      	* src/plugin-service.c (plugin_service_activate):
      	Load before activating if PLUGIN_ALWAYS_LOAD is defined.
      
      	* src/plugin-loader.c
      	(gnumeric_plugin_loader_load_base, gnumeric_plugin_loader_unload_base):
      	Pass sensible level value to plugin_message().
      
      	* src/plugin.c
      	(plugin_info_read, plugins_init, plugins_shutdown): ditto
      a265fecb
  13. 04 Aug, 2002 2 commits
    • Zbigniew Chyla's avatar
      Converted g_string_[s]list_copy to more general functions, g_[s]list_map. · d763e157
      Zbigniew Chyla authored
      
      2002-07-27  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/gutils.c:
      	Converted g_string_[s]list_copy to more general functions,
      	g_[s]list_map.
      
      	* src/gutils.h:
      	(g_[s]list_map): New
      	(g_[s]tring_list_copy): Converted to macro (using g_[s]list_map)
      	(g_list_to_vector, g_list_to_vector_custom, g_vector_free_custom,
      	g_slist_to_vector):
      	Removed
      	(GNM_[S]LIST_SORT): New members of GNM_[S]LIST_* family.
      	(GNM_SIZEOF_ARRAY): New macro
      
      	* src/error-info.h:
      	(GNM_INIT_RET_ERROR_INFO):
      	New macro, I plan to add some extra code here.
      
      	* src/plugin-service.[ch]
      	PluginService and PluginService* are GObjects now
      	(with three virtual methods: read_xml, activate, deactivate).
      	All implementation details are hidden. Every PluginService* exposes
      	only service-specific PluginService*Callbacks struct (returned by
      	plugin_service_get_cbs function) for use by plugin loaders.
      	Placed "id" attribute in PluginService struct instead of
      	duplicating it in other structs.
      	(plugin_service_{get,set,clear}_loader_data): Removed
      	s/plugin_service_read/plugin_service_new/
      
      	* src/plugin.c
      	Adjusted to plugin-service.h changes
      	(struct _GnmPlugin): Replace vectors with SLists.
      	(plugins_shutdown): Destroy all plugins (g_object_unref).
      	Use GNM_INIT_RET_ERROR_INFO everywhere.
      
      	* src/plugin-loader.c
      	(gnumeric_plugin_loader_unload_service_general_real,
      	gnumeric_plugin_loader_unload_service_file_opener_real,
      	gnumeric_plugin_loader_unload_service_file_saver_real,
      	gnumeric_plugin_loader_unload_service_function_group_real,
      	gnumeric_plugin_loader_unload_service_plugin_loader_real):
      	Set callbacks using plugin_service_get_cbs and PluginService*Callbacks
      	structs, instead of settings PluginService* fields directly (they are
      	private now).
      	(gnumeric_plugin_loader_load_service,
      	gnumeric_plugin_loader_unload_service)
      	Use RTTI to select (un)loading method.
      	(gnumeric_plugin_loader_set_attributes,
      	gnumeric_plugin_loader_load_base,
      	gnumeric_plugin_loader_unload_base):
      	Use GNM_INIT_RET_ERROR_INFO macro everywhere.
      
      	* src/plugin-loader-module.c
      	(gnumeric_plugin_loader_module_set_attributes,
      	gnumeric_plugin_loader_module_load_base,
      	gnumeric_plugin_loader_module_unload_base,
      	gnumeric_plugin_loader_module_info_get_extra_info_list,
      	gnumeric_plugin_loader_module_destroy,
      	gnumeric_plugin_loader_module_func_init,
      	gnumeric_plugin_loader_module_func_clean,
      	gnumeric_plugin_loader_module_load_service_general,
      	gnumeric_plugin_loader_module_func_file_probe,
      	gnumeric_plugin_loader_module_func_file_open,
      	gnumeric_plugin_loader_module_load_service_file_opener,
      	gnumeric_plugin_loader_module_func_file_save,
      	gnumeric_plugin_loader_module_load_service_file_saver,
      	gnumeric_plugin_loader_module_func_get_full_function_info,
      	gnumeric_plugin_loader_module_load_service_function_group,
      	gnumeric_plugin_loader_module_unload_service_function_group,
      	gnumeric_plugin_loader_module_func_get_loader_type,
      	gnumeric_plugin_loader_module_load_service_plugin_loader):
      	Use g_object data instead of plugin_service_[gs]et_loader_data.
      	Set callbacks using plugin_service_get_cbs and PluginService*Callbacks
      	structs, instead of settings PluginService* fields directly (they are
      	private now).
      	"has_probe" field has been removed, always get a pointer to
          *_file_probe pointer function if it's available.
      	Less assertions, use GNM_INIT_RET_ERROR_INFO macro everywhere.
      d763e157
    • Zbigniew Chyla's avatar
      Added typedefs: GnmPlugin, PluginService, GnumericPluginLoader. · ce03576b
      Zbigniew Chyla authored
      
      2002-07-22  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/gnumeric.h:
      	Added typedefs: GnmPlugin, PluginService, GnumericPluginLoader.
      
      	* src/gutils.h: New macros: GNM_LIST_FOREACH, GNM_LIST_PREPEND,
      	GNM_LIST_REMOVE, GNM_LIST_CONCAT, GNM_LIST_REVERSE,
      	GNM_SLIST_FOREACH, GNM_SLIST_PREPEND,
      	GNM_SLIST_REMOVE, GNM_SLIST_CONCAT, GNM_SLIST_REVERSE.
      
      	* src/gutils.c: Fixed typo in comment.
      
      	* src/plugin-loader-module.h: s/PluginInfo/GnmPlugin/
      
      	* src/plugin-loader-module.c:
      	(ServiceLoaderDataGeneral): Removed module_func_can_deactivate.
      	(gnumeric_plugin_loader_module_func_can_deactivate): Removed
      	(gnumeric_plugin_loader_module_set_attributes):
      	Adjusted to plugin-loader.c (read attributes from GHashTable).
      	s/..._load/..._load_base/
      	s/..._unload/..._unload_base/
      	Use new macros from gutils.h.
      
      	* src/plugin-loader.[ch]
      	s/..._load/..._load_base/
      	s/..._unload/..._unload_base/
      	s/is_loaded/is_base_loaded/
      	s/PluginInfo/GnmPlugin/
      	(GnumericPluginLoaderClass::set_attributes,
      	gnumeric_plugin_loader_set_attributes: Changed signature, read
      	attributes from GHashTable, not from two lists.
      	(gnumeric_plugin_loader_load_base): Ignore dependencies, now
      	GnmPlugin object is responsible for this.
      	(gnumeric_plugin_loader_unload_base): Ditto
      	(gnumeric_plugin_loader_load_service): Don't load base part of the
      	plugin, plugin takes care of this.
      
      	* src/plugin-service.[ch]:
      	s/PluginInfo/GnmPlugin/
      	(PluginServiceGeneral::plugin_func_can_deactivate,
      	plugin_service_can_deactivate,
      	plugin_service_*_can_deactivate,
      	plugin_services_data_new, plugin_services_data_free,
      	PluginServicesData, plugin_service_can_deactivate): Removed.
      	(plugin_service_plugin_loader_initialize): Use plugins_register_loader,
      	passing loader id as "plugin-id:loader-service-id".
      	(plugin_service_plugin_loader_cleanup): Ditto, plugins_unregister_loader.
      	Use new macros from gutils.h.
      
      	* src/plugin.[ch]
      	Cut down the number of public functions by 20.
      	Documented most public functions.
      	Made PluginInfo a GObject, renamed to GnmPlugin.
      	GnmPlugin sends signals on state change (active, loaded,
      	can_deactivate).
      	Removed _peek functions, no need for two types of getters.
      	Remember "plugin file state" only for plugins from previous Gnumeric
      	session (so that the list doesn't get bigger with every Gnumeric
      	version installing .../gnumeric/version/plugins/... directories).
      	Don't save known plugins separately, use the above list.
      	Store available plugins in hash table for faster lookups by id.
      	Ditto for loaders.
      	Removed strange *_init, *_shutdown functions, now everything is in
      	plugins_init and plugins_shutdown.
      	Automatically add plugin containing loader to the list of plugin
      	dependencies (it's easy because loader id is now:
      	plugin_id + ":" + service_id).
      	Detect cyclic dependencies during activation/deactivation.
      	Very simple method for determining whether plugin can be deactivated
      	- use "plugin usage counter" (increased by dependent plugins or plugin
      	services if something keeps references to plugin structures).
      	Validate plugin id, it may include only letters, digits and underscore.
      	Removed ugly enums/structs (PluginDependencyType,
      	PluginLoaderStaticInfo, PluginLoaderTypeInfo).
      	Other simplifications.
      	No new features.
      	Use new macros from gutils.h (it looks so much better).
      ce03576b
  14. 12 Jul, 2002 1 commit
    • Jody Goldberg's avatar
      remove pretend feature that supported regexp. Only shell paterns are · 171e3e33
      Jody Goldberg authored
      
      2002-07-12  Jody Goldberg <jody@gnome.org>
      
      	* src/plugin-service.c (gnum_plugin_file_opener_probe) : remove
      	  pretend feature that supported regexp.  Only shell paterns are
      	  supported now.
      	(plugin_service_file_opener_read) : ditto.
      
      	* src/io-context.c (file_io_progress_set) : delete.
      	(file_io_progress_update) : ditto.
      	(memory_io_progress_set) : ditto.
      	(memory_io_progress_update) : ditto.
      
      	* src/gnumeric-gconf.c (gnm_gconf_get_horizontal_dpi) : dummy out for
      	  now until we add a cache.
      	(gnm_gconf_get_vertical_dpi) : ditto.
      
      2002-07-10  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_preparse) : stf_parse_convert_to_unix now returns the
      	  length.
      	* src/stf.c (stf_read_default_probe) : handle short files.
      
      2002-07-10  Jody Goldberg <jody@gnome.org>
      
      	* src/gui-clipboard.c (x_clipboard_to_cell_region) :
      	  stf_parse_is_valid_data now takes a length.
      	* src/stf.c (stf_read_default_probe) : ditto.
      	(stf_preparse) : ditto.
      	* src/stf-parse.c (stf_parse_is_valid_data) : Use the supplied buffer
      	  length, not a 0 terminator.
      
      2002-07-10  Jody Goldberg <jody@gnome.org>
      
      	* configure.in : enable quatro pro plugin
      	* plugins/Makefile.am : ditto
      171e3e33
  15. 08 Jul, 2002 1 commit
    • Jody Goldberg's avatar
      Add GnmHLink. · d6271c90
      Jody Goldberg authored
      
      2002-07-07  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric.h : Add GnmHLink.
      
      	* src/item-grid.c : include hlink.h
      	(item_grid_event) : a button release on an h-link activates it.
      
      	* src/Makefile.am : Add hlink.[ch]
      
      	* src/sheet.h : Lets take a break from architecture and add something
      	  simple like hyper-links.
      d6271c90
  16. 12 Jun, 2002 1 commit
    • Rodrigo Moya's avatar
      s/IS_GSF/GSF_IS · 40205c72
      Rodrigo Moya authored
      2002-06-12  Rodrigo Moya <rodrigo@gnome-db.org>
      
      	* src/file.c:
      	* src/plugin-service.c: s/IS_GSF/GSF_IS
      40205c72
  17. 10 Jun, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Fix up includes to make the bonobo version build. · 6bc73694
      Jon Kåre Hellan authored
      * src/file.c: Fix up includes to make the bonobo version build.
      
      * src/plugin-service.c: Ditto.
      
      * src/gui-file.c (ask_for_file_saver, gui_file_save_to_stream):
      Disable for now to make the bonobo version build.
      
      * src/workbook-control-gui.c (cb_file_send): Ditto.
      6bc73694
  18. 08 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      libgsf has landed. · 7c1e9d5c
      Jody Goldberg authored
      
      libgsf has landed.
      
      2002-06-07  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_open) : convert to libgsf.
      
      	* src/stf.c (stf_open_and_read) : convert to libgsf.
      	(stf_preparse) : ditto.
      	(stf_read_workbook) : ditto.
      	(stf_read_workbook_auto_csvtab) : ditto.
      	(stf_read_default_probe) : ditto.
      
      	* src/stf-parse.c (stf_parse_is_valid_data) : actually disable the
      	  wide char support if it is not available.
      
      	* src/gutils.c (gnm_extension_pointer) : copied from libgnome to
      	  decrease our dependence on it.
      
      	* src/gui-util.c (gnumeric_editable_enters) : modernize a bit.
      
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : suppress
      	  warning.
      
      	* src/file.c (gnum_file_opener_probe_real) : Use libgsf.
      	(gnum_file_opener_open_real) : ditto.
      	(gnum_file_opener_probe) : ditto.
      	(gnum_file_opener_open) : ditto.
      	(gnum_file_saver_save_to_stream_real) : disable, we can move this out
      	  of here when GsfOutput comes online.
      
      	* src/collect.c (string_range_function) : suppress warning.
      
      	* src/cell.c (cell_set_array_formula) : Adjust to the signature change
      	  for gnm_expr_new_array.
      	* src/sheet-autofill.c (autofill_cell) : ditto.
      
      2002-06-07  Jody Goldberg <jody@gnome.org>
      
      	* configure.in : require libgsf.
      
      	* src/xml-io.c (xml_check_version) : move the sanity checking here.
      	(gnumeric_xml_read_workbook) : rather than here.  Support GsfInput.
      	(xml_probe) : and here.
      	(gnumeric_xml_write_workbook_to_stream) : delete.
      
      2002-05-31  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : actually
      	  return the result.
      7c1e9d5c
  19. 15 Apr, 2002 1 commit
    • Andreas J. Guelzow's avatar
      use get/set methods of gnumeric-gconf.h switch from gnome-config to gconf · 7d3c6bfa
      Andreas J. Guelzow authored
      2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-function-select.c : use get/set methods of gnumeric-gconf.h
      	* dialog-plugin-manager.c : switch from gnome-config to gconf
      	* dialog-preferences.c : add include
      
      2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* schemas/gnumeric-dialogs.schemas : new plugin schemas
      	* src/Makefile.am : add src/gnumeric-gconf.c and src/gnumeric-gconf-priv.h
      	* src/application.c : use get/set methods from src/gnumeric-gconf.h
      	* src/commands.c : change include
      	* src/error-info.c : switch to GSLists from GLists
      	* src/error-info.h : switch to GSLists from GLists
      	* src/gnumeric-gconf.h : new get/set methods
      	* src/gnumeric-gconf.c : new
      	* src/gnumeric-gconf-priv.h : formerly src/gnumeric-gconf.h
      	* src/gui-util.c : switch to GSLists from GLists
      	* src/gutils.h : some new g_slist functions
      	* src/gutils.c : some new g_slist functions
      	* src/libgnumeric.c : use get/set methods from src/gnumeric-gconf.h
      	* src/plugin-loader-module.c : switch to GSLists from GLists
      	* src/plugin-loader.c : switch to GSLists from GLists
      	* src/plugin-loader.h : switch to GSLists from GLists
      	* src/plugin-service.c : switch to GSLists from GLists
      	* src/plugin.c : switch to GSLists from GLists and use gconf
      	* src/plugin.h : switch to GSLists from GLists
      	* src/workbook-control-gui.c : use get/set methods from src/gnumeric-gconf.h
      7d3c6bfa
  20. 09 Mar, 2002 2 commits
    • Jon K Hellan's avatar
      Dump function definitions from plugins, this time the easy way which even · 971f7c82
      Jon K Hellan authored
      2002-03-09  Jon K Hellan  <hellan@acm.org>
      
      	Dump function definitions from plugins, this time the easy way
      	which even works.
      
      	* src/func.c (copy_hash_table_to_ptr_array): Copy also when fd->help
      	is NULL.
      	(function_dump_defs): Load function definition before dumping name
      	only function.
      
      	* src/main.c (main): Drop force load argument to plugins_init.
      
      	* src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
      	plugin_db_activate_saved_active_plugins, plugins_init): Revert to
      	pre 2002-03-08 version. We apologize for the inconvenience.
      	However, error reporting by means of gnumeric_error_error_info
      	remains.
      
      	* src/plugin-service.[ch]
      	(plugin_service_function_group_initialize): Revert to pre
      	2002-03-08 version.
      	(plugin_service_activate): Ditto. Except that we don't reinstate
      	#ifdef PLUGIN_ALWAYS_LOAD. That branch is hopelessly bitrotted.
      
      	* src/plugin.h: Drop #undef PLUGIN_ALWAYS_LOAD.
      
      2002-03-09  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-plugin-manager.c
      	(cb_pm_button_activate_plugin_clicked,
      	cb_pm_button_activate_all_clicked): Revert to pre 2002-03-08
      	version. We apologize for the inconvenience.
      971f7c82
    • Jody Goldberg's avatar
      missed files · 606c7646
      Jody Goldberg authored
      606c7646
  21. 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
  22. 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
  23. 21 Feb, 2002 1 commit
  24. 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
  25. 11 Feb, 2002 1 commit
  26. 06 Feb, 2002 1 commit
    • Michael Meeks's avatar
      don't setup the item container. · e886f3af
      Michael Meeks authored
      2002-02-06  Michael Meeks  <michael@ximian.com>
      
      	* src/workbook.c (workbook_bonobo_setup): don't
      	setup the item container.
      
      	* src/gnumeric-graph.c: porting action.
      	(bonobo_activation_exception_id): kill.
      
      	* src/corba-args.c (gnumeric_arg_parse): upd.
      
      	* src/bonobo-io.c: porting action.
      
      	* src/sheet-object-bonobo.c: porting action.
      e886f3af
  27. 23 Jan, 2002 1 commit
  28. 14 Jan, 2002 1 commit
  29. 06 Jan, 2002 1 commit
  30. 21 Dec, 2001 1 commit
  31. 12 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      const. ditto. ditto. · b33039ae
      Jody Goldberg authored
      2001-12-12  Jody Goldberg <jody@gnome.org>
      
      	* src/plugin-service.c (gnum_plugin_file_opener_probe) : const.
      	* src/workbook-view.c (wb_view_attach_control) : ditto.
      	* src/workbook.c (workbook_attach_view) : ditto.
      b33039ae
  32. 06 Sep, 2001 1 commit
  33. 26 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added "overwrite_files" field. · e06c7615
      Chyla Zbigniew authored
      * src/file-priv.h (struct _GnumFileSaver):
      Added "overwrite_files" field.
      
      * src/file.h (gnum_file_saver_set_overwrite_files): New function.
      
      * src/file.c
      (gnum_file_saver_init): Initialize overwrite_files (set to TRUE).
      (gnum_file_saver_save): Report an error and abort saving if file with
      given name already exists and overwrite_files == FALSE.
      
      * src/plugin-service.h (struct _PluginServiceFileSaver):
      Added "overwrite_files" field.
      
      * src/plugin-service.c (plugin_service_file_saver_read,
      gnum_plugin_file_saver_new): Handle overwrite_files flag.
      
      * src/xml-io.c (gnumeric_xml_read_workbook):
      Use fstat to get file size. Corrected error message.
      e06c7615
  34. 21 Aug, 2001 1 commit
    • Chyla Zbigniew's avatar
      Get opener/saver description from translated content of <description> node · 26cd4ffc
      Chyla Zbigniew authored
      * src/plugin-service.c
      (plugin_service_file_opener_read, plugin_service_file_saver_read):
      Get opener/saver description from translated content of <description>
      node inside <information> not from <information>'s attributes.
      (plugin_service_function_group_read):
      Get category name (both translated and untranslated) from <category>'s
      content, not from "name" attribute.
      
      * src/plugin.c
      (plugin_info_read):
      Get plugin name and description from translated content of <name> and
      <description> nodes inside <information>, not from <information>'s
      attributes.
      (plugin_loader_get_type_by_id, plugin_loader_is_available_by_id,
      plugin_db_activate_plugin_list, plugin_db_deactivate_plugin_list,
      plugin_db_get_plugin_info_by_plugin_id,
      plugin_db_update_saved_active_plugin_id_list):
      Removed unnecessary casts.
      
      * src/plugin-loader-module.c (gnumeric_plugin_loader_module_load,
      gnumeric_plugin_loader_module_unload): Put (possibly long) g_module
      error string in ErrorInfo details instead of appending it to our
      error message.
      26cd4ffc