ChangeLog-2000-02-23 209 KB
Newer Older
Morten Welinder's avatar
Morten Welinder committed
1 2 3 4 5 6
2000-01-05  Morten Welinder  <terra@diku.dk>

	* src/parser.y (register_allocation, unregister_allocation):
 	Ignore NULLs.

2000-01-04  Morten Welinder  <terra@diku.dk>
7 8 9 10 11 12 13

	* parser.y: revamp the allocation and deallocation system.

	* src/cell.c (cell_set_formula): Plug leak.

	* src/solver-lp.c (solver_simplex): j not used.

Jody Goldberg's avatar
Jody Goldberg committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
2000-01-04  Jody Goldberg <jgoldberg@home.com>

	* src/commands.[ch] : New files.

	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Take
	  strings to use as suffixes to undo and redo.  NULL indicates
	  disabled.

	* src/sheet.c (sheet_set_current_value) : Use cmd_set_text to register
	  undo.

	* src/workbook.c (workbook_menu_view) : Make The formula toggle a
	  toggle item.
	(workbook_menu_insert) : Move the insert object menu item here,
	  and adjust the selector characters to make more sense.
	(undo_cmd, redo_cmd) : Enable.

	(workbook_init) : Init the undo/redo lists.
	(workbook_do_destroy) : Clear the undo/redo lists.
	(wb_input_finished) : Delete.  It was the same as accept_input.

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
2000-01-03  Miguel de Icaza  <miguel@gnu.org>

	* src/cell.c (cell_render_value): Do not check for cell->sheet and
	cell->sheet->workbook, these must be true.

2000-01-02  Martin Sheppard  <martin.sheppard@iname.com>

	* src/workbook.h (struct _Workbook): add option to display text of
	formulas instead of their value

	* src/workbook.c (workbook_menu_edit): add menu oiption for toggling
	the display of formulas
	(toggle_formuals_cmd,cb_cell_rerender): new function to toggle the 
	display of formulas
	(workbook_new): initialize the display formulas option

	* src/cell.c (cell_render_value): implemented displaying formulas
	
53 54 55 56 57 58 59
2000-01-02  Martin Sheppard <martin.sheppard@iname.com>

	* src/parser.{c,y} (yylex) : fixed so that while parsing a formula,
	a quoted function is convered to a string token rather than a 
	function call token. i.e. so that things like "sin" work properly in 
	formulas.
	
60 61 62 63 64 65 66 67 68 69 70 71 72
2000-01-03  Martin Sheppard <martin.sheppard@iname.com>

	* src/expr.c (strescape) : new function to escape strings
	(do_expr_decode_tree) : fixed so strings are escaped properly
	
2000-01-03  Miguel de Icaza  <miguel@gnu.org>

	* src/gnumeric-sheet.c (move_cursor): Fixed the annoying flashing
	of the cursor/selection problem by reverting to the old code setup.

	I also eliminated some animation of the cursor while doing this.


73 74 75 76 77 78
2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/func.c (function_remove, function_is_unused): implement.

	* src/symbol.c (symbol_is_unused, symbol_remove): implement.

79 80 81 82 83
2000-01-03  Gregory McLean <gregm@gnu.org>

	* gnumeric.spec.in: Synced with my spec tree. This is in sync with
	0.47 and includes all the bits.

84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
2000-01-03  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : paste_special is only disabled for
	  cut not for standard actions.

	* src/value-sheet.c (value_is_error) : New routine to look up errors.
	(gnumeric_error_init) : New routine.
	(constants_init) : Used here.

	* src/parser.y (yylex) : If a string begins with '#' it may be an
	  explicit error string.

	* src/xml-io.c (xml_write_style_border) : Write BORDER_NONE's too,
	  this makes it possible to save and restore the NONEs that erase borders.

Michael Meeks's avatar
Michael Meeks committed
99 100 101 102
2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/about.c (dialog_about): Add Ariel.

103 104 105 106 107 108 109 110
2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/func.c (function_marshal_arg): Split from
	(function_call_with_list): to make it sweeter.

	* src/sheet.c (sheet_get_extent): clip range to the max_used boundary,
	naff but gets round print problems for now.

111 112 113
2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/clipboard.c (x_selection_to_cell_region): the last element
114
	of a paste was being dropped and the region was being miss-computed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131

2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook-view.c (workbook_view_set_paste_special_state):
	Renamed this function to suit better its new purpose: only manage
	the paste special item, as paste can pull the information from the
	X clipboard.

	* src/parser.y (release_const_tree): New routine used to release
	exprtrees that we discard during parsing.

	array_expressions: The various NUMBERS used in this rule are
	never actually linked into the ExprTree, we are only interested in
	them to pull a couple of integers from it.  We now release them
	after we construct the formula.  This fixes the leaks reported by
	Morten. 

Jody Goldberg's avatar
Jody Goldberg committed
132 133 134 135 136
2000-01-02  Jody Goldberg <jgoldberg@home.com>

	* src/application.h : Add application_clipboard_unant now that
	  it is used elsewhere.

Michael Meeks's avatar
Michael Meeks committed
137 138 139 140 141 142
2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.h (Sheet): Make generation guint8.

	* src/workbook.h (Workbook): ditto.

143 144
2000-01-01  Miguel de Icaza  <miguel@gnu.org>

145 146 147
	* src/xml-io.c (xml_read_cell): Set the cell value to empty
	instead of an empty string.

148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
	* src/cell.c (cell_set_text): Add warning if cell_set_text is
	invoked with the empty string.

	* src/workbook.c (workbook_edit_comment): Set the cell value to
	VALUE_EMPTY instead of setting it to "".

	* src/sheet.c (cellref_a1_get): Chek the range

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

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Use
	application_clipboar_unant here. 
	(gnumeric_sheet_key_mode_object): ditto.
	
	* src/sheet.c (sheet_start_editing_at_cursor): ditto.

	* src/workbook-format-toolbar.c (change_selection_font): ditto
	(set_selection_halign): ditto

	* src/application.c (application_clipboard_copy): Use defines.
	(application_clipboard_cut): Use defines.
	(application_clipboard_unant): New function, less agressive
	marking of unanting.

	* src/workbook-view.c (workbook_view_set_paste_state): Use
	named defines instead of arbitrary constants.  Please, no magic
	constants ever in Gnumeric guys.

	* src/application.c: 

	* src/workbook-private.h: Move the menu_item fields to
	workbook_private. 

Jody Goldberg's avatar
Jody Goldberg committed
181 182 183 184 185
2000-01-01  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Make static again.
	* src/eval.c (workbook_next_generation) : Make static.

Jody Goldberg's avatar
Jody Goldberg committed
186 187 188 189
1999-12-31  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_import) : Support new plugin interface.

190 191
1999-12-31  Miguel de Icaza  <miguel@gnu.org>

192 193 194 195 196
	* src/corba-workbook.c (workbook_corba_setup): Create the corba
	context here.
	(workbook_corba_shutdown): Destroy it here.
	(command_context_corba): Return it here.

197 198 199 200 201 202
	* src/corba-sheet.c: Use properly the command_context_corba,
	passing a workbook argument in all functions.

	* src/command-context-corba.c, src/command-context-corba.h:
	Implement CORBA versions of the CommandContext.

203 204 205 206 207 208 209 210
1999-12-30  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_command_context_gui) : minor warning
	  supression and adjustment of the comment to explain why we may
	  be called with a NULL workbook.  That occurs when an operation
	  occurs BEFORE a gui is available but we will be creating a gui
	  and want graphical error messages.

Ariel Rios's avatar
Ariel Rios committed
211 212 213 214
1999-12-30  Ariel Rios <jarios@usa.net>

	* doc/Makefile.am: Added guile-gnumeric.txt to dist files.

215 216
1999-12-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>

217 218 219
	* src/utils.c (parse_cell_name_list): Cell ranges are now also
 	accepted.

220 221 222 223 224 225 226 227 228
	* src/solver-lp.c: Implemented Simplex algorithm.  It can
 	currently solve LP maximization problems of positive variables
 	having `<=' constraints.

	* src/workbook.c: Added `Solver' tool.

	* src/utils.c (parse_cell_name_list): Bug fix.  The last item on
 	the list was not included on the list.
	
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
1999-12-30  Miguel de Icaza  <miguel@gnu.org>

	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE): New macro, copied
	from Evolution.  We need to refactor our code in Gnumeric to use
	this macro.

	* src/workbook.c (workbook_do_destroy): Destroy the per-workbook
	context here.  Hardcoded to be a GUI context for now.
	(workbook_new): Create the context here.
	(workbook_command_context_gui): This routine is now the one that
	returns the command context.

	* src/gnumeric.h: Added CommandCOntext typedef here.

	* All files: renamed CmdContext to CommandContext.
	renamed command_context_gui to workbook_command_context_gui.

	* src/workbook-view.c: Removed the GUI_CmdContext class setup.
	* src/command-context.c: Replaced the ad-hoc object system with a
	GtkObject-based system.

250 251 252 253 254 255 256 257 258 259 260 261
1999-12-30  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_load_from) : The 'open' functions return error
	  strings now.  Success == NULL, standard error == "", custom error
	  which needs to be freed is everything else.
	(workbook_try_read) : An optional argument in which to store error
	  messages returned by the loaders.
	(file_error_message) : Support the custom error messages.
	(workbook_read) : Ditto.

	* src/xml-io.c (xml_workbook_read) : Return simple error strings.

262 263 264 265
1999-12-29  Ariel Rios  <jarios@usa.net>

	* doc/guile-gnumeric.txt: Documentation for the guile plugin was added.

266 267
1999-12-29  Jody Goldberg <jgoldberg@home.com>

268 269
	* src/main.c : Include print-info.h to suppess some warnings.

270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
	* src/workbook-view.c (command_context_gui,
				gui_splits_array,
				gui_plugin_problem,
				command_context_gui_cast) : New functions.

	* src/workbook.c (workbook_new) : Switch to using the workbook_view
	  routines to manipulate the undo/redo and paste/paste_special menu
	  items.

	* src/func.c (function_iterate_argument_values) : Return an error
	  for empty/missing arguments.

	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.

	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
	  Call plugin_version_mismatch to do some minimal version matching for
	  plugins and the running application.
287 288
	  Return an enum to clearly differentiate between error reporting
	    reqs.
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307

	* src/Gnumeric.idl : Add PluginProblem.

	* src/command-context.[ch] (gnumeric_error_splits_array,
				    gnumeric_error_plugin_problem,
				    command_context_vtbl_init) : New functions.

	* src/plugin.c (plugin_version_mismatch) : New function.
	  (plugin_load) : Hard code a GUI context for now.
	                  Switch to using gnumeric_error_ routines.
			  Pass a CmdContext to the init_plugin routines.
			  Only produce an error if the plugin returns -1.
			  Store the plugin filename.
	  (plugin_unload) : Free the filename on exit.

	* *.c : command_context_gui now takes a Workbook argument.
	      : Switch from gnumeric_no_modify_array_notice
	                 to gnumeric_error_splits_array in most places.

308 309 310 311 312 313 314 315 316 317 318
1999-12-28  Peter Moulder <reiter@netspace.net.au>

	* src/number-match.c: Currently, two-digit years are converted to
	four-digit years (ccyy) by assuming that cc is the same as in the
	current wall date.  The problem with that is that on 1999-12-31,
	entering any future dates in two-digit-year form will be
	misinterpreted; while on 2000-01-01, any past dates entered in
	two-digit form will be misinterpreted.  (I use the term
	"misinterpreted" with the assumption that one is much more likely
	to intend a date a few days away than 99 years away.)

