GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 21 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      Release 0.70 · d2b0f9ee
      Jody Goldberg authored
      2001-08-20  Jody Goldberg <jgoldberg@home.com>
      
      	* Release 0.70
      d2b0f9ee
  2. 17 Aug, 2001 1 commit
  3. 12 Aug, 2001 1 commit
    • Jody Goldberg's avatar
      Release 0.69 · c3e8a80b
      Jody Goldberg authored
      2001-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* Release 0.69
      c3e8a80b
  4. 18 Jul, 2001 1 commit
  5. 14 Jul, 2001 1 commit
    • Chyla Zbigniew's avatar
      New. (error_info_new_printf): Use error_info_new_vprintf. · 3537beaf
      Chyla Zbigniew authored
      * src/error-info.[ch]
      (error_info_new_vprintf): New.
      (error_info_new_printf): Use error_info_new_vprintf.
      (error_info_peek_message): Constified.
      
      * src/command-context-priv.h (struct CommandContextClass): Added
      error.error_info virtual.
      
      * src/command-context.[ch] (gnumeric_error_error_info): New.
      
      * src/io-context.[ch]
      (gnumeric_io_error_system, gnumeric_io_error_read,
      gnumeric_io_error_save): Use gnumeric_io_error_string.
      (gnumeric_io_error_string): New.
      (gnumeric_io_error_display): Renamed from
      gnumeric_io_error_info_display. Use CommandContext's virtual -
      gnumeric_error_error_info.
      (gnumeric_io_error_info_clear, gnumeric_io_has_error_info): Removed.
      s/gnumeric_io_clear_error/gnumeric_io_error_clear
      s/gnumeric_io_error_info_push/gnumeric_io_error_push/
      s/gnumeric_io_error_info_pop/gnumeric_io_error_pop/
      
      * src/gnumeric-util.c
      (ctree_insert_error_info): Automatically expand most nodes (don't expand
      nodes with siblings).
      (gnumeric_error_info_dialog_show_full): Renamed from
      gnumeric_error_info_dialog_show. Display only a tree with error
      details. Don't hardcode ctree column width, make ctree look nicer (no
      lines, triangles as icons).
      (gnumeric_error_info_dialog_show): New function, displays only main part
      of the error and (optionally) "Show details" button. Use standard
      gnome_message_box.
      
      * src/plugin-util.c (gnumeric_fopen_error_info,
      gnumeric_mmap_error_info): Use error_info_new_from_errno.
      (gnumeric_open_error_info): Use error_info_new_from_errno,
      added missing *ret_error.
      
      * src/workbook-control-gui.c (wbcg_error_error_info): New
      (implementation of CommandContext's virtual).
      (workbook_control_gui_ctor_class): Use it here.
      
      * src/workbook-view.c (wb_view_save_as, wb_view_save,
      wb_view_open_custom): Don't use removed gnumeric_io_has_error_info.
      3537beaf
  6. 29 Jun, 2001 1 commit
  7. 27 Jun, 2001 1 commit
  8. 29 May, 2001 1 commit
  9. 21 May, 2001 1 commit
  10. 20 May, 2001 1 commit
  11. 17 Mar, 2001 1 commit
  12. 24 Feb, 2001 1 commit
  13. 20 Feb, 2001 1 commit
    • Jon K Hellan's avatar
      Add level FILE_FL_MANUAL_REMEMBER. Fix typos: FILE_SAVER_ID_INVAID -> · caa620c4
      Jon K Hellan authored
      2001-02-19  Jon K Hellan  <hellan@acm.org>
      
      	* src/file.h: Add level FILE_FL_MANUAL_REMEMBER. Fix typos:
      	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID,
      	FILE_OPENER_ID_INVAID -> FILE_OPENER_ID_INVALID.
      
      	* src/file.c (file_format_register_open): Fix typo:
      	FILE_OPENER_ID_INVAID -> FILE_OPENER_ID_INVALID.
      	(file_format_register_save): Fix typo: FILE_OPENER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      	(cb_unregister_save, workbook_save): Fix
      	typo: FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.
      
      	* src/workbook.c (workbook_destroy): Only include in history is
      	file_format_level >= FILE_FL_MANUAL_REMEMBER.
      	(workbook_new, workbook_set_saveinfo): Fix typo:
      	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.
      
      	* src/xml-io.c: Fix typos: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID, FILE_OPENER_ID_INVAID ->
      	FILE_OPENER_ID_INVALID.
      
      
      	* plugins/applix/boot.c (applix_load): Change file format level to
      	FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      
      
      	* plugins/excel/boot.c (excel_load, excel_init): Change file
      	format level to FILE_FL_MANUAL_REMEMBER.
      
      
      	* plugins/lotus/boot.c (lotus_load): Change file format level to
      	FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      
      	* plugins/oleo/boot.c (oleo_load): Change file format level to
      	FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      
      	* plugins/plan-perfect/pln.c (pln_read_workbook): Fix typo:
      	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.
      
      	* plugins/sc/sc.c (sc_read_workbook): Fix typo:
      	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.
      
      	* plugins/sylk/sylk.c (sylk_read_workbook): Change file format
      	level to FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID
      	-> FILE_SAVER_ID_INVALID.
      
      	* plugins/xbase/boot.c (xbase_load): Change file format level to
      	FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      
      	* plugins/xml2/xml2.c (xml2_open): Change file format level to
      	FILE_FL_MANUAL_REMEMBER. Fix typo: FILE_SAVER_ID_INVAID ->
      	FILE_SAVER_ID_INVALID.
      caa620c4
  14. 17 Feb, 2001 1 commit
  15. 12 Feb, 2001 1 commit
  16. 18 Dec, 2000 2 commits
  17. 16 Dec, 2000 1 commit
    • Morten Welinder's avatar
      avoid unaligned accesses. (parse_list_pop): Flag errors as such, not as · 10f6b59c
      Morten Welinder authored
      2000-12-15  Morten Welinder  <terra@diku.dk>
      
      	* lotus-formula.c: avoid unaligned accesses.
      	(parse_list_pop): Flag errors as such, not as strings.
      
      	* lotus.c: avoid unaligned accesses.
      	(read_workbook): Validate first record.  Plug leak.
      	(append_zeros): Turbo version.
      
      	* boot.c (lotus_probe): Check for magic header.
      	(filename_ext): Skip extensions in directory names.
      10f6b59c
  18. 08 Dec, 2000 1 commit
  19. 18 Nov, 2000 1 commit
  20. 14 Nov, 2000 1 commit
  21. 31 Oct, 2000 2 commits
    • Morten Welinder's avatar
      Handle endianess in gutils.c only. · 9726cb7f
      Morten Welinder authored
      9726cb7f
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · b5a85def
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      b5a85def
  22. 10 Oct, 2000 1 commit
  23. 28 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      new function. · 93f11589
      Jody Goldberg authored
      
      2000-06-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-sheet.c (GNUMERIC_VERSION) : new function.
      
      	* src/workbook.c (workbook_do_destroy) : No need to release the
      	  clipboard here.  The Sheet does it for us.
      
      	* src/workbook-format-toolbar.c : Add Fill to the default money
      	  format.
      
      	* src/symbol.c : The only symbols are functions.  The global table
      	  should not be world visible.
      
      	* src/sheet.c (sheet_flag_status_update_cell) : Take a CellPos.
      	(sheet_get_extent_cb) : Use Cell::pos rather than adding an
      	  indirection.
      	(cb_set_cell_content) : Use StyleFormat.
      	(sheet_cell_set_value) : Call sheet_flag_status_update_cell.
      	(sheet_cell_set_value) : Ditto.
      	(sheet_destroy) : Prepare to clear out named expressions.
      	(colrow_move) : Handle changes in cell_relocate signature.
      	(sheet_move_range) : Ditto.
      
      	* src/sheet-autofill.c : Use StyleFormats.
      
      	* src/position.c (parse_pos_init) : Global position are permitted.
      
      	* src/parser.y : Large change.  Do not automaticlly look for function
      	  names or named expressions in the lexer.  The lexer returns STRING
      	  and QUOTED_STRING.  The parser then does the appropriate lookups to
      	  potentially convert to something else.  This allows us to have sheet
      	  names that are the same as functions.
      
      	* src/parse-util.c (cellref_name) : Add flag to optionally disable the
      	  addition of the sheet name.  This is useful when printing
      	  Sheet2!A1:A3 rather than Sheet2!A1:Sheet2!A3.
      
      	* src/number-match.c (format_create_regexp) : Handle fill formats.
      
      	* src/mstyle.c (mstyle_get_border) : Fix constness.
      
      	* src/mathfunc.c (combin, fact) : Moved these here from
      	  functions/fn-math.c
      
      	* src/main.c (gnumeric_main) : No more constants_init, or
      	  global_symbol_init.
      
      	* src/func.c () : Reorg.  Remove some dead code.  Begin adding
      	  workbook local function support, Begin adding volatile, and
      	  semi-volatile functions.  Move the use of SymbolTable internal
      	  in preparation for eliminating it.
      
      	* src/format.c (format_number) : Improve support for pound, yen, and euro.
      	  Remember to produce a number when we hit spacing.
      
      	* src/expr.c : Have ExprFunc refer directly to the FunctionDefinition
      	  We still use a SymbolTable internally, but that will be merged out
      	  later.
      
      	* src/expr-name.c : Major reorg.  Not complete.
      
      	* src/corba-sheet.c (fill_corba_value) : Adjust to changes in
      	  cellref_name signature.
      
      	* src/commands.c (cmd_set_date_time_undo) : No need to manually call
      	  update_cell_flag.  cell_remove, and cell_set_text do that for us.
      	(cmd_set_date_time_redo) : Ditto.
      	  Use StyleFormat.
      
      	* src/clipboard.c (paste_cell) : Take the ExprRewriteInfo as an
      	  argument.
      	(clipboard_paste_region) : Init the ExprRewriteInfo.  We need to do
      	  this here rather than in cell_relocate because we may be moving a
      	  region, not just a single cell, and references within the region
      	  should not be changed.
      
      	* src/cell.c (cell_relocate) : Take the relocation info as an
      	  argument.  Non NULL indicates a request to check bounds.  We can not
      	  do this at the cell level. becuase we may be moving a block rather
      	  than just a single cell, and references into the block should NOT be
      	  rewritten.
      	(cell_set_text_and_value) : Take a StyleFormat.
      	(cell_assign_value) : Ditto.
      	(cell_set_value) : Ditto.
      	(cell_set_expr_internal) : Ditto.
      	(cell_set_expr_unsafe) : Ditto.
      	(cell_set_expr) : Ditto.
      
      	* src/auto-format.c (do_af_suggest) : Expression now refers directly
      	  to functionDef.
      93f11589
  24. 20 Jun, 2000 1 commit
  25. 19 Jun, 2000 1 commit
  26. 21 May, 2000 1 commit
  27. 10 May, 2000 1 commit
  28. 07 May, 2000 1 commit
  29. 06 May, 2000 1 commit
  30. 01 May, 2000 1 commit
  31. 07 Apr, 2000 3 commits
    • 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
    • Jody Goldberg's avatar
      Fix minor thinko in eval_expr. · 0f4097ca
      Jody Goldberg authored
      Improve status update after load.
      
      2000-04-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (gnumeric_xml_read_workbook) : No need to recalc, the
      	  loader handles it.
      
      	* src/file.c (workbook_read) : Do a recalc and sheet_update after loading.
      	  Wrap entire process in deep_{freeze,thaw}.
      
      	* src/expr.c (eval_expr) : Fix thinko.
      0f4097ca
    • Jody Goldberg's avatar
      Fix http://bugs.gnome.org/db/85/8506.html · 18e5debc
      Jody Goldberg authored
      Mixed mode references are evil.
      
      A bit of interface improvement for gtk-combo-text
      
      2000-04-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-string.c : Add func 'expression' to return text of
      	  formula.
      
      	* src/parser.y : It is illegal to write A1:Sheet2!A3.
      
      	* src/value.c (value_new_cellrange) : Take the eval pos so that we can
      	  correctly invert mixed mode references when necessary.
      
      	* src/expr.c (cell_ref_make_abs) : New routine.
      	(expr_relocate) : Handle changes in value_new_cellrange.
      	* src/func.c (function_marshal_arg) : Ditto.
      	* src/ranges.c (range_parse) : Ditto.
      
      	* src/corba-sheet.c (Sheet_cell_set_value) : No need to check these
      	  references.  They seem to be hard coded to be relative.
      
      	* src/functions/fn-lookup.c (gnumeric_offset) : Begin to handle
      	  relative references.
      
      	* src/sheet.c (cellref_get) : Simplify the logic a smidge.
      
      	* src/workbook.c (workbook_finish_editing) : Restore the edit area
      	  manually for now.  We may need to make the update flags finer grain.
      18e5debc
  32. 31 Mar, 2000 1 commit
    • Michael Meeks's avatar
      kill old old comments. · 270e2714
      Michael Meeks authored
      2000-03-31  Michael Meeks  <michael@helixcode.com>
      
      	* lotus.c (read_workbook): kill old old comments.
      
      2000-03-31  Stephen Wood  <saw@genhomepage.com>
      
      	* lotus-formula.c (functions): Add arg count to most functions.
      	* lotus.c (cell_set_format_from_lotus_format): New routine
      	(read_workbook): Read lotus format for each cell and set
      	corresponding format in gnumeric sheet.
      
      2000-03-24  Stephen Wood  <saw@genhomepage.com>
      
      	* lotus-formula.c (functions): Set args of DATE to 3.
      	(sign_extend): Extend sign from bit 13 instead of 14.
      	(get_cellref): Don't compute absolute reference when importing
      	relative references.
      	(lotus_parse_formula): Be more careful with pointer arithmetic.
      270e2714
  33. 25 Mar, 2000 2 commits
    • Stephen Wood's avatar
      Apply newer lotus patch from Stephen · f6cfdc0d
      Stephen Wood authored
          Jody
      
      2000-03-24  Stephen Wood  <saw@genhomepage.com>
      
      	* lotus-formula.c (functions): Set args of DATE to 3.
      	(sign_extend): Extend sign from bit 13 instead of 14.
      	(get_cellref): Don't compute absolute reference when importing
      	relative references.
      	(lotus_parse_formula): Be more careful with pointer arithmetic.
      f6cfdc0d
    • Michael Meeks's avatar
      fix for relative referencing. · 6f3c26e9
      Michael Meeks authored
      6f3c26e9
  34. 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
  35. 30 Jan, 2000 1 commit
    • Jon Kåre Hellan's avatar
      Checked error reporting in plugins. · 5a22e1df
      Jon Kåre Hellan authored
      In plugins/dif:
      
              * dif.c	(dif_write_workbook): Improve reporting.
      
      In plugins/ff-csv
      
      	* csv-io.c (csv_write_workbook): Ditto.
      
      In plugins/ff-stf
      
      	* dialog-stf.c (dialog_stf): Return -1 on cancel, 0 otherwise.
      
      In plugins/html
      
      	* roff.c (write_wb_roff): Check missing style.
      	(html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): Check popen result.
      	(write_wb_roff): Add command context.
      
      	* epsf.c (epsf_write_wb): Call gnumeric_error_save on
      	failure.
      
      	* html.c (html_write_wb_html32, html_write_wb_html40): Ditto.
      
      	* latex.c (html_write_wb_latex, html_write_wb_latex2e)): Call
      	gnumeric_error_save on failure. Dont't panic on missing style.
      
      In plugins/lotus-123
      
      	* lotus.c (read_workbook): Add CommandContext.
      
      In plugins/oleo
      
      	* oleo.c (oleo_read): Really return 0 on success.
      
      In plugins/text
      
      	* text-io.c (text_write_workbook): Call gnumeric_error_save on
      	failure.
      
      In plugins/xbase
      
      	* boot.c: Ditto.
      5a22e1df