1. 31 May, 1999 1 commit
    • Matt Loper's avatar
      Because GNOME::Component was renamed to GNOME::BonoboObject, some bonobo · aedc0558
      Matt Loper authored
      1999-05-31  Matt Loper  <matt@gnome-support.com>
      
      	* src/sheet-view.c: Because GNOME::Component was renamed to
      	GNOME::BonoboObject, some bonobo function call names needed to be
      	changed here (ex. gnome_component_new_view to
      	gnome_bonobo_object_new_view).
      
      	* src/sheet-object-container.c (sheet_object_container_land):
      	likewise.
      	(sheet_object_container_realize): likewise.
      aedc0558
  2. 22 May, 1999 1 commit
  3. 30 Apr, 1999 1 commit
  4. 28 Apr, 1999 1 commit
  5. 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
  6. 19 Jan, 1999 1 commit
  7. 17 Dec, 1998 1 commit
    • Federico Mena Quintero's avatar
      Do not set_usize() on the info item. · 7bd669db
      Federico Mena Quintero authored
      1998-12-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* src/workbook.c (workbook_setup_status_area): Do not set_usize()
      	on the info item.
      
      	* src/sheet-view.c (new_canvas_bar): Set the width or height to -1
      	in set_usize().
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_new): Do not set_usize() on
      	the sheet.
      7bd669db
  8. 14 Dec, 1998 1 commit
  9. 03 Dec, 1998 1 commit
    • Miguel de Icaza's avatar
      New functions to set the sheet top column and row respectively. · 63064dec
      Miguel de Icaza authored
      1998-12-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_row,
      	gnumeric_sheet_set_top_col): New functions to set the sheet top
      	column and row respectively.
      
      	(gnumeric_sheet_bar_set_top_row, gnumeric_sheet_bar_set_top_col):
      	Renamed from their old names to reflect their actual action.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Do not pass
      	negative numbers to item_grid_find_col and item_grid_find_row.
      
      	* src/item-grid.c (item_grid_find_row, item_grid_find_col): Check
      	for possitive numbers. I think the right fix is to accept negative
      	numbers and find the column even if the number is negative instead
      	of this ugly restriction.
      63064dec
  10. 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
  11. 02 Nov, 1998 1 commit
  12. 13 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      It is amazing the number of times I duplicated this code. I wonder if I · cd222d42
      Miguel de Icaza authored
      1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (col_name): It is amazing the number of times I
      	duplicated this code.  I wonder if I took prozac by accident.
      	This should fix the bug reported by Morten Welinder
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (vertical_scroll_event,
      	horizontal_scroll_event): Set the top column/row from the
      	adjustment as well.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_col,
      	gnumeric_sheet_set_top_row): Export these functions to improve the
      	scrolling behaviour.
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (cellref_name): Fixed another of column name
      	decoding.  I wonder when I will learn.
      cd222d42
  13. 08 Oct, 1998 2 commits
    • Miguel de Icaza's avatar
      Make sure the column is allocated (so that the column size change picks up · 0a16f723
      Miguel de Icaza authored
      1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
      	the column is allocated (so that the column size change picks up
      	the column during the iteration).
      	(sheet_view_row_selection_changed): Same
      0a16f723
    • Miguel de Icaza's avatar
      New routine: loads a couple of default fonts to be used in Gnumeric. · 1e3d41ad
      Miguel de Icaza authored
      1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.c (font_init): New routine: loads a couple of default
      	fonts to be used in Gnumeric.
      
      	* src/item-bar.c (bar_draw_cell): Make the SELECTION cells display
      	with a bold font.
      	(item_bar_realize, item_bar_unrealize): reference and unreference
      	the gnumeric_default_bold_font.
      
      1998-10-07  Jakub Jelinek  <jj@ultra.linux.cz>
      
      	* src/item-grid.c (item_grid_button_1): Handle shift+click
      	on cells (removes last selection and selects from last base
      	to current mouse location).
      	(item_grid_event): Don't lock up if mouse is moved during
      	selection behind left or top margin of sheet canvas (later
      	on we should move the current view).
      
      	* src/cell.c (cell_formula_changed): Cast void * to something
      	reasonable.
      
      	* src/item-bar.c (draw_bar_cell): Switch from 2 state bars
      	to 3 state: whole column/row is selected in one of the current
      	selections, some cells are selected in one of the selections
      	or nothing is selected. Get rid of ci->selected, compute it
      	from the selections.
      	(item_bar_draw): Ditto.
      
      	* src/cell.h (selected): Ditto.
      
      	* src/sheet.c (sheet_init_default_styles, sheet_init_dummy_stuff):
      	Ditto.
      	(sheet_selection_row_extend_to, sheet_selection_col_extend_to):
      	Remove.
      	(sheet_all_is_selected): True if any of the selections covers whole
      	sheet.
      	(sheet_col_selection_type, sheet_row_selection_type): New functions.
      	(sheet_selection_set): New function.
      
      	* src/sheet-view.c (sheet_view_row_set_selection,
      	sheet_view_col_set_selection): Remove.
      	(sheet_view_col_selection_changed, sheet_view_row_selection_changed):
      	Handle shift+click and ctrl+click on whole columns/bars as well.
      	(sheet_view_col_size_changed, sheet_view_row_size_changed): Use
      	sheet_*_selection_type instead of ci->selected.
      
      	* src/item-bar.h (ItemBarSelectionType): Enum for the new 3 state
      	column/row titles.
      	(ItemBarClass): selection_changed takes modifier mask as argument.
      
      	* src/sheet-view.h (sheet_view_*_set_selection): Remove prototypes.
      
      	* src/sheet.h (sheet_selection_*_extend_to): Ditto.
      	(sheet_selection_set, sheet_*_selection_type): New prototypes.
      
      1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      1e3d41ad
  14. 06 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Cells from the clipboard do not have a Sheet parameter attached. · 85cff8c7
      Miguel de Icaza authored
      1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/cell.c (cell_modified): Cells from the clipboard do not have
      	a Sheet parameter attached.
      
      	* src/sheet.c (sheet_cell_add): Check the computed style:  if the
      	computed style includes a format, then turn on the cell flag for
      	format is set to avoid the auto guess of cell content.
      	(sheet_style_compute): Now can return the flags of the style that
      	were not part of the default style.
      
      	* src/file.c (dialog_query_load_file, workbook_save_as): Put the
      	window close to the mouse.
      
      	* src/workbook.c (sheet_check_dirty, workbook_close): Do not
      	cancel without warning the user if the workbook has changed.
      	(workbook_new, workbook_can_close, workbook_window_destroy,
      	quit_cmd, close_cmd): Reorganized the code to suit the new code to
      	prevent inadvertent quits.
      85cff8c7
  15. 30 Sep, 1998 1 commit
  16. 25 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      New version that makes sure the column information has been allocated. · d3276a42
      Miguel de Icaza authored
      1998-09-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_selection_row_extend_to,
      	sheet_selection_col_extend_to): New version that makes sure the
      	column information has been allocated.
      
      	* src/workbook.c (workbook_parse_and_jump): Maximum ranges were a
      	little bit off.
      
      	* src/parser.y (return_cellref): Fixed the same bug we had in
      	parse_cell_name:  The parsing of the column name to a column index
      	was wrong here too.
      
      	* src/sheet.c (sheet_row_info_set_height,
      	sheet_col_info_set_width): New functions based on the older
      	non-ColRowInfo versions.
      
      	* src/sheet-view.c (sheet_view_row_size_changed,
      	sheet_view_col_size_changed): Apply changes globaly if the whole
      	sheet is selected.
      d3276a42
  17. 24 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      New: · 169d1191
      Miguel de Icaza authored
      
      
      New:
      
      	- Bold button works properly (ie, it detects what sort of
      	  stuff you have and presses/unpresses accordingly).
      
      	- GNumeric now has operation modes: sheet and object.
      	  Using delete/backspace/edit-cut will let you kill
      	  objects.
      
      	- Lots of the bug fixes reported by Adrian/Federico.
      
      Here is the detailed changelog:
      
      1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/xml-io.c: Destroy the extra style.
      
      	* src/main.c (main): No need to init colors as they are auto-inited.
      
      	* src/style.c (font_compute_hints): At font creation time store a
      	couple of the font attributes for quick retrieval.
      
      	* src/sheet-view.c (sheet_view_construct): Do not allow this
      	button to have the focus either.
      
      	* src/item-bar.c (item_bar_draw): If the whole sheet is selected,
      	draw all of the columns in pressed presenstation
      
      	* src/sheet.c (sheet_is_all_selected): Return wheter all the sheet
      	is selected.
      
      	* src/utils.c (cell_name): Fixed cell name computation.
      	(parse_cell_name): Fixed parsing of the cell name.
      169d1191
  18. 23 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      At font creation time store a couple of the font attributes for quick · f7e3b6a2
      Miguel de Icaza authored
      1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.c (font_compute_hints): At font creation time store a
      	couple of the font attributes for quick retrieval.
      
      	* src/sheet-view.c (sheet_view_construct): Do not allow this
      	button to have the focus either.
      
      	* src/item-bar.c (item_bar_draw): If the whole sheet is selected,
      	draw all of the columns in pressed presenstation
      
      	* src/sheet.c (sheet_is_all_selected): Return wheter all the sheet
      	is selected.
      
      	* src/utils.c (cell_name): Fixed cell name computation.
      f7e3b6a2
  19. 18 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      If there is a selection of columns or rows, change the sizes of all of the · f8ea4ab6
      Miguel de Icaza authored
      1998-09-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_row_size_changed,
      	sheet_view_col_size_changed): If there is a selection of columns
      	or rows, change the sizes of all of the columns.
      
      	* src/sheet.c (sheet_row_get_distance, sheet_col_get_distance):
      	optimized to be O(n) instead of O(n^2) using
      	(col_row_distance): new routine to compute distances.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region): Add the
      	scrolling offset to the x and y positions to draw properly
      
      	* src/xml-io.c (readXmlSheet): Call sheet_set_zoom_factor to
      	initialize the ->pixels field.
      f8ea4ab6
  20. 08 Sep, 1998 1 commit
  21. 07 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      Color style is now a single color · c15908cc
      Miguel de Icaza authored
      1998-09-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.h: Color style is now a single color
      
      1998-09-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-object.c: New file.  The support for adding graphical
      	objects to the spreadhseet is here.  The main entry point is
      	sheet_set_mode_type which hooks to the signal handlers for object
      	creation.
      
      	Various routines for per-view creation, destruction are provided.
      c15908cc
  22. 02 Sep, 1998 2 commits
  23. 31 Aug, 1998 1 commit
  24. 29 Aug, 1998 1 commit
  25. 28 Aug, 1998 1 commit