ChangeLog 75.6 KB
Newer Older
1 2 3 4 5
2002-04-07  Jon K Hellan  <hellan@acm.org>

	* configure.in: Test for isfinite as a macro.
	* acconfig.h: Ditto.

6 7 8 9 10
2002-04-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/item-edit.c : link to the expr-entry changed signal rather than its
	  gtkentry changed signal.

11 12 13 14 15 16 17 18
2002-04-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/item-edit.c (point_is_inside_range) : rather than parsing
	  using parse_surrounding_ranges, ask the expression entry
	  widget for the already parsed info.
	* src/parse-util.c (parse_surrounding_ranges) : fix formatting and
	  add some debug switches

Morten Welinder's avatar
Morten Welinder committed
19 20 21 22 23 24 25 26 27
2002-04-05  Morten Welinder  <terra@diku.dk>

	* src/gutils.c (gnm_mem_chunk_foreach_leak): New function.

	* src/str.c (string_get, string_get_nocopy, string_unref):
	Optionally use string pool.
	(string_shutdown): New function.
	* src/main.c (main): Call string_shutdown.

Jody Goldberg's avatar
Jody Goldberg committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41
2002-04-05  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (cb_insert_image) : add insert image.

	* src/sheet-object.c (sheet_object_default_size) : add a default_size
	  handler that can generate default sizes per instance rather than
	  class.

	* src/sheet-object-image.c (sheet_object_image_default_size) :
	  implement.
	(sheet_object_image_class_init) : register the deafult size handler.
	* src/application.c  : add insert image.
	* src/pixmaps/Makefile.am : add insert image.

42 43 44 45 46 47
2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gnumeric-pane.c (gnm_pane_reposition_cursors) : also 
	  reposition item-edit cursor
	  http://bugzilla.gnome.org/show_bug.cgi?id=77321

48 49 50 51 52 53 54 55 56 57
2002-04-04  Morten Welinder  <terra@diku.dk>

	* src/main.c (main): Initialize and shutdown expr class.

	* src/expr.c (gnm_expr_new_constant, gnm_expr_new_funcall) 
	(gnm_expr_new_unary, gnm_expr_new_binary, gnm_expr_new_name) 
	(gnm_expr_new_cellref, gnm_expr_new_array, gnm_expr_new_set) 
	(do_gnm_expr_unref): Conditionally use expression pool.
	(expr_init, expr_shutdown): Setup new expression pool.

58 59 60 61 62 63 64 65
2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/item-edit.h (point_is_inside_range) : don't call 
	  gnumeric_char_start_expr_p since it changes the cursor position
	(entry_cursor_event) : new
	(item_edit_set_arg) : use notify::cursor-position rather than 
	  button-press-event

66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/parse-util.c (parse_surrounding_ranges) : new, code extracted
	  from src/widgets/gnumeric-expr-entry.c 
	* src/parse-util.h (parse_surrounding_ranges) : new
	* src/item-edit.c (scan_at) : deleted
	(point_is_inside_range) : use arse_surrounding_ranges
	* src/position.c (value_to_rangeref) : new
	(rangeref_normalize) : new
	* src/position.h (value_to_rangeref, rangeref_normalize) : new
	* src/ranges.c (setup_range_from_value) : use setup_range_from_range_ref
	(setup_range_from_range_ref) : new
	* src/ranges.h (setup_range_from_range_ref) : new
	* src/value-sheet.c (value_cellrange_normalize) : use rangeref_normalize

81 82 83 84 85 86 87 88 89 90
2002-04-03  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/ranges.h (setup_range_from_value) : new
	(value_to_global_range) : new
	* src/ranges.c : ditto
	* src/consolidate.c : use setup_range_from_value
	* src/corba-sheet.c : ditto
	* src/item-edit.c : ditto
	* src/value.c : ditto

91 92 93 94
2002-04-03  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* schemas/gnumeric-general.schemas : Fix long description formatting. 

95 96 97 98 99
2002-04-02  Jon K Hellan  <hellan@acm.org>

	* src/func.c (function_def_get_arg_name): Don't crash if arguments
	aren't named.

Morten Welinder's avatar
Morten Welinder committed
100 101 102 103 104 105 106 107 108
2002-04-01  Morten Welinder  <terra@diku.dk>

	* src/value.c (USE_VALUE_POOLS): Make pools conditional.

	* src/parser.y (line, opt_exp): Plug gigantic leak.  Now why does
	the expression widget call the parser thousands of times?

	* src/expr.c (expr_eval_real): Simplify.

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
109 110 111 112
2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/item-cursor.c (item_cursor_target_region_ok) : fix message dialog

113 114 115 116 117 118 119
2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/mstyle.c (mstyle_new_default) : protect against faulty
	  schema installation
	* src/style.c (font_init) : protect against faulty
	  schema installation and also configure bold and italic default fonts.

120 121 122 123 124 125 126 127 128
2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* schemas/gnumeric-general.schemas : add default font schemas
	* src/application.[ch] : add central preferences dialog
	* src/main.c : dispose of preference dialog on exit
	* src/mstyle.c : use gconf data to initialize default style
	* src/style.[ch] : use gconf data to initialize default style
	* src/workbook-control-gui.c : add preference menu items

Morten Welinder's avatar
Morten Welinder committed
129 130
2002-04-01  Morten Welinder  <terra@diku.dk>

131 132
	* src/expr.c (expr_eval_real): Fix overflow for EXP case.  (Twice.)

Morten Welinder's avatar
Morten Welinder committed
133 134
	* src/mathfunc.c (gnumeric_fake_trunc): Fix for negative valus.

135 136 137 138 139 140 141 142 143 144 145
2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c : use workbook signals
	* src/commands.h : include tools/tools.h rather than dialogs/tools.h 
	* src/summary.c (summary_info_add) : return boolean
	* src/summary.h (summary_info_add) : return boolean
	* src/workbook.c : new workbook signals
	(workbook_add_summary_info) : new, emit signal
	(workbook_set_filename) : emit signal
	* src/workbook.h : new workbook signals

146 147 148 149 150
2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (cmd_analysis_tools_undo) : clear region
	  before pasting (to avoid leaving cell comments behind)

151 152 153 154 155 156 157 158
2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c : cmd_analysis_tools allow the engines
	  to carry info from TOOL_ENGINE_LAST_VALIDITY_CHECK to
	  TOOL_ENGINE_PERFORM_CALC
	* src/commands.h : include dialogs/tools.h rather than 
	  tools/analysis-tools.h

Jody Goldberg's avatar
Jody Goldberg committed
159 160 161 162
2002-03-31  Jody Goldberg <jody@gnome.org>

	* src/gui-util.c (gnumeric_toolbar_new) : respect ui preferences.

163 164 165 166 167
2002-03-30  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (cmd_analysis_tool_redo) : TOOL_ENGINE_PERFORM_CALC
	  should never return TRUE since we already cleared the target.

168 169 170 171 172 173 174 175 176 177 178 179
2002-03-29  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* schemas/gnumeric-general.schemas : new schema file
	* schemas/Makefile.am : added gnumeric-general.schemas
	* src/application.h (application_release_gconf_client) : new
	(application_get_gconf_client) : new
	* src/application.c (application_release_gconf_client) : new
	(application_get_gconf_client) : new
	(app_init) : initialize new app.gconf_client
	* src/commands.c (truncate_undo_info) : read size_left from gconf
	* src/main.c : destroy app.gconf_client on exit

180 181
2002-03-29  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

182 183 184
	* src/sheet.c (sheet_delete_rows, sheet_delete_cols) : Fixed the
	adjustments for Solver's parameters.

185 186 187
	* src/sheet.c (sheet_insert_rows, sheet_insert_cols) : Fixed the
	adjustments for Solver's parameters.

