OChangeLog-1999-07-09 377 KB
Newer Older
1 2 3 4 5 6
1999-07-07  Miguel de Icaza  <miguel@gnu.org>

	* src/Gnumeric.idl: Small typo fixes.

	* Killed liblgade from here, it is now a requirement.

7 8 9 10 11 12 13 14 15 16
1999-07-07  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c: Cleaned up `groupped by' radio
 	button code.  Added `Labels in First Row' check buttons for all
 	tools.  Made the tool list inside of a scrolled window.

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Implemented
 	`Random Number Generation' tool with the following distributions:
 	Discrete, Normal, and Uniform.

17 18 19 20 21 22 23
1999-07-07  Michael Meeks  <michael@edenproject.org>

	* src/about.c (dialog_about): Add Jody, updated Sean.

	* src/dialog-cell-sort.c (dialog_cell_sort): Stop degenerate
	cases from producing confusing 'Add / Remove clause' boxes.

Arturo Espinosa's avatar
Arturo Espinosa committed
24 25 26 27
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

	* src/Gnumeric.idl: Use new interface name.

28 29 30 31 32
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	*src/dialog-analysis-tools.c, src/analysis-tools.c: Added some
 	error checks, not complete yet.
	
33 34 35 36 37
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Added output
 	frames and an option to output into an existing sheet.

38 39 40 41 42
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c: Cleaned up a lot.  Added input
 	frames to input entries.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
43 44 45 46 47
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/analysis-tools.c, src/dialog-analysis-tools.c,
 	src/dialogs.h: Implemented F-Test tool.
	
48 49 50 51 52
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/analysis-tools.c, src/dialog-analysis-tools.c,
 	src/dialogs.h: Implemented t-Test and z-Test tools.
	
Miguel de Icaza's avatar
Miguel de Icaza committed
53 54 55 56
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

	* src/about.c (dialog_about): Added link to IGS web site.

57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
1999-07-05  Jody Goldberg  <jgoldberg@home.com>

	* src/cell.c (cell_set_formula) : Rework array-formula logic to deal
	  with cell_set_array_formula releasing the wrapper generated by the
	  parser.
	(cell_set_text) : Crude but effective prohibition for editing 1 cell
	  in an array.
	
	* src/eval.c : Add more debug info.
	(search_cell_deps) : Rename search_range_deps.
	(search_cell_deps) : New function.  Special case of a single cell
	  only needs 1 call to intersect.

	* src/expr.c (do_expr_tree_invalidate_references,
		      do_expr_tree_fixup_references) : Implement for OPER_ARRAY.
	  (expr_tree_get_const_str) : New function.

	* src/format.c (format_number) : Made debug warning more verbose but
	  only print it the 1st time.

	* src/gnumeric-util.[c,h] (gnumeric_no_modify_array_notice) : New.

	* src/sheet.c (sheet_clear_region): Use gnumeric_no_modify_array_notice.
	(avoid_dividing_array_horizontal, avoid_dividing_array_vertical) : New.
	(sheet_insert_row, sheet_insert_row) : Use them.
	(sheet_fill_selection_with) : Add flag to differentiate fills and
	  array-formulas.  Check to ensure that the array/fill operation does
	  not overwrite a subset of an array.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Pass is_array.
	  (gnumeric_sheet_patterns) : Adjust to more exactly match Excel.
	  NOTE : They are listed in DISPLAY order not excel's internal index
	  scheme, that requires a map.

	* src/gnumeric-sheet.h : Increase number of patterns.

	* src/pattern-selector.c : Adjust layout to match Excel.  Still need to
	  figure out how to get the stipples on a white background.

	* src/main.c : Add debug_excel_{read,formulas,color,chart} to
	  allow run time vs compile time verbosity.

99 100 101 102 103 104 105 106 107 108 109 110 111
1999-07-05  Morten Welinder  <terra@diku.dk>

	* src/expr.c (value_array_resize): Shined up, fixed, not tested.

	* src/print-info.c (print_hf_new): Constify.
	(print_hf_free): Fix leaks.

	* src/workbook.c (workbook_do_destroy): Fix leak.

	* src/style.c (style_shutdown): Unref out fonts.

	* src/sheet.c (sheet_start_editing_at_cursor): Doc fix.

112 113 114 115 116
1999-07-05  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/analysis-tools.c, src/dialog-analysis-tools.c,
 	src/dialogs.h: Implemented Sampling Tool.  Still more to come.

117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
1999-07-05  Morten Welinder  <terra@diku.dk>

	* src/style.c (style_font_new_simple): Reinstate negative caching.

	* src/xml-io.c (xml_set_gnome_canvas_points): Handle zero point
 	case.  Don't rely on return value from sprintf.

	* src/dialog-function-select.c (function_definition_update): Kill
 	warnings.

	* src/dialog-analysis-tools.c (dummy_fun): Make static.
	(summary_stat_signal_fun): Ditto.
	(confidence_signal_fun): Ditto.
	(kth_largest_signal_fun): Ditto.
	(kth_smallest_signal_fun): Ditto.
	(tool_dialog_range): Ditto.
	(selection_made): Ditto.
	(dialog_data_analysis): Kill warning.

	* src/analysis-tools.c (descriptive_stat_tool): Kill warnings.

138 139 140 141 142
1999-07-05  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/analysis-tools.c, src/dialog-analysis-tools.c,
 	src/dialogs.h: Implemented Descriptive Statistics Tool.  Please do
 	not edit these files (unless a serious bug fix) for a couple of
143
 	days; there is more to come.
144

145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

	* src/print.c: Only print the headers and sides 
	
	* plugins/text/text-io.c (text_cleanup_plugin): Kill probing here.
	(text_init): kill probing here as well.
	(text_parse_file): kill probing support here as well.
	(text_parse_file): Do not use first line as sheet name.

	* src/file.c (workbook_import): Added import dialog box.
	(workbook_read): Now does only probe for existing probe routines.
	(file_format_register_open): probe function being NULL now means
	that this is not an auto-probe filter, but an import filter (ie,
	the user has to manually select the file).

1999-07-04  Miguel de Icaza  <miguel@gnu.org>

	* src/file.c (file_format_register_open): Allow the probe_fn to be NULL.

	* src/workbook.c (import_file_cmd): Added import menu item.

Michael Meeks's avatar
Michael Meeks committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
1999-07-05  Michael Meeks  <michael@edenproject.org>

	* src/sheet.c (sheet_update_auto_expr): Removed parsing.

	* src/workbook.c (workbook_set_auto_expr): Moved unsafe parser
	call in here.

	* src/sheet.h: Changed auto_expr_text to ExprTree auto_expr.

	* src/parser.y (gnumeric_expr_parser): Added.
	(gnumeric_unsafe_expr_parser): Renamed and changed arguments.

	* plugins/guile/plugin.c (init_plugin): New function stuff.
	(func_scm_apply): ditto.
	(func_scm_eval): ditto.
	(func_marshal_func): ditto.
	(scm_register_function): ditto.

	* plugins/python/python.c (__register_function): Updated to
	new function stuff.
	(marshal_func): ditto.

	* plugins/perl/ext/Makefile.PL.in: Added GNOME_PRINT bits.

1999-07-04  Michael Meeks  <michael@edenproject.org>

	* src/workbook.c (workbook_sheet_get_free_name): Made more
	similar to Excel: base sheet no. = 1 + no space.
	(workbook_new_with_sheets): Update to more Excel friendly
	names.

Miguel de Icaza's avatar
Miguel de Icaza committed
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
1999-07-02  Miguel de Icaza  <miguel@gnu.org>

	* doc/Design, doc/translating.sgml: small touchups.

	* src/dialog-printer-setup.c (do_setup_main_dialog): Set the
	window parent here.
	(do_setup_main_dialog): Force destruction of parent widget.

	* src/print.glade: Removed visibility flag from toplevel dialog
	box. 

	* doc/C/files.sgml: Updated indentation.

	* src/dialog-printer-setup.c (do_setup_page): Use relative path
	for printing here.

1999-06-30  Miguel de Icaza  <miguel@gnu.org>

	* src/item-grid.c (item_grid_draw_cell): Eliminate warning.

	* src/dialog-printer-setup.c: Adapted to the new setup for keeping
	track of col/rows ranges.
	(do_fetch_page_info): ditto.

	* src/print.c (PrintJobInfo): Use doubles for all the printing
	units. 
	(print_sheet_range): Take into account the repeat ranges for
	repeated headers, repeated columns.
	(print_sheet): compute space used by repeated headers and repeated
	columns. 
	(print_page): Print repeating top rows and repeating left
	columns on each page.  Loop over printing routines.
	(print_page_cells): new routine: prints a cell range only.
	(print_page_repeated_rows, print_page_repeated_cols): Prints the
	repeating columns and repeating rows.

	* src/dialog-cell-format.c (apply_font_format): Implement
	GnomePrint based version.


	* src/print-info.c (save_range): Updated to reflect the new change
	to PrintRepeatRange.
	(print_info_save): ditto.
	(load_range): ditto.
	(print_info_new): ditto.

	* src/print-info.h: Store ranges as a structure that contains an
	explicit tag for validness instead of overloading the definition
	of Value/CellRange.
	
247 248 249 250 251 252 253 254 255 256 257
1999-07-02  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/anaysis-tools.c: New file for data analysis tools.
  	Currently only correlation and covariance tools implemented.

	* src/dialog-analysis-tools.c: New file.

	* src/dialogs.h: Added some definitions for data analysis tools.

	* src/workbook.c: Added data analysis menu entry.

Morten Welinder's avatar
Morten Welinder committed
258 259 260 261 262 263 264 265 266 267 268 269 270 271
1999-06-26  Morten Welinder  <terra@diku.dk>

	* src/fn-string.c (gnumeric_dollar): Avoid warning overflows.

	* src/print-info.c (print_unit_new):  Warning killer.

	* src/fn-financial.c (calculate_fvif): Warning killer.

	* src/expr.c (build_error_string): Re-remove.

	* src/dialog-printer-setup.c (unit_into_to_points): Warning killer.

	* src/mathfunc.c (MATHLIB_WARNING2, MATHLIB_WARNING4): Warning killer.

272 273 274 275
1999-07-01  Michael Meeks  <michael@edenproject.org>

	* src/main.c (gnumeric_main): Added excel_shutdown.

276 277 278 279
1999-07-01  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/datefuns.xls: Added a few missing function tests.

280 281
1999-06-30 Heath Martin <martinh@pegasus.cc.ucf.edu>
	
Miguel de Icaza's avatar
Miguel de Icaza committed
282
	* src/cell.c, src/cell.h: (cell_get_comment) New function.
283 284 285 286
 
 	* src/xml-io.c: (xml_write_cell) Save comments.
 	(xml_read_cell) Load comments.
 
287 288 289 290 291
1999-06-30  Michael Meeks  <michael@edenproject.org>

	* TODO: Moved some bits to plugins/excel.
	add a bit about Styles.

292
1999-06-29  Jody Goldberg  <jgoldberg@home.com>
Miguel de Icaza's avatar
Miguel de Icaza committed
293
	
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
	* src/cell.c (cell_set_formula) : Handle special case of array by
	  setting the entire matrix from the top left corner.
	(cell_set_array_formula) : New function.

	* src/cell.h : Add cell_set_array_formula.

	* src/eval.c (add_cell_range_deps) : Split setup into new function.
	(add_cell_range_dep) : Here.
	(add_tree_deps) : Support Array operators.

	* src/parser.y : Parse new array formula syntax.
	(dump_tree) : rename to expr_dump_tree and move to.

	* src/expr.c (expr_dump_tree) : From parser.y.
	  (expr_tree_get_const_int) : New function.
	  (expr_tree_array_formula) : New function. 
	  (expr_tree_array_formula_corner) : New function.
	  (do_expr_tree_unref) : Support Array operators.
	  (value_area_get_at_x_y) : Renamed to value_area_fetch_x_y, fixed
	    thinko, completed support for relative ranges.
	  (value_area_get_x_y) : New function, like value_area_fetch_x_y but
	    does not create missing values.
	  (eval_expr) : Support Array operators.
	  (do_expr_decode_tree) : Ditto.
          (do_expr_tree_invalidate_references) : Ditto.
	  (do_expr_tree_fixup_references) : Ditto.

	* src/expr.h : Add expr_tree_get_const_int, expr_tree_array_formula,
	  value_area_get_x_y, and Array operators. Rename value_area_get_at_x_y.

	* src/fn-lookup.c : Handle renamed value_area_fetch_x_y.
	* src/fn-math.c : Ditto. Add MMULT.

	* src/format.c : (format_value) Handle arrays.

	(assemble_clear_cell_list) : check that a subset of an array is not
	  being cleared.
	* src/item-cursor.c : Ditto.
	* src/item-grid.c : Ditto.
	* src/xml-io.c : Deal with Array formula I/O.

335 336 337 338 339 340 341 342 343 344 345 346 347
1999-06-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/print-info.c (save_range): Save the repeat ranges routine.
	(print_info_save): Save the repeat ranges.

	* src/expr.c (value_cellrange_get_as_string): Implemented.
	(value_get_as_string): Expanded to render cellranges.

	* src/print-info.c (load_range): New routine, loads a range from
	the config file.

	* src/print.c (print_sheet_range): off-by-one error fix.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
348 349 350 351 352 353
1999-06-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/textfuns.xls: Added a new test file.

	* samples/engfuns.xls, samples/mathfuns.xls: Updated.

354 355 356 357 358 359 360 361 362 363
1999-06-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: Added FORECAST() and INTERCEPT().

	* src/fn-math.c: SUMIF() can now take an optional argument
 	(actual_range).

	* src/fn-information.c: Made N() return 0 if the given string is
	non-number, not an error.

364 365 366 367 368 369
1999-06-28  Michael Meeks  <michael@edenproject.org>

	* src/main.c (gnumeric_main): removed xbase_init.

	* src/Makefile.am: Removed xbase static link.

370 371 372 373 374 375 376 377 378 379 380 381
1999-06-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/dialog-printer-setup.c (load_image): Use a constant relative
	to the Gnumeric installation directory, do not use the gnome
	pixmap path routine.

	* src/workbook.c: Add print icon to the toolbar.

	* src/dialog-printer-setup.c (do_print_cb): Fetch settings when
	the user presses print from here.
	(do_setup_main_dialog): Hide non working widgets.

Michael Meeks's avatar
Michael Meeks committed
382 383 384 385
1999-06-28  Michael Meeks  <michael@edenproject.org>

	* CHANGES: Updated for new release.

386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402
1999-06-27  Raja R Harinath  <harinath@cs.umn.edu>

	* src/Makefile.am (Gnumeric-impl.o): This depends on Gnumeric.h,
	Gnumeric-impl.c doesn't.

	Reinstate Perl plugin.
	* plugins/perl/Makefile.am: Clean up build.
	* plugins/perl/ext/Gnumeric.xs (register_function): 
	Use FunctionCategory and `function_add_args' API instead of
	`install_symbol'. 
	(marshal_func): Update to new callback prototype.
	* plugins/perl/ext/Makefile.PL.in ('INC'): Use @top_srcdir@ rather
	than @srcdir@/../../...

	* doc/C/Makefile.am: Misc. srcdir != builddir fixes.
	* configure.in (GNOME_PRINT_CFLAGS): Fix typo.

403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
1999-06-25  Michael Meeks  <michael@edenproject.org>

	* src/dialog-function-wizard.c: Re-vamped table layout.

	* src/fn-string.c (string_functions_init): Change category
	name to 'String'; silly me.

	* src/dialog-function-select.c (function_definition_update): Fixed
	old & broken function pointer code.

	* src/expr.c (eval_funcall): Updated to use union.
	(function_def_call_with_values): ditto.

	* src/func.c (function_add_nodes): ditto.
	(function_add_args): ditto.

	* src/expr.h: Changed void *fn pointer to a slicker union.

	* src/plugin.h: Added a prototype for the one external function
	every plugin must have ( kills some plugins warnings ).

	* src/workbook.c (workbook_new): Updated call to set_auto_expr
	(change_auto_expr): ditto.
	(workbook_do_destroy): Update.
	(workbook_set_auto_expr): Updated, just to set text leaving heavy
	lifting for sheet.c. This removes possible error checking of our
	quick-functions, but an error will be displayed in the status bar
	having set the function, and the functionality wasn't used.

	* src/sheet.h: Removed previously extern'd workbook_set_auto_expr,
	this should be internal.
	Remove auto_expr_tree from Workbook *.

	* src/sheet.c (sheet_update_auto_expr): Moved auto_expr parsing
	into sheet_update_auto_expr. Rational; neater, and not performace
	critical.

440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654
1999-06-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/pixmaps.h: Removed unused pixmaps.

	* src/corba-sheet.c (Sheet_corba_class_init): Fill in some missing
	values fomr the GNOME::Gnumeric::Sheet epv interface.

	* src/expr.c (eval_funcall): Removed unused variable.

	* src/workbook.c (workbook_sheets): prepend and reverse instead of
	appending all the time.  It is more efficient.

	* src/style.c (x11_font_compute_hints): Renamed as well.  Might be
	useful in the future.

	* src/gnumeric-util.c (x11_font_get_italic_name,
	x11_font_get_bold_name, x11_font_change_component): Renamed these
	functions to reflect their actual usage.

	* src/expr.c (expr_tree_new_constant): Change style to use early
	return to keep indentation of the rest of the code at tab-1.  This
	is a trick to keep indentation nice with 8-tab spaces.  Liberal
	use of early returns, early continues, early breaks.

	* src/cell.h (CELL_TEXT_GET): Kill unused macro.

1999-06-25  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c (xml_read_cell): Merge the style we just read with
	the existing information from the cell (which are the defaults).
	This is only for compatibility with the old format

1999-06-24  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c (style_font_new_from_x11): Implemented 

	* src/style.c (style_font_new): Improved matching of the font.

	* src/xml-io.c 	(xml_write_style): Save Bold and Italic
	properties.  Save Units as double.
	(xml_read_style): Add conversion hook from old format.
	(xml_read_style): Load properly italic and bold properties.

	(xml_read_cell): Add new style reading code.  It is
	compatible with the old Style reading code.
	(xml_read_rows_info, xml_read_cols_info, xml_read_styles): Moved
	Cols, Rows and Styles loading code here, for code clarity.
	
	* src/style.c (style_font_new_simple): Include the scale in the
	key lookup variable.

	* src/xml-io.c: The FontDefs and the HREFs to the fonts were never
	being used.  The new code for styles simplifies this.  Kill all
	the references to the FontDefs urls and the font indeces.

	* src/xml-io.c 

1999-06-23  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c: Major updates.  
	(xml_read_colrow_info): Use floating point for loading the
	units, margin_a and margin_b.
	(xml_write_colrow_info): Save units, margin_a and margin_b using
	floating point.
	(xml_set_value_double): Activate this function.
	(xml_write_cell): Do not save the style here.  Lookup the style
	id, and write a record with the style id link.
	(xml_sheet_write): Add call to xml_cell_styles_init and
	xml_cell_styles_shutdown to init and shutdown the cell styles in a
	per-sheet basis.

	Renamed functions to suit the gnumeric coding
	sytle.  Fixed indentation.

	File format now saves a different version.  We store all cell
	styles first, and then we reference them.
	
	(parse_xml_context_t): renamed from
	parseXmlContext.  Add style_table hash table for storing all the
	styles used by the cells on a workbook.  Used to dump Styles first
	and then have the cells reference it.

	* src/style.c (style_hash, style_compare): New routines to
	put Styles on hash tables.

	* src/workbook.c (workbook_sheets): Use g_list_prepend instead of
	g_list_append and reverse the result.

1999-06-14  Miguel de Icaza  <miguel@gnu.org>

	* src/cell.h: Killed ColType and RowType definitions.  They do not
	save any noticeable amount of memory; we are not using them but
	on the most useless places and finally they are the current limit
	to our spreadsheet size.

	* src/gnumeric-sheet.h: Use int instead of ColType, RowType
	* src/item-cursor.h: Use int instead of ColType, RowType
	* src/item-grid.h: Use int instead of ColType, RowType

	* src/print-cell.c (CELL_DIM): Use _pt variants of the margins here.
	(print_cell_text): and here.
	(print_cell): and here.
	(print_cell_range): and here.
	(print_cell_grid): and here.

1999-06-13  Miguel de Icaza  <miguel@gnu.org>

	* src/sheet.c (sheet_compute_col_row_new_size): Update margin_a
	and margin_b from the points.
	(col_row_info_init): New function to initialize a sample
	ColRowInfo.  Inits the _pt fields.
	(col_row_unit_distance): Use the new fields in computation.
	(sheet_col_get_unit_distance): Use new fields in computation.

	* src/dialog-printer-setup.c (do_setup_margin): Set scroll region.
	(preview_page_create): Implement routine that draws the page for
	the margin setup. 

	* src/sheet.h (ColRowInfo): Units are now doubles; margin_a_pt and
	margin_b_pt are doubles that represent the a and b margins in
	points.
	
	* src/sheet.c (sheet_compute_col_row_new_size): Use the 

1999-06-11  Miguel de Icaza  <miguel@gnu.org>

	* src/cell-draw.c (cell_draw): Move the foreground setting routine
	here and handle single-line and multiline coloring properly.

	* src/print-info.c (unit_name_to_unit): New routine, returns the
	UniName from the string name.

	* src/dialog-printer-setup.c (dialog_printer_setup): Use
	print_info_save and kill the do_save_settings routine for the
	cleaner print_info routine.

	* src/print-info.c (print_info_new): Now loads the default
	settings from the saved configuration.
	(print_info_save): Saves the print information to the gnome_config.

1999-06-08  Miguel de Icaza  <miguel@gnu.org>

	* src/utils.c (str_trim_spaces): Moved str_trim_spaces ere. 

	* src/dialog-printer-setup.c (do_setup_main_dialog): Connect print
	buttons. 

	* src/print-cell.c (print_cell_grid): Simplify routine.

	* src/sheet.c (sheet_row_get_unit_distance,
	sheet_col_get_unit_distance): Include  margins in computation.
	This is broken, as the margins are now pixels, and they should be
	made points. 

	* src/dialog-printer-setup.c (do_fetch_page_info): Fetch other values.
	(do_save_settings): Saves the configuration.

	* src/print-cell.c (print_border): Implement border drawing.
	(print_cell_grid): Make this work as it should.

	* src/print.c (compute_groups): Handle the case where the contents
	fit entirely in one page. 

1999-06-07  Miguel de Icaza  <miguel@gnu.org>

	* src/print.c: New file.  Implements high-level printing.

	* src/dialog-printer-setup.c: New file.  Implements the "Print
	Setup" dialog box.

1999-04-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell-draw.c: New file.  All of the cell screen drawing code
	has been moved here now. 

	* src/print-cell.c: Enhanced code.

	* src/workbook.c: hardcoded page size for testing purposes.

1999-03-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	I do not like the current approach.  I do think that StyleFonts
	should be static with regard to Zoom.  

	And we would keep a cache of X fonts that are used for a
	particular size. 
	
	* src/style.c (style_font_new_from): New routine that creates a
	new font.

	* src/sheet.c (sheet_set_zoom_factor): Scale fonts used in the
	Sheet.

1999-02-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/dialog-printer-setup.c: New file.  Implements the workbook
	page configuration dialog box.

	* src/print-info.c, src/print-info.h: Manages the per-worbook
	print options. 

1999-02-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/style.c (font_equal): Adapt function to the new StyleFont. 
	(style_font_new, style_font_new_simple): Adapt for the upcoming
	gnome-print support. 
	(font_init): Adapt.

	* src/xml-io.c: Use Gnome Print font scheme.
	* src/workbook.c: ditto.
	* src/cell.c: ditto.
	* src/item-bar.c, src/item-edit.c: ditto
	
	* src/dialog-cell-format.c: Disable font selector for now.
	
Morten Welinder's avatar
Morten Welinder committed
655 656 657 658 659 660 661 662
1999-06-26  Morten Welinder  <terra@diku.dk>

	* src/fn-financial.c (gnumeric_rate): New function.

	* src/sheet.c (sheet_destroy): Sssshhhh!

	* src/fn-eng.c (val_to_base): Neat and tidy.

663 664 665 666 667 668 669 670 671
1999-06-25  Morten Welinder  <terra@diku.dk>

	* src/fn-eng.c (eng_functions_init): Extend impower to handle two
 	complex numbers.
	(eng_functions_init): Prepare for besseli and besselk.  Docs
 	please.

	* src/mathfunc.c (dweibull, pweibull, ppois, dpois, dexp, pexp,
 	dbinom, pbinom, qbinom, besseli, besselk): New functions.
672

673 674
	* src/fn-stat.c: Use new mathfuncs.
	(gnumeric_kurt): Use range function.
675 676 677 678 679 680 681 682
	(gnumeric_kurtp): New function.
	(gnumeric_skewp): New function.

	* src/mathfunc.c (range_skew_est): Rename from range_skew.
	(range_skew_pop): New function.
	(range_kurtosis_m3_est): New function.
	(range_kurtosis_m3_pop): New function.

Morten Welinder's avatar
Morten Welinder committed
683 684
	* src/fn-math.c (gnumeric_gcd): Cleanup and fix.

Michael Meeks's avatar
Michael Meeks committed
685 686 687 688 689 690 691 692 693
1999-06-24  Michael Meeks  <michael@edenproject.org>

	* src/expr.c (value_area_get_at_x_y): Return value_zero instead
	of the leaky value_new_int.
	(value_area_get_at_x_y, value_area_get_width, value_area_get_height):
	Updated to fall back to EvalPosition's Sheet *.

	* src/expr.h: Added 'EvalPosition' parameter to area functions.

Morten Welinder's avatar
Morten Welinder committed
694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712
1999-06-23  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_poisson): Fix formula and error
 	handling.
	(gnumeric_binomdist): Ditto.
	(gnumeric_correl): Ditto.

	* src/expr.c (eval_expr): Remove useless casts.
	(eval_funcall): Treat 'b' as 'f' for now.  Don't use fd until it
 	gets a value.

	* src/func.c (function_iterate_argument_values): Don't leak error
 	message.

	* src/eval.c (cell_eval): Don't leak error message.

	* src/*.c: Remove strange casts to (Value *).

1999-06-24  Michael Meeks  <michael@edenproject.org>
Michael Meeks's avatar
Michael Meeks committed
713

714 715 716
	* src/expr.c (error_message_new): Fix stupid bug,
	such that every error was set.

Michael Meeks's avatar
Michael Meeks committed
717 718 719 720 721 722
	* src/fn-math.c: Add sumproduct back in.

1999-06-24  Michael Meeks  <michael@edenproject.org>

	* src/fn-stat.c: Added ftest, ttest again.

723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791
1999-06-23  Michael Meeks  <michael@edenproject.org>

	* src/sheet.c (sheet_update_auto_expr): Add check for cached
	text.

	* src/sheet.h: Added workbook_set_auto_expr.

	* src/workbook.c (workbook_new): Initialise auto_expr stuff
	before reading it in set_auto_expr.
	(workbook_do_destroy): Add freeing of auto_expr_text.
	(workbook_set_auto_expr): Hacked to cache expression until we
	have a sheet context.

	* src/expr.h: Add extra Parser error type for invalid args.

	* src/fn-financial.c (finance_functions_init): Fix financial
	functions, using 'i' as a token ( invalid ).

1999-06-23  Michael Meeks <michael@edenproject.org>

	* docs/writing-functions.sgml: Updated to reflect my changes,
	expanded and removed anachronisms.
	
	* src/expr.h: Added FunctionArgs, FunctionNodes typedefs
	Created struct EvalPosition, struct FunctionEvalInfo and
	implemented through functions where necessary.

	* src/expr.c (function_error, function_error_alloc): created
	helper error return functions.
	(eval_pos_init, eval_pos_cell): Helper EvalPosition fn's
	(func_eval_info_init, func_eval_info_cell, func_eval_info_pos):
	created helper FunctionEvalInfo fn's
	(error_message_new, error_message_set_alloc),
	(error_message_set_small, error_message_txt, error_message_free):
	created error class.

	* src/expr.c (expr_parse_string, gnumeric_expr_parser),
	(expr_decode_tree, expr_tree_invalidate_referenced),
	(expr_tree_fixup_references, eval_expr): Updated to pass / use
	new EvalPosition / FunctionEvalInfo structures.

	* src/parser.y (gnumeric_expr_parser): Updated arguments to use
	EvalPosition, added more stringent checks.

	* src/func.h: Updated lots of things to new structures.
	Changed the iterators arguments to new structures, altered
	FunctionIterateCallback to suit.
	Re-implemented function storage / mapping.

	* src/func.c (function_get_category, function_add_args),
	(function_add_nodes): Created.
	(function_iterate_do_value, function_argument_values),
	(function_call_with_values, function_def_call_with_values):
	Updated to new scheme.
	
	* src/fn-*: Major major changes:
	- All function definitions changed to use:
	typedef Value *(FunctionArgs)  (FunctionEvalInfo *fe, Value **args); or
	typedef Value *(FunctionNodes) (FunctionEvalInfo *fe, GList *nodes);
	- All error returns altered to use:
	        return function_error (ei, _("foo"));
	instead of
	        {
		        *error_string = _("baa");
			return NULL;
		}
	this will allow for changing the error handling.
	- A few functions that used Sheet *, eval_col, eval_row updated.
	
792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807
1999-06-23  Morten Welinder  <terra@diku.dk>

	* src/collect.c, src/collect.h: New files.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add collect.c and
 	collect.h.

	* src/fn-stat.c: Rewrite range-taking using collect and new range
 	handling functions.  Most look really nice now.  (This fixes and
 	number of leaks and makes error cases handled better.  We might
 	return the wrong error from time to time, though.)

	* src/fn-math.c: Ditto.

	* src/expr.c (eval_funcall): Fix insanity check.

808 809 810 811 812 813 814 815 816 817
1999-06-22  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_funcall): Add sanity check.

	* src/fn-stat.c (callback_function_ttest): Make static.

	* src/expr.h: Delete unwanted member "sym".

1999-06-22  Jukka-Pekka Iivonen  <iivonen@iki.fi>

818 819 820 821 822 823 824 825
        * samples/statfuns.xls: Added MMULT and MINVERSE tests.

        * samples/lookfuns.xls: Added a new file for testing lookup and
 	reference functions.

        * samples/logfuns.xls: Added a new file for testing logical
        functions.

826 827 828 829 830 831 832
1999-06-22  Nat Friedman  <nat@gnome-support.com>

	* src/sheet-object-container.c (sheet_object_container_land): Use
 	gnome_bonobo_object_clieint_new_view instead of
 	gnome_bonobo_object_new_view.
	(sheet_object_container_realize): Likewise.

833 834
1999-06-22  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
835 836 837
	* src/number-match.c (format_create_regexp): You don't want to
 	know.

838 839 840 841 842 843 844 845 846 847
	* src/fn-date.c (get_serial_date): Cleanup.
	(get_serial_time): Ditto.

	* src/sheet.c (sheet_set_text): Abandon old reverse test that lead
 	to trouble with floating point formats.

	* src/number-match.c (format_match): Change from double to
 	float_t.  All callers changed.
	(compute_value): Ditto.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
848 849
1999-06-22  Jukka-Pekka Iivonen  <iivonen@iki.fi>

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
850 851
	* src/fn-stat.c: Added TTEST().

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
852 853
	* src/fn-stat.c: Added FTEST().

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
854 855
	* src/fn-math.c: Added SUMPRODUCT().

Morten Welinder's avatar
Morten Welinder committed
856
1999-06-21  Morten Welinder  <terra@diku.dk>
Morten Welinder's avatar
Morten Welinder committed
857 858 859 860 861 862 863 864 865 866 867 868 869 870 871

	* src/dialog-function-wizard.c (arg_data_list_new): Fix case of
 	missing SYNTAX section.
	(create_description): Handle constness of tokenized_help_find.
  	Delete weird #define.

	* src/func.c (tokenized_help_find): Constify.

	* src/expr.c (expr_tree_new_error): Smarten.

	* src/fn-misc.c (gnumeric_error_type): Fix case of incorrect
 	number of arguments.

	* src/fn-information.c (get_value_class): Fix leak.

872 873 874 875
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
Morten Welinder's avatar
Morten Welinder committed
876
	instead.
877 878 879 880

	* 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.
Morten Welinder's avatar
Morten Welinder committed
881

882
	(sheet_paste_selection): Swap the paste dimesions here if we are
Morten Welinder's avatar
Morten Welinder committed
883
	pasting/transpose.
884 885 886 887 888 889 890 891 892 893 894 895

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
	checkbutton for transpose-on-paste operation.

Michael Meeks's avatar
Michael Meeks committed
896 897 898 899 900
1999-06-21  Michael Meeks  <michael@edenproject.org>

	* src/func.c (iterate_cellrange_callback): Add case
	of no cell text ( yet ).

Morten Welinder's avatar
Morten Welinder committed
901 902
1999-06-21  Morten Welinder  <terra@diku.dk>

903 904 905 906 907 908 909 910
	* src/fn-information.c (get_value_class): New function.
	(gnumeric_isnontext): Make non-strict.
	(gnumeric_istext): Make non-strict.
	(gnumeric_type): Make non-strict.
	(gnumeric_islogical): Make non-strict.
	(gnumeric_isnumber): Make non-strict.
	(gnumeric_n): Implement.
	(gnumeric_iseven): Implement.
911 912 913 914 915
	(gnumeric_isodd): Ditto.
	(gnumeric_cell): Fix error message.
	(gnumeric_info): Ditto.
	(gnumeric_type): Partly implement.

Morten Welinder's avatar
Morten Welinder committed
916 917 918 919 920 921 922 923
	* src/fn-math.c (gpow10): Rename from pow10 which colided with
 	something in Linux with libc5.  (Thanks to Alexander Jolk.)

	* src/utils.c (parse_cell_name): Don't use isdigit since we intend
 	to subtract '0' from the character.

	* src/workbook.c (workbook_parse_and_jump): Cleanup.

924 925 926 927 928
1999-06-21  Jukka-Pekka Iivonen  <iivonen@iki.fi>

        * samples/infofuns.xls: Added a new file for testing information
        functions.

Morten Welinder's avatar
Morten Welinder committed
929 930
1999-06-20  Morten Welinder  <terra@diku.dk>

931 932 933 934 935 936 937 938 939 940 941 942
	* src/workbook.c (wb_edit_key_pressed): New function to handle
 	Escape.
	(workbook_setup_edit_area): Activate wb_edit_key_pressed.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Call
 	sheet_start_editing_at_cursor for F2.

	* src/sheet.c (sheet_cancel_pending_input): Fix last change.  Also
 	update entry box.
	(sheet_start_editing_at_cursor): New args blankp and cursorp.  All
 	callers changed.

Morten Welinder's avatar
Morten Welinder committed
943 944 945 946 947 948 949 950
	* src/fn-math.c (gnumeric_mod): Another try.
	(gnumeric_int): Fix for negative numbers.

	* src/sheet.c (sheet_set_text): Set value directly, not via text.  Also
	improve entry when a format is already set.
	(sheet_cancel_pending_input): Fixed behavior of canceling a cell
 	entry.  [From Bake Timmon.]

951 952 953 954 955 956 957 958
1999-06-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/dbfuns.xls: Added new file for database functions.

	* samples/mathfuns.xls: Added MDETERM test.

	* samples/statfuns.xls: Added AVERAGEA, MINA, MAXA, ... tests.

959 960 961 962 963 964 965 966 967 968 969 970 971 972 973
1999-06-17  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_count): Make non-strict and ignore cells
 	with errors.

	* src/fn-logical.c (gnumeric_or, gnumeric_and): Make strict!.

	* src/func.c (IterateCallbackClosure): Add strict member.
	(iterate_cellrange_callback): Handle strict and non-strict case.
	(function_iterate_argument_values): New argument, strict.  All
 	callers changed.  Initialise error_string always.  Handle strict
 	and non-strict case.
	(function_iterate_do_value): New argument, strict.  Handle strict
 	and non-strict case.  All callers changed.

Michael Meeks's avatar
Michael Meeks committed
974 975 976 977 978 979 980 981 982 983
1999-06-18  Michael Meeks  <michael@edenproject.org>

	* src/main.c (gnumeric_main): Add xbase_init

	* src/Makefile.am (gnumeric_LDADD): Add xbase.

	* configure.in (XML_CFLAGS): Added xbase.

	* plugins/Makefile.am (SUBDIRS): Added xbase.

Morten Welinder's avatar
Morten Welinder committed
984 985
1999-06-17  Morten Welinder  <terra@diku.dk>

986 987
	* src/expr.c (eval_expr): Fix error handling of comparisons.

Morten Welinder's avatar
Morten Welinder committed
988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005
	* src/expr.c (expr_tree_new_constant): New function.
	(expr_tree_new_unary): New function.
	(expr_tree_new_binary): New function.
	(expr_tree_new_funcall): New function.
	(expr_tree_new_var): New function.
	(expr_tree_new_error): Renamed from build_error_string, made
 	public, and simplified.  All callers changed.
	(do_expr_tree_invalidate_references): Simplify.
	(do_expr_tree_fixup_references): Ditto.
	(eval_expr): Simplify.
	(expr_tree_new): Obsolete.

	* src/func.c (constants_init): Simplify.

	* src/main.c (gnumeric_main): Call style_shutdown.

	* src/style.c (style_shutdown): New function.

Morten Welinder's avatar
Morten Welinder committed
1006 1007 1008 1009
	* src/expr.h: Avoid using bitfields here.  They are slow and
 	confuse tools like Purify.  And used like this they don't save any
 	space anyway.

Morten Welinder's avatar
Morten Welinder committed
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
	* src/complex.c: Fix includes.

	* src/fn-eng.c (gnumeric_impower): Use new complex_pow.
	(callback_function_imoper): Benefit from new and more intuitive
 	behavoiur of complex_mul and complex_add.

	* src/complex.h (complex_mod): Use hypot for better precision.
	(complex_*): Use complex_init when possible.  (This means that the
 	output can be the same as one of the inputs without any trouble.)
	(complex_pow): New function.

1021 1022 1023 1024
1999-06-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c (gnumeric_percentrank): Interpolation and rounding
	fixes.
Morten Welinder's avatar
Morten Welinder committed
1025

1026 1027 1028 1029
1999-06-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-eng.c (gnumeric_erf): ERF() changed back to the previous
 	form.  Negative arguments are wrong.
Morten Welinder's avatar
Morten Welinder committed
1030

1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
1999-06-16  Morten Welinder  <terra@diku.dk>

	* src/complex.h, src/complex.c: New files.

	* src/fn-eng.c: Use complex.c; improve precision, fix a few bugs,
 	plug a few leaks, add a few functions, and generally be merry.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add complex.c and
 	complex.h.

1041 1042 1043 1044 1045
1999-06-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/finfuns.xls: A new file for financial functions.

	* samples/engfuns.xls: A new file for engineering functions.
Morten Welinder's avatar
Morten Welinder committed
1046

1047 1048 1049 1050
	* samples/mathfuns.xls: COMBIN and FACT fixed.

	* samples/statfuns.xls: Accuracy dropped again.

1051 1052 1053 1054 1055
1999-06-16  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_feedback_set): Block the "clicked"
 	handlers when we are just setting the feedback.

1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070
1999-06-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c (gnumeric_gcd): Made GCD() to take variable number
 	of arguments.

	* src/fn-stat.c (gnumeric_rank): RANK() fixed.

	* src/fn-eng.c (gnumeric_erf): ERF() fixed to return negative
	results if the argument is negative too like in Excel.

	* srg/fn-eng.c (get_real_and_imaginary): Added a branch for empty
 	imaginary part.

	* src/fn-eng.c (gnumeric_improduct, gnumeric_imsum): Made IMSUM()
	and IMPRODUCT() to take variable number of arguments.
Morten Welinder's avatar
Morten Welinder committed
1071

Morten Welinder's avatar
Morten Welinder committed
1072 1073
1999-06-15  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087
	* src/style.c (style_font_new_simple): Plug leak.

	* src/cell.c (cell_set_formula_tree_simple): Ref before unref,
 	just in case.

	* src/fn-math.c (callback_function_criteria): Just collect the
 	values, not (incorrectly) allocated pointers to them.
	(gnumeric_countif): Release the values.  (Leak fix.)
	(gnumeric_sumif): Ditto.
	(gnumeric_countif): Plug leak.
	(gnumeric_sumif): Ditto.
	(gnumeric_seriessum): Plug three leaks.
	(gnumeric_subtotal): Plug leaks and fix error handling.

Morten Welinder's avatar
Oops...  
Morten Welinder committed
1088 1089
	* src/style.c (style_font_new_simple): Fix memory access problem.

Morten Welinder's avatar
Morten Welinder committed
1090 1091 1092 1093 1094 1095 1096 1097 1098
	* src/style.c (font_init): Rework.  (Work in progress.  Things
 	should work ok, but will become even better.)
	(style_font_new_simple): Revert to loading a font, not a fontset.

	* src/gnumeric-util.c (font_get_italic_name): Plug leak and unref
 	the StyleFont.
	(font_get_bold_name, font_get_italic_name): New parameter units.
  	All callers changed.

Tomas Ogren's avatar
Tomas Ogren committed
1099 1100 1101 1102
1999-06-15  Tomas Ogren  <stric@ing.umu.se>

	* configure.in: Added sv

Morten Welinder's avatar
Morten Welinder committed
1103
1999-06-14  Morten Welinder  <terra@diku.dk>
Morten Welinder's avatar
Morten Welinder committed
1104

1105 1106 1107 1108 1109 1110 1111 1112 1113
	* src/style.c (style_font_new_simple): Add negative caching.
	(DEFAULT_FONT): Don't have a complete wildcard here -- that might
 	be a very weird font.

	* src/cell.c (cell_set_font_from_style): Mark font valid.  Ref
 	before unref.
	(cell_set_format_from_style): Mark format valid.  Ref before
 	unref.

Morten Welinder's avatar
Morten Welinder committed
1114 1115 1116
	* src/gnumeric-util.c (font_get_italic_name): Plug leak.
	(font_change_component): Constify.  Handle fontsets.

Morten Welinder's avatar
Morten Welinder committed
1117 1118
1999-06-14  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1119 1120
	* src/fn-math.c (gnumeric_floor): Add significance argument.

Morten Welinder's avatar
Morten Welinder committed
1121 1122 1123 1124
	* src/fn-math.c (callback_function_seriessum): Simplify.
	(gnumeric_seriessum): Don't round x, n, and m to integers.  Fix
 	error handling.

1125 1126 1127 1128 1129 1130 1131
	* src/fn-math.c (pow10): New function.
	(gnumeric_rounddown): Simplify and correct.
	(gnumeric_round): Ditto.
	(gnumeric_roundup): Ditto.
	(gnumeric_trunc): Ditto.
	(gnumeric_fact): Improve precision.  Extend domain to all positive
 	numbers.
Morten Welinder's avatar
Morten Welinder committed
1132
	(gnumeric_factdouble): Use float_t instead of int.
1133
	(gnumeric_atan2): Swap args to atan2.
Morten Welinder's avatar
Morten Welinder committed
1134

1135 1136
1999-06-13  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1137 1138 1139 1140
	* src/style.c (DEFAULT_FONT): Add extra font in the hope of curing
 	1207.
	(font_init): Shine up error message and avoid core dump.

1141 1142 1143
	* src/gnumeric-sheet.c (gnumeric_sheet_stop_cell_selection):
 	Temporary patch for refcounts until Miguel can fixup things.
	(destroy_item_editor): Ditto.
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155

	* src/fn-financial.c: s/double/float_t/;
	(calculate_pvif, calculate_pvifa, calculate_fvif, calculate_fvifa,
 	calculate_principal, calculate_pmt): Make static.
	(callback_function_npv): Simplify and truly ignore strings.
	(gnumeric_duration): More error checks.
	(gnumeric_nper): Ditto.
	(gnumeric_syd): Ditto.
	(gnumeric_sln): Ditto.
	(gnumeric_pv): Ditto.
	(gnumeric_fv): Ditto.

1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
	* src/fn-information.c: Prune includes.
	* src/fn-string.c: Ditto.
	* src/fn-sheet.c: Ditto.
	* src/fn-misc.c: Ditto.
	* src/fn-financial.c: Ditto.
	* src/fn-date.c: Ditto.
	* src/fn-database.c: Ditto.
	* src/fn-lookup.c: Ditto.
	* src/fn-stat.c: Ditto.
	* src/fn-math.c: Ditto.
	* src/fn-logical.c: Ditto.

	* src/cell.h: Fix includes.
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182

	* src/fn-information.c (gnumeric_isblank): Return boolean.
	(gnumeric_iseven): Ditto.
	(gnumeric_islogical): Ditto.
	(gnumeric_isnontext): Ditto.
	(gnumeric_isnumber): Ditto.
	(gnumeric_isodd): Ditto.
	(gnumeric_isref): Ditto.
	(gnumeric_istext): Ditto.
	(gnumeric_n): Ditto.

	* src/expr.c (value_new_bool): New function.
	(eval_expr): Return boolean Values.

1183 1184 1185
	* src/fn-misc.c (gnumeric_iserr, gnumeric_iserror, gnumeric_isna):
 	Return boolean;

1186 1187 1188 1189 1190 1191
	* src/fn-logical.c (callback_function_and): Simplify.
	(callback_function_or): Ditto.
	(gnumeric_and): Simplify and return boolean Values.
	(gnumeric_not): Ditto.
	(gnumeric_if): Fix error case.  Simplify.

Morten Welinder's avatar
Morten Welinder committed
1192 1193
	* src/cell.c (cell_comment_destroy): Free realized_list.

Morten Welinder's avatar
Morten Welinder committed
1194 1195
	* fn-*.c: Use new standard error variables.

Morten Welinder's avatar
Morten Welinder committed
1196 1197 1198 1199 1200 1201 1202 1203 1204
1999-06-12  Jody Goldberg  <jgoldberg@home.com>

	* src/expr.h : Declare new standard error constants to avoid
	spelling problems and typos.
	* src/expr.c, src/func.c, src/fn-math.c : Use and define them.
	* src/fn-misc.c	: First pass at finishing off error functions.
	* src/fn-information.c : Provide stubs for the rest of the
	information functions.

1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228
1999-06-12  Miguel de Icaza  <miguel@gnu.org>

	* src/dialog-cell-comment.c (dialog_cell_comment): Process the
	return value from gnome_dialog_run correctly as well.  (ie we
	should catch the return value -1 as the "user closed dialog box"
 	message and avoid destroying the dialog box ourselves).

	* src/item-grid.c (context_paste_special_cmd): Handle a cancel
	operation from the dialog_paste_special dialog box.

	* src/dialog-paste-special.c (dialog_paste_special): Hanlde the
	case in which the window manager closed the dialog box.

1999-06-10  Miguel de Icaza  <miguel@gnu.org>

	* src/pattern-selector.c (pattern_selector_init): Use the GNOME
	canvas fill_stipple feature instead of using the hack of creating
	the bitmap and setting the stipple on the realize handler.

1999-06-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* po/hr.po: Added croat translation from Vladimir Vuksan
	<vuksan@cs.unm.edu>.

1229 1230 1231 1232 1233 1234 1235
1999-06-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/mathfuns.xls: New test file for math functions.

	* samples/statfuns.xls: Accuracy dropped to 1e-5 (since Excel is
 	not as accurate as Gnumeric).  Also the total number of functions
 	in the test output fixed.
Morten Welinder's avatar
Morten Welinder committed
1236

1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718
1999-06-12  Morten Welinder  <terra@diku.dk>

	* src/fn-string.c: Use value_new_string where appropriate.
	(gnumeric_clean): Use unsigned chars.
	(gnumeric_t): Speed improvement.

	* src/file.c (workbook_read): After a workbook has been read, it
 	is to be considered "clean", i.e., unchanged.

	* src/number-match.c (print_regex_error): Add a few missing breaks.

	* src/utils.c (gnumeric_strcase_hash): Use unsigned chars.
	(col_from_name): Ditto.

	* src/format.c (append_year): Ditto.
	(append_month): Ditto.
	(append_hour): Ditto.
	(append_day): Ditto.
	(append_minute): Ditto.
	(append_second): Ditto.
	(pre_parse_format): Ditto.

	* src/number-match.c (format_create_regexp): Ditto.

	* src/fn-string.c (gnumeric_lower): Use g_strdup to match g_free.
	(gnumeric_upper): Ditto.
	(gnumeric_lower): Use unsigned chars.  (This fixes problems with
 	non-English letters.)
	(gnumeric_upper): Ditto.
	(gnumeric_proper): Ditto.  Operate on a _copy_ of the string, not
 	the source string itself!

1999-06-10  Morten Welinder  <terra@diku.dk>

	* src/parser.y (return_cellref): Surprise: isdigit and friends
 	take unsigned chars (effectively).  The results are *undefined*
 	(and weird) for signed chars.
	(yylex): Ditto.

	* src/fn-string.c (gnumeric_proper): Ditto.

	* src/utils.c (parse_cell_name): Ditto.

	* src/sheet-autofill.c (string_has_number): Ditto.
	(autofill_cell): Ditto.

	* src/cell.c (cell_set_text_simple): Ditto.  Also fix long/int
 	confusion.

1999-06-10  James Henstridge  <james@daa.com.au>

	* src/main.c (gnumeric_main): changed call to glade_init() to a call
	to glade_gnome_init(), so that gnome widget building routines get
	initialised correctly.

1999-06-09  Morten Welinder  <terra@diku.dk>

	* src/xml-io.c: Fix major thinko in writing fonts.  (The name hash
 	table was used to look up a font, which always failed since keys
 	are names in that hash.)

1999-06-09  Nat Friedman  <nat@gnome-support.com>

	* src/sheet-view.c (sheet_view_insert_object): Commented out call
 	to gnome_bonobo_object_new_view since the API changed and this
 	function doesn't do anything anyways.

	* src/sheet-object-container.c: Include gnome-component-client.h
 	and view-frame.h.
	(sheet_object_container_land): Pass soc->client_site to
 	gnome_bonobo_object_new_view.  Get the view wrapper widget from
 	the view frame.
	(sheet_object_container_realize): Likewise.

1999-06-09  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
 	cell_set_text.  Constify.  Accept a Value *, not a double.  All
 	callers changed.

1999-06-08  Morten Welinder  <terra@diku.dk>

	* src/fn-date.c (gnumeric_days360): Get it right, I hope.

	* src/xml-io.c (xmlGetDoubleValue): Improve precision.
	(xmlGetCoordinate): Ditto.
	(xmlGetGnomeCanvasPoints): Ditto.

	* src/fn-math.c (gnumeric_fact): s/float/float_t/

	* src/fn-date.c: Fix types of most functions.  (We really need a
 	way of saying "scalar".)
	(get_serial_date): New helper function.
	(get_serial_time): Ditto.
	(gnumeric_hour): Use get_serial_time.
	(gnumeric_minute): Ditto.
	(gnumeric_second): Ditto.
	(gnumeric_year): Use get_serial_date.
	(gnumeric_month): Ditto.
	(gnumeric_day): Ditto.
	(gnumeric_weekday): Ditto.
	(gnumeric_datevalue): Ditto.
	(gnumeric_timevalue): Implement using get_serial_time.
	(gnumeric_days360): Pretty good first cut.

	* src/parser.y (yylex): Allow dots inside a function name.

	* src/fn-misc.c (gnumeric_error_type): New function.

1999-06-08  David Chan <dpc29@hermes.cam.ac.uk>

	* src/fn-math.c (gcd): Correct.

1999-06-08  Morten Welinder  <terra@diku.dk>

	* src/file.c (workbook_read): Temporarily switch to "C" locale
 	when loading and saving.  [Take 2.]
	(workbook_save_as): Ditto.
	(workbook_save): Ditto.

1999-06-21  Morten Welinder  <terra@diku.dk>

	* src/fn-information.c (get_value_class): New function.
	(gnumeric_isnontext): Make non-strict.
	(gnumeric_istext): Make non-strict.
	(gnumeric_type): Make non-strict.
	(gnumeric_islogical): Make non-strict.
	(gnumeric_isnumber): Make non-strict.
	(gnumeric_n): Implement.
	(gnumeric_iseven): Implement.
	(gnumeric_isodd): Ditto.
	(gnumeric_cell): Fix error message.
	(gnumeric_info): Ditto.
	(gnumeric_type): Partly implement.

	* src/fn-math.c (gpow10): Rename from pow10 which colided with
 	something in Linux with libc5.  (Thanks to Alexander Jolk.)

	* src/utils.c (parse_cell_name): Don't use isdigit since we intend
 	to subtract '0' from the character.

	* src/workbook.c (workbook_parse_and_jump): Cleanup.

1999-06-21  Jukka-Pekka Iivonen  <iivonen@iki.fi>

        * samples/infofuns.xls: Added a new file for testing information
        functions.

1999-06-20  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (wb_edit_key_pressed): New function to handle
 	Escape.
	(workbook_setup_edit_area): Activate wb_edit_key_pressed.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Call
 	sheet_start_editing_at_cursor for F2.

	* src/sheet.c (sheet_cancel_pending_input): Fix last change.  Also
 	update entry box.
	(sheet_start_editing_at_cursor): New args blankp and cursorp.  All
 	callers changed.

	* src/fn-math.c (gnumeric_mod): Another try.
	(gnumeric_int): Fix for negative numbers.

	* src/sheet.c (sheet_set_text): Set value directly, not via text.  Also
	improve entry when a format is already set.
	(sheet_cancel_pending_input): Fixed behavior of canceling a cell
 	entry.  [From Bake Timmon.]

1999-06-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/dbfuns.xls: Added new file for database functions.

	* samples/mathfuns.xls: Added MDETERM test.

	* samples/statfuns.xls: Added AVERAGEA, MINA, MAXA, ... tests.

1999-06-17  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_count): Make non-strict and ignore cells
 	with errors.

	* src/fn-logical.c (gnumeric_or, gnumeric_and): Make strict!.

	* src/func.c (IterateCallbackClosure): Add strict member.
	(iterate_cellrange_callback): Handle strict and non-strict case.
	(function_iterate_argument_values): New argument, strict.  All
 	callers changed.  Initialise error_string always.  Handle strict
 	and non-strict case.
	(function_iterate_do_value): New argument, strict.  Handle strict
 	and non-strict case.  All callers changed.

1999-06-18  Michael Meeks  <michael@edenproject.org>

	* src/main.c (gnumeric_main): Add xbase_init

	* src/Makefile.am (gnumeric_LDADD): Add xbase.

	* configure.in (XML_CFLAGS): Added xbase.

	* plugins/Makefile.am (SUBDIRS): Added xbase.

1999-06-17  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_expr): Fix error handling of comparisons.

	* src/expr.c (expr_tree_new_constant): New function.
	(expr_tree_new_unary): New function.
	(expr_tree_new_binary): New function.
	(expr_tree_new_funcall): New function.
	(expr_tree_new_var): New function.
	(expr_tree_new_error): Renamed from build_error_string, made
 	public, and simplified.  All callers changed.
	(do_expr_tree_invalidate_references): Simplify.
	(do_expr_tree_fixup_references): Ditto.
	(eval_expr): Simplify.
	(expr_tree_new): Obsolete.

	* src/func.c (constants_init): Simplify.

	* src/main.c (gnumeric_main): Call style_shutdown.

	* src/style.c (style_shutdown): New function.

	* src/expr.h: Avoid using bitfields here.  They are slow and
 	confuse tools like Purify.  And used like this they don't save any
 	space anyway.

	* src/complex.c: Fix includes.

	* src/fn-eng.c (gnumeric_impower): Use new complex_pow.
	(callback_function_imoper): Benefit from new and more intuitive
 	behavoiur of complex_mul and complex_add.

	* src/complex.h (complex_mod): Use hypot for better precision.
	(complex_*): Use complex_init when possible.  (This means that the
 	output can be the same as one of the inputs without any trouble.)
	(complex_pow): New function.

1999-06-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c (gnumeric_percentrank): Interpolation and rounding
	fixes.

1999-06-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-eng.c (gnumeric_erf): ERF() changed back to the previous
 	form.  Negative arguments are wrong.

1999-06-16  Morten Welinder  <terra@diku.dk>

	* src/complex.h, src/complex.c: New files.

	* src/fn-eng.c: Use complex.c; improve precision, fix a few bugs,
 	plug a few leaks, add a few functions, and generally be merry.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add complex.c and
 	complex.h.

1999-06-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/finfuns.xls: A new file for financial functions.

	* samples/engfuns.xls: A new file for engineering functions.

	* samples/mathfuns.xls: COMBIN and FACT fixed.

	* samples/statfuns.xls: Accuracy dropped again.

1999-06-16  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_feedback_set): Block the "clicked"
 	handlers when we are just setting the feedback.

1999-06-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c (gnumeric_gcd): Made GCD() to take variable number
 	of arguments.

	* src/fn-stat.c (gnumeric_rank): RANK() fixed.

	* src/fn-eng.c (gnumeric_erf): ERF() fixed to return negative
	results if the argument is negative too like in Excel.

	* srg/fn-eng.c (get_real_and_imaginary): Added a branch for empty
 	imaginary part.

	* src/fn-eng.c (gnumeric_improduct, gnumeric_imsum): Made IMSUM()
	and IMPRODUCT() to take variable number of arguments.

1999-06-15  Morten Welinder  <terra@diku.dk>

	* src/style.c (style_font_new_simple): Plug leak.

	* src/cell.c (cell_set_formula_tree_simple): Ref before unref,
 	just in case.

	* src/fn-math.c (callback_function_criteria): Just collect the
 	values, not (incorrectly) allocated pointers to them.
	(gnumeric_countif): Release the values.  (Leak fix.)
	(gnumeric_sumif): Ditto.
	(gnumeric_countif): Plug leak.
	(gnumeric_sumif): Ditto.
	(gnumeric_seriessum): Plug three leaks.
	(gnumeric_subtotal): Plug leaks and fix error handling.

	* src/style.c (style_font_new_simple): Fix memory access problem.

	* src/style.c (font_init): Rework.  (Work in progress.  Things
 	should work ok, but will become even better.)
	(style_font_new_simple): Revert to loading a font, not a fontset.

	* src/gnumeric-util.c (font_get_italic_name): Plug leak and unref
 	the StyleFont.
	(font_get_bold_name, font_get_italic_name): New parameter units.
  	All callers changed.

1999-06-15  Tomas Ogren  <stric@ing.umu.se>

	* configure.in: Added sv

1999-06-14  Morten Welinder  <terra@diku.dk>

	* src/style.c (style_font_new_simple): Add negative caching.
	(DEFAULT_FONT): Don't have a complete wildcard here -- that might
 	be a very weird font.

	* src/cell.c (cell_set_font_from_style): Mark font valid.  Ref
 	before unref.
	(cell_set_format_from_style): Mark format valid.  Ref before
 	unref.

	* src/gnumeric-util.c (font_get_italic_name): Plug leak.
	(font_change_component): Constify.  Handle fontsets.

1999-06-14  Morten Welinder  <terra@diku.dk>

	* src/fn-math.c (gnumeric_floor): Add significance argument.

	* src/fn-math.c (callback_function_seriessum): Simplify.
	(gnumeric_seriessum): Don't round x, n, and m to integers.  Fix
 	error handling.

	* src/fn-math.c (pow10): New function.
	(gnumeric_rounddown): Simplify and correct.
	(gnumeric_round): Ditto.
	(gnumeric_roundup): Ditto.
	(gnumeric_trunc): Ditto.
	(gnumeric_fact): Improve precision.  Extend domain to all positive
 	numbers.
	(gnumeric_factdouble): Use float_t instead of int.
	(gnumeric_atan2): Swap args to atan2.

1999-06-13  Morten Welinder  <terra@diku.dk>

	* src/style.c (DEFAULT_FONT): Add extra font in the hope of curing
 	1207.
	(font_init): Shine up error message and avoid core dump.

	* src/gnumeric-sheet.c (gnumeric_sheet_stop_cell_selection):
 	Temporary patch for refcounts until Miguel can fixup things.
	(destroy_item_editor): Ditto.

	* src/fn-financial.c: s/double/float_t/;
	(calculate_pvif, calculate_pvifa, calculate_fvif, calculate_fvifa,
 	calculate_principal, calculate_pmt): Make static.
	(callback_function_npv): Simplify and truly ignore strings.
	(gnumeric_duration): More error checks.
	(gnumeric_nper): Ditto.
	(gnumeric_syd): Ditto.
	(gnumeric_sln): Ditto.
	(gnumeric_pv): Ditto.
	(gnumeric_fv): Ditto.

	* src/fn-information.c: Prune includes.
	* src/fn-string.c: Ditto.
	* src/fn-sheet.c: Ditto.
	* src/fn-misc.c: Ditto.
	* src/fn-financial.c: Ditto.
	* src/fn-date.c: Ditto.
	* src/fn-database.c: Ditto.
	* src/fn-lookup.c: Ditto.
	* src/fn-stat.c: Ditto.
	* src/fn-math.c: Ditto.
	* src/fn-logical.c: Ditto.

	* src/cell.h: Fix includes.

	* src/fn-information.c (gnumeric_isblank): Return boolean.
	(gnumeric_iseven): Ditto.
	(gnumeric_islogical): Ditto.
	(gnumeric_isnontext): Ditto.
	(gnumeric_isnumber): Ditto.
	(gnumeric_isodd): Ditto.
	(gnumeric_isref): Ditto.
	(gnumeric_istext): Ditto.
	(gnumeric_n): Ditto.

	* src/expr.c (value_new_bool): New function.
	(eval_expr): Return boolean Values.

	* src/fn-misc.c (gnumeric_iserr, gnumeric_iserror, gnumeric_isna):
 	Return boolean;

	* src/fn-logical.c (callback_function_and): Simplify.
	(callback_function_or): Ditto.
	(gnumeric_and): Simplify and return boolean Values.
	(gnumeric_not): Ditto.
	(gnumeric_if): Fix error case.  Simplify.

	* src/cell.c (cell_comment_destroy): Free realized_list.

	* fn-*.c: Use new standard error variables.

1999-06-12  Jody Goldberg  <jgoldberg@home.com>

	* src/expr.h : Declare new standard error constants to avoid
	spelling problems and typos.
	* src/expr.c, src/func.c, src/fn-math.c : Use and define them.
	* src/fn-misc.c	: First pass at finishing off error functions.
	* src/fn-information.c : Provide stubs for the rest of the
	information functions.

1999-06-12  Miguel de Icaza  <miguel@gnu.org>

	* src/dialog-cell-comment.c (dialog_cell_comment): Process the
	return value from gnome_dialog_run correctly as well.  (ie we
	should catch the return value -1 as the "user closed dialog box"
 	message and avoid destroying the dialog box ourselves).

	* src/item-grid.c (context_paste_special_cmd): Handle a cancel
	operation from the dialog_paste_special dialog box.

	* src/dialog-paste-special.c (dialog_paste_special): Hanlde the
	case in which the window manager closed the dialog box.

	* src/cell.c (cell_comment_destroy): Changed invocation from
	gtk_object_destroy to gtk_object_unref.
	(cell_comment_unrealize): ditto.
	(cell_comment_clicked): ditto.
	* src/dialog-cell-sort.c (dialog_cell_sort): ditto.
	* src/dialog-function-select.c (dialog_function_select): ditto
	* src/dialog-function-wizard.c (dialog_function_wizard): ditto
	* src/dialog-paste-special.c (dialog_paste_special): ditto
	* src/dialog-solver.c (constr_add_click): ditto.
	(constr_add_click): ditto
	(dialog_solver_options): ditto
	* src/gnumeric-sheet.c (gnumeric_sheet_stop_cell_selection): ditto
	(destroy_item_editor): ditto.
	(gnumeric_sheet_key_mode_object): ditto, and clear the pointer to
	the current_object.
	* src/sheet-object-container.c (sheet_object_container_destroy): ditto.
	* src/item-cursor.c (item_cursor_drag_event): ditto.
	(item_cursor_autofill_event): ditto
	* src/item-bar.c (item_bar_event): ditto
	* src/workbook.c (workbook_setup_auto_calc): ditto.
	* src/widget-editable-label.c (el_stop_editing): ditto
	* src/sheet-object.c (sheet_object_destroy): ditto
	(sheet_view_object_unrealize): ditto
	(sheet_object_destroy_control_points): ditto
	* src/sheet-view.c (sheet_view_destroy): ditto

1999-06-10  Miguel de Icaza  <miguel@gnu.org>

	* src/pattern-selector.c (pattern_selector_init): Use the GNOME
	canvas fill_stipple feature instead of using the hack of creating
	the bitmap and setting the stipple on the realize handler.

1999-06-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* po/hr.po: Added croat translation from Vladimir Vuksan
	<vuksan@cs.unm.edu>.

1999-06-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/mathfuns.xls: New test file for math functions.

	* samples/statfuns.xls: Accuracy dropped to 1e-5 (since Excel is
 	not as accurate as Gnumeric).  Also the total number of functions
 	in the test output fixed.
	
1719 1720
1999-06-12  Morten Welinder  <terra@diku.dk>

1721 1722 1723 1724 1725 1726 1727
	* src/fn-string.c: Use value_new_string where appropriate.
	(gnumeric_clean): Use unsigned chars.
	(gnumeric_t): Speed improvement.

	* src/file.c (workbook_read): After a workbook has been read, it
 	is to be considered "clean", i.e., unchanged.

1728 1729
	* src/number-match.c (print_regex_error): Add a few missing breaks.

1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750
	* src/utils.c (gnumeric_strcase_hash): Use unsigned chars.
	(col_from_name): Ditto.

	* src/format.c (append_year): Ditto.
	(append_month): Ditto.
	(append_hour): Ditto.
	(append_day): Ditto.
	(append_minute): Ditto.
	(append_second): Ditto.
	(pre_parse_format): Ditto.

	* src/number-match.c (format_create_regexp): Ditto.

	* src/fn-string.c (gnumeric_lower): Use g_strdup to match g_free.
	(gnumeric_upper): Ditto.
	(gnumeric_lower): Use unsigned chars.  (This fixes problems with
 	non-English letters.)
	(gnumeric_upper): Ditto.
	(gnumeric_proper): Ditto.  Operate on a _copy_ of the string, not
 	the source string itself!

Morten Welinder's avatar
Morten Welinder committed
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767
1999-06-10  Morten Welinder  <terra@diku.dk>

	* src/parser.y (return_cellref): Surprise: isdigit and friends
 	take unsigned chars (effectively).  The results are *undefined*
 	(and weird) for signed chars.
	(yylex): Ditto.

	* src/fn-string.c (gnumeric_proper): Ditto.

	* src/utils.c (parse_cell_name): Ditto.

	* src/sheet-autofill.c (string_has_number): Ditto.
	(autofill_cell): Ditto.

	* src/cell.c (cell_set_text_simple): Ditto.  Also fix long/int
 	confusion.

1768 1769 1770 1771 1772 1773
1999-06-10  James Henstridge  <james@daa.com.au>

	* src/main.c (gnumeric_main): changed call to glade_init() to a call
	to glade_gnome_init(), so that gnome widget building routines get
	initialised correctly.

1774 1775 1776 1777 1778 1779
1999-06-09  Morten Welinder  <terra@diku.dk>

	* src/xml-io.c: Fix major thinko in writing fonts.  (The name hash
 	table was used to look up a font, which always failed since keys
 	are names in that hash.)

1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792
1999-06-09  Nat Friedman  <nat@gnome-support.com>

	* src/sheet-view.c (sheet_view_insert_object): Commented out call
 	to gnome_bonobo_object_new_view since the API changed and this
 	function doesn't do anything anyways.

	* src/sheet-object-container.c: Include gnome-component-client.h
 	and view-frame.h.
	(sheet_object_container_land): Pass soc->client_site to
 	gnome_bonobo_object_new_view.  Get the view wrapper widget from
 	the view frame.
	(sheet_object_container_realize): Likewise.

Morten Welinder's avatar
Morten Welinder committed
1793 1794 1795 1796 1797 1798
1999-06-09  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (insert_at_cursor): Use cell_set_value instead of
 	cell_set_text.  Constify.  Accept a Value *, not a double.  All
 	callers changed.

Morten Welinder's avatar
Morten Welinder committed
1799 1800
1999-06-08  Morten Welinder  <terra@diku.dk>

1801 1802
	* src/fn-date.c (gnumeric_days360): Get it right, I hope.

1803 1804 1805 1806 1807 1808
	* src/xml-io.c (xmlGetDoubleValue): Improve precision.
	(xmlGetCoordinate): Ditto.
	(xmlGetGnomeCanvasPoints): Ditto.

	* src/fn-math.c (gnumeric_fact): s/float/float_t/

Morten Welinder's avatar
Morten Welinder committed
1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827
	* src/fn-date.c: Fix types of most functions.  (We really need a
 	way of saying "scalar".)
	(get_serial_date): New helper function.
	(get_serial_time): Ditto.
	(gnumeric_hour): Use get_serial_time.
	(gnumeric_minute): Ditto.
	(gnumeric_second): Ditto.
	(gnumeric_year): Use get_serial_date.
	(gnumeric_month): Ditto.
	(gnumeric_day): Ditto.
	(gnumeric_weekday): Ditto.
	(gnumeric_datevalue): Ditto.
	(gnumeric_timevalue): Implement using get_serial_time.
	(gnumeric_days360): Pretty good first cut.

	* src/parser.y (yylex): Allow dots inside a function name.

	* src/fn-misc.c (gnumeric_error_type): New function.

Morten Welinder's avatar
Morten Welinder committed
1828 1829 1830 1831
1999-06-08  David Chan <dpc29@hermes.cam.ac.uk>

	* src/fn-math.c (gcd): Correct.

1832 1833 1834 1835 1836 1837 1838
1999-06-08  Morten Welinder  <terra@diku.dk>

	* src/file.c (workbook_read): Temporarily switch to "C" locale
 	when loading and saving.  [Take 2.]
	(workbook_save_as): Ditto.
	(workbook_save): Ditto.

Michael Meeks's avatar
Michael Meeks committed
1839 1840 1841 1842 1843
1999-06-06  Michael Meeks  <michael@edenproject.org>

	* src/expr.c (value_area_get_at_x_y): Add vital check for
	forthcoming name stuff.

Morten Welinder's avatar
Morten Welinder committed
1844 1845 1846 1847 1848 1849 1850 1851 1852 1853
1999-06-03  Morten Welinder  <terra@diku.dk>

	* src/item-bar.c (item_bar_event): Handle zoom.
	(item_bar_get_line_points): Handle zoom.
	(item_bar_start_resize): Handle zoom better.
	(get_col_name): Delete.  Use col_name instead.
	(bar_draw_cell): Constify.

	* src/item-bar.h (ItemBar): Delete member resize_guide_offset.

Morten Welinder's avatar
Morten Welinder committed
1854 1855
1999-06-02  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1856 1857
	* src/fn-date.c (gnumeric_days360): New (unimplemented) function.

Morten Welinder's avatar
Morten Welinder committed
1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869
	* src/fn-date.c (gnumeric_year_month_day): Delete.
	(gnumeric_day, gnumeric_month, gnumeric_year): New functions.
	(gnumeric_hour_min_sec): Delete.
	(gnumeric_hour, gnumeric_minute, gnumeric_second): New functions.
	(gnumeric_weekday): New function.
	(gnumeric_date): Handle two-digit years.  Check this, please.
	(gnumeric_timevalue): New function.  (Untested -- Excel plugin
 	does not handle it yet.)

	* src/utils.c (g_date_serial): Deal with 19000229.
	(g_date_new_serial): Ditto.

Morten Welinder's avatar
Morten Welinder committed
1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897
	* samples/datefuns.xls: New file from Nick Lamb.

	* src/eval.c (workbook_recalc): If a cell has already been
 	computed, do not redo it.  This should speed up things.
	(cell_queue_recalc): Delete useless cast.
	(cell_unqueue_from_recalc): Ditto.
	(cell_queue_recalc_list): Ditto.
	(cell_queue_recalc_list): Extra parameter freelist controls
 	whether list is freed.  All callers changed.
	(workbook_recalc_all): Use cell_queue_recalc_list.

	* src/dialog-goal-seek.c (goal_seek_eval): Properly reevaluate.

	* src/expr.c (eval_expr): Only evaluate references cells when they
 	are queued for recalculation.

	* src/func.c (iterate_cellrange_callback): Ditto.

	* src/fn-math.c (gnumeric_lcm): Remove useless (Sheet *) cast.

	* src/fn-information.c (gnumeric_countblank): Ditto.

	* src/fn-database.c (find_column_of_field): Ditto.
	(parse_database_criteria): Ditto.
	(find_cells_that_match): Ditto.

	* src/cell.c (cell_comment_realize): Ditto.

Michael Meeks's avatar
Michael Meeks committed
1898 1899 1900 1901
1999-06-02  Michael Meeks  <michael@edenproject.org>

	* src/expr.c (do_expr_decode_tree): Added ARRAY support.

Morten Welinder's avatar
Morten Welinder committed
1902 1903 1904 1905 1906 1907 1908 1909 1910
1999-06-01  Morten Welinder  <terra@diku.dk>

	* src/format.c (format_value): Mark format for translation.
	(format_number): Locale improvements.

	* src/parser.y (yylex): Translate locale's decimal point into a
 	dot.
	(gnumeric_expr_parser): Extract locale's decimal point.

1911 1912 1913 1914 1915
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>

	* src/gnumeric-util.c (font_change_component): Extend the size of
	the array components[] so that it can handle very long fontset
	names.
Morten Welinder's avatar
Morten Welinder committed
1916

1917
	* src/style.c: Change the default font names.
Morten Welinder's avatar
Morten Welinder committed
1918

1919 1920 1921 1922
	* src/workbook.c: Add gtk_widget_ensure_style() call, which is
	necessary to knowing if a fontset is supplied for the label
	widget.

1923 1924 1925 1926 1927 1928
1999-06-01  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (callback_function_trimmean): Cleanup.
	(gnumeric_large): Fix conditional.  Thanks to Nick Lamb.
	(gnumeric_small): Ditto.

1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962
1999-06-01  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_skew): Fix crashes and leaks.
	(gnumeric_covar): Ditto.
	(gnumeric_rsq): Ditto.
	(gnumeric_pearson): Ditto.
	(gnumeric_correl): Ditto.
	(gnumeric_avedev): Ditto.

	(gnumeric_stdev): Don't make assumptions of the type of VAR.
	(gnumeric_stdevp): Ditto.
	(gnumeric_stdeva): Ditto.
	(gnumeric_stdevpa): Ditto.

	(callback_function_covar): Simplify greatly.
	(callback_function_correl): Ditto.
	(callback_function_stat_avedev_sum): Ditto.
	(callback_function_skew_sum): Ditto.  Also improve precision.
	(callback_function_rank): Ditto.
	(callback_function_trimmean): Ditto.
	(callback_function_mode): Ditto.
	(callback_function_stat_prod): Ditto.
	(callback_function_count): Ditto.
	(callback_function_kurt_sum): Ditto.
	(callback_function_ztest): Ditto.
	(callback_function_list): Ditto.
	(callback_function_percentrank): Ditto.
	(gnumeric_skew): Handle zero stddev.

	* src/expr.c (eval_cell_value): Delete.  Use value_duplicate
 	instead.
	(eval_funcall): Fix memory corruption on error.  Fix serious leak.
	(free_values): Only free non-NULLs.

1963 1964
1999-06-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

Morten Welinder's avatar
Morten Welinder committed
1965
	* src/file.c (dialog_query_load_file):
1966 1967 1968
	(workbook_save_as): Prettify these.  Thanks to Andrew for pointing
	this out.

Morten Welinder's avatar
Morten Welinder committed
1969 1970 1971 1972
1999-06-01  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_kurt): Fix crashes and leaks.

1973 1974 1975 1976 1977
1999-06-01  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-string.c: Added SEARCH().  Quite a complex beast but
 	should work completely.

Morten Welinder's avatar
Morten Welinder committed
1978 1979 1980 1981 1982 1983 1984 1985
1999-06-01  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_confidence): Fix sign.
	(gnumeric_devsq): Simplify and correct.

	* src/file.c: undo last change.  (The operation succeeded, but the
 	patient died.)

1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996
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.

1997 1998 1999 2000
1999-05-31  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-lookup.c: Added ADDRESS().  Cleaned up too long lines.

Morten Welinder's avatar
Morten Welinder committed
2001 2002 2003 2004 2005 2006 2007 2008 2009 2010
1999-05-28  Morten Welinder  <terra@diku.dk>

	* src/file.c (workbook_read): Temporarily switch to "C" locale
 	when loading and saving.  I am not sure this is the right thing to
 	do, but until someone finds a better way, it will work fine.
	(workbook_save_as): Ditto.
	(workbook_save): Ditto.

	* src/fn-math.c (gnumeric_power): Fix domain.

Morten Welinder's avatar
Morten Welinder committed
2011 2012 2013 2014 2015
1999-05-27  Morten Welinder  <terra@diku.dk>

	* src/expr.c (value_get_as_string): Improve precision -- this
 	impacts the results of saves.

2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038
1999-05-27  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (callback_function_mode): Ignore strings as
 	advertised.
	(callback_function_stat_inv_sum): Ditto.
	(callback_function_rank): Ditto.
	(callback_function_trimmean): Ditto.
	(callback_function_covar): Ditto.
	(callback_function_correl): Ditto.
	(callback_function_stat_prod): Ditto.
	(callback_function_skew_sum): Ditto.
	(callback_function_kurt_sum): Ditto.
	(callback_function_stat_avedev_sum): Ditto.
	(callback_function_devsq_sum): Ditto.
	(callback_function_median): Ditto.
	(gnumeric_tinv): Fix meaning.
	(callback_function_count): Cleanup.
	(callback_function_stat_inv_sum): Ditto.  Also fix error case.
	(gnumeric_normdist): Simplify using dnorm.
	(gnumeric_gammadist): Use dgamma.

	* src/mathfunc.c (dgamma): New function from R.

2039 2040 2041 2042 2043 2044 2045 2046 2047
1999-05-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: Added BETAINV() and CHITEST().  Added optional
 	parameters A and B to BETADIST().  Implemented non-cumulative case
 	of NORMDIST().  Implemented cumulative case of POISSON().  Fixed
 	CHIDIST(), CHIINV(), FDIST(), FINV(), and TDIST() to return the
 	complement of the probablity.  It looks like TINV() is still
 	broken after file restructurations.

Morten Welinder's avatar
Morten Welinder committed
2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064
1999-05-26  Morten Welinder  <terra@diku.dk>

	* src/sheet-view.h: Include fix.

	* src/style.h: Include fix.

	* src/symbol.c (symbol_table_new): Use gnumeric_strcase_equal and
 	gnumeric_strcase_hash.
	(g_strcase_equal): Delete.
	(g_strcase_hash): Delete.

	* src/eval.c (dependency_equal): Constify.

	* src/sheet.c (cell_hash): Constify.
	(cell_compare): Ditto.
	(CRsort): Ditto.

2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078
1999-05-26  Michael Meeks  <michael@imaginator.com>

	* src/file.c (file_saver_is_default_format): Fixed bug causing
	incorrect format to be displayed.
	(fill_save_menu): Wait until we have populated the option menu
	before setting the current item.
	(make_format_chooser): Move some code into file_save_menu.

	* src/xml-io.c (writeXmlSheetTo): Removed,
	(writeXmlWorkbook): Use the order workbook_sheets list.

	* src/workbook.c (cb_workbook_sheets): Commented out
	(workbook_sheets): Get sheets in order from notebook tabs.

2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105
1999-05-25  Morten Welinder  <terra@diku.dk>

	* src/mathfunc.c, src/mathfunc.h: New files, mostly taken from the
 	R package.  (It's a GPL'ed gold mine.)

	* src/*.c: Use <math.h>, not "math.h".

	* src/utils.c (random_normal): Use qnorm, not inv_phi.

	* src/fn-stat.c: Move all R code to mathfunc.c
	Change all uses to phi to pnorm.
	(gnumeric_normsinv): Use qnorm.
	(gnumeric_confidence): Use qnorm.
	(normsinv): Superseded by qnorm.
	(help_lognormdist): Fix.
	(gnumeric_lognormdist): Fix domain.
	(gnumeric_lognormdist): Use plnorm.
	(gnumeric_loginv): Use qlnorm.
	(gnumeric_norminv): Use qnorm.
	(gnumeric_tinv): Use qt.
	(gnumeric_fdist): Use qf.
	(gnumeric_gammainv): Use qgamma.
	(gnumeric_chiinv): Use qchisq.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add mathfunc.c and
 	mathfunc.h.

Morten Welinder's avatar
Morten Welinder committed
2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126
1999-05-25  Morten Welinder  <terra@diku.dk>

	* src/fn-string.c (gnumeric_code): Handle compilers for which the
 	"char" type is signed.

	* src/utils.c (parse_cell_name): Don't use isalpha which is
 	subject to locale.  (So is toupper, but the effects are ok.)
	Move bounds check to handle overflow also.
	(col_from_name): Don't use isalpha.

	* src/fn-stat.c: Eliminate fmin2 and fmax2.

	* src/fn-math.c (gnumeric_randbetween): Use random_01.
	(gnumeric_rand): Ditto.

	* src/utils.c (random_01): Function moved from goal-seek.c and
 	improved.
	(random_normal): Function moved from goal-seek.c.

	* configure.in: Check for a few ways of getting random numbers.

2127 2128 2129 2130 2131 2132 2133 2134
1999-05-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/file.c (workbook_save_as): Handle the window closing by the
	window manager here.
	(dialog_query_load_file): And here.

	* src/dialog-zoom.c (dialog_zoom): Handle window manager close
	here (it comes in the form of return value being NULL).
Morten Welinder's avatar
Morten Welinder committed
2135

2136 2137 2138 2139
	* src/dialog-insert-cells.c (dialog_insert_cells): ditto.

	* src/dialog-delete-cells.c (dialog_delete_cells): ditto.

2140 2141 2142 2143 2144 2145 2146 2147
1999-05-24  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_fixup_references): Set formula
 	directly, not via text strings.  (This actually fixes a bug with
 	insertion of columns/rows where we modify the cells before we
 	restructure the sheet.)  It's much faster and cleaner too.
	(workbook_invalidate_references): Ditto.

2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770