1. 31 Jan, 2000 8 commits
  2. 30 Jan, 2000 7 commits
    • Matthias Warkus's avatar
      4782211a
    • Matthias Warkus's avatar
      Removed old icon. · 8ff8875f
      Matthias Warkus authored
      8ff8875f
    • Jon Kåre Hellan's avatar
      Call gnumeric_error_save on failure. · cbbf9397
      Jon Kåre Hellan authored
      	* text-io.c (text_write_workbook): Call gnumeric_error_save on
      	failure.
      cbbf9397
    • Yuan-Chung Cheng's avatar
      096af80f
    • 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
    • Jon K Hellan's avatar
      Call gnumeric_error_save on failure. · 489fa515
      Jon K Hellan authored
      2000-01-31  Jon K Hellan  <hellan@acm.org>
      
      	* plugins/dif/dif.c (dif_write_workbook): Call
                gnumeric_error_save on failure.
      
      	* plugins/ff-csv/csv-io.c (csv_write_workbook): Call
      	gnumeric_error_save on failure.
      489fa515
    • Jon K Hellan's avatar
      Never return -1 without calling gnumeric_error_read · 032b1452
      Jon K Hellan authored
      2000-01-31  Jon K Hellan  <hellan@acm.org>
      
      	* src/xml-io.c (gnumeric_xml_read_workbook): Never return -1
      	without calling gnumeric_error_read
      	(gnumeric_xml_write_workbook): s/read/write/
      
      	* src/file.c (workbook_load_from): Report read failure if all
      	probes fail.
      032b1452
  3. 29 Jan, 2000 12 commits
    • Jon K Hellan's avatar
      Correct the max no. of rows check. · 0e4df4a3
      Jon K Hellan authored
      2000-01-30  Jon K Hellan  <hellan@acm.org>
      
      	* ms-excel-write.c (write_sheet): Correct the max no. of rows check.
      0e4df4a3
    • EST 2000 Gregory McLean's avatar
      Added in some logic to autogenerate the catalog's file spec. · c55174ba
      EST 2000 Gregory McLean authored
      Sun Jan 30 15:40:50 EST 2000 Gregory McLean <gregm@comstar.net>
      
              * gnumeric.spec.in: Added in some logic to autogenerate the
              catalog's file spec.
      c55174ba
    • Jody Goldberg's avatar
      1d6ef10e
    • Jody Goldberg's avatar
      Reload the edit area with the current cell's value when an edit is · 9f251eee
      Jody Goldberg authored
      
      2000-01-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_cancel_pending_input) : Reload the edit area with
      	   the current cell's value when an edit is canceled.
      9f251eee
    • Jody Goldberg's avatar
      - Reload the edit bar after a paste · b6ba212e
      Jody Goldberg authored
      - Delete duplicate func decl.
      b6ba212e
    • Jody Goldberg's avatar
      Remove duplicate decl. · 29d1cc62
      Jody Goldberg authored
      
      
      2000-01-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.h (gnumeric_sheet_stop_cell_selection) : Remove
      	  duplicate decl.
      
      	* src/item-grid.c : Remove unused enum SELECTING_CELL_RANGE.
      
      	* src/application.[ch] (application_workbook_get_by_{index,name}) :
      	  New functions.
      
      	* src/selection.c (sheet_selection_paste) : Reload the edit field when
      	  finished. The current cell may have changed.
      29d1cc62
    • Timur I. Bakeyev's avatar
      AM_GNU_GETTEXT changed to AM_GNOME_GETTEXT - that makes proper · 08f7098e
      Timur I. Bakeyev authored
      
      2000-01-30  Timur I. Bakeyev  <timur@gnu.org>
      
      	* configure.in: AM_GNU_GETTEXT changed to AM_GNOME_GETTEXT - that
      	makes proper substitution for INTLLIBS variable.
      08f7098e
    • Jody Goldberg's avatar
      Fix some bugs in the previous edit changes. · a4aae952
      Jody Goldberg authored
      2000-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_accept_pending_input) : Use
      	  gnumeric_sheet_destroy_editing_cursor.
      
      	* src/workbook.c (workbook_realized) : Delete unused function.
      	(accept_input) : Force the sheet into edit mode when a user activates
      	  the edit bar.
      a4aae952
    • Jody Goldberg's avatar
      Correct the error handling · c668b718
      Jody Goldberg authored
      c668b718
    • Jody Goldberg's avatar
      Fix typo. · 9f8de10c
      Jody Goldberg authored
      9f8de10c
    • Jon K Hellan's avatar
      Return int Return 0 on success, -1 on failure. Use gnumeric_error_read to · cce5003d
      Jon K Hellan authored
      2000-01-30  Jon K Hellan  <hellan@acm.org>
      
      	* src/xml-io.h (gnumeric_xml_read_workbook): Return int
      	* src/xml-io.c (gnumeric_xml_read_workbook): Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to display messages.
      cce5003d
    • Jody Goldberg's avatar
      - Do NOT clear a cell and save its value when we start editing. I assume this · 523b03fc
      Jody Goldberg authored
        was done so that contents of spanning cells would not be visible when editing
        began.  Rather than doing that I've adjusted the grid to pretend the cell
        being edited is empty.
      
      - Some cleanup editing and assigning text into cells.  Still can not directly
        call redo from the cmd.  Something screws up the memory associated with the
        text entry widget ??
      
      2000-01-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_set_text_undo) : Special case VALUE_EMPTY.
      	  Move to the previous cell only after reverting its value so that the
      	  edit area is updated.
      	(cmd_set_text) : Retrieve the old text of the cell directly.
      
      	* src/sheet.c (sheet_set_current_value) : Delete and merge into...
      	(sheet_accept_pending_input) : Here.  Harmonize the logic with.
      	(sheet_cancel_pending_input) : this function.
      	(sheet_set_text) : Publicize.
      	(sheet_stop_editing) : Removed storage of value of cell being edited.
      	(sheet_start_editing_at_cursor) : Ditto.
      
      	* src/workbook.c (accept_input) : Use sheet_accept_pending_input.
      	(redo_cmd, undo_cmd) : cancel pending input.
      
      2000-01-28  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_draw) : Pretend that the cell being
      	  edited (and anything it spans) are empty.
      
      	* src/sheet.c (sheet_duplicate_colrow) : Delete unused.
      523b03fc
  4. 28 Jan, 2000 5 commits
    • 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
    • Michael Meeks's avatar
      fixup for new bonobo. · 6b1c82d3
      Michael Meeks authored
      6b1c82d3
    • Nat Friedman's avatar
      Updated for new Bonobo identifier names. · a2fcfc01
      Nat Friedman authored
      a2fcfc01
    • Richard Hult's avatar
      Updated Swedish translation. · d7a81fef
      Richard Hult authored
      d7a81fef
    • Michael Meeks's avatar
      Mike Kestner's stylish work. · f1e8200a
      Michael Meeks authored
      f1e8200a
  5. 27 Jan, 2000 5 commits
    • Michael Meeks's avatar
      Clean guile bits, The beggining of the end. · 4ca1bb93
      Michael Meeks authored
      Clean guile bits,
      The beggining of the end.
      4ca1bb93
    • Andreas Hydén's avatar
      Updated Swedish translation · c5a42952
      Andreas Hydén authored
      c5a42952
    • Jon K Hellan's avatar
      Handle wb = NULL correctly. Move handling of wb != NULL to · efe65519
      Jon K Hellan authored
      2000-01-28  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (gnumeric_dialog_run): Handle wb = NULL
      	correctly. Move handling of wb != NULL to gnumeric_wb_dialog_run.
      	(gnumeric_wb_dialog_run): New static function.
      efe65519
    • Jody Goldberg's avatar
      Add a PROJECTS file. · 9ad2bf6c
      Jody Goldberg authored
      switch some toolbar elements to make it look more like XL.
      9ad2bf6c
    • Jody Goldberg's avatar
      - Some xml fixes - Row/col ins/del undo fix. - Mouse scroll fix, and · d99c96e7
      Jody Goldberg authored
      - Some xml fixes
      - Row/col ins/del undo fix.
      - Mouse scroll fix, and scrollbar speedup.
      
      2000-01-27  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : convert to using Workbook::current_sheet rather than
      	    workbook_get_current_sheet.
      
      	* src/workbook.c : Add a current_sheet member to Workbook.
      	Delete some old test code.
      	(do_focus_sheet) : Cancel inputs and update edit area with new cell.
      	(workbook_focus_current_sheet) : Update current_sheet.
      	(workbook_get_current_sheet) : Delete.
      
      	* src/sheet.c (sheet_cursor_{move, set}) : Delete call to
      	  gnumeric_sheet_cursor_set.
      
      	* src/sheet.c (sheet_{row,col}_add) : Use sheet_view_scrollbar_config.
      	  We should not be touching GUI directly.
      
      	* src/sheet-view.c (sheet_view_scrollbar_config) : Set the scrollbar's
      	  value as well as it max and page info.
      
      	* src/gnumeric-sheet.[ch] (gnumeric_sheet_cursor_set) : Delete.
      	  The scrollbars reflect the visible range, not the cursor cell.
      
      	* src/item-cursor.c (item_cursor_set_bounds_visibly) : Remove call to
      	  gnumeric_sheet_cursor_set.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_write) : Do not save the current
      	  edit-text.  We don't save the current cell or the current selection
      	  so restoring the text of the ex-cursor is quite confusing.
      	(xml_workbook_read) : Restore window size.
      	(gnumeric_xml_sheet_{read,write}) : Delete unused.
      	(xml_get_range) : Utility routine.
      	(xml_read_selection_info) : Utility routine to restore the selection.
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : Do the
      	  insert/delete even if it looks like there are no cells there.
      	  There may be styles.
      d99c96e7
  6. 26 Jan, 2000 3 commits
    • Jukka-Pekka Iivonen's avatar
      Implemented `Advanced Filter'. · a0ec6d64
      Jukka-Pekka Iivonen authored
      2000-01-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialog-advanced-filter.c, src/func.h, src/workbook.c:
      	Implemented `Advanced Filter'.
      
      	* src/mathfuns.[ch], src/analysis-tools.c, src/dialogs/dialogs.h,
       	src/dialogs/dialog-analysis-tools.c: Added the following
       	distributions for the random number generation tool:
      	- poisson
      	- binomial
      	- negative binomial
      	- exponential
      a0ec6d64
    • Yuri Syrota's avatar
      Updated Ukrainian translation · e1a8ec86
      Yuri Syrota authored
      e1a8ec86
    • Nick Lamb /GIMP's avatar
      More PNGs blah · a3c82a38
      Nick Lamb /GIMP authored
      a3c82a38