1. 03 May, 1999 1 commit
  2. 30 Apr, 1999 1 commit
  3. 23 Apr, 1999 1 commit
  4. 21 Apr, 1999 1 commit
    • Morten Welinder's avatar
      Release the sheets and the hash table that held the references to the · 474f1062
      Morten Welinder authored
      
      1999-04-21  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.c (workbook_do_destroy): Release the sheets and the
      	hash table that held the references to the sheets.
      
      	* src/func.c: warning fix.
      
      1999-04-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/widget-editable-label.c (el_button_press_event): Add type
      	cast to kill warning.
      
      	* src/format.c: Include ieeefp.h if required.
      
      Apr 20 16:34:38 1999  Morten Welinder  <terra@diku.dk>
      
      	* ms-obj.c (ms_obj_read_obj): Initialise type.
      
      1999-04-19  Morten Welinder  <terra@diku.dk>
      
      	* ms-excel.c (biff_get_rk): Fixed up mask on eIEEE.
      474f1062
  5. 02 Apr, 1999 1 commit
  6. 19 Feb, 1999 2 commits
  7. 06 Feb, 1999 1 commit
  8. 11 Jan, 1999 1 commit
    • Miguel de Icaza's avatar
      Use 0.0########## instead. Looks saner. · c46a2f59
      Miguel de Icaza authored
      1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/format.c (format_value): Use 0.0########## instead.  Looks saner.
      
      1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c (change_auto_expr_menu): Use the event->button
      	field to get the popup menu to behave correctly.
      	(workbook_setup_auto_calc): Put the information display inside a
      	GtkFrame.
      
      	* src/item-bar.c (set_cursor): This routine can be invoked before
      	we are realized.
      
      	* src/workbook.c (sheet_label_button_press): We need to do the
      	page flipping ourselves, as the GtkNotebook wont take events if
      	they are not for a window it knows about.
      
      	* src/widget-editable-label.c (el_button_press_event): Forward
      	events to parent.
      
      	* src/parser.y: New non-terminal "cellref".  Make this
      	non-terminal include CELLREF and SHEETREF!CELLREF constructions.
      
      	* src/expr.c: Changed the whole module according to the dropping
      	of VALUE_CELLREF.
      
      	* src/expr.h: VALUE_CELLREF did not make much sense.  Better add
      	to the ExprTree union a CellRef field specifically for OPER_VAR
      	nodes.
      c46a2f59
  9. 04 Jan, 1999 1 commit
    • Miguel de Icaza's avatar
      New routine. · b2f46797
      Miguel de Icaza authored
      1999-01-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_rename): New routine.
      
      	* src/workbook.c (workbook_attach_sheet): Use a EditableLabel for
      	the notebook tab.
      	(workbook_rename_sheet): New routine.
      
      	* src/widget-editable-label.c:  New widget.  This is a label that
      	can be edited if you double click on it.  This uses the same trick
      	of the gnome-icon-item to provide the editing facilities.
      
      1999-01-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c (workbook_setup_status_area): Use the style font,
      	not "fixed".
      	(workbook_setup_status_area): One hack down.  Use GTK_ANCHOR_NW to
      	achieve the same effect I had with my previous hack.
      
      	* src/dialog-cell-comment.c (dialog_cell_comment): New file.
      	Implements the cell comment dialog box.
      
      	* src/cell.c (cell_relocate): Only call cell_comment_reposition is
      	there is a cell comment bound to this cell.
      
      	* src/format.c (format_value): No format means "General" format as
      	well.
      	If the value has decimal numbers use "0.00##########" for the
      	formatting instead of 0.00.
      b2f46797
  10. 13 Dec, 1998 1 commit
    • Sebastian Wilhelmi's avatar
      Changed to use the glib GDate type instead of the lib_date functions. · 74e388f9
      Sebastian Wilhelmi authored
      1998-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* src/fn-date.c (gnumeric_year_month_day, gnumeric_now,
      	gnumeric_today,gnumeric_date):
      	* src/workbook.c (insert_current_date_cmd):
      	* src/number-match.c (compute_value): Changed to use the glib
      	GDate type instead of the lib_date functions. Fixed off by-one
      	error for some date functions (e.g. =today ()) was one day to
      	early).
      
      	* src/utils.c, src/utils.h (g_date_serilal, g_date_serial_new):
      	New functions for handling the gnumeric serial of a date.
      74e388f9
  11. 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
  12. 02 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Removed unused variables · e5d027e2
      Miguel de Icaza authored
      1998-10-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/item-grid.c (item_grid_event): Removed unused variables
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_start_cell_selection,
      	gnumeric_sheet_selection_extend,
      	gnumeric_sheet_selection_cursor_place): New routines for letting
      	the user use the mouse to select a cell range.  Invoked from
      	item-grid.c
      
      	* src/item-grid.c (item_grid_event): Clean and reorgranize the
      	event handler, remove unused variables.
      
      	* src/gnumeric-sheet.c (selection_expand_horizontal): -1 now means
      	"shrink the selection", which means Left/Up keys shrink.
      	Right/Down expand.
      	(selection_expand_vertical): likewise.
      
      	* src/format.c (format_number): Fixed memory leak: this is a
      	pretty bad construction: g_string_append (s, alloc_string()).  I
      	just did not see it coming.  Taking metal note of this.
      
      	* src/number-match.c (format_create_regexp): Fixed memory leaks.
      	The strings returned by create_option_list need to be released.
      
      	* src/style.c (style_color_new): Important bug fix:  The key I was
      	passing was a GdkColor, but our hash table stored StyleColors
      	inside.
      
      	* src/format.c (append_year): Better fix, suggested by Morten
      	Welinder <terra@diku.dk>
      e5d027e2
  13. 01 Oct, 1998 2 commits
    • Miguel de Icaza's avatar
      Compute the day of week. This was done before by localtime, but the new · 6c1143a7
      Miguel de Icaza authored
      1998-09-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/format.c (split_time): Compute the day of week.  This was
      	done before by localtime, but the new code was not doing it (thus,
      	format "ddd" always reported "Sun").
      
      	* src/clipboard.c (x_selection_handler): Use the last workbook
      	that claimed the selection instead of using the value provided by
      	the callback, as gtk_selection_set_owner just ignores who is the
      	owner.
      
      	* src/item-edit.c (item_edit_reconfigure): Call reconfigure in parent.
      
      	* src/item-cursor.c (item_cursor_reconfigure): Call reconfigure in parent.
      6c1143a7
    • Arturo Espinosa's avatar
      d95baa6f
  14. 30 Sep, 1998 1 commit
  15. 29 Sep, 1998 2 commits
    • Miguel de Icaza's avatar
      New: · f4929ca6
      Miguel de Icaza authored
      
      
      New:
      
      	- Excel-like magic on strings works.  This means that everytime
      	  a string appears in an expression, it will be tried to match
      	  against all of the stock formating codes in Gnumeric to see
      	  if there is a match (basically, the inverse to format.c).
      	  If there is one, then the input is converted to a float using
      	  the format rules and the format for the cell is set to the
      	  matching format.
      
      	  This basically means, you can do stuff like:
      		="1/1/1997"+200 and get "7/20/1997"
      
      	  It also works for hours and also lets you input in your own
      	  language (if the locale provides proper translation), ie,
      	  you can input:
      
      		="15 pesos" + 10
      
      	  And get the result.
      
      	- Made another autogen.sh hack to shutup the noisy libtool during
      	  final link stage.
      
      	- Abbreviated months and days now include an asterisk at the
      	  beginning to let translators provide unambiguated strings
      	  (like, may->may).
      
      Miguel.
      Full ChangeLogs:
      
      1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-date.c (gnumeric_now, gnumeric_date, gnumeric_today):
      	Note that jannuary 1st is day 1, not day zero.
      
      	* src/format.c (append_month): Fixed handling: tm_mon is zero based.
      	(split_time): Fixed silly mistake I did last time I looked at this code
      
      	* src/cell.c (cell_set_formula): Try to set the cell style if the
      	style is General.
      
      	* src/parser.y (return_symbol): Try to match the input with the
      	format matching engine.
      
      	* autogen.sh (PKG_NAME): Another hack to get rid of the annoying
      	extracing symbols list, which, slows down my link time :-)
      
      1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/number-match.c (compute_value): New file:  Implements a
      	smart way of parsing numbers:  From all of the registered formats,
      	it creates regexps for matching at the time the user inputs data.
      	If that data matches any of the regexps, then the input is
      	converted into a float, and a display format is assigned to it.
      
      	* src/format.c (append_day, append_month): Skip the -now included-
      	start at the begining for internationalization purposes.
      	(split_time): Fixed the hour and second renddering.
      	(format_number): Fix:  hour_seen was not being set.
      
      	* src/sheet-autofill.c (matches_list): Allow the lists to include
      	an asterisk to be able to distinguish between abbreviations and
      	full descriptions.
      f4929ca6
    • Arturo Espinosa's avatar
      Moving stuff around a little. · 6e7b6467
      Arturo Espinosa authored
      
      
      Moving stuff around a little.
      
      I am preparing my matching engine on input, so that Gnumeric will
      auto-convert stuff like "10/Jan" and "10:45am" into a serial number.
      
      Miguel
      6e7b6467
  16. 28 Sep, 1998 1 commit
    • 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
  17. 23 Sep, 1998 2 commits
  18. 22 Sep, 1998 3 commits
  19. 19 Sep, 1998 3 commits
  20. 14 Sep, 1998 1 commit
    • Arturo Espinosa's avatar
      Color attributes in formats work (ie, you can get colored cells now); · 4ec6073e
      Arturo Espinosa authored
      
      
      Color attributes in formats work (ie, you can get colored cells now);
      
      My first -futile attempts- at getting various different cursors working on the
      spreadsheet (we need a cross and various other cursors for a better emulation
      of Excel).
      
      The beginning of autofill, but I really need to see Excel live before implementing
      this.
      
      Miguel.
      4ec6073e
  21. 11 Sep, 1998 1 commit
  22. 02 Sep, 1998 1 commit
  23. 28 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Redid the format parsing engine to be closer to the Excel formatting · c2f2e55f
      Arturo Espinosa authored
      
      
      Redid the format parsing engine to be closer to the Excel formatting
      engine.  This basically is just a better front end to Clahey's number
      rendering engine.
      
      This now supports quoted strings in a format;  quoted characters;
      spacing control formats;  color specification;  plus some ammount
      of pre-parsing.
      
      Getting it Excel compliant will be a bit more difficult than we
      expected, as for example this format shows:
      
      	000-0000-0000
      
      should render 12345670987 as: 123-4567-0987
      c2f2e55f
  24. 21 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Format fixes · 4ee2ee43
      Arturo Espinosa authored
      
      
      Format fixes
      
      Paste works just like Excel now.  Dragging a selection
      moves the cursor and the selection properly.
      
      Move the paste-special dialog box to its own file.
      
      Other misc fixes.
      
      Miguel.
      4ee2ee43
  25. 20 Aug, 1998 3 commits
    • Arturo Espinosa's avatar
      Minor fixes to the formatting code -mig · 26db3fa1
      Arturo Espinosa authored
      26db3fa1
    • Chris Lahey's avatar
      Multi-field format type. · 4fc1f950
      Chris Lahey authored
      4fc1f950
    • Miguel de Icaza's avatar
      New value format framework installed. · e32cdefe
      Miguel de Icaza authored
      
      
      New value format framework installed.
      
      The idea is that we will precompile formats to avoid parsing the
      format everytime a cell is repainted.
      
      Miguel.
      
      1998-08-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/format.c (format_value): The new entry point for formating
      	values.  This takes a Value instead of a float.
      	NULL is never returned from format_value now: if there is a format
      	error, then value_string is used to display it.
      
      	(format_compile): This routine should always return, it cant fail,
      	in the worst * case it should just downgrade to simplistic formatting.
      
      	(format_destroy): This routine is invoked when the last user of
      	the format is gone (ie, refcount has reached zero) just before the
      	StyleFormat structure is actually released.  resources allocated
      	in format_compile should be disposed here
      e32cdefe
  26. 18 Aug, 1998 2 commits
    • Chris Lahey's avatar
      Fixed the '.' bug. · ccd87b37
      Chris Lahey authored
      ccd87b37
    • Miguel de Icaza's avatar
      Today: · 8df6dcc8
      Miguel de Icaza authored
      
      
      Today:
      
      	- Cell format dialog box + working number formats.
      
      Miguel.
      
      1998-08-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/eval.c (cell_eval): Use the formating routine now.
      
      	* src/expr.c (value_format): Format a Value with a StyleFormat.
      
      	* src/item-cursor.c (item_cursor_set_bounds_visibly): Force a
      	canvas update after moving the selection.
      
      	* src/sheet.c (sheet_selection_to_list): New function: generates a
      	list of cells from the sheet->selections list.
      
      	* src/style.c: Now styles have a "valid_flag" that has a bit
      	turned on for those parts of the style that are actually used.
      	This is required for adding the regions of style application in a
      	Sheet.
      	(style_destroy): destroy only those valid parts in a style.
      
      	* src/dialog-cell-format.c: New file.   Implements the cell/format
      	dialog box.
      
      	* src/cell.c (cell_render_value): new routine used to render the
      	cell->value into cell->text.
      	(cell_queue_redraw): new routine to queue individual redraws of
      	the screen.  I believe it is buggy, as the screen does not update
      	after an apply in the cell/format dialog box.
      	(cell_set_format): New routine to change the format of an existing
      	cell.
      
      	* src/format.c (format_number): Added color argument;  smaller
      	fixes to use it within gnumeric.
      
      	* src/main.c (main): Include i18n setup as per namsh's suggetion.
      8df6dcc8
  27. 17 Aug, 1998 2 commits
  28. 15 Aug, 1998 1 commit