1. 10 Jun, 2001 1 commit
  2. 09 Jun, 2001 1 commit
  3. 08 Jun, 2001 5 commits
    • Almer S. Tigelaar's avatar
      Initialize source areas list from sheet selections. (cb_add_source_area): · 360016b5
      Almer S. Tigelaar authored
      2001-06-08  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-consolidate.c (dialog_consolidate): Initialize
      	source areas list from sheet selections.
      	(cb_add_source_area): New, callback for the functionality
      	described above.
      	(cb_dialog_set_focus): No need for absolute references.
      	(cb_areas_select_row): Enable the delete button when a row
      	is selected.
      360016b5
    • Jody Goldberg's avatar
      avoid duplicate use of 'H' as accelerator. Ditto. · ceb7c5f2
      Jody Goldberg authored
      
      2001-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_menu_format_row) : avoid
      	  duplicate use of 'H' as accelerator.
      	* src/GNOME_Gnumeric.xml : Ditto.
      ceb7c5f2
    • Almer S. Tigelaar's avatar
      Use scg->gsheet. · 128860d8
      Almer S. Tigelaar authored
      2001-06-08  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/embeddable-grid.c (grid_view_activate): Use
      	scg->gsheet.
      128860d8
    • Jody Goldberg's avatar
      fix typo. · d41300c7
      Jody Goldberg authored
      
      2001-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-insert-cells.c (dialog_insert_cells) : fix typo.
      d41300c7
    • Jody Goldberg's avatar
      Add some sanity checking for safety. ditto. (sheet_redraw_cell_region) : · f2bccd97
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_set_internal) : Add some sanity
      	  checking for safety.
      	* src/sheet.c (sheet_set_edit_pos) : ditto.
      	(sheet_redraw_cell_region) : ditto.
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      f2bccd97
  4. 07 Jun, 2001 4 commits
    • Jody Goldberg's avatar
      We need this for now. There are functions that actualyl rely on the · e7082e55
      Jody Goldberg authored
      
      2001-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/rendered-value.c (cell_get_rendered_text) : We need this for
      	  now.  There are functions that actualyl rely on the rendered text.
      
      2001-06-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gui-file.c (gui_file_open) : There is no point showing the
      	  create/delete/rename buttons when loading.
      	(gui_file_import) : and importing.
      e7082e55
    • Almer S. Tigelaar's avatar
      Ignore empty values. (retrieve_row_tree): Idem. (key_list_get): Idem. · c4871925
      Almer S. Tigelaar authored
      2001-06-07  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/consolidate.c (retrieve_col_tree): Ignore
      	empty values.
      	(retrieve_row_tree): Idem.
      	(key_list_get): Idem.
      	(key_list_free): Burn.
      	(colrow_consolidate): Free the lists directly instead
      	of calling key_list_free.
      	(simple_consolidate): Add flag, we don't want
      	range merge optimizations on simple consolidations.
      	(consolidate_apply): Adjust call to simple_consolidate.
      	(cb_col_tree): Idem.
      	(cb_row_tree): Idem.
      c4871925
    • Almer S. Tigelaar's avatar
      Remove MS_ALL as flag and make it a define. · 78f154f9
      Almer S. Tigelaar authored
      2001-06-07  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control.h: Remove MS_ALL as flag
      	and make it a define.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update):
      	Remove MS_ALL flag handling.
      78f154f9
    • Almer S. Tigelaar's avatar
      Add MS_CONSOLIDATE. · 4297da1f
      Almer S. Tigelaar authored
      2001-06-07  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/workbook-control.h: Add MS_CONSOLIDATE.
      
      	* src/workbook-edit.c (wbcg_edit_attach_guru): Call
      	wb_control_menu_state_update
      	(wbcg_edit_detach_guru): Idem.
      
      	* src/workbook-control-gui-priv.h: Add consolidation
      	menu item.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update): Add
      	consolidation menu item.
      	(workbook_control_gui_init): Initialize consolidation
      	menu item.
      4297da1f
  5. 06 Jun, 2001 6 commits
    • Almer S. Tigelaar's avatar
      Fix warning. · 742fd104
      Almer S. Tigelaar authored
      2001-06-06  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/stf.c (stf_read_workbook): Fix warning.
      742fd104
    • 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
  6. 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
  7. 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
  8. 03 Jun, 2001 9 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