1. 31 Mar, 2001 7 commits
    • Morten Welinder's avatar
      Leak plugs. · 19e76bf9
      Morten Welinder authored
      19e76bf9
    • Almer S. Tigelaar's avatar
      Update to list bug 52240 · 184c44cf
      Almer S. Tigelaar authored
      2001-03-31 Almer S. Tigelaar <almer@gnome.org>
      
      	* BUGS: Update to list bug 52240
      184c44cf
    • Chyla Zbigniew's avatar
      Added *.lo and *.la. · 752c69c6
      Chyla Zbigniew authored
      
      * .cvsignore: Added *.lo and *.la.
      752c69c6
    • Chyla Zbigniew's avatar
      Fixed typo. · c6ac88e6
      Chyla Zbigniew authored
      
      * py-gnumeric.c (destroy_python_interpreter): Fixed typo.
      c6ac88e6
    • Chyla Zbigniew's avatar
      Patch from drk@sgi.com · b36b6612
      Chyla Zbigniew authored
      
      Patch from drk@sgi.com
      
      * py-gnumeric.c: Added function declarations for object methods
      to avoid declaring forward references for an unsized PyMethodDef
      arrays.
      b36b6612
    • Chyla Zbigniew's avatar
      Replaced PLUGIN_MESSAGE macro with plugin_message function to avoid · f9ad8cb6
      Chyla Zbigniew authored
      
      * src/plugin.[ch]: Replaced PLUGIN_MESSAGE macro with plugin_message
      function to avoid portability problems (some compilers don't support
      vararg macros), added "level" argument.
      
      * src/plugin-loader.c (gnumeric_plugin_loader_load,
      gnumeric_plugin_loader_unload): Adjusted to plugin.h.
      f9ad8cb6
    • Jody Goldberg's avatar
      Some improvements to blip loading. · 186ac28d
      Jody Goldberg authored
      and some tuning that greatly improves startup time.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-container.c (ms_container_init) : Take a parent container.
      	(ms_container_finalize) : handle NULL blips smoothly.
      	(ms_container_get_blip) : check the container if we are empty.
      
      	* ms-escher.c (ms_escher_read_Blip) : always register a blip, even if
      	  it is NULL, otherwise the index gets confused.  Move the
      	  registration here.
      	(ms_escher_blip_new) : from here.
      	(ms_escher_read_ClientData) : replace blips we can't understand with
      	  rectangles.
      
      	* ms-chart.c (ms_excel_chart) : Pass in the charts container.
      
      	* ms-excel-read.c (ms_excel_workbook_new) : workbook have no parents.
      	(ms_excel_sheet_new) : Sheets are contained by workbooks.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (wbcg_sheet_remove_all) : clear the
      	  notebook BEFORE deleting it to avoid updating during destuction.
      
      	* src/cellspan.c (cell_calc_span) : Cells in hidden columns can not
      	  have spans.
      
      	* src/file.c (file_finish_load) : no need to manually respan this will
      	  happen via sheet_update.  This gives us a nice speed up.
      
      	* src/sheet.c (sheet_cell_calc_span) : don't reregister spans that
      	  have not changed.
      	(sheet_new) : init all flags to true to ensure things get updated.
      186ac28d
  2. 30 Mar, 2001 7 commits
    • Morten Welinder's avatar
      Plug leak. · 3dd3f587
      Morten Welinder authored
      2001-03-30  Morten Welinder  <terra@diku.dk>
      
      	* ms-escher.c (ms_escher_read_container): Plug leak.
      3dd3f587
    • Morten Welinder's avatar
      Spleling. · 411b82c8
      Morten Welinder authored
      411b82c8
    • Jody Goldberg's avatar
      remove style_debug option tha was unused. It was only mostly unused :-) · bd9663e4
      Jody Goldberg authored
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/main.c : remove style_debug option tha was unused.
      	* src/mstyle.c (mstyle_elements_equal) : It was only mostly unused :-)
      
      	* src/workbook-control-gui.c (wbcg_menu_state_sheet_count) : fix.
      
      	* src/item-bar.c (is_pointer_on_division) : robustify in the face of
      	  clicking out of bounds.
      	(item_bar_event) : ditto, also simplfy a bit.
      bd9663e4
    • Jody Goldberg's avatar
      A bunch of little fixes that get us closer to parsing the XL2k expense report · 221a65d2
      Jody Goldberg authored
      template.  There is a still a nagging problem with odd continue records in
      escher streams but they seem rare enough that we can ignore until a more
      illuminating test case shows up.
      
      2001-03-30  Jody Goldberg <jgoldberg@home.com>
      
      	* boot.c (excel_save) : clarify message.
      
      2001-03-29  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-escher.c (ms_escher_read_Blip) : Fix leak plug.
      
      2001-03-29  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-obj.c (ms_obj_read_biff8_obj) : It seems certain that the MS docs
      	  are wrong about list boxes.  I hope they don't do the same thing for
      	  other records too.
      
      	* ms-escher.c : s/ms_excel_read_debug/ms_excel_escher_debug/
      	(ms_escher_read_OPT) : Add missing OPT records and cleanup docs.
      	(ms_escher_read_BSE) : Document the record size and don't attempt to
      	  treat this as a container if its content is of size 0.
      
      2001-03-28  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-obj.c (ms_read_TXO) : Fix the minor memory overrun morton found.
      
      2001-03-18  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-util.c (init_xl_font_widths) : recalculate the size of Geneva
      	  for the default case of Geneva not being available.
      221a65d2
    • Jody Goldberg's avatar
      simple updates · bdacb10e
      Jody Goldberg authored
      bdacb10e
    • Chyla Zbigniew's avatar
      Commented out PLUGIN_DEBUG and PLUGIN_ALWAYS_LOAD macros. · a9017f45
      Chyla Zbigniew authored
      
      Commented out PLUGIN_DEBUG and PLUGIN_ALWAYS_LOAD macros.
      a9017f45
    • Chyla Zbigniew's avatar
      Commented out PLUGIN_DEBUG and PLUGIN_ALWAYS_LOAD macros. · dfd29707
      Chyla Zbigniew authored
      
      * src/plugin.h: Commented out PLUGIN_DEBUG and PLUGIN_ALWAYS_LOAD
      macros.
      dfd29707
  3. 29 Mar, 2001 4 commits
  4. 28 Mar, 2001 2 commits
  5. 27 Mar, 2001 4 commits
    • Morten Welinder's avatar
      Plug leak. · cc809e44
      Morten Welinder authored
      2001-03-27  Morten Welinder  <terra@diku.dk>
      
      	* ms-escher.c (ms_escher_read_Blip): Plug leak.
      cc809e44
    • Morten Welinder's avatar
      (cmd_search_replace_undo, cmd_search_replace_redo): Fix for · 9c183f15
      Morten Welinder authored
       	missing cells with comments.
      9c183f15
    • Morten Welinder's avatar
      New function, extracted from cmd_search_replace_do. · 9afef623
      Morten Welinder authored
      2001-03-26  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.c (workbook_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/sheet.c (sheet_cells): New function, extracted from
       	cmd_search_replace_do.
      
      	* src/cell.c (cell_has_comment_pos): New function for those cells
       	that aren't really there.
      
      	* src/commands.c (cmd_search_replace_do): Use workbook_cells and
       	sheet_cells.
      	(cmd_search_replace_do_cell): Change to take position instead of
       	cell.  Handle missing cells without crashing.
      9afef623
    • Fatih Demir's avatar
      Update · 40e1dcac
      Fatih Demir authored
      40e1dcac
  6. 25 Mar, 2001 2 commits
  7. 23 Mar, 2001 3 commits
  8. 22 Mar, 2001 1 commit
  9. 21 Mar, 2001 2 commits
  10. 20 Mar, 2001 5 commits
    • Chyla Zbigniew's avatar
      Moved XL support from Gnumeric binary into real plugin. · aec1f2bf
      Chyla Zbigniew authored
      
      Moved XL support from Gnumeric binary into real plugin.
      
      * src/Makefile.am
      (gnumeric_libs): Removed ../plugins/excel/libexcel.a
      
      * src/main.c:
      Removed:
      - include "../plugins/excel/boot.h"
      - xxx_debug variables
      - (gnumeric_popt_options) excel debugging options
      - excel_init() and excel_shutdown() calls
      aec1f2bf
    • Chyla Zbigniew's avatar
      Added cast to avoid warning. · 797ee5f4
      Chyla Zbigniew authored
      
      * plugins/gb/plugin.c
      (plugin_init_general): Added cast to avoid warning.
      
      * plugins/gb/plugin.xml:
      Added dependency on excel plugin.
      797ee5f4
    • Chyla Zbigniew's avatar
      Building excel plugin as shared library, added plugin.xml. · 098d1f56
      Chyla Zbigniew authored
      
      * Makefile.am:
      Building excel plugin as shared library, added plugin.xml.
      
      * boot.[ch]:
      xxx_debug variables from src/main.c moved here.
      Converted to real plugin with file_opener and file_saver services.
      
      * plugin.xml: New file.
      
      * gnumeric/plugins/excel/excel.h, plugins/excel/ms-chart.c,
      plugins/excel/ms-escher.c, plugins/excel/ms-excel-read.c,
      plugins/excel/ms-excel-read.h, plugins/excel/ms-excel-util.c,
      plugins/excel/ms-excel-write.c, plugins/excel/ms-excel-write.h,
      plugins/excel/ms-formula-read.c, plugins/excel/ms-formula-write.c,
      plugins/excel/ms-obj.c:
      Adjusted function signatures, don't return TRUE/FALSE if using
      IOContext (we don't need boolean value as IOContext now sets
      "error_occurred" flag).
      098d1f56
    • Chyla Zbigniew's avatar
      Added support for plugin dependencies + some fixes. · 99ad3568
      Chyla Zbigniew authored
      
      Added support for plugin dependencies + some fixes.
      
      * src/gutils.h (g_list_to_vector, g_vector_free_custom):
      New macros. (used macros instead of functions to avoid casting and
      pointer size problems - ANSI C doesn't guarantee that
      sizeof (void *) == sizeof (something_else *).
      
      * src/plugin-loader.c
      (gnumeric_plugin_loader_load): Load required plugin dependencies
      before the plugin itself, increment n_deps for every loaded
      dependency (by calling plugin_dependencies_inc_dependants).
      (gnumeric_plugin_loader_unload): New function.
      (gnumeric_plugin_loader_load_service): Increment number of loaded
      services if loaded succesfully.
      (gnumeric_plugin_loader_unload_service): Decrement number of loaded
      services if unloaded succesfully, unload plugin if it reaches zero.
      
      * src/plugin-loader.h
      (struct _GnumericPluginLoader): Added n_loaded_services.
      (gnumeric_plugin_loader_unload): New function.
      
      * src/plugin-service.c:
      (plugin_service_file_opener_open_func,
      plugin_service_file_saver_save_func):
      Used gnumeric_io_error_occurred (and gnumeric_io_clear_error) when
      checking for error.
      
      * src/plugin.c:
      (plugins_active_by_default): Array containing ids of "standard"
      plugins. These will be active by default.
      (struct _PluginDependency): New struct.
      (struct _PluginInfo): Added dependencies_v, d_deps. Replaced
      service_list with services_v (vector in place of list).
      (plugin_info_get_config_prefix, plugin_dependency_get_plugin_info,
      plugin_info_read_dependency_list, plugin_dependency_free,
      plugin_inc_dependants, plugin_dec_dependants,
      plugin_dependencies_inc_dependants,
      plugin_dependencies_dec_dependants,
      plugin_load_dependencies):
      New functions.
      (plugin_info_provides_loader_by_type_str, plugin_info_free):
      Adjusted to service_list -> services_v change.
      (plugin_info_read): Read (optional) dependencies, adjusted to
      service_list -> services_v change.
      (activate_plugin):
      Activate required dependencies before the plugin itself.
      Increment n_deps for every activated dependency (by calling
      plugin_dependencies_inc_dependants).
      Adjusted to service_list -> services_v change.
      (deactivate_plugin):
      Decrement n_deps for every activated dependency (by calling
      plugin_dependencies_dec_dependants).
      Adjusted to service_list -> services_v change.
      (plugin_can_deactivate):
      Return FALSE if any of n_deps > 0.
      Adjusted to service_list -> services_v change.
      (plugin_list_sort_by_dependency): Removed.
      (plugin_db_activate_plugin_list): Removed sorting.
      (plugin_db_init): Always activate new plugin if it's defined in
      plugins_active_by_default array.
      
      * src/plugin.h:
      (PluginDependencyType): New enum.
      (plugin_load_dependencies,
      plugin_inc_dependants, plugin_dec_dependants,
      plugin_dependencies_inc_dependants,
      plugin_dependencies_dec_dependants,
      plugin_info_get_config_prefix): New functions.
      99ad3568
    • Chyla Zbigniew's avatar
      Added error_occurred field. · b0421f0d
      Chyla Zbigniew authored
      
      * src/io-context-priv.h:
      (struct _IOContext): Added error_occurred field.
      
      * src/io-context.c
      (gnumeric_io_context_new): Set error_occurred to FALSE by default.
      (gnumeric_io_error_system, gnumeric_io_error_read,
      gnumeric_io_error_save): Set error_occured to TRUE.
      (gnumeric_io_error_unknown, gnumeric_io_clear_error,
      gnumeric_io_error_occurred): New functions.
      
      * src/io-context.h
      (gnumeric_io_error_unknown, gnumeric_io_clear_error,
      gnumeric_io_error_occurred): New functions.
      b0421f0d
  11. 18 Mar, 2001 3 commits