OChangeLog-1999-07-09 228 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
1999-07-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/about.c (dialog_about): Sort in alphabetical order.

	* src/print-info.c (print_hf_free): Killed the style_format feature.

	* src/print.c (print_job_info_get): Create render info context
	here for header/footer printing.
	(print_sheet_range): Setup number of pages here;  Increment pages
	after each one is outputed.
	(print_headers): Implemented the header/footer printing.

	* src/print-info.c (hf_render_info_new, hf_render_info_destroy):
	New routines.

	* src/fn-date.c (gnumeric_return_current_time): New function.

18 19 20 21
1999-07-09  Miguel de Icaza  <miguel@gnu.org>

	* configure.in (GNOMEGNORBA_LIBS): Simplified the Bonobo detection code.

22 23 24 25 26 27 28 29 30 31 32 33 34 35
1999-07-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/analysis-tools.c: Changed prototype of int_compare to
	eliminate a warning.

	Removed unused variables.

	* src/cell.c: #inlcude gnumeric-util to eliminate warning.

	* src/fn-financial.c: Fixed all the help strings to get the
	SEELASO correctly done

	* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.

36 37 38 39
1999-07-09  Miguel de Icaza  <miguel@gnu.org>

	* src/sheet-view.c (sheet_view_construct): Reverted last plan.  We
	do need a sheet_view_construct, as we require sheet_view->sheet to
40
	be set.
41 42 43 44 45 46 47

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

	* src/cell.c (calc_text_dimensions): Use gdk_fonts for measuring
	the strings on the screen.  Basically, back out using GnomeFont here.

	* src/print-info.c (render_date, render_time): Finished
48
	implementing.
49 50 51 52 53 54 55
	(render_opcode): Enable argument mechanism to extend the number of
	possible formats.  Excel accepts stuff like &[DATE], we extend
	this to accept &[DATE:mmmm-yyyy].  The argument for &[DATE] and
	&[TIME] is a regular Gnumeric formatting code (ie, compattible
	with the cell formating in Excel).

	* src/sheet-view.h: Change style to suit forward declaration
56
	structure.
57 58 59 60 61 62 63 64 65 66 67 68 69 70

	* src/sheet.h: Use forward declaration for SheetView.

	* src/sheet.c (sheet_new_sheet_view, sheet_destroy_sheet_view):
	New routines for managing the sheet views.

	* src/sheet-view.c: Killed sheet_view_construct, there was nothing
	really required there.  Moved all the code to sheet_view_init.
	(sheet_view_scrollbar_display, sheet_view_set_header_visibility):
	New routines that control the visibility of the various gadgets of
	a SheetView.

	* embeddable-grid.c, embeddable-grid.h: New files.  They implement
	the Bonobo GnomeEmbeddable interfaces for embedding Gnumeric in
71
	applications.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87

	* src/workbook.c (workbook_new, workbook_core_new): Split this
	routine in two:  GUI independant and GUI dependant.  The next step
	is to provide multiple views of a workbook (although, I am not
	sure I want this).
	(workbook_new_with_sheets): Kill dead code.

	* src/corba-sheet.c (Sheet_row_height, Sheet_col_width,
	Sheet_max_cols_used, Sheet_max_rows_used): New methods.

	* src/Gnumeric.idl (Sheet): new methods max_cols_used,
	max_rows_used, col_width, row_height.

	(Grid): New interface for embeddable grids.

	* src/print-info.c (hf_format_render): Rendering routine for the
88
	header and footers formats.
89

90 91 92 93
1999-07-09  Michael Meeks  <michael@edenproject.org>

	* src/Gnumeric.idl: Add GNOME::Unknown back in.

94 95 96 97
1999-07-09  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Added an
 	option to all tools to print the results to a new workbook.
98

99 100 101
	* src/dialog-analysis-tools.c, src/analysis-tools.c: Added Moving
 	Average and Rank and Percentile tools.

102 103 104 105 106 107 108 109 110 111
1999-07-09  Michael Meeks  <michael@edenproject.org>

	* src/eval.c (add_value_deps): Add warning on default:
	(add_cell_range_deps): Fixup for correct inter-sheet
	dependencies; massive bug.

	* TODO: Updated.

	* doc/C/formulas.sgml: Wrote the 'name' documentation.

112 113 114 115 116 117 118 119 120 121
1999-07-08  Michael Meeks  <michael@edenproject.org>

	* src/func.c (function_iterate_do_value): Fix for NULL CellRef
	Sheet *, fallback to EvalPosition's Sheet *

	* src/fn-math.c (gnumeric_countif): ditto.

	* src/fn-math.c (gnumeric_seriessum): Add check for NULL nodes
	pointer.

122 123 124 125 126 127 128 129 130 131 132 133 134
1999-07-08  Jody Goldberg  <jgoldberg@home.com>

	* src/cell-draw.c (cell_split_text) : Honour embedded newlines.
	  Why do we call str_trim_spaces ?

	* src/print-cell.c (cell_split_text) : Ditto.  Adjust gnome-print to
	  make the code even more similar to cell-draw version.  Should we be
	  using double rather than int for width calculations ?
	  NOTE : This requires some recent (1999/7/7) changes to gnome-print.

	* src/cell.c (cell_comment_realize) : reference the comment object
	  to avoid verbose warnings when we exit.

