1. 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
  2. 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
  3. 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
  4. 31 May, 2001 13 commits
    • Jody Goldberg's avatar
      Use cell_eval in place of cell_eval_content. · c42dae7a
      Jody Goldberg authored
      
      2001-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/solver-lp.c : Use cell_eval in place of cell_eval_content.
      
      	* src/eval.c (cb_range_hash_invalidate) : disconnect the list from the
      	  dep record while removing its contents.  We don't want to modify the
      	  list while we are walking it.  This is also an optimization in that
      	  we don't need to modify the list.
      	(cb_single_hash_invalidate) : ditto.
      	(depsingle_dtor) : Ensure that the list has already been cleared.
      	(deprange_dtor) : ditto.
      	(dependent_unlink) : short circuit if we are destroying.
      
      	* src/sheet.c (sheet_destroy) : Clear the controls first.
      c42dae7a
    • Karl Eichwalder's avatar
      · fee0eb8b
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* de.po:
      fee0eb8b
    • Karl Eichwalder's avatar
      Add dot. · 2c3ee2d5
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* boot.c (excel_save): Add dot.
      2c3ee2d5
    • Karl Eichwalder's avatar
      Fix 2 typos. · 1ccda572
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* src/GNOME_Gnumeric.xml: Fix 2 typos.
      1ccda572
    • Karl Eichwalder's avatar
      Normalize message string. · cfe63a79
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* dif.c (dif_file_save): Normalize message string.
      cfe63a79
    • Karl Eichwalder's avatar
      Write gnome.desktop.in. Add gnome.desktop.in. · e7aeedf6
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* configure.in: Write gnome.desktop.in.
      	* .cvsignore: Add gnome.desktop.in.
      e7aeedf6
    • Karl Eichwalder's avatar
      Update. · db81f4cb
      Karl Eichwalder authored
      2001-05-31  Karl Eichwalder  <ke@suse.de>
      
      	* de.po: Update.
      db81f4cb
    • Chyla Zbigniew's avatar
      Allocate "empty" line by default. (dif_get_line): Fixed typo. · a951036f
      Chyla Zbigniew authored
      
      * dif.c
      (dif_input_context_new): Allocate "empty" line by default.
      (dif_get_line): Fixed typo.
      a951036f
    • Chyla Zbigniew's avatar
      Handle opener errors without crashing. · 6475408c
      Chyla Zbigniew authored
      
      * workbook-view (wb_view_open_custom): Handle opener errors without
      crashing.
      6475408c
    • Yuri Syrota's avatar
      Updated Ukrainian transaltion · ed556d7e
      Yuri Syrota authored
      ed556d7e
    • Yuri Syrota's avatar
      Updated Ukrainian transaltion · 67f60e55
      Yuri Syrota authored
      67f60e55
    • Yuri Syrota's avatar
      Updated Ukrainian transaltion · 86b3bb2d
      Yuri Syrota authored
      86b3bb2d
    • Jody Goldberg's avatar
      Handle errors. (gnumeric_count) : ditto. (gnumeric_counta) : ditto. · d0bee477
      Jody Goldberg authored
      2001-05-29  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-stat.c (gnumeric_mode) : Handle errors.
      	(gnumeric_count) : ditto.
      	(gnumeric_counta) : ditto.
      	(gnumeric_prob) : return the correct error, and simplfy.
      	(gnumeric_frequency) : ditto.
      	(make_list) : renamed from init_make_list_closure, and moved
      	  replicated code here.
      	(stat_helper) : helper routine.
      	(gnumeric_ftest) : use here.
      	(gnumeric_ttest) : and here.
      
      2001-05-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_new_error_err) : change name from
      	  value_new_error_err since we don't actually new anything.
      
      	* src/position.c (eval_pos_init_cellref) : delete broken crap.
      
      	* src/func.c (cb_iterate_cellrange) : duplicate error here.
      	(function_iterate_argument_values) : duplicate the non-terminate
      	  error here.
      	* src/collect.c (collect_floats) : not here.
      d0bee477
  5. 30 May, 2001 5 commits
    • Jon K Hellan's avatar
      Use sc_sheet function to access sheet. · 36c6b15c
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	* gnumeric-expr-entry.c (gnumeric_expr_entry_set_scg): Use
      	sc_sheet function to access sheet.
      36c6b15c
    • Jon K Hellan's avatar
      Previous attempt to commit failed. Trying again. · 37876eb7
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	Previous attempt to commit failed. Trying again.
      
      	* src/sheet-control-gui-priv.h: New file. Implementation details
      	for SheetControlGUI and methods directly accessible from the GUI
      	layer.
      
      	* src/Makefile.am: Add sheet-control-gui-priv.h
      
      	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
      	sheet-control-gui-priv.h. Remove declarations of methods which
      	have been made virtual.
      
      	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet member now lives in SheetControl.
      	Make following methods static - externally available only as
      	virtual SheetControl method: scg_redraw_all,
      	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
      	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
      	scg_compute_visible_region, scg_make_cell_visible. Initialize
      	class object with these as virtual methods together with
      	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
      	and scg_mode_edit.  Rename context_menu_hander (sic!) to
      	context_menu_handler.
      
      	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
      	(sc_destroy): Comment out unused variable.
      	(sheet_control_init_state): Rename to sc_init_state.
      	(sc_sheet): New accessor - returns sheet attribute.
      	(sc_invalidate_sheet): New function - sets sheet attribute to
      	NULL.
      	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
      	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
      	scrollbar_config, mode_edit, compute_visible_region,
      	make_cell_visible, cursor_bound): New virtual methods.
      
      	* src/sheet-control.h: Declare new methods in sheet-control.c
      
      	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
      	instead of scg methods.
      
      	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
      	(sheet_ant): Use sc_ant instead of scg_ant.
      	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
      	(sheet_redraw_all): Use sc_redraw_headers instead of
      	scg_redraw_headers.
      	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
      	(sheet_detach_scg): Rename to sheet_detach_control. Change
      	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
      	sc_invalidate_sheet instead of direct attribute access.
      	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
      	scg_set_zoom_factor.
      	(sheet_update_only_grid): Use sc_compute_visible_region instead of
      	scg_compute_visible_region.
      	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
      	(sheet_redraw_cell_region, sheet_redraw_partial_row,
      	sheet_redraw_cell): Use sc_redraw_cell_region instead of
      	scg_redraw_cell_region.
      	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
      	scg_make_cell_visible.
      	(sheet_cursor_set): Use sc_cursor_bound instead of
      	scg_cursor_bound.
      	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
      	scg_update_cursor_pos.
      	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
      	scg_scrollbar_config.
      	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
      	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
      	and scg_redraw_all.
      
      	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
      	instead of SheetControlGUIs.
      
      	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
      	of scg_mode_edit.
      
      	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      
      	* src/sheet-object-graphic.c: Ditto.
      
      	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet now lives in SheetControl.
      
      	* src/item-bar.c: Ditto.
      
      	* src/item-cursor.c: Ditto.
      
      	* src/item-edit.c: Ditto.
      
      	* src/item-grid.c: Ditto.
      
      	* src/sheet-object-cell-comment.c: Ditto.
      
      	* src/sheet-object-cell-container.c: Ditto.
      
      	* src/sheet-object-item.c: Ditto.
      
      	* src/sheet-object-widget.c: Ditto.
      
      	* src/workbook-control-gui.c: Ditto.
      
      	* src/workbook-object-toolbar.c: Ditto, but don't include
      	sheet-control-gui-priv.h
      
      	* src/sheet-object.c (sheet_object_realize): Cast control to
      	SheetControlGUI.
      37876eb7
    • Jon K Hellan's avatar
      New file. Implementation details for SheetControlGUI and methods directly · 32d52b23
      Jon K Hellan authored
      2001-05-30  Jon K Hellan  <hellan@acm.org>
      
      	* src/sheet-control-gui-priv.h: New file. Implementation details
      	for SheetControlGUI and methods directly accessible from the GUI
      	layer.
      
      	* src/Makefile.am: Add sheet-control-gui-priv.h
      
      	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
      	sheet-control-gui-priv.h. Remove declarations of methods which
      	have been made virtual.
      
      	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet member now lives in SheetControl.
      	Make following methods static - externally available only as
      	virtual SheetControl method: scg_redraw_all,
      	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
      	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
      	scg_compute_visible_region, scg_make_cell_visible. Initialize
      	class object with these as virtual methods together with
      	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
      	and scg_mode_edit.  Rename context_menu_hander (sic!) to
      	context_menu_handler.
      
      	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
      	(sc_destroy): Comment out unused variable.
      	(sheet_control_init_state): Rename to sc_init_state.
      	(sc_sheet): New accessor - returns sheet attribute.
      	(sc_invalidate_sheet): New function - sets sheet attribute to
      	NULL.
      	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
      	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
      	scrollbar_config, mode_edit, compute_visible_region,
      	make_cell_visible, cursor_bound): New virtual methods.
      
      	* src/sheet-control.h: Declare new methods in sheet-control.c
      
      	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
      	instead of scg methods.
      
      	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
      	(sheet_ant): Use sc_ant instead of scg_ant.
      	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
      	(sheet_redraw_all): Use sc_redraw_headers instead of
      	scg_redraw_headers.
      	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
      	(sheet_detach_scg): Rename to sheet_detach_control. Change
      	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
      	sc_invalidate_sheet instead of direct attribute access.
      	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
      	scg_set_zoom_factor.
      	(sheet_update_only_grid): Use sc_compute_visible_region instead of
      	scg_compute_visible_region.
      	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
      	(sheet_redraw_cell_region, sheet_redraw_partial_row,
      	sheet_redraw_cell): Use sc_redraw_cell_region instead of
      	scg_redraw_cell_region.
      	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
      	scg_make_cell_visible.
      	(sheet_cursor_set): Use sc_cursor_bound instead of
      	scg_cursor_bound.
      	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
      	scg_update_cursor_pos.
      	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
      	scg_scrollbar_config.
      	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
      	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
      	and scg_redraw_all.
      
      	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
      	instead of SheetControlGUIs.
      
      	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
      	of scg_mode_edit.
      
      	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      
      	* src/sheet-object-graphic.c: Ditto.
      
      	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
      	of sheet-control-gui.h.
      	Casts and temp variables because:
      	- virtual scg methods now take a SheetControl parameter.
              - sheet now lives in SheetControl.
      
      	* src/item-bar.c: Ditto.
      
      	* src/item-cursor.c: Ditto.
      
      	* src/item-edit.c: Ditto.
      
      	* src/item-grid.c: Ditto.
      
      	* src/sheet-object-cell-comment.c: Ditto.
      
      	* src/sheet-object-cell-container.c: Ditto.
      
      	* src/sheet-object-item.c: Ditto.
      
      	* src/sheet-object-widget.c: Ditto.
      
      	* src/workbook-control-gui.c: Ditto.
      
      	* src/workbook-object-toolbar.c: Ditto, but don't include
      	sheet-control-gui-priv.h
      
      	* src/sheet-object.c (sheet_object_realize): Cast control to
      	SheetControlGUI.
      32d52b23
    • Yuri Syrota's avatar
      Updated Ukrainian transaltion · 94d4e16e
      Yuri Syrota authored
      94d4e16e
    • Chyla Zbigniew's avatar
      Register as importer. · 2ba74b3c
      Chyla Zbigniew authored
      
      * src/stf.c (stf_init): Register as importer.
      2ba74b3c
  6. 29 May, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added FileProbeLevel argument. (GNUM_FILE_OPENER_CLASS, · ecec4fee
      Chyla Zbigniew authored
      
      * src/file.h
      (typedef enum FileProbeLevel) New.
      (typedef GnumFileOpenerProbeFunc, gnum_file_opener_probe): Added
      FileProbeLevel argument.
      (GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
      GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
      Macros moved to file-priv.h.
      
      * src/file-priv.h
      (struct _GnumFileOpenerClass::probe):
      (GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
      GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
      Macros moved from file.h.
      
      * src/file.c
      (gnum_file_opener_probe_real, gnum_file_opener_probe):
      Added FileProbeLevel argument.
      
      * src/workbook-view.c
      (wb_view_open_custom): Iterate over FileProbeLevel values when probing
      the file (passing current value to probe function).
      
      * src/xml-io.c
      (xml_probe): Added FileProbeLevel argument, testing only file name if
      probe level == FILE_PROBE_FILE_NAME.
      
      * src/plugin-service.c (gnum_plugin_file_opener_probe):
      Use file_patterns only if probe level == FILE_PROBE_FILE_NAME, otherwise
      call module's probe function.
      
      * src/bonobo-io.c (gnumeric_bonobo_io_probe),
      src/plugin-service.h (struct _PluginServiceFileOpener),
      src/plugin-loader-module.c
      (gnumeric_plugin_loader_module_func_file_probe,
      struct ServiceLoaderDataFileOpener::module_func_file_probe):
      Added FileProbeLevel argument.
      ecec4fee