1. 29 Jun, 2000 1 commit
  2. 20 Jun, 2000 1 commit
  3. 19 Jun, 2000 1 commit
  4. 21 May, 2000 2 commits
  5. 18 May, 2000 1 commit
  6. 10 May, 2000 1 commit
  7. 08 May, 2000 1 commit
    • Jody Goldberg's avatar
      Include but do not compile the · 81630585
      Jody Goldberg authored
          - perl
          - gda
          - plan-perfect
      plugins.
      
      They must be included to avoid problems with translations.  However, they
      are not stable enough to build by default.
      81630585
  8. 01 May, 2000 1 commit
    • Almer. S. Tigelaar's avatar
      Export GNUMERIC_VERSION · 761d1ee7
      Almer. S. Tigelaar authored
      2000-05-01  Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* configure.in:
      	Export GNUMERIC_VERSION
      
      	* acconfig.h:
      	Undefine GNUMERIC_VERSION
      
      	* */Makefile.am:
      	Removed -DGNUMERIC_VERSION, now located in config.h
      
      	* src/functions/Makefile.am, src/dialogs/Makefile.am :
      	VERSION changed to gnumeric_version.
      
      	* plugins/excel/libole2/Makefile.am, plugins/guile/Makefile.am :
      	ditto
      
      	* plugins/perl/Makefile.am :
      	ditto
      761d1ee7
  9. 28 Apr, 2000 1 commit
  10. 27 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Improve versioning. Fix a few bugs. · 2c8b64d0
      Jody Goldberg authored
      Improve versioning.
      Fix a few bugs.
      
      2000-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/command-context.c (gnumeric_error_sys_err) : New function.
      	* src/command-context-gui.c (ccg_error_sys_err) : Support it.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
      
      	* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
      	(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
      
      	* src/plugin.c (load_all_plugins) : Use
      	  gnumeric_usr_plugin_dir, and  gnumeric_sys_plugin_dir.
      
      	* src/item-edit.c (point_is_inside_range) : Handle non-singleton
      	  expr start characters.
      
      2000-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : glade_new_xml -> gnumeric_glade_new_xml
      	  Localize GNUMERIC_GLADEDIR so that plugins can use it too.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
      
      	* */Makefile.am : Set 'DATADIR' rather than GLADEDIR.  And version
      	  the glade file the same way the plugins are set.  This should
      	  probably expand to include architecture akin to gcc.
      
      	* src/widgets/widget-editable-label.c (el_button_press_event) :
      	  Clicking in another window accepts the changes.  Once we have
      	  reliquished our grab push the button event back on the queue
      	  so that it can be forwarded on to the appropriate recipient (9007).
      
      	* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
      	  strings which could start an expression.
      2c8b64d0
  11. 20 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Reorg cell contents and assignment. · bedb925b
      Jody Goldberg authored
      Fixs lots of usability details.
      
      2000-04-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-cell-format.c : Use the edit_pos as the example
      	  not the top left corner.
      
      	* src/functions/fn-stat.c (gnumeric_ftest) : Use eval_pos_cellref
      	  to help localize the strangeness.
      	(gnumeric_ttest) : Ditto.
      
      	* src/xml-io.c (xml_write_cell_and_position) : If this is an array
      	  expression and we are the top left then add attributes to indicate
      	  size of array.  Ignore the rest of the array.
      	(xml_not_used_old_array_spec) : New routinr to handle the old array format.
      	(xml_cell_set_array_expr) : store an array.
      	(xml_read_cell) : Handle the old and the new array formats.
      
      	* src/workbook.c (workbook_close_if_user_permits) : Accept input
      	  first.
      	(wb_edit_key_pressed) : Handle array formulas here.
      	(workbook_detach_sheet) : Do not recalc all if we are exiting.
      	(workbook_start_editing_at_cursor) : When we start editing an
      	  array formula display just the formula not all the extra {}()[][] crap.
      
      	* src/sheet.c (SheetPrivate) : Add a recompute_spans flag.
      	(sheet_calc_spans) : New routine.
      	(sheet_cell_calc_span) : New routine.
      	(sheet_range_calc_spans) : Renamed and extended from
      	  sheet_cells_update.
      	(sheet_update) : Use sheet_calc_spans when necessary.
      	  Update the location region when the edit_pos changes.
      	(cb_recalc_spans_in_col) : Renamed from cb_collect_cells_in_col.
      	  Recalcs spans directly, no need to collect first.
      	(cb_set_cell_content) : New routine to set expr, or expr_and_value.
      	(sheet_range_set_text) : Use cb_set_cell_content, and remember
      	  chosen format with the cell rather than overriding the assigned
      	  format.
      	(sheet_cell_set_text) : Renamed from sheet_set_text.  Be more specific
      	  about how spans, rendering and the rest are handled.
      	(sheet_cell_set_expr) : New routine.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_load_cell_val) : When displaying an array formula add {%s}()[][].
      	(sheet_redraw_cell_region) : Honour spans when redrawing.
      	(sheet_redraw_partial_row) : New routine.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_is_cell_array) : Use cell_is_array.
      	(sheet_range_splits_array) : Renamed from sheet_check_for_partial_array.
      	(sheet_cell_add_to_hash) :  Do not touch spans at this point.
      	(sheet_cell_insert) : Rename from sheet_cell_add made recalc span
      	  optional.
      	(sheet_cell_new) : New routine that does not touch spans.
      	(sheet_cell_remove) : Made redraw optional.
      	(cb_clear_cell_comments) : Remove the cell if there is no comment.
      	(sheet_clear_region) : Remove the cell if there are no comments or
      	  contents.  Flag an update of the status region.
      
      	* src/sheet-view.c (cb_colrow_resize) : New function.
      	(sheet_view_col_size_changed) : Resize all rows, irrespective of
      	(sheet_view_row_size_changed) : existing cells.
      	(sheet_view_redraw_cell_region) : This no longer honours spans.
      
      	* src/sheet-style.c (sheet_style_attach) : Removed call to redraw.
      	sheet_cells_update : rename to sheet_range_calc_spans and move to
      	  sheet.c.
      
      	* src/sheet-autofill.c (autofill_cell) : Use sheet_cell_set_value
      	  rather than set_text.
      
      	* src/selection.c (sheet_selection_changed_hook) : Delete.
      	(sheet_selection_extend_to) : Update the status region to display the
      	  new size.
      	(sheet_selection_cut) : Use sheet_range_splits_array.
      	(selection_check_for_array) : New routine.
      
      	* src/parser.y : Remove icky array formula parsing that conflicted
      	  with array entries.
      
      	* src/number-match.c (format_match) : Return a Value * rather than a
      	  double.
      
      	* src/mstyle.c (mstyle_set_font_size) : Do not allow font sizes < 1.
      
      	* src/main.c (gnumeric_main) : Do NOT create an empty workbook
      	  then delete it if things are successfully loaded.  This causes
      	  a global recalc.  Instead add a flag to disable exit when the
      	  number of workbooks go to zero.  Then only enable the flag AFTER
      	  we have attempted to load the initial workbooks.
      
      	* src/item-grid.c (item_grid_event) : Update the status_region when
      	  button-1 is release.  It should display the edit_pos.
      
      	* src/gutils.c : Move cell_name, col_name, col_from_name,
      	  parse_cell_name, parse_cell_name_or_range and parse_cell_name_list,
      	  to parse-util.c.
      
      	* src/gnumeric.h  : Add RenderedValue.
      
      	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : Move
      	  to parse-util.c
      
      	* src/file.c (workbook_read) : Remove freese thaw usage.
      	  Move call to update AFTER mark clean.
      
      	* src/expr.c (eval_pos_init) : Take a cellpos.
      	(parse_pos_evalpos) : New routine.
      	(eval_pos_cellref) : There is some questionable code scattered in the
      	  functions.  This routing localizes the odd bits for correction.
      
      	* src/eval.c (cell_eval_content) : Use sheet_redraw_cell,
      	  and rendered_value_calc_size.
      	(cell_get_dependencies) : Improve constness.
      
      	* src/corba-sheet.c : Remove the freeze thaw operations.
      	(Sheet_cell_set_formula) : Deleted.
      	(Sheet_range_set_formula) : Delete.
      
      	* src/commands.c : Adjust so that registration of command auto
      	  calls redo.  Add misc checks for splitting arrays.
      
      	* src/clipboard.h : Move the CellCopy types here from cell.h
      
      	* src/clipboard.c (paste_cell) : Use cell_has_expr.
      	  Don't insert the new cell till after its contents are assigned.
      
      	* src/cellspan.c (cell_register_span) : Improve constness.
      	(cell_unregister_span) : Ditto.
      	(row_cell_get_displayed_at) : Delete.
      	(cell_calc_span) : Moved here from cell.c
      
      	* src/dialogs/dialog-stf.glade : Adjust the header background colour
      	  to match the purdy new icon.  Add the icon.
      
      	* src/cell-draw.c : Use the rendered_value routines.
      	  Improve constness.
      
      	* src/analysis-tools.c (set_cell) : Use sheet_cell_fetch.
      
      	*.*
      	    cell_set_* -> sheet_cell_set_
      	    cell_set_*_simple -> cell_set_
      	    Cell::{row,col} -> Cell::{row,col}_info
      	    cell_get_text -> cell_get_entered_text
      	    cell_get_content -> cell_get_entered_text
      	    cell_name -> cell_coord_name
      	    cell_get_formatted_val -> cell_get_rendered_text
      	    cell_get_content -> cell_get_entered_text
      
      	* src/cell.c :
      	(cell_dirty) : Renamed from cell_modified.  Use
      	  sheet_set_dirty.
      	(cell_formula_changed) : Make the queuing of the recalc optional.
      	(cell_cleanout) : Handle union of expression and entered_text,
      	  and remove the rendered value.
      	(cell_copy) : Ditto.
      	(cell_destroy) : handle cell_modified -> cell_dirty.
      	(cell_set_text) : Use parse_text_value_or_expr and store the prefered
      	  format.
      	(cell_set_text_and_value) : New routine.
      	(cell_assign_value) : New routine.
      	(cell_set_value) : Support formats.
      	(cell_set_expr_and_value) : New routine.
      	(cell_set_expr_internal) : Split from cell_set_expr.
      	(cell_set_expr) : Divide to allow for not queuing a recalc.
      	(cell_set_array_formula) : Use cell_set_expr_internal.
      	(cell_is_array) : New utility.
      	(cell_is_partial_array) : New utility.
      	(cell_has_expr) : New utility.
      	(cell_render_value) : Use rendered_value_*.
      	Move all comment routines into cell-comment.[ch].
      
      	* idl/Gnumeric.idl : Remove cell_set_formula, and range_set_formula.
      	  These were identical to set_text.  Made Workbook embeddable.
      bedb925b
  12. 07 Apr, 2000 1 commit
    • Jon K Hellan's avatar
      Replace member name with name_quoted and name_unquoted. In name_quoted, · 699e8bf7
      Jon K Hellan authored
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
              * src/sheet.h (struct _Sheet): Replace member name with
      	name_quoted and name_unquoted. In name_quoted, names with spaces
      	or quote characters are protected with quotes.
      
      	* src/analysis-tools.c (prepare_output): Use
      	workbook_sheet_get_free_name to ensure that we don't create more
      	than one sheet with the same name.
      
      	* src/eval.c (dump_cell_list, sheet_dump_dependencies): Dump
      	sheet->name_unquoted instead of sheet->name.
      
      	* src/expr-name.c (name_sheet_title): Make value from
      	sheet->name_quoted instead of sheet->name. FIXME: Is this correct?
      
      	* src/gnumeric-sheet.c (selection_insert_selection_string): Make
      	selection string from sheet->name_quoted instead of quoting
      	sheet->name here.
      
      	* src/print-info.c (render_tab): Render sheet->name_unquoted
      	instead of sheet->name.
      
      	* src/print-preview.c (create_toplevel): Use sheet->name_unquoted
      	instead of sheet->name in window title.
      
      	* src/selection.c (sheet_selection_to_string, range_to_string):
      	Make reference string from sheet->name_quoted instead of quoting
      	sheet->name here.
      
      	* src/sheet.[ch] (sheet_quote_name): Rename to
      	sheet_name_quote. Take name_unquoted parameter, not a sheet.
      
      	* src/sheet.c (sheet_rename, sheet_new): Set both
      	sheet->name_quoted and sheet->name_unquoted.
      	(sheet_destroy): Free both sheet->name_quoted and
      	name_unquoted.
      	(cellref_name): Make reference from sheet->name_quoted instead of
      	quoting sheet->name here.
      
      	* src/test.c (thrash_sheet): Use sheet->name_unquoted instead of
      	sheet->name in debug output.
      
      	* src/value-sheet.c (value_dump): Dump sheet->name_quoted instead
      	of quoting sheet->name here.
      	(encode_cellref): Use sheet->name_quoted instead of quoting
      	sheet->name here.
      
      	* src/workbook.[ch] (workbook_sheet_get_free_name): Make it more
      	generally useful: Add "base" and "always_suffix" parameters. The
      	caller should now select the base to make the name from
      	(e.g. "Sheet"), and specify whether or not a suffix should be
      	added when the name "base" is not in use.
      
      	* src/workbook.c (insert_sheet_cmd): Use new signature of
      	workbook_sheet_get_free_name.
      	(workbook_rename_sheet): Insert unquoted name in hash table.
      	(sheet_label_text_changed_signal): Remove test for quote
      	characters in sheet name.
      	(sheet_action_delete_sheet): Prompt with name_unquoted instead of
      	name.
      	(sheet_action_rename_sheet, workbook_attach_sheet): Use
      	name_unquoted instead on name.
      	(workbook_detach_sheet): Use sheet->name_unquoted as hash key
      	instead of sheet->name.
      
      	* src/workbook-cmd-format.c
      	(workbook_cmd_format_sheet_change_name): Use name_unquoted instead
      	on name.
      
      	* src/xml-io.c (xml_sheet_write): Output sheet->name_unquoted
      	instead of sheet->name.
      
      	* src/dialogs/dialog-sheet-order.c (dialog_sheet_order_impl): Make
      	list header passive.
      	(add_to_sheet_clist, delete_cb): Substitute sheet->name_unquoted
      	for sheet->name.
      
      	* src/dialogs/dialog-zoom.c (dialog_zoom_impl): Ditto.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* graphic-context.c (graphic_wizard_guess_series): Substitute
      	sheet->name_quoted for sheet->name.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* ms-excel-read.c (ms_excel_set_xf, ms_excel_read_formula,
      	ms_excel_read_sheet):  Use
      	gnum_sheet->name_unquoted instead of gnum_sheet->name in debug
      	output.
      	(ms_excel_read_workbook): Remove unused variable to silence
      	warning.
      
      	* ms-excel-write.c (write_externsheets): Output
      	gnum_sheet->name_quoted instead of gnum_sheet->name. FIXME: Is
      	this correct?
      	(write_sheet): Use gnum_sheet->name_unquoted instead of
      	gnum_sheet->name in debug output.
      	(write_workbook): Output gnum_sheet->name_unquoted instead of
      	gnum_sheet->name.
      
      	* ms-formula-read.c (ms_excel_parse_formula): Use
      	gnum_sheet->name_unquoted instead of gnum_sheet->name in debug
      	output.
      
      	* ms-obj.c (object_anchor_to_position): Ditto.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* html.c (html_write_wb_html32, html_write_wb_html40): Output
      	sheet->name_unquoted instead of sheet->name.
      	(html_read): Gettextize sheet name template.
      
      	* latex.c (html_write_wb_latex, html_write_wb_latex2e):  Output
      	sheet->name_unquoted instead of sheet->name.
      
      	* roff.c (write_wb_roff): Ditto
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* lotus.c (attach_sheet): Remove \n from sheet name. Gettextize
      	sheet name template.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* oleo.c (attach_sheet): Remove \n from sheet name. Gettextize
      	sheet name template.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* pln.c (pln_read_workbook): Use workbook_set_saveinfo instead of
      	workbook_set_filename.
      
      2000-04-08  Jon K Hellan  <hellan@acm.org>
      
      	* text-io.c (writeTextSheet): Output sheet->name_unquoted instead of
      	sheet->name.
      	(readTextWorkbook): Ungettextize name of sheet to
      	create. text_parse_file is supposed to rename it.
      699e8bf7
  13. 23 Mar, 2000 1 commit
    • Jon K Hellan's avatar
      Add "level" parameter. · 16e00012
      Jon K Hellan authored
      2000-03-23  Jon K Hellan  <hellan@acm.org>
      
      	* src/file.[ch] (file_format_register_save): Add "level" parameter.
      
      	* src/file.h: (FileFormatLevel): Add the enum. At the best level,
      	the save command saves to the given name without asking.  At the
      	worst level, no name has been assigned.
      
      	* src/file.c (_FileSaver): Add "level" member.
      	(file_format_unregister_save): Set level to manual for workbooks
      	which had this saver set.
      	(cb_unregister_save): New function. Helper for
      	file_format_unregister_save.
      	(workbook_read): Set save info. Tag as new.
      	(workbook_import): No longer set needs_name - importer will have
      	set file_format_level.
      	(fs_set_filename): New function: Set default filename in the file
      	selection dialog.
      	(workbook_save_as): Use fs_set_filename. Set save info.
      	(workbook_save): Punt to workbook_save_as if file_format_level <
      	AUTO. Save using wb->file_save_fn.
      
      	* src/workbook.[ch] (workbook_set_saveinfo): New function. Set
      	filename, level and save function, but do nothing if we already
      	have info at a higher level.
      
      	* src/workbook.h (struct _Workbook): Replace needs_name with
      	file_format_level. Add file_save_fn member. Include file.h
      	(workbook_set_saveinfo): Add "level" parameter.
      
      	* src/workbook.c (workbook_do_destroy): Insert in history list
      	when file format level > "new". We used to test needs_name.
      	(workbook_is_pristine): Test file_format_level > "new" instead of
      	needs_name true.
      	(workbook_new): Tag workbook as new. Set save function.
      	(workbook_set_filename): needs_name has no longer exists. Don't
      	set it.
      
      	* src/xml-io.c (gnumeric_xml_read_workbook): Set save info. Tag as
      	AUTO.
      	(xml_init): Tag saver as AUTO.
      
      	* src/corba-workbook.c (Workbook_set_filename): Add FIXME comment.
      
      	* src/history.c (history_item_label): Strip extension only when it
      	is ".gnumeric".
      
      	* plugins/dif/dif.c (dif_read_workbook): Set save info, tag as manual.
      	(init_plugin): Tag saver as manual
      
      	* plugins/ecel/boot.c (excel_load): No longer add ".gnumeric"
              to filename. Set save info. Tag filename as MANUAL. We could
              make it AUTO soon.
      	(excel_init): Tag saver as MANUAL.
      
      	* plugins/ff-csv/csv-io.c (csv_read_workbook): Set save info,
              tag as MANUAL.
      	(init_plugin): Tag saver as MANUAL.
      
      	* plugins/html/boot.c (html_init): Tag html savers as AUTO,
              the others as WRITE_ONLY.
      
      	* plugins/lotus-123/boot.c (lotus_load): No longer change
              filename extension to ".gnumeric". Set save info, tag as manual.
      	(LOTUS_TITLE, LOTUS_DESCR): No, we haven't got export.
      
      	* plugins/oleo/boot.c (oleo_load): No longer change filename
              extension to ".gnumeric". Set save info. Tag as MANUAL.
      	(OLEO_DESCR): Fix typo.
      
      	* plugins/plan-perfect/pln.c (pln_read_workbook): Set
              filename, tag it as MANUAL.
      
      	* plugins/sc/sc.c (sc_read_workbook): Set save info, tag as MANUAL.
      
      	* plugins/sylk/sylk.c (sylk_read_workbook): Set save info,
              tag as MANUAL
      
      	* plugins/text/text-io.c (text_read_workbook): Set save info.
              Tag as MANUAL.
      	(text_init): Tag saver as MANUAL.
      
      	* plugins/xbase/boot.c (xbase_load): No longer change filename
              extension to ".gnumeric". Set save info. Tag as MANUAL.
      	(XBASE_TITLE, XBASE_DESCR): No, we haven't got export.
      16e00012
  14. 22 Mar, 2000 1 commit
    • Jody Goldberg's avatar
      Fix span bugs. · 99ec14fe
      Jody Goldberg authored
      2000-03-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_reposition_comments) : Merged from
      	  sheet_reposition_comments_from_row and
      	  sheet_reposition_comments_from_col.
      
      	(sheet_update) : New function.  Use the new update flags from
      	  SheetPrivate that are set in the col/row resize functions
      	  to do delayed resizing and updates.  This allows the resizing to be
      	  batched for an entire logical operation.
      	(sheet_{col,row}_set_size_pixels) : Set the update flags.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_{row,column}_auto_fit) : No need to
      	  worry about redraws.  Use sheet_update.
      	(workbook_cmd_format_{row_height,column_width}) : Ditto.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : No need to
      	  recalculate the spans,  Use the pre-calculated versions.
      	(sheet_view_col_size_changed) : Use sheet_update.
      	(sheet_view_row_size_changed) : Ditto.
      
      	* src/sheet-style.c (re_dimension_cells_cb) : Use cell_calc_dimensions.
      	(sheet_cells_update) : No need to redraw per cell and guess the bound.
      	  It is simpler and more correct to calc dimension per cell, and
      	  redraw the region BEFORE and AFTER to handle spans.
      
      	* src/cell.[ch] (cell_style_changed) : Delete.
      
      	* src/cell-draw.c (cell_draw) : continue syncing with print code.
      	  Be even more careful in the possible presence of style bugs.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      	* src/print-cell.c (print_cell) : Ditto.
      
      	* src/analysis-tools.c (correlation_tool) : Use sheet_update.
      	(covariance_tool) : Ditto.
      	(ttest_paired_tool) : Ditto.
      	(ttest_eq_var_tool) : Ditto.
      	(ttest_neq_var_tool) : Ditto.
      	(ftest_tool) : Ditto.
      
      2000-03-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-private.h : Add status flags to accumulate state changes
      	  for later redraw.
      
      	* src/commands.c (cmd_format_redo) : Use sheet_update
      	  in case the row/col sizes changed due to font size changes.
      	(cmd_format_undo) : Ditto.
      
      	* src/widgets/gtk-combo-box.c (cb_state_change) : Only pseudo-prelight
      	  the display when over the arrow, not vice versa.
      	(gtk_combo_box_init) : Ditto.
      	(gtk_combo_box_set_display) : Ditto.
      
      	* src/sheet.c (sheet_row_get_distance_pts) : Enable reversed indicies.
      	(sheet_col_get_distance_pts) : Ditto.
      
      	* src/plugin.c (plugin_load) : Add more version checking to ensure
      	  that very old plugins that do not check their versions can not be
      	  loaded.
      
      2000-03-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : When
      	  forcing a scroll do a hard reset of the visible ranges.
      	(gnumeric_sheet_compute_visible_ranges) : Ditto.
      	(gnumeric_sheet_set_top_row) : Remove extraneous scroll.
      	(gnumeric_sheet_set_left_col) : Remove extraneous scroll.
      99ec14fe
  15. 24 Feb, 2000 1 commit
    • Michael Meeks's avatar
      Patch from Dom Lachowicz <dominicl@seas.upenn.edu>: · 2bdefefa
      Michael Meeks authored
      	Make the plugin registration process nicer and add user readable
      descriptions;
      
      Also:
      
      2000-02-24  Michael Meeks  <michael@helixcode.com>
      
      	* src/plugin.c (plugin_close): expand.
      
      2000-02-23  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/widgets/widget-color-combo.[ch]:
      	In function color_table_construct() - moved tool_tip in order to
      	plug memory leak(called gtk_tooltips_new() too many times)
      
      	* src/functions/fn-database.c (gnumeric_daverage): add error for
      	-'ive count
      2bdefefa
  16. 16 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      More header cleanup. Remove value.h and sheet.h from expr.h. Remove · c73b937c
      Jody Goldberg authored
      
      2000-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : More header cleanup.  Remove value.h and sheet.h
      	  from expr.h.  Remove sheet.h from cell.h.
      
      2000-02-16  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/plugin-manager.c : Move functionality.
      	* src/dialogs/dialog-plugin-manager.c : here.  and move to libglade.
      
      	* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
      	  of plugin_manager_new.
      c73b937c
  17. 15 Feb, 2000 1 commit
  18. 28 Jan, 2000 1 commit
    • Jon K Hellan's avatar
      Megacommit. · 333a8167
      Jon K Hellan authored
      2000-01-29  Jon K Hellan  <hellan@acm.org>
      
      	Megacommit.
      
      	The purpose of the changeset is twofold:
      
      	1. Use CommandContexts for error reporting for file read/save.
      	2. This allows us to let FileFormatOpen return 0 on success, -1 on
      	   failure, same as FileFormatSave. The convention to return NULL
      	   on success was highly ideosyncratic.
      
      	* src/file.h (FileFormatOpen, FileFormatSave, workbook_load_from,
      	workbook_import): Add CommandContext
      	(FileFormatOpen, workbook_load_from): Return int instead of char*.
      
      	* src/file.c (workbook_load_from, workbook_try_read,
      	workbook_read, workbook_import, workbook_save_as, workbook_save)
      	(file_error_message): Remove function
      	(workbook_read, workbook_load_from, workbook_save_as,
      	workbook_save): Do not display message, message, plugin does -
      	using CommandContext.
      	(workbook_load_from): Return int instead of char*.
      	(workbook_load_from, workbook_import): fo->open returns int
      	instead of char*.
      	(workbook_try_read): Remove msg paramenter
      
      	* src/workbook.c (workbook_persist_file_load,
      	workbook_persist_file_save): Use workbook_command_context_gui.
      	(file_import_cmd): ditto
      	(file_open_cmd): ditto
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Use
      	workbook_command_context_gui. Call workbook_try_read without msg
      	argument.
      
      	* src/workbook.h (workbook_try_read, workbook_read,
      	workbook_save_as, workbook_save): Add command context
      	(workbook_try_read): Remove msg paramenter
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave_callback):
      	ditto
      
      	* src/command-context.[ch] (gnumeric_error_read,
      	gnumeric_error_save): New functions.
      
      	* src/command-context-corba.c (ccc_error_read, ccc_error_save):
      	Ditto.
      	(ccc_init_class): Initialize error_read, error_save.
      
      	* src/command-context-gui.c (ccg_error_read, ccg_error_save):
      	Ditto.
      	(ccg_init_class): Initialize error_read, error_save.
      
      	* src/main.c (gnumeric_main): Make a CommandContext for use before
      	we make first workbook. Unref it when no longer needed. Call
      	plugins_init and workbook_read with CommandContext.
      
      	* src/plugin-manager.c (add_cb): Use gnumeric_error_plugin_problem.
      	(remove_cb): Ditto.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugins_init): Add CommandContext.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugin_unload): Use gnumeric_error_plugin_problem.
      	(plugin_load_plugins_in_dir, load_all_plugins, plugins_init): Add
      	CommandContext.
      
      	* src/xml-io.h:  ditto
      
      	* src/xml-io.c (gnumeric_xml_read_workbook,
      	gnumeric_xml_write_workbook):  ditto
      
      In plugins/dif:
      
      	* dif.c (dif_read_workbook, dif_write_workbook): Add
      	CommandContext.
      	(dif_read_workbook): Return 0 on success, -1 on failure.
      	 Use gnumeric_error_read to report errors.
      
      In plugins/excel:
      
      	* excel.h (ms_excel_read_workbook, ms_excel_write_workbook) Add
      	CommandContext. Return int.
      
      	* ms-excel-read.c (ms_excel_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to display messages.
      
      	* ms-excel-write.c (write_sheet): Check max no. of rows for the
      	format.
      	(new_sheet): Return the ExcelSheet. Let caller add it to
      	wb->sheets.
      	(pre_pass): Add CommandContext.
      	(free_workbook): New function, previously in write_workbook.
      	(write_workbook): Change parameter from Workbook to ExcelWorkbook.
      	Move deallocation to free_workbook.
      	(check_sheet): New function. Check if we are able to save the
      	sheet.
      	(ms_excel_check_write): New function. Check if we are able to save
      	to the file. Do initialization previously in
      	ms_excel_write_workbook.
      	(ms_excel_write_workbook): Add CommandContext. Add state. Change
      	wb from Workbook to ExcelWorkbook. Use gnumeric_error_save to
      	report problems. Return 0 on success, -1 on failure.
      
      	* ms-excel-biff.h: Define enum for max no. of rows. Fix typo.
      
      	* boot.c (excel_load, excel_save, excel_save_98, excel_save_95):
      	Add CommandContext.
      	(excel_load): Return 0 on success, -1 on failure.
      	Use gnumeric_error_read to display messages. Remove "Opening .. "
      	message on stdout.
      	(excel_probe_write): New function. Check if we are able to save to
      	the file.
      	(excel_save): Use gnumeric_error_save to display messages.
      	Return 0 on success, -1 on failure.
      
      In plugins/ff-csv:
      
      	* csv-io.c (csv_read_workbook, csv_write_workbook,
      	csv_parse_sheet, csv_parse_field): Add CommandContext. Return 0 on
      	success, -1 on failure. Use gnumeric_error_read to report errors.
      
      In plugins/ff-stf:
      
      	* dialog-stf.h: Add CommandContext. Return int.
      
      	* dialog-stf.c (dialog_stf) : Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* stf.c (stf_read_workbook): Ditto.
      
      In plugins/html:
      
      	* epsf.h (epsf_write_wb): Add CommandContext.
      
      	* epsf.c (epsf_write_wb): ditto.
      
      	* latex.h (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* latex.c (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* html.h (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto.
      	(html_read): Return int.
      
      	* html.c (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto
      	(html_read): Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/lotus-123:
      
      	* lotus.c (lotus_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors. Close
      	file unconditionally.
      	(read_workbook): Return 0 on success, -1 on failure. Remove unused
      	panic_message variable.
      
      	* lotus.h (lotus_read): Add CommandContext. Return int.
      
      	* boot.c (lotus_load): Ditto
      
      In plugins/oleo:
      
      	* oleo.c (oleo_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* oleo.h (oleo_read): Add CommandContext. Return int.
      
      	* boot.c (oleo_load): Ditto.
      
      In plugins/plan-perfect:
      
      	* pln.c (pln_parse_sheet, pln_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/sc:
      
      	* sc.c (sc_read_workbook, sc_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure.  Use
      	gnumeric_error_read to report errors.
      
      In plugins/sylk:
      
      	* sylk.c (sylk_read_workbook, sylk_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/text:
      
      	* text-io.c (text_read_workbook, text_write_workbook,
      	readTextWorkbook): Add CommandContext.
      	(text_read_workbook, readTextWorkbook): Return 0 on success, -1 on
      	failure.
      	(readTextWorkbook): Use gnumeric_error_read to report errors.
      
      In plugins/xbase:
      
      	* xbase.h (xbase_open): Add CommandContext.
      
      	* xbase.c (xbase_open): Add CommandContext. Remove progress
      	message to stdout. Use gnumeric_error_read to report errors.
      
      	* boot.c (xbase_load): Add CommandContext. Return 0 on success, -1
      	on failure.
      333a8167
  19. 15 Jan, 2000 2 commits
    • JP Rosevear's avatar
      Shutup CVS · fda49b7d
      JP Rosevear authored
      
      2000-01-15  JP Rosevear  <jpr@arcavia.com>
      
              * Shutup CVS
      fda49b7d
    • JP Rosevear's avatar
      Shutup CVS · 4ad9abe1
      JP Rosevear authored
      2000-01-15  JP Rosevear  <jpr@arcavia.com>
      
      	* Shutup CVS
      4ad9abe1
  20. 13 Jan, 2000 1 commit
  21. 11 Jan, 2000 1 commit
  22. 02 Jan, 2000 1 commit
  23. 30 Dec, 1999 2 commits
    • Miguel de Icaza's avatar
      New macro, copied from Evolution. We need to refactor our code in Gnumeric · 87152856
      Miguel de Icaza authored
      1999-12-30  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE): New macro, copied
      	from Evolution.  We need to refactor our code in Gnumeric to use
      	this macro.
      
      	* src/workbook.c (workbook_do_destroy): Destroy the per-workbook
      	context here.  Hardcoded to be a GUI context for now.
      	(workbook_new): Create the context here.
      	(workbook_command_context_gui): This routine is now the one that
      	returns the command context.
      
      	* src/gnumeric.h: Added CommandCOntext typedef here.
      
      	* All files: renamed CmdContext to CommandContext.
      	renamed command_context_gui to workbook_command_context_gui.
      
      	* src/workbook-view.c: Removed the GUI_CmdContext class setup.
      	* src/command-context.c: Replaced the ad-hoc object system with a
      	GtkObject-based system.
      87152856
    • Jody Goldberg's avatar
      Have the file loaders return error messages. · 661da0e0
      Jody Goldberg authored
      1999-12-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/file.c (workbook_load_from) : The 'open' functions return error
      	  strings now.  Success == NULL, standard error == "", custom error
      	  which needs to be freed is everything else.
      	(workbook_try_read) : An optional argument in which to store error
      	  messages returned by the loaders.
      	(file_error_message) : Support the custom error messages.
      	(workbook_read) : Ditto.
      
      	* src/xml-io.c (xml_workbook_read) : Return simple error strings.
      661da0e0
  24. 29 Dec, 1999 2 commits
    • Jody Goldberg's avatar
      - Return enum from init_plugin. · 63577437
      Jody Goldberg authored
      - Suppress some warnings.
      63577437
    • Jody Goldberg's avatar
      - Initial usage of the new exception mechanisms. · f8206c57
      Jody Goldberg authored
      - Improve versioning of the plugins.
      - Some bug fixes.
      
      1999-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (command_context_gui,
      				gui_splits_array,
      				gui_plugin_problem,
      				command_context_gui_cast) : New functions.
      
      	* src/workbook.c (workbook_new) : Switch to using the workbook_view
      	  routines to manipulate the undo/redo and paste/paste_special menu
      	  items.
      
      	* src/func.c (function_iterate_argument_values) : Return an error
      	  for empty/missing arguments.
      
      	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.
      
      	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
      	  Call plugin_version_mismatch to do some minimal version matching for
      	  plugins and the running application.
      
      	* src/Gnumeric.idl : Add PluginProblem.
      
      	* src/command-context.[ch] (gnumeric_error_splits_array,
      				    gnumeric_error_plugin_problem,
      				    command_context_vtbl_init) : New functions.
      
      	* src/plugin.c (plugin_version_mismatch) : New function.
      	  (plugin_load) : Hard code a GUI context for now.
      	                  Switch to using gnumeric_error_ routines.
      			  Pass a CmdContext to the init_plugin routines.
      			  Only produce an error if the plugin returns -1.
      			  Store the plugin filename.
      	  (plugin_unload) : Free the filename on exit.
      
      	* *.c : command_context_gui now takes a Workbook argument.
      	      : Switch from gnumeric_no_modify_array_notice
      	                 to gnumeric_error_splits_array in most places.
      f8206c57
  25. 28 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Fix some boneheadedly simple errors with plugins and begin to adopt a standard · b65f5041
      Jody Goldberg authored
      convention to avoid such sillyness in the future.
      
      1999-12-27  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Re-enable the python plugin by default.
      
      	* src/plugin.c (load_all_plugins) : Search in a version specific
      	  directory.
      
      	* plugins/*/Makefile.am : Install in
      	      <prefix>/lib/gnumeric/plugins/${VERSION}
      	  to decrease the number of silly version problems.
      	  Adjust the plugin names to follow the convention
      	      libgnum_<name>.so
      	  to avoid problems like the python plugin 'libpython.so'
      	  depending on the python libraries with the same name.
      b65f5041
  26. 03 Dec, 1999 1 commit