ChangeLog-2000-02-23 67.3 KB
Newer Older
1 2 3 4 5 6 7 8 9
1999-09-18  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (range_is_homogeneous) : Ignore results from
	  sheet_cell_foreach_range it will always be NULL or
	  value_terminate.  Neither need to be freed.

	* src/value.c (value_release) : Re-enable test to avoid releasing
	  value_terminate.

Arturo Espinosa's avatar
Arturo Espinosa committed
10 11 12 13 14 15 16 17 18 19 20
1999-09-17  Miguel de Icaza  <miguel@gnu.org>

	* src/sheet.c (sheet_row_size_fit): fetch row information, not
	column information.  Fix the routine.

	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit):
	(workbook_cmd_format_column_width): 
	(workbook_cmd_format_row_auto_fit): 
	(workbook_cmd_format_row_height): Fix the range being scanned to
	be inclusive.

Jody Goldberg's avatar
Jody Goldberg committed
21 22 23 24 25 26
1999-09-17  Jody Goldberg <jgoldberg@home.com>

	* samples/operator.xls : Updated to be robust in the
	  face of errors, and to use epsilon comparisons for the
	  artihmetic comparisons.

Morten Welinder's avatar
Morten Welinder committed
27 28
1999-09-18  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
29 30
	* gnumeric.spec.in (Requires): Update libglade version.

Morten Welinder's avatar
Morten Welinder committed
31 32
	* src/dialogs/dialog-printer-setup.c (do_hf_config): Plug leaks.

Morten Welinder's avatar
Morten Welinder committed
33 34 35 36
	* src/sheet.c (zoom_cell_style): Plug leak.

	* src/functions/fn-date.c (get_serial_time): Be defensive.

37 38 39 40
	* src/expr.c (eval_expr_real): For integer 0^0, return #NUM!.
	(eval_expr_real): Adjust float power error check to match the
 	integer one.

Morten Welinder's avatar
Morten Welinder committed
41 42 43 44 45
	* src/style.c (style_new): Silence.

	* src/sheet.c (sheet_update_controls): Initialize all closure
 	members.

Michael Meeks's avatar
Michael Meeks committed
46 47 48 49 50 51 52 53 54
1999-09-17  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/dialogs/dialog-summary.c (dialog_summary_update): Change to
	workbook argument, and reparent to toplevel.

	* src/dialogs/dialogs.h: ditto.

	* src/workbook.c (summary_cmd): ditto.

Miguel de Icaza's avatar
Miguel de Icaza committed
55 56 57 58 59
1999-09-17  Miguel de Icaza  <miguel@gnu.org>

	* src/widgets/gnumeric-toolbar.c (gnumeric_toolbar_class_init):
	typo fix.

60 61 62 63 64
1999-09-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/widgets/gnumeric-toolbar.c (gnumeric_toolbar_class_init):
	Parent class is GtkToolbar, not itself.

65 66 67 68 69 70 71
1999-09-17  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (create_format_toolbar): Make the size of the
	entry line onloy fit four zeros.
	(workbook_feedback_set): set the font even if no cached value
	exists. 

72 73 74 75
1999-09-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/workbook.c: Added ``Delete...'' entry to ``Edit'' menu.

76 77 78 79 80 81 82 83 84 85 86 87 88 89
1999-09-17  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook-cmd.c: New file.  Moved a bunch of commands here,
	and move to be moved.
	Implemented the set money format;   Implemented the percent formt.
	
1999-09-16  Miguel de Icaza  <miguel@gnu.org>

	* src/sheet.c (sheet_update_controls, cell_is_homogeneous):
	Include checks for font name and font size.

	* src/dialogs/dialog-printer-setup.c (dialog_printer_setup): Add
	call to gnome_dialog_set_parent here.

Jody Goldberg's avatar
typo  
Jody Goldberg committed
90
	* src/dialogs/tools.h: New file, moved here all the tools declarations.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
	Please, try to keep indentation for public functions as the rest
	of the Gnumeric ones.

	* src/workbook.c: Enable comands Format/Column, Format/Row and
	Format/Sheet.
	(create_format_toolbar): Add font selector toolbar widget.
	(change_font_in_selection_cmd): New routine.  Applies a font to a
	selection in the workbook.
	(workbook_feedback_set): Upgraded feedback interface
	
	* src/sheet-view.c (sheet_view_row_size_changed): There is no need
	to call gnumeric_compute_visible_ranges, the sheet_row_set_height
	code does this.

	* src/item-bar.c (item_bar_event): Support also row-autosizing.

	* src/sheet.c (sheet_col_size_fit): Add this routine.
	(sheet_col_set_internal_width): New function.  Similar to its
	counterpart

	* src/dialogs/dialog-cell-format.c (dialog_cell_format): Change
	call to g_list_free for sheet_cell_list_free.

	* src/selection.c (sheet_cell_list_free): New routine.

	* src/workbook.c: Reworked toolbars again.  We now only have 2
	toolbars instead of 8 or so.

	* src/sheet.h (SHEET_MAX_ROWS): New excel supports 64k rows, mimic this.

	* src/widgets/gnumeric-toolbar.c: Added new file.  Handles the
	Gnumeric toolbars.

124 125 126 127 128 129 130 131 132
1999-09-17  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_get_unit_distance,
		       sheet_row_get_distance
		       sheet_row_get_unit_distance
		       sheet_col_get_unit_distance) : Constification.
	(sheet_init_default_styles) : Make the default row/col size
	  match excel more closely.

133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
1999-09-16  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/func.c (functions_init): Remove misc_init.

	* src/functions/fn-misc.c: Removed, empty & redundant.

	* src/functions/Makefile.am: remove fn-misc.c

	* src/func.h: ditto.
	
	* src/sheet-object-container.c (sheet_object_container_load): Implement
	cleaner & simpler load method

	* NEWS (Michael): doh, move it into the correct version.

148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
1999-09-16  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/print.c (sheet_print): Update to use gnumeric_porinter_dialog_run.
	(print_job_info_get): Add range parameter.

	* src/dialogs/Makefile.am (libdialogs_a_SOURCES): Added dialog-printer.[ch]

	* src/dialogs/dialog-printer.[ch]: New thin wrapper of GnomePrinterDialog
	to handle sheet selection.
	
	* src/sheet-object-container.c (sheet_object_container_land): Add
	comments about what needs doing.

	* src/sheet-object.c (sheet_object_event): renamed.
	Updated various SheetObject var names to 'so'.

1999-09-15  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-object-container.c (sheet_object_container_land): Cleaned
	debug, improved sizing logic.

169 170 171 172 173 174 175 176 177 178 179 180
1999-09-16  Jody Goldberg <jgoldberg@home.com>

	* src/ranges.c (range_dump) : Typo.

	* src/selection.c (selection_to_list) : rename from
	  sheet_selection_to_list and add allow_intersection parameter.
	(selection_to_string) : rename from sheet_selection_to_string and
	  use selection_apply.

	* src/dialogs/dialog-cell-format.c (dialog_cell_format) : Adjust to
	  changes in selection_to_list.

181 182
1999-09-15  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
183 184 185 186
	* src/sheet.c (cell_is_homogeneous): Always return a value.

	* src/ranges.c (range_dump): Fix destination.

187 188
	* src/selection.c (selection_apply): Plug leak.

189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
1999-09-15  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-object.c (window_to_world): Remove.
	(sheet_motion_notify, sheet_button_release, sheet_object_drop_file): 
	clean to use gnome_canvas_window_to_world.

	* src/sheet-view.c (sheet_view_construct, (filenames_dropped): move

	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped),
	(gnumeric_sheet_new): to here + rename; makes more sense.

	* src/sheet-object.c (sheet_object_drop_file): Take a GnumericSheet.

	* src/parser.y (array_row:): Manged to support wierd MS style array
	semantics some people get {1\2\3;4\5\6} instead of {1,2,3;4,5,6}.

	* src/workbook.c (workbook_file_toolbar): Remove duplicate print icon.

	* src/pixmaps/preview.xpm: Stop gap icon; improved.

	* src/xml-io.c (xml_get_print_hf): Remove redundant precondition.

Miguel de Icaza's avatar
Miguel de Icaza committed
211 212
1999-09-14  Miguel de Icaza  <miguel@gnu.org>

213 214 215 216
	* src/workbook.c: Split toolbars into mulitple toolbars;  Add a
	private field to Workbook structure. 
	Change the toolbar setup to have multiple dock-items.

Miguel de Icaza's avatar
Miguel de Icaza committed
217 218 219 220 221 222
	* src/format.c: Initialize this to NULL.

	* src/print-info.c (load_formats): Memory leak fix.

	* src/xml-io.c (xml_read_summary): Fixed memory leak.

Morten Welinder's avatar
Morten Welinder committed
223
1999-09-14  Morten Welinder  <terra@diku.dk>
Karl Eichwalder's avatar
Karl Eichwalder committed
224

Morten Welinder's avatar
Morten Welinder committed
225 226
	* src/dialogs/dialog-analysis-tools.c (tools): Make static.

Morten Welinder's avatar
Morten Welinder committed
227 228
	* src/print-info.c (load_formats): Plug leak.

Morten Welinder's avatar
Morten Welinder committed
229 230 231 232 233 234 235 236 237 238 239 240 241 242
	* src/functions/fn-eng.c (eng_functions_init): Arg fix.
	* src/functions/fn-string.c (string_functions_init): Ditto.
	* src/functions/fn-stat.c (stat_functions_init): Ditto.
	* src/functions/fn-sheet.c (sheet_functions_init): Ditto.
	* src/functions/fn-misc.c (misc_functions_init): Ditto.
	* src/functions/fn-math.c (math_functions_init): Ditto.
	* src/functions/fn-lookup.c (lookup_functions_init): Ditto.
	* src/functions/fn-logical.c (logical_functions_init): Ditto.
	* src/functions/fn-information.c (information_functions_init):
 	Ditto.
	* src/functions/fn-financial.c (finance_functions_init): Ditto.
	* src/value.c (value_terminate): Ditto.

	* gnumeric.spec.in (Requires): Update gnome-print dependency.
Karl Eichwalder's avatar
Karl Eichwalder committed
243

Karl Eichwalder's avatar
Karl Eichwalder committed
244 245
1999-09-14  Karl Eichwalder  <ke@suse.de>