319 320
1999-12-27  Jody Goldberg <jgoldberg@home.com>

321 322 323 324 325 326 327 328 329 330 331 332 333
	* configure.in : Re-enable the python plugin by default.

	* src/plugin.c (load_all_plugins) : Search in a version specific
	  directory.

	* plugins/*/Makefile.am : Install in 
	      <prefix>/lib/gnumeric/plugins/${VERSION}
	  to decrease the number of silly version problems.
	  Adjust the plugin names to follow the convention
	      libgnum_<name>.so
	  to avoid problems like the python plugin 'libpython.so'
	  depending on the python libraries with the same name.
	
334 335
	* src/cell.c (cell_get_formatted_val) : Make public.

336 337 338 339 340 341 342 343 344 345
1999-12-23  JP Rosevear  <jpr@arcavia.com>

	* src/plugin-manager.c (plugin_manager_new): Use a gnome_dialog and 
	stock icons
	(row_cb): Use gnome_dialog_set_sensitive instead of 
	gtk_widget_set_sensitive

	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis): Use 
	stock ok item for ok button

346 347 348 349 350 351 352 353
1999-12-22  JP Rosevear  <jpr@arcavia.com>

	* src/ranges.c (range_intersection): change interface to take a range
	pointer for the  result and return a boolean dictating whether or not 
	the ranges actually intersect

	* src/ranges.h : update for new range_intersection interface

JP Rosevear's avatar
JP Rosevear committed
354 355 356 357
1999-12-22  JP Rosevear  <jpr@arcavia.com>

	* src/ranges.c (range_intersection): Clean to meet coding specs.

358 359 360 361 362 363 364 365 366
1999-12-21  JP Rosevear <jpr@arcavia.com>

	* src/ranges.c (range_intersection) : Tidy and handle the case
	where the ranges don't intersect.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Use
	sheet_get_extent only if there are infinite ranges, so the user
	sees their manually selected range if possible.

Jody Goldberg's avatar
Jody Goldberg committed
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
1999-12-21  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (expr_implicit_intersection) : New routine split from
	  function_call_with_list.
	(compare) : Handle intersection.
	(eval_expr_real) : Ditto.  Add verbose comment on a possible heuristic
	  for the final piece of this ugly evaluation mechanism, array
	  interation.
	(cell_ref_get_abs_col_row) : Adjust to take a CellPos.

	* src/func.c (function_iterate_do_value) : Split the implicit
	  intersection out into a new function.  Use intersection for
	  strings as well as float & bool args.  Correct memory leak
	  when intersetion was used.
	(function_call_with_list) : Ditto.

	* *.c : Adjust to change in EvalPosition to use CellPos.

	* gnumeric.spec.in : Update the libglade dependancy.

	* src/workbook.c (wb_edit_key_pressed) : Do not select the current
	  cell address and do not move the cursor to the start of the cell
	  address when F4 is hit.

391 392
1999-12-20  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
393 394
	* src/parser.y : Clean up for byacc.

395 396 397 398 399 400 401 402
	* src/workbook.c (file_open_cmd) : Handle failed opens.
	(file_import_cmd) : Handle failed imports.

	* src/item-bar.c (item_bar_start_resize) : Add resize marker on the
	  other side of the row/col being resized.
	(item_bar_init) : Init the marker to NULL.
	(item_bar_end_resize) : Clear the marker.

Jody Goldberg's avatar
Jody Goldberg committed
403 404 405 406 407 408 409 410 411 412 413 414
1999-12-19  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_cut) : Fix Typo.

	* src/item-bar.c (item_bar_start_resize) : Don't bother setting the
	  location of the line here.  Instead we set the correctly zoomed
	  bounds of the static-dimension.
	(item_bar_end_resize) : Clear the saved points.
	(item_bar_init) : Init the guide and points to NULL;
	(item_bar_event) : No need to call canvas to world.  We zoom manually.
	(item_bar_get_line_points) : Delete.

415 416 417 418 419 420 421 422 423 424
1999-12-19  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.h (range_overlap): macroify.

	* src/ranges.c (range_overlap): comment out.

	* src/eval.c (cell_queue_recalc): inline
	(cell_queue_deps_recalc): implement.
	(cell_queue_deps_for_recalc): implement.

425 426 427 428 429
1999-12-19  Michael Meeks  <mmeeks@gnu.org>

	* configure.in: bump version to 0.46.

	* src/dialogs/dialog-printer-setup.c (fill_hf): use print_hf_same,
Jody Goldberg's avatar
Jody Goldberg committed
430
	  since pointer comparison duff; since item is copied.
431 432 433 434 435 436 437

	* src/print-info.c (print_hf_same): implement.
	(print_hf_register): update to use it.

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

	* src/dialogs/dialog-printer-setup.c (do_setup_hf): Grab the
Jody Goldberg's avatar
Jody Goldberg committed
438
	  header & footer pointer from the sheet's print info if available.
439 440 441
	(do_setup_hf_menus): only setup the dialog if non-null.

	* src/print-info.c (print_info_new): kill load_formats.
Jody Goldberg's avatar
Jody Goldberg committed
442 443
	  init hf_formats.
	(print_init, print_shutdown): implement.
444 445 446 447 448 449 450 451 452

	* src/main.c (gnumeric_main): add print_init / shutdown.

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

	* src/sheet.c (sheet_new): setup pristine.
	(sheet_mark_clean, sheet_set_dirty, sheet_is_pristine): improve,
	thanks to Morten.

453 454
1999-12-18  Morten Welinder  <terra@diku.dk>

455 456 457 458 459 460 461 462 463 464 465 466 467 468
	* src/xml-io.c (xml_read_print_info): Plug leaks.
	(xml_value_get): Return a g_malloc'ed string.  All callers
 	changed.
	(xml_get_print_unit): Plug leak.
	(xml_get_color_value): Plug leak.
	(xml_read_sheet_object): Plug leak, I think.
	(xml_set_value): Plug leak.
	(xml_set_value_string): Plug leak.
	(xml_set_value_int): Plug leak.
	(xml_set_value_double): Plug leak.
	(xml_set_color_value): Plug leak.
	(xml_set_gnome_canvas_points): free/g_free mixup.
	(xml_workbook_write): Plug leak.

469 470 471 472 473 474
	* src/item-bar.c (item_bar_destroy): Unref fonts.  (Found by
 	Miguel.)

	* src/style.c (style_shutdown): Add code to warn of font ref leaks
 	on exit.

Michael Meeks's avatar
clean.  
Michael Meeks committed
475 476 477 478 479 480 481 482 483 484 485 486
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/corba-sheet.c (command_context_corba): clean.

	* src/sheet-style.c (sheet_style_get_extent): implement.

	* src/sheet.c (sheet_get_extent): Add union with style extent,
	fix silly typo.

	* src/ranges.c (range_is_infinite): Add new function.
	(range_union): implement.

Morten Welinder's avatar
Morten Welinder committed
487 488 489 490 491 492 493
1999-12-18  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_yieldmat,
 	gnumeric_yielddisc, gnumeric_oddlyield, gnumeric_oddfyield,
 	gnumeric_oddfprice, gnumeric_oddlprice, gnumeric_yield,
 	gnumeric_price): New skeleton function.

494 495 496 497 498
1999-12-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : Supress printing a '-' if the format
	  includes a manual '-' even if the negative is preceded by a \

499 500 501 502 503
1999-12-18  Kjartan Maraas  <kmaraas@online.no>

	* src/dialogs/print.glade.h: Added xgettext:no-c-format in
	comment to please msgfmt.
	
Morten Welinder's avatar
Morten Welinder committed
504 505 506 507 508
1999-12-18  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_tbilleq,
 	gnumeric_tbillyield): check params better.

509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/about.c (dialog_about): add Jon.

1999-12-17  Jon K Hellan  <hellan@acm.org>
 
	* src/sheet.c (sheet_get_default_external_col_width): New
 	function.  Get default column width in units, including margins.
 	(sheet_get_default_external_row_height): New function. Get default
 	row height in units, including margins.
 	(sheet_col_get_external_width): New function. Get column width in
 	units, including margins.
 	(sheet_row_get_external_height): New function. Get row height in
	units, including margins.

 	* src/sheet.h: Declare new functions in sheet.c
 
Michael Meeks's avatar
Michael Meeks committed
526 527 528 529
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): add command context.

530 531 532 533 534 535 536 537 538 539
1999-12-17  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): don't corrupt
	first selection range. Use selection_is_simple. Replace quad int's with
	cleaner range implementation.

1999-12-17  Ettore Perazzoli  <ettore@gnu.org>

	* src/pixmaps/cursor_cross.xpm: Fix drop shadow.

540 541 542 543 544 545 546 547 548 549 550
1999-12-18  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_check_for_partial_array) : Rename from
	  range_check_for_partial_array and make public.

	* src/selection.c (sheet_selection_cut) : Disable cutting part of an
	  array.

	* src/expr.c (eval_expr_real) : Wrap out of bound aarray lookups when
	  the src is 1 element wide or tall.

551 552 553 554 555 556 557 558
1999-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Publicize.

	* src/sheet.c (clear_cell_content) : Delete.
	(sheet_clear_region_content) : Use sheet_clear_region but leave the
	  styles in place.

Morten Welinder's avatar
Morten Welinder committed
559 560 561 562 563 564 565 566 567 568 569 570 571
1999-12-17  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-stat.c: White-space mania.

1999-12-16  Andrew Chatham  <andrew.chatham@duke.edu>

	* src/regression.h: Better comments for parts of extra_stat
	* src/regression.c (linear_solve): Fixed adjusted R^2 bug (hopefully).
	* src/functions/fn-stat.c (gnumeric_linest, gnumeric_logest) Added
	beginning support for 3+ dimensional regressions in linest and logest.
	* src/analysis-tools.c (regression_tool) Documented Excel bugs with 
	no-intercept regressions that I didn't/can't mimic.

Morten Welinder's avatar
Morten Welinder committed
572 573 574 575
1999-12-16  Morten Welinder  <terra@diku.dk>

	* src/func.c (tokenized_help_destroy): Plug leak.

576 577 578 579
1999-12-16  Michael Meeks  <mmeeks@gnu.org>

	* src/corba-sheet.c (Sheet_range_set_alignment): add orientation.

Michael Meeks's avatar
Michael Meeks committed
580 581 582 583 584
1999-12-16  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent_cb): Fix biggest leak ever seen,
	use cell_is_blank.

585 586 587 588 589 590 591
1999-12-14  Cort Dougan  <cort@ppc.kernel.org>

	* src/corba-sheet.c (Sheet_range_set_font, Sheet_range_set_foreground),
	(Sheet_range_set_pattern, Sheet_range_set_background, Sheet_range_set_alignment):
	implement.
	(Sheet_corba_class_init): fill epv.

592 593
1999-12-14  Joe Sakosky <josak@ibm.net>

594
	* src/file.c: privatized fileopener filesaver.
595 596 597

	* src/file.h:  ditto
	
598 599 600 601 602
1999-12-15  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_bonobo_setup): kill goadid.
	(workbook_new): kill brainless bug.

603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678
1999-12-15  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.h : Move many of the typedefs here.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Tweak some
	  const issues and minor logic problems at the boundaries.

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

	* src/workbook-view.c (command_context_gui) : New function.

	* src/main.c (gnumeric_main) : Add a 'quit' flag for use in testing.
	  It causes the app to exit immediately after loading all the selected
	  books.

	* src/file.c (workbook_import) : Bug 3977.

	* src/corba-sheet.c (command_context_corba) : New function
	  temporarily located here.
	(Sheet_selection_copy) : Pass a CommandContext.
	(Sheet_selection_cut) : Ditto
	(Sheet_selection_paste) : Ditto
	(Sheet_clear_region) : Ditto
	(Sheet_clear_region_content) : Ditto
	(Sheet_insert_col) : Ditto
	(Sheet_delete_col) : Ditto
	(Sheet_insert_row) : Ditto
	(Sheet_delete_row) : Ditto
	(Sheet_shift_rows) : Ditto
	(Sheet_shift_cols) : Ditto

	* src/item-cursor.c (item_cursor_do_action) : Ditto.

	* src/item-grid.c (context_cut_cmd) : Ditto.
	(context_cut_cmd) : Ditto.
	(context_copy_cmd) : Ditto.
	(context_paste_cmd) : Ditto.
	(context_paste_special_cmd) : Ditto.
	(context_clear_cmd) : Ditto.

	* src/clipboard.[ch] (do_clipboard_paste_cell_region) : Take a
	  CommandContext.
	(sheet_paste_selection) : Ditto.
	(clipboard_paste_region) : Ditto.

	* src/selection.c (segments_intersect) : Return additional state 5
	  to designate equality.
	(selection_apply) : Use the equality state to simplify state selection.
	(selection_is_simple) : Use a command context.
	(sheet_selection_copy) : Ditto.
	(sheet_selection_cut) : Ditto.
	(sheet_selection_paste) : Ditto.
	(sheet_selection_clear) : Ditto.
	(sheet_selection_clear_content) : Ditto.
	(sheet_selection_clear_comments) : Ditto.
	(sheet_selection_clear_formats) : Ditto.

	* src/workbook.c (copy_cmd) : Ditto.
	(cut_cmd) : Ditto.
	(paste_cmd) : Ditto.
	(paste_special_cmd) : Ditto.
	(insert_cols_cmd) : Ditto.
	(insert_rows_cmd) : Ditto.
	(clear_all_cmd) : Ditto.
	(clear_formats_cmd) : Ditto.
	(clear_comments_cmd) : Ditto.
	(clear_content_cmd) : Ditto.

	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
	  Ditto.
	(dialog_delete_cells) : Ditto.

	* src/dialogs/dialog-insert-cells.c (dialog_insert_cells_impl) :
	  Ditto.
	(dialog_insert_cells) : Ditto.

679 680 681 682 683
1999-12-13  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_style_optimize): add check for
	valid range.

684 685 686 687 688 689
1999-12-15  Morten Welinder  <terra@diku.dk>

	* configure.in (WITH_PYTHON): Disable python until someone fixes it.
	(Remove config.cache and the installed python plugin, or else you
	will not see the effect of this.)

690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
1999-12-14  Morten Welinder  <terra@diku.dk>

	* src/dialogs/dialog-analysis-tools.c (dialog_regression_tool):
 	Mark strings for translation.

	* src/regression.c (ALLOC_MATRIX, FREE_MATRIX): New macros.
	(linear_solve): Use them.
	(general_linear_regression): Ditto.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Unconst.

1999-12-14  Andrew Chatham <andrew.chatham@duke.edu>

	* src/regression.c (general_linear_regression): Now uses LUP 
	decomposition and provides more statistics
	* src/analysis-tools.c (regression_tool) 
	* src/dialogs/tools.h
	* src/dialogs/dialog-analysis-tools.c (dialog_regression_tool): 
	Regression tool works with multidimensional data, outputs more
	statistics.

711 712 713 714 715 716 717 718 719 720
1999-12-13  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): use
	sheet_get_extent if the range is infinite
	* src/sheet.c (sheet_get_extent): redo to get the Range by
	iterating over the sheet cell_hash; as a side effect printing now
	doesn't print blank areas
	(sheet_get_extent_cb): call back function to iterate over cell
	hash

Morten Welinder's avatar
Leaks.  
Morten Welinder committed
721 722 723 724 725
1999-12-13  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-stat.c (gnumeric_logest): Plug leaks.
	(gnumeric_linest): Plug leaks.

726 727 728 729 730
1999-12-12  Tuomas Kuosmanen  <tigert@gimp.org>

	* src/pixmaps/bucket.xpm 
	* src/pixmaps/font.xpm: New icons that are both the same size..

Michael Meeks's avatar
Michael Meeks committed
731 732 733 734 735
1999-12-11  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): nail ref leak of
	glade_xml object. (dialog_cell_sort): ditto.

736 737 738 739
1999-12-10  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_clip): kill. (range_intersection): implement.

Michael Meeks's avatar
Michael Meeks committed
740 741 742 743
1999-12-10  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_hash): initialise hash!

744 745 746 747 748
1999-12-10  Andrew Chatham  <andrew.chatham@duke.edu>

	* src/regression.c (general_linear_regression): Handle the 3+
 	dimensional case.

749 750 751 752 753 754 755 756 757 758
1999-12-10  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-lookup.c (gnumeric_indirect) : This solution is
	  more paletable.  Always attempt to add the dependency, but only
	  actually do so if the calling cell does not already depend on the
	  indirected cell.

	* src/eval.c (cell_add_explicit_dependency) : Expand this function to
	  test to see if a dependency already exists.

759 760 761 762 763
1999-12-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Added EURO function for
 	currency conversions.

Jody Goldberg's avatar
Jody Goldberg committed
764 765 766 767 768 769 770 771 772 773 774
1999-12-09  Jody Goldberg <jgoldberg@home.com>

	* src/eval.[ch] (cell_add_explicit_dependency) : New function.

	* src/functions/fn-lookup.c (gnumeric_indirect) : Clear all
	  dependencies the calling cell has and regenerate them anytime the
	  function is called.  This is somewhat wasteful but is IMO a better
	  space time trade off than penalizing all depends to be able to flag
	  which dep is an indirection dep.  This method may cause problems if
	  multiple indirection calls are using in a single expression.

Jon K Hellan's avatar
Jon K Hellan committed
775 776 777 778 779 780 781 782 783 784 785 786
1999-12-08  Jon K Hellan  <hellan@acm.org>

	* src/style.h: Declare style_font_equal, style_font_hash_func.

	* src/style.c (style_font_equal): Make non-static and rename from
	font_equal. 
	(style_font_hash_func): Make non-static and rename from font_hash
	(style_init): Use new names for font_hash, font_equal.

	* src/mstyle.c (mstyle_hash): Include MSTYLE_ORIENTATION. Return
	the hash value(!).

Jody Goldberg's avatar
Jody Goldberg committed
787 788 789 790 791 792
1999-12-08  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (segments_intersect) : Be more agressive about
	  returning containtment.
	(selection_apply) : Improve debug output.

Yuri Syrota's avatar
Yuri Syrota committed
793 794 795 796
1999-12-08  Yuri Syrota  <rasta@renome.rovno.ua>

	* configure.in (ALL_LINGUAS): Added "uk".
	
Michael Meeks's avatar
Michael Meeks committed
797 798 799 800 801
1999-12-08  Jon K Hellan <hellan@acm.org>

	* src/workbook.c (workbook_is_pristine): fix boneheaded
	bonoboism.

802 803 804 805 806
1999-12-07  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/dialog-analysis-tools.c (new_dialog): Use Gnome
	Stock buttons here.

807 808 809 810 811 812
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_is_pristine): check we arn't
	exported as a grid. (workbook_new): NULL bonobo fields.
	(workbook_is_dirty): fix daft bug.

813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/file.c (workbook_save): return success flag.
	(workbook_save_as): ditto.

	* src/xml-io.c (xml_workbook_write): Save current page +
	edit text. (xml_workbook_read): Read edit text + current page.

	* src/workbook.c (workbook_is_dirty): split.
	(cb_sheet_check_dirty): update. (workbook_can_close): redo.
	(workbook_is_pristine, cb_sheet_check_pristine): implement.
	(file_import_cmd, file_open_cmd): check for pristine-ness.

	* src/sheet.c (sheet_get_extent): constify.
	(sheet_is_pristine): implement.

829 830 831 832 833 834 835 836 837 838
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent): implement.

	* src/corba-sheet.c (Sheet_max_cols_used, Sheet_max_rows_used):
	update to use get_extent.

	* src/print.c (print_sheet): use sheet_get_extent.
	(print_sheet_range): pass a Range. (sheet_print_selection): ditto.

Michael Meeks's avatar
Michael Meeks committed
839 840 841 842 843
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* doc/Styles.txt: Add section 2.1.1, update optimization +
	example code, type fixes. + 2.4.1 explaining borders.

Michael Meeks's avatar
Michael Meeks committed
844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (search_cell_deps): Cull dead 'draw' code.

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

	* src/expr.c (eval_funcall): Extract body to func.c
	(cell_ref_make_absolute, free_values): move to func.c
	(do_expr_decode_tree): Use function_def_get_name

	* src/func.c (function_call_with_list): Clean to use new
	helper functions + update style; use eval_expr not
	eval_expr_real in 1 place; cleans flow;
	(cell_ref_make_absolute): make args more convenient.

	* Makefile.am: Kill dump.[ch]
	
	* src/dump.[ch]: kill + move to

	* src/func.c: (function_dump_defs).

	* src/main.c (gnumeric_main): Use function_dump_defs

	* src/func.c (function_def_get_fn): implement.
	(function_def_get_user_data, function_def_set_user_data),
	(function_def_count_args, function_def_get_name): implement.
	(function_def_get_arg_type): implement.
	Hide FunctionDefinition here. Stylistic cleans.

	* plugins/python/python.c (marshal_func): use function_def_count_args
	(__register_function): kill ancient mem leak in duff code.

	* src/dialogs/dialog-function-select.c (function_definition_update):
	use function_def_get_name.

	* src/dialogs/dialog-function-wizard.c (arg_data_list_new): rewrite to
	use count_args + get_arg_type: much safer. (get_text_value): use get_name.

	* src/expr.h: Add user_data to function definition + hack it out.

	* src/sheet.c (sheet_cell_get, sheet_cell_fetch): move up & inline

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

	* plugins/sample/plugin-sample.c (func_plusone): Make this a good
	example ! ug + stylistic clean.

Ariel Rios's avatar
Ariel Rios committed
891 892 893 894 895 896 897 898 899 900 901
1999-12-05  Ariel Rios <jarios@usa.net>

	* plugins/guile/Makefile.am: Modified to include functions.scm
	
	* plugins/guile/gnumeric_startup.scm: We now load the scheme
          functions from the new file functions.scm

	* plugins/guile/functions.scm: The guile functions and their 
          registration are now located in this file.
          (=FIBO(num)): Added fibonacci formula.

Michael Meeks's avatar
Michael Meeks committed
902 903 904 905 906
1999-12-04  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (compare_values): Fix fatal bug
	with cell_get_text on a NULL Cell.

907 908 909 910 911 912 913 914 915 916 917
1999-12-03  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): options
	for case sensitivy and value or text comparisons
	(order_box_new): display the advanced button for each clause
	(dialog_cell_sort): make sure the OrderData contains the
	value/text and case sensitivity flags
	(compare_values): take the new options into account

	* src/dialogs/cell-sort.glade: update gui

918 919 920 921 922 923 924
1999-12-02  Nat Friedman  <nat@helixcode.com>

	* src/corba-workbook.c (Workbook_corba_class_init): Use the new
 	epv-getting functions when filling the vepv.

	* src/embeddable-grid.c (init_embeddable_grid_corba_class): Likewise.

925 926 927 928 929 930 931 932 933
1999-12-01  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page):
	Update to new API.

	* src/widgets/widget-font-selector.c (font_selector_set): Kill.
	(font_selector_set_points, font_selector_set_style),
	(font_selector_set_name): create.

934 935 936 937 938 939
1999-12-01  Federico Mena Quintero  <federico@redhat.com>

	* src/item-grid.c: item_grid_parent_class should be a
	GnomeCanvasItemClass *, not a GnomeCanvasItem *.  Thanks to Nick
	Lamb (njl98r@ecs.soton.ac.uk) for pointing this out.

Michael Meeks's avatar
Michael Meeks committed
940 941 942 943
1999-11-30  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (cb_sheet_check_dirty): Fixup.

Michael Meeks's avatar
Michael Meeks committed
944 945 946 947 948 949 950 951 952 953
1999-11-30  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_hash): updated.

1999-11-30  Jon K Hellan  <hellan@acm.org>

	* src/mstyle.c (mstyle_hash): implement.

	* src/main.c: Add debug_excel_write parameter.

954 955 956 957 958 959 960 961
1999-11-29  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : Disable for bonobo case
	  until I can figure out how to retrieve menu items in that case
	  also.

	* src/workbook-view.c (workbook_view_set_paste_state) : Ditto.

Michael Meeks's avatar
Michael Meeks committed
962 963
1999-11-29  Michael Meeks  <mmeeks@gnu.org>

Michael Meeks's avatar
Michael Meeks committed
964 965
	* src/expr-name.c (expr_name_add): Add commented out debug.

Michael Meeks's avatar
Michael Meeks committed
966 967 968
	* src/workbook.c (wb_edit_key_pressed): Remove set_dirty.
	(cb_sheet_check_dirty): Add check for input area.

969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993
1999-11-28  Jody Goldberg <jgoldberg@home.com>

	* src/Makefile.am : Add new files.

	* src/workbook-view.c (workbook_view_set_paste_state) : New function.

	* src/application.c (application_clipboard_clear) : Disable the
	  paste, paste-special menu items and unant the previous selection.
	(application_clipboard_copy) : Enable paste/paste_special, ant the
	  selection.
	(application_clipboard_cut) : Enable paste, ant the selection.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Clear the
	  clipboard rather than unanting manually.
	(gnumeric_sheet_key_mode_object) : Ditto.

	* src/item-cursor.c (item_cursor_do_drop) : Don't unant manually.
	  let the functions take care of it.

	* src/selection.c (sheet_selection_copy) : Ditto.
	(sheet_selection_cut) : Ditto.

	* src/workbook.c (workbook_new) : Catch the widgets of several of the
	  edit menu bar items so that they can be enabled and disabled.

994 995 996 997 998 999 1000 1001 1002 1003
1999-11-28  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (wb_edit_key_pressed): Fix bug #2110

	* src/mstyle.c: re-organise elements type to save memory.
	make several globals static.
	(mstyle_hash): constify. (mstyle_new): remove alloc + gnew0
	(mstyle_copy): update. (mstyle_elements_copy): update.
	(mstyle_destroy): update.

1004 1005 1006 1007 1008
1999-11-28  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Add some menu items and experiment with disabling
	  paste/paste-special when there is nothing appropriate to paste.

Michael Meeks's avatar
Michael Meeks committed
1009 1010 1011 1012
1999-11-27  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (cb_set_cell_value): Fix silly format setting bug.

1013 1014 1015 1016 1017
1999-11-27  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c: Fixed two bugs when the
	selection was not in the upper left corner of the sheet

1018 1019 1020 1021 1022 1023
1999-11-27  Michael Meeks  <mmeeks@gnu.org>
	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Use
	string_list_free (fix leak). (string_list_free): implement.
	Stylistic fixes.
	(dialog_cell_sort_header_toggled): Fix fatal list bug.

1024 1025 1026 1027 1028
1999-11-26  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort: Allow sorting of rows
	(horizontally) as well as by columns

1029 1030 1031 1032 1033 1034 1035
1999-11-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_get_unit_distance,
	  sheet_row_get_unit_distance) : subtract 1 to match the inverse map and
	  round to integers when accumulating to give a closer approximation to
	  the trucation that occurs when drawing in pixels.

1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048
1999-11-22  Miguel de Icaza  <miguel@gnu.org>

	* src/print.c: Fit the ranges that are printed.

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

	* src/item-cursor.c (item_cursor_drag_event): update the canvas
	here;  Not in item_cursor_set_bounds_visibly.

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

	* src/xml-io.c (xml_write_styles): Implement correctly.

1049 1050 1051 1052 1053
1999-11-25  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_draw) : Draw autofill handle
	  in a better location if the bottom of the cursor is not visible.

1054 1055
1999-11-24  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1056 1057 1058 1059 1060 1061 1062 1063
	* src/format.c (format_number) : Handle negatives for scientific
	  notation.  Add support for
	  'e' vs 'E'
	  Prepending a '+'.

	* src/dialogs/dialog-cell-format.c (draw_format_preview) : Correct
	  typo.

1064 1065 1066
	* src/item-edit.c (item_edit_draw) : Fix fence post problem is
	  previous patch.  Add currently unused 'row_span' in preparation.

1067 1068
1999-11-23  Jody Goldberg <jgoldberg@home.com>

1069 1070 1071
	* src/item-edit.c (item_edit_draw) : Avoid crashing when we hit the
	  edge of the sheet.

1072 1073 1074
	* src/cell-draw.c (cell_draw) : Fix long standing bone headed mistake.
	  multi-line cells were hard coded to use black as the font color.

1075 1076
1999-11-21  Jody Goldberg <jgoldberg@home.com>

1077 1078 1079 1080 1081 1082 1083
	* src/widgets/widget-color-combo.c (none_clicked) : Emit a -1 if none
	  is selected.
	(color_table_setup) : Use new function.

	* src/workbook-format-toolbar.c (back_color_changed) : Support Color
	  'None'.

1084 1085 1086 1087 1088 1089 1090 1091 1092
	* src/file.c (workbook_save) : Use needs_name flag rather than
	  checking the filename.  All books now have file names.

	* src/workbook.c (workbook_new_with_sheets) : Move default name
	  assignment.
	(workbook_new) : Here.  Make the default name end in .gnumeric.
	  Add a needs_name flag marking this name as auto generated.
	(workbook_set_filename) : Clear the needs_name flag.

1093 1094 1095 1096 1097 1098 1099 1100 1101
1999-11-21  Jeff Garzik  <jgarzik@mandrakesoft.com>

	* configure.in, plugins/Makefile.am:
	New file import filter for SC and xspread spreadsheets.
	* src/utils.h (parse_cell_name): update prototype
	* src/utils.c (parse_cell_name): return gboolean, to reflect true,
	and documented, nature of return value.
	(parse_cell_name_list): move loop exit condition into 'for' statement

1102 1103
1999-11-20  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1104 1105
	* src/format.c (format_number) : Handle m, mm as minutes if followed
	  immediately by seconds.
1106 1107 1108 1109 1110 1111

	(format_remove_decimal) : Remove the decimal place when there are no
	  more numbers after the decimal.  This is still broken in the face
	   of specs with different forms for negatives.
	(format_add_decimal) : Support formats other than number.  Same
	  brokeness as format_remove_decimal.
Jody Goldberg's avatar
Jody Goldberg committed
1112

1113 1114 1115
	* src/dialogs/{cell-format,font-sel}.glade.h : Regenerate from
	  current .glade files.

1116 1117 1118 1119
1999-11-19  Kevin Handy  <kth@srv.net>

	* configure.in, plugins/Makefile.am: add DIF import/export filter

1120 1121 1122 1123 1124 1125
1999-11-19  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c: Allow selection of the columns
	by header name.  Put Add/Remove buttons at the bottom with stock
	icons.

1126 1127
1999-11-19  Jody Goldberg <jgoldberg@home.com>

1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138
	* src/cell.c (cell_relocate) : optionally do a bounds check on
	  relocated expressions.  Do this by 'moving' the expression from its
	  new location to its new location.  Some extra work is performed but
	  the expression is checked for boundedness.

	* src/sheet.c (sheet_move_range) : Use new interface for
	  cell_relocate.
	(colrow_move) : Ditto.

	* src/clipboard.c (paste_cell) : Ditto.

1139 1140 1141 1142 1143
	* src/item-bar.c (item_bar_fonts_init) : Use the sheet's zoom factor.
	(item_bar_realize) : Adjust to new item_bar_fonts_init interface.

	* src/sheet-view.c (sheet_view_set_zoom_factor) : Ditto.

1144 1145 1146 1147
1999-11-18  Jon K Hellan  <hellan@acm.org>

	* src/sheet.c (sheet_row_set_height_units): Use rows->default_style
	not cols->default_style.
Michael Meeks's avatar
Michael Meeks committed
1148

1149 1150
1999-11-18  Michael Meeks  <mmeeks@gnu.org>
	
Michael Meeks's avatar
Michael Meeks committed
1151 1152 1153 1154 1155 1156
	* src/dialogs/Makefile.am (glade_msgs): Add cell-sort.glade.h

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

	* src/xml-io.c: s/xmlChar/char/

1157 1158
1999-11-17  Jody Goldberg <jgoldberg@home.com>

1159 1160 1161 1162 1163
	* src/cell.c (cell_get_span) : Nerge in old fixes from
	  cell_split_text.  These routines should be very similar.
	  Add a warning comment to avoid them getting out of sync again.
	  Where else does this code live ? (draw, print, dimension)

Jody Goldberg's avatar
Jody Goldberg committed
1164 1165 1166 1167 1168 1169 1170 1171 1172
	* src/gnumeric.h : Empty.

	* src/sheet-style.c (border_check) : Fix missing initializer.

	* src/style.c (style_color_ref) : Remove warning and return NULL.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : 
	  Add braces around an ambiguous else.

1173 1174 1175 1176 1177
	* src/file.c (workbook_import) : NULL the returned workbook
	  on failure.  Things don't quite work yet, the workbook destroy
	  gets pissed when destroying an unrealized workbook, but it is
	  happier.

1178 1179 1180 1181 1182 1183 1184 1185 1186
1999-11-17  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_unique_cb): update border_check call.
	(border_check): add do_outer argument.

	* src/mstyle.c (mstyle_element_ref): inline.
	(mstyle_do_merge): count down instead of up.
	(mstyle_new): g_new0 instead of explicit clear.

1187 1188 1189 1190 1191
1999-11-17  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (do_list_check_sorted): split out.
	(list_check_sorted): make conditional on debug, slugging performance.

1192 1193 1194 1195
1999-11-16  Jeff Garzik  <jgarzik@mandrakesoft.com>

	* configure.in, plugins/Makefile.am, plugins/sylk:  new SYLK file import plug-in

1196 1197 1198 1199 1200 1201 1202 1203 1204
1999-11-16  Miguel de Icaza  <miguel@gnu.org>

	* src/mstyle.c: Define mstyle properly;  Kill MSTYLE_ELEMENTS
	macro.  
	Kill PrivateStyle.
	(mstyle_copy): Use sensible names;	
	(mstyle_set_format): Implement.
	Renamed all variables called "st" to "style".

1205 1206 1207 1208 1209
1999-11-16  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_irr): Plug leak.
	(gnumeric_xirr): Plug leak.

1210 1211 1212 1213 1214 1215
1999-11-16  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_move) : Fix.
	  Use sheet_selection_set rather than passing a partially
	  initialized sheet_set_selection.

1216 1217
1999-11-15  Jody Goldberg <jgoldberg@home.com>

1218 1219 1220
	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Delete
	  should clear contents not everything.

Jody Goldberg's avatar
Jody Goldberg committed
1221 1222
	* src/dialogs/dialog-cell-format.c (cb_align_h_toggle) : Fix Typo.

1223 1224 1225 1226 1227 1228 1229 1230 1231 1232
	* src/sheet.c (colrow_set_units) : Fix as per Bug 3472.
	(sheet_col_size_fit, sheet_row_size_fit) : Include the margins for
	  non-default sized cells.

	* src/cell-draw.c (draw_overflow) : Center display.

	* src/cell.c (cell_calc_dimensions) : Behave better when zoomed.

1999-11-15  Jody Goldberg <jgoldberg@home.com>

1233
	* src/sheet-view.c (sheet_view_set_zoom_factor) : We are already
Jody Goldberg's avatar
Jody Goldberg committed
1234
	  manually scaling everything.  Don't do it again by zooming the
1235 1236 1237 1238
	  canvas.

	* src/item-bar.c (item_bar_draw) : Burn that silly hack now that the
	  mysteries have been made clear.  The canvas was auto centering.
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248

	* src/sheet.c (sheet_move_range) : Clear the target region content
	  and comments before pasting.
	(sheet_clear_region) : Convert the closure parameters into a flag
	  designating whether or not to clear the styles in the region.

	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
	  Delete the selection, not the cells before it.  As suggested
	  by Joseph Maher <maher@math.ucsb.edu> bug 3569.

1249 1250
1999-11-15  Jukka-Pekka Iivonen  <iivonen@iki.fi>

1251 1252
	* src/functions/fn-financial.c: Implemented IRR and XIRR
 	functions.
1253
	
Jody Goldberg's avatar
Jody Goldberg committed
1254 1255
1999-11-14  Jody Goldberg <jgoldberg@home.com>

1256 1257 1258
	* src/dialogs/dialog-cell-format.c (draw_format_preview) :
	  Reset the formats for General and Text.

1259 1260 1261
	* src/parser.y (build_array) : Rows and cols were reversed
	  when parsing.

Jody Goldberg's avatar
Jody Goldberg committed
1262 1263 1264
	* plugins/ff-csv/csv.io.[ch] : Rewrite to merge parser
	  and sheet handler.  Use mmap.

1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280
1999-11-14  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_fragment_list_clip): Add check + warning +
	cull for invalid range fragments ( should never happen :-)
	(range_split_ranges): Add check for overlap to start +
	large re-write, some really mean bugs nailed, accidentaly
	accelerate performance.

	* src/ranges.h (range_valid): Add.

	* src/sheet-style.c (sheet_style_attach): Use range_valid.
	(list_check_sorted): Add valid range check + document.

	* src/xml-io.c (xml_write_styles): Ignore last 'full sheet' style
	region on save.
	
1281 1282 1283 1284
1999-11-14  Michael Meeks  <mmeeks@gnu.org>

	* src/cell.c (cell_set_formula): Fixup for premature array formulae.

Michael Meeks's avatar
Michael Meeks committed
1285
	* src/xml-io.c (xml_set_gnome_canvas_points, xml_write_names),
1286 1287 1288 1289 1290
	(xml_write_summary, xml_set_print_hf, xml_set_print_unit),
	(xml_write_style, xml_write_summary, xml_write_cell),
	(xml_sheet_write): Update to new xml reenterency API.
	(xml_write_sheet_object): Add warning and check to quiet debug.

1291 1292 1293 1294 1295 1296
1999-11-14  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_write_style) : Save PatternColor.
	(xml_read_style) : Read PatternColor.
	(xml_write_style_border) : Save the line style.
	(xml_read_style_border) : Read the line style.
1297 1298 1299 1300 1301 1302 1303 1304

	* src/dialogs/dialog-cell-format.c (border_event) : Switch to
	  selection_mask to handle singleton, vertical, horizontal, rectangle.
	(draw_border_preview) : Ditto.
	(init_border_button) : Ditto.
	(fmt_dialog_impl) : Ditto.
	(dialog_cell_format) : Init selection_mask looking at all selected
	  ranges to see if any are more than 1 cell wide or tall.
1305
	(border_event) : Extend the event map to handle the new shapes.
1306

1307 1308 1309 1310 1311 1312
1999-11-13  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/cell-sort.glade*: glade files for sort dialog
	* src/dialogs/dialog-cell-sort.c: Use the glade stuff and
	implement the header skipping for selections.

1313 1314 1315 1316 1317
1999-11-13  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (border_check): fixup for border, no border
	interface along edge; mark ambiguous.

1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329
1999-11-12  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c (item_bar_draw) : Clip the redraw region at the
	  borders to avoid problems when zooming.
	(bar_draw_cell) : Use the internal fonts.
	(item_bar_unrealize) : Unref the fonts when we're done.
	(item_bar_realize) : Init the fonts.
	(item_bar_fonts_unref, item_bar_fonts_init) : New functions.

	* src/sheet-view.c (sheet_view_set_zoom_factor) : Scale itembar
	  fonts when we zoom.

Jody Goldberg's avatar
Jody Goldberg committed
1330 1331 1332 1333 1334 1335
	From Jon K Hellan  <hellan@acm.org>
	* src/dialogs/font-sel.glade : removed the explicit sizes for
	  font name entry and font style entry. Added explicit size to
	  the scroll window around font size list, added y expand to the
	  scroll windows.

Michael Meeks's avatar
Michael Meeks committed
1336 1337 1338 1339 1340 1341
1999-11-13  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_selection_get_unique_style): kill bug
	with conflicting diagonals. (sheet_unique_cb): don't destroy
	valuable vert/horiz info in no middle case.

Michael Meeks's avatar
Michael Meeks committed
1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358
1999-11-12  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-format.c (fmt_dialog_impl): unref the
	border when we've finished with it.

	* src/corba-sheet.c (fill_corba_value): Fixup killer bug.
	(Sheet_cell_get_pattern): fixup out of bounds return type.

	* src/selection.c (sheet_selection_paste): kill unused src_sheet
	var.

	* src/style.c (style_color_ref): Add return type.
	(style_color_black, style_color_white): create

	* src/sheet-style.c (sheet_unique_cb): Fixup for sheet invalid
	outer border ranges.

1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374
1999-11-12  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (border_invalidate): implement.

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

	* src/dialogs/dialog-cell-format.c (sheet_cell_get_border),
	(do_check_border): kill. (fmt_dialog_impl): expand to add borders
	param.

	* src/sheet-style.c (sheet_unique_cb): Expand drastical.
	(border_check, border_mask): create.

	* src/dialogs/dialog-cell-format.c (init_border_button): Add border
	parameter (check_border): kill. (cb_check_border): kill.

Jody Goldberg's avatar
Jody Goldberg committed
1375 1376 1377 1378 1379 1380 1381
1999-11-12  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_set_text_simple) : Store the entered text.

	* src/formats.c (cell_format_is_number) : Only non simple currencies
	  require a space.

Miguel de Icaza's avatar
Miguel de Icaza committed
1382 1383 1384 1385
1999-11-12  Miguel de Icaza  <miguel@gnu.org>

	* src/format.c (format_number): Use alloca here.

1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418
1999-11-12  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-cell-format.c (fillin_negative_samples) :
	  Add configurable currency symbols.
	(cb_format_currency_select) : New function.
	(fmt_dialog_init_format_page) : Init the list of currencies.

	* src/formats.c (CurrencySymbol) : Add 'None' and Pound
	  ans set default to '$'.

	From Jon K Hellan  <hellan@acm.org>
	* src/dialogs/cell-format.glade: 
	  Use descriptive names for notebook pages.
	  Change accelerators, should remove conflicts within pages.
	  Remove explicit width for format_general_label.
	  Use GtkLabel instead of GtkAccelLabel.
	  Change spelling from "seperator" to "separator".
	  Make decimals spinbutton focus target for "decimal places" label.
	  format_negative_scroll: Set vscrollbar_policy to GTK_POLICY_AUTOMATIC.
	  format_list_scroll: Set hscrollbar_policy to GTK_POLICY_NEVER.
	
	* src/dialogs/dialog-cell-format.c:  
	  Change spelling from "seperator" to "separator".
	(fmt_dialog_init_format_page):
	(fmt_dialog_enable_widgets): Also hide and show F_NEGATIVE_SCROLL.
	(cb_format_list_size_allocate): 
	  Make the selected line visible when we know our geometry.
	(fmt_dialog_init_format_page): Set negative clist title passive.
	(fmt_dialog_init_format_page): 
	  Call cb_format_changed to update display if "general" is displayed.
	(set_initial_focus): Set initial focus
	(fmt_dialog_impl): Set dialog title, set initial focus

Michael Meeks's avatar
Michael Meeks committed
1419 1420 1421 1422
1999-11-12  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_attach_sheet): Add comment explaining life.

Michael Meeks's avatar
Michael Meeks committed
1423 1424 1425 1426 1427 1428 1429 1430 1431
1999-11-12  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_attach_sheet): Attach the 
	editable_label pointer to the sheet tab.
	(workbook_rename_sheet): Fix _really_ broken label setting code #3134.

	* src/widgets/widget-editable-label.c (el_stop_editing): make
	toplevel destruction more explicit.

Michael Meeks's avatar
Michael Meeks committed
1432 1433 1434 1435 1436
1999-11-11  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_fragment_list_clip): Fix heinous range bug,
	I need instant dental care.

1437 1438 1439 1440
1999-11-12  Tuomas Kuosmanen  <tigert@gimp.org>

	* src/pixmaps/money.xpm: New icon for "money" datatype.

1441 1442
1999-11-11  Michael Meeks  <mmeeks@gnu.org>

Michael Meeks's avatar
Michael Meeks committed
1443 1444 1445 1446 1447
	* src/selection.c (sheet_selection_paste): remove spurious
	unant.

1999-11-11  Michael Meeks  <mmeeks@gnu.org>
	
1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467
	* src/mstyle.c (mstyle_new_default): Revert removal of
	default_mstyle patch.

	* src/selection.c (selection_move_range_cb): kill.
	(sheet_selection_move): fixup. (sheet_selection_paste): unant cursor
	on copy.

	* src/mstyle.c (mstyle_merge): Change semantics again, was stomping
	on other ref-counted copies. (mstyle_elements_copy): implement.
	(mstyle_copy): Implement.

1999-11-10  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_fragment_list_clip): implement clipping.

	* src/sheet-style.c (sheet_mstyle_compute_from_list): split from
	(sheet_style_compute): and call.

	* src/ranges.c (range_expand): implement.

1468 1469
1999-11-11  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1470 1471 1472
	* src/mstyle.c (mstyle_new_default) : Disable caching of default
	  style to prevent problems when overridden later.

1473 1474 1475
	* src/dialogs/dialog-cell-format.c (draw_format_preview) :
	  Generate accounting format strings.

Jody Goldberg's avatar
Jody Goldberg committed
1476 1477 1478 1479 1480
	* doc/C/images/{number-format-dialog.jpg,
			number-format-justification-dialog-2.jpg,
			number-format-color-dialog-2.jpg) : Update.
	* doc/C/number-format.sgml : Update.

1481 1482 1483
	* src/sheet-object-bonobo.c (sheet_object_bonobo_load) :
	  The client_site is created in the initializer.

1484 1485
1999-11-10  Jody Goldberg <jgoldberg@home.com>

1486 1487 1488
	* src/selection.c (sheet_selection_move) : Delete.
	(sheet_selection_paste) : Use sheet_selection_set instead,
	  and check for singletons and same shapeness when pasting a cut.
Jody Goldberg's avatar
Jody Goldberg committed
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503

	* src/item-cursor.c (item_cursor_tip_setlabel) : New function, not
	  used yet.
	(item_cursor_selection_event) : Keep track of the starting point.
	(item_cursor_drag_event) : Use info to not jump to the edge.
	(item_cursor_autofill_event) : Ditto.
	(item_cursor_set_bounds_visibly) : Minor patch to use the new offset
	  information.

	* src/gnumeric-util.c (gnumeric_position_tooltip) : Be sensitive to 0.

	* src/gnumeric-sheet.c (gnumeric_sheet_new) : Select A1 at startup,
	  not A1:B2.
	(move_cursor_horizontal) : Remove warning.

1504 1505 1506
	* src/dialogs/dialog-cell-format.c (draw_format_preview) : Init
	  variable.

1507 1508 1509 1510 1511 1512 1513 1514 1515
	* src/cell-draw.c (cell_draw) : Correct problem with spanning columns.

	* src/pattern.c (gnumeric_background_set_gc) : Always set the GC
	  in case a spanning column needs it.

	* src/item-grid.c (item_grid_draw) : Improve support for spanning
	  columns going to the right.  We are still broken in that spanning
	  columns to the left will skip borders.

1516 1517
	* src/dialogs/cell-format.glade : Improve layout for big fonts.

Arturo Espinosa's avatar
Arturo Espinosa committed
1518 1519 1520 1521 1522
1999-11-07  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (workbook_new): coding style requires a space
	before an opening parenthesis.

Michael Meeks's avatar
Michael Meeks committed
1523 1524 1525 1526
1999-11-09  Michael Meeks  <mmeeks@gnu.org>

	* doc/features.txt: Added, please expand.

Michael Meeks's avatar
Michael Meeks committed
1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538
1999-11-09  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply): fix
	possible fatal ref handing problem. (fmt_dialog_impl): Fix state.result
	leak.

	* src/ranges.c (range_copy): simplify.

	* src/sheet-style.c (do_blank_border): create
	(sheet_selection_apply_border_cb): Add clearing 'outer' styles.
	(sheet_unique_cb): Kill freeing of range fragments; wierd.

1539 1540
1999-11-09  Jody Goldberg <jgoldberg@home.com>

1541 1542
	* src/formats.c (cell_format_is_number) : Add initial currency,
	  percent, and scientific notation support.
1543 1544 1545

	* src/format.c (format_number) : Add support for currency codes.
	(format_value) : Ditto.
Jody Goldberg's avatar
Jody Goldberg committed
1546 1547 1548 1549

	* src/item-bar.c (bar_draw_cell) : Slight color adjustment to make
	  it easier to see which rows/cols are selected.

Jody Goldberg's avatar
Jody Goldberg committed
1550 1551 1552
	* src/render-ascii.c (cell_region_render_ascii) : Fix typo that was
	  breaking pasting too the X selection.

1553 1554 1555 1556
	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page,
	  fmt_dialog_impl, fmt_dialog_init_font_page, fmt_dialog_init_align_page,
	  setup_color_pickers) :  Use mstyle_is_element_conflict.
	(dialog_cell_format) : Use sheet_selection_get_unique_style.
1557 1558 1559 1560
	(do_check_border) : Fix the boundary cases until we getthe extended
	  uniq support.
	(draw_format_preview) : Add format generation routines for
	  number, currency, percent, and scientific.
1561

Michael Meeks's avatar
Michael Meeks committed
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
1999-11-09  Michael Meeks  <mmeeks@gnu.org>

	* src/xml-io.c (xml_read_style_border): update to STYLE_BORDER_NONE.

	* src/sheet-style.c (do_apply_border): update.
	(sheet_selection_apply_border_cb): update + add diagonals here.
	(sheet_selection_set_border): simplify + update.

	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply):
	update to new sheet_selection_set_border API.

	* src/border.h: s/BORDER_/STYLE_BORDER_/

1575 1576 1577 1578 1579 1580 1581
1999-11-09  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-cell-format.c (init_border_button) : Use
	  check_border.
	(check_border, cb_check_border,
	 do_check_border, sheet_cell_get_border) : New functions.

1582 1583
1999-11-08  Jody Goldberg <jgoldberg@home.com>

1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595
	* src/selection.c (selection_foreach_range) : Have the call back
	  return a flag.

	* src/dialogs/dialog-cell-format.c (draw_border_preview) :
	  Support for presetting the border types.

	* src/widgets/gnumeric-dashed-canvas-line.c
	(gnumeric_dashed_canvas_line_set_dash_index) : Remove unused rgba
	  argument.

	* src/selection.c (selection_first_range) : Add permit_complex flag.

1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616
	* src/item-grid.c (item_grid_draw_border) : Correct diagonal vs
	  reverse diagonal.

	* src/border.c (style_border_none) : New function.
	(style_border_fetch) : Use new function to handle BORDER_NONE.
	(style_border_unref) : Be extra careful about border_none.
	(style_border_draw) : Handle BORDER_NONE.

	* src/formats.c : Reorg slightly.

	* src/mstyle.c (mstyle_new_default) : Init to border_none.

	* src/sheet-style.c (sheet_selection_apply_border_cb) :
	  Rework to apply inside regions, and clear regions when appropriate.

	* src/xml-io.c : Expand set of border style names.

	* src/dialogs/dialog-cell-format.c : Move closer to selecting
	  formats correctly.
	  Set & clear borders now.

Michael Meeks's avatar
Michael Meeks committed
1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662
1999-11-08  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-summary.c (summary_get): fix minor naming
	bug.

	* src/mstyle.c (mstyle_element_dump): fixup for NULL borders.

1999-11-08  Frank Chiulli <fchiulli@home.com>
	
	* src/summary.c : Added new strings to summary_item_name to reflect all
	  the fields/items in SummaryInformation and DocumentSummaryInformation.

	* src/summary.c (summary_item_new_boolean) : New function.
	
	* src/summary.c (summary_item_new_short) : New function.
	
	* src/summary.c (summary_item_as_text) : Now processes the new summary 
	  types (SUMMARY_BOOLEAN, SUMMARY_SHORT, SUMMARY_TIME).

	* src/summary.c (summary_item_free) : Now processes the new summary 
	  types (SUMMARY_BOOLEAN, SUMMARY_SHORT, SUMMARY_TIME).
	  
	* src/summary.h : Added new enums to SummaryItemType (SUMMARY_BOOLEAN,
	  SUMMARY_SHORT, SUMMARY_TIME).  Added new enums to SummaryItemBuiltin
	  to summary all the summary items.  Added two new fields (short_i and
	  boolean) the v union within the _SummaryItem struct.  Added prototypes
	  for the new public functions.
	  
	* src/dialogs/dialog-summary.c (summary_get): Field names are construct-
	  ed from the name in summary_item_name[] with "glade_" prefixed.

	* src/dialogs/dialog-summary.c (summary_put): Field names are construct-
	  ed from the name in summary_item_name[] with "glade_" prefixed.

	* src/dialogs/dialog-summary.c (dialog_summary_update) : Added new 
	  summary field - Company.
	  
	* src/dialogs/summary.glade : Added new summary field - Company.
	  
	* src/dialogs/summary.glade.h : Added new summary field - Company.
       
1999-11-08  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_selection_apply_border_cb): Update
	to only set 'inner' regions.

Jody Goldberg's avatar
Jody Goldberg committed
1663 1664
1999-11-08  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1665 1666
	* src/xml-io.c (xml_write_style_border) : Handle NULL borders.

Jody Goldberg's avatar
Jody Goldberg committed
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680
	* src/border.c (style_border_ref, style_border_unref) : NULL is
	  permissible.

	* src/format.c (format_get_thousand, format_get_decimal) : Init
	  locale if necessary.

	* src/formats.c (cell_format_is_number) : New function.

	* src/mstyle.c (mstyle_new_default) : Init borders to NULL to indicate
	  no borders.  This allows borders to be cleared.

	* src/dialogs/dialog-cell-format.c : Use locale.
	  Begin use of cell_format_classify.

1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699
1999-11-07  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (cb_set_row_height, sheet_selection_height_update) :
	  Put these back until we support shrinking in calc_dimensions.

	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply):
	  replace call to height_update.

	* src/workbook-format-toolbar.c (change_font_size_in_selection_cmd): 
	Replace call.

1999-11-07  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (selection_apply) : Bug 3382.  Be more careful
	  when regions are completely contained.

	* src/format.c (format_get_thousand, format_get_decimal) : New
	  functions.

1700 1701 1702 1703 1704 1705
1999-11-07  Michael Meeks  <mmeeks@gnu.org>

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

	* configure.in: ditto.

1706 1707 1708 1709 1710
1999-11-07  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_translate): implemented.

	* src/selection.c (sheet_selection_paste): Add sheet_selection_move.
1711
	(sheet_selection_move): implement.
1712

1713 1714
	* src/sheet.c (sheet_new): clear dirty flag (attaching the default
	  style was setting it).
1715

Michael Meeks's avatar
Michael Meeks committed
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728
1999-11-07  Michael Meeks  <mmeeks@gnu.org>

	* s/border_/style_border/

	* src/selection.c (sheet_selection_height_update): Kill; ill-concieved.
	(cb_set_row_height): ditto.

	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply): hack
	out height_update.

	* src/workbook-format-toolbar.c (change_font_size_in_selection_cmd): 
	remove call.

Jody Goldberg's avatar
Jody Goldberg committed
1729 1730
1999-11-07  Jody Goldberg <jgoldberg@home.com>

1731 1732 1733
	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply) :
	  Get a fresh style after applying changes.

Jody Goldberg's avatar
Jody Goldberg committed
1734 1735
	* src/Makefile.am : Remove non-existant sheet-style.h.

Michael Meeks's avatar
Michael Meeks committed
1736 1737 1738 1739
1999-11-06  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_selection_set_border): Set the diagonals,
	clean the closure.
1740

1741 1742 1743
	* src/dialogs/dialog-cell-format.c (fmt_dialog_impl) : Dont close the
	  dialog until ok or cancel is pressed.

Michael Meeks's avatar
Michael Meeks committed
1744 1745
1999-11-06  Jody Goldberg <jgoldberg@home.com>

1746 1747 1748 1749 1750 1751 1752 1753 1754
	* src/selection.c (sheet_selection_height_update) : Call the
	  autoresize code for non user sized rows.  Do not just hard code the
	  new height.

	* src/dialogs/dialog-cell-format.c (cb_font_changed) : Apply changes
	  to the font.
	(cb_fmt_dialog_dialog_apply) : Call sheet_selection_height_update if
	  the font changed.

Michael Meeks's avatar
Michael Meeks committed
1755 1756
1999-11-06  Jody Goldberg <jgoldberg@home.com>

1757 1758 1759 1760 1761 1762 1763 1764 1765
	* src/sheet-view.c (sheet_view_set_zoom_factor) : Smaill patch from
	  Federico Mena Quintero to improve item-bar resize while zoomed.

	* src/dialogs/dialog-cell-format.c (border_get_mstyle) : Support
	  color.

	* src/dialogs/cell-format.glade : Minor alignment improvments with
	  large fonts.

1766 1767
1999-11-05  Jody Goldberg <jgoldberg@home.com>

1768 1769 1770
	* src/print-cell.c (print_cell_background) : Follow the correct
	  conventions on whether to draw a background.

1771
	* src/sheet.c (sheet_clear_region) : Clear the style also.
1772 1773 1774 1775
	(sheet_fill_selection_with) : Run a recalc after autofill to ensure
	  that all formulas get rendered.

	* src/mstyle.c (mstyle_new_default) : Set the pattern to transparent.
1776 1777 1778

	* src/workbook.c (workbook_menu_edit_clear) : Fix typo.

1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795
	* src/pattern.c (gnumeric_background_set_gc) : Move the pattern &
	  background GC setup logic from item_grid_paint_empty_cell here.

	* src/item-grid.c (item_grid_paint_empty_cell) :
	  Use gnumeric_background_set_gc.

	* src/cell-draw.c (cell_draw) : Ditto.

	* src/border.c (border_set_gc_dash) : Adjust cap format.

	* src/item-grid.c (item_grid_paint_empty_cell) : Split background and
	  pattern GC setup in a new function.

	* src/pattern.c (gnumeric_background_set_gc) : New function.

	* src/cell-draw.c (cell_draw) : Use gnumeric_background_set_gc.

Michael Meeks's avatar
Michael Meeks committed
1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808
1999-11-05  Michael Meeks  <mmeeks@gnu.org>

	* src/border.c (border_fetch): re-do orientation.

	* src/xml-io.c (xml_read_style_border): update orientation +
	IO the full set of borders. (xml_write_style_border): ditto.

	* src/dialogs/dialog-cell-format.c (border_get_mstyle): Create.
	(cb_fmt_dialog_dialog_apply): Add border bits.

	* src/sheet-style.c (do_apply_border, sheet_selection_apply_border_cb),
	(sheet_selection_set_border): Implement.

1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819
1999-11-05  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.h: add sheet_selection_set_border.

	* src/style.c (style_new, style_new_mstyle, style_new_empty),
	(style_destroy, style_duplicate, style_merge_to): Hack.

	* src/mstyle.h: kill style_new_mstyle.

	* src/style.h: Kill redundant old code.

1820 1821
1999-11-04  Jody Goldberg <jgoldberg@home.com>

1822 1823 1824 1825
	* src/item-grid.c (item_grid_paint_empty_cell) : As per instructions
	  from quartic we must call gnome_canvas_set_stipple_origin or things
	  get strange with stipples and the cursor.

1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836
	* src/expr.c (expr_tree_array_formula_corner) : If the corner is not
	  set attempt to set it.  Add more sanity checking to ensure that the
	  corner cell is really a corner cell.
	(eval_expr_real, do_expr_decode_tree) : Adjust to interface change in
	  expr_tree_array_formula_corner.

	* src/eval.c (add_tree_deps) : do not depend on the array corner being
	  set while calculating dependancies.  This eases the burden on insert
	  row/col which is forced to insert the lower/right cells BEFORE the
	  upper left and hence before the corner is set.

1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851
1999-11-04  Michael Meeks  <mmeeks@gnu.org>

	* src/corba-workbook.c (Workbook_save_to): Update so it compiles!
	(Workbook_sheet_current): Use standard 'wb' var. name.

	* src/sheet.c (sheet_move_range): add style slide.

	* src/sheet-style.c (sheet_unique_cb): Use range_fragment_list instead.
	(sheet_style_relocate): Implement.

	* src/ranges.c (range_fragment_list): Fix cretinous logic bug.
	(range_fragment): Split out (range_fragment_list): use it.
	(range_split_ranges): Update to use copy_fn + globalise.
	(range_fragment): fix leak.

1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
1999-11-03  Miguel de Icaza  <miguel@gnu.org>

	* src/expr.c (eval_range): Removed parsed node from here too. 
	(eval_range): Removed computation logic from here.
	(eval_expr_real): ditto.

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

	* src/cell.c (cell_eval, cell_eval_content): Redone the evaluation
	logic to put all the actual details in a single spot.

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

	* src/expr.c (eval_expr_real): Removed cell->parsed_node &&
	(cell->flags & CELL_QUEUED_FOR_RECALC)) from condition.
	
	* src/func.c (iterate_cellrange_callback): ditto.

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

	* src/workbook.c: change the binding.  Not clear to me yet if we
	need to fix gnome-libs.

1875 1876
1999-11-04  Jody Goldberg <jgoldberg@home.com>

1877 1878 1879 1880
	* src/workbook-format-toolbar.c (back_color_changed) : Set the pattern
	  to solid if we assign a colour to an area that did not have a
	  background before.

1881 1882 1883 1884 1885
	* src/dialogs/dialog-cell-format.c (fmt_dialog_enable_widgets) :
	  Improve support for custom formats, and ensure that we
	  temporarily start off in 'Custom' until the rest of the format
	  recognition is ready.

1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921
1999-11-03  Jody Goldberg <jgoldberg@home.com>

	* src/dialog/dialog-cell-format.c : Rewrite.

	* src/item-grid.c (item_grid_paint_empty_cell) : First attempt to
	  draw patterns correctly.  We'll move much of this into a new routine
	  to be shared by non-empty cells if it works.

	* src/gnumeric-sheet.c (gnumeric_sheet_realize) : move the patterns
	  into their own file.

	* src/pattern.[ch] : New file.

	* src/mstyle.c (mstyle_new_default) : Do not set the pattern colour
	  by default.

1999-10-06  Jon K Hellan  <Jon.K.Hellan@item.ntnu.no>

	* src/file.c
	(workbook_import): Initial focus and selection in import dialog
	(workbook_save_as): Specify the app as the parent.

	* src/file.c
	(workbook_read): Moved error message code to new
	file_error_message procedure
	(file_error_message): The procedure
	(workbook_save, workbook_save_as): Notice failure to
	save. Clean marking of sheet moved from xml-io.c to here.

	* src/xml-io.c (xml_sheet_write, gnumeric_xml_read_sheet,
	gnumeric_xml_write_sheet): 
	Dirty/clean marking of sheet moved out.

	* src/corba-workbook.c (Workbook_save_to): 
	Mark saved sheet clean. FIXME: Failure to save still ignored.

1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934
1999-11-03  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_insert_col, sheet_insert_row): fiddle styles.

	* src/sheet-style.c (sheet_style_region_link): implement.
	(sheet_style_stamp_compare): implement.
	(style_region_new): create. (sheet_style_attach): use it.
	(style_region_copy): implement.
	(style_region_destroy): create (sheet_style_region_unlink): use.
	(sheet_style_insert_colrow): implement.

	* src/ranges.c (range_contained): Make semantics more logical.

1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
1999-11-03  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_style_delete_colrow): Fixup.

	* src/sheet.c (sheet_delete_row, sheet_delete_col): Add style stage.

1999-11-02  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_set_filename): update precondition macros.

	* src/sheet-style.c (sheet_style_region_unlink): Create.
	(sheet_style_optimize): use it. (sheet_style_delete_colrow): Implement.

	* src/ranges.c (range_contained): Implement.

1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975
1999-11-02  Federico Mena Quintero  <federico@redhat.com>

	* src/print-preview.c (PreviewMode): Renamed the move modes to
	MODE_MOVE and MOVE_MODE_DRAGGING.
	(preview_canvas_button_press): Split the event handling code
	between several functions.  Rationale:  we will want drag-zoom and
	we need different modes for this, and the code in a single
	function would get unwieldy.  In addition, grab the pointer and
	use GDK_POINTER_MOTION_HINT_MASK for better behavior.
	(PrintPreview): Added fields for drag anchor and drag offset.
	(drag_to): New function to drag/scroll.
	(create_preview_canvas): Connect to the different event handlers.
	(do_zoom): We do not need to re-render the page; just set the zoom
	factor.  Also, use exponential zooming for better behavior.

	* src/cursors.h: Moved the cursor #defines to an enum.  This way
	we can check for a max value in cursor_get().  Moved the cursor
	array to the .c file and made it private.

	* src/cursors.c (cursors_init): Added sanity check so that all
	cursors are defined.
	(cursor_get): New function to get a cursor based on its type.
	(cursors): Added hand cursors.

	* src/pixmaps/cursor_hand_{open,closed}.xpm: Added hand cursors.

Jody Goldberg's avatar
Jody Goldberg committed
1976 1977
1999-11-01  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001
	* src/item-grid.c (item_grid_realize) : Set the default background
	  to white, so that the redraws are not quite so obvious.

	* ./src/sheet.c (cellref_name) : Change to take a ParsePosition
	  rather than just a row, col so that we can handle inter-book
	  references.

	* src/expr.c (do_expr_decode_tree) : Pass a ParsePosition.
	(cellref_relocate) : Fix typo.

	* src/corba-sheet.c (fill_corba_value) : Pass a ParsePosition.

	* src/parser.y : Dummy up a parser for intersheet references.  NOT
	  complete as yet.

	* src/sheet-view.[ch] : Add select_all data member to SheetView.

	* src/sheet.c (sheet_move_range) : Correct handling of intersheet
	  and interbook references.

	* src/workbook.c (workbook_new_with_sheets) : Assign a default unique
	  name so that all workbooks will have a name.
	(workbook_set_filename) : Change return to allow for eventual test for
	  uniqueness.
Jody Goldberg's avatar
Jody Goldberg committed
2002

2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
1999-11-01  Miguel de Icaza  <miguel@gnu.org>

	* src/item-bar.c (item_bar_draw): Optimize.
	(is_pointer_on_division): Bug fix for boundary condition. 
	(get_col_from_pos): ditto.

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

	* src/print-preview.c (preview_canvas_event): Reversed the delta
	computation, to make the scrolling follow what federico
	suggested. 

	* src/workbook-format-toolbar.c: Change the money format to
	include decimals.

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

	* src/xml-io.c (xml_init): Rename.

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

	* src/complex.h (GNUMERIC_COMPLEX_PROTO): Fix from Tom Mooney to
	get the compile settings done correctly.

Michael Meeks's avatar
Michael Meeks committed
2027 2028 2029 2030 2031
1999-11-01  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook-format-toolbar.c (modify_cell_format): fix
	style ref leak.

2032 2033 2034 2035 2036 2037 2038 2039
1999-11-01  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_merge): Radicaly alter semantics and
	function + document. (mstyle_empty): add.

	* src/sheet-style.c (sheet_style_optimize): Only remove lower
	stamp items if all there elements are safely masked.

2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052
1999-11-01  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (list_check_sorted): create + add checks.
	(sheet_style_optimize): Use stamps correctly.
	(sheet_styles_dump): dump stamp.

	* src/mstyle.c (mstyle_merge, mstyle_dump): Kill stamp.
	(mstyle_stamp_compare, dump_style_flist): kill.

	* src/sheet-style.c (sheet_style_attach): set stamp + inc.

	* src/sheet.h: Move StyleRegion to sheet-style.c + add stamp.

Michael Meeks's avatar
Michael Meeks committed
2053 2054 2055 2056 2057 2058
1999-10-31  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_style_compute, sheet_unique_cb): Kill
	check_sorted; the style stamp stuff needs serious work. The stamp
	should be on the StyleRegion _not_ the MStyle.

Michael Meeks's avatar
Michael Meeks committed
2059 2060 2061 2062 2063 2064 2065 2066
1999-10-31  Michael Meeks  <mmeeks@gnu.org>

	* NEWS (Daniel): credit.

	* acconfig.h: add undef ENABLE_GB

	* configure.in: Add preliminary 'gb' autoconf support. Add comments.

2067 2068 2069 2070 2071 2072 2073
1999-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/border.c (border_set_gc_dash, border_get_width) : New functions.

	* src/widgets/gnumeric-dashed-canvas-line.[ch] : New canvas item
	  that has advanced dash formats.

2074 2075 2076 2077 2078
1999-10-30  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-object.c (sheet_object_drop_file): Fixup bad mapping
	case.

2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093
1999-10-30  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (region_get_dependencies): Update.
	(search_range_deps): fix logic bug in range intersection.

	* src/mstyle.c (mstyle_merge): Make sta the default master style,
	fix several logic bugs in stamp order preservation + stamp from the
	master style.
	(mstyle_list_check_sorted): kill debug churning, just answer.
	(mstyle_stamp_compare): Implement.

	* src/sheet-style.c (sheet_style_optimize): Add warning + use
	new stamp merging fn. + simplify by NULLing slain StyleRegion list
	elements. (sheet_style_compute): quieten debug.

Jody Goldberg's avatar
Jody Goldberg committed
2094
1999-10-30  Jody Goldberg <jgoldberg@home.com>
2095 2096 2097 2098 2099

	* src/gnumeric-sheet.c (gnumeric_sheet_new) : Found the drawing
	  problem wherin it was not possible to jump to the bottom of a
	  64k row sheet.  The scroll region of 1M was too small.  Upped it
	  to 1,200,000.
Jody Goldberg's avatar
Jody Goldberg committed
2100 2101 2102
	(gnumeric_sheet_compute_visible_ranges) : A fencepost-ish problem.
	  There is no need to increment the col/row count once we've found
	  the end.  Doing so risks falling prey to the boundary cases.
2103 2104 2105

	* src/sheet-view.c (new_canvas_bar) : Ditto.

2106 2107 2108 2109 2110 2111 2112 2113
1999-10-29  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_set_zoom_factor): don't bother re-rendering update.

	* src/sheet-style.c (sheet_cells_update): Add re-render argument.
	(re_dimension_cells_cb): update. (sheet_selection_apply_style_cb): if
	format changed re-render cell's text + add redraw.

2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127
1999-10-28  Jody Goldberg <jgoldberg@home.com>

	* src/widgets/widget-font-selector.c (reload_preview) :
	  Copy the style rather than creating a new one.  So that
	  we can change the colour elsewhere if desired.
	(font_selector_set) : Fix typos.
	(list_realize) : We can not moveto
	  a list element until after the widget is realized.  Add a handler
	  to take care of it.

	* src/dialogs/font-sel.glade : Make the scrollbars optional.
	  Fix the height of the preview area to avoid irritating flicker
	  as the dialog resizes.

Michael Meeks's avatar
Michael Meeks committed
2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139
1999-10-28  Michael Meeks  <mmeeks@gnu.org>

	* src/item-grid.c (item_grid_set_gc_stipple): Add.
	(item_grid_draw_cell, item_grid_paint_empty_cell): use it, but
	it blows up wierdly :-(

	* AUTHORS: Updated.

1999-10-27  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_contains): kill.

2140
	* src/sheet.h (range_contains): Add (performance critical).
Michael Meeks's avatar
Michael Meeks committed
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150

	* src/dialogs/dialog-cell-format.c (create_background_radio): Add pattern
	reading. (create_coloring_page): update pattern bits.
	(apply_coloring_format): Use the pattern index.

1999-10-26  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-format.c (create_background_radio): Make
	pattern selector global.
	
Morten Welinder's avatar
Morten Welinder committed
2151 2152 2153 2154 2155 2156 2157 2158
1999-10-27  Morten Welinder  <terra@diku.dk>

	* src/xml-io.c (xml_probe): Improve message when probing fails.

	* src/main.c (gnumeric_main): Don't let workbook_count go to zero
 	just because loading the first command-line specified sheet fails.
	(Bug 3119.)

Morten Welinder's avatar
Morten Welinder committed
2159 2160 2161 2162 2163 2164
1999-10-26  Morten Welinder  <terra@diku.dk>

	* src/format.c (format_compile): Plug leak.

	* src/workbook.c (workbook_new): Typo.

Jody Goldberg's avatar
Jody Goldberg committed
2165 2166 2167 2168
1999-10-26  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_style_changed) : Fix.

2169 2170 2171
	* src/dialog/utils-dialog.[ch] : Add gnumeric_load_image.
	* src/dialog/dialog-printer-setup.c : Stolen from here.

2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184
1999-10-26  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_set_pattern): cripple for now.

	* src/xml-io.c (xml_sheet_write): Write the style regions in the
	correct order !. (xml_read_style): set italic for italic.

	* src/sheet-style.c (sheet_get_style_list): Return a copy.

	* src/xml-io.c (xml_read_cell_styles),
	(xml_dispose_read_cell_styles): replace.
	(xml_sheet_read): Add read_cell_styles*.

2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195
1999-10-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-stat.c: Fixed the const arguments of GROWTH and
 	TREND.

	* src/regression.[ch], src/functions/fn-stat.c: Started adding the
 	extra statistical output for LINEST and LOGEST.
	
	* src/functions/fn-database.c: Started the implementation of
 	GETPIVOTDATA.

2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237
1999-10-25  Jody Goldberg <jgoldberg@home.com>

	* src/main.c (gnumeric_main) : Remove current_workbook notion.

	* src/dialogs/dialog-simple-input.c (dialog_get_number) : Return
	  FALSE on cancel too.

	* src/workbook-cmd-format.[ch] : Add std row/column size scale factors.
	(workbook_cmd_format_row_height) : Use them.

	* src/item-bar.c (colrow_tip_setlabel) : Use the scale factors.

	* src/application.[ch] : New files to hold data common to all
	  workbooks.

	* src/item-grid.c (create_popup_menu) : Use gboolean and split
	  paste and paste special. Add pixmaps.
	(item_grid_popup_menu) : Use application_clipboard_is_empty.
	(item_grid_invert_gc) : Add extended_right flag to disable right
	  border for extended cells.

	* src/item-cursor.c (item_cursor_start_animation) : Decrease the
	  timeout.

	* src/main.c : Use application_init.
	* src/selection.c : Use application_clipboard_copy,
	  application_clipboard_cut.
	(find_a_clipboard, find_workbook_with_clipboard) : Delete.
	(sheet_selection_paste) : Use sheet_move_range for cut.

	* src/sheet.[ch] : Export sheet_move_range.
	(sheet_move_range) : Plug leak when a cell is moved out of bounds.

	* src/clipboard.c (x_selection_handler) : Use
	  application_clipboard_contents_get and respect the difference
	  between cut & copy.

	* src/workbook.[ch] :  Move clipboard stuff into application.h.
	(paste_cmd, paste_special_cmd) : Catch attempt to paste nothing.

	* src/Makefile.am : Add application.[ch].

2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254
1999-10-25  Michael Meeks  <mmeeks@gnu.org>

	* TODO: Prune scads of completed work out, + add some guff about
	sorting out cell spans; another fun fun project :-)

	* src/cell.c (cell_style_changed): implement.

	* src/sheet.c (sheet_new): use get_full_range clean.
	(sheet_set_zoom_factor): Add sheet_cells_update to re-calc bits.

	* src/sheet-style.c (sheet_cells_update, re_dimension_cells_cb): Create.
	(sheet_selection_apply_style_cb): Add sheet_cells_update.
	(sheet_get_full_range): implement for convenience.

	* doc/Styles.txt: Add "ref-counting for dummies" and "Getting a Style"
	sections.

2255 2256 2257 2258
1999-10-25  Morten Welinder  <terra@diku.dk>

	* src/complex.h: Fix typo.  thanks to Tim Mooney.

2259 2260 2261 2262 2263 2264 2265 2266 2267 2268
1999-10-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-database.c: Fixed the criteria argument
 	handling.  Each column defines conditions in boolean AND relation
 	and each row in criteria matches in boolean OR relation with the
 	given database.  Fixed the non-numeric return values of DGET.
  	Documentation improvements.
	
	* src/func.h (func_criteria_t): Added column field.

Arturo Espinosa's avatar
Arturo Espinosa committed
2269 2270
1999-10-24  Miguel de Icaza  <miguel@gnu.org>

Miguel de Icaza's avatar
Miguel de Icaza committed
2271 2272 2273 2274 2275
	* src/cellspan.c (cell_register_span): Create the span if required.

	* src/sheet.c (sheet_destroy_contents): Remove debugging messages.
	(sheet_row_new): Row spans are now created on demand. 

Arturo Espinosa's avatar
Arturo Espinosa committed
2276
	* src/xml-io.c (xml_get_print_hf): Plug memory leak.
Miguel de Icaza's avatar
Miguel de Icaza committed
2277
	(xml_get_print_hf): More leak fixes.
Arturo Espinosa's avatar
Arturo Espinosa committed
2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292

	* src/mstyle.c (mstyle_verify): Fixed.

	* src/sheet.c (sheet_destroy_contents): Change the routine that
	destroys the cells. 
	(destroy_sheet_cell_cb): Proper cell destruction code.
	(cb_free_cell): Make this routine free the cell *CORRECTLY*.
	Please, do not break the code like this in the future.

	* src/workbook.c (sheet_action_delete_sheet): Do not destroy the
	sheet here.
	(workbook_detach_sheet): Destroy the sheet here, before queuing a
	recalc. 
	(workbook_do_destroy): Do not kill the sheet here.

Michael Meeks's avatar
Michael Meeks committed
2293 2294 2295 2296 2297
1999-10-24  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (MStyleElement): Make font.size float + shrink enums.
	Add standard header.

2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309
1999-10-24  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_style_attach): kill redundant style_ref.

	* src/xml-io.c (xml_write_style): Use default_back instead of _fore for
	the background.

	* src/item-edit.c (item_edit_draw): generate a StyleFont when needed.
	(item_edit_init): init mstyle. (item_edit_destroy): unref mstyle.

	* src/item-edit.h: Use an MStyle instead of a Style.

2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321
1999-10-24  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_new_default): Re-enable the standard background
	color for now so things don't crash everywhere.

	* src/item-grid.c (item_grid_draw_cell): Fixes for unset colors.

	* src/Makefile.am (CLEANFILES): remove spurious binaries on clean.

	* src/dialogs/dialog-cell-format.c (create_coloring_page): Sort out
	case of no colors.

2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366
1999-10-24  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_unique_cb): Again, CVS merge bug fixed.

	* src/mstyle.c (mstyle_elements_equal): Fix stupid bug ( again ).
	(mstyle_elements_compare): fix big bug; stupid CVS.

	* src/sheet.c (sheet_update_controls): fix leak.

	* src/sheet-style.c (sheet_destroy_styles): fix leak.

	* src/cell.c (cell_get_style): Kill.

	* src/functions/fn-information.c (gnumeric_cell): Update format
	section.

	* src/sheet.c (cb_set_cell_value): Kill FORMAT_SET reference
	and use new style API.

	* src/cell.h: Kill CELL_FORMAT_SET flag.

1999-10-23  Michael Meeks  <mmeeks@gnu.org>

	* src/print-cell.c (print_cell_text): kill Style.
	(print_cell): ditto.
	(print_cell_grid): Add checks on return type of
	sheet_*_get_info.

	* src/mstyle.h: big constification.

	* src/mstyle.c (mstyle_verify): fix compile errors.

	* src/cell-draw.c (sheet_view_font): Kill.
	(cell_draw): edge out Style.
	(sheet_get_style_font): create.

	* src/cell.c (cell_get_mstyle): implement.

	* src/style.h: Change structs back to typedef defines + move
	"mstlye.h" include to foot + add MStyleBorder.

	* src/item-grid.c (item_grid_draw_border): Take an MStyle.
	(item_grid_paint_empty_cell): pass an mstyle + kill a Style.
	(item_grid_draw_cell): edge Style out.

2367 2368 2369
1999-10-24  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (sheet_style_attach) : reference the style object.
Jody Goldberg's avatar
Jody Goldberg committed
2370 2371 2372 2373 2374 2375 2376 2377

	* src/mstyle.c (mstyle_elements_equal) : Correct the loop.

	* src/mstyle.c (mstyle_new_default) : Do not set colours by default.
	  There is an important difference between selecting a colour and
	  using the default colour.  The default does not override the
	  borders.