1. 17 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Fix a few bugs. Flag a few bugs. Start on the exception handling · 5784bf05
      Jody Goldberg authored
      * Fix a few bugs.
      * Flag a few bugs.
      * Start on the exception handling mechanism.
      * Move many typedefs into gnumeric.h to start the process
        of decoupling the headers.
      
      1999-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_cleanout) : Publicize.
      
      	* src/sheet.c (clear_cell_content) : Delete.
      	(sheet_clear_region_content) : Use sheet_clear_region but leave the
      	  styles in place.
      
      1999-12-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric.h : Move many of the typedefs here.
      
      	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Tweak some
      	  const issues and minor logic problems at the boundaries.
      
      1999-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (command_context_gui) : New function.
      
      	* src/main.c (gnumeric_main) : Add a 'quit' flag for use in testing.
      	  It causes the app to exit immediately after loading all the selected
      	  books.
      
      	* src/file.c (workbook_import) : Bug 3977.
      
      	* src/corba-sheet.c (command_context_corba) : New function
      	  temporarily located here.
      	(Sheet_selection_copy) : Pass a CommandContext.
      	(Sheet_selection_cut) : Ditto
      	(Sheet_selection_paste) : Ditto
      	(Sheet_clear_region) : Ditto
      	(Sheet_clear_region_content) : Ditto
      	(Sheet_insert_col) : Ditto
      	(Sheet_delete_col) : Ditto
      	(Sheet_insert_row) : Ditto
      	(Sheet_delete_row) : Ditto
      	(Sheet_shift_rows) : Ditto
      	(Sheet_shift_cols) : Ditto
      
      	* src/item-cursor.c (item_cursor_do_action) : Ditto.
      
      	* src/item-grid.c (context_cut_cmd) : Ditto.
      	(context_cut_cmd) : Ditto.
      	(context_copy_cmd) : Ditto.
      	(context_paste_cmd) : Ditto.
      	(context_paste_special_cmd) : Ditto.
      	(context_clear_cmd) : Ditto.
      
      	* src/clipboard.[ch] (do_clipboard_paste_cell_region) : Take a
      	  CommandContext.
      	(sheet_paste_selection) : Ditto.
      	(clipboard_paste_region) : Ditto.
      
      	* src/selection.c (segments_intersect) : Return additional state 5
      	  to designate equality.
      	(selection_apply) : Use the equality state to simplify state selection.
      	(selection_is_simple) : Use a command context.
      	(sheet_selection_copy) : Ditto.
      	(sheet_selection_cut) : Ditto.
      	(sheet_selection_paste) : Ditto.
      	(sheet_selection_clear) : Ditto.
      	(sheet_selection_clear_content) : Ditto.
      	(sheet_selection_clear_comments) : Ditto.
      	(sheet_selection_clear_formats) : Ditto.
      
      	* src/workbook.c (copy_cmd) : Ditto.
      	(cut_cmd) : Ditto.
      	(paste_cmd) : Ditto.
      	(paste_special_cmd) : Ditto.
      	(insert_cols_cmd) : Ditto.
      	(insert_rows_cmd) : Ditto.
      	(clear_all_cmd) : Ditto.
      	(clear_formats_cmd) : Ditto.
      	(clear_comments_cmd) : Ditto.
      	(clear_content_cmd) : Ditto.
      
      	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
      	  Ditto.
      	(dialog_delete_cells) : Ditto.
      
      	* src/dialogs/dialog-insert-cells.c (dialog_insert_cells_impl) :
      	  Ditto.
      	(dialog_insert_cells) : Ditto.
      5784bf05
  2. 20 Nov, 1999 1 commit
  3. 11 Nov, 1999 1 commit
  4. 09 Nov, 1999 1 commit
  5. 26 Oct, 1999 1 commit
  6. 22 Oct, 1999 1 commit
  7. 09 Oct, 1999 1 commit
  8. 07 Oct, 1999 1 commit
    • Miguel de Icaza's avatar
      Remove ants when we change the font. (set_selection_halign): And when we · d4b9115d
      Miguel de Icaza authored
      1999-10-06  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/workbook-format-toolbar.c (change_selection_font): Remove
      	ants when we change the font.
      	(set_selection_halign): And when we change the alignment.
      
      	Many more left to be removed.  Left as an excercise to Jody :-)
      
      	* src/sheet.c (sheet_start_editing_at_cursor): remove ants when we
      	start entering new text.
      
      	* src/sheet-view.c (sheet_view_selection_unant): Destroys the
      	anted cursors from the sheet view.
      	(sheet_view_selection_ant): Adds cursors to the sheetview.
      	(sheet_view_construct): New group that is used to hold the
      	selection-ant items.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Kill ants
      	on escape.
      	(gnumeric_sheet_key_mode_object): ditto.
      
      	* src/selection.c (sheet_selection_unant): New function, kills the
      	selection ants.
      	(sheet_selection_ant): New function, adds an anted selection to
      	all the selected regions.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region): Do not paste
      	beyond sheet boundaries.
      
      	* src/item-grid.c (item_grid_find_row): Do not go beyond sheet boundaries.
      	(item_grid_find_col): ditto.
      
      	* configure.in: Generate gnumeric.desktop
      
      	* gnumeric.desktop.in: New file, used to choose the correct
      	gnumeric/gnumeric-bonobo executable name.
      
      	* src/sheet-object-item.c: Updated to fit with the new Bonobo
      	changes.
      
      1999-10-06  Jody Goldberg <jgoldberg@home.com>
      d4b9115d
  9. 04 Oct, 1999 1 commit
    • Jody Goldberg's avatar
      - Large speed improvement loading by removing the lists of cells in cols, and · 7d0ab7ad
      Jody Goldberg authored
        keeping cols rows in segmented arrays.
      
      - Large speed improvement in exit by operating on the entire sheet rather than
        cell by cell.
      
      - Large speed improvement in Col/Row auto-fills.  they're still too damn slow
        and we use too much memory, but its a start.
      
      - Insert/delete/Shift rows/cols now correctly adjusts references to and from
        the region.
      
      - Code in place to restructure 'copy'
      
      - A few minor dialog adjustments, some from me, some from the mailing list.
      7d0ab7ad
  10. 09 Sep, 1999 1 commit
  11. 02 Sep, 1999 1 commit
  12. 16 Aug, 1999 1 commit
  13. 28 Jul, 1999 1 commit
  14. 11 Jul, 1999 1 commit
    • Jody Goldberg's avatar
      - Disable insert/delete row/column that would split an array-formula · a3506bf7
      Jody Goldberg authored
      - Enable cut/copy/paste for array formulas.
      - Fix multi-line cell drawing & whitespace issues.
      - Change the default column width & grid colour to more closely match XL
      - Add the edit popup menu in the row/col headers
      - Short circuit the insert/delete dialogs to directly insert/delete when
        an entire row/column is selected.
      a3506bf7
  15. 30 Jun, 1999 1 commit
  16. 22 Jun, 1999 1 commit
    • Miguel de Icaza's avatar
      Do not pre-initialize them. If they need to be pre-initialized something · fbd3597b
      Miguel de Icaza authored
      1999-06-21  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/func.c: Do not pre-initialize them.  If they need to be
      	pre-initialized something is wrong in some other place.  Fix that
      	instead.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region): Implement
      	transpose-on-paste command.  Change the increment steps for
      	transpose and compute a different target column as well.
      
      	(sheet_paste_selection): Swap the paste dimesions here if we are
      	pasting/transpose.
      
      1999-06-18  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/func.c: Remove static initialization of the error messages.
      
      1999-06-14  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/clipboard.h: Define PASTE_TRANSPOSE.
      
      	* src/dialog-paste-special.c (dialog_paste_special): Add new
      fbd3597b
  17. 03 Jun, 1999 1 commit
  18. 16 Apr, 1999 1 commit
    • Miguel de Icaza's avatar
      Trim leading spaces. · 8fb8d9ed
      Miguel de Icaza authored
      1999-04-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/clipboard.c (new_node): Trim leading spaces.
      8fb8d9ed
  19. 12 Apr, 1999 1 commit
    • Miguel de Icaza's avatar
      Fixed the computation of columns in the paste code. · 656c4897
      Miguel de Icaza authored
      1999-04-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/clipboard.c (x_selection_to_cell_region): Fixed the
      	computation of columns in the paste code.
      
      1999-04-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c (insert_object_cmd): Add sample bonobo support.
      	Still lacking an object server selector.
      
      	* src/sheet.c (sheet_insert_object): Add Bonobo support.
      
      	* src/sheet-view.c (sheet_view_insert_object): Add basic Bonobo
      	support.  I need to reuse the SheetObject stuff to add control
      	points to the objects and to handle repositioning.
      656c4897
  20. 12 Mar, 1999 1 commit
    • Miguel de Icaza's avatar
      New routine. Abstracts the paste operation. (clipboard_paste_region): Now · 89b125a7
      Miguel de Icaza authored
      1999-03-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/clipboard.c (sheet_paste_selection): New routine.  Abstracts
      	the paste operation.
      	(clipboard_paste_region): Now it uses a clipboard with the active
      	X selection instead of defaulting to "request clipboard from X"
      	(this is only for inter-workbook copy-paste).
      
      	* src/sheet.c (find_workbook_with_clipboard): Tries to find a
      	workbook with clipboard information.  Probably the clipboard
      	should be global to all Gnumeric.
      
      	* src/render-ascii.c (cell_region_render_ascii): Free the
      	information after we have used it, not before.
      
      	* src/expr.c (eval_expr): Handle new-born recursive references.
      89b125a7
  21. 19 Feb, 1999 1 commit
    • Miguel de Icaza's avatar
      Do not render the value if the result is an error. · f29179e1
      Miguel de Icaza authored
      1999-02-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/clipboard.c (paste_cell): Do not render the value if the
      	result is an error.
      
      	* src/cell.c (cell_copy): Do not copy the value of a cell when the
      	value is NULL (due to the cell having an error).
      
      	* src/expr.c (eval_expr): Evaluate binary operations in parts to
      	keep the correct error message on an operation if possible.
      	(eval_expr): Propagate errors.
      
      	* src/item-edit.c (item_edit_draw): Sync the before-cursor and
      	after-cursor Y-display text cordinate.
      
      	* src/expr.c (eval_funcall): Add type checking for the simple
      	functions.
      
      	* doc/C/Makefile.am (install-data-local): use topsrcdir here (fix
      	from Ian Campbell <ijc25@cam.ac.uk>
      
      	* src/fn-math.c (gnumeric_not): Implement NOT.
      f29179e1
  22. 10 Feb, 1999 1 commit
    • Miguel de Icaza's avatar
      When relocating a cell with a formula, always mark it as changed. We were · c95be58a
      Miguel de Icaza authored
      1999-02-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/cell.c (cell_relocate): When relocating a cell with a
      	formula, always mark it as changed.  We were doing that before
      	only for the case where the location had changed, but we use
      	cell_relocate in other cases as well.
      
      	* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
      	functions were wrong.  They were never incrementing the pointer
      	and they were releasing the wrong pointer.
      
      	* src/clipboard.c (paste_cell): When pasting a cell, mark the
      	contents as modified.
      
      	* src/file.c (file_saver_is_default_format): Make sure the saver
      	is always set.
      c95be58a
  23. 10 Jan, 1999 1 commit
    • Miguel de Icaza's avatar
      Reorganization. Hanlde VALUE_CELLREF here and make OPER_VAR and · 910cc0b7
      Miguel de Icaza authored
      1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/eval.c (add_value_deps): Reorganization.  Hanlde
      	VALUE_CELLREF here and make OPER_VAR and OPER_CONSTANT call
      	add_value_deps.
      
      	* src/expr.c (do_expr_tree_relocate, expr_tree_relocate): New
      	routine that returns an ExprTree relocated.
      	(value_copy_to): Handle the VALUE_CELLREF type.
      
      	* src/expr.h: define VALUE_CELLREF
      
      	* src/parser.y (yylex): Type fix.
      	When creating values of type VALUE_CELLREF, set this value.
      
      1999-01-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_move_column): Update to new cell_relocate
      	semantics.
      	(sheet_shift_row): ditto.
      	(sheet_insert_row): ditto.
      	(sheet_delete_row): ditto.
      	(sheet_shift_col): ditto.
      
      	* src/clipboard.c: Update to new cell_relocate semantics.
      	Remove the old GTK compatibility code.
      
      	* src/cell.c (cell_relocate): We do not need to reference this
      	formula.
      	This routine now takes delta-x and delta-y values for the
      	relocation, instead of absolute cordinates.  To implement the
      	proper semantics of cell movement that other spreadsheets implement
      910cc0b7
  24. 10 Nov, 1998 1 commit
    • Miguel de Icaza's avatar
      Two things that have been on my hard disk for a long time: · dbf9667e
      Miguel de Icaza authored
      
      
      Two things that have been on my hard disk for a long time:
      
      1. Comments-on-cells code is working.  We just need the nice dialog to
      actually type something in.
      
      It needs xml-io.c support though, hopefully Daniel will add this soon.
      
      2. Dropped cell->entered_text.  We now only store the parsed version
      of the cell (either as an ExprTree or as a Value).  This should help
      mmeeks with his Excel-formula importing code, it should be possible
      to do the right thing now instead of constructing a string representation
      of the formula and re-parsing it.
      
      Various fixes here and there as well.
      
      Miguel
      
      1998-11-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_comment_get_points): Scale properly
      	the points to be in window cordinates.
      
      	* src/sheet.c (sheet_col_set_width): Move comments on column
      	change.
      
      	* src/cell.c (cell_copy): Duplicated cells get col, row and sheet
      	values set to NULL.
      
      1998-11-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-misc.c: Add ctype.h
      
      	* src/sheet-view.c (sheet_view_comment_get_points): New utility
      	routine used.
      	(sheet_view_comment_relocate): New function used to relocate a
      	comment canvas item in a cell to its new location.
      
      	* src/cell.c (cell_relocate): Move the comments with the cell.
      	(cell_realize, cell_unrealize, cell_comment_realize,
      	cell_comment_unrealize): New functions used to create and destroy
      	view-specific cell components (the comments are canvas objects
      	that need to be created on a per-view basis).
      dbf9667e
  25. 02 Nov, 1998 1 commit
  26. 28 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Prepare for 0.4 release. · 46186608
      Miguel de Icaza authored
      
      
      1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* Prepare for 0.4 release.
      
      	* configure.in: Add test for new GTK+ selection code.
      
      	* src/clipboard.c: Make it work with both APIs: the old and the
      	new one.
      46186608
  27. 19 Oct, 1998 1 commit
  28. 12 Oct, 1998 1 commit
    • Jakub Jelinek's avatar
      Add base_col and base_row arguments. Move cursor to that location, so that · 4ded61c3
      Jakub Jelinek authored
      1998-10-07  Jakub Jelinek  <jj@ultra.penguin.cz>
      
      	* src/sheet.c (sheet_cursor_set): Add base_col and
      	base_row arguments. Move cursor to that location, so
      	that it really reflects base of the selection.
      
      	* src/sheet.h (sheet_cursor_set): Ditto.
      
      	* src/clipboard.c (x_selection_received): Callers changed.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_selection): Ditto.
      	(move_cursor): Ditto.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Ditto.
      	(item_cursor_init): Fix a typo.
      4ded61c3
  29. 01 Oct, 1998 3 commits
  30. 30 Sep, 1998 1 commit
  31. 29 Sep, 1998 1 commit
  32. 28 Sep, 1998 3 commits
    • Arturo Espinosa's avatar
      Fixed pasting from the X selection -mig · 7cf36748
      Arturo Espinosa authored
      7cf36748
    • Miguel de Icaza's avatar
      Allow the lists to include an asterisk to be able to distinguish between · 0551a214
      Miguel de Icaza authored
      
      
      1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-autofill.c (matches_list): Allow the lists to include
      	an asterisk to be able to distinguish between abbreviations and
      	full descriptions.
      
      	* src/clipboard.c (x_selection_to_cell_region): New routine.
      	Creates a CellRegion of type text based on the selection provided
      	by X.
      	(paste_cell_flags): New function, decoupled from
      	do_clipboard_paste_cell_region.   Handles new type in CellCopy.
      
      	* src/sheet.c (sheet_selection_paste): Simplified as most of the
      	work is now
      
      	* src/clipboard.c (x_selection_received): Perform the paste
      	operation, moved most of the logic from sheet.c.  This does both
      	internal paste and paste from the X selection (and everything
      	works the way the user expects it to behave).
      0551a214
    • Miguel de Icaza's avatar
      Check the return value from symbol_lookup. · ae3dda69
      Miguel de Icaza authored
      
      1998-09-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/expr.c (function_call_with_values): Check the return value
      	from symbol_lookup.
      
      1998-09-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-object.c (sheet_view_object_realize): Swap coordinates
      	before passing to the canvas item.
      
      	* plugins/python/python.c (init_plugin): Use the system
      	installation directory to load the python scripts.
      
      	* autogen.sh: Hack to make libtool add library dependcy
      	information (it modifies the libtool file after it has been
      	created).
      
      	* src/workbook.c (workbook_set_filename): New routine to set the
      	filename being edited of the workbook.
      
      	* src/sheet-object.c (create_object): Swap arguments to the
      	ellipse object to guarrantee we pass valid information.
      
      	* src/render-ascii.c (cell_region_render_ascii): Ok, remove the
      	leaks now.
      ae3dda69
  33. 26 Sep, 1998 2 commits
    • Arturo Espinosa's avatar
      Python warning fixes; Clipboard exports to X selection fixes Paste from X · 6b574695
      Arturo Espinosa authored
      
      
      Python warning fixes;  Clipboard exports to X selection fixes
      Paste from X selection will need a bit more of work.
      6b574695
    • Miguel de Icaza's avatar
      new routine that renders a cell selection into a an ascii string. IT HAS · 33e12497
      Miguel de Icaza authored
      1998-09-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/render-ascii.c (cell_region_render_ascii): new routine that
      	renders a cell selection into a an ascii string.  IT HAS PILES OF
      	LEAKS.  I have to go to the movies, will fix later tonight.
      
      	* src/clipboard.c (x_clipboard_bind_workbook): New function used
      	to connect the selection signals for a workbook.
      	(x_selection_handler): New function: X selection handler.
      	(clipboard_export_cell_region): New function: Export our clipboard
      	to the X selection.
      	(clipboard_copy_cell_range): call clipboard_export_cell_region
      
      	* src/plugin-manager.c (plugin_manager_new), plugin.c: Add
      	internationalization support.
      33e12497
  34. 24 Sep, 1998 1 commit
  35. 19 Sep, 1998 1 commit