Morten Welinder's avatar
Morten Welinder committed
246 247
	* src/workbook.c: The "import" item needs dots; it opens a dialog.

Karl Eichwalder's avatar
Karl Eichwalder committed
248 249
	* DEPENDS: Add gnome-print.

Karl Eichwalder's avatar
Karl Eichwalder committed
250 251 252 253
	* README: Increase gnome-print version (0.6); not sure, whether
	other version numbers are to be increased, too.  Fix typos; small
	prettifications.

254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
1999-09-13  Jody Goldberg <jgoldberg@home.com>

	* src/ranges.c (range_dump) : Improve format.

	* src/workbook.c (deps_output) : The selection can be a region.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sor) :
	  sheet_selection_first_range returns a range.

	* src/print.c (sheet_print_selection) : Ditto.

	* src/selection.c (sheet_selection_first_range) : Simplify and move
	  closer to to sheet_verify_selection_simple.

	* src/workbook.c (insert_cols_cmd, insert_cols_cmd) : Handle
	  sheet_verify_selection_simple rename to selection_is_simple.

	* src/sheet.c (sheet_update_controls) : Use selection_apply
	  rather than sheet_selection_to_list which is expensive.
	(sheet_col_selection_type, sheet_row_selection_type) :
	  Constification.

Michael Meeks's avatar
Michael Meeks committed
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295
1999-09-13  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/parser.y (forget_array): Created. exp: added array_row, array_exp,
	array_cols: created. (build_array): Implemented. (v_forget): added.

	* src/value.c (value_release): Update Array to only free if != NULL.

	* src/functions/fn-lookup.c (lookup_functions_init): add index.
	(gnumeric_index): Ghastly placeholder; we need more core functionality.
	(gnumeric_lookup): remove redundant value_duplicate fixing leak.
	(gnumeric_match): Implement as far as it goes.

	* src/workbook.c (workbook_delete_event): Nail fatal bug in #define for bonobo.

	* src/dialogs/dialog-printer-setup.c (dialog_print_info_new): Moved things into
	constructor and out of (dialog_printer_setup).
	(unit_changed): actually update the margin UnitInfo's value...

	* src/xml-io.c (xml_read_print_info, xml_write_print_info, xml_get_print_hf),
	(xml_set_print_hf): Header / footer, paper size writing.
Karl Eichwalder's avatar
Karl Eichwalder committed
296