135 136 137 138 139 140 141 142 143 144 145 146 147
1999-07-08  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* doc/C/analysis-tools.sgml: New file. Added documentation for the
 	following analysis tools: Correlation, Covariance, Descriptive
 	Statistics, Random Number Generation, Sampling, and F-Test.

	* src/dialog-analysis-tools.c: Added some default parameters for
 	the random number generation tool.

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Started the
 	implementation of regression tool.  Feel free to fill in the rest
 	of the calculations if you are familiar with the regression
 	statistics.
148

149 150
1999-07-08  Michael Meeks  <michael@edenproject.org>

Michael Meeks's avatar
Michael Meeks committed
151 152
	* src/eval.c (add_tree_deps): Change exprt to expr_tree.

153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
	* src/Gnumeric.idl: Removed : GNOME::Unknown from Workbook so
	people can compile for now.

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

	* src/expr.c (do_expr_decode_tree): Add vital translation stuff.

	* src/parser.y (return_name): Created.
	(try_symbol): Add name lookup.

	* src/eval.c (add_tree_deps): Calculate name dependencies if at all
	possible.

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

	* src/expr.c (expr_tree_new_name, do_expr_tree_unref),
	(eval_expr, do_expr_decode_tree, do_expr_tree_invalidate_references),
	(do_expr_tree_fixup_references, expr_dump_tree): Add OPER_NAME support
	in every case just after OPER_FUNCALL.

	* src/expr.h: Add ExprName struct, include and OPER_NAME.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Added expr_name.[ch]

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

179 180 181
	* configure.in (EXTRA_GNOME_CFLAGS): Assemble all the flags we
	will be linking with here.X

182 183 184 185
	* src/Gnumeric.idl: Small typo fixes.

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

186 187 188 189 190 191 192 193 194 195
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.

196 197 198 199 200 201 202
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.

203 204 205 206
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

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

207 208
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

209
	* src/dialog-analysis-tools.c, src/analysis-tools.c: Added some
210
 	error checks, not complete yet.
211

212 213 214 215 216
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.

217 218 219 220 221
1999-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

222 223 224 225
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.
226

227 228 229 230
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.
231

232 233 234 235
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

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

236 237 238 239 240 241 242
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.
243

244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
	* 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.

278 279 280 281 282 283 284 285 286 287 288 289 290
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.

291 292 293 294 295
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.

296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
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.

317 318 319 320 321
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
322
 	days; there is more to come.
323

324 325
1999-07-05  Miguel de Icaza  <miguel@gnu.org>

326 327
	* src/print.c: Only print the headers and sides

328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
	* 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.

345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
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
376 377 378 379 380 381 382 383 384
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
385
	box.
Miguel de Icaza's avatar
Miguel de Icaza committed
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400

	* 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
401
	units.
Miguel de Icaza's avatar
Miguel de Icaza committed
402 403 404
	(print_sheet_range): Take into account the repeat ranges for
	repeated headers, repeated columns.
	(print_sheet): compute space used by repeated headers and repeated
405
	columns.
