1. 08 Jan, 2002 1 commit
  2. 04 Jan, 2002 1 commit
  3. 21 Dec, 2001 1 commit
  4. 07 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      new. (sheet_colrow_insert_finish) : new. (sheet_colrow_delete_finish) : · d5d25622
      Jody Goldberg authored
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_set_collapse) : new.
      	(sheet_colrow_insert_finish) : new.
      	(sheet_colrow_delete_finish) : new.
      	(sheet_{col,row}_{ins,del} : use them here, we shoulw now correctly
      	  handle collapse states and gutters when ins/del cols/row.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_colrow_gutter) : change signature and toggle the
      	  resize flag if necessary.
      	(sheet_update_only_grid) : handle the resize and
      	  recompute_max_{col,row}_group flags.
      
      	* src/colrow.c (colrow_set_states) : use simplified
      	  sheet_colrow_gutter signature.
      
      2001-12-06  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-cmd-format.c (sheet_dialog_set_row_height) : const.
      
      	* src/workbook-object-toolbar.c : disable some code that is not ready
      	  for release.
      
      	* src/sheet.c (sheet_colrow_insdel_finish) : new.
      	(sheet_{col,row}_{ins,del} : use it here, and adjust the arguments to
      	  include optional state to fill in the new cols/rows.
      	(sheet_colrow_fit_gutter) : simplify.
      	(sheet_colrow_group_ungroup) : ditto.
      	(sheet_colrow_fetch) : new utility.
      	(sheet_colrow_get_info) : ditto.
      
      	* src/sheet-control-gui.c (scg_setup_group_buttons) : new.
      	(scg_resize) : use it here.
      	(sheet_control_gui_new) : handle the layout for the group buttons.
      
      	* src/print.c (compute_group) : const.
      
      	* src/item-grid.c (item_grid_draw) : remove pointless use of
      	  ColRowInfo::pos because I want to remove that eventually.
      	* src/print-cell.c (print_cell_range) : ditto.
      
      	* src/item-bar.c (item_bar_normal_font) : new.
      	(item_bar_indent) : new.
      	(item_bar_draw) : draw the top line as black, to match other buttons,
      	 fix its length.
      
      	* src/history.c (history_menu_locate_separator) : sync with manu
      	  changes.
      
      	* src/gnumeric.h
      	(ColRowStateGroup) : rename from ColRowSizeList.
      	(ColRowStateList) : rename from ColRowRLESizeList.
      
      	* src/gnumeric-canvas.c (gnm_canvas_find_col) : const.
      
      	* src/complete-sheet.c (complete_sheet_search_iteration) : const.
      
      	* src/commands.c (cmd_ins_del_colrow_undo) : pass the states into the
      	  sheet_ routines.  They will handle restoring them, and cleaning up the
      	  collapse states.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_destroy) : simplify.
      	(cmd_colrow_outline_change) : use get_info and avoid the need to check
      	  for NULL.
      	(cmd_group_undo) : simplify.
      	(cmd_group_redo) : ditto.
      	(cmd_group) : simplify.
      
      	* src/colrow.c (colrow_compute_pixels_from_pts) : move here from
      	  sheet.c
      	(colrow_compute_pts_from_pixels) : ditto.
      	(colrow_is_default) : new utility routine so that we can remove ::pos
      	  eventually.
      	(ColRowState) : new struct, will eventually replace the ColRowInfo.
      	(colrow_make_state) : new.
      	(colrow_get_states) : renamed from colrow_save_sizes and add support
      	  for outline levels and collapse state.
      	(colrow_set_sizes) : use the correct aliases for the lists.
      	(colrow_set_states) : renamed from colrow_restore_sizes and support
      	  the extra state info.
      	(colrow_restore_state_group) : rename colrow_restore_sizes_group.
      	(colrow_set_outline) : simplify.
      
      2001-12-05  Jody Goldberg <jody@gnome.org>
      
      	* src/colrow.c (colrow_state_group_destroy) : rename from
      	colrow_rle_size_list_destroy.
      
      	* src/cellspan.c (cell_calc_span) : const.
      
      2001-11-29  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-control-gui.c (scg_resize) : size the select all button.
      
      	* src/item-bar.c (item_bar_indent) : new utility.
      d5d25622
  5. 30 Nov, 2001 1 commit
  6. 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
  7. 22 Nov, 2001 1 commit
  8. 18 Nov, 2001 1 commit
  9. 06 Nov, 2001 1 commit
  10. 01 Nov, 2001 1 commit
    • Morten Welinder's avatar
      Use value_peek_string. · 738b0e77
      Morten Welinder authored
      2001-11-01  Morten Welinder  <terra@diku.dk>
      
      	* fn-lookup.c (gnumeric_address): Use value_peek_string.
      
      	* fn-math.c (gnumeric_countif, gnumeric_sumif): Use
      	value_peek_string.
      
      	* fn-eng.c (val_to_base): Make this suck somewhat less.  Still a
      	lot to do.
      
      	* fn-information.c (gnumeric_countblank): Use value_area_get_width
      	and value_area_get_height.
      
      	* fn-string.c (gnumeric_text): Use value_peek_string.
      738b0e77
  11. 25 Oct, 2001 1 commit
    • Wayne Schuller's avatar
      New canvas based header and footer preview widget. The customize · f0770524
      Wayne Schuller authored
      2001-10-21  Wayne Schuller <k_wayne@linuxpower.org>
      
      	* dialog-printer-setup.c : New canvas based header and footer preview
      	  widget. The customize header/footer widget now also uses a
      	  GnomePropertyBox for UI consistency.
      	* print.glade : Updated.
      	* hf-config.glade : Updated.
      
      2001-10-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_trim) : decrease lobotomization factor.
      
      2001-10-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (named_expr_new) : renamed from add_real, simplified
      	  interface.
      	(expr_name_add) : take and store a parse position.
      	(expr_name_create) : ditto.
      	(expr_name_destroy) : adjust to stored parsepos.
      	(expr_name_unlink) : ditto.
      	(expr_name_sheet2wb) : ditto.
      	(expr_name_init) : ditto.
      	(expr_name_as_string) : renamed from expr_name_value.
      	(expr_name_eval) : renamed from eval_expr_name.
      
      	s/eval_expr/expr_eval/
      
      	* src/expr.c (do_expr_tree_to_string) : Use value_as_string in most
      	  places.
      	* src/value-sheet.c (value_cellrange_get_as_string) : delete bogus
      	  useless arg.
      	(encode_cellref) : delete redundant.
      
      	* src/parse-util.c (cellref_name) : ICK!  XL wraps relative references
      	  that are out of bounds.
      f0770524
  12. 19 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      number_match can match non-numbers too. ditto. · 20b08bfe
      Jody Goldberg authored
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-string.c (gnumeric_value) : number_match can match non-numbers too.
      	* fn-information.c (gnumeric_n) : ditto.
      
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_node_get_int) : use strtol
      	(xml_node_get_double) : strtod.
      
      	* src/number-match.c (format_match_number) : new.
      
      	* src/expr.c (eval_expr_real) : format_match can match non-numbers now.
      
      2001-10-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (ib_draw_cell) : add some protection in case of bad
      	  fonts.
      20b08bfe
  13. 01 Oct, 2001 1 commit
  14. 11 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      store the width in pixels as well as pts. · c332d9dd
      Jody Goldberg authored
      2001-09-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (style_font_new_simple) : store the width in pixels as
      	  well as pts.
      
      	* src/print-cell.c (print_cell) : sync with the drawing code.
      c332d9dd
  15. 26 Aug, 2001 3 commits
    • Jody Goldberg's avatar
      fix typo. and generate the expression using the source cell rather than · b6548888
      Jody Goldberg authored
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-information.c (gnumeric_expression) : fix typo.
      	  and generate the expression using the source cell rather than then
      	  position with the call to expression.
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_add_vector) : merge with
      	  gnum_graph_vector_new and add intelligence to merge multiple
      	  requests for the same vector into a single vector.
      
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/position.c (cellref_get_abs_pos) : rename and adjust signature.
      
      	* src/expr.c (expr_tree_equal) : new function.
      b6548888
    • Jody Goldberg's avatar
      fix typo. and generate the expression using the source cell rather than · b61e93ac
      Jody Goldberg authored
      2001-08-26  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-information.c (gnumeric_expression) : fix typo.
      	  and generate the expression using the source cell rather than then
      	  position with the call to expression.
      b61e93ac
    • Jon Trowbridge's avatar
      Added missing whitespace in help_expression. · 121299f6
      Jon Trowbridge authored
      2001-08-26  Jon Trowbridge  <trow@gnu.org>
      
              * fn-information.c: Added missing whitespace in help_expression.
      121299f6
  16. 07 Jul, 2001 1 commit
  17. 27 Jun, 2001 1 commit
  18. 21 Jun, 2001 1 commit
    • Morten Welinder's avatar
      #include <string.h> for strlen. · fbb769d8
      Morten Welinder authored
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* src/summary.c: #include <string.h> for strlen.
      
      	* src/search.c (calculate_replacement): Warning killer.
      
      	* src/regression.c: #include <stdlib.h> for abs.
      
      	* src/plugin-loader-module.c: #include <string.h> for strcmp.
      
      	* src/formats.c (cell_format_fraction): Avoid accidental use of
       	trigraph.
      
      	* src/complete.c: #include <stdlib.h> for abort.
      
      
      2001-06-21  Morten Welinder  <terra@diku.dk>
      
      	* fn-stat.c: #include <string.h> for memset.
      
      	* fn-lookup.c: #include <stdlib.h> for abs.
      
      	* fn-information.c (translate_table): Fix accidental use of
       	trigraph.
      	#include <stdlib.h> for abs and <string.h> for strcmp.
      
      	* fn-date.c: #include <string.h> for strcmp and <stdlib.h> for
       	abort.
      fbb769d8
  19. 18 Jun, 2001 1 commit
  20. 03 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Do arg type checking here. (fn_def_new): Not here. (function_remove): Free · 5668bf4c
      Morten Welinder authored
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (function_add_args): Do arg type checking here.
      	(fn_def_new): Not here.
      	(function_remove): Free cached arg types.
      	(function_add_args): Pre-calculate arg counts and types.
      	(function_def_get_full_info_if_needed): Ditto.
      	(function_call_with_list): Use pre-calculated arg counts and
       	types.
      	(function_add_name_only): Use FUNCTION_NAMEONLY for type.
      
      2001-06-03  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (information_functions_init): Don't supply arg
       	spec for node function.
      	* fn-lookup.c (lookup_functions_init): Ditto.
      	* fn-math.c (math_functions_init): Ditto.
      	* fn-eng.c (eng_functions_init): Ditto.
      
      	* fn-date.c (gnumeric_datedif): Constify.
      5668bf4c
  21. 01 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Use value_peek_string. · 19b0b593
      Morten Welinder authored
      2001-05-29  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (gnumeric_cell, gnumeric_info, gnumeric_error,
       	gnumeric_n): Use value_peek_string.
      
      	* fn-financial.c (gnumeric_coupdaybs, gnumeric_coupdays,
       	gnumeric_coupncd, gnumeric_coupnum): Remove mysterious and
       	unnecessary references to VALUE_ERROR.
      	(gnumeric_db): Improve error checking.
      
      	* fn-eng.c (gnumeric_complex): Fix using value_peek_string.
      	(gnumeric_convert): Get rid of one_C_to_K and introduce
       	C_K_offset.  Fix using value_peek_string.
      	(get_constant_of_unit): Constify.
      	(convert): Constify.
      	(help_erfc): complement, not compliment, :-)
      
      	* fn-date.c (gnumeric_datedif): Use value_peek_string.
      19b0b593
  22. 14 May, 2001 1 commit
  23. 30 Apr, 2001 1 commit
    • Morten Welinder's avatar
      Warning killer. · 5ef75629
      Morten Welinder authored
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* src/func.c (tokenized_help_find): Warning killer.
      
      	* src/value.c (value_new_array): Kill warnings.
      	(value_new_array_empty): Ditto.
      	(value_release): Ditto.
      
      	* src/print-cell.c (print_show): Use proper types.
      	(get_width_string_n): Ditto.
      
      	* src/number-match.c (gnumeric_error_init): Warning killer.
      
      	* src/parser.y (deallocate_all): Warning killer.
      
      	* src/item-bar.c (item_bar_draw): Avoid signedness problems.
      
      	* src/format-template.c (hash_table_destroy): Warning killer.
      
      	* src/colrow.h (struct _ColRowInfo): Make size_pixels an int.
      
      	* src/value-sheet.c (value_area_get_width, value_area_get_height):
       	Return an int, not a guint.
      
      2001-04-26  Morten Welinder  <terra@diku.dk>
      
      	* fn-string.c (gnumeric_mid): Un-suckify.
      	(gnumeric_find): Un-suckify.
      	(gnumeric_substitute): Warning killer.
      	(match_string): Warning killer.
      
      	* fn-information.c (translate_cell_format): Warning killer.
      
      	* fn-eng.c (val_to_base): Warning killer.
      
      2001-04-30  Morten Welinder  <terra@diku.dk>
      
      	* ms-summary.c (sum_name_to_excel): Fix index count.  Constify.
        	Make static.
      	(excel_to_gnum_mapping): Make static.
      5ef75629
  24. 29 Apr, 2001 1 commit
  25. 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
  26. 13 Feb, 2001 1 commit
  27. 12 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Rework the style engine. Mostly functional. see BUGS for remaining details. · 9e615b65
      Jody Goldberg authored
      NOTE : I have not tested persistance.
      
      2001-01-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.c (mstyle_ref_multiple) : new function.
      	(mstyle_copy_merge) : new function.
      	(mstyle_new_default) : Do not cache the result.  That is done at the
      	  sheet level.
      	(mstyle_do_merge) : delete.
      	(mstyle_get_format) : constness.
      
      	* src/format-template.c (cb_format_sheet_border) : delete.
      	(format_template_apply_to_sheet_regions) : borders are no longer special.
      
      	* src/expr.c (expr_tree_array_formula_corner) : do not store the
      	  corner anymore.
      	(expr_tree_new_array) : ditto.
      	(do_expr_tree_unref) : ditto.
      
      	* src/cell.c (cell_relocate) : Arrays are simplified.  No need to keep
      	  a pointer to the corner.  It made the system too brittle.
      	(cell_set_mstyle) : delete.
      
      	* src/Makefile.am : remove test.[ch]
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : There is no
      	  1 pixel border.
      
      2001-01-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/mstyle.h : Change order of borders to match BorderLocation
      
      2001-01-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_has_header) : avoid leaking styles.
      
      	* src/cell.c (cell_get_mstyle) : Use sheet_style_get, and do not bump
      	  the ref count.
      	(cell_render_value) : Adjust.
      	(cell_get_format : Adjust.
      	(cell_set_text) : Adjust.
      
      	* src/functions/fn-information.c (gnumeric_cell) : sheet_style_get
      	  does not make a reference. Use it.
      	* src/workbook-format-toolbar.c (modify_cell_format) :  Ditto.
      	(change_selection_font) : Ditto.
      	* src/sheet-autofill.c (fill_item_new) : ditto.
      	* src/print-cell.c (print_cell_range) : ditto.
      	* src/cellspan.c (cell_calc_span) : ditto.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size) : ditto.
      	* src/workbook-view.c (wb_view_format_feedback) : ditto.
      
      2001-01-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format) :
      	  init initial style to NULL.
      	(fmt_dialog_selection_type) : call sheet_style_get_uniform here.
      
      	* src/commands.c (cmd_format_redo) : Now that apply_border is not
      	  doing a redraw we need to if there is no style applied.
      
      	* src/selection.c (sheet_selection_extend_to) : Add support akin to
      	  gnumeric_sheet_rangesel_cursor_extend to extend to full col/row.
      
      	* src/sheet-control-gui.c (scg_colrow_select) : extend to full col/row
      	  if necessary.
      
      	* src/item-bar.c (item_bar_event) : Set the selection, not extend it.
      9e615b65
  28. 02 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      add the new file. · 8f9fa37b
      Jody Goldberg authored
      
      2001-01-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : add the new file.
      
      	* src/sheet-style.h : new file split from sheet.h in preparation
      	  for changing the style engine.
      8f9fa37b
  29. 10 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      comment out the warning. These the life cycles of names are too fluid to · e605d42e
      Jody Goldberg authored
      
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out the
      	  warning.  These the life cycles of names are too fluid to scare
      	  users yet.
      	(expr_name_invalidate_refs_wb) : Ditto.
      
      2000-12-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_text) : send the current format to the
      	  number matcher..
      	* src/sheet.c (sheet_cell_set_text) : Ditto.
      
      	* src/parse-util.c (parse_text_value_or_expr) : send the curent
      	  format to the number matcher.
      
      	* src/number-match.c (format_match) : take the current format as a
      	  parameter.  Begin using it to handle cells formated as text.
      
      	* src/format.c (style_format_is_text)  utility routine.
      
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : rename from
      	  sheet_selection_set and add the 'just_add_it' flag to indicate that
      	  we don't need to do anything fancy.
      e605d42e
  30. 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
  31. 24 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Suppress some warnings and make non-bonobo build clean. · a9a20284
      Jody Goldberg authored
      2000-09-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/normal-args.c : Suppress warning.
      
      	* src/functions/fn*.c : Add a prototype of the _init routine to
      	  suppress warning.
      
      	* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
      	  implemented.
      
      	* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
      a9a20284
  32. 31 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      New base class for Cells. Convert everything to access the elements that · 8b5866fb
      Jody Goldberg authored
      
      2000-08-30  Jody Goldberg <jgoldberg@home.com>
      
      	* dependent.[ch] : New base class for Cells.
      	  Convert everything to access the elements that are now
      	  in the cell's base.
      	s/Cell::sheet/Cell::Dependent::sheet/
      	s/Cell::cell_flags/Cell::Dependent::flags/
      
      	* Makefile.am : Because of XL we need to build plugins before src.
      	  That will need changing.
      
      	* src/func.c (function_marshal_arg) : Use expr_array_intersection.
      
      	* src/expr.c (eval_expr_real) : Do implicit conversions from strings
      	  to numbers if possible.
      	  Access the first element of an array.  NOTE : This is WRONG
      	  We need to implement array expression behavior some day.
      	(expr_array_intersection) : New routine.
      8b5866fb
  33. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Improve regexps. · 9ad38a63
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Improve regexps.
      
      	* src/formats.c (cell_format_is_number) : Format always uses standard
      	  decimal chars.
      
      	* src/format.c (gnumeric_setlocale) : New routine that clears cached
      	  locale info.
      	(format_get_decimal) : Improve use mon_decimal.
      	(format_get_thousand) : Improve use mon_thousands_sep.
      	(format_get_arg_sep) : New func.
      	(format_get_col_sep) : New func.
      	(format_destroy) : Use GPtrArray.
      	(render_number) : Improve localization.
      	(format_add_thousand) : rename format_toggle_thousands. De-localize.
      	(find_decimal_char) : De-localize.
      	(format_remove_decimal) : Ditto.
      	(format_add_decimal) : Ditto.
      	(format_number) : Ditto.
      
      	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.
      
      	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.
      
      	* src/auto-format.c (auto_style_format_suggest) :
      	  style_format_new -> style_format_new_XL
      
      	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
      	  the format string anymore.
      	(mstyle_set_format_text) : Add a warning.
      
      	* src/gutils.[ch] (float_get_from_range) : Delete.
      	(int_get_from_range) : Ditto.
      
      	* src/parser.y : Revamp lexer to use strtol, and strtod for number
      	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)
      
      	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.
      
      	* src/sheet.h : Move SpanCalcFlags.
      	* src/gnumeric.h : here.
      
      	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]
      
      	* src/value.c (value_get_as_string) : Correctly localize things for
      	  output.
      
      	* src/workbook-format-toolbar.c (modify_cell_format) : format
      	  modification callback modifies the StyleFormat.
      
      	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.
      
      	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
      	(xml_workbook_write) : Ditto.
      	(xml_read_cell) : Use style_format_new_XL.
      	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
      	(xml_write_style) : Ditto.
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
      	  Display localized number formats.
      	(fillin_negative_samples) : Not need to localize generated number
      	  formats.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
      	  format_get_arg_sep.
      
      	* src/dialogs/dialog-stf-format-page.c
      	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
      	  stored in a locale neutral format.
      
      	* src/functions/fn-string.c (gnumeric_text) : changes to
      	  style_format_new.
      
      	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.
      
      	* src/functions/fn-information.c (translate_cell_format) : This should
      	  now work for different locales.
      
      2000-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Extend the match algorithms to
      	  handle the new regexps.
      
      	* src/format.c (format_get_thousand) : provide a better default for
      	  countries using ',' as a decimal point.
      9ad38a63
  34. 31 May, 2000 1 commit
  35. 24 May, 2000 1 commit
    • Morten Welinder's avatar
      Style now needs to be initialised before formats. · 169f4952
      Morten Welinder authored
      2000-05-24  Morten Welinder  <terra@diku.dk>
      
      	* src/main.c (gnumeric_main): Style now needs to be initialised
       	before formats.
      
      	* src/number-match.c (format_match): Take a StyleFormat ** instead
       	of a char ** for the suggested format.  All callers changed.
      	(format_parse_t): rename member format to format_str and
       	introduce new member format, a StyleFormat *.
      	(format_match_define): Get a style at this point.
      
      	* src/datetime.c (datetime_value_to_serial_raw): Don't supply a
       	format return variable to format_match since we aren't interested
       	in the result.
      
      	* src/parse-util.c (parse_text_value_or_expr): Return a
       	StyleFormat * instead of a char *.  All callers changed.
      
      	* src/expr.c (expr_parse_string): Take a StyleFormat ** instead of
       	a char ** for the suggested format.  All callers changed.
      
      	* src/parser.y (make_string_return): Turn parser_desired_format
       	into a StyleFormat **.
      	(gnumeric_expr_parser): Take a StyleFormat ** instead of a char **
       	for the suggested format.  All callers changed.
      
      	* src/auto-format.c (auto_style_format_suggest): New function.
      
      
      	* src/sheet-style.c (sheet_style_optimize): Include adjacent
       	ranges in the list of styles to consider.  Handle intervening
       	styles better.  Don't stop searching for matching pairs just
       	because we merge -- only when the merge kills the slave.
      
      	* src/ranges.c (range_dump): Don't print "\n".  All callers
       	changed as needed.
      
      	* src/sheet-style.c (sheet_style_optimize, sheet_styles_dump):
       	Send all debugging output to stderr.  (As opposed to half stderr
       	and half stdout.)
      169f4952
  36. 03 May, 2000 2 commits
    • 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
    • Almer. S. Tigelaar's avatar
      s/strcasecmp/g_strcasecmp/ · 4741a7a5
      Almer. S. Tigelaar authored
      2000-05-03  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* *.c: s/strcasecmp/g_strcasecmp/
      4741a7a5
  37. 01 May, 2000 1 commit
    • Jody Goldberg's avatar
      ExprName -> NamedExpression ArrayRef -> ExprArray · 8d168628
      Jody Goldberg authored
      
      2000-05-01  Jody Goldberg <jgoldberg@home.com>
      
      	* ExprName -> NamedExpression
      	  ArrayRef -> ExprArray
      
      	change ExprTree to be a union of similar types and split
      	the elements into discrete types.
      	    ExprConstant
      	    ExprFunction
      	    ExprUnary
      	    ExprBinary
      	    ExprName
      	    ExprVar
      	    ExprArray
      
      	    expr->oper -> expr->any.oper
      
      2000-04-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_new_empty) : Don't allocate any memory.
      	(value_release) : Don't free any either.
      
      	* src/sheet-style.c (border_check) : Init outer_style to remove a
      	  warning.
      8d168628