Karl Eichwalder's avatar
Karl Eichwalder committed
297 298 299 300 301 302 303
1999-09-13  Karl Eichwalder  <ke@suse.de>

	* src/dialogs/hf-config.glade: Add missing `:'.  Is this the right
	place to fix this kind of a bug?
	* src/dialogs/hf-config.glade.h (N_): Ditto (I don't know how to
	autogenerate this file).

304 305
1999-09-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

306 307 308 309 310 311
	* src/functions/fn-misc.c, src/functions/fn-information.c: Moved the
	error functions to information functions file.

	* src/functions/fn-math.c, src/function/fn-lookup.c: Moved TRANSPOSE
	to lookup functions file.
	
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
312 313
	* src/functions/fn-stat.c: Added more examples.

314 315 316
	* src/dialogs/dialog-analysis-tools.c: Bug fix.  Pressing ESC key
 	means CANCEL now in the subdialogs.

317 318 319 320 321 322 323
1999-09-13  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/dialogs/dialog-printer-setup.c (do_setup_page_info): Fix initial display
	of icon: lr/td first.

	* src/xml-io.c (xml_sheet_read, xml_sheet_write): Add print info R/W.

324 325
1999-09-12  Michael Meeks  <michael@nuclecu.unam.mx>

326 327 328 329 330 331 332
	* src/print-info.h: UnitName typo corrected.

	* src/dialogs/dialog-printer-setup.c (convert_to_mm, unit_editor_new): ditto.

	* src/xml-io.c (xml_read_print_info, xml_write_print_info): Implemented.
	(xml_read_summary): Cleaned preconditions to make Miguel happy.

Michael Meeks's avatar
Michael Meeks committed
333 334 335 336 337 338 339 340 341
	* src/print-preview.c (preview_destroyed, print_preview_new): Attach signal
	to the workbook and warn.

	* src/print.c (sheet_print): Remove redundant print_context_close_file.

	* src/embeddable-grid.c (grid_view_new): NULL a pointer.

1999-09-12  Michael Meeks  <mmeeks@gnu.org>

342 343 344 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 376 377 378 379 380 381 382 383 384 385 386
	* src/embeddable-grid.c (grid_view_activate): Hack to cope with new
	private Bonobo plug, just emit a warning.
	(grid_view_new): similarly hacked.

	* src/eval.c: Include ranges.h

	* src/selection.c (sheet_selection_first_range): Remove unused and
	cryptic base_col / base_row.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): remove base
	stuff.

	* src/workbook.c (print_setup_cmd, file_print_cmd),
	(file_print_preview_cmd): New print stuff.
	(deps_output): update to new first_range.

	* src/print-preview.c (print_preview_new): More wb->sheet.
	(sheet_destroyed): Renamed, (create_preview_canvas, render_page),
	(preview_file_print_cmd, create_toplevel): wb->sheet.
	include print.h (preview_file_print_cmd): Add active_sheet.
	(create_toplevel): Update name calc + add preconditions.

	* src/print-preview.h: update prototype + add _context proto.

	* src/print.c (print_job_info_get): more wb->sheet.
	(printjob_init_sheet): split out. (sheet_print_selection): implement.

	* src/sheet.c (sheet_new, sheet_destroy): Add print info bits.

	* src/workbook.c (workbook_do_destroy, workbook_init): Clean
	print-info bits.

	* src/dialogs/dialog-printer-setup.c (dialog_print_info_t):
	convert workbook -> sheet (do_print_preview_cb, do_print_cb),
	(dialog_print_info_new, dialog_printer_setup): ditto.
	(do_setup_main_dialog): preconditions.

	* src/dialogs/dialogs.h: Change prototype.

	* src/print.c (workbook_print): Implemented PRINT_ACTIVE_SHEETS,
	added default_range paramter: use for now; renamed (sheet_print)
	(print_sheet): preconditions (sheet_print_selection): renamed.

	* src/print.h (workbook_print): Move PrintRange enum here & re-name.

Miguel de Icaza's avatar
Miguel de Icaza committed
387 388 389 390 391
1999-09-11  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (workbook_delete_event): Fix the delete_event
	setup. 

392 393 394 395 396 397 398 399 400 401 402 403 404
1999-09-11  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object-widget.c (sheet_object_widget_update_bounds) :
	  Don't zoom coords sheet_object_get_bounds takes care of that
	  for us.

	* src/sheet-object-container.c (sheet_object_container_update_bounds) :
	  Ditto.

	* src/sheet-object-graphic.c (sheet_object_filled_update_bounds) :
	  Ditto, renamed from sheet_object_filled_update to be more
	  consistant.

405 406 407 408 409 410 411 412 413 414 415 416 417
1999-09-10  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/corba-sheet.c: include selection.h

	* src/sheet.c: Include ranges.h (sheet_insert_object): remove unused.

	* src/file.c (workbook_try_read): Remove unused var.
	(fs_key_event): Sort out return type & cast.

	* src/selection.c: Add Jody as an author if he isn't going to :-)

	* src/sheet-object.c: Cheekily do the same for me.

418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
1999-09-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/corba-sheet.c: Updated to the new sheet selection API
	changes. 

	* src/gnumeric-sheet.c (destroy_item_editor): Removed FIXME
	comment.  More fixing from Federico's talk
	(gnumeric_sheet_stop_cell_selection): ditto

	* src/cell.c: Replaced unrefs of windows with destroys.  Federico
	explained a thing or two to me today.

	* src/file.c (dialog_query_load_file): Added a key handler to
	handle ESC on dialog boxes to mean cancel.
	(workbook_save_as): ditto.

434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
1999-09-10  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-object.c (window_to_world): Added debug.

	* src/widgets/widget-editable-label.c (el_start_editing): 

	* src/workbook.c (sheet_label_text_changed_signal): Return focus
	to the main sheet when finished.

	* src/widgets/widget-editable-label.c (el_stop_editing): Convert
	gtk_object_unrefs to gtk_object_destroy's kills wierd debug.
	(el_destroy): NULL freed pointer.
	(el_start_editing): Add vital widget_grab_focus.

	* src/cursors.h (cursor_set_widget): Use G_STMT_* in macros.

	* src/workbook.c (workbook_can_close): Add forward definition.
	(workbook_new): Update sizing algo. to fit to the screen better.

	* src/main.c (gnumeric_main): Process gtk draw events between loading
	files, can't slow us down and looks lots better !

456 457 458 459
1999-09-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-*: Added tons of examples to help strings.

460 461 462 463 464
1999-09-09  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-object.c (sheet_button_release), sheet_motion_notify),
	(sheet_object_set_bounds): Fix for arrows.

Michael Meeks's avatar
Michael Meeks committed
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
1999-09-09  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/workbook.c (workbook_delete_event): Fix object_unref for
	Bonobo case. (workbook_widget_delete_event): remove strange unref, this
	needs looking at.

	* src/sheet-object.c (sheet_view_object_unrealize, sheet_object_destroy),
	(sheet_object_destroy_control_points): Changed _unref to _destroy nailing
	scads of warnings.

	* src/sheet-object-container.c (sheet_object_container_destroy_views): 
	ditto.

	* src/sheet-object-container.c (sheet_object_container_land): Get
	auto sizing working.

	* src/sheet-object*.[ch]: Large overhaul, extensively re-wrote signal
	handling, and state passing. Generic object 'bounds' is now stored in
	sheet-object, and accessed via access procedures. Homegenized naming,
	Drasticaly simplified re-sizing modes.
	
	* src/sheet-view.c: Include selection.h to kill warnings.

	* src/sheet-object.c (sheet_object_get_bounds): Created.
	(sheet_view_object_unrealize): Fix the same list manipulation bug
	( it gets everywhere ).

492 493 494 495
1999-09-09  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-*: Started adding examples to all functions.

496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524
1999-09-08  Jody Goldberg <jgoldberg@home.com>

	* src/*.c : Have Range use CellPos, and SheetSelection use Range.

	* src/functions/fn-sheet.c (gnumeric_selection) :
	  Switch to selection_apply.

	* src/sheet.c (sheet_set_selection) : Keep GNUMERIC_SHEET_VIEW
	  local to sheet.c

	* src/selection.c (sheet_selection_change,
			   selection_append_range,
			   sheet_selection_extend_to) :
	  Use sheet_set_selection.

	* src/dialogs/dialog-cell-format.c (apply_font_format,
					    cell_properties_apply) :
	  adjust to changes in SheetSelection.

	* src/functions/fn-sheet.c (gnumeric_selection) : Switch to
	  selection_apply.

	* src/gnumeric-util.c (range_contains) : Ditto. Const.

	* src/selection.c (sheet_selection_clear,
			   sheet_selection_clear_comments,
			   sheet_selection_clear_content,
			   sheet_selection_clear_formats) :
	  Use selection_apply.
525
	(selection_apply) : New function abstracting selections enabling
526 527 528 529 530
	  correct support for overlapping selection regions.
	(sheet_selection_to_list) : Use selection_apply.

	* src/value.c (value_new_array_empty) : New function.

531 532 533 534 535 536 537 538 539 540 541 542 543
1999-09-08  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-object.c (control_point_handle_event): substantialy
	re-written, same bugs :-), fix tommorow.; added range clipping.

	* src/sheet-object-container.c (sheet_object_container_land): Add
	auto-size placeholder & argument.
	(sheet_object_container_destroy): gnome_object_destroy instead of
	gtk_object_destroy.

	* src/sheet-object.c (sheet_object_drop_file): remove duff realize
	and debug. Correct gnome_object_destroy to gtk_object_destroy.

544 545 546 547
1999-09-08  Morten Welinder  <terra@diku.dk>

	* gnumeric.desktop: Add Danish translations.

Jody Goldberg's avatar
Jody Goldberg committed
548 549 550 551
1999-09-08  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_get_span) : Support VALUE_EMPTY.

Michael Meeks's avatar
Michael Meeks committed
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571
1999-09-08  Michael Meeks  <michael@nuclecu.unam.mx>

	* src/sheet-view.c (filenames_dropped, sheet_view_construct): Move
	D&D activation to here, so we get sensible handling of positions.
	
	* src/sheet-object-container.c (user_activation_request_cb): typo.
	(sheet_object_drop_file): Emit the correct signal to realize, take
	a SheetView argument, clean 'msg's up.
	(sheet_object_container_new): Squashed warning.

	* src/workbook.c (filenames_dropped, workbook_new): Move D&D into
	sheet-view.c.

	* src/file.c (workbook_try_read): Split from workbook_read.
	(workbook_import, workbook_read): Correct casts & updated.

	* src/dialogs/dialog-function-select.c (function_definition_update),
	(function_categories_fill): Add casts to get round daft clist_append
	constification.

572 573 574 575 576 577
1999-09-08  Vincent Renardias  <vincent@ldsol.com>

	* src/dialogs/dialog-analysis-tools.c: A number of displayed strings
	were not marked as such.
	* po/fr.po: Updated accordingly.

578 579 580 581 582
1999-09-08  Pablo Saratxaga <srtxg@chanae.alphanet.ch>

	* src/workbook.c: changed "_Comments" to "Co_mments" as there is
	already "_Content" in the same menu

Jody Goldberg's avatar
Jody Goldberg committed
583 584 585 586 587
1999-09-07  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-function-select.c (function_definition_update,
	  function_categories_fill) : Const.

588 589
1999-09-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

590 591
	* src/workbook.c: Remove sample button from the toolbar.

592 593 594
	* src/item-bar.c (item_bar_event): Use the item_bar->resize_pos
	computed during button press. #2090 fixed

595 596 597 598 599 600 601 602
1999-09-07  Morten Welinder  <terra@diku.dk>

	* src/print-info.c (save_margin): Terminate the set of strings to
 	concatenate.

	* src/dialogs/dialog-printer-setup.c (do_setup_main_dialog): Plug
 	leak.

603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631
1999-09-07  Michael Meeks  <michael@imaginator.com>

	* src/pixmaps.h: Added button.xpm

	* src/sheet-object.c (sheet_object_drop_file): Created.

	* src/workbook.c (filenames_dropped): Move component d&d guts into
	sheet-object.

	* src/file.c (workbook_import, workbook_read): Add bonobo_object
	_destroy if we have bonobo.

1999-09-03  Michael Meeks  <michael@imaginator.com>

	* src/sheet-object-container.c (sheet_object_container_land): Add
	return type to denote if we created and bound correctly.
	(sheet_object_container_creation_finished): Add warning on failure.
	(get_file_name): Kill warning.

1999-09-01  Michael Meeks  <michael@imaginator.com>

	* src/sheet-object-container.c (sheet_object_container_land): Add
	optional file argument and document.
	(sheet_object_container_creation_finished): update call's args.

	* src/sheet-object.h: Removed redundant sheet_object_register.

	* src/workbook.c (filenames_dropped): Hacked.

632 633 634 635 636
1999-09-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/format.c (format_number): "\" is an escape character for the
	next character on the format.

637 638 639 640 641 642 643
1999-09-07  Morten Welinder  <terra@diku.dk>

	* src/mathfunc.h: Make up for deficient header files.

	* src/cursors.c (create_bitmap_and_mask_from_xpm): Fix bitmap
 	loading.  This code isn't exactly elegant.

Jody Goldberg's avatar
Jody Goldberg committed
644 645 646 647 648 649 650 651 652
1999-09-06  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.[ch] (sheet_view_scrollbar_config) : Adjust scrollbar
	  increment.  Split out from sheet_view_size_allocate.

	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) :
	  call sheet_view_scrollbar_config, to adjust scrollbar when region
	  changes.

653 654 655 656
1999-09-05  Miguel de Icaza  <miguel@gnu.org>

	* src/print-preview.c (preview_canvas_event): Add an event handler
	for the preview canvas.  
657
	Make the drag action on MOVE mode move the canvas.
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672
	(zoom_state): new routine, controls the toolbar widget display.

	* src/cursors.c: Add new zoom in and zoom out cursors.

	* src/dialogs/dialog-printer-setup.c (unit_editor_new): One line
	warning fix.

	* src/sheet.c (sheet_col_size_fit): Returns the size required to
	render every cell completely.

	* src/item-bar.c (item_bar_event): Delay column/row resizing
	action until the division is actually being dragged.  We need this
	to catch double-clicks for auto-sizing cells.
	(GDK_2BUTTON_PRESS):

673 674 675 676 677 678 679 680 681 682
	* src/dialogs/dialog-cell-format.c (create_background_radio,
	create_foreground_radio): Set the toggle button to the colored
	when the color selector has been clicked.

	* src/item-grid.c (item_grid_draw): Experimental code for drawing
	empty cells with the correct attributes.

	Only enabled if you use set gnumeric debugging flag above 1.  I do
	have some issues with selection drawing. 

683 684 685 686
1999-09-05  Richard Hestilow  <hestgray@ionet.net>

	* configure.in: Minor s/For/for library check message fix.
	
687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702
1999-09-03  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/dialog-printer-setup.c (draw_margins): Added margin
	display preview. 

	* src/print-preview.c (preview_zoom_out_cmd): Zoom-in, zoom-out
	and move are now toggle buttons.

	* src/workbook.c (italic_cmd, bold_cmd): Simplified the code some.

	* src/dialogs/dialog-printer-setup.c (do_setup_page_info): Force
	the icon display here.
	(preview_page_create): Invert test.
	(PAGE_X, PAGE_Y): They are now the same values.
	(do_setup_page): Show the images here.

Miguel de Icaza's avatar
Miguel de Icaza committed
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
1999-09-02  Miguel de Icaza  <miguel@gnu.org>

	* src/print-preview.c (create_toplevel): Add a toolbar.

	* src/print.c (compute_groups): Include the margins in the
	size computation.

	* src/print-cell.c (print_cell_range): Start printing from the
	start_row, not from zero.

	* src/print-preview.c: Change of plans.  We now use a metafile, we
	render all the code there.  And then we use the new metafile
	operations for rendering a specific page.

	* src/item-cursor.c (item_cursor_autofill_event): Change this to
	destroy again.

1999-09-01  Miguel de Icaza  <miguel@gnu.org>

	* src/print-preview.c (print_preview_print_done): Show the first
	page here.

725 726 727 728 729 730 731 732 733 734 735 736 737
1999-09-02  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_paste_region) : Check that another
	  workbook has not already freed the selection before releasing.
	(x_selection_received) : Ditto.
	(x_clipboard_bind_workbook) : Init clipboard_paste_callback_data.

1999-09-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_object_update_coords) : Scale movements by
	  zoom factor.
	* src/sheet-object-widget.c (sheet_object_widget_update_coords) : Ditto.

738 739 740 741 742 743 744
1999-09-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_compute_col_row_new_size) :
	  The margin appears to be used for the border used to
	  mark the current cell.  This border is not scaled when
	  zoomed.

745 746 747 748 749 750 751 752
1999-09-01  Miguel de Icaza  <miguel@gnu.org>

	* src/file.c (workbook_read): If the file does not exist, create a
	1-sheet worbook.

	* src/print-preview.c: Re-enable zoom in and zoom out after the gnome-print
	fixes

753 754 755 756 757 758
1999-09-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_move_column, sheet_shift_row,
	  sheet_insert_row, sheet_delete_row, sheet_shift_col) : Don't
	  relocate the expressions. (Bug 2041)

759 760 761 762
1999-09-01  Pablo Saratxaga <pablo@mandrakesoft.com>

	* configure.in,po/da.po: added Danish file

763 764 765 766 767 768 769 770 771 772 773 774 775 776 777
1999-08-31  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/dialog-printer-setup.c (do_setup_main_dialog):
	Enable the print-preview buttons.

	* configure.in (have_bonobo): Test for gnome-print 0.5

	* src/print.c (workbook_print): Adapt to the new gnome-print;
	Added support for print preview.

	* src/print-preview.c: New file.  Implements the print preview
	control window.

	* src/functions/fn-financial.c: Add brace to remove ambiguity
	
778 779 780 781
1999-08-31  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented ACCRINT() and DISC().

Miguel de Icaza's avatar
Miguel de Icaza committed
782 783 784 785
1999-08-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/dialogs/dialog-paste-special.c: Typo fix.

Morten Welinder's avatar
Morten Welinder committed
786 787 788 789 790 791
1999-08-29  Morten Welinder  <terra@diku.dk>

	* src/about.c (dialog_about): Add Ross Ihaka.

	* src/dialogs/dialog-paste-special.c: Typo.

792 793 794 795 796 797 798
1999-08-29  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented ACCRINTM(), INTRATE(),
 	RECEIVED(), PRICEDISC(), and PRICEMAT().

	* src/func.h, src/functions/fn-date.c: Made get_date public.

799 800
1999-08-29  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
801 802 803 804 805
	* src/functions/fn-lookup.c (gnumeric_indirect): Plug leak.

	* src/format.c (pre_parse_format): Don't overrun string.
	(format_number): Plug leak.

806 807
	* src/workbook.c (workbook_do_destroy): Typo.

808 809 810 811 812 813
1999-08-28  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/*.glade.h: Make sure every dialog box has updated
	.glade.h and add glade.h generation to the summary, names and
	import glade files.

Karl Eichwalder's avatar
Karl Eichwalder committed
814 815 816 817 818 819 820 821 822 823 824
1999-08-28  Karl Eichwalder  <ke@suse.de>

	* gnumeric.desktop: Sort entries.
	(Name): Add `de'.
	(Comment): Ditto.

	* src/dialogs/dialog-zoom.c (dialog_zoom): Help xgettext to
	recognize the strings as `no-c-format'.
	* src/formats.c: Ditto.
	* src/gnumeric-sheet.c: Ditto.

Karl Eichwalder's avatar
typo  
Karl Eichwalder committed
825 826
1999-08-27  Karl Eichwalder  <ke@suse.de>

827 828 829 830
	* src/workbook.c: Typo.
	* src/workbook.c (sheet_action_delete_sheet): Change messages
	string.
	* src/workbook.c (sheet_action_delete_sheet): Ditto.
Karl Eichwalder's avatar
typo  
Karl Eichwalder committed
831

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
832 833 834 835
1999-08-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented ISPMT().
	
836 837
1999-08-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
838 839
	* samples/finfuns.xls: Fixed the test of MIRR.

840 841
	* src/functions/fn-financial.c: Implemented FVSCHEDULE().
	
842 843 844 845 846
1999-08-24  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented TBILLEQ() and started
	MIRR().
	
847 848 849 850 851
1999-08-23  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented TBILLPRICE() and
 	TBILLYIELD().
	
852 853
1999-08-22  Jukka-Pekka Iivonen  <iivonen@iki.fi>

854 855 856 857 858 859 860
	* src/dialogs/dialogs-solver.c: Fixed a lot of things, memory
 	leaks and bugs.  The backend is still not there (but wait, one of
 	these days it may get there).

	* src/dialogs/dialogs.h, src/dialogs/dialogs-analysis-tools.c:
 	hbox_pack_label_and_entry made public.

861 862 863 864
	* src/collect.[ch], src/functions/fn-financial.c: Removed
 	collect_dates.  Added a flag COLLECT_DATES to
 	callback_function_collect instead.
	
865 866 867 868 869
1999-08-22  Miguel de Icaza  <miguel@gnu.org>

	* src/main.c (gnumeric_main): New Bonobos need to issue the
	bonobo_activate() call.

Miguel de Icaza's avatar
Miguel de Icaza committed
870 871 872 873 874
1999-08-21  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (workbook_new_with_sheets): Fixed hardcoded
	buffer. 

875 876 877 878 879
1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/finfuns.xls: Made all the dates to use DATE() function
	instead of using strings in scandinavian style.
	
880 881 882 883 884
1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-financial.c: Made the last two arguments of PMT and PPMT
 	optional.
	
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
885 886 887 888 889 890
1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-financial.c: DDB() implemented.

	* src/fn-stat.c: QUARTILE() implemented.
	
891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908
1999-08-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* po/de.po: Removed the last bogus msgid to make it compile again.

	* src/sheet.c (sheet_insert_object): Added #if ENABLE_BONOBO to
 	make it compile without BONOBO.

	* src/gnumeric-sheet.c (gnumeric_sheet_drag_data_get): Ditto.

	* src/collect.[ch]: Wrote collect_dates and collect_dates_value.

	* src/fn-financial.c: DB() and XNPV() implemented.  DOLLARDE() and
 	DOLLARFR() fixed.

	* src/fn-date.c, src/func.h: get_serial_date made public.

	* TODO: Killed the four functions above from the todo list.
	
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946
1999-08-19  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (workbook_container_get_object): Finish
	implementing this routine for responding to monikers.
	(create_graphic_cmd): temporarily bind this to
	Generic Bonobo object insertion.
	(cb_sheet_check_dirty): Make the dialog parent be the workbook
	window. 

	* src/workbook.h (Workbook): Include a GnomeUIHandler.
	
	* src/sheet.c (sheet_insert_object): Enable this function again
	and update it to match the latest Bonobo developments.

	* src/sheet.h (Sheet): Include a pointer to the active object
	frame. 

	* src/sheet-object.c (sheet_set_mode_type): Do deactivation of
	Bonobo frames here.

	*  src/gnumeric-sheet.c (gnumeric_drag_data_get): Beginning of
	drag and drop support for Bonobo monikers.

	* src/item-grid.c (drag_start): More DnD support for Gnumeric
	selections using Monikers.

	* src/sheet-object-container.c (user_activation_request_cb,
	view_activated_cb, get_file_name): New routines for dealing with
	the Bonobo object action in Gnumeric.

	(sheet_object_container_land): Do object selection here for now.
	Support both PersistStream and PersistFile

	* src/sheet-object.c: 

	* src/workbook.c (cb_sheet_check_dirty): Bind the dialog to the
	main window.

947 948 949 950 951
1999-08-20  Michael Meeks  <michael@imaginator.com>

	* src/cell.c (cell_set_text_simple): Add checks for over/under
	flow on integer reading... fall back to double values.

Michael Meeks's avatar
Michael Meeks committed
952 953 954 955 956 957 958 959 960 961 962
1999-08-16  Michael Meeks  <michael@imaginator.com>

	* src/fn-lookup.c (gnumeric_indirect): Fix leak
	Update to use new cellref_*_get functions.

	* src/parser.y (return_cellref): Use new function.

	* src/sheet.c (cellref_get): Implemented
	(cellref_a1_get): Snarf from parser.y :-)
	(cellref_r1c1_get): Implemented.

963 964 965 966 967 968 969 970 971 972 973 974
1999-08-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (workbook_class_init): Added cell_content_changed
	signal.  
	(workbook_do_destroy): Do not enable widgets to be focused.

	* src/cell.c (cell_content_changed): Calls workbook_cell_changed.
	This is for Paolo and his speech system for GNOME.
	
	* configure.in: New bonobo detection code and support for not
	compiling Bonobo support even if it is present on the system
	
975 976 977 978 979
1999-08-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/statfuns.xls: Updated the tests of LINEST and TREND to
	cover more possible cases.

Jody Goldberg's avatar
Jody Goldberg committed
980 981
1999-08-15  Jody Goldberg <jgoldberg@home.com>

982 983 984
	* src/format.c (split_time) : Use a integer to avoid problems with
	  rounding when compiling with optimization.  Be extra careful to
	  round the result of the initial scaling.
Jody Goldberg's avatar
Jody Goldberg committed
985 986 987 988 989 990 991 992 993 994 995 996 997 998 999

	* src/sheet-view.c (vertical_scroll_event, horizontal_scroll_event) :
	  Only move and append to the selection if the cursor actually moves.

	* src/dialog-function-wizard.c (arg_data_list_new) : Constness.

	* src/expr.c (eval_expr_real) : Add OPER_PERCENT.
	(do_expr_decode_tree) : Ditto.
	(expr_dump_tree) : Ditto.

	* src/expr.h : Ditto.

	* src/parser.y : Add function build_unary_op, and support
	  exp '%'.  Precedence is a GUESS.

1000 1001 1002 1003 1004 1005 1006 1007 1008 1009
1999-08-16  Michael Meeks  <michael@imaginator.com>

	* src/widget-editable-label.c (el_start_editing): Remove
	GTK_WIDGET_SET/UNSET_FLAGS (GTK_CAN_FOCUS): broken for
	scrolling notebooks.
	(el_stop_editing): ditto.

	* src/workbook.c (workbook_setup_sheets): remove
	unset FOCUS on notebook.

1010 1011 1012 1013 1014
1999-08-15  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: Implemented TREND (mostly).  Made the second
 	argument of LINEST optional.

1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
1999-08-15  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (eval_expr_real) : Don't free empty cells
	  in OPER_CONCAT.

1999-08-14  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_release) : Use the original
	  row/col to calculate offsets when pasting cells that relocate
	  references.
	(clipboard_copy_cell_range) : Handle relocation.

	* src/expr.c (do_expr_decode_tree) : Duplicate the error message
	  because someone is going to free it.
	(expr_relocate) : New Function.

	* src/cell.c (cell_relocate) : Use expr_relocate.
	(cell_copy) : Don't NULL out the row/col/sheet
	  in the copied cell.  It gets reset on entry and is useful
	  information.
	(paste_cell) : Handle relocate.
	(clipboard_copy_cell_range) : Ditto.

	* cell.h : Differentiate CELL_COPY_TYPE_CELL into
	CELL_COPY_TYPE_CELL_ABSOLUTE or CELL_COPY_TYPE_CELL_RELATIVE,
	to deal with cut vs paste.

	* src/sheet-autofill.c : Use cell_relocate to test for out of bounds.

1999-08-14  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (wb_edit_key_pressed) : Support F4 toggling
	  abs/relative.

	* src/expr.h : Constify FunctionDefinition.

	* src/fn-information.c : Use 'Red' instead of 'red' to match XL.

	* src/func.c (function_get_category, fn_def_init,
		      function_add_nodes, function_add_args) : Constify.

1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072
1999-08-15  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_frequency): Fix leak (bin_array).  Fix
 	leak (data_cl.entries).  Fix leak (bin_cl.entries).  Fix leak
 	(floats for data).  Fix leak (floats for bins).  Fix leak (count).
	(gnumeric_linest): Simplify.
	(gnumeric_intercept): Simplify.
	(gnumeric_slope): Simplify.
	(gnumeric_forecast): Simplify.

	* src/collect.c (collect_floats_value): Make non-static.
	(float_range_function2): Plug leak.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add regressions.[ch].

	* src/style.c (style_font_unref): Fix obsolete warning.

Kjartan Maraas's avatar
Kjartan Maraas committed
1073 1074 1075 1076
1999-08-12  Kjartan Maraas  <kmaraas@online.no>

	* src/fn-math.c: Typo fixes.
	
1077 1078 1079 1080 1081
1999-08-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: Implemented the simplest case of LINEST()
 	function.
	
1082 1083
1999-08-12  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1084 1085 1086
	* src/fn-date.c (gnumeric_date) : Fix typo that was moving us 1900
	  years into the future.

1087 1088 1089
	* src/formats.c (cell_format_numbers) :  Use 'Red' rather than 'red'
	  to match XL better.

1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105
1999-08-11  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c ( move_cursor_horizontal, move_cursor_vertical,
	  move_horizontal_selection, move_vertical_selection,
	  selection_cursor_move_horizontal, selection_cursor_move_vertical) :
	  selection_expand_horizontal, selection_expand_vertical) :
	  Support Ctrl-Arrow which jumps to the boundaries of non-blank
	  ranges.

	* src/sheet.c (sheet_find_boundary_vertical,
	  sheet_find_boundary_horizontal) :  New functions, to find the start
	  and end of ranges.  They also ensure that the corner which was moved
	  stays visible.
	(sheet_selection_extend_vertical) : Use sheet_find_boundary_vertical.
	(sheet_selection_extend_horizontal) : Use sheet_find_boundary_horizontal.

1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
1999-08-11  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-string.c: Fixed the rounding of DOLLAR() function.

	* src/fn-financial.c: Some minor cleaning.

	* src/func.h: Added prototypes for callback_function_make_list.
	
	* src/fn-stat.c: Fixed PROB() function.

Michael Meeks's avatar
Michael Meeks committed
1116 1117 1118 1119
1999-08-11  Michael Meeks  <michael@imaginator.com>

	* plugins/text/text-io.c: Prototypes updated.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1120 1121
1999-08-11  Jukka-Pekka Iivonen  <iivonen@iki.fi>

1122 1123
	* TODO: Updated the remaining work of build-in functions.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1124 1125
	* src/fn-stat.c: Implemented FREQUENCY().

1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155
1999-08-09  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c (xml_workbook_write): Handle locale switching here.
	(xml_workbook_read): Handle locale switching here.

	* src/file.c: Removed all references to saving and re-setting the
	locale.  This should be handled in the xml-io code.

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

	* src/workbook.c (workbook_do_destroy): remove g_free from the
	workbook.  We are now a GtkObject.

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

	* src/xml-io.c (xml_workbook_write): Move the locale
	setting/resetting here, instead of putting it all over the place.

1999-08-09    <miguel@gnu.org>

	* src/xml-io.c (xml_workbook_read): Adjusted to use the new file
	open convention.

	* src/file.h: File open methods now take a workbook as an argument
	instead of creating it themselves.  Required for the
	GNOME::Persist bonobo interfaces.

	* src/file.c (workbook_read): Fix the workbook creation order to
	keep the locale correct if the file did not exist.

1156 1157 1158 1159 1160
1999-08-10  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_do_destroy): Don't free the workbook
 	ourselves.

1161 1162 1163 1164 1165 1166
1999-08-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/statfuns.xls: Updated the tests of functions returning
	array values.

	* samples/dbfuns.xls: Added a test for GETPIVOTDATA function.
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1167
	Also added a very simple pivot table.
1168
	
Michael Meeks's avatar
Michael Meeks committed
1169 1170 1171 1172 1173 1174 1175
1999-08-10  Michael Meeks  <michael@imaginator.com>

	* TODO, DEPENDS, doc/Future-Roadmap, doc/Design: Updated,
	and added short plugin design section.

	* doc/saving.txt: Added short section on Summary Information.

1176 1177 1178 1179 1180
1999-08-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c: Finished ROMAN().  Gnumeric now supports all the
 	60 mathematical functions of Excel 2000.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1181 1182 1183 1184
1999-08-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

1185 1186 1187 1188 1189
1999-08-09  Michael Meeks  <michael@imaginator.com>

	* src/workbook.c (workbook_class_init): Moved hack to workbook.h,
	and removed comment.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1190 1191 1192 1193
1999-08-09  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204
1999-08-09  Michael Meeks  <michael@imaginator.com>

	* src/sheet.c (sheet_cell_add): Optimise by checking last
	element of the list for a simple append before calling
	g_list_insert_sorted. CRowSort took up way too much time in my
	profile :-). [ This fix is quite temporary ]

	* src/workbook.c (workbook_init): Conditionaly compile bonobo
	specific code.
	(workbook_class_init): Grotesque hack so it compiles.

1205 1206 1207 1208
1999-08-08  Jacob Berkman  <jberkman@andrew.cmu.edu>

	* src/workbook.c: use smaller menu stock icon instead of large one

1209 1210
1999-08-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1211 1212 1213
	* src/xml-io.c (xml_write_summary): I think this is the correct
	fix.  We should not add childs if no summary info is available.

1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226
	* src/corba-sheet.c (Sheet_cell_set_font): Use the standard
	procedure to set the font.

	* src/cell.c: deleted finally cell_set_font.

	* src/workbook.c: Reorganization to make the code be a GtkObject.
	Redone the destruction bits of the Workbook.

	* src/workbook.h: Split sheet.h into workbook.h and sheet.h

	* src/workbook.h: Now the Workbook is a GtkObject or a
	GnomeObject, depending on the compilation flags.

1227 1228
1999-08-05  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1229 1230 1231 1232 1233 1234
	* src/dialog-printer-setup.c (dialog_print_info_destroy): Plug
 	leaks.

	* src/print-info.c (hf_format_render): Plug leak.
	(render_opcode): Constify.

1235 1236 1237
	* src/item-cursor.c (item_cursor_autofill_event): Don't unref, but
 	destroy.  We no longer own the ref.

1238 1239 1240 1241 1242
1999-08-05  Michael Meeks  <michael@imaginator.com>

	* src/file.c (workbook_import): Fix control flow to have 1 return.
	fix leak.

1243 1244 1245 1246
1999-08-05  Jody Goldberg <jgoldberg@home.com>

	* src/func.c (function_get_category) : Lookup/store in sorted list.

Morten Welinder's avatar
Morten Welinder committed
1247 1248
1999-08-05  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1249 1250 1251 1252 1253
	* src/cell.c (cell_set_font): Obsolete -- #if 0 for now.

	* src/cell.h: Remove now-static cell_formula_changed,
 	calc_text_dimensions, and cell_set_font.

Morten Welinder's avatar
Morten Welinder committed
1254 1255
	* src/dialog-analysis-tools.c (add_output_frame): Plug leak.

1256 1257 1258 1259 1260 1261 1262
1999-08-05  Michael Meeks  <michael@imaginator.com>

	* src/file.c (workbook_import): Major hacks to get round quirks
	in libglade.

	* src/import.glade: Add label to the container.

1263 1264 1265 1266 1267 1268 1269 1270 1271
1999-08-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (calc_text_dimensions): Made static.
	(queue_cell): Killed dependency_deep_frozen routines, this was
	archaic code. 
	(cell_formula_changed): Made static.

	* src/sheet-autofill.c (autofill_register_list): Make static.

Michael Meeks's avatar
Michael Meeks committed
1272 1273 1274 1275 1276
1999-08-03  Michael Meeks  <michael@imaginator.com>

	* src/workbook.c (workbook_setup_edit_area): Removed function
	wizard.

Miguel de Icaza's avatar
Miguel de Icaza committed
1277 1278 1279 1280
1999-08-03  Miguel de Icaza  <miguel@gnu.org>

	* src/corba-sheet.c (fill_corba_value): Corrected the argument here.
	
1281 1282
1999-08-03  Jody Goldberg <jgoldberg@home.com>

1283 1284
	* src/plugin.h (struct) : 'private' is a C++ keyword.

1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
	* src/sheet.h : Add GHashTable *dependency_hash to sheet.

	* src/sheet.c (sheet_destroy) : Clear dependency_hash.

	* src/eval.c (dependency_hash_init) : dependency_hash sheet specific.
	(add_cell_range_dep) : Ditto.
	(cell_add_dependencies) : Ditto.
	(cell_drop_dependencies) : Ditto.
	(region_get_dependencies) : Ditto.
	(cell_get_dependencies) : Ditto.
1295
	(add_cell_range_dep) : Increment ref_count AFTER looking for duplicates.
1296 1297 1298 1299

	* src/workbook.c (workbook_do_destroy) : Add some debugging code to
          catch dangling dependancies.

Miguel de Icaza's avatar
Miguel de Icaza committed
1300 1301 1302 1303 1304 1305
1999-07-27  Miguel de Icaza  <miguel@gnu.org>

	* src/corba-workbook-factory.c (WorkbookFactory_read): Duplicate
	CORBA Object server here.
	(WorkbookFactory_create_object): and here.

1306 1307 1308 1309 1310
1999-08-03  Robert Brady  <rwb197@ecs.soton.ac.uk>
 
        * gnumeric.spec.in, README: require gnome-print 0.3 or greater.
	(BUGFIX #1829)

1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327
1999-08-02  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_expr_real): Handle integer operations more
 	carefully with respect to overflow.

	* src/cell.c (cell_cleanout): Don't unlink unless there is a sheet
 	to unlink from.

	* src/collect.c (float_range_function2): Actually call the right
 	function.
	(collect_floats_value): Fix type of result.

	* src/mathfunc.c (range_rsq_pop, range_rsq_est): New functions.

	* src/fn-stat.c (gnumeric_pearson): Simplify.
	(gnumeric_rsq): Simplify.

1328 1329 1330 1331 1332 1333
1999-08-02  Jody Goldberg <jgoldberg@home.com>

	* src/fn-information.c (gnumeric_n) : Fix boolean support.

	* src/corba-sheet.c: Correct previous typo.

1334
1999-08-02  Elliot Lee <sopwith@redhat.com>
1335 1336 1337 1338

	* gnumeric.spec.in: Fix the .spec file to include correct
 	documentation pieces.

1339
	* doc/C/Makefile.am: Work with builddir != srcdir
1340

1341
	* plugins/lotus-123/Makefile.am: boot.h not needed. lotus-types.h is.
1342

1343
	* plugins/xbase/Makefile.am: boot.h not needed.
1344

1345
	* po/Makefile.in.in: v3
1346

1347 1348
	* src/corba-sheet.c: Use a compilable thing for error string.

Morten Welinder's avatar
Morten Welinder committed
1349 1350 1351 1352
1999-08-02  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_expr_real): Plug leak...

1353 1354
1999-08-02  Jody Goldberg  <jgoldberg@home.com>

1355 1356 1357
	* src/expr.c (eval_expr_real): Fix bool <-> number comparisons to match
          excel approach.  TRUE&FALSE > numbers.

1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370
	* src/item-bar.c (item_bar_event) : Button3 should select the
          current row/col before bringing up the edit menu.

	* src/sheet.c (sheet_cell_foreach_range) : return NULL not FALSE
          on precondition failure.

	* src/value.[ch] : Add value_area_foreach

	* src/fn-date.c (gnumeric_networkdays) : Correct the modulo for
          weekends and add support for holidays via value_area_foreach.

	* src/sheet.c : Correct some documentation

1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406
1999-08-01  Jody Goldberg  <jgoldberg@home.com>

	* samples/operator.xls : Test workbook for operators.

	* src/Gnumeric.idl : Add VALUE_ERROR, VALUE_BOOLEAN, VALUE_EMPTY
          in a few more places
	* src/fn-lookup.c : Ditto.
	* src/fn-math.c : Ditto.
	* src/fn-stat.c : Ditto.
	* src/fn-string.c : Ditto.
	* src/dialog-cell-sort.c : Ditto.
	* src/corba-sheet.c : Ditto.

	* src/fn-eng.c : Support VALUE_BOOLEAN and simplify comparison logic in
          DELTA and GESTEP.

	* src/expr.c (compare_bool_bool) : New function.
          (compare_int_int, compare_float_float) : Take (Value *) and do cast
          internally.
	  (is_null_string) : Rename to value_is_empty_cell, support VALUE_EMPTY.
            and move to src/value.c.
	  (compare) : Rework to bring into closer compliance with XL.
          (expr_eval_real) : Ditto, replace 'Type [Mm]ismatch' with '#!VALUE'.
          use eval_expr rather than eval_expr_real for arithmetic binary
	  operators.  Use value_get_as_float rather than value_cast_to_float.
          (eval_expr) : Remap 'VALUE_EMPTY' to int(0)

	* src/value.h : Adjust enumeration so that BOOLEAN < INTEGER < FLOAT
	    remove value_cast_to_float

	* src/value.c (value_get_as_*) : Support NULL values.
	  (value_cast_to_float) : Remove.

	* src/sheet.c (sheet_cell_formula_unlink) : Add precondition to handle
          problems using deleted cells.

1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
1999-08-01  Morten Welinder  <terra@diku.dk>

	* src/fn-stat.c (gnumeric_covar, gnumeric_correl): Simplify using
 	range functions.

	* src/workbook.c (file_open_cmd): Plug leak.

	* src/mathfunc.c (range_covar, range_correl_pop,
 	range_correl_est): New functions.

	* src/collect.c (collect_floats_value, float_range_function2): New
 	functions.

Michael Meeks's avatar
Michael Meeks committed
1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432
1999-08-01  Michael Meeks  <michael@edenproject.org>

	* src/workbook.c (workbook_setup_sheets): Added comment about making
	workbook sheets' notebooks scrollable.

	* src/fn-database.c (gnumeric_dmin, gnumeric_dmax, gnumeric_daverage):
	Only use the value if it is a number.
	(find_column_of_field): Use g_strcasecmp instead of strcmp.
	(criteria_test_equal, unequal): ditto; test this.

	* src/fn-information.c (gnumeric_cell): Changed broken cell_fetch's
	to cell_gets.

1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456
1999-08-01  Jody Goldberg  <jgoldberg@home.com>

	* src/fn-date.c (get_serial_date): Constify.  Improve handling of
 	date_serial 0.
	(gnumeric_networkdays): Add partial implementation.  (MW: turned
 	off.)

	* src/eval.c (add_value_deps): Handle empty value.

	* src/collect.c (callback_function_collect): Ignore empty values.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Support
	<C-PgUp> <C-PgDown> moving through the sheets.

	* src/Gnumeric.idl : Add VALUE_ERROR, VALUE_BOOLEAN, VALUE_EMPTY
	in a few more places.

	* src/corba-sheet.c : Ditto.

	* src/value.c (value_new_empty): New function.
	(value_dump, value_copy_to, value_get_as_bool,
 	value_get_as_string, value_get_as_int, value_get_as_float): Handle
 	empty value.

1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467
1999-08-01  Morten Welinder  <terra@diku.dk>

	* src/expr-name.c (expr_name_add): Fix bogus check.
	(expr_name_remove): Abort until someone fixes this.

	* src/style.c (style_font_unref): Unref the font.

	* src/expr.c (eval_expr_real): Fix OPER_CONCAT case.  From Jody.

	* src/value.c (value_cast_to_float): FMR fix from Jody.

1468 1469 1470 1471 1472 1473
1999-08-01  Manish Vachharajani  <mvachhar@vger.rutgers.edu>

	* src/sheet-object-container.c: fix reference to
	gnome_client_site_bind_bonobo_object to read
	gnome_client_site_bind_embeddable

1474 1475 1476 1477 1478
1999-08-01    <jrb@redhat.com>

	* src/workbook.c: move the about-entry lower to make it more
	consistent with the rest of GNOME.

1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
1999-08-01  Morten Welinder  <terra@diku.dk>

	* src/format.c (format_number): YAL -- yet another leak.

	* src/fn-string.c (gnumeric_text): Plug leak.

	* src/expr.c (do_expr_tree_unref): Plug array value leak.

	* src/cell.c (cell_set_array_formula): Unref the wrappers so we
 	don't leak a reference.

	* src/fn-math.c (gnumeric_countif): Initialise total_num member.

1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508
1999-07-31  Morten Welinder  <terra@diku.dk>

	* src/fn-database.c (free_criterias): Plug massive leak.
	(parse_database_criteria): Plug leak.
	(parse_criteria): Constify.
	(find_column_of_field): Plug leak.
	(parse_database_criteria): Plug leak.
	(gnumeric_dproduct): Plug leak.
	(gnumeric_dvar): Plug leak.
	(gnumeric_dmin): Plug leak.
	(find_column_of_field): Plug leak.

	* src/fn-math.c (gnumeric_seriessum): Plug leak.
	(gnumeric_subtotal): Plug leak.

	* src/fn-lookup.c (gnumeric_address): Fix memory corruption.

1509 1510 1511 1512 1513 1514 1515 1516 1517 1518
1999-07-31  Robert Meeks   <robert@imaginator.com>

	* src/fn-information.c (translate_table): Populated.
	
1999-07-31  Michael Meeks  <michael@edenproject.org>

	* src/fn-information.c (gnumeric_cell): Implemented col, row,
	address, contents. Start of format.
	(translate_cell_format): Start of format translation.

Morten Welinder's avatar
Morten Welinder committed
1519 1520
1999-07-31  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532
	* src/fn-logical.c (gnumeric_if): Fix case of first argument
 	yielding an error.

	* src/expr.c (expr_dump_tree): Constify.

	* src/func.c (function_iterate_do_value): Fix behaviour of strict
 	functions.

	* src/expr.c (do_expr_tree_invalidate_references): Handle
 	VALUE_BOOLEAN and VALUE_ERROR.
	(eval_expr_real): Make comparisons strict.

Morten Welinder's avatar
Morten Welinder committed
1533 1534 1535 1536 1537 1538 1539 1540 1541 1542
	* src/summary.c (summary_info_free): Fix leak.
	(summary_item_free): Fix leak.

	* src/fn-misc.c (gnumeric_iserror): Fix leak.
	(gnumeric_error_type): Fix leaks.
	(gnumeric_isna): Fix leak.
	(gnumeric_iserr): Fix leak.

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

1543 1544 1545 1546
1999-07-31  Michael Meeks  <michael@edenproject.org>

	* src/fn-information.c (gnumeric_isref): Implemented.

1547 1548 1549 1550 1551
1999-07-30  James Youngman  <jay@gnu.org>

	* src/fn-eng.c (gnumeric_besseli): Implemented.
	(gnumeric_besselk): Implemented.
	(eng_functions_init): Add relevant inits.
1552
	Include mathfunc.h
1553

1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571
1999-07-30  Morten Welinder  <terra@diku.dk>

	* src/cell.c (cell_cleanout): New function.
	(cell_set_formula): Don't bother with CELL_ERROR.  Set value field
 	in all cases.
	(cell_set_array_formula): Set cell values.
	(cell_set_value_simple): Simplify using cell_cleanout.
	(cell_set_text_simple): Ditto.
	(cell_set_formula_tree_simple): Ditto.
	(cell_destroy): Ditto.
	(cell_get_text): Simplify.
	(cell_get_content): Ditto.

	* src/eval.c (cell_eval): Reorganise slightly.

	* src/expr.c (eval_expr_real): value should no longer be null.

	* src/cell.h (CELL_ERROR): Obsolete.
Morten Welinder's avatar
Morten Welinder committed
1572 1573 1574 1575 1576

	* src/print-info.h (hf_formats): Make extern.

	* src/summary.h (summary_item_name): Make extern.

1577 1578 1579 1580 1581
1999-07-29  Michael Meeks  <michael@edenproject.org>

	* src/cell.c (cell_set_text_simple): Chomp whitespace off the
	end of integers ( other spreadsheets do this ).

Michael Meeks's avatar
Michael Meeks committed
1582 1583 1584 1585
1999-07-28  Michael Meeks  <michael@edenproject.org>

	* src/summary.c: Update, was out of step with the header.

1586 1587 1588 1589 1590 1591 1592 1593 1594
1999-07-28  Michael Meeks  <michael@edenproject.org>

	* src/item-grid.h: Added border_gc[BORDER_MAX] to ItemGrid.

	* src/item-grid.c (item_grid_draw_cell): Border rendering code.
	Make rendering conditional on debug - this looks awful.
	(item_grid_realize): ditto + struct of types in style_border_data.
	(item_grid_unrealize): clean up after myself.

1595 1596
1999-07-27  Jody Goldberg  <jgoldberg@home.com>

1597 1598 1599 1600
	* src/fn-date.c : Add EOMONTH, and partial WORKDAY.

	* src/formats.c : Add more date formats.

1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622
	* src/fn-math.c (gnumeric_transpose) : no need for an array
          if the input is a singleton.

	* src/expr.c : Add comment explaining the need for a re-org
          to correctly handle implicit intersetion vs arrays with
          operators.  Move all value_* functions into.

	* src/value.c : Here.

	* src/func.c : Move const value initialization into value.c.

	* src/clipboard.c (clipboard_prepend_cell) : Return Value * as per
          change to VALUE_ERROR.

	* src/style.h : Add STYLE_ORIENT_MAX to remove ugly magic number
          that will change when we add support for diagonals.

	* src/print-cell.c (print_cell_border, print_border) : Use enum
	  rather than hard coding the number of border types.

	* TODO : Add implicit intersection for operators.

1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645
1999-07-25  Jody Goldberg  <jgoldberg@home.com>

	* plugins/guile/plugin.c,
	  plugins/python/python.c
	  src/{Makefile.am, cell.[ch], collect.[ch], eval.c, expr-name.c,
	       expr.[ch], fn-database.c, fn-date.c, fn-eng.c, fn-financial.c,
	       fn-information.c, fn-logical.c, fn-lookup.c, fn-math.c,
	       fn-misc.c, fn-sheet.c, fn-stat.c, fn-string.c, format.c,
	       func.[ch], sheet-object-container.c, sheet.[ch]}
	  : Add VALUE_ERROR, VALUE_BOOLEAN, Change many signatures to return
	    Value for errors.

	* icons/chart_*.png : Add Some images in preparation for re-enabling
	  the graph wizard.

	* src/expr.c (eval_funcall) : When a single row or column is passed to
	  a function expecting a single value, take the intersection of the
	  evaluation position and the range.
	(cell_ref_get_abs_col, cell_ref_get_abs_row) : New functions.

	* src/value.[ch] : New files with Value support routines split out from
	  expr.[ch]

1646 1647 1648 1649 1650
1999-07-26  Michael Meeks  <michael@edenproject.org>

	* src/corba-sheet.c (fill_corba_value): Remove redundant Sheet *
	from cellref_name.

1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668
1999-07-26  Michael Meeks  <michael@edenproject.org>

	* src/xml-io.c (xml_read_cell): Commented out freeze/thaw deps.

	* src/cell.c (cell_deep_freeze_dependencies): Added warning not to
	use: strangely it doesn't work... investigate later.

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

	* src/xml-io.c (xml_read_cell): Add freeze/thaw dependencies,
	and fix exit condition to restore state to correct coolness.

	* src/cell.h: Added prototypes.

	* src/cell.c (cell_content_changed, cell_formula_changed): 
	(cell_deep_thaw_dependencies, cell_deep_freeze_dependencies): 
	Added optimisation for load/save stuff.

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

1671 1672 1673 1674 1675 1676
	* src/xml-io.c (xml_read_summary): Fix some massive cock-ups, how
	did this ever work.
	(xml_read_names): ditto.
	(xml_workbook_read): Shifted read_names down to where we actualy
	have the inter-sheet reference names in place.

1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740
	* src/expr.c (expr_tree_invalidate_references): Debugging that
	needs cleaning to new PP stuff #if-def'd out.
	(expr_tree_fixup_references): ditto.

	* src/xml-io.c (xml_write_names, xml_read_names): Implemented
	(xml_workbook_write, xml_workbook_read): Hooks added, but reading
	disabled: something dodgy somewhere.

	* src/sheet.c (sheet_lookup_by_name): Fixed to use simply a
	Workbook pointer.

	* src/workbook.c (workbook_set_auto_expr): Fix old hack using
	new PP stuff.

	* src/sheet.c (sheet_fill_selection_with): Updated to new PP code.

	* src/parser.y (gnumeric_expr_parser): Updated to new PP code,
	removed redundant and nasty _unsafe_expr_parser hack. Essentialy
	nothing new, but removes daft parser_sheet and replaces with
	parser_workbook, leaving sheet stuff to the evaluation stage.

	* src/dialog-define-names.c: Major fixups, killed obscure bug
	cause by freeing a copy of a list I passed to gtk_list_append_items.

	* src/expr.c (expr_parse_string, do_expr_decode_tree): 
	(expr_decode_tree): Updated to new 

	* src/expr-name.c (expr_name_create): Added for convenience.
	(expr_name_value): Updated to new PP scheme

	* src/cell.c (cell_set_formula, cell_get_text, cell_get_content): 
	Update to new ParsePosition scheme.

	* src/expr.c (parse_pos_init, parse_pos_cell): Created.

	* src/expr.h: Add ParsePosition & prototpes

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

	* src/dialog-define-names.c (update_edit): use expr_name_value.
	(grab_text_ok): Update to use new functions.

	* src/expr-name.c (expr_name_value): Added.
	(expr_name_create): Convenience function

	* src/xml-io.c (xml_workbook_write): Added names writing.

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

	* src/expr-name.c (expr_name_add): Add check for circular
	references in (name_refer_circular): created.
	(add_real): More paranoia.

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

	* src/expr-name.c (expr_name_list): Expand.
	(expr_name_remove): Serious bug freeing names.
	(expr_name_lookup): precondition.
	(expr_name_remove): more sanity checks.

	* src/dialog-define-names.c (fill_list): Append instead of inserting
	items. use "select" signal, hand the correct pointer on.
	Implemented guts, fixed lots of bugs.
	
1741 1742 1743 1744 1745 1746 1747
1999-07-25  Karsten Weiss  <karsten@addx.au.s.shuttle.de>

	* src/print.glade.h: Fixed three typos.
	* src/hf-config.glade.h: Fixed a typo.
	Is this the right place to fix the typos or are they auto-generated
	from some other source?
	
1748 1749 1750 1751 1752 1753 1754 1755
1999-07-21  Miguel de Icaza  <miguel@gnu.org>

	* src/dialog-printer-setup.c (preview_page_destroy): Clear the
	pointers after unrefing.

	* src/print.c (setup_rotation): Add the rotation code for the
	vertical/horizontal printing.

Michael Meeks's avatar
Michael Meeks committed
1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770
1999-07-22  Michael Meeks  <michael@edenproject.org>

	* src/dialog-define-names.c (dialog_define_names): Removed all the
	dead code.
	Lots of new code ... not there yet though.
	
	* src/workbook.c: Enabled names menu item.

	* src/dialog-summary.c: add file header.

	* src/Makefile.am (glade_DATA): Added summary.glade and names.glade
	seems I didn't do this earlier: odd.

	* names.glade: Created.
	
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782
1999-07-22  Michael Meeks  <michael@edenproject.org>

	* src/expr-name.c: Stylistic precondition fixes,
	simplification & workbook integration.

	* src/workbook.c (workbook_core_new): init names.
	(workbook_do_destroy): add name clean.

	* src/sheet.h: Add Workbook->names.

	* src/func.h: Added comments moved from expr.h

1783 1784 1785 1786 1787
1999-07-21  Richard Hestilow  <hestgray@ionet.net>
	
	* gnumeric.gnorba: Fix "Embeddable" typo 
	(was IDL:/GNOME/Embeddable, should have been IDL:GNOME/Embeddable)

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

Michael Meeks's avatar
Michael Meeks committed
1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800
	* src/widget-font-selector.c (fs_init): Convert g_error to
	g_warning on missing glade_xml_new.

	* src/Makefile.am (GNUMERIC_CORBA_GENERATED): Make this empty
	if BONOBO is not installed, should kill peoples Gnumeric.idl
	problems with luck.

	* configure.in: Add lotus-123

	* plugins/Makefile.am: ditto.

1801 1802
	* src/main.c: Remove xbase include.

1803 1804 1805 1806 1807 1808 1809 1810 1811
1999-07-20  Jody Goldberg  <jgoldberg@home.com>

	* src/expr.c (value_area_fetch_x_y) : make value_zero local.
	(eval_expr) : renamed eval_expr_real, and allowed it to return NULL
	  in all the places that make sense.
	(eval_expr) : New function.  Calls eval_expr_real and returns 0 on
	  NULL with no error set.  Until VALUE_ERROR is in place things
	  will look funny.

1812 1813 1814 1815 1816 1817 1818 1819 1820
1999-07-20  Miguel de Icaza  <miguel@gnu.org>

	* src/item-bar.c (bar_draw_cell): Move the dimension computaiton
	of the font after we have figured which font to use.  Before we
	did all the computaiton based on the default font, which is not
	always the font used (we use bold font for selected rows).

	This fixes the bug Morten reported.

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
1999-07-20  Jody Goldberg  <jgoldberg@home.com>

	* src/fn-math.c : Moved gpow10 from here.
	* src/utils.[ch] : to here.

	* src/expr.c (value_area_get_x_y) : return NULL in all cases of
	  invalid refernces dont fake a 0.
	Rename TYPE_ERROR -> TYPE_MISMATCH.
	(is_null_string) : New function.
	(compare) : Allow equality tests between empty/error things too.
	(eval_expr) : Allow comparisons of empty/error values.  It can handle
	  it now.
	(OPER_ARRAY) : Use value_area_get_x_y not fetch_x_y, handle empty/error.
	(value_get_as_string) : Fix typo in recent unlogged change.  The change
	  might break importing files from a different locale.

	* src/fn-string.c : Add TEXT, improve VALUE, REPLACE so that they
	  passes more tests.

	* src/number-match.c (compute_value) : Partial support for thousands
	  separator.  Why doesn't this code use locale ?

	* src/format.c (format_value) : better support for ranges, attempt to
	  work around problem of a thousands seperator in a date format.

	* src/cell-draw.c (cell_draw) : Fix potential for infinite loop
	  with HALIGN_FILL.
	* src/print-cell.c (print_cell_text) : Ditto.

	* src/parser.y (make_string_return) : A string of the form "..." is
	  a string, don't try to parse it as a number.

	* src/pattern-selector.[ch] : pattern_selector_select made static. In
	  preparation for different approach.

1856 1857 1858 1859 1860 1861 1862 1863 1864
1999-07-19  Andreas Voegele <andreas.voegele@gmx.de>

	* src/parser.y (gnumeric_unsafe_expr_parser): Use the locale to
	figure out the correct separator

	* src/file.c (workbook_read): According to the GNU libc
	documentaiton retrieving the current locale should be done by
	passing NULL to setlocale as the locale argument.

1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877
1999-07-17  Michael Meeks  <michael@edenproject.org>

	* src/workbook.c (workbook_setup_edit_area): Enabled function
	wizard.

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

	* src/summary.c (summary_item_as_text): Implemented.
	(summary_item_dump): Simplified.

	* src/xml-io.c (xml_write_summary, xml_read_summary): Created.
	(xml_workbook_read, xml_write_summary): Added summary stuff.

1878 1879 1880 1881 1882
1999-07-17  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* doc/C/analysis-tools.sgml: Added documentation of anova, single
 	factor tool.

1883 1884 1885 1886 1887 1888 1889 1890 1891
1999-07-14  Miguel de Icaza  <miguel@gnu.org>

	* src/fn-misc.c (gnumeric_error): Fixed usage of errors with the
	non-broken setup.

	* src/expr.c (error_message_set): Rewrote the error message logic
	to be clean and clear.  Simplified and followed the Gnumeric
	coding conventions.

Michael Meeks's avatar
Michael Meeks committed
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911
1999-07-15  Michael Meeks  <michael@edenproject.org>

	* src/summary.c (summary_info_add): Add duplicate entry removal.
	Re-organised structures and enum for convenience.
	(summary_info_as_list, append_item): Created.
	(summary_item_dump): Made static.
	include stdio.h
	Add 'Category' and 'Manager'

	* src/workbook.c (summary_cmd): Create.
	Add 'Su_mmary' to file menu.

	* dialogs.h: Added summary_update.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add dialog-summary.c	

	* dialog-summary.c: Created.

	* summary.glade: Created.
	
1912 1913 1914 1915 1916 1917
1999-07-13  Jody Goldberg  <jgoldberg@home.com>

	* src/fn-lookup.c (gnumeric_lookup) : Support default args for
	  width & height.  Return cell_value directly for 1x1 results.
	(gnumeric_hyperlink) : Add stub.

Jody Goldberg's avatar
Const.  
Jody Goldberg committed
1918 1919
	* src/expr-name.[ch] (expr_name_add, expr_name_lookup) : Const.

1920 1921 1922
	* src/parser.y (make_string_return) : Handle special case of "" avoid
	  turning it into a number.

1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939
1999-07-13  Michael Meeks  <michael@edenproject.org>

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): add summary.[ch]

	* src/workbook.c (workbook_core_new): Hook in summary info.
	(workbook_do_destroy): ditto.
	(deps_output): debugging hook.

	* src/sheet.h: Added SummaryInfo to Workbook.

	* src/summary.[ch]: Added.

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

	* src/cell-draw.c (cell_draw): Added handy debug for when
	cell->text is duff.

1940 1941
1999-07-13  Morten Welinder  <terra@diku.dk>

1942 1943 1944 1945
	* src/fn-string.c (gnumeric_search): Actually start search where
 	advertised.
	(gnumeric_value): Try harder.

1946 1947 1948 1949
	* src/style.c (font_init): Print informative message instead of
 	just aborting.
	(style_shutdown): Remove old code.

1950 1951
	* src/mathfunc.h: Work around Irix incompatibility.

1952 1953 1954 1955 1956 1957 1958 1959
1999-07-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Implemented
 	Anova, single factor tool.

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Implemented
 	Anova, two-factor without replication tool.
	
1960 1961 1962 1963 1964 1965 1966 1967
1999-07-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/print-info.c (save_hf, print_hf_register): Save the headers
	and footers.  Implement registration of new formats.

	* src/dialog-printer-setup.c (do_hf_config): Added the editing
	facility to the formats.

1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981
1999-07-12  Jody Goldberg  <jgoldberg@home.com>

	* src/Gnumeric.idl : Add SplitsArray array exception for array-formula
	  support.

	* src/cell.[ch] (cell_set_border) : Const.

	* src/expr.[ch] (value_area_get_width, value_area_get_height) : Const.

	* src/fn-math.c : Added TRANSPOSE.

	* wizards/graphics/*.c : Minor text tweaks so that things come closer
	  to compiling.

1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993
1999-07-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* doc/C/analysis-tools.sgml: Small fixes and additions.
	
	* src/dialog-analysis-tools.c, src/analysis-tools.c: Added
 	Bernoulli distribution to the Random Number Generation tool.

	* src/analysis-tools.c: Finished Rank and Percentile tool.
	
	* src/analysis-tools.c: Fixed ``F/z/t Critical'' values of the
 	F-Test, t-Test, and z-Test Tools.
	
1994 1995 1996 1997 1998 1999
1999-07-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-analysis-tools.c, src/analysis-tools.c: Made ``Labels
 	in the first row'' option to actually work.  Killed some warnings
 	and bugs related to outputs too.

Arturo Espinosa's avatar
Arturo Espinosa committed
2000 2001 2002 2003 2004 2005 2006
1999-07-12  Miguel de Icaza  <miguel@gnu.org>

	* src/cell.c (cell_set_font): Now takes a "points" argument.

	* src/Gnumeric.idl (Sheet): Take a double for the cell_set_font
	points parameter.

2007 2008 2009 2010 2011
1999-07-11  Raja R Harinath  <harinath@cs.umn.edu>

	* configure.in: Don't use `foo >& /dev/null' style redirection, 
	use `foo > /dev/null 2>&1'.

2012 2013
1999-07-11  Miguel de Icaza  <miguel@gnu.org>

Arturo Espinosa's avatar
Arturo Espinosa committed
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023
	* src/dialog-cell-format.c (apply_font_format): Use the
	FontSelector here. 

	* src/widget-font-selector.c (reload_preview): New approach for
	font loading, by using the scale explicitly I got it to work ;-).
	(font_selector_choose): New routine to set the font style.

	* src/sheet.c (sheet_init_default_styles): Change of plans, we are
	going to use 80 units for the default width.

2024 2025
	* src/widget-font-selector.c: New file.  A simplified and robust
	font selector for Gnumeric.
Arturo Espinosa's avatar
Arturo Espinosa committed
2026
	(fs_fill_font_name_list): Free this.
2027

2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 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 2068 2069 2070 2071 2072 2073 2074
1999-07-11  Jody Goldberg  <jgoldberg@home.com>

	* src/item-grid.c (context_cut_cmd, context_copy_cmd context_paste_cmd,
	    context_paste_special_cmd, context_insert_cmd, context_delete_cmd,
	    context_clear_cmd, context_cell_format_cmd, create_popup_menu,
	    item_grid_popup_menu) : Operate on Sheet* rather than ItemGrid*.

	* src/item-bar.c (item_bar_event) : Popup an item_grid_popup_menu
	  when Button3 is pressed.  Excel also adds an entry to change
	  col widths/row heights,  that will be next TODO.

	* src/dialog-insert-cells.c, src/dialog-delete-cells.c :
	  Short circuit the menus when an entire row/column is selected.  This
	  fixes the problem of selecting a column and accidentaly inserting a
	  row would clear the sheet inserting MAX_ROW rows and erasing
	  everything ...

	* src/cell-draw.c (cell_draw) : Remove use of str_trim_spaces and
	  correct the bounding rectangle size for multiline entries.
	(cell_split_text) : Rework logic to strip spaces when a forced split
	  causes a linebreak @ those spaces.  Plus more comments.

	* src/print-cell.c (cell_split_text, print_cell_text) : Ditto.
	  Switch accumulators to doubles.

	* src/parser.y : Moved dump_value from here.
	* src/expr.c : to here.  And changed the format of CellRanges
	  to be more appealing.

	* src/cell.c (cell_relocate) : Add some cruft to handle relinking
	  the corner cell of an array formula.

	* src/clipboard.c (clipboard_prepend_cell) : Renamed from
	  clipboard_append_cell.  So that there is truth in naming.
	(clipboard_copy_cell_range) : Reverse the result of
	  clipboard_prepend_cell so that the upper left corner is 1st.

	(Sheet *sheet, int col, int row, Cell *cell, void *user_data)
	* src/expr.c (eval_range) : New function to ensure that range
	  arguments are recalculated.
	 (eval_expr) : Use it.

	* src/sheet.c (range_check_for_partial_array) : New function.  To avoid
	  subdividing arrays does some obvious optimizations.
	(sheet_fill_selection_with) : Split out from here.
	(sheet_delete_col, sheet_delete_row) : Used here too.

Michael Meeks's avatar
Michael Meeks committed
2075 2076 2077 2078
1999-07-11  Michael Meeks  <michael@edenproject.org>

	* Sort ChangeLog out, apologies.

2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107
1999-07-10  Michael Meeks  <michael@edenproject.org>

	* src/func.c (function_iterate_do_value): Clean to use new
	macro.

	* src/fn-stat.c (gnumeric_rank, gnumeric_prob, gnumeric_steyx),
	(gnumeric_ftest, gnumeric_slope, gnumeric_percentrank),
	(gnumeric_ttest, gnumeric_forecast, gnumeric_intercept): New
	sheet support.

	* src/fn-math.c (gnumeric_countif): Cleaned with nicer sheet
	select macro.
	(gnumeric_sumif, gnumeric_sumx2my2, gnumeric_sumxmy2),
	(validate_range_numeric_matrix): Added new sheet support.
	
	* src/fn-information.c (gnumeric_countblank): Added correct
	sheet support.

	* src/fn-database.c (find_column_of_field): Add EvalPosition
	to get valid Sheet * from & use it.
	(parse_database_criteria, find_cells_that_match): Ditto.
	Update all references.

	* src/expr.c (value_area_get_height): Use eval_sheet
	(eval_funcall): Remove redundant Sheet * setting.

	* src/expr.h: Add eval_sheet to help all over the place.

	* src/eval.c (add_cell_range_deps): Use eval_sheet, and make
2108
	warning more correct.