Miguel de Icaza's avatar
Miguel de Icaza committed
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
	(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.
425

426 427 428 429 430 431 432 433 434 435 436
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
437 438 439 440 441 442 443 444 445 446 447 448 449 450
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.

451 452 453 454
1999-07-01  Michael Meeks  <michael@edenproject.org>

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

455 456 457 458
1999-07-01  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

459
1999-06-30 Heath Martin <martinh@pegasus.cc.ucf.edu>
460

Miguel de Icaza's avatar
Miguel de Icaza committed
461
	* src/cell.c, src/cell.h: (cell_get_comment) New function.
462

463 464
 	* src/xml-io.c: (xml_write_cell) Save comments.
 	(xml_read_cell) Load comments.
465

466 467 468 469 470
1999-06-30  Michael Meeks  <michael@edenproject.org>

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

471
1999-06-29  Jody Goldberg  <jgoldberg@home.com>
472

473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
	* 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.
488
	  (expr_tree_array_formula) : New function.
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
	  (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.

514 515 516 517 518 519 520 521 522 523 524 525 526
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.

527 528 529 530 531 532
1999-06-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

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

533 534 535 536 537 538 539 540 541 542
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.

543 544 545 546 547 548
1999-06-28  Michael Meeks  <michael@edenproject.org>

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

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

549 550 551 552 553 554 555 556 557 558 559 560
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
561 562 563 564
1999-06-28  Michael Meeks  <michael@edenproject.org>

	* CHANGES: Updated for new release.

565 566 567 568 569 570 571
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.
572
	* plugins/perl/ext/Gnumeric.xs (register_function):
573
	Use FunctionCategory and `function_add_args' API instead of
574
	`install_symbol'.
575 576 577 578 579 580 581
	(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.

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
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
Morten Welinder's avatar
Morten Welinder committed
616
	into sheet_update_auto_expr. Rational; neater, and not performance
617 618
	critical.

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
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>

653
	* src/xml-io.c (style_font_new_from_x11): Implemented
654 655 656 657 658 659 660 661 662 663 664 665

	* 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.
666

667 668 669 670 671 672 673
	* 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.

674
	* src/xml-io.c
675 676 677

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

678
	* src/xml-io.c: Major updates.
679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694
	(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.
695

696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734
	(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
735
	the margin setup.
736 737 738 739

	* 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.
740 741

	* src/sheet.c (sheet_compute_col_row_new_size): Use the
742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760

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>

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

	* src/dialog-printer-setup.c (do_setup_main_dialog): Connect print
764
	buttons.
765 766 767 768 769 770

	* 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
771
	made points.
772 773 774 775 776 777 778 779

	* 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
780
	fit entirely in one page.
781 782 783 784 785 786 787 788 789 790 791

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
792
	has been moved here now.
793 794 795 796 797 798 799 800

	* 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
801
	should be static with regard to Zoom.
802 803

	And we would keep a cache of X fonts that are used for a
804 805
	particular size.

806 807 808 809 810 811 812 813 814 815 816 817
	* 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
818
	print options.
819 820 821

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

822
	* src/style.c (font_equal): Adapt function to the new StyleFont.
823
	(style_font_new, style_font_new_simple): Adapt for the upcoming
824
	gnome-print support.
825 826 827 828 829 830
	(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
831

832
	* src/dialog-cell-format.c: Disable font selector for now.
833

Morten Welinder's avatar
Morten Welinder committed
834 835 836 837 838 839 840 841
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.

842 843 844 845 846 847 848 849 850
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.
851

852 853
	* src/fn-stat.c: Use new mathfuncs.
	(gnumeric_kurt): Use range function.
854 855 856 857 858 859 860 861
	(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
862 863
	* src/fn-math.c (gnumeric_gcd): Cleanup and fix.

Michael Meeks's avatar
Michael Meeks committed
864 865 866 867 868 869 870 871 872
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
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891
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>
892

893 894 895
	* src/expr.c (error_message_new): Fix stupid bug,
	such that every error was set.

896 897 898 899 900 901
	* src/fn-math.c: Add sumproduct back in.

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

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

902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923
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.
924

925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955
	* 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.
956

957 958 959 960 961 962 963 964 965 966 967 968 969
	* 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.
970

971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986
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.

987 988 989 990 991 992 993 994 995 996
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>

997 998 999 1000 1001 1002 1003 1004
        * 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.

1005 1006 1007 1008 1009 1010 1011
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.

1012 1013
1999-06-22  Morten Welinder  <terra@diku.dk>

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

1017 1018 1019 1020 1021 1022 1023 1024 1025 1026
	* 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.

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

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

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

1033 1034
	* src/fn-math.c: Added SUMPRODUCT().

Morten Welinder's avatar
Morten Welinder committed
1035
1999-06-21  Morten Welinder  <terra@diku.dk>
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050

	* 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.

1051 1052 1053 1054
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
1055
	instead.
1056 1057 1058 1059

	* 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
1060

1061
	(sheet_paste_selection): Swap the paste dimesions here if we are
Morten Welinder's avatar
Morten Welinder committed
1062
	pasting/transpose.
1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074

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
1075 1076 1077 1078 1079
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
1080 1081
1999-06-21  Morten Welinder  <terra@diku.dk>

1082 1083 1084 1085 1086 1087 1088 1089
	* 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.
1090 1091 1092 1093 1094
	(gnumeric_isodd): Ditto.
	(gnumeric_cell): Fix error message.
	(gnumeric_info): Ditto.
	(gnumeric_type): Partly implement.

Morten Welinder's avatar
Morten Welinder committed
1095 1096 1097 1098 1099 1100 1101 1102
	* 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.

1103 1104 1105 1106 1107
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
1108 1109
1999-06-20  Morten Welinder  <terra@diku.dk>

1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121
	* 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
1122 1123 1124 1125 1126 1127 1128 1129
	* 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.]

1130 1131 1132 1133 1134 1135 1136 1137
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.

1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152
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
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
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.

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

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

Morten Welinder's avatar
Morten Welinder committed
1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184
	* 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
1185 1186 1187 1188
	* 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.

1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199
	* 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.

1200 1201 1202 1203
1999-06-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

1205 1206 1207 1208
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.
1209

1210 1211 1212 1213 1214 1215 1216 1217 1218 1219
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.

1220 1221 1222 1223 1224
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.
1225

1226 1227 1228 1229
	* samples/mathfuns.xls: COMBIN and FACT fixed.

	* samples/statfuns.xls: Accuracy dropped again.

1230 1231 1232 1233 1234
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.

1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249
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.
1250

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

Morten Welinder's avatar
Morten Welinder committed
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266
	* 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
Morten Welinder committed
1267 1268
	* src/style.c (style_font_new_simple): Fix memory access problem.

Morten Welinder's avatar
Morten Welinder committed
1269 1270 1271 1272 1273 1274 1275 1276 1277
	* 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
1278 1279 1280 1281
1999-06-15  Tomas Ogren  <stric@ing.umu.se>

	* configure.in: Added sv

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

1284 1285 1286 1287 1288 1289 1290 1291 1292
	* 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.

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

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

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

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

1304 1305 1306 1307 1308 1309 1310
	* 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.
1311
	(gnumeric_factdouble): Use float_t instead of int.
1312
	(gnumeric_atan2): Swap args to atan2.
1313

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

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

1320 1321 1322
	* src/gnumeric-sheet.c (gnumeric_sheet_stop_cell_selection):
 	Temporary patch for refcounts until Miguel can fixup things.
	(destroy_item_editor): Ditto.
1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334

	* 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.

1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347
	* 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.
1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361

	* 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.

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

1365 1366 1367 1368 1369 1370
	* 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
1371 1372
	* src/cell.c (cell_comment_destroy): Free realized_list.

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

Morten Welinder's avatar
Morten Welinder committed
1375 1376 1377 1378 1379 1380 1381 1382 1383
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.

1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396
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.

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
	* 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

1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433
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>.

1434 1435 1436 1437 1438 1439 1440
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
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
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.

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

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

1567
1999-06-03  Morten Welinder  <terra@diku.dk>
1568

1569 1570 1571 1572 1573
	* 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.
1574

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

1577
1999-06-02  Morten Welinder  <terra@diku.dk>
1578

1579
	* src/fn-date.c (gnumeric_days360): New (unimplemented) function.
1580

1581 1582 1583 1584 1585 1586 1587 1588
	* 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.)
1589

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

1593
	* samples/datefuns.xls: New file from Nick Lamb.
1594

1595 1596 1597 1598 1599 1600 1601 1602
	* 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.
1603

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

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

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

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

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

1615 1616 1617
	* src/fn-database.c (find_column_of_field): Ditto.
	(parse_database_criteria): Ditto.
	(find_cells_that_match): Ditto.
1618

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

1621
1999-06-02  Michael Meeks  <michael@edenproject.org>
1622

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

1625
1999-06-01  Morten Welinder  <terra@diku.dk>
1626

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

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

1634
1999-06-01 Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>
1635

1636 1637 1638
	* src/gnumeric-util.c (font_change_component): Extend the size of
	the array components[] so that it can handle very long fontset
	names.
1639

1640
	* src/style.c: Change the default font names.
1641

1642 1643 1644
	* src/workbook.c: Add gtk_widget_ensure_style() call, which is
	necessary to knowing if a fontset is supplied for the label
	widget.
1645

1646
1999-06-01  Morten Welinder  <terra@diku.dk>
1647

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

1652
1999-06-01  Morten Welinder  <terra@diku.dk>
1653

1654 1655 1656 1657 1658 1659
	* 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.
1660

1661 1662 1663 1664
	(gnumeric_stdev): Don't make assumptions of the type of VAR.
	(gnumeric_stdevp): Ditto.
	(gnumeric_stdeva): Ditto.
	(gnumeric_stdevpa): Ditto.
1665

1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679
	(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.
1680

1681 1682 1683 1684
	* 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.
1685

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

1688 1689 1690
	* src/file.c (dialog_query_load_file):
	(workbook_save_as): Prettify these.  Thanks to Andrew for pointing
	this out.
1691

1692
1999-06-01  Morten Welinder  <terra@diku.dk>
1693

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

1696
1999-06-01  Jukka-Pekka Iivonen  <iivonen@iki.fi>
1697

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

1701
1999-06-01  Morten Welinder  <terra@diku.dk>
1702

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

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

1709
1999-05-31  Matt Loper  <matt@gnome-support.com>
1710

1711 1712 1713 1714
	* 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).
1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857

	* src/sheet-object-container.c (sheet_object_container_land):
	likewise.
	(sheet_object_container_realize): likewise.

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

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

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.

1999-05-27  Morten Welinder  <terra@diku.dk>

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

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.

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.

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.

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.

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.

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.

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).
1858

1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870
	* src/dialog-insert-cells.c (dialog_insert_cells): ditto.

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

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.

1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886
1999-05-23  Morten Welinder  <terra@diku.dk>

	* src/gnumeric-sheet.c (gnumeric_sheet_cursor_set): Make the
 	scroll bar reflect the top-left corner's position.  This feels
 	more natural.
	(gnumeric_sheet_set_top_col): Compute visible ranges; do nothing
 	until things change.
	(gnumeric_sheet_set_top_row): Ditto.

	* src/dialog-goal-seek.c (gnumeric_goal_seek): Use
 	goal_seek_initialise.
	(gnumeric_goal_seek): Trawl heavier and earlier in the middle.
	(dialog_goal_seek): downcase a stray uppercase letter.

	* src/goal-seek.c (goal_seek_initialise): New function.

1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898
1999-05-23  Morten Welinder  <terra@diku.dk>

	* src/dialog-goal-seek.c: redesign non-gui part.
	(dialog_goal_seek): Added entries for xmin and xmax.

	* src/goal-seek.h: New file.

	* src/goal-seek.c: New file.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add goal-seek.c and
 	goal-seek.h.

1899 1900 1901 1902 1903
1999-05-22  Morten Welinder  <terra@diku.dk>

	* src/fn-financial.c (gnumeric_pv): Revert last chance.  (Bogosity
 	is in me.)

1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 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 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
1999-05-22  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_selection_to_string): Delete unused variable
 	"assembler".

	* src/sheet-view.c (horizontal_scroll_event): Delete unused
 	variable "distance".
	(vertical_scroll_event): Delete unused variable "distance".

	* src/sheet-object.c (control_point_handle_event): Delete unused
 	variables "ll" and "object_item".

	* src/widget-editable-label.c (editable_label_set_text): Delete
 	unused variable "item_text".

	* src/fn-string.c (gnumeric_replace): Delete unused variable "p".

	* src/fn-eng.c (get_real_and_imaginary): Delete unused variables
 	"i" and "buf".

	* src/sheet-object-graphic.c (sheet_object_filled_update): Delete
 	unused variables "x1", "x2", "y1", and "y2".

	* src/fn-stat.c (gnumeric_harmean): Delete unused variable "ans".
	(gnumeric_geomean): Delete unused variable "ans".
	(gnumeric_avedev): Delete unused variable "ans".
	(gnumeric_large): Delete unused variable "count".
	(gnumeric_small): Delete unused variable "count".

	* src/parser.y (make_string_return): Delete unused variable "type".

	* src/workbook.c (cb_sheet_check_dirty): Delete unused variable
 	"f".
	(workbook_focus_sheet): Delete unused variable "sheet_view".
	(workbook_selection_to_string): Delete unused variable "str".

	* src/fn-date.c (gnumeric_datevalue): Delete unused variables
 	"year", "month", and "day".
	(gnumeric_edate): Delete unused variables "year", "month", and
 	"day".

	* src/dialog-cell-format.c (apply_coloring_format): Delete unused
 	variable "cl".

	* src/dialog-solver.c: Delete unused variable "paste_types".

	* src/xml-io.c (xmlGetFloatValue): Delete unused variable "child".
	(xmlGetDoubleValue): Delete unused variable "child".
	(xmlGetCoordinate): Delete unused variable "child".
	(xmlGetGnomeCanvasPoints): Delete unused variable "child".
	(xmlGetColorValue): Delete unused variable "child".
	(xmlGetCoordinates): Delete unused variable "child".
 	(xmlGetCoordinates): Delete unused variables "X1", "Y1", "X2", and
 	"Y2".

	* src/sheet-object-graphic.c (sheet_object_graphic_update): Delete
 	unused variable "sog".

	* src/cell.c (cell_set_value_simple): Delete unused variable "lconv".
	(cell_set_text_simple): Delete unused variable "lconv".
	(cell_draw): Delete unused variable "white_gc".
	(cell_get_text): Delete unused variable "sheet".

	* src/ranges.c (range_list_parse): Delete unused variable "range".
	(range_set_style): Delete unused variables "col" and "row".

	* src/dialog-solver.c (dialog_solver_options): Delete unused
 	variable "button".

	* src/eval.c (search_cell_deps): Delete unused variables "inters"
 	and "nointers".

	* src/dialog-cell-sort.c (dialog_cell_sort): Delete unused
 	variable "txt".

	* src/fn-database.c (find_cells_that_match): Delete unused
 	variable "new_item".

	* src/func.c (function_iterate_do_value): Delete unused variable
 	"list".

	* src/fn-lookup.c (gnumeric_lookup): Delete unused variables "v1"
 	and "ans".
	(lookup_functions): Use correct help variable
 	for "columns".

	* src/dialog-function-select.c (function_select_create): Delete
 	unused variable "hadj".

	* src/main.c (gnumeric_main): Delete unused variable.

	* src/dialog-function-wizard.c (function_type_input): Remove
 	unused variable.
	(get_text_value): Ditto.
	(arg_data_list_destroy): Comment out -- not used.

	* src/fn-financial.c (gnumeric_pv): Fix sign error.  Something is
 	entirely bogus in this file.

	* src/ranges.h: Fix includes.

	* src/pattern-selector.h (PATTERN_SELECTOR_CLASS): Bogosity fixed;
 	macro not used, though.

	* src/workbook.c (sheet_action_delete_sheet): Grammar fix.

	* src/sheet.c (sheet_verify_selection_simple): Grammar fix.

	* src/file.c (file_priority_sort): Constify.
	(file_format_register_open): Make description parameter const.
	(file_format_register_save): Ditto.
	(file_format_unregister_open): Plug leak.
	(file_format_unregister_save): Ditto.
	(workbook_save_as): Grammar fix.

	* src/about.c (dialog_about): Fix URL.

Morten Welinder's avatar
Morten Welinder committed
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042
1999-05-22  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_set_text): Use General format for all numbers
 	in standard format.  (In particular, don't create a sticky "0" format
	whenever an integer is entered.)

	* src/format.c (format_number): Constify.
	(append_minute): Ditto.
	(append_day): Ditto.
	(append_hour): Ditto.
	(append_month): Ditto.
	(append_year): Ditto.
	(append_second): Ditto.
	(check_valid): Ditto.
	(append_half): Ditto.
	(lookup_color): Ditto.
	(render_number): Ditto.
	(format_value): Ditto.

	* src/expr.c (do_expr_decode_tree): Handle negative numbers, just
 	in case.

2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067
1999-05-21  Morten Welinder  <terra@diku.dk>

	* src/sheet-autofill.c (autofill_cell): Add FIXME.

	* src/sheet.h (IS_SHEET): Remove cast.

	* src/expr.h: Delete expr_tree_relocate.

	* src/expr.c (fixup_calc_new_cellref): New function.
	(do_expr_tree_fixup_references): Simplify using
 	fixup_calc_new_cellref.
	(do_expr_tree_relocate): Delete.
	(expr_tree_relocate): Delete.

	* src/sheet.c (sheet_cell_formula_link): Add debug code.
	(sheet_insert_col, sheet_delete_col, sheet_insert_row,
 	sheet_delete_row): Do fixups early.

	* src/cell.c (cell_relocate): Don't relocate cell -- fixup handles
 	all that is needed.

	* src/color.c (gs_white, gs_black, gs_light_gray, gs_dark_gray,
 	gs_red): Moved from src/gnumeric-sheet.c.
	(gnumeric_color_context): make static.

2068 2069 2070 2071 2072 2073
1999-05-21  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: PERCENTRANK() added.

	* src/func.[ch]: function_iterate_do_value made public.

Morten Welinder's avatar
Morten Welinder committed
2074 2075 2076 2077 2078
1999-05-21  Morten Welinder  <terra@diku.dk>

	* configure.in: use AC_CHECK_HEADERS, not AC_CHECK_HEADER for the
 	benefit of autoheader.

2079 2080 2081 2082 2083 2084 2085
1999-05-19  Michael Meeks  <michael@imaginator.com>

	* src/fn-stat.c: Added 'static' to new non-global functions.

	* src/cell.c (cell_set_formula_tree_simple): Added
	missing sheet_cell_formula_unlink.

2086 2087
1999-05-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>

jpekka's avatar
jpekka committed
2088
	* src/fn-math.c: SERIESSUM(), SUBTOTAL() and SUMA() added.
2089 2090 2091

	* src/fn-stat.c: SLOPE(), AVERAGEA(), MAXA(), MINA(), STDEVA(),
 	STDEVPA(), VARA(), and VARPA() added.
2092

2093 2094 2095 2096
	* src/fn-stat.c (gnumeric_counta, gnumeric_min, gnumeric_max,
 	gnumeric_stdev, gnumeric_stdevp, gnumeric_var, gnumeric_varp):
 	made public (used also in src/fn-math.c for now on).

Michael Meeks's avatar
Michael Meeks committed
2097 2098 2099 2100
1999-05-19  Michael Meeks  <michael@imaginator.com>

	* CHANGES: copied to web and blanked.

2101 2102 2103 2104 2105
1999-05-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/corba-args.c (gnumeric_arg_parse): Initialize as a server.
	Thanks to Elliot for fixing this one.

2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129
1999-05-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/utils.c (parse_cell_name): Return false if the cell name is
	outside the boundaries of the spreadsheet.

	* src/corba-sheet.c (Sheet_range_set_text): Implement.
	(Sheet_range_set_formula): Implement.
	(Sheet_range_set_format): Implement.

	* src/ranges.c (range_parse, range_list_parse, range_list_destroy,
	range_list_foreach_full, range_list_foreach_all,
	range_list_foreach, range_set_style): New functions.  Used by the
	corba-sheet code.

	* src/corba-sheet.c (Sheet_range_get_values): Implement
	vector-based result return.

	* src/xml-io.c (xmlSetGnomeCanvasPoints): use g_malloc instead of alloc.

	* src/dialog-solver.c (constr_add_click): Use g_malloc instead of
	alloc.  Use g_new instead of malloc.

	* src/utils.c (parse_cell_name_list): Add parameter checking.  Use Migueestyle.

2130 2131 2132 2133 2134
1999-05-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/corba-workbook.c (Workbook_corba_class_init): Make it work
	with the new bonobo.

2135 2136 2137 2138 2139 2140
1999-05-16  Raja R Harinath  <harinath@cs.umn.edu>

	* src/Gnumeric.idl: Revert the following checkin:
	1999-05-13  Kjartan Maraas  <kmaraas@online.no>.
	`gnome-object.idl' is part of `bonobo'.

2141 2142
1999-05-16  Morten Welinder  <terra@diku.dk>

2143 2144 2145 2146 2147 2148 2149 2150
	* src/expr.c (do_expr_tree_relocate): Change to use lazy copying
 	scheme -- this should improve sharing.  (Until someone saves and
	reloads, of course.  More about that at a later time.)
	(expr_tree_invalidate_references): Quiet.
	(expr_tree_fixup_references): Quiet.

	* src/cell.c (cell_relocate): Only update if changed.

2151 2152 2153 2154 2155 2156 2157 2158 2159
	* src/expr.c (evaluate_level): Deleted.
	(bigger_prec): Deleted.
	(do_expr_decode_tree): Handle left/right associativity.

	* src/cell.c (cell_set_text_simple): Simplify value parsing.

	* src/dialog-goal-seek.c (test_cell_with_value): Cast to double,
 	not float.

2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171
1999-05-16  Michael Meeks  <michael@imaginator.com>

	* src/workbook.c (cb_assemble_selection): Add 'char *sel'
	and change "," -> ','
	(workbook_selection_to_string): Add 'char *result'
	Fix incorrect pointer dereference.

	* src/sheet.c (reference_append): Fix appended strings to
	characters.
	(sheet_selection_to_string): Add missing GList pointer
	'selections'. Changes ":" -> ':', rename res to 'info->result'

2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183
1999-05-15  Heath Martin <martinh@pegasus.cc.ucf.edu>

	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges):
	Small cut and paste fix.  Use row here instead of col.

1999-05-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* configure.in (ALL_LINGUAS): Added slovak language.

1999-05-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet.c (sheet_selection_to_string): New routine.  Returns a
2184
	string representation of the current selection.
2185 2186 2187 2188 2189 2190 2191 2192

	* src/workbook.c (workbook_selection_to_string): New routine.
	Retunrs a string representation of the current selection.

1999-05-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/corba-workbook.c (corba_sheet): Fix.

2193 2194 2195 2196 2197
1999-05-16  Michael Meeks  <michael@imaginator.com>

	* CHANGES: Added to ease burdern of creating accurate descriptions
	between versions.

2198 2199 2200 2201 2202 2203
1999-05-15  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/statfuns.xls: Added a new file.  It can be used for
 	regression testing.  It is in Excel format so it tests the Excel
 	plugin's functionality in the same time too.

2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216
1999-05-15  Michael Meeks  <michael@imaginator.com>

	* src/file.c (file_format_register_save): Changed to append
	new types; works round bug in selection.

	* src/expr.c (eval_cell_value): Fix sillyness of top left
	corner stuff.

	* src/expr.h: Added const to value_dump

	* src/parser.y (value_dump): Fixed array problem.
	Added const to parameter.

2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235
1999-05-15  Michael Meeks  <michael@imaginator.com>

	* src/parser.c (value_dump): Updated Arrays, to use Value *

	* src/func.c (function_iterate_do_value): same.

	* src/fn-sheet.c (gnumeric_selection): same.

	* src/eval.c (add_value_deps): same.

	* src/expr.c (value_get_as_string): Major re-work of ARRAY
	conversion.
	(value_array_set): Fix rather embarassing bug in assertions.
	(eval_cell_value): Return top left corner of array, seems to be
	what excel does.
	(value_release, value_array_set, value_array_new),
	(value_array_copy_to, value_array_resize):
	Updated value->v.array to Value *'s saves much hassle !

2236 2237
1999-05-14  Michael Meeks  <michael@imaginator.com>

2238
	* src/expr.c (value_area_get_width, value_area_get_height):
2239 2240 2241 2242 2243 2244 2245 2246
	Clip to sheet bounds if CELLRANGE: Massive speedup on some
	lookups.

	* src/expr.h: Added value_zero

	* src/func.c (constants_init): Added a 'value_zero' constant
	to kill leak in out-of-range / NULL cell cases in value_get_at_x_y

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
2247 2248 2249
1999-05-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c: Added LCM().
2250

Kjartan Maraas's avatar
Kjartan Maraas committed
2251 2252 2253 2254
1999-05-13  Kjartan Maraas  <kmaraas@online.no>

	* src/Gnumeric.idl: s/#include <gnome-object.idl>/
	  #include <GnomeObject.idl>, to make it compile.
2255

2256 2257 2258 2259 2260
1999-05-13  Michael Meeks  <michael@imaginator.com>

	* src/Gnumeric-impl.c: Fixes killing this file by
	mistake.

2261 2262 2263 2264
1999-05-13  Michael Meeks  <michael@imaginator.com>

	* src/expr.h: Updated all prototypes.

2265
	* *.c:
2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276
	s/\<value_float *(/value_new_float (/g
	s/\<value_int *(/value_new_int (/g
	s/\<value_str *(/value_new_string (/g
	s/\<value_string *(/value_get_as_string (/g
	s/\<value_cellrange *(/value_new_cellrange (/g
	s/\<value_get_as_double *(/value_get_as_float (/g
	s/\<value_get_bool *(/value_get_as_bool (/g

	* src/expr.c: Moved all pertainant Value functions to the
	same place to aid possible splitting.

Michael Meeks's avatar
Michael Meeks committed
2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290
1999-05-13  Michael Meeks  <michael@imaginator.com>

	* src/expr.c (value_area_get_at_x_y): Added warning
	in safety case.

	* src/fn-lookup.c (gnumeric_lookup): Implemented.

	* src/func.h: Updated critera_test_fun_t: returns int,
	should really be gboolean ?

	* src/expr.h: Added prototype & indentation beautified.

	* src/expr.c (value_array_set): Helper function added.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
2291 2292 2293 2294
1999-05-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c: Added GCD().

2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309
1999-05-12  Michael Meeks  <michael@imaginator.com>

	* src/workbook.c (workbook_setup_edit_area): Added dependancy
	debugging button for --debug=10 and fixed memory leak.
	(deps_output): Dumps dependency data to stdout.

	* src/gnumeric-util.c (range_contains): Re-order compares
	to catch single cell ranges more quickly.

	* src/eval.c (intersects): Change order of sheet / range check
	for speed.
	(search_cell_deps): Added comment.

	* src/eval.h: Cosmetic typo. fix shet -> sheet

2310 2311 2312 2313 2314 2315 2316 2317
1999-05-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-database.c: Database functions accept now string
 	criterias too.  In addition, the parsing of criterias and the test
 	functions are now public (src/fn-math.c uses these for now on).

	* src/func.h: Added type definitions and function prototypes for
 	internal functions that parse and test criterias.
2318

2319 2320 2321 2322 2323 2324
	* src/fn-math.c: Added LN().  Changed LOG() to take an optional
 	second parameter.  LOG() returns the logarithm in base 10 if the
 	optional argument is not given, otherwise it returns the logarithm
 	in the given base.

	* src/fn-math.c: Added COUNTIF() and SUMIF().
2325

2326
	* src/fn-eng.c: Added IMLOG10() and IMLOG2().
2327

2328 2329 2330
	* src/fn-eng.c (complex_ln): Fixed a bug.  Imaginary coefficient
	was calculated incorrectly.

2331 2332 2333 2334 2335 2336
1999-05-11  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-eng.c: Added CONVERT().  All translations should work.
  	Also get_real_and_imaginary() fixed (complex numbers should now
 	work completely).

Michael Meeks's avatar
Michael Meeks committed
2337 2338 2339 2340 2341 2342
1999-05-10  Michael Meeks  <michael@imaginator.com>

	* src/sheet.h: Added workbook_focus_sheet.

	* src/workbook.c (workbook_focus_sheet): Added.

2343 2344 2345 2346 2347 2348
1999-05-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-eng.c: Added IMARGUMENT(), IMCONJUGATE(), IMCOS(),
 	IMDIV(), IMEXP(), IMLN(), IMPOWER(), IMPRODUCT(), IMSIN(),
 	IMSQRT(), IMSUB(), and IMSUM().

2349 2350 2351 2352 2353 2354
1999-05-08  Michael Meeks  <michael@imaginator.com>

	* web/index.html: Fix sillyness in references.

	* web/gnumeric-0.25: Remove HTML tags...

2355 2356
1999-05-08  Michael Meeks  <michael@imaginator.com>

2357 2358 2359 2360
	* src/Makefile.am (gnumeric_LDADD): Added libole2 library.

	* configure.in (XML_CFLAGS): Updated to add excel/libole2

2361 2362 2363
	* src/sheet.h: Commented sheet_cell_get vs. _fetch.

	* src/expr.c (do_expr_tree_unref, value_string, value_release),
2364
	(eval_cell_value, do_expr_tree_invalidate_references):
2365 2366 2367 2368
	Clean: Added 'default' cases with warnings.
	(value_get_as_double, value_get_as_int, value_get_bool): Changed
	to safer / faster switch statement from if.

2369 2370 2371 2372 2373 2374 2375 2376 2377
1999-05-07  Michael Meeks  <michael@imaginator.com>

	* src/corba-workbook.c (corba_sheet): Add CORBA_Environment
	parameter, needed for Object_dupicate...
	(Workbook_sheet_new, Workbook_sheet_lookup),
	(Workbook_sheet_current): Updated corba_sheet's args.

	* src/fn-lookup.c: Fixed choose help.

2378 2379 2380 2381 2382
1999-05-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/corba-workbook.c (corba_sheet): Duplicate the object before
	returning to ORBit.

2383 2384 2385 2386 2387
1999-05-07  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-eng.c: Added COMPLEX(), IMABS(), IMAGINARY(), IMREAL().
  	Also added an internal function get_real_and_imaginary() which
 	still needs to be improved.
2388

2389 2390 2391
	* src/fn-math.c: Added MROUND() and ROMAN().  ROMAN() currently
 	supports only type 0 (classic).

2392 2393 2394 2395 2396 2397
1999-05-07  Heath Martin  <martinh@pegasus.cc.ucf.edu>

	* src/expr.c (expr_tree_invalidate_references): Add extra argument
 	for the sheet we are changing.  All callers changed.
	(expr_tree_fixup_references): Ditto.