1. 06 Jun, 2001 5 commits
    • Almer S. Tigelaar's avatar
      Include config.h · 850b693d
      Almer S. Tigelaar authored
      2001-06-06  Almer S. Tigelaar <almer@gnome.org>
      
      	* src/consolidate.c : Include config.h
      850b693d
    • Almer S. Tigelaar's avatar
      Added dialog-consolidate.c and consolidate.glade · a97c677b
      Almer S. Tigelaar authored
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* POTFILES.in: Added dialog-consolidate.c and
      	consolidate.glade
      a97c677b
    • Almer S. Tigelaar's avatar
      Add new GlobalRange. · 76a1bbbc
      Almer S. Tigelaar authored
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/gnumeric.h : Add new GlobalRange.
      
      	* src/ranges.[ch] (global_range_new): Create a new globalrange.
      	(global_range_free): Free.
      	(global_range_overlap): Utility function.
      	(global_range_dup): Idem.
      
      	* src/sheet.[ch] (sheet_cell_get_value): New function.
      
      	* src/workbook-control-gui.c (cb_data_consolidate) :
      	Entry point for the data consolidation dialog.
      
      	* src/GNOME_Gnumeric.xml : Add consolidate menu item.
      
      	* src/commands.c (cmd_consolidate) : Undo/redo for consolidate.
      	(cmd_consolidate_destroy) : Idem.
      	(cmd_consolidate_redo) : Idem.
      	(cmd_consolidate_undo) : Idem.
      
      	* src/consolidate.[ch] : Consolidation low-level code.
      
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-consolidate.c : Implementation of the consolidation dialog.
      
      	* consolidate.glade : Idem.
      76a1bbbc
    • Chyla Zbigniew's avatar
      Removed import.glade. · c3d47ee4
      Chyla Zbigniew authored
      
      * POTFILES.in: Removed import.glade.
      c3d47ee4
    • Chyla Zbigniew's avatar
      Removed import.glade. · e5cae0ac
      Chyla Zbigniew authored
      
      * Makefile.am (glade_DATA): Removed import.glade.
      
      * import.glade: Removed.
      e5cae0ac
  2. 05 Jun, 2001 3 commits
    • Chyla Zbigniew's avatar
      New function, some code moved from gui-file.c. · 7aba8116
      Chyla Zbigniew authored
      
      * src/gnumeric-util.[ch] (gnumeric_dialog_file_selection): New
      function, some code moved from gui-file.c.
      
      * src/workbook.[ch] (workbook_get_filename): New accessor function.
      
      * src/gui-file.h
      (gui_file_open): New function.
      (gui_file_import): Removed fname argument.
      
      * src/gui-file.c
      (gui_file_import): Create and open file selector, using
      gnumeric_dialog_file_selection to display it. Use one dialog to select
      file and file format, we don't need glade file anymore. Optionally
      show all registered openers as importers.
      (gui_file_save_as): Uses gnumeric_dialog_file_selection. Take
      workbook's current saver if current_saver is NULL (previously we've
      been loosing this information), use
      gnumeric_option_menu_get_selected_index instead of playing with
      signals.
      (gui_file_open): New function, some code moved from
      dialog_query_load_file.
      (gui_file_save): Always call wb_view_preferred_size.
      (do_save_as): Take GnumFileSaver as argument.
      (cb_select, handle_ok, saver_activate, fill_save_menu,
      make_format_chooser, file_dialog_delete_event, fs_key_event,
      fs_set_filename): Removed.
      
      * src/workbook-control-gui.c
      (cb_file_new): Just call gui_file_open.
      (cb_file_import): Call gui_file_import.
      (workbook_control_gui_init): Initialize current_saver with NULL.
      7aba8116
    • Chyla Zbigniew's avatar
      Slight modification of the previous patch. · 2fc499eb
      Chyla Zbigniew authored
      
      * src/workbook.c (workbook_new): Slight modification of the previous
      patch.
      2fc499eb
    • Jody Goldberg's avatar
      Use the extension associated with the default saver as the default · 720befdb
      Jody Goldberg authored
      
      2001-06-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_new) : Use the extension associated with
      	  the default saver as the default extension.
      720befdb
  3. 04 Jun, 2001 11 commits
    • Chyla Zbigniew's avatar
      Use fn_type to check if we need to get full information. · 0b33c6b0
      Chyla Zbigniew authored
      
      * src/func.c (function_def_get_full_info_if_needed): Use fn_type to
      check if we need to get full information.
      0b33c6b0
    • Morten Welinder's avatar
      Typo. · dbedfdf0
      Morten Welinder authored
      dbedfdf0
    • Almer S. Tigelaar's avatar
      Update to reflect recently made changes. · dc400c95
      Almer S. Tigelaar authored
      2001-06-04  Almer S. Tigelaar <almer@gnome.org>
      
      	* doc/stf-export.txt, doc/stf-parser.txt :
      	Update to reflect recently made changes.
      dc400c95
    • Almer S. Tigelaar's avatar
      Burn useless comments. (stf_parse_options_csv_set_separators): Change · 3b6bb3ea
      Almer S. Tigelaar authored
      2001-06-04  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf-parse.[ch] : Burn useless comments.
      	(stf_parse_options_csv_set_separators): Change interface.
      	(stf_parse_csv_is_separator): Adjust for interface change.
      	(stf_parse_options_new): Burn modified and old splitpositions.
      	(stf_parse_options_set_type): Constify.
      	(stf_parse_options_set_line_terminator): Idem.
      	(stf_parse_options_set_lines_to_parse): Idem.
      	(stf_parse_options_set_trim_spaces): Idem.
      	(stf_parse_options_csv_set_customfieldseparator): Burn.
      	(stf_parse_options_csv_set_stringindicator): Constify.
      	(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
      	(stf_parse_options_csv_set_duplicates): Idem.
      	(stf_parse_options_fixed_splitpositions_add): Idem.
      	(stf_parse_csv_cell): Cosmetic changes and adjust for
      	change to stf_parse_csv_is_separator, plus use GList.
      	(stf_parse_fixed_cell): Cosmetic changes.
      	(stf_parse_fixed_line): Idem and use GList.
      	(stf_parse_general): Optimize loop and use GList's.
      	(stf_parse_get_rowcount): Cosmetic changes.
      	(stf_parse_get_colcount): Idem.
      	(stf_parse_get_longest_row_width): Idem and fix.
      	(stf_parse_get_colwidth): Idem and fix.
      	(stf_parse_convert_to_unix): Rewrite.
      	(stf_parse_is_valid_data): Idem and constify.
      	(stf_parse_options_fixed_autodiscover): Constify.
      	(stf_parse_sheet): Rewrite.
      	(stf_parse_region): Idem.
      
      	* src/gui-clipboard.c (x_selection_to_cell_region):
      	Constify return variable from stf_parse_is_valid_data.
      
      2001-06-04  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-stf-csv-page.c (csv_page_global_change): Cope for
      	changes to csv_set_separators and stf_parse_general.
      
      	* dialog-stf-format-page.c (format_page_update_preview): Idem.
      
      	* dialog-stf-fixed-page.c (fixed_page_update_preview): Idem.
      
      	* dialog-stf-preview.[ch] (stf_preview_render_row): Idem.
      	(stf_preview_format_recalc_colwidths): Idem.
      	(stf_preview_format_line): Idem.
      	(stf_preview_render): Idem.
      3b6bb3ea
    • Chyla Zbigniew's avatar
      Displaying a question dialog if the user wants to export workbook with · 3975cb1c
      Chyla Zbigniew authored
      
      Displaying a question dialog if the user wants to export workbook
      with many sheets to file format supporting only one.
      
      * src/file-priv.h (struct _GnumFileSaver): Added save_scope.
      
      * src/file.h (gnum_file_saver_set_save_scope,
      gnum_file_saver_get_save_scope, enum FileSaveScope): New.
      
      * src/file.c
      (gnum_file_saver_init): Initialize save_scope with FILE_SAVE_WORKBOOK.
      (gnum_file_saver_set_save_scope, gnum_file_saver_get_save_scope): New.
      
      * src/gui-file.c (do_save_as): Optionally display a question dialog if
      we have many sheets and the saver can save only one.
      
      * src/plugin-service.h
      (struct _PluginServiceFileSaver): Added save_scope.
      
      * src/plugin-service.c (plugin_service_file_saver_read,
      gnum_plugin_file_saver_new): Support save_scope attribute.
      3975cb1c
    • Chyla Zbigniew's avatar
      Set save_scope to "sheet". · dde15dd7
      Chyla Zbigniew authored
      
      * plugin.xml (<service>): Set save_scope to "sheet".
      dde15dd7
    • Chyla Zbigniew's avatar
      Added missing #include <errno.h> · 6dc0fd9f
      Chyla Zbigniew authored
      
      Added missing #include <errno.h>
      6dc0fd9f
    • Chyla Zbigniew's avatar
      Reverted my last patch to save users' swap-space :-) · 52746610
      Chyla Zbigniew authored
      
      * src/xml-io.c:
      Reverted my last patch to save users' swap-space :-)
      52746610
    • Jody Goldberg's avatar
      update · 8d61dcf9
      Jody Goldberg authored
      8d61dcf9
    • Jody Goldberg's avatar
      do not span expressions because they do not span when recalculated. This · 52c77a11
      Jody Goldberg authored
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cellspan.c (cell_calc_span) : do not span expressions
      	  because they do not span when recalculated.  This will be fixed when
      	  just in time rendering is done.
      52c77a11
    • Jody Goldberg's avatar
      From Juan Pablo Mendoza <pablo_juan@yahoo.com> · fad57259
      Jody Goldberg authored
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
      
      	* rendered-value.c (rendered_value_get_text): Add a check for
      	  rendered value != NULL.
      	(cell_get_rendered_text): Add check for redered value == NULL
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
      	  status updates.
      fad57259
  4. 03 Jun, 2001 12 commits
    • Chyla Zbigniew's avatar
      Updating i/o progress while saving Gnumeric XML file. · 229358f8
      Chyla Zbigniew authored
      
      Updating i/o progress while saving Gnumeric XML file.
      
      * src/xml-io.c
      s/N_ELEMENTS_BETWEEN_UPDATES/N_INPUT_ELEMENTS_BETWEEN_UPDATES
      (xml_write_cell_and_position): Update i/o progress every
      N_OUTPUT_ELEMENTS_BETWEEN_UPDATES cells.
      (xml_write_styles): Ditto for styles.
      (gnumeric_xml_read_workbook): Better error reporting.
      (workbook_get_n_elements): Internal function, calculating the number of
      "elements" (styles and cells) in workbook.
      (gnumeric_xml_write_workbook): Split saving to three stages: building
      XML tree, dumping it to memory buffer, saving (compressed) buffer
      contents to file. Update i/o progress regularly.
      The second stage still freezes UI though :(
      229358f8
    • Chyla Zbigniew's avatar
      Protected against stack overflow. Probably it doesn't really solve the · 8dbb645a
      Chyla Zbigniew authored
      
      * src/func.c (function_def_get_full_info_if_needed): Protected against
      stack overflow. Probably it doesn't really solve the problem though :(
      8dbb645a
    • Jody Goldberg's avatar
      For Vlad Harchev <hvv@hippo.ru> · 4a0547e0
      Jody Goldberg authored
      
      2001-06-03 Jody Goldberg <jgoldberg@home.com>
      	For Vlad Harchev <hvv@hippo.ru>
      
              * ms-excel-util.h ms-excel-util.c (excel_wcstombs) :
      	  Some utilites to handle encoding changes that fail.
      
              * ms-excel-read.c : Use the utilities.
      4a0547e0
    • Jody Goldberg's avatar
      don't leak colour ref ditto. · 04f4c1cd
      Jody Goldberg authored
      
      2001-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-stf-preview.c (stf_preview_format_line) : don't leak colour ref
      	* dialog-cell-format.c (draw_format_preview) : ditto.
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am (INCLUDES) : add top_builddir so that we can gt
      	  portability.h
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (draw_text) : limit length of cell text to avoid
      	  flakey X servers that crash with long strings.
      
      	* src/clipboard.c (clipboard_paste_region) : be sure to rerender and
      	  span if formats change.
      
      	* src/format.c (format_value) : simplify.
      04f4c1cd
    • Almer S. Tigelaar's avatar
      Add support for escaped newlines and clean-up. · a1f8bb83
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf.c
      	(stf_parse_csv_cell): Add support for escaped newlines and
      	clean-up.
      	(stf_parse_options_csv_set_customfieldseparator): Support
      	string separator.
      	(stf_parse_options_new): Initialize customfieldseparator.
      	(stf_parse_options_free): Free custom field separator.
      	(stf_parse_csv_is_separator): Handle new string customfield separator.
      	(stf_parse_csv_cell): Idem.
      	(stf_parse_get_colcount): Idem.
      	(stf_parse_get_colwidth): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-stf.glade: Make length of customfield
      	separator infinite.
      
      	* dialog-stf-csv-page.c (csv_page_global_change):
      	Set string customseparator instead of char.
      a1f8bb83
    • Almer S. Tigelaar's avatar
      Exporting wouldn't work because of wrong changes to the code. Fixed. · eb5159f5
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf.c (stf_write_workbook): Exporting wouldn't work
      	because of wrong changes to the code. Fixed.
      eb5159f5
    • 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
    • Jody Goldberg's avatar
      doh! (format_compile) : Assign the default conditions. · 3b01ad11
      Jody Goldberg authored
      
      2001-06-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_compile) : doh!
      	(format_compile) : Assign the default conditions.
      3b01ad11
    • Almer S. Tigelaar's avatar
      Fix. · bf4852dc
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf-parse.c (stf_parse_get_longest_row_width): Fix.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-stf.h: Define X overflow limit.
      
      	* dialog-stf-preview.c (stf_preview_render_row): Really
      	truncate strings if they are too long.
      
      	* dialog-stf-main-page.c (stf_dialog_main_page_init): Protect
      	against overly large text.
      bf4852dc
    • Almer S. Tigelaar's avatar
      New, converts a row number to a string. (rows_name): Idem, but for a · 77cadcab
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/parse-util.[ch] (row_name): New, converts
       	a row number to a string.
       	(rows_name): Idem, but for a start/end range.
       	(row_name_internal): Utility routine.
      
       	* src/colrow.c (colrow_string_build): Remove.
       	(colrow_index_list_to_string): Use rows_name
       	and cols_name.
      
       	* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
      
       	* src/commands.c (cmd_insert_rows): Idem.
       	(cmd_delete_cols): Beautify.
       	(cmd_delete_rows): Beautify and use rows_name.
      
       	* src/eval.c (dump_range_dep): Use row_name.
      
       	* src/item-bar.c (get_row_name): Deprecated, remove.
       	(item_bar_draw): Use row_name.
      
       	* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
      
       	* src/item-grid.c (item_grid_draw): Idem.
      
       	* src/ranges.c (range_name): Idem.
       	(range_dump): Idem.
      
       	* src/selection.c (reference_append): Idem.
       	(selection_get_ranges): Idem.
       	(cb_range_to_string): Idem.
      
       	* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
       	(vertical_scroll_offset_changed): Idem.
      
       	* src/value-sheet.c (value_dump): Idem.
       	(encode_cellref): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* dialog-cell-sort.c (col_row_name):
       	Use row_name.
      77cadcab
    • Almer S. Tigelaar's avatar
      Burn. (stf_cache_options_free): Burn. (stf_cache_options_set_data): Burn. · fc1912f7
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf-parse.[ch] (stf_cache_options_new): Burn.
      	(stf_cache_options_free): Burn.
      	(stf_cache_options_set_data): Burn.
      	(stf_cache_options_set_range): Burn.
      	(stf_cache_options_invalidate): Burn.
      	(stf_parse_general_cached): Burn.
      	(stf_parse_options_before_modification): Burn.
      	(stf_parse_options_after_modification): Burn.
      	(stf_parse_options_set_type): Don't set modified.
      	(stf_parse_options_set_line_terminator): Idem.
      	(stf_parse_options_set_lines_to_parse): Idem.
      	(stf_parse_options_set_trim_spaces): Idem.
      	(stf_parse_options_csv_set_separators): Idem.
      	(stf_parse_options_csv_set_customfieldseparator): Idem.
      	(stf_parse_options_csv_set_stringindicator): Idem.
      	(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
      	(stf_parse_options_csv_set_duplicates): Idem.
      	(stf_parse_options_valid): Remove modificationmode.
      	(stf_parse_options_new): Idem.
      	(trim_spaces_inplace): Make inline.
      	(stf_parse_csv_is_separator): Idem and move things around
      	a for some more speed.
      	(stf_parse_csv_cell): Make inline.
      	(stf_parse_fixed_cell): Idem.
      
      	* src/stf.c (stf_read_workbook): Set maximum number of
      	lines to parse to infinite.
      	(x_selection_to_cell_region): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-stf.c (stf_dialog_druid_page_next): Remove cacheoptions.
      
      	* dialog-stf-preview.c (stf_preview_merge_with_hash): Remove.
      	(stf_preview_hash_item_remove): Idem.
      	(stf_preview_free_row): Idem.
      	(stf_preview_free): Remove hashtable.
      	(stf_preview_new): Idem.
      	(stf_preview_render): Free the list that is passed.
      	(stf_preview_render_row): Truncate strings if they are too long.
      
      	* dialog-stf-csv-page.c (csv_page_global_change): Use
      	stf_parse_general.
      	(stf_dialog_csv_page_prepare): Remove cacheoptions.
      	(stf_dialog_csv_page_init): Idem.
      	(stf_dialog_csv_page_cleanup): Idem.
      
      	* dialog-stf-fixed-page.c (fixed_page_update_preview): Use
      	stf_parse_general.
      	(stf_dialog_fixed_page_prepare): Remove cacheoptions.
      	(stf_dialog_fixed_page_cleanup): Idem.
      	(stf_dialog_fixed_page_init): Idem.
      
      	* dialog-stf-format-page.c (format_page_update_preview): Use
      	stf_parse_general.
      	(format_page_scroll_value_changed ): Don't use cacheoptions.
      	(format_page_format_changed): Idem.
      	(stf_dialog_format_page_prepare): Idem.
      	(stf_dialog_format_page_cleanup): Remove cacheoptions.
      	(stf_dialog_format_page_init): Idem.
      fc1912f7
    • Jody Goldberg's avatar
      ref the colour. (format_entry_set_fmt) : new function. (format_compile) : · 2877e18f
      Jody Goldberg authored
      
      2001-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_value) : ref the colour.
      	(format_entry_set_fmt) : new function.
      	(format_compile) : parse the conditional values.
      2877e18f
  5. 02 Jun, 2001 5 commits
    • Almer S. Tigelaar's avatar
      Use sc_resize not scg_resize. · 12227994
      Almer S. Tigelaar authored
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/sheet.c (sheet_col_row_group_ungroup): Use
      	sc_resize not scg_resize.
      12227994
    • Almer S. Tigelaar's avatar
      Implement group undo/redo (cmd_group_redo): Idem. (cmd_group_destroy): · e301f704
      Almer S. Tigelaar authored
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
              * src/commands.[ch] (cmd_group_undo): Implement group undo/redo
        	(cmd_group_redo): Idem.
        	(cmd_group_destroy): Idem.
        	(cmd_group): Idem.
      
        	* src/workbook-control-gui.c (cb_data_group): Implement.
        	(cb_data_ungroup): Idem.
        	(group_ungroup_colrow): Utility function to determine if
        	columns or rows need to be grouped/ungrouped.
      
        	* src/sheet.[ch] (sheet_col_row_group_ungroup): New, high level routine
       	for adjusting outlines.
       	(sheet_col_row_fit_gutter): Dynamically adjust gutter size.
       	(cb_outline_level): Callback for the above.
       	(sheet_col_row_can_group): Query if a range of cols/rows
       	can actually group/ungroup.
       	(sheet_col_row_set_outline_level): Deprecated, remove.
      
       	* src/colrow.[ch] (colrow_set_outline): Set outline on a col/row.
      
        	* src/GNOME_Gnumeric.xml: DataOutlineUnGroup change to
        	DataOutlineUngroup.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* colrow.glade: New simple dialog.
      
      	* dialog-simple-input.c, dialogs.h
      	(dialog_choose_cols_vs_rows): New, let user choose
      	between columns or rows.
      
      2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
      
      	* (ms_excel_read_row): Set outline using
      	new functions.
      	(ms_excel_read_colinfo): Idem.
      e301f704
    • Jody Goldberg's avatar
      be consistent and don't block. · 9fc2426c
      Jody Goldberg authored
      
      2001-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/main.c (handle_paint_events) : be consistent and don't block.
      
      	* src/io-context.c (io_progress_update) : avoid an infinite loop.
      9fc2426c
    • Jody Goldberg's avatar
      Some updates from Pete for the PV function · 2de81687
      Jody Goldberg authored
      2de81687
    • Jody Goldberg's avatar
      rewrite, not quite done. · f423353e
      Jody Goldberg authored
      
      2001-06-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_compile) : rewrite, not quite done.
      
      	* src/commands.c (cmd_set_text_undo) : queue a recalc.
      	(cmd_clear_redo) : ditto.
      	* src/corba-sheet.c (Sheet_clear_region) : ditto.
      	(Sheet_clear_region_content) : ditto.
      	* src/gui-clipboard.c (x_selection_handler) : ditto.
      	* src/sheet-merge.c (sheet_merge_add) : ditto.
      
      	* src/eval.c : switch the depend lists to be singly linked.
      	(dep_slist_filter_sheet) : convenience routine.
      	(dependent_unqueue_sheet) : Used here.
      	(dependent_unlink_sheet) : and here.
      
      	* src/workbook-control-gui.c (display_formulas) :  convert the single
      	  lists.
      f423353e
  6. 01 Jun, 2001 4 commits
    • Chyla Zbigniew's avatar
      Support for reporting i/o progress via IOContext. · a1a6847e
      Chyla Zbigniew authored
      
      Support for reporting i/o progress via IOContext.
      
      * src/command-context-priv.h (struct CommandContextClass): Added
      progress_message_set virtual.
      
      * src/command-context.[ch] (gnumeric_progress_message_set): New.
      
      * src/io-context-priv.h
      Made IOContext a GtkObject.
      (enum GnumProgressHelperType, struct GnumProgressHelper): New.
      
      * src/io-context.[ch]
      Made IOContext a GtkObject.
      (io_progress_update, io_progress_message,
      file_io_progress_set, file_io_progress_update,
      memory_io_progress_set, memory_io_progress_update,
      count_io_progress_set, count_io_progress_update,
      io_progress_unset): New functions.
      (gnumeric_io_context_free): Removed, use gtk_object_destroy instead.
      
      * src/workbook-control-gui.c (wbcg_progress_message_set): New,
      implementation of CommandContext virtual.
      
      * src/workbook-view.c
      (wb_view_save_as, wb_view_save, wb_view_open_custom):
      s/gnumeric_io_context_free/gtk_object_destroy
      
      * src/xml-io.h
      (struct _XmlParseContext): New members (io_context, element_counter) for
      progress reporting.
      
      * src/xml-io.c
      (xml_read_styles): Update i/o progress every N_ELEMENTS_BETWEEN_UPDATES
      styles.
      (xml_sheet_read): Ditto for cells.
      (xml_get_n_children, xml_read_sheet_n_elements,
      xml_read_workbook_n_elements): Internal functions, calculating the
      number of "elements" (styles and cells) in workbook.
      (xml_workbook_read): Set up io progress to "Processing XML tree" stage.
      (gnumeric_xml_read_workbook): Load the file into an XML tree using the
      Push mode and update i/o progress regularly.
      
      * src/plugin-util.c
      #include <libgnome/libgnome.h> instead of <gnome.h>.
      a1a6847e
    • Chyla Zbigniew's avatar
      Report reading progress via io_context. · 79b8aa29
      Chyla Zbigniew authored
      
      * dif.c (dif_input_context_new, dif_input_context_destroy, dif_get_line,
      dif_eat_line): Report reading progress via io_context.
      79b8aa29
    • 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
    • Stanislav Visnovsky's avatar
      Updated Slovak translation. · a796ca3d
      Stanislav Visnovsky authored
      2001-06-01  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>
      
      	* sk.po: Updated Slovak translation.
      a796ca3d