188 189 190 191 192 193 194 195
2002-03-29  Morten Welinder  <terra@diku.dk>

	* src/value.c (value_new_cellrange_unsafe, value_new_cellrange,
	value_new_cellrange_r, value_new_array_non_init, value_release):
	Use chunk allocator for ranges and arrays.
	(value_init): Initialise range and array pools.
	(value_shutdown): Free range and array pools.

196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
2002-03-29  Morten Welinder  <terra@diku.dk>

	* src/gutils.c (gnm_mem_chunk_new, gnm_mem_chunk_destroy,
	gnm_mem_chunk_alloc, gnm_mem_chunk_free): Keep per-block
	freelists.
	(gnm_mem_chunk_free): g_free chunks that are completely empty.

	* src/value.c (value_get_as_float): Improve precision.
	(value_get_as_int): Take sign into account when (fake-)truncating
	floating point numbers.
	(value_new_error, value_new_error_str, value_new_string,
	value_new_string_str, value_release): Use chunk allocator for
	strings and errors.
	(value_init): Initialise error and string pools.
	(value_shutdown): Free error and string pools.

212 213 214 215 216
2002-03-29  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* samples/solver/regression-test-suite.gnumeric: Solver's
	regression test suite added.

Jody Goldberg's avatar
Jody Goldberg committed
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
2002-03-28  Jody Goldberg <jody@gnome.org>

	* src/sheet-object.c (sheet_object_set_sheet) : ref the object when we
	  add it to the sheet.
	(sheet_object_clear_sheet) : unref here.
	(sheet_object_set_sheet) : move the content of new_view here.

	* src/print-cell.c (print_cell) : seems like the sign of the descenty
	  is reversed.
	* src/print.c (print_footers) : ditto.

	* src/sheet.c (sheet_move_range) : long list onto short list not
	  vice versa.
	(sheet_delete_cols) : ditto.
	(sheet_delete_rows) : ditto.
	* src/dependent.c (micro_hash_resize) : ditto.

	* src/style.c (style_font_new_simple) : init the print_font.
	(style_font_unref) : unref the print_font.

	* src/print-cell.c (print_cell) : use the print_font.

	* src/print.c (print_job_info_destroy) : GnomeFont is a GObject.

2002-03-27  Jody Goldberg <jody@gnome.org>

	* gnumeric.desktop.in (Exec) : Add %F

245 246 247 248
2002-03-28  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (cmd_analysis_tool_redo) : add dao_autofit_columns

249 250 251 252
2002-03-28  Morten Welinder  <terra@diku.dk>

	* */*.c: Fix g_warning calls to not have terminating n.

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
253 254 255 256
2002-03-28  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/print.c (sheet_print) : gpm is not a GtkObject

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
257 258 259 260
2002-03-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/print.c : port to gnome2

261 262 263 264 265
2002-03-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-util.c (gnumeric_destroy_dialog) : replaced by call to
	  gtk_widget_destroyed

266 267 268 269
2002-03-27  Jody Goldberg <jody@gnome.org>

	* configure.in : Include the necessary gconf setup to install schemas.

Jody Goldberg's avatar
update  
Jody Goldberg committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
2002-03-27  Jody Goldberg <jody@gnome.org>

	* src/io-context.c (gnm_io_get_password) : new.
	* src/command-context.c (cmd_context_get_password) : new.
	* src/workbook-control-gui.c (wbcg_get_password) : new.

2002-03-26  Jody Goldberg <jody@gnome.org>

	* src/parser.y (yylex) : make utf8 clean.
	(find_char) : ditto.
	(find_matching_close) : ditto.

2002-03-26  Jody Goldberg <jody@gnome.org>

	* configure.in : add schemas dir.

	* src/gnumeric-canvas.c (gnumeric_canvas_new) : disable auto-center.

288 289 290 291
2002-03-27  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* src/xml-io.c: Added saving and loading of Solver's options.

Jody Goldberg's avatar
Jody Goldberg committed
292 293 294 295
2002-03-25  Jody Goldberg <jody@gnome.org>

	* Release 1.1.2

Morten Welinder's avatar
Morten Welinder committed
296 297 298 299 300 301 302 303 304 305 306
2002-03-26  Morten Welinder  <terra@diku.dk>

	* src/rendered-value.c (rendered_value_new): Just peek directly
	into the approx_width structure -- everyone else does that.  Take
	worst case of "e", signs, and decimal points into account.

	* src/style.h (StyleFont): Change floats to doubles.  Add more
	approx_width fields.

	* src/style.c (style_font_get_width_pts): Remove.

307 308
2002-03-26  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
309 310 311
	* src/style.c (style_font_new_simple): Translate pixels to points
	properly.

Morten Welinder's avatar
Morten Welinder committed
312 313
	* src/style.c (style_font_new_simple): Fix misplaced #endif.

314 315 316 317 318 319
	* src/format.c (format_value): Fix general display of floats.
	Oops.

	* src/value.c (value_release): Use the fact that VALUE_TERMINATE
	is an error value.

320 321 322 323 324 325 326 327 328 329
2002-03-26  Morten Welinder  <terra@diku.dk>

	* src/value.c (value_new_bool, value_new_int, value_release): Use
	int/bool pool.
	(value_init): Initialise int/bool pool.
	(value_shutdown): Free int/bool pool.

	* src/gutils.c (gnm_mem_chunk_new): Use smaller alignment when
	known to be possible.

330 331 332 333
2002-03-26  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/workbook-control-gui.c : added insert-function menu item

334 335 336 337 338
2002-03-26  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* schemas/ : new directory for schema files
	* schemas/gnumeric-dialogs.schemas : file for gconf configuration
	  variables used by the gnumeric dialogs
339

340 341 342 343 344 345
2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* gui-util.[ch] (focus_on_entry) : new
	* src/workbook-control-gui.c (cb_file_summary) : delete unused
	  variable

346 347 348 349 350
2002-03-25  Morten Welinder  <terra@diku.dk>

	* src/format.c (format_value): Strip signs when conditional
	formats are in use.

351 352 353 354 355 356 357 358 359 360 361 362
2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.[hc] : implement cmd_change_summary
	* src/summary.[hc] : constify arguments
	(summary_item_free) : make public, handle NULL argument
	(summary_item_copy) : new
	(summary_item_by_name) : new
	(summary_item_as_text_by_name) : new
	* src/workbook-control-gui.c (cb_file_summary) : delete unused
	  variable, add argument to dialog_summary_update
	* src/workbook.c (workbook_set_filename) : update summary dialog

363 364
2002-03-25  Morten Welinder  <terra@diku.dk>

365 366 367
	* src/format.c (StyleFormatEntry): Make the value field a
	gnum_float at intended.

368 369 370 371 372 373 374 375 376 377 378 379 380 381
	* src/main.c (main): Call g_set_prgname.
	(main): Call value_init and value_shutdown appropriately.

	* src/value.c (value_terminate_err): New value.
	(value_terminate): Replace this function by the value
	VALUE_TERMINATE.  All callers changed.
	(value_hash): Be smarter about arrays.
	(value_new_float): Use chunk allocator.
	(value_release): Release floats properly.
	(value_init, value_shutdown): New functions.

	* src/gutils.c (gnm_mem_chunk_destroy): Add new argument for leak
	tracking.

382 383 384 385 386
2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* workbook-control-gui.c : change arguments in call of
	  dialog_summary_update

387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
2002-03-24  Morten Welinder  <terra@diku.dk>

	* src/gutils.c (gnm_mem_chunk_new, gnm_mem_chunk_destroy,
 	gnm_mem_chunk_alloc, gnm_mem_chunk_alloc0, gnm_mem_chunk_free):
 	New functions implementing a sane and fast chunk allocated.
  	(Maybe use Evolution's later.)

	* src/dependent.h (struct _GnmDepContainer): add members
 	range_pool and single_pool for allocation.

	* src/dependent.c (link_single_dep): Allocate from pool.
	(unlink_single_dep): Free using pool.
	(link_range_dep): Allocate from pool.
	(unlink_range_dep): Free using pool.
	(do_deps_destroy): Destroy pools.
	(gnm_dep_container_new): Allocate pools.
	(cb_dep_hash_invalidate): Don't free at all -- we're about to dump
 	both pools anyway.

	* src/cell.c (cell_new): New function.  (About time.)
	(cell_copy): Use cell_new.
	(cell_destroy): Free from pool if we allocated that way.
	(cell_init, cell_shutdown): New functions.

	* src/xml-io.c (cell_copy_new): Use cell_new.
	* src/sheet.c (sheet_cell_new): Use cell_new.
	* src/main.c (main): Initialise and shutdown cells.

415 416
2002-03-22  Jody Goldberg <jody@gnome.org>

417 418 419 420
	* src/sheet.c (sheet_cell_insert) : delete.
	(cb_sheet_cell_copy) : use sheet_cell_new instead of
	  cell_copy + sheet_cell_insert.

421 422
	* src/gnumeric.h (CellList) : delete.

423 424 425 426
2002-03-22  Almer S. Tigelaar  <almer@gnome.org>

	* src/format-template.h: Extend FormatTemplate struct with
	edge related flags.
427

428 429 430 431 432 433 434 435
	* src/format-template.c (formate_template_new): Initialize
	new edge related members.
	(format_template_clone): Clone new edge related members and
	constify.
	(format_template_transform_edges): Transforms the templates
	by removing edges if so desired.
	(format_template_calculate): Use format_template_transform_edges.

436 437 438 439
2002-03-21  Jody Goldberg <jody@gnome.org>

	* Massive rename
	ExprTree -> GnmExpr
440
	eval.[ch] -> dependent.[ch]
441
	DependentContainer -> GnmDepContainer
442 443 444 445 446

	* src/print-info.c (load_formats) : suppress some warnings.

	* src/func.c (function_def_call_with_values) : use g_alloca.

447 448 449 450
2002-03-21  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* AUTHORS: Added the authors of the LP Solve algorithm.

451 452
2002-03-20  Jody Goldberg <jody@gnome.org>

453 454 455
	* src/sheet-style.c (cell_tile_apply_pos) : a simple optimization.
	  Don't split a tile to apply the existing style.

456 457 458 459
	* src/cellspan.c (cell_calc_span) : Fix span calc when spanning
	  through hidden columns with content there was a typo, and a logic
	  error.  No need to change the margin for an invisible column.

460 461 462 463 464 465
2002-03-19  Jody Goldberg <jody@gnome.org>

	* src/eval.c (cell_eval_content) : move here from cell.c and
	  privatize.
	(dependent_changed) : remove useless argument.

466 467 468 469 470 471
2002-03-19  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/func.[ch] (function_def_get_arg_type_string) : new
	(function_def_get_arg_name) : new
	* src/gui-util.[ch] (gnumeric_dialog_raise_if_exists) :
	  change return type from gboolean to gpointer
472
	* src/workbook-control-gui.c : add argument to call to
473 474
	  dialog_formula_guru

475 476
2002-03-19  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
477 478 479 480
	* src/position.c (cellref_equal): Change the order of comparisons
	a bit.  This works around a purify problem.  (I.e., a problem with
	purify, not with the gnumeric code.)

481 482 483 484 485 486
	* src/style.c (style_font_new_simple): Work harder at getting widest character.

	* src/format.c (format_number): Fix format breakage.  (Extra "E".)

	* src/parser.y (parse_string_as_value): Clean up.

487 488 489 490 491
2002-03-19  Juan Pablo Mendoza <jpablo@gnome.org>

	* src/Makefile.am: Changue subdirs order to build pixmaps before
	  dialogs. This fix the cvs build.

492 493 494 495 496 497 498
2002-03-18  Morten Welinder  <terra@diku.dk>

	* src/rangefunc.c (float_hash): Fix for long double case (which
	has six padding bytes on gcc/ix86).  Also be smarter.

	* src/value.c (value_hash): Scale by a power of two for speed.

499 500 501 502 503 504 505 506
2002-03-18  Morten Welinder  <terra@diku.dk>

	* src/workbook-control-gui.c (cb_workbook_debug_info): Add code to
	share cells in workbook.

	* src/main.c: Add --debug_share=1 option.

	* src/expr.c (expr_list_eq): New function.
507
	(expr_tree_sharer_new, expr_tree_sharer_destroy)
508 509 510 511 512 513
	(expr_tree_sharer_share): New functions.

	* src/position.c (cellref_hash): New function.

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

514 515 516
2002-03-18  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (cmd_analysis_tool) : set me->parent.size
517

Jody Goldberg's avatar
Jody Goldberg committed
518 519 520 521
2002-03-18  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c : typo. (Thanks frob)

522 523
2002-03-18  Jody Goldberg <jody@gnome.org>

524 525
	* configure.in : bump canvas req to pull in the canvas fixes
	changes.
526 527 528 529

	* src/xml-io.c (xml_sheet_read) : look for sheet names in the right
	  place.

530 531 532 533
2002-03-17  Jody Goldberg <jody@gnome.org>

	* src/style.c (style_font_get_height) : add some additional
	  protection.
Jody Goldberg's avatar
Jody Goldberg committed
534
	(style_font_new_simple) : be really really anal.
535

536 537 538 539 540 541 542
2002-03-17  Jon K Hellan  <hellan@acm.org>

	* src/workbook-format-toolbar.c (cb_fore_color_changed): Handle
	autocolors.
	(cb_border_changed): Ditto.
	(workbook_create_format_toolbar): Ditto.

543 544
2002-03-16  Jody Goldberg <jody@gnome.org>

545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
	* src/workbook.c (workbook_foreach_cell_in_range) : support 3d
	  references.
	(workbook_finalize) : free the 3d dep list if necessary.
	(workbook_init) : initialize the list.
	(cb_dep_unlink) : new.
	(pre_sheet_index_change) : new.
	(cb_dep_link) : new.
	(post_sheet_index_change) : new.
	(workbook_sheet_index_update) : privatize.
	(workbook_sheet_attach) : add pre/post handling for 3d references.
	(workbook_sheet_detach) : ditto.

	* src/eval.c (link_cellrange_dep) : add support for 3d deps.
	(unlink_cellrange_dep) : add support for 3d deps.
	(workbook_link_3d_dep) : new.
	(workbook_unlink_3d_dep) : new.
	(dependent_link) : called here.
	(dependent_unlink) : and here.

	* configure.in : bump libcanvas req to getthe no auto-center patch.

2002-03-16  Jody Goldberg <jody@gnome.org>
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593

	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : don't recalc the
	  entire sheet.  We'll queue what we need when relocating.

	* src/cell.c (cell_set_expr_unsafe) : don't relink.

	* src/eval.c (micro_hash_resize) : minor optimization.
	(dependents_unrelocate_free) : moved here and renamed from
	(workbook_unrelocate_free) : moved here and renamed from
	  workbook_expr_unrelocate_free.
	(workbook_unrelocate) : moved here and renamed from
	  workbook_expr_unrelocate.
	(cb_range_contained_collect) : new.
	(cb_single_contained_collect) : new.
	(dependents_relocate) : moved here and renamed from
	  workbook_expr_relocate.  Then changed to operate on the actual
	  depenents of the region rather than everything, clarified the
	  handling of linking/unlinking.
	(dependents_unrelocate) : relink deps and queue them for recalc.

	* src/cell.c (cell_relocate) : clean out a bit now that we are not
	  using it without reloc info.

	* src/expr.c (cellref_relocate) : don't use the ultra safe reference
	  checks here, we WANT to know if things are out of bounds.
	(cellref_shift) : ditto.

594 595 596 597 598 599 600
2002-03-15  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/sheet-control-gui-priv.h : added label field
	* src/workbook-control-gui.c (cb_sheet_name) : call
	  editable_label_start_editing rather than dialog_sheet_name
	(sheet_action_rename_sheet) : ditto
	(wbcg_sheet_add) : store editable label ref for future ref
601

602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618
2002-03-15  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c : support tab color changes in cmd_reorganize_sheets
	* src/commands.h (cmd_reorganize_sheets) : add arguments
	* src/sheet.c (sheet_set_tab_color) : add third argument
	(sheet_new) : initialize tab_text_color
	(sheet_destroy) : free tab_text_color
	* src/sheet.h : add tab_text_color to _Sheet
	(sheet_set_tab_color) : add third argument
	* src/workbook-control-gui.c (wbcg_sheet_add) : also set tab_text_color
	(wbcg_sheet_rename) : add arguments to call of cmd_reorganize_sheets
	(cb_insert_sheet) : ditto
	* src/workbook.c (workbook_sheet_reorganize) : support changing of tab
	  colors
	* src/workbook.h (workbook_sheet_reorganize) : add arguments
	* src/xml-io.c : read and write TabTextColor

619 620
2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>

621 622
	* src/commands.c (cmd_merge_data_redo) : use cell_assign_value rather
	  than copy/paste to preserve merged target fields.
623 624 625 626 627 628
	* src/commands.c (cmd_merge_data_redo) : don't create unnecessary cells
	* src/sheet-object.[ch] (sheet_object_clone_sheet) : delete
	* src/sheet-object.[ch] (sheet_object_clone_sheet_in_range) : rename
	  sheet_object_clone_sheet
	* src/sheet.c : change sheet_object_clone_sheet calls

629 630
2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>

631
	* src/commands.c : use cell_assign_value rather than copy/paste to
632
	  preserve merged target fields.
633

634
2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
635

636 637
	* src/sheet-object-widget.[ch] (sheet_widget_checkbox_switch_link_sheet) :
	  delete again (unnecessary after Jody's fix of the root problem)
638
	* src/colrow.c (colrow_set_states) : preserve the
639
	  ColRowStateList, it possibly should also be applied to other sheets
640
	(colrow_restore_state_group) : ditto.
641 642 643 644
	* src/sheet.c : delete the ColRowStateList after colrow_set_states
	* src/commands.c : delete the ColRowStateList after colrow_set_states
	(cmd_merge_data_redo) : preserve column and row widths, etc.

645 646
2002-03-13  Jody Goldberg <jody@gnome.org>

647 648 649
	* src/gnumeric-canvas.c (gnm_canvas_key_press) : disable object
	  movement while guru is up.

650 651 652 653 654 655 656 657 658
	* src/sheet-object-widget.c (sheet_widget_scrollbar_get_ref) : Add a
	  force_sheet parameter.
	(sheet_widget_checkbox_get_ref) : ditto.
	(sheet_widget_scrollbar_clone) : do not force a fully qualified ref here.
	  It would incorrectly cause the new object to link to the old sheet.
	(sheet_widget_checkbox_clone) : ditto.

	* src/parser.y : support the applix #AND# #OR# #NOT# operators.

659 660
2002-03-13  Andreas J. Guelzow <aguelzow@taliesin.ca>

661
	* src/commands.c (cmd_merge_data_redo) : handle sheet objects
662 663 664 665 666 667 668 669 670
	  and change ref in checkboxes
	* src/sheet-object-widget.c (sheet_widget_checkbox_switch_link_sheet) :
	  new
	* src/sheet-object-widget.h (sheet_widget_checkbox_switch_link_sheet) :
	  new
	* src/sheet-object.c (sheet_object_clone_sheet_in_range) : new
	* src/sheet-object.h (sheet_object_clone_sheet_in_range) : new
	* src/workbook-control-gui.c (cb_tools_merge) : remove unused var

671 672
2002-03-12  Jody Goldberg <jody@gnome.org>

Jody Goldberg's avatar
Jody Goldberg committed
673 674 675 676
	* src/workbook-control-gui.c (cb_sheet_label_edit_finished) : renamed
	  from cb_sheet_label_changed and handle NULL text as cancel.
	(cb_sheet_label_edit_stopped) : deleted.

677 678 679 680 681 682 683 684 685 686 687 688 689 690
	* configure.in : Generate GNOME_Gnumeric.server.in
	* Generate GNOME_Gnumeric.server : start to think about this.

	* src/expr-name.c (expr_name_unlink_deps) : handle delayed hash
	  creation.
	(expr_name_new) : dont init the hash table.
	(expr_name_add_dep) : until here.

	* src/sheet.c (sheet_destroy_contents) : free the primary array too.

	* src/xml-io.c (cell_copy_new) : set comment to NULL.
	* src/gui-clipboard.c (x_selection_to_cell_region) : ditto.
	* src/stf-parse.c (stf_parse_region) : ditto.

691 692 693 694 695 696 697 698
2002-03-12  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* workbook-control-gui.c : add Merge to the Edit/Fill menu
	(cb_tools_merge) : new
	* commands.h (cmd_merge_data) : new
	* commands.c : implement the cmd_merge_data command
	(cmd_set_comment_finalize) : simplify

699 700 701 702 703 704
2002-03-12  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_destroy_contents): Plug leak.
	* src/workbook.c (workbook_finalize): Free the sheets member.
	* src/sheet-control-gui.c (scg_finalize): Plug leak.

Jody Goldberg's avatar
Jody Goldberg committed
705 706 707 708
2002-03-11  Jody Goldberg <jody@gnome.org>

	* src/expr-name.c (expr_name_new) : make public.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
709 710 711 712
2002-03-11  Jon K Hellan  <hellan@acm.org>

	* src/format.c: silence	warning.

713 714 715 716 717
2002-03-11  Morten Welinder  <terra@diku.dk>

	* configure.in (ynl, erfl, erfcl): Check that these actually work.
	(glibc defines these, they just don't work.)

718 719
2002-03-11  Andreas J. Guelzow <aguelzow@taliesin.ca>

720
	* src/commands.c (delete_pristine_sheets) : rename to
721 722 723 724
	  cmd_reorganize_sheets_delete_sheets and use command_undo_sheet_delete
	  rather than workbook_sheet_delete.
	(cmd_analysis_tool_finalize) : shorten code.

725 726 727 728 729 730 731 732 733 734 735 736
2002-03-11  Jody Goldberg <jody@gnome.org>

	* src/gui-util.c (color_combo_get_style_color) : changes to color combo.
	* src/sheet-object-graphic.c (cb_fill_color_changed) : ditto.
	* src/workbook-format-toolbar.c (cb_fore_color_changed) : ditto.
	(cb_back_color_changed) : ditto.
	(workbook_create_format_toolbar) : ditto.

2002-03-10  Jody Goldberg <jody@gnome.org>

	* configure.in : bump gal req to pull in the colour combo changes.

Jody Goldberg's avatar
Jody Goldberg committed
737 738 739 740 741 742 743 744
2002-03-10  Jody Goldberg <jody@gnome.org>

	* configure.in : post release bump

2002-03-10  Jody Goldberg <jody@gnome.org>

	* Release 1.1.1

745 746
2002-03-10  Andreas J. Guelzow <aguelzow@taliesin.ca>

747
	* src/commands.c (command_undo_sheet_delete) new utility function (for
748 749 750 751
	  CMD_ANALYSIS_TOOL_TYPE and CMD_SHEET_REORGANIZE_TYPE)
	(CMD_ANALYSIS_TOOL) : undo/redo command for data analysis tools.
	* src/commands.h (cmd_analysis_tool) : new

Jody Goldberg's avatar
Jody Goldberg committed
752 753 754 755 756
2002-03-10  Jody Goldberg <jody@gnome.org>

	* src/tools/solver/reports.c : warning suppression
	* src/tools/solver/solver.c (lp_solver_init) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
757 758
	* configure.in : bump gal version req.

759 760 761 762
2002-03-09  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gnm-marshalers.list : add NONE:STRING

763 764 765 766 767 768
2002-03-10  Jon K Hellan  <hellan@acm.org>

	* src/func.c (copy_hash_table_to_ptr_array): Check if function is
	FUNCTION_NAMEONLY here.
	(function_dump_defs): So that we can use the earlier version of this.

769 770 771 772
2002-03-09  Jon K Hellan  <hellan@acm.org>

	Dump function definitions from plugins, this time the easy way
	which even works.
773

774 775 776 777 778 779 780 781 782
	* src/func.c (copy_hash_table_to_ptr_array): Copy also when fd->help
	is NULL.
	(function_dump_defs): Load function definition before dumping name
	only function.

	* src/main.c (main): Drop force load argument to plugins_init.

	* src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
	plugin_db_activate_saved_active_plugins, plugins_init): Revert to
783
	pre 2002-03-08 version. We apologize for the inconvenience.
784 785
	However, error reporting by means of gnumeric_error_error_info
	remains.
786

787 788 789 790 791
	* src/plugin-service.[ch]
	(plugin_service_function_group_initialize): Revert to pre
	2002-03-08 version.
	(plugin_service_activate): Ditto. Except that we don't reinstate
	#ifdef PLUGIN_ALWAYS_LOAD. That branch is hopelessly bitrotted.
792 793

	* src/plugin.h: Drop #undef PLUGIN_ALWAYS_LOAD.
794

795 796 797 798 799 800 801 802
2002-03-09  Jody Goldberg <jody@gnome.org>

	* src/func.c (func_def_load) : rename from function_def_get_full_info_if_needed
	  and remove the condition.

	* src/eval.c (link_expr_dep) : Call func_def_load if necessary to
	  check for a link function.

803 804 805 806 807
2002-03-09  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* samples/solver/blend.mps: Added another Netlib demo.  The
	results seem to be correct now, so we are finally getting close..

808 809 810 811 812 813 814 815
2002-03-09  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (cb_editline_focus_in) : if editing fails
	restore focus to the sheet.

	* src/workbook-edit.c (wbcg_edit_start) : fix typo and swapping of the
	  warnings.

816 817 818
2002-03-09  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* workbook-control-gui.c : change menu items "Re-order sheets"
819
	  to "Manage Sheets" and enable these items even for single sheet
820 821 822
	  workbooks.
	* commands.h : add deleted_sheets argument to cmd_reorganize_sheets
	* commands.c : ditto
823

824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867
2002-03-08  Jody Goldberg <jody@gnome.org>

	* src/GNOME_Gnumeric.xml : switch Format->Workbook with
	  Format->AutoFormat
	* src/workbook-control-gui.c (workbook_menu_format) : ditto.

	* src/workbook-view.c (wb_view_is_protected) : new.

	* src/workbook-edit.c (wbcg_edit_start) : load style directly
	  don't use cell_get_style.  This enables support for protection of
	  blank cells.  Use wb_view_is_protected, and command_context_invalid.

2002-03-08  C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>

	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet): don't put us in
	  edit mode if wbcg_edit_start indicates the cell is locked.
	* src/workbook-control-gui.c (cb_autosum, cb_autofunction): handle
	  case where wbcg_edit_start returns FALSE indicating that cell is
	  locked.
	* src/workbook-edit.c (wbcg_edit_start): this function now returns a
	   boolean which indicates whether the 'edit_start' attempt succeeded.
	   Check cell properties to return FALSE if the cell is locked.
	* src/workbook-edit.h (wbcg_edit_start): modify the prototype as per above.
	* src/workbook-view.c (wb_view_set_attribute, workbook_view_init):
	  Remove ARG_VIEW_* enumeration, which isn't used after Gnome2 port.
	  Add WorkbookView::is_protected attribute, and initialize it to
	  FALSE.  The update to wb_view_set_attribute is enough to get
	  xml_sax import working properly (yay, modular code!).
	* src/workbook-view.h: add 'is_protected' field to WorkbookView struct.
	  This is TRUE iff the workbook is locked.
	* src/xml-io.c (xml_write_wbv_attributes):
	  Write the new 'protected' workbook view attribute.  Two lines are
	  enough to get read/write from xml_io working.  Score one for
	  xml_sax: zero should have been sufficient.
	* src/dialogs/cell-format.glade: The 'worksheet protected' checkbox
	  shouldn't be greyed-out anymore.
	* src/dialogs/dialog-cell-format.c (cb_protection_sheet_protected_toggle,
	fmt_dialog_init_protection_page, cb_fmt_dialog_dialog_buttons):
	  connect up the 'worksheet protected' button in the
	  Format->Cells->Protection dialog.  Update worksheet object when
	  toggled and mark that the dialog's changed.
	* src/dialogs/dialog-workbook-attr.c src/dialogs/workbook-attr.glade:
	  Add Format->Worksheet->Protection dialog.

Jon Kåre Hellan's avatar
Add.  
Jon Kåre Hellan committed
868 869
2002-03-08  Jon K Hellan  <hellan@acm.org>

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
870 871
	* src/command-context-stderr.c (ccs_class_init): Make gmorten happy.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
872 873 874 875 876
	* src/command-context.h (COMMAND_CONTEXT): Fix typo.

	* src/command-context-stderr.c
	(command_context_stderr_get_status): Fix typo.

Jon Kåre Hellan's avatar
Add.  
Jon Kåre Hellan committed
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893
	* src/command-context-stderr.[ch]: Add.

	* src/Makefile.am: Add command-context-stderr.[ch]

	* src/main.c (main): Force load plugins before dumping function
	definitions.

	* src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
	plugin_db_activate_saved_active_plugins, plugins_init): Add
	force_load parameter.
	(plugins_init): Use virtual function gnumeric_error_error_info to
	report error.

	* src/plugin-service.[ch]
	(plugin_service_function_group_initialize): Add force_load
	parameter. Get function info if force loaded.
	(plugin_service_activate): Propagate force_load parameter.
894

Jon Kåre Hellan's avatar
Add.  
Jon Kåre Hellan committed
895 896 897 898 899 900 901 902
	* src/gnumeric.h: Declare CommandContextStderr.

	* src/func.[ch] (function_def_get_full_info_if_needed): Make
	public so that it's available when force-loading plugins.

	* src/error-info.c (error_info_print_with_offset): Print to stderr
	instead of stdout.

903 904 905 906 907
2002-03-08  Morten Welinder  <terra@diku.dk>

	* src/validation.c (validation_eval): Minor cleanup.
	* src/value.c (value_peek_string): Be smarter about errors.

Jakub Steiner's avatar
Jakub Steiner committed
908 909 910 911 912 913 914 915
2002-03-08  Jakub Steiner <jimmac@ximian.com>

	* src/pixmaps/Makefile.am:
	* src/pixmaps/format_money_24.png:
	* src/pixmaps/format_percent_24.png:
	* src/pixmaps/object_list_24.png:
	* src/pixmaps/object_combo_24.png: fix the filenames

Jakub Steiner's avatar
Jakub Steiner committed
916 917 918
2002-03-08  Jakub Steiner <jimmac@ximian.com>

	* icons/down-right.png, icons/right-down.png: pretty gnome2 icons
919 920 921
	* src/pixmaps/percent.png:
	* src/pixmaps/money.png:
	* src/pixmaps/list.png:
Jakub Steiner's avatar
Jakub Steiner committed
922 923 924
	* src/pixmaps/combo.png, src/pixmaps/Makefile.am: replace xpm
	  with a PNG (removed combo.xpm)

925 926
2002-03-08  Jody Goldberg <jody@gnome.org>

Jody Goldberg's avatar
Jody Goldberg committed
927 928
	* configure.in : add sample_datasource

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 956 957 958 959 960 961 962 963 964 965
	* src/validation.c (validation_eval) : cleanup handling of 'int'
	and fix handling of between.

2002-03-08  Jody Goldberg <jody@gnome.org>

	* src/eval.h : Add DEPENDENT_ALWAYS_UNLINK.
	  and the as yet unused DEPENDENT_HAS_3D.

	* src/io-context.c (gnm_io_warning) : new stub.
	(gnm_io_warning_unknown_font) : ditto.
	(gnm_io_warning_unknown_function) : ditto.
	(gnm_io_warning_unsupported_feature) : ditto.

	* src/func.c (function_def_get_full_info_if_needed) :  add
	  link/unlink.

	* src/plugin-service.c
	(plugin_service_function_group_get_full_info_callback) : add
	  link/unlink.  This is a terrible interface.  Why not just make the
	  thing into the FunctionDescriptor.
	* src/plugin-loader-module.c
	(gnumeric_plugin_loader_module_func_get_full_function_info) : ditto.

2002-03-08  Jody Goldberg <jody@gnome.org>

	* src/xml-io.c (xml_write_print_info) : handle missing paper so that
	  we can save again.

	* templates/autoformat/autoformat.3D.button.xml : fix.

	* plugins/Makefile.am (SUBDIRS) : add sample_datasource.

2002-03-07  Jody Goldberg <jody@gnome.org>

	* src/plugin-loader-module.h (ModulePluginFunctionInfo) : add
	  'link' and 'unlink'.

966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984
2002-03-07  Jody Goldberg <jody@gnome.org>

	* src/position.c (eval_pos_init*) : handle the optional dependent.

	* src/eval.c (link_expr_dep) : support the adjustment to EvalPos.
	(unlink_expr_dep) : support the adjustment to EvalPos.

	* *.c : directly include gnome-i18n.h, value.h and expr.h
	  where necessary now that they are no longer included.
	* src/func.h : here.

	* src/position.h (EvalPos) : Pass in an optional Dependent.

	* src/expr.h (FunctionEvalInfo) : remove the func_def.  Send in the
	  ExprFunc wrapper instead.  That contains the func-def if desired.

	* src/func.c (function_set_link_handlers) : differentiate signatures
	  for link & unlink.

985 986 987 988 989 990 991 992 993
2002-03-07  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* src/analysis-tools.[ch]: Moved into src/tools.
	src/auto-correct.[ch]: Ditto.
	src/goal-seek.[ch]: Ditto.

	* src/solver.h (SolverResults): Added a few more fields to improve
	reporting.

994 995 996 997 998
2002-03-07  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* workbook.c (workbook_sheet_reorganize) : implement adding of
	  multiple sheets

999 1000 1001 1002
2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/sheet.c (sheet_new) : initialize sheet->index_in_wb
	* src/sheet.h : new field sheet::index_in_wb
1003
	* src/workbook-control-gui.c (wbcg_sheet_add) : replace
1004 1005 1006 1007
	  workbook_sheet_index_get with sheet->index_in_wb
	* src/workbook-view.c (wb_view_sheet_focus) : ditto
	* src/workbook.c (workbook_sheet_index_get) : deleted
	(workbook_sheet_index_update) : new
1008
	(workbook_sheet_attach) : replace workbook_sheet_index_get
1009 1010 1011 1012
	  with sheet->index_in_wb, call workbook_sheet_index_update
	(workbook_sheet_detach) : ditto
	(workbook_sheet_move) : ditto
	(workbook_sheet_reorganize) : ditto
1013

1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027
2002-03-06  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>

	* src/tools: New directory created for tools.

	* src/tools/solver: Moved src/solver-lp.c into here and split it
	into two files: src/tools/solver/solver.c and
	src/tools/solver/reports.c.  A _major_ rewrite.

	* src/tools/solver/lp_solve: Integrated key parts of an LGPLed
	linear programming toolkit called LP Solve 3.2.  (The whole
	package can be found from ftp://ftp.ics.ele.tue.nl/pub/lp_solve).
	Major clean up for making it to look like GNOME code.  LP Solve is
	written by Michel Berkelaar and others.  Thanks for the great
	work!
1028

1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
	* configure.in: Added src/tools/Makefile, src/tools/solver/Makefile,
	and src/tools/solver/lp_solve/Makefile.

	* src/Makefile.am: Added tools subdirectory.

	* src/mathfunc.[ch]: Removed all solver related functions.

	* src/solver.h, src/sheet.c: solver_lp_new renamed as
	solver_param_new.  solver_lp_destroy renamed as
	solver_param_destroy.

	* src/xml-io.c: Solver related changes.

	* samples/solver/production-plan.gnumeric: A Solver sample file.
1043

1044 1045 1046 1047 1048 1049 1050
2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-util.c (gnumeric_error_info_dialog_show) : remove
	  forced placement by mouse
	(gnumeric_set_transient) : remove unused code, set dialog
	  placement to GTK_WIN_POS_CENTER_ON_PARENT

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
1051 1052 1053 1054
2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/eval.c (link_expr_dep) : fix typo

1055 1056 1057 1058 1059 1060 1061 1062
2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (delete_pristine_sheets) : new
	(cmd_reorganize_sheets_undo) : delete new sheets, change calling
	  sequence of workbook_sheet_reorganize
	(cmd_reorganize_sheets_redo) : change calling
	  sequence of workbook_sheet_reorganize
	(cmd_reorganize_sheets_finalize) : clear new_sheets
1063
	(cmd_reorganize_sheets) : handle adding of sheets, streamline
1064
	  selection of cmd descriptor
1065
	* src/workbook-control-gui.c (cb_insert_sheet) : use
1066 1067 1068 1069
	  cmd_reorganize_sheets
	* src/workbook.c (workbook_sheet_reorganize) : handle adding of sheets
	* src/workbook.h (workbook_sheet_reorganize) : add argument

1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086
2002-03-05  Jody Goldberg <jody@gnome.org>

	* src/eval.c (link_single_dep) : flag inter-{sheet,book} references.
	(link_cellrange_dep) : ditto.
	(link_expr_dep) : collect the flags.
	(dependent_link) : and assign them here.
	(dependent_unlink_sheet) : delete and merge into.
	(do_deps_destroy) : here.  And use the new inter-{sheet,book} flags to
	  avoid removing internal links.

	* src/sheet.c (sheet_destroy_contents) : depends are now handled
	  outside this routine add a precondition.

	* src/main.c : delete style_debugging.

	* src/clipboard.c (clipboard_copy_range) : suppress warning.

1087 1088 1089 1090 1091
2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/workbook-control-gui.c (workbook_close_if_user_permits) :
	  use gtk_message_dialog_new/gnumeric_dialog_run

1092 1093 1094 1095 1096
2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/sheet-control-gui.c (scg_comment_display) : put
	  a frame around the pop-up

Morten Welinder's avatar
Morten Welinder committed
1097 1098 1099 1100
2002-03-05  Morten Welinder  <terra@diku.dk>

	* src/expr.c (expr_eval_real): Improve precision of %.

Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
1101 1102
2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

1103
	* src/sheet-control-gui.c (scg_comment_display) : use
Andreas J. Guelzow's avatar
Andreas J. Guelzow committed
1104 1105
	  textview widget

Morten Welinder's avatar
Morten Welinder committed
1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
2002-03-05  Morten Welinder  <terra@diku.dk>

	* src/workbook-edit.c (auto_complete_matches): Plug leak.

	* src/gutils.c (erfgnum, erfcgnum, yngnum): Ground work for later.

	* src/mathfunc.c (gpow10): Fix precision for large negative
	exponents.
	(gpow2): Fix for negative exponents.

1116 1117 1118 1119 1120
2002-03-05  Jody Goldberg <jody@gnome.org>

	* src/eval.c : split add/drop into distinct functions and use
	  link/unlink consistently.

Morten Welinder's avatar
Morten Welinder committed
1121 1122
2002-03-05  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1123 1124
	* src/validation.c (validation_eval): Make int-check saner.
	Fix translated string.
Morten Welinder's avatar
Morten Welinder committed
1125 1126 1127 1128 1129 1130 1131 1132

	* src/analysis-tools.c (fourier_fft_inv, fourier_fft): Improve
	precision.

	* src/mathfunc.h (M_LN2gnum, M_LN10gnum, M_PIgnum, M_PI_2gnum,
	M_LN2gnum, M_LN10gnum, M_SQRT2gnum): Provide high-precision
	constants.

1133 1134 1135 1136 1137 1138 1139 1140 1141 1142
2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/clipboard.c (clipboard_paste_region) : preserve comments
	  when pasting content
	* src/clipboard.h : exclude comments from PASTE_DEFAULT
	* src/sheet-control-gui.c : Add `Add/modify comments' item to
	  cell context menu
	* src/sheet.h : CLEAR_COMMENTS and CLEAR_MERGES should be distinct.
	* src/workbook-control-gui.c : correct spelling

1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157
2002-03-05  Jody Goldberg <jody@gnome.org>

	* src/sheet.c (sheet_cell_remove_from_hash) : only unlink if it is
	  linked.
	(sheet_cell_destroy) : simplify slightly.
	(cb_remove_allcells) : just destroy them, no need to remove from hash.
	(sheet_destroy_contents) : ditto.

	* src/eval.c (UNLINK_DEP) : delete.
	(dependent_unlink) : simplify.
	(dependent_unlink_sheet) : clean up and don't bother to unlink from
	  deps list.

	* src/cell.c : s/CELL_BEING_ITERATED/DEPENDENT_BEING_ITERATED/

1158 1159 1160 1161 1162 1163 1164 1165 1166
2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/clipboard.c (clipboard_copy_range, clipboard_prepend_cell
	  clipboard_prepend_comment) : check existing cells and all
	  comments.
	* sheet-object-cell-comment.c (cell_comment_event) : handle
	  double click by opening dialog (slightly modified patch by
	  Wayne Schuster)

1167 1168 1169 1170
2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/clipboard.h : PASTE_ALL_TYPES should include comments

1171 1172 1173 1174 1175 1176 1177 1178
2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/clipboard.c (paste_cell) : paste comment
	(clipboard_prepend_cell) : store comment info
	(clipboard_copy_range) : check all cells
	* src/clipboard.h : add comment field to CellCopy
	* src/commands.c (cmd_clear_undo) : handle comments
	(cmd_clear_selection) : ditto
1179

1180 1181 1182
2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* commands.h (cmd_set_comment) : new
1183
	* commands.c (cmd_set_comment_apply, set_comment_undo,
1184 1185 1186
	  cmd_set_comment_redo, cmd_set_comment_finalize, cmd_set_comment) :
	  new

1187 1188 1189 1190 1191 1192 1193
2002-03-04  Morten Welinder  <terra@diku.dk>

	* src/mathfunc.c (dexp): Add give_log arg and use R's version.
	All callers changed.

	* src/analysis-tools.c (destroy_data_set_list): Plug leak.

1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212
2002-03-04  Jody Goldberg <jody@gnome.org>

	* src/sheet.c (sheet_cell_insert) : make it clear that this routine
	  does not link the expression or register the dependencies.
	(sheet_cell_remove_from_hash) : document state changes and use
	  dependend_unlink.
	(cb_remove_allcells) : cell_destroy will unlink.
	(cb_collect_cell) : be clear that the results are unlinked.
	(colrow_move) : some docs.
	(sheet_move_range) : simplify now that the collected cells are
	  unlinked rather than just having their depends dropped.

	* src/eval.c (cell_add_dependencies) : delete.
	(cell_drop_dependencies) : delete.

	* src/style.c (style_font_new_simple) : If we can't find a font check
	  a map to see if we know of something similar.
	(get_substitute_font) : moved here from the XL importer.

1213 1214
2002-03-03  Andreas J. Guelzow <aguelzow@taliesin.ca>

1215
	* src/commands.c (cmd_rename_sheet,...) : now a wrapper around
1216 1217 1218 1219 1220
	  cmd_reorganize_sheets.
	(cmd_reorganize_sheets_apply) : moved into workbook.c as
	  workbook_sheet_reorganize
	(cmd_reorganize_sheets,...) : implement sheet renaming
	* src/commands.h : add an argument to cmd_rename_sheet
1221
	* src/workbook-control-gui.c (cb_sheet_label_changed) :
1222 1223 1224 1225 1226
	  change invocation of cmd_rename_sheet
	* src/workbook.c (workbook_sheet_rename) replaced by
	  workbook_sheet_reorganize
	* src/workbook.h: ditto

1227 1228 1229 1230 1231
2002-03-02  Jody Goldberg <jody@gnome.org>

	* src/eval.c (handle_tree_deps) : Use hooks for per dependent
	  link/unlink for each function.

Jody Goldberg's avatar
Jody Goldberg committed
1232 1233
2002-03-02  Jody Goldberg <jody@gnome.org>

Jody Goldberg's avatar
Jody Goldberg committed
1234 1235
	* src/global-gnome-font.c : Use string chunk.

Jody Goldberg's avatar
Jody Goldberg committed
1236
	* src/sheet-object-cell-comment.c :  This is a GObject now.
Jody Goldberg's avatar
Jody Goldberg committed
1237
	(comment_get_points) : fix x offset.
Jody Goldberg's avatar
Jody Goldberg committed
1238

Morten Welinder's avatar
Morten Welinder committed
1239 1240
2002-03-01  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1241 1242
	* src/workbook-control-gui.c: Add dots to "Sort" entry.

Morten Welinder's avatar
Morten Welinder committed
1243 1244 1245 1246 1247
	* src/complex.h (complex_scale_real): New function.

	* src/analysis-tools.c (fourier_fft, fourier_fft_inv): Clean using
	existing complex math routines.

1248 1249 1250 1251
2002-03-01  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/commands.c (cmd_reorganize_sheets_finalize) : fix typo

1252 1253
2002-03-01  Morten Welinder  <terra@diku.dk>

1254 1255 1256
	* src/commands.c (cmd_reorganize_free_names): Remove.
	(cmd_reorganize_sheets_finalize): Simplify.

Morten Welinder's avatar
Morten Welinder committed
1257 1258
	* src/analysis-tools.c (regression_tool): Fix P values.

1259 1260 1261
	* src/regression.c (general_linear_regression): Fix ->var in the
	trivial n==xdim case.

1262 1263 1264 1265 1266
2002-02-29  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* commands.h (cmd_reorganize_sheets) : new
	* commands.c : implement cmd_reorganize_sheets

1267 1268 1269 1270 1271
2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/workbook-control-gui.c (wbcg_validation_msg) : delete
	  dialog and fix sense of test

1272 1273 1274 1275
2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-util.[hc] (entry_to_float_with_format_default) : new

Morten Welinder's avatar
.  
Morten Welinder committed
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288
2002-02-28  Morten Welinder  <terra@diku.dk>

	* src/regression.c (linear_solve): Move rescaling from here...
	(LUPDecomp): ...to here so we save a copy.
	(general_linear_regression): Allocate the permutation matrix with
	the proper size.  (The old size was too big, so no-one really got
	hurt.)

	* src/rangefunc.c (range_minabs, range_maxabs): New functions.

	* src/regression.c (rescale): Don't include "b" in determining the
	scale.  Use range_maxabs.

1289 1290 1291 1292 1293 1294 1295 1296 1297
2002-02-28  Morten Welinder  <terra@diku.dk>

	* src/regression.c (general_linear_regression): If the inverse has
	negative elements in the diagonal, assume near singularity.
	(linear_solve): Rescale matrix and target.  Rip out the error
	correction attempt.
	(rescale): New function.
	(LUPDecomp, backsolve): Remove col/row confusion.

1298 1299 1300 1301 1302
2002-02-28  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (workbook_control_gui_init) : fix
	  reordering of ins col/row in non-bonobo case.

1303 1304
2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>

1305 1306 1307
	* src/workbook-control-gui.c (delete_sheet_if_possible) :
	  use gnumeric_dialog_question_yes_no

1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319
2002-02-28  Jody Goldberg <jody@gnome.org>

	* src/expr-name.c (expr_name_set_expr) : always relink.

	* src/eval.c (handle_tree_deps) : ignore inactive names.

2002-02-27  Jody Goldberg <jody@gnome.org>

	* src/global-gnome-font.c (global_gnome_font_init) : fix leak.

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

1320 1321 1322
2002-02-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/gui-util.h (entry_to_float_with_format) : new
1323
	* src/gui-util.c (entry_to_float_with_format) : add format to
1324 1325
	  entry_to_float
	(entry_to_float) : wrapper around entry_to_float_with_format
1326

1327 1328 1329 1330 1331 1332
2002-02-27  Morten Welinder  <terra@diku.dk>

	* src/analysis-tools.c: Use new lower-tail flag for R's q*
 	routines.
	(new_data_set): Plug leak.

1333 1334 1335 1336 1337
2002-02-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/value.c (value_get_as_string) : case VALUE_CELLRANGE can be
	  for absolute and A1-rel references. Use global_range_name.

1338 1339
2002-02-27  Morten Welinder  <terra@diku.dk>

1340 1341 1342
	* src/analysis-tools.c (ztest_tool): Fix problem from R upgrade.
	(regression_tool): Simplify.

1343 1344 1345 1346 1347 1348
	* src/regression.c (linear_solve): Attempt error correction in the
 	near-singular case.
	(linear_regression, exponential_regression): Change return type to
 	an enum.  All callers changed.
	(LUPDecomp): Attempt to detect near-singularity.

1349 1350
2002-02-26  Morten Welinder  <terra@diku.dk>

1351 1352 1353
	* src/regression.c (linear_regression, exponential_regression):
	Add safety check.

1354 1355 1356 1357
	* plugins/*/*.xml.in: just use the .la file for module_file.

	* plugins/*/Makefile.am: don't hack the .xml file any more.

1358 1359 1360 1361
	* src/mathfunc.c: Make various helper functions static.

	* src/format-template.h: prototype the template member functions.

1362
2002-02-26  Jody Goldberg <jody@gnome.org>
1363

1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383
	* src/xml-io.c (xml_read_cell) : xmlNodeGetContent always returns a
	  value now.  That simplifies comments and complicates content.
	(xml_cellregion_read) : ditto.

2002-02-25  Jody Goldberg <jody@gnome.org>

	* src/workbook-control-gui.c (wbcg_progress_message_set) : port to
	  gnome2.

	* src/print-cell.c (print_show_iso8859_1) : delete.

	* src/gui-file.c (gui_file_open) : someportability tweaks.

	* icons/Makefile.am : move the icons here.

	* src/history.c (history_menu_item_create) : constness.
	* src/formats.c (currency_date_format_init) : constness.
	* src/solver.h : some constness.
	* src/workbook-control-gui.c (cb_select_auto_expr) : constness.
	(workbook_control_gui_init) : some fixes for the bonobo build.
1384

1385 1386
2002-02-25  Morten Welinder  <terra@diku.dk>

1387 1388
	* src/format-template.h: prototype the template member functions.

1389 1390 1391
	* src/mathfunc.c: Switch to R-1.4.0 sources.  Deal with signature
	changes everywhere.

1392 1393 1394 1395 1396
2002-02-25  Morten Welinder  <terra@diku.dk>

	* configure.in: Test if we must prototype strtold.  Test for
	log1pl.

1397 1398 1399
2002-02-25  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/sheet-object-widget.c (cb_scrollbar_set_focus) : remove code
1400
	  now held in wbcg_edit_attach_guru
1401 1402 1403
	(cb_checkbox_set_focus) : ditto
	(sheet_widget_scrollbar_user_config) : rearrange signal callbacks
	(sheet_widget_checkbox_user_config) : ditto
1404

1405 1406 1407 1408 1409 1410
2002-02-25  Morten Welinder  <terra@diku.dk>

	* src/xml-io.c (xml_cellregion_write) : specify the encoding, and
	  enable formatting.
	(gnumeric_xml_write_workbook) : ditto.

Morten Welinder's avatar
Morten Welinder committed
1411 1412
2002-02-25  Morten Welinder  <terra@diku.dk>

1413 1414 1415 1416 1417 1418 1419
	* src/mathfunc.c (random_01): Reduce the number of system calls
	and get more precision for the general gnum_float case.

	* src/mathfunc.c (random_*): use gnum_float, not double.  (Since
	many underlying functions are still double-based, not all these
	will have precision beyond double.)

Morten Welinder's avatar
Morten Welinder committed
1420 1421 1422 1423 1424
	* src/solver-lp.c: Constify.  Plug a few leaks.

	* src/sheet.h (struct _Sheet): Make solver_parameters a pointer.
	Deal with this everywhere.

1425 1426 1427 1428 1429 1430 1431
2002-02-25  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* src/analysis-tools.h : delete tool_set_focus
	* src/workbook-edit.c (guru_set_focus) : new, formerly tool_set_focus
	  in src/dialogs/dialog-analysis-tools.c
	(wbcg_edit_attach_guru) : attach guru_set_focus to set_focus widget

1432 1433 1434 1435 1436 1437
2002-02-25  Morten Welinder  <terra@diku.dk>

	* configure.in (atan2l, sinhl, coshl, tanhl, asinhl, acoshl,
	atanhl, erfl, erfcl, ynl, isnanl, finitel, hypotl): Add checks for these.
	* src/numbers.h: supply right version of above.  Use everywhere.

Jon K Hellan's avatar
Jon K Hellan committed
1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451
2002-02-25  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-image.h: Declare typedef ObjectImage.

	* src/sheet-object-image.c (struct _SheetObjectImage): Add
	cropping parameters.
	(sheet_object_image_new): Initialize cropping parameters.
	(sheet_object_image_set_crop): New function. Set cropping
	parameters.
	(soi_get_cropped_pixbuf): New function. Get the cropped image from
	pixbuf.
	(soi_get_pixbuf): Do cropping by calling soi_get_cropped_pixbuf.
	(sheet_object_image_init): Initialize cropping parameters.

1452 1453 1454 1455 1456 1457 1458 1459
2002-02-24  Almer S. Tigelaar  <almer@gnome.org>

	http://bugzilla.gnome.org/show_bug.cgi?id=72416
	http://bugzilla.gnome.org/show_bug.cgi?id=71783
	* src/stf-export.c (stf_export_cell):
	Honor the 'never' quote setting and fix a subtle
	bug that caused the quoting character always be	"

1460 1461 1462 1463 1464 1465 1466 1467
2002-02-22  Morten Welinder  <terra@diku.dk>

	* src/numbers.h (floorgnum, ceilgnum, powgnum, expgnum, loggnum,
	log10gnum, singnum, cosgnum, tangnum, asingnum, acosgnum,
	atangnum): Supply these.  Use everywhere.

	* configure.in: Check for the above.

Morten Welinder's avatar
Morten Welinder committed
1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478
2002-02-22  Morten Welinder  <terra@diku.dk>

	* configure.in: Check for ldexpl and frexpl.

	* src/mathfunc.c (gpow2): New function.
	(gnumeric_add_epsilon, gnumeric_sub_epsilon, gnumeric_fake_floor,
	gnumeric_fake_ceil, gnumeric_fake_round, gnumeric_fake_trunc):
	Make these gnum_float typed.

	* src/numbers.h (frexpgnum, ldexpgnum): New stuff.

Morten Welinder's avatar
Morten Welinder committed
1479 1480
2002-02-21  Morten Welinder  <terra@diku.dk>

1481 1482 1483
	* src/numbers.h: Define prototypes for strtognum, modfgnum, and
	gnumabs here when needed.