1. 24 Jul, 2003 1 commit
  2. 25 Jun, 2003 1 commit
  3. 12 Jun, 2003 2 commits
    • Morten Welinder's avatar
      Add fixed_encoding argument as for stf_dialog. All callers changed. · a4166715
      Morten Welinder authored
      2003-06-12  Morten Welinder  <terra@gnome.org>
      	* src/gui-clipboard.c (text_to_cell_region): Add fixed_encoding
      	argument as for stf_dialog.  All callers changed.
      2003-06-12  Morten Welinder  <terra@gnome.org>
      	* dialog-stf.c (stf_dialog): New argument fixed_encoding which,
      	when TRUE, will use the specified encoding with no user override.
      	All callers changed.
    • Morten Welinder's avatar
      New function. (stf_parse_options_add_line_terminator, · e1d64a96
      Morten Welinder authored
      2003-06-12  Morten Welinder  <terra@gnome.org>
      	* src/stf-parse.c (compile_terminators): New function.
      	stf_parse_options_clear_line_terminator): Call
      	compile_terminators, fix memory ownership.
      	(stf_parse_options_new): Set terminators using
      	(compare_terminator): Speed up using compiled terminators.
      2003-06-12  Morten Welinder  <terra@gnome.org>
      	* gnumeric-optionmenu.c (gnumeric_option_menu_destroy): Leak fix.
      	* widget-charmap-selector.c (cs_build_menu): Leak fix.
      2003-06-12  Morten Welinder  <terra@gnome.org>
      	* dialog-stf-preview.c (render_get_value): Change tabs into spaces
      	(stf_preview_set_lines): Clear the table here too.
      	(stf_preview_render): Merge into stf_preview_set_lines, then
      	* dialog-stf.h (DruidPageData_t): Add parseoptions here.  Remove
      	from all page structs.
      	* dialog-stf-fixed-page.c (fixed_page_update_preview): Turn off
      	trimming here.
  4. 11 Jun, 2003 1 commit
    • Morten Welinder's avatar
      Remove parselines member. · ebcefbeb
      Morten Welinder authored
      2003-06-11  Morten Welinder  <terra@gnome.org>
      	* src/stf-parse.h (StfParseOptions_t): Remove parselines member.
      	* src/stf-parse.c (stf_parse_get_longest_row_width): Take a
      	data_end pointer too.  Callers changed.
      	(stf_parse_general): Ditto.
      	(stf_parse_sheet): Ditto, but optional.
      	(stf_parse_region): Ditto, but optional.
      	(stf_parse_options_fixed_autodiscover): Ditto.  Remove data_lines arg.
      	(stf_parse_options_set_lines_to_parse): Delete.
      2003-06-11  Morten Welinder  <terra@gnome.org>
      	* dialog-stf.c (stf_dialog): Nul-terminate result.
      	* dialog-stf.h (DruidPageData_t): Add cur_end member.
  5. 06 Jun, 2003 1 commit
  6. 05 Jun, 2003 3 commits
    • Morten Welinder's avatar
      Delete. · f46fd8bb
      Morten Welinder authored
      2003-06-05  Morten Welinder  <terra@gnome.org>
      	* src/stf.c (stf_read_default_probe): Delete.
      	* src/stf-parse.c (stf_parse_get_rowcount): Delete.
      	(stf_parse_fixed_cell): Make UTF-8 safe.
      	(stf_parse_get_longest_row_width): Ditto.
      	(stf_parse_is_valid_data): Delete.
      2003-06-05  Morten Welinder  <terra@gnome.org>
      	* dialog-stf-fixed-page.c (fixed_page_prepare): Set the number of
      	lines to parse.
      	* dialog-stf-csv-page.c (csv_page_prepare): Ditto.
    • Morten Welinder's avatar
      Name space butchering. · b76b60b0
      Morten Welinder authored
    • Morten Welinder's avatar
      Another round of cleanups. · f754884b
      Morten Welinder authored
      2003-06-05  Morten Welinder  <terra@gnome.org>
      	* dialog-stf*.[ch]: Another round of cleanups.
  7. 04 Jun, 2003 2 commits
  8. 02 Jun, 2003 1 commit
    • Morten Welinder's avatar
      New function. (stf_parse_general): Switch from list <list<string>> to · b3361ef5
      Morten Welinder authored
      2003-06-02  Morten Welinder  <terra@gnome.org>
      	* src/stf-parse.c (stf_parse_general_free): New function.
      	(stf_parse_general): Switch from list <list<string>> to
      	ptrarray<ptrarray<string>>, gaining random access.  All callers
      2003-06-02  Morten Welinder  <terra@gnome.org>
      	* dialog-stf-preview.c (stf_preview_render): Switch from list
      	<list<string>> to ptrarray<ptrarray<string>>, gaining random
      	access.  All callers changed.
  9. 22 May, 2003 1 commit
  10. 20 May, 2003 1 commit
    • Morten Welinder's avatar
      Use GObject methods. (history_menu_item_create): Ditto. Ditto. · 87f1f08e
      Morten Welinder authored
      2003-05-19  Morten Welinder  <terra@gnome.org>
      	* src/history.c (file_history_cmd): Use GObject methods.
      	(history_menu_item_create): Ditto.
      	* src/gui-util.c (popup_item_activate): Ditto.
      	* src/workbook-control-gui.c (workbook_create_standard_toolbar):
      	Use gtk_widget_set_size_request, not gtk_widget_set_usize.
      	(workbook_setup_auto_calc): Ditto.
      	(show_gui): Ditto.
      	(workbook_setup_edit_area): Ditto.  Also don't use an arbitrary
      	pixel count.
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	Use gtk_widget_set_size_request, not gtk_widget_set_usize.
      	* src/gui-util.c (gnumeric_error_info_dialog_new): Use
      	gtk_widget_set_size_request, not gtk_widget_set_usize.  Also base
      	size of window on screen size, not arbitrary pixel counts.
      	* src/sheet-control-gui.c (scg_setup_group_buttons, scg_resize,
      	scg_resize): Use gtk_widget_set_size_request, not
      	* src/workbook-format-toolbar.c: Avoid GNOME deprecated pixmaps.
      	* src/libgnumeric.c (gnm_common_init): Use glade_init, not
      	* src/gui-util.c (gnumeric_position_tooltip): Use gtk_window_move,
      	not deprecated gtk_widget_set_uposition.
      	(gnumeric_clist_moveto): Use "void *" as arg instead of deprecated
      	"GtkCList *" so the many includers of gui-util.h do not get
      2003-05-20  Morten Welinder  <terra@gnome.org>
      	* dialog-stf-preview.c (stf_preview_draw_text,
      	* dialog-stf-main-page.c (main_page_set_scroll_region_and_prevent_center): Ditto.
      	* dialog-stf.c (stf_dialog_set_scroll_region_and_prevent_center): Ditto.
      	* dialog-analysis-tools.c (dialog_ttest_tool, dialog_ttest_tool):
      	Use g_object_[sg]et_data, not gtk_-ditto.
      	* dialog-printer-setup.c (do_hf_customize, hf_customize_apply):
      	* dialog-random-generator.c (dialog_random_realized): Use
      	gtk_widget_set_size_request, not gtk_widget_set_usize.
      	* dialog-analysis-tools.c (dialog_sampling_realized,
      	dialog_ttest_realized): Ditto.
  11. 18 May, 2003 1 commit
  12. 03 Jan, 2003 1 commit
    • Jody Goldberg's avatar
      Support XL's 1904 date convention · c1db9cc7
      Jody Goldberg authored
      2003-01-02  Jody Goldberg <jody@gnome.org>
      	* ms-excel-read.c (excel_read_1904) : Enable 1904 support.
      	* ms-excel-write.c (write_workbook) : Set 1904 flag as necessary.
      2003-01-02  Jody Goldberg <jody@gnome.org>
      	* openoffice-read.c (oo_date_convention) : support 1904 date
      2003-01-02  Jody Goldberg <jody@gnome.org>
      	* applix-read.c (applix_parse_cellref) : warning.
      2003-01-02  Jody Goldberg <jody@gnome.org>
      	* src/xml-io.c (xml_workbook_write) : export quick hack for 1904 date
      	  convention.  The positioning is silly.
      	(xml_workbook_read) : read it back.
      2003-01-01  Jody Goldberg <jody@gnome.org>
      	* gnumeric.desktop.in : Add StartupNotify=true
  13. 05 Dec, 2002 1 commit
  14. 03 Nov, 2002 1 commit
  15. 28 Aug, 2002 1 commit
    • Jody Goldberg's avatar
      begin tighening the include requirements. ditto. ditto. ditto. ditto. · 6917084b
      Jody Goldberg authored
      2002-08-28  Jody Goldberg <jody@gnome.org>
      	* dialog-about.c : begin tighening the include requirements.
      	* dialog-analysis-tools.c : ditto.
      	* dialog-autocorrect.c : ditto.
      	* dialog-autoformat.c : ditto.
      	* dialog-formula-guru.c : ditto.
      	* dialog-goto-cell.c : ditto.
      	* dialog-printer-setup.c : ditto.
      	* dialog-random-generator.c : ditto.
      	* dialog-search-replace.c : ditto. ditto.
      	* dialog-search.c : ditto.
      	* dialog-stf-export-private.h : ditto.
      	* dialog-stf-preview.c : ditto.
      	* dialog-stf.c (stf_dialog_druid_page_cancel) : convert to
      	* dialog-stf-export-sheet-page.c (stf_export_dialog_sheet_page_result)
      	* dialog-stf-export.c (stf_export_dialog_druid_page_cancel) : ditto.
      	* dialog-define-names.c (name_guru_in_list) : no need to be case
      	  insensitive here.
      	* dialog-simulation.c (simulation_ok_clicked_cb) : fix const.
      2002-08-28  Jody Goldberg <jody@gnome.org>
      	* src/func.c (function_marshal_arg) : begin work to support implicit
      2002-08-28  Jody Goldberg <jody@gnome.org>
      	* src/gnumeric-canvas.c : begin tighening the include requirements.
      	* src/gui-file.c : ditto.
      	* src/sheet-object-graphic.c : ditto.
      	* src/sheet-object-widget.c : ditto.
      	* src/xml-io.c : ditto.
      	* src/gutils.c (gnm_extension_pointer) : move to libgsf.
      	(gnm_iconv_close) : ditto.
      2002-08-28  Jody Goldberg <jody@gnome.org>
      	* configure.in : prep for inclusion of libegg code
      	  bump libgsf version req.
      	* src/Makefile.am : ditto.
      	* README : update.
  16. 18 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      New · 2ada9578
      Zbigniew Chyla authored
      2002-08-15  Zbigniew Chyla  <cyba@gnome.pl>
      	* src/gnumeric-i18n.[ch]: New
      	* src/Makefile.am: Added gnumeric-i18n.[ch]
      	* src/gutils.[ch]
      	(g_lang_score_in_lang_list, g_lang_score_is_better): Removed
      	* src/format-template.h
      	(FormatTemplateCategoryGroup, FormatTemplateCategory): Removed lang_score
      	* src/xml-io-autoft.c (gnumeric_xml_read_format_template_category):
      	Don't assign category->lang_score
      	* src/file-autoft.c
      	(category_compare_orig_name): Renamed to
      	category_compare_orig_name_and_dir, compare by both name and directory
      	(category_group_list_get): Don't use lang_score, get translation from
      	the first category in a group. Sorting by name and directory guarantees
      	deterministic results
      	* plugins/applix/applix-read.c, plugins/derivatives/options.c,
      	plugins/dif/dif.c, plugins/excel/boot.c, plugins/excel/ms-excel-read.c,
      	plugins/excel/ms-excel-write.c, plugins/excel/ms-formula-read.c,
      	plugins/excel/ms-formula-write.c, plugins/fn-complex/functions.c,
      	plugins/fn-complex/gsl-complex.c, plugins/fn-database/functions.c,
      	plugins/fn-date/functions.c, plugins/fn-eng/functions.c,
      	plugins/fn-financial/functions.c, plugins/fn-info/functions.c,
      	plugins/fn-logical/functions.c, plugins/fn-lookup/functions.c,
      	plugins/fn-math/functions.c, plugins/fn-random/functions.c,
      	plugins/fn-stat/functions.c, plugins/fn-string/functions.c
      	plugins/gb/plugin.c, plugins/gda/plugin-gda.c, plugins/guile/plugin.c,
      	plugins/guile/smob-value.c, plugins/html/html_read.c,
      	plugins/html/roff.c, plugins/lotus-123/lotus.c, plugins/mps/mps.c,
      	plugins/mps/parser.c, plugins/numtheory/numtheory.c,
      	plugins/oleo/oleo.c, plugins/plan-perfect/pln.c,
      	plugins/psiconv/psiconv-read.c, plugins/python/python.c,
      	plugins/python-loader/python-loader.c, plugins/qpro/qpro-read.c,
      	plugins/sample_datasource/sample_datasource.c, plugins/sc/sc.c,
      	plugins/sylk/sylk.c, plugins/uihello/uihello.c, plugins/xbase/boot.c,
      	plugins/xml_sax/xml-sax-read.c, src/bonobo-io.c, src/clipboard.c,
      	src/cmd-edit.c, src/command-context-stderr.c, src/command-context.c,
      	src/commands.c, src/corba-args.c, src/dates.c,
      	src/dialogs/dao-gui-utils.c, src/dialogs/dialog-about.c,
      	src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      	src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      	src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      	src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-col-width.c,
      	src/dialogs/dialog-consolidate.c, src/dialogs/dialog-define-names.c,
      	src/dialogs/dialog-delete-cells.c, src/dialogs/dialog-formula-guru.c,
      	src/dialogs/dialog-function-select.c, src/dialogs/dialog-goal-seek.c,
      	src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      	src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-merge.c,
      	src/dialogs/dialog-paste-special.c, src/dialogs/dialog-plugin-manager.c,
      	src/dialogs/dialog-preferences.c, src/dialogs/dialog-printer-setup.c,
      	src/dialogs/dialog-random-generator.c, src/dialogs/dialog-row-height.c,
      	src/dialogs/dialog-search-replace.c, src/dialogs/dialog-search.c,
      	src/dialogs/dialog-sheet-order.c, src/dialogs/dialog-simulation.c,
      	src/dialogs/dialog-solver.c, src/dialogs/dialog-stf-export-sheet-page.c,
      	src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-fixed-page.c,
      	src/dialogs/dialog-stf-main-page.c, src/dialogs/dialog-stf-preview.c,
      	src/dialogs/dialog-stf.c, src/dialogs/dialog-summary.c,
      	src/dialogs/dialog-tabulate.c, src/dialogs/dialog-workbook-attr.c,
      	src/dialogs/dialog-zoom.c, src/expr-name.c, src/expr.c,
      	src/file.c, src/format-template.c, src/format.c, src/formats.c,
      	src/func-builtin.c, src/func.c, src/gnumeric-canvas.c,
      	src/gnumeric-graph.c, src/gui-clipboard.c, src/gui-file.c,
      	src/gui-util.c, src/history.c, src/hlink.c, src/item-bar.c,
      	src/item-cursor.c, src/item-edit.c, src/libgnumeric.c,
      	src/main-application.c, src/number-match.c, src/parser.y,
      	src/plugin-loader-module.c, src/plugin-loader.c, src/plugin-service.c,
      	src/plugin-util.c, src/plugin.c, src/print-info.c, src/print.c,
      	src/search.c, src/selection.c, src/sheet-autofill.c,
      	src/sheet-control-gui.c, src/sheet-merge.c, src/sheet-object-bonobo.c,
      	src/sheet-object-container.c, src/sheet-object-graphic.c,
      	src/sheet-object-widget.c, src/sheet-object.c, src/sheet-view.c,
      	src/sheet.c, src/stf-parse.c, src/stf-parse.h, src/stf.c, src/style.c,
      	src/tools/analysis-tools.c, src/tools/auto-correct.c, src/tools/dao.c,
      	src/tools/filter.c, src/tools/random-generator.c,
      	src/tools/simulation.c, src/tools/solver/api.c,
      	src/tools/solver/reports-write.c, src/tools/solver/reports.c,
      	src/tools/solver/solver.c, src/validation.c, src/value-sheet.c,
      	src/value.c, src/widgets/gnumeric-expr-entry.c,
      	src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      	src/workbook-control-gui.c, src/workbook-control.c, src/workbook-edit.c,
      	src/workbook-format-toolbar.c, src/workbook-object-toolbar.c,
      	src/workbook-view.c, src/workbook.c, src/xml-io.c:
      	Use <gnumeric-i18n.h> everywhere
  17. 29 Mar, 2002 1 commit
  18. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      2002-02-15  Jody Goldberg <jody@gnome.org>
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      	* src/formats.c (cell_format_classify) : handle general.
      	* src/file-priv.h : Inherit from GObject.
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      	* src/Makefile.am : distribute the marshaller.list
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      2002-02-11  Jody Goldberg <jody@gnome.org>
      	* src/stf.c (stf_init) : Make the names of the text import/export
  19. 21 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      Commit some spelling fixes. · 6c7ff2c4
      Jody Goldberg authored
      2002-01-21  Jody Goldberg <jody@gnome.org>
      	* ms-obj.c (ms_object_attr_get_*) : new.
      	(ms_obj_read_biff8_obj) : read scrollbar attributes.
      	* ms-excel-read.c (ms_sheet_realize_obj) : Add scrollbars.
      	(ms_sheet_create_obj) : ditto.
      2002-01-20  jody goldberg <jody@gnome.org>
      	* ms-chart.c (BC_R(vector_details)) : use gnm_vector_date.
      2002-01-21  Jody Goldberg <jody@gnome.org>
      	* src/application.c (application_init) : Add scrollbar.
      	* src/sheet-object-widget.c : Add scrollbars.
      	(sheet_widget_checkbox_user_config) : Use gnumeric_table_attach_with_label.
      	(gnumeric_table_attach_with_label) : new util, does no belong here.
      	* src/workbook-object-toolbar.c (cmd_create_scrollbar) : new.
  20. 21 Dec, 2001 1 commit
  21. 13 Dec, 2001 1 commit
    • Andreas J. Guelzow's avatar
      first split is not the end of a column (Bug #66433) alphabetize · f6ee7614
      Andreas J. Guelzow authored
      2001-12-13  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      	* dialog-stf-fixed-page.c (fixed_page_autodiscover) :
      	  first split is not the end of a column (Bug #66433)
      	* dialogs/dialog-analysis-tools.c : alphabetize
      	(dialog_ftest_tool_init) : fix typo (Bug #66880)
      2001-12-13  Andreas J. Guelzow  <aguelzow@taliesin.ca>
      	* src/stf-parse.c (stf_parse_options_fixed_autodiscover) :
      	  Only delete one split for each empty column (Bug #66433)
  22. 01 Nov, 2001 1 commit
  23. 15 Jul, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Honor lines to parse. · 90c07a3d
      Almer S. Tigelaar authored
      2001-07-15  Almer S. Tigelaar  <almer@gnome.org>
      	* stf.c (stf_read_workbook): Honor lines to parse.
      	* gui-clipboard.c (x_selection_to_cell_region): Idem.
      	* stf-parse.c (stf_parse_options_set_lines_to_parse): Don't
      	convert to index it's not an index.
      2001-07-15  Almer S. Tigelaar  <almer@gnome.org>
      	* dialog-stf.[ch] (stf_dialog): Add and set lines member on
      	* dialog-stf-csv-page.c (stf_dialog_csv_page_prepare): Use
      	the importlines for the scrollbar adjustment.
      	* dialog-stf-fixed-page.c (stf_dialog_fixed_page_prepare): Idem.
  24. 04 Jun, 2001 1 commit
    • 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.
  25. 03 Jun, 2001 1 commit
    • 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_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_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
      	(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.
  26. 10 May, 2001 1 commit
    • Almer S. Tigelaar's avatar
      include dialogs.h to supress warning. · 7d048809
      Almer S. Tigelaar authored
      2001-05-10  Almer S. Tigelaar  <almer@gnome.org>
      	* dialog-advanced-filter.c : include dialogs.h
      	to supress warning.
      	* dialog-cell-sort.c (string_pos_in_list): Cast pointer
      	from untyped to char *.
      	* dialog-function-wizard.c (formula_guru_set_expr): Fix
      	signedness by changing variable decl and some casts.
      	(cb_formula_guru_entry_focus_in): Fix signedness by casting,
      	we don't want to pollute our data structures with unsigned
      	(formula_guru_init): Fix signedness by changing decl.
      	* dialog-stf-fixed-page.c (fixed_page_autodiscover):
      	Fix signedness by changing decl.
      	* dialog-stf-preview.c (stf_preview_get_table_pixel_width):
      	Fix signedness by changing decl.
      	(stf_preview_colformats_clear): Idem.
      	(stf_preview_get_column_at_x): Idem.
      	(stf_preview_get_column_border_at_x): Idem.
      	(stf_preview_get_char_at_x): Idem.
      	* dialog-summary.c (dialog_summary_update): Fix signedness by
  27. 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
  28. 10 Sep, 2000 1 commit
    • Almer S. Tigelaar's avatar
      Limit the number of lines displayed in the preview. This is a temporary · d473b0ae
      Almer S. Tigelaar authored
      2000-09-10  Almer S. Tigelaar  <almer1@dds.nl>
      	* src/dialogs/dialog-stf.h: Limit the number of lines
      	displayed in the preview. This is a temporary solution for
      	bug #23426.
      	* src/dialogs/dialog-stf-csv-page.c:
      	(stf_dialog_csv_page_prepare): Ditto.
      	* src/dialogs/dialog-stf-fixed-page.c:
      	(stf_dialog_fixed_page_prepare): Ditto.
      	* src/dialogs/dialog-stf-format-page.c:
      	(stf_dialog_format_page_prepare): Ditto.
      	(format_page_format_changed): Kill memory
      	* src/stf-parse.c:
      	(stf_parse_csv_line): Change to still return
      	something if the maximum number of columns is
      	(stf_parse_fixed_line): Ditto.
      	* src/dialogs/dialog-stf-preview.c:
      	(stf_preview_render): Adjust to only render SHEET_MAX_COLS
      	(stf_preview_get_table_pixel_width): Ditto.
  29. 04 Jul, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Fix column mangling in fixed width import. · f1ab3f8d
      Almer. S. Tigelaar authored
      2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-fixed-page.c :
      	Fix column mangling in fixed width import.
      	* src/dialogs/dialog-stf-format-page.c :
      	Fix USB (==Ugly Selection Bug).
      	* src/stf-parse.c, src/stf-parse.h :
      	(stf_parse_options_fixed_autodiscover) : New!
      	Column autodiscovery for fixed width.
      	* src/dialogs/dialog-stf.glade :
      	Add clear and autodiscovery buttons
      	* src/dialogs/dialog-stf-fixed-page.c :
      	(fixed_page_autodiscover) : Autodiscovery routine.
      	(fixed_page_clear_clicked) : Clear click handler
      	(fixed_page_auto_clicked) : Autodiscovery click handler
  30. 27 May, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      New function. (stf_parse_csv_cell): Modified so it can trim spaces in · c20793a2
      Almer. S. Tigelaar authored
      2000-05-27  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/stf-parse.c:
      	(stf_parse_options_set_trim_spaces): New function.
      	(stf_parse_csv_cell): Modified so it can trim spaces in
      	several ways
      	(stf_parse_fixed_cell): Ditto.
      	(stf_parse_get_longest_row_width) : Fixed small bug which
      	caused incorrect width to be returned.
      	* src/dialogs/dialog-stf.glade:
      	Added trim spaces option and did some general polishing.
      	* src/dialogs/dialog-stf.h:
      	Added new member to DruidPageData_t which indicates weather
      	the user wants to trim spaces and in which way.
      	* src/dialogs/dialog-stf-main-page.c:
      	(stf_dialog_main_page_init): Modified so it loads the trim optionmenu.
      	(main_page_trim_menu_deactivate): New.
      	* src/dialogs/dialog-stf-csv-page.c:
      	(stf_dialog_csv_page_prepare): Now sets the trim member of the parse
      	options struct.
      	* src/dialogs/dialog-stf-fixed-page.c:
      	(stf_dialog_fixed_page_prepare): Now sets the trim member of the
      	parse options struct.
      	(stf_dialog_fixed_page_prepare): Did not honor the from/to line
      	(fixed_page_remove_clicked): Added gnumeric_clist_moveto to make
      	selection visible.
      	(fixed_page_add_clicked): Ditto.
      	* src/dialogs/dialog-stf-format-page.c:
      	(format_page_canvas_button_press_event): Modified to use
      	(format_page_collist_select_row): Ditto.
      	(format_page_format_changed): Ditto.
      	(stf_dialog_format_page_prepare): Ditto.
      	* src/gnumeric-util.c, src/gnumeric-util.h:
      	(gnumeric_option_menu_get_selected_index): New function, Returns
      	the selected index of a GtkOptionMenu. (Originally from
      	* src/dialogs/dialog-stf-export-format-page.c:
      	(stf_export_dialog_option_menu_index): Removed.
      	(sheet_page_separator_menu_deactivate): Modified to use the new
      	(stf_export_dialog_format_page_result): Ditto.
      	* doc/stf-parser.txt:
      	Update documentation.
  31. 08 May, 2000 1 commit
  32. 25 Mar, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Added a stf_dialog prefix to all functions and changed dialog_stf into · 6bee1a9d
      Almer. S. Tigelaar authored
      2000-03-25 Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/dialog-stf.h, src/dialogs/dialog-stf.c : Added a
      	stf_dialog prefix to all functions and changed dialog_stf into
      	stf_dialog, this makes more sense as the same naming convention
      	was used in src/stf-parse.[ch] and src/dialogs/dialog-stf-preview.[ch]
      	* src/dialogs/dialog-stf-main-page.c : idem
      	* src/dialogs/dialog-stf-csv-page.c : idem
      	* src/dialogs/dialog-stf-fixed-page.c : idem
      	* src/dialogs/dialog-stf-format-page.c : idem
      	* src/dialogs/dialog-stf-preview.c : idem
      	* src/stf.c : Uses the renamed functions
      	* src/clipboard.c : idem
  33. 02 Mar, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      src/dialogs/dialog-stf-format-page.c src/dialogs/dialog-stf-preview.c · 41fcdb90
      Almer. S. Tigelaar authored
      2000-03-02  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/dialog-stf-format-page.c
      	* src/dialogs/dialog-stf-preview.c
      	* src/dialogs/dialog-stf-preview.h
      	* src/dialogs/dialog-stf.c
      	Modified, the format page now really display formatted
      	cells in the preview.
      	NOTE : A downside of this is that the cache is no longer shared
      	between fixed/csv pages and format pages.
      	* src/dialogs/dialog-stf.c
      	(dialog_stf_editables_enter) :
      	Disabled "enter activates default button" for the TextIndicator
      	field on the csv page. This would case the page to cycle, which
      	is ok, but it also caused the dropdown option to pop-up on the
      	next page, which is not ok.
      2000-03-02  Jon K Hellan  <hellan@acm.org>
      	* src/dialogs/dialog-stf.c (dialog_stf_druid_page_cancel): In
      	Yes/No dialog - set initial keyboard focus to "No". It went
      	(dialog_stf_set_initial_keyboard_focus): New function: Set
      	keyboard focus to the an appropriate widget on the page.
      	(dialog_stf_druid_page_next, dialog_stf_druid_page_previous): Set
      	initial keyboard focus.
      	(dialog_stf_druid_page_next): Make "Finish" button default on the the
      	final page. This doesn't change behaviour, but cues the user
      	(dialog_stf_druid_page_previous): Restore "Next" button as default
      	when coming from final page.
      	(dialog_stf_check_escape): New function: Watch keypresses, and
      	simulate "Cancel" when you see <Escape>.
      	(dialog_stf_attach_page_signals): Connect dialog_stf_check_escape
      	to handle <Escape>.
      	(dialog_stf_editables_enter): New function: Make <Ret> in text
      	fields activate default.
      	(dialog_stf): Use dialog_stf_editables_enter,
      	dialog_stf_set_initial_keyboard_focus. Make "next" button the
      	default button. Make window a child of the workbook window.
      	* src/dialogs/dialog-stf-format-page.c (format_page_init): Make
      	format list titles passive.
      	* src/dialogs/dialog-stf-fixed-page.c (fixed_page_init): Make
      	column list titles passive.
      	* src/clipboard.c (x_selection_to_cell_region): Add command
      	context to interface. Use it when calling dialog_stf.
      	(x_selection_received): Call x_selection_to_cell_region with
  34. 21 Feb, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      : csv_page_custom_toggled was called twice, removed one. · 39d5acca
      Almer. S. Tigelaar authored
      2000-02-21 Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/dialog-stf-csv-page.c :
      	(csv_page_prepare) : csv_page_custom_toggled was called twice, removed one.
      	* src/stf.c, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-main-page.c,
      	* src/dialogs/dialog-stf-csv-page.c, src/dialogs/dialog-stf-fixed-page.c,
      	* src/dialogs/dialog-stf-format-page.c, src/dialogs/dialog-stf-preview.c
      	Fixed incorrect comments and added function comment headers where they
      	didn't exist. Also moved some includes.
      	* src/dialogs/dialog-stf.h
      	Removed TEXT_VOFFSET, because it is no langer required.
      	* src/dialogs/dialog-stf-preview.h
      	Changed the colours to match the current gnumeric sheet selection color
      	* src/dialogs/dialog-stf-format-page.c
      	(format_page_collist_select_row) : Makes selected row visible
      	(format_page_prepare) : Corrected minor error which caused the format entry to stay empty
      	* src/dialogs/dialog-stf.glade, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h
      	Completely removed the "finish" page of the druid.
      	* src/dialogs/dialog-stf.glade, src/stf-parse.h, src/stf-parse.c
      	Fixed support for colon and added support for new separator
      	symbols : semicolon, pipe, slash, hyphen, bang.
      	separators are now also displayed on the csv page.
      	* src/stf-parse.c
      	(stf_parse_get_colcount) : last line wasn't counted
      	(stf_parse_get_colwidth) : idem
      	* src/stf.h :
      	Removed obsoleted FileSource_t struct type definition.
      	* src/stf.c :
      	(stf_read_workbook) : Detach sheet on parse error.
  35. 18 Feb, 2000 1 commit
    • Miguel de Icaza's avatar
      Remove stf plugin from here. And from here. · 86a1dc8b
      Miguel de Icaza authored
      2000-02-18  Miguel de Icaza  <miguel@gnu.org>
      	* configure.in (EXTRA_GNOME_CFLAGS): Remove stf plugin from here.
      	* plugins/Makefile.am (SUBDIRS): And from here.
      	* src/stf.c (stf_open_and_read): Use malloc instead of g_malloc0
      	because g_malloc aborts execution if the buffer is too large
      	(which it might likely be).
      	(stf_read_workbook): Release using free, not g_free here.
      	(stf_read_workbook): Fix sheet object memory leak.
      	(stf_init): Kill old and unused code.