OChangeLog-2000-02-23 123 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
1999-03-25  Michael Meeks  <michael@imaginator.com>

	* src/expr.c (eval_funcall): Updated to add new optional argument
	token.

	* src/expr.h: Comments to explain above.

	* src/fn-eng.c (gnumeric_erf, gnumeric_delta): Drastic clean to use
	new optional token.

Arturo Espinosa's avatar
Arturo Espinosa committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
1999-03-23  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-math.c: ceiling added.

	* src/fn-stat.c: fisherinv, normsdist, and lognormdist added.

	* AUTHORS, src/about.c: added me.

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

	* src/fn-stat.c: avedev, confidence, critbinom, devsq, fisher,
 	kurt, normdist, permut, skew, standardize, and weibull added.
	
	* src/fn-math.c, src/func.h: gnumeric_average and fact made public
 	(used in src/fn-stat.c).

27 28 29 30
Tue Mar 23 14:00:37 CET 1999 Daniel Veillard <Daniel.Veillard@w3.org>

	* src/xml-io.c : solved the problem of saving cells with < or &

31 32 33 34 35 36 37 38
1999-03-21  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/fn-stat.c: avedev, confidence, critbinom, devsq, fisher,
 	kurt, normdist, permut, skew, standardize, and weibull added.
	
	* src/fn-math.c, src/func.h: gnumeric_average and fact made public
 	(used in src/fn-stat.c).

39 40 41 42 43
1999-03-17  Vladimir Vuksan <vuksan@veus.hr>
 
 	* src/fn-financial.c: Added new functions gnumeric_ipmt,
	gnumeric_ppmt, gnumeric_duration.
 
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
44 45 46 47 48 49
1999-03-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>
 
 	* src/fn-math.c: combin added.
 
 	* src/fn-stat.c: binomdist, harmean, and hypgeomdist added.
 
Michael Meeks's avatar
Michael Meeks committed
50 51 52 53 54
1999-03-18  Michael Meeks  <michael@imaginator.com>

	* src/fn-eng.c (val_to_base): Minor fixes

1999-03-18  Sean Atkinson  <sca20@cam.ac.uk>
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
	
	* notes: typos

	* src/expr.c (value_string): cleaned to use g_strdup_printf

	* src/expr.h: typo

	* src/fn-string.c (gnumeric_mid): fixed
	internationalized various strings, typos
	(subs_string_new, subs_string_append_n, subs_string_free): added to
	speed gnumeric_substitute
	(gnumeric_concatenate, gnumeric_rept, gnumeric_find, gnumeric_fixed)
	(gnumeric_proper, gnumeric_replace, gnumeric_t, gnumeric_value)
	(gnumeric_substitute, gnumeric_dollar): implemented.

70 71 72 73
1999-03-16  Vladimir Vuksan <vuksan@veus.hr>

	* src/fn-financial.c: More financial functions: gnumeric_nominal,
	gnumeric_pv, gnumeric_fv, gnumeric_pmt.
74

75 76
1999-03-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>
	
77 78 79
	* src/workbook.c: Change from active voice to passive voice in the
	help messages for "New".  Thanks to Morden for pointing this out. 2

80 81
1999-03-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>

82 83 84 85 86 87 88 89 90
	* src/fn-math.c (callback_function_sum): Detects integer
	over/under flow. 

	* src/expr.c (eval_expr): Add integer overflow code for addition
	and substraction.

	* src/cell.c (cell_set_format): Call cell_render_value and
	cell_queue_redraw calls here.

91 92 93
	* src/expr.c (bigger_prec): When decoding left-to-right apply
	parentheses if the two priorities are equal.

94 95 96 97 98
1999-03-13  Richard Hult <rhult@hem2.passagen.se>

	* src/xml-io.c (xmlGetGnomeCanvasPoints): test against the value
	returned by xmlGetValue, not the GnomeCanvasPoints value. 

99 100
1999-03-13  Michael Meeks <michael@imaginator.com>

101 102 103 104 105 106 107 108 109 110
	* src/fn-eng.c (val_to_base, val_to_base_place),
	(bin/oct/dec/hex 2 bin/oct/dec/hex):
	Implemented - pending fixes to number storage.

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

	* src/fn-eng.c (gnumeric_delta, gnumeric_sqrtpi),
	(gnumeric_gestep): Implemented
	
	* src/fn-math.c (sqrt): Implemented.
111

112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
1999-03-13  Michael Meeks <michael@imaginator.com>

	* src/fn-eng.c: Created
	(gnumeric_erf, gnumeric_erfc, gnumeric_bessely)
	(gnumeric_besselj): Implemented
	(gnumeric_bin2dec): Moved from fn-math.c

	* src/fn-math.c (gnumeric_bin2dec): Moved to fn-eng

	* src/func.c (functions_init): Added eng_functions.

	* src/fn-stat.c: Cleaned functions help.

	* src/Makefile.am: Added fn-eng.c

127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
1999-03-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/clipboard.c (sheet_paste_selection): New routine.  Abstracts
	the paste operation.
	(clipboard_paste_region): Now it uses a clipboard with the active
	X selection instead of defaulting to "request clipboard from X"
	(this is only for inter-workbook copy-paste).

	* src/sheet.c (find_workbook_with_clipboard): Tries to find a
	workbook with clipboard information.  Probably the clipboard
	should be global to all Gnumeric.

	* src/render-ascii.c (cell_region_render_ascii): Free the
	information after we have used it, not before.

	* src/expr.c (eval_expr): Handle new-born recursive references. 

144 145 146 147 148 149 150
1999-03-11  Michael Meeks <michael@imaginator.com>

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

	* src/fn-stat.c (gnumeric_poisson, gnumeric_gammaln):
	Implemented.

151 152 153 154 155
1999-03-11  Michael Meeks <michael@imaginator.com>

	* src/fn-stat.c (gnumeric_expondist, gnumeric_geomean):
	Implemented.

156
1999-03-10  Vladimir Vuksan <vuksan@veus.hr>
157 158 159 160 161 162 163 164 165

	* src/fn-financial.c: New file.

	(gnumeric_effect, gnumeric_sln, gnumeric_syd): New functions.

	* src/func.c (functions_init): Added financial functions.

	* src/func.h: Added extern.

Michael Meeks's avatar
Michael Meeks committed
166 167 168 169 170 171 172 173 174
1999-03-10  Michael Meeks <michael@imaginator.com>

	* src/fn-stat.c: Created.
	(gnumeric_stdev, gnumeric_stdevp, gnumeric_var, gnumeric_varp): Created

	* src/func.c (functions_init): added stat_functions

	* src/func.h: Added extern stat_functions.
	
175 176
1999-03-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>

177 178 179
	* src/fn-misc.c (gnumeric_clean): Add check here: only loop until
	the end of the string.

180 181 182
	* src/sheet.c (sheet_cell_foreach_range): Revert the arguments if
	they are in a different order.

183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
1999-03-08  Takashi Matsuda <matsu@arch.comp.kyutech.ac.jp>

	* plugins: new text plugin. 	

	Add new plugin TXT for simple text inport/export
	tab separated text. multiple sheet in a workbook is separated by
	'\f' character.
	If first line of each sheet is not include tab, then that line is
	interpreted as sheet name.

	* src/gnumeric-sheet.c: Add new mean for hard-coded keyboard short
	cut CTRL-Return.  Because ItemEdit does not support XIM, I must
	click the entry whenever I want to input janapese character.  If
	user does not edit the cell, this key combination switchs a
	keyboard focus to entry .

	* Replace gdk_font_load() with gdk_fontset_load()
	src/style.c gdk_font_load() makes impossible to show international
	string.

	* src/clipboard.h 'copy by value' was not possible because of
	miss-definition of PASTE_* enume.

	* src/file.c: gnumeric_notice was called with wrong arguments.

Michael Meeks's avatar
Michael Meeks committed
208 209 210 211 212
1999-03-07  Michael Meeks  <michael@imaginator.com>

	* src/cell.c (cell_set_format_from_style): Removed sluggish
	re-drawing code: unneccessary.

213 214 215 216
1999-03-05  Michael Meeks  <michael@imaginator.com>

	* src/cell.c (cell_set_color_from_style): Implemented.

Michael Meeks's avatar
Michael Meeks committed
217 218 219 220 221 222
1999-03-03  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-formula.c (parse_data_new): Trap null pointers
	on entry, ( coming from biff_get_text ).
	(ms_excel_parse_formula): Removed nasty static buffers.
	
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
1999-02-23  Bruno Unna  <bruno@iac.com.mx>

	* src/dialog-cell-format.c (create_background_radio): Activated
	the patterned background control (although in my machine the
	boxes are all black) and added a radio button to let the
	user do nothing with backgrounds (analogous to the one in
	foreground section).

	* src/dialog-cell-format.c (apply_coloring_format): Now this
	functions takes into account the changes in create_background_radio,
	that is, if the user decides not to change the background,
	the background will not be changed. Also, assigned default
	values to some variables, just to avoid an annoying warning.

	* src/dialog-cell-format.c (create_coloring_page): If there
	are different backgrounds in the range, select by default
	the "no change" radio button for the background.

241 242 243 244 245 246 247 248 249 250
1999-02-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_draw): If the cell has a render_color (provided
	by the format specification), use that for the foreground.

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

	* src/file.c (workbook_save_as): Append the extension of the
	default format if no colon is specified

251 252 253 254 255 256 257 258 259 260 261 262
1999-02-22  Tim Mooney  <mooney@dogbert.cc.ndsu.nodak.edu>

	* plugins/guile/plugin.c (func_scm_apply): Initialization of
	structure is done in the function body, rather thatn when it is
	declared.  This is necessary because struct initializer must be
	determinable at compile time, and those aren't. 

	* src/expr.c (eval_expr): Add at least one statement to the
	default: handler in the case. 

	* src/fn-math.c: provide a break for default handlers.
	* src/item-edit.c (entry_event): ditto
Arturo Espinosa's avatar
Arturo Espinosa committed
263
	* src/sheet-autofill.c (fill_item_destroy): ditto.
264 265 266 267 268 269 270 271 272 273 274
	
	* src/dialog-cell-format.c (create_number_format_page): Initialize
	in the body, like above.
	
1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* plugins/guile/plugin.c (func_scm_apply): Initialize the
	cell_ref.sheet to NULL.

1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
	
275 276
	* src/sheet.c (sheet_cell_remove_internal): Queue recalcs for
	cells that depend on cells that are being destroyed.
277 278
	(clear_cell_content): Added a call to workbook_recalc 
	(sheet_clear_region_content): same.
279

280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
1999-02-21  Michael Meeks <michael@imaginator.com>

	* plugins/excel/ms-formula.c FORMULA_PTG_EXP: Fixed several bugs.

	* plugins/excel/ms-excel.c (ms_excel_set_cell_font, biff_font_data_get_style_font):
	Body of the former moved to the latter, loop invariant code removed for
	big speedup.
	(ms_excel_set_cell_xf): Burdern of border color stuff moved to
	(ms_excel_palette_get): New routine to cache and create
	StyleColor records as needed.
	(ms_excel_sheet_insert): Fixed so no NULL pointers can escape
	into cell_set_text.
	(ms_excelReadWorkbook): Removed BIFF Usage chart, its slow.
	(biff_nasty_font_check_function): Sorts out font sillyness.
	(biff_xf_data_new): Added cached style_format pointer
	(biff_xf_data_destroy): unref style_format if allocated.

	* src/cell.c (cell_set_format_from_style): Implemented.
	
299 300
1999-02-19  Raja R Harinath  <harinath@cs.umn.edu>

301 302 303
	* doc/C/Makefile.am (install-data-local): Use $(mkinstalldirs) not
	$(topsrcdir)/mkinstalldirs. 

304 305 306 307 308
	* src/Makefile.am: Use $(GNOME_CONFIG) instead of `gnome-config'
	to run the gnome-config script.
	(BUILT_SOURCES): Swap with GNUMERIC_CORBA_GENERATED to be 
	conceptually clean.

309 310
1999-02-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>

Miguel de Icaza's avatar
Miguel de Icaza committed
311 312
	* src/fn-misc.c (gnumeric_min): Implement ISERROR.

313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
	* src/clipboard.c (paste_cell): Do not render the value if the
	result is an error.

	* src/cell.c (cell_copy): Do not copy the value of a cell when the
	value is NULL (due to the cell having an error).

	* src/expr.c (eval_expr): Evaluate binary operations in parts to
	keep the correct error message on an operation if possible.
	(eval_expr): Propagate errors.

	* src/item-edit.c (item_edit_draw): Sync the before-cursor and
	after-cursor Y-display text cordinate.

	* src/expr.c (eval_funcall): Add type checking for the simple
	functions. 

	* doc/C/Makefile.am (install-data-local): use topsrcdir here (fix
	from Ian Campbell <ijc25@cam.ac.uk>

	* src/fn-math.c (gnumeric_not): Implement NOT.

334 335 336 337 338
	* src/number-match.c (format_create_regexp): Allow upper case
	format codes.

	* src/format.c: ditto.

Michael Meeks's avatar
Michael Meeks committed
339 340 341 342 343
1999-02-18  Michael Meeks <michael@imaginator.com>

	* plugins/excel/ms-formula.c (ms_excel_parse_formula):
	case FORMULA_PTG_ATTR: Added 'Optimised SUM' functionality,
	Generaly made output less verbose.
Michael Meeks's avatar
Michael Meeks committed
344 345 346 347 348 349 350
	
	* plugins/excel/ms-excel.c: BIFF_DBCELL, ignore it, its
	not interesting.
	(ms_excel_set_cell_xf, biff_format_data_lookup,
	biff_format_data_destroy, ms_excel_workbook_new,
	ms_excel_workbook_destroy): Implemented formatting.
	
351 352 353 354 355 356
1999-02-17  Michael Meeks <michael@imaginator.com>

	* plugins/excel/ms-excel.c (biff_get_rk): moved RK number
	extraction into function.
	Added MULRK support: the lost numbers arrive !

Arturo Espinosa's avatar
Arturo Espinosa committed
357 358
1999-02-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

Arturo Espinosa's avatar
Arturo Espinosa committed
359 360
	* src/fn-math.c (gnumeric_trunc): Implement TRUNC.

Arturo Espinosa's avatar
Arturo Espinosa committed
361 362 363 364 365 366 367
	* src/func.c (function_iterate_argument_values): Do not evaluate a
	subexpression if the previous expression failed due to an error.
	Basically: add a check to the eval return value.   

	I took this oportunity to check all the source and this was the
	only buggy spot.

368 369 370 371 372 373 374 375 376 377 378 379 380 381
1999-02-16  Michael Meeks  <sca20@cam.ac.uk>

	* plugins/excel/ms-excel.c: Fixed many bugs in my
	understanding of hash table functions.
	Added rudimentary NAME stuff.
	made error lookup global.
	Fixed up Header / Footer functionality.
	(ms_excel_sheet_new, ms_excel_sheet_insert,
	ms_excel_read_sheet): Added 'blank' field to excel_sheets,

	* plugins/excel/ms-formula.c: Added puzzling
	PTG_NAME stuff, this is really wierd.
	PTG_ERR added.
	
382 383 384 385 386 387 388 389 390
1999-02-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (change_auto_expr_menu): OOps I got too excited
	here using my helper routine: Now we do not destroy this helpful
	menu. 

	* src/widget-editable-label.c (editable_label_set_text): Bug fix:
	sometimes this code is invoked with its argument being el->text. 

391 392 393 394 395 396 397
1999-02-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (workbook_new): Make a local copy of the toolbar,
	as we use this to update the radio buttons. 
	(workbook_do_destroy): Free the toolbar.
	(workbook_feedback_set): Use the per-workbook toolbar here.

398
1999-02-14  Michael Meeks  <sca20@cam.ac.uk>
399 400 401 402 403 404 405

	* plugins/excel/ms-formula.c: Inserted a whole scad
	of math functions into translation table.
	(parse_list_to_equation): g_strdupped return values.
	FORMULA_PTG_STR: Updated old and broken code.
	* src/about.c (dialog_about): Added Sean.

406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
1999-02-13  Bruno Unna  <bruno@iac.com.mx>

	* src/dialog-cell-format.c (create_foreground_radio): Added a
	radio button to let the users 'no change' the text colour, useful
	when there is a range selected with differently colored cells
	and it is desired to change the background of them without
	touching the foreground.

	* src/dialog-cell-format.c (create_coloring_page): When there
	are different foreground colours in the selected cells, the
	default selection is 'no change'.

	* src/dialog-cell-format.c (apply_coloring_format): If there
	is no need to make changes to the foreground color of the
	cells, avoid doing them.

422 423 424 425 426 427 428 429
1999-02-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-cursor.c (item_cursor_target_region_ok): Warn the user
	if he overwrites something accidentally by dropping cells in the
	target location.

	* src/sheet.c (sheet_is_region_empty): New function.

430 431 432 433 434 435 436 437 438 439 440 441 442
1999-02-12  Michael Meeks  <sca20@cam.ac.uk>

	* plugins/excel/ms-excel.c (biff_get_global_string): 
	Drasticly simplified, accelerated and in-lined out.
	(biff_get_text): Fixed using unicode spec, various
	updates to calls to it, fixing offsets.
	Removed lots of debug output to speedup
	
1999-02-10  Sean Atkinson  <sca20@cam.ac.uk>

	* src/fn-math.c (callback_function_sum): enhanced warning for
	unknown value->type.

443 444 445 446
1999-02-12  Frederic Devernay  <devernay@istar.fr>

	* plugins/perl/perl.c: Handle the #define dirty in perl-thread.

447 448 449 450 451 452 453 454 455 456 457
1999-02-12  Bruno Unna  <bruno@iac.com.mx>

	* src/cell.c (cell_draw): Now the function draws the cell
	using the cell background color setting. Although it does
	the job, I guess there must be a better way to do it. Thanks
	to Michael for the hint.

	* src/item-grid.c (item_grid_draw_cell): Commented out the lines
	involved with patterns display in the cell, for that code is
	not ready yet.

458
	* src/dialog-cell-format.c (create_coloring_page): Reactivated
459 460
	the background selection panel of the coloring page.

461
	* src/dialog-cell-format.c (create_background_radio): Commented out
462 463
	the addition of the pattern selection for a cell.

464 465
1999-02-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

466 467 468 469
	* src/workbook.c (workbook_detach_sheet): Be less forgiving as to
	removing sheets with pending references.
	
	(sheet_action_delete_sheet): Add a test for
470 471 472
	dependencies when removing a sheet
	(workbook_can_detach_sheet): New function.

473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
	* src/cell.c (cell_relocate): When relocating a cell with a
	formula, always mark it as changed.  We were doing that before
	only for the case where the location had changed, but we use
	cell_relocate in other cases as well.

	* src/fn-string.c (gnumeric_lower, gnumeric_upper): These
	functions were wrong.  They were never incrementing the pointer
	and they were releasing the wrong pointer.

	* src/clipboard.c (paste_cell): When pasting a cell, mark the
	contents as modified.

	* src/file.c (file_saver_is_default_format): Make sure the saver
	is always set.

Michael Meeks's avatar
Michael Meeks committed
488 489 490 491 492 493
1999-02-10  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-excel.c (ms_excel_read_cell): BOOLERR booleans
	hard-translated to 1, 0: not a good solution to problems with TRUE.
	* src/fn-string.c (gnumeric_upper, gnumeric_lower): Add increment
	
494 495 496 497 498 499 500 501 502 503 504 505 506
1999-02-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/parser.y: Apparently string concatenation operator in Excel
	has the lower priority.

	* src/workbook.c (workbook_detach_sheet): New function used to
	detach a sheet from a workbook.
	(sheet_menu_label_run): New routine.  Invoked on button-3 on the
	sheet label.

	* src/gnumeric-util.c (gnumeric_auto_kill_popup_menu_on_hide): New
	routine to deallocate menus when they go to unshown state

507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530
1999-02-09  Michael Meeks  <michael@imaginator.com>
	
	* plugins/excel/ms-excel.c (ms_excel_sheet_new,
	ms_excel_workbook_attach, biff_boundsheet_data_new):
	Major sheet allocation re-organisation, hash boundsheet data.
	(ms_excel_sheet_set_version, ms_excel_sheet_set_index,
	ms_excel_workbook_get_sheet): re-hashed API
	* plugins/excel/ms-formula.c: PTG_MISSARG implemented

1999-02-08  Sean Atkinson  <sca20@cam.ac.uk>

	* plugins/excel/ms-excel-biff.h, ms-excel.c:
	added BIFF_EXTERNCOUNT
	* plugins/excel/ms-excel.c (ms_excel_read_sheet): 
	stubbed BIFF_EXTERNSHEET, stubbed SUPBOOK
	(biff_get_externsheet_name): implemented inter-sheet references
	* plugins/excel/ms-formula.ch: added FORMULA_PTG_CONCAT
	(ms_excel_parse_formula): implemented FORMULA_PTG_REF_3D

1999-02-07  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-formula.c (ms_excel_parse_formula):
	FORMULA_PTG_ATTR stubs: can ignore most of AttrSpace.
	
531 532 533 534 535 536 537 538
1999-02-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_draw): Make the clip region one pixel bigger to
	account for the offset.
	(cell_draw): Do not add one to text_base.

	* src/item-edit.c (item_edit_draw): Take into account the margin_b.

539 540 541 542 543 544 545 546 547
1999-02-07  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-formula.c: Fixed memory leaks
	* plugins/excel/ms-excel.c: Fixed several memory leaks

1999-02-07  Sean Atkinson  <sca20@cam.ac.uk>

	* plugins/excel/ms-formula.ch: added FORMULA_PTG_NUM

548 549 550 551 552
1999-02-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_set_text_simple): Allow a single "=" to
	represent a string.

553 554 555 556 557 558 559 560 561 562 563 564 565 566 567
1999-02-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/gnumeric-util.c (gnumeric_notice): Now we take a Workbook
	argument to bind the dialog boxes properly to the main window.  We
	use gnome_messagebox now to report errors.  We now take a type
	parameter for the message box type.

	* plugins/ff-csv/csv-io.c: Use gnumeric_error

	* src/workbook.c (wb_input_finished): Call sheet_set_current_value
	instead of the cancel pending input routine.

	* Moved src/csv-io.[ch] to the plugins/ff-csv directory and
	converted them to 
	
Vincent Renardias's avatar
Vincent Renardias committed
568 569 570 571 572
1999-02-06  Vincent Renardias <vincent@ldsol.com>

	* src/csv-io.h src/csv-io.c: Added code to load
	csv files.

573 574
1999-02-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

575 576 577 578 579 580 581
	* src/file.c (fill_save_menu): Creates an option menu with the
	file format to save on.
	(workbook_save_as): Use the saver selected by the user.
	(saver_activate): Keep track of the current file save format, set
	as default.
	gnumeric_file_savers, gnumeric_file_openers: made static. 

582 583 584
	* src/sheet.c (sheet_destroy_styles): Release the proper style, I
	was releasing a different structure.

585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
1999-02-06  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-formula.c: Cut out lots of debug in working
	cases

	* plugins/excel/ms-excel.c: Implemented a hash table for fast
	font lookups, removed and simplified dead font code.

	* plugins/excel/ms-excel.c (ms_excel_set_font): Bold if boldness
	greater or equal to threshold, not just equal.
	
	* plugins/excel/ms-excel.c (ms_excel_read_cell): Added support
	for BIFF_STRING records, and re-organised switch statement. Added
	BIFF_BOOLERR support.

Changwoo Ryu's avatar
Changwoo Ryu committed
600 601 602 603
1999-02-06  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>

	* gnumeric.desktop: Added Korean translations.

Michael Meeks's avatar
Michael Meeks committed
604 605 606 607 608
1999-02-04  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-excel.ch: Major overhaul of how XF styles
	are looked up, sparation of Cell / style XF records. Hash
	table implemented for lage speedup and code simplification.
609

610 611 612 613
1999-02-04  Michael Meeks  <michael@imaginator.com>

	* plugins/excel/ms-biff.h: Added a biff_getdouble function for
	G_BIG_ENDIAN machines, since I don't have one... [begs forgiveness]
614

615 616 617 618 619 620 621 622 623 624
1999-02-03  Sean Atkinson  <sca20@cam.ac.uk>

	* plugins/excel/ms-formula.c (ms_excel_parse_formula):
	FORMULA_PTG_INT and FORMULA_PTG_BOOL added

	* plugins/excel/ms-formula.c:
	Implemented remaining binary operators and unary operators +,-,%
	interpolated operator precedences.
	formula_func_data[] : added AND, OR, V/H LOOKUP functions
	
625 626 627 628 629 630
1999-02-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (workbook_configure_minimized_pixmap): Provide an
	icon.  Note that I could not get this to work on fvwm2 though.  I
	will wait for other people to try it.

631 632 633 634 635 636 637
1999-02-01  Jaka Mocnik  <jaka.mocnik@kiss.uni-lj.si>

	* src/widget-editable-label.c (el_realize): new function.
	set the font for text_item here to match the widget's style.
	(editable_label_set_text): don't bother to set the font when
	creating the text_item, as the style is not set properly yet.
	
638 639 640 641
1999-01-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/fn-misc.c: Added documentation for the functions in this file.

642 643 644 645 646 647 648 649 650 651 652 653 654
1999-01-26  Bruno Unna  <bruno@iac.com.mx>

	* src/dialog-cell-format.c (create_coloring_page): Now, the
	method to find out whether a cell has been colored or not
	is to compare the RGB values to zero.
	Commented out the attachment of background_radio_list
	because the functionality is not ready yet.

	* src/dialog-cell-format.c (apply_coloring_format): Added support
	for background solid coloring. Howver, changes to the style of
	the cells in this regard have no effect in the display. The reason
	for this is unknown to me as of now.

655 656 657 658 659
1999-01-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-autofill.c (sheet_autofill_dir): Add a call to
	sheet_cell_remove before calling cell_destroy.

660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
1999-01-23  Bruno Unna  <bruno@iac.com.mx>

	* src/dialog-cell-format.c: Reactivated the 'Coloring' page
	in struct array cell_format_pages.

	* src/dialog-cell-format.c (create_coloring_page): Lots of
	changes, practically a full rewrite. One problem is that cells
	are thrown into this world with the flag STYLE_FORE_COLOR of
	their style set, which causes a lack of synchronization with
	what is expressed in the global variable foreground_radio_list.

	* src/dialog-cell-format.c (apply_coloring_format): By the moment
	being, deactivated the call of function cell_set_pattern, along
	with the STYLE_PATTERN bit flag of style->valid_flags. I will
	concentrate in fg/bg coloring of the cell.

676 677
1999-01-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>

678 679 680 681 682 683 684
	* src/widget-editable-label.c 	(el_init): Set the scroll region
	to something very big.  This fixes the label-sliding problem.
	Thanks to Federico for his quick debugging eye.
	
	(el_button_press_event): WOW.  I am amazed.  I now gtk grab add
	and if I receive a widget->window different than the canvas, I
	drop the grab and stop editing.
685

686 687 688 689 690
1999-01-19  Francisco Bustamante  <pancho@nuclecu.unam.mx>

	* src/workbook.c (workbook_delete_event)  Return TRUE when the
	workbook should not be destroyed. (i.e. the user presses cancel)

691 692 693 694 695 696
1999-01-19  Jeff Garzik  <jgarzik@pobox.com>

	* src/dialog-cell-format.c, src/gnumeric-util.c,
	  src/sheet-view.c, src/workbook.c:
	Renamed deprecated Gtk+ functions.

697 698 699 700 701 702 703 704
1999-01-18  Bruno Unna  <bruno@iac.com.mx>

	* src/dialog-cell-format.c: Now the terminator element of the
	cell_format_pages has three null elements (as stated in the struct
	definition), instead of two. Fixed up some comments. Started
	to pursue the bug that causes that when adding the "Coloring"
	tab the program generates a Gdk-ERROR. Modifications not commited.

705 706 707 708 709 710 711 712 713 714
1999-01-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/gnumeric-sheet.c (gnumeric_sheet_can_move_cursor): Do not
	enable item editing if sheet is not in edit mode.

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

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Mark sheet
	as being edited.

Arturo Espinosa's avatar
Arturo Espinosa committed
715 716 717 718 719
1999-01-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/file.c (dialog_query_load_file): Set the window modal.
	(workbook_save_as): ditto.

720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750
1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/format.c (format_value): Use 0.0########## instead.  Looks saner.

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

	* src/workbook.c (change_auto_expr_menu): Use the event->button
	field to get the popup menu to behave correctly.
	(workbook_setup_auto_calc): Put the information display inside a
	GtkFrame. 

	* src/item-bar.c (set_cursor): This routine can be invoked before
	we are realized.

	* src/workbook.c (sheet_label_button_press): We need to do the
	page flipping ourselves, as the GtkNotebook wont take events if
	they are not for a window it knows about.

	* src/widget-editable-label.c (el_button_press_event): Forward
	events to parent.

	* src/parser.y: New non-terminal "cellref".  Make this
	non-terminal include CELLREF and SHEETREF!CELLREF constructions. 

	* src/expr.c: Changed the whole module according to the dropping
	of VALUE_CELLREF.

	* src/expr.h: VALUE_CELLREF did not make much sense.  Better add
	to the ExprTree union a CellRef field specifically for OPER_VAR
	nodes.

751 752
1999-01-10  Michael Meeks <michael@imaginator.com>

753
	* plugins/excel/ms-excel.c (ms_excelReadWorkbook): Only believe the
754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792
	first BOF with regard to BIFF version number, other BOFs seem to lie.

1999-01-10  Nick Lamb <njl98r@ecs.soton.ac.uk>

	* plugins/excel/ms-excel.h: Added global string table to EXCEL_WORKBOOK

	* plugins/excel/ms-excel.c (ms_excel_workbook_new): Setup new fields,
	(ms_excel_read_cell): case BIFF_STRING_REF,
	(biff_get_global_string): Retrieves a global string from the EXCEL_WORKBOOK table.
	(ms_excel_read_cell): case BIFF_STRING_REF,
	(ms_excelReadWorkbook): case BIFF_STRINGS reads the global table.

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

	* plugins/excel/ms-excel.c: Rehash of border code to use neater centralised
	enumerations / types.
	(get_style_color_from_idx): Implemented.
	
	* src/style.h: Major expansion of 'StyleBorderType', massive simplification
	of StyleBorder to use directional [ StyleSide ] arrays instead of lots of
	unique member names.

	* src/style.c (border_equal, border_hash, style_border_new,
	style_border_new_plain): Major overhaul and shrink to fit new structure.

	* src/xml-io.c: Updated BorderTypes array to give textual names to
	the new border types, also created an array of text names for StyleSides.
	
	* src/xml-io.c (readXmlStyleBorder,writeXmlStyleBorder): Use new
	arrays and struct.

	* src/cell.c, src/cell.h: Added cell_set_border.
	
1999-01-10  Thomas Meeks  <meekte95@christs-hospital.org.uk>

 	* plugins/excel/ms-excel.c (ms_excel_read_cell): 
 	added header and footer Biff code.
 	* plugins/excel/ms-excel-biff.h: the defines. 
	
793 794 795 796 797
1999-01-10  Changwoo Ryu  <cwryu@adam.kaist.ac.kr>

	* src/workbook.c (cb_sheet_check_dirty): Use g_strdup_printf
	instead of g_strconcat.  More easy to translate the string.

798 799
1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

800 801 802 803 804
	* src/workbook.c (wb_input_finished): Use
	sheet_accept_pending_input instead of sheet_set_current_value.
	(workbook_setup_auto_calc): Stick the information display inside
	the status bar.

805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835
	* src/eval.c (add_value_deps): Reorganization.  Hanlde
	VALUE_CELLREF here and make OPER_VAR and OPER_CONSTANT call
	add_value_deps. 

	* src/expr.c (do_expr_tree_relocate, expr_tree_relocate): New
	routine that returns an ExprTree relocated.
	(value_copy_to): Handle the VALUE_CELLREF type.

	* src/expr.h: define VALUE_CELLREF

	* src/parser.y (yylex): Type fix.
	When creating values of type VALUE_CELLREF, set this value. 

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

	* src/sheet.c (sheet_move_column): Update to new cell_relocate
	semantics.
	(sheet_shift_row): ditto.
	(sheet_insert_row): ditto.
	(sheet_delete_row): ditto.
	(sheet_shift_col): ditto.

	* src/clipboard.c: Update to new cell_relocate semantics.
	Remove the old GTK compatibility code.

	* src/cell.c (cell_relocate): We do not need to reference this
	formula. 
	This routine now takes delta-x and delta-y values for the
	relocation, instead of absolute cordinates.  To implement the
	proper semantics of cell movement that other spreadsheets implement

836 837 838 839 840 841 842 843 844 845 846
1999-01-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
	result of gtk_widget_event() if we get to the switch's default
	case.
	(gnumeric_sheet_key): Return FALSE in the default case, since we
	did nothing there.

	* src/workbook.c (open_cmd): If the file-open dialog was
	cancelled, it will return NULL.  Take this into account.

847 848 849 850 851
1999-01-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (workbook_setup_status_area): We do not use the
	progress bar feature currently.

852 853 854 855
1999-01-07  Nat Friedman  <nat@nat.org>

	* src/workbook.c: Added hints to the rest of the custom menu items.
	
856 857 858 859 860 861 862 863 864
1999-01-07  Nat Friedman  <nat@nat.org>

	* src/workbook.c (workbook_new): Install the menu hints.
	(workbook_setup_status_area): Create the GnomeAppBar.

	Added hints to most of the custom menu items.

	* src/sheet.h: Added the appbar field to the Workbook structure.

865 866 867 868 869
1999-01-07  Nat Friedman  <nat@nat.org>

	* src/workbook.c: Use GNOMEUIINFO_MENU_ABOUT_ITEM and the new
 	GNOMEUIINFO_MENU trees.

870 871 872 873 874
1999-01-07  Nat Friedman  <nat@nat.org>

	* src/workbook.c: Pass the menu item description to
 	GNOMEUIINFO_MENU_NEW_ITEM.

875 876 877 878 879
1999-01-06  Nat Friedman  <nat@nat.org>

	* src/workbook.c: Use the standard GNOMEUIINFO macros from
 	gnome-app-helper.h.

880 881 882 883
1999-01-06  Nat Friedman  <nat@nat.org>

	* src/workbook.c: Use the gnome-uidefs.h macros for the
 	accelerators.
884
	
885

886 887 888 889 890 891 892 893
1999-01-04  Havoc Pennington  <hp@pobox.com>

	* src/fn-date.c (gnumeric_date): Allocate the GDate on the stack,
	saves some small amount of time. Check user-provided
	month/day/year for validity before using it.
	(gnumeric_today): Allocate GDate on the stack.
	(gnumeric_now): Ditto.

Miguel de Icaza's avatar
Miguel de Icaza committed
894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924
1999-01-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet.c (sheet_rename): New routine.

	* src/workbook.c (workbook_attach_sheet): Use a EditableLabel for
	the notebook tab.
	(workbook_rename_sheet): New routine.

	* src/widget-editable-label.c:  New widget.  This is a label that
	can be edited if you double click on it.  This uses the same trick
	of the gnome-icon-item to provide the editing facilities.

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

	* src/workbook.c (workbook_setup_status_area): Use the style font,
	not "fixed".
	(workbook_setup_status_area): One hack down.  Use GTK_ANCHOR_NW to
	achieve the same effect I had with my previous hack.

	* src/dialog-cell-comment.c (dialog_cell_comment): New file.
	Implements the cell comment dialog box.

	* src/cell.c (cell_relocate): Only call cell_comment_reposition is
	there is a cell comment bound to this cell.

	* src/format.c (format_value): No format means "General" format as
	well.
	If the value has decimal numbers use "0.00##########" for the
	formatting instead of 0.00.
	

925 926 927 928 929
1998-01-03  Jeff Garzik  <jgarzik@pobox.com>

	* src/number-match.c, src/plugin-manager.c, src/sheet.c:
	Warning fixes.

930 931
1999-01-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

932 933 934 935 936
	* src/expr.c (do_expr_decode_tree): Add termination NULL to the OPER_NEG
	operation. 
	
	* (eval_expr): Add support for non-local cells here.  I am
	impressed how simple this was.
937 938 939 940 941 942 943 944 945 946 947 948 949 950 951

	* src/parser.y: Add rules for cell references outside of the
	current sheet.

	* src/main.c: New option --debug.  Turns on the zoom in/zoom out
	buttons on the main sheet.

	* src/workbook.c: Include the zoom in/zoom out buttons conditionally.

	* src/xml-io.c (xmlGetCoordinates): Load using double numbers the
	information. 

	* src/parser.y (yylex): Allow strings to be specified with "'"
	characters. 

952 953 954 955 956 957
1999-01-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-grid.c (item_grid_button_1): When starting a selection
	of cells during a formula edit, insert the currently clicked cell
	name. 

Jeff Garzik's avatar
Jeff Garzik committed
958 959 960 961 962 963
1998-12-30  Jeff Garzik  <jgarzik@pobox.com>

	* plugins/perl/perl.c, src/cell.c, src/expr.c, src/plugin.c,
	  src/sheet-autofill.c, src/sheet.c, src/workbook.c:
	s/g_copy_strings/g_strconcat/

964 965
1998-12-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

966 967 968 969 970 971 972 973 974 975 976 977 978 979 980
	* plugins/excel/boot.c: New file, this holds the probing and load
	wrapper code for Gnumeric to use as well as the initial format
	registering code. 

	* src/xml-io.c (xml_probe): New routine, used to probe if a file
	is a Gnumeric-xml file.

	* src/file.c (file_format_register_open,
	file_format_unregister_open, file_format_register_save,
	file_format_unregister_save): New routines used to register and
	unregister file formats in Gnumeric.

	* src/main.c (main): Boot xml and excel formats, since they now
	need to register themselves with the file.c code 

981 982 983 984 985 986 987 988 989
	* src/cell.h: cell->entered_text is back, now only used for typo
	correction.  Maybe I will use it for saving. 

	* src/fn-string.c (gnumeric_right): Use value_str.
	(gnumeric_char): same
	(gnumeric_left): same

	* src/expr.c (value_str): New function.

990 991 992 993 994 995 996 997 998
	* src/xml-io.c (writeXmlCell): Use cell_get_content instead of
	cell_get_text.

	* src/cell.c (cell_get_content): New function.

1998-12-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c: fix bug introduced yesterday.

999 1000 1001 1002 1003 1004 1005
1998-12-17  Tuomas Kuosmanen  <tigert@fun112.koivukyla.hoas.fi>

	* gnumeric.desktop: Added gnumeric program icon
	* Makefile.am: added the stuff to install the icon - 
	could someone check that I did it correctly?
	* gnome-gnumeric.png: the icon itself

1006 1007 1008 1009 1010 1011 1012
1998-12-16  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c: Use GNOME stock icons for the stuff that hsa
	icons on Gnome Stock.

	* gnumeric.keys.in: New file that defines the mime-type for Gnumeric

1013 1014
1998-12-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>

1015 1016 1017 1018 1019 1020 1021 1022 1023
	* src/workbook.c (workbook_setup_status_area): Do not set_usize()
	on the info item.

	* src/sheet-view.c (new_canvas_bar): Set the width or height to -1
	in set_usize().

	* src/gnumeric-sheet.c (gnumeric_sheet_new): Do not set_usize() on
	the sheet.

1024 1025 1026 1027 1028
	* src/item-bar.c: Updated for the new canvas item API.
	* src/item-cursor.c: Likewise.
	* src/item-edit.c: Likewise.
	* src/item-grid.c: Likewise.

1029 1030 1031 1032 1033 1034
1998-12-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (workbook_new): Use the new gnomeapp api.

	* src/gnumeric-sheet.c: Use the new canvas.
	
1035 1036 1037 1038 1039
1998-12-14  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* src/gnumeric-sheet.c (gnumeric_sheet_new): Use
	gtk_widget_set_usize() instead of gnome_canvas_set_size().
	* src/pattern-selector.c (pattern_selector_new): Likewise.
1040
	* src/sheet-view.c (new_canvas_bar): Likewise.
1041

1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054
1998-12-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* src/fn-date.c (gnumeric_year_month_day, gnumeric_now,
	gnumeric_today,gnumeric_date): 
	* src/workbook.c (insert_current_date_cmd): 
	* src/number-match.c (compute_value): Changed to use the glib
	GDate type instead of the lib_date functions. Fixed off by-one
	error for some date functions (e.g. =today ()) was one day to
	early).

	* src/utils.c, src/utils.h (g_date_serilal, g_date_serial_new):
	New functions for handling the gnumeric serial of a date.

1055 1056 1057 1058 1059
1998-12-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-cursor.c (item_cursor_set_bounds_visibly): Update the
	cursor position as well.

Michael Meeks's avatar
Michael Meeks committed
1060 1061 1062 1063 1064 1065 1066 1067
1998-12-10  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-excel.c (ms_excel_read_cell): Fixed serious bug
	in IEE floating point number reading from RK records.

	* plugins/excel/ms-formula.c (ms_excel_parse_formula): Implemented
	string expressions in formulae, MS stores numbers like this !

1068 1069 1070 1071 1072
1998-12-10  Owen Taylor  <otaylor@redhat.com>

	* src/workbook.c (filenames_dropped): Make toplevel
	windows drop targets for files.

1073 1074 1075 1076 1077
1998-12-09  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.c: Indented correctly, implemented writes
	of all file lengths.

1078 1079 1080 1081 1082 1083
1998-12-08  Jaka Mocnik  <jaka.mocnik@kiss.uni-lj.si>

	* src/dialog-paste-special.c (dialog_paste_special): changed
	gnome_dialog_run_modal() to gtk_window_set_modal() and
	gnome_dialog_run().

1084 1085 1086 1087 1088
1998-12-06  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.c: Much trivial bug fixing, API fixups,
	testing and stabilizing.

Michael Meeks's avatar
Michael Meeks committed
1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099
1998-12-05  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.c: Major work on creation of readable
	macros for accessing obscure fields, removing magic numbers from
	main code.
	(ms_ole_create): Created to create new OLE files.

	* plugins/excel/ms-excel-biff.h: Update comments, and re-arrange.
	
	* plugins/excel/ms-biff.h: Commenting fixes

1100 1101 1102 1103 1104
1998-12-04  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* configure.in (ALL_LINGUAS): Added Japanese translation courtesy
	of Mitsuru Oka <moka@globe.to>.  Also updated the .desktop file.

1105 1106
1998-12-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1107 1108 1109 1110 1111 1112 1113
	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_row,
	gnumeric_sheet_set_top_col): New functions to set the sheet top
	column and row respectively.

	(gnumeric_sheet_bar_set_top_row, gnumeric_sheet_bar_set_top_col):
	Renamed from their old names to reflect their actual action.

1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125
	* src/item-cursor.c (item_cursor_autofill_event): Do not pass
	negative numbers to item_grid_find_col and item_grid_find_row. 

	* src/item-grid.c (item_grid_find_row, item_grid_find_col): Check
	for possitive numbers. I think the right fix is to accept negative
	numbers and find the column even if the number is negative instead
	of this ugly restriction.

1998-11-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet.c (cellref_name): Add more space.

1126 1127 1128 1129 1130
1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* src/Makefile.am: make Gnumeric-impl.c dependend on Gnumeric.h to
	make it compile the idl-file before compiling Gnumeric-impl.c

1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141
1998-11-28  Michael Meeks    <mejm2@cam.ac.uk>

	* plugins/excel/ms-formula.c(ms_excel_parse_formula): Fixed serious
	memory leaks on return values from cellref_name

	* plugins/excel/ms-formula.c(getRefV7): Now sets CellRef->sheet properly
	(getRefV8): same.

	* plugins/excel/ms-ole.c: Several minor changes, moving seperate
	structures back into the raw datastream with macros.
	
1142 1143
1998-11-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1144 1145 1146 1147 1148 1149
	* src/gnumeric-util.c (gnumeric_notice): Do not use
	gnome_dialog_run_modal. 

	* src/dialog-goto-cell.c (dialog_goto_cell): Do not use
	gnome_dialog_run_modal 

1150 1151 1152 1153 1154 1155
	* src/sheet.c (sheet_mark_clean): New routine to mark a sheet as
	not modified.

	* src/workbook.c (workbook_mark_clean): New routine to mark a
	workbook as not modified.

1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168
1998-11-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-autofill.c (autofill_cell): Simplify by using
	cell_set_formula_tree 

	* src/expr.c (expr_parse_string): Take a sheet argument
	(expr_decode_tree): Same
	
	* sheet.c (cellref_name): Now takes a sheet argument and decodes the
	cellref depending on the sheet.
	
	* cell.c (CellRef): Now they include the sheet location.
	
1169 1170 1171 1172 1173
1998-11-28  Michael Meeks    <mejm2@cam.ac.uk>

	* plugins/excel/ms-ole.c, plugins/excel/ms-ole.h: Total re-write
	of internal interfaces, code streamlined, '?' operators expunged.

Miguel de Icaza's avatar
Miguel de Icaza committed
1174 1175
1998-11-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188
	* src/item-grid.c (item_grid_realize): Oops.  This was not a bug.
	gc was actually initialized as being item_grid->grid_gc, it was
	just not obvious.

	* src/main.c (gnumeric_main): Fix the prototype.

	* src/dialog-goto-cell.c (dialog_goto_cell): Revert const from gtk-clist.

	* src/dialog-cell-format.c (create_number_format_page): Revert
	const from gtk-clist.

	* src/dialog-goto-cell.c (dialog_goto_cell): Revert const from gtk-clist.

Miguel de Icaza's avatar
Miguel de Icaza committed
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198
	* src/Gnumeric-impl.c: Empty stubs for now.
	
	* src/Makefile.am (GNUMERIC_CORBA_SOURCES): Add rules for
	compiling the CORBA support.

	* plugins/python/Makefile.am (LIBTOOL): This one needs xlibtool
	instead of our modified libtool.

	* plugins/sample/Makefile.am (GNUMERIC_SRC_DIR): Simplified Makefile.am

1199 1200 1201 1202 1203
1998-11-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-grid.c (item_grid_realize): Removed bogus calls to
	invalid gc.

1204 1205 1206 1207
1998-11-24  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* src/item-grid.c (item_grid_unrealize): Unref all the item_grid's GCs.

1208 1209
1998-11-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1210 1211 1212
	* src/dialog-goto-cell.c (dialog_goto_cell): Set the policy on the
	scrolled window.

1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
	* src/sheet.h: formula_cell_list *ONLY* exists in the Workbook,
	not on the Sheet.

	* src/sheet.c (sheet_cell_formula_link,	sheet_cell_formula_unlink): 
	Keep the formula on the Workbook, not on the Sheet.  Thanks to
	Havoc for reporting these bugs.
	
	* src/cell.c (cell_set_formula): Use cell_set_rendered_text to
	propery set the error messages.
	(cell_get_text): If value is NULL, use the rendered version of the
	text instead of re-rendering it.

1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237
	* src/dialog-cell-format.c (create_number_format_page): Put the
	clist inside a scrolled window for the new CList api.
	
	* src/dialog-define-names.c (dialog_define_names): ditto.
	
	* src/dialog-goto-cell.c (dialog_goto_cell): ditto
	

1998-11-23 Marin Purgar <pmc@iskon.hr>

	* src/dialog-cell-format.c: Style general was applied to more
	than one cell in various cases.

1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249
1998-11-18  Bruno Unna       <bruno@iac.com.mx>
	* src/style.c: added the default italic font as helvetica-oblique.

	* src/style.h: added declaration for new global variable
	  gnumeric_default_bold_font

	* src/gnumeric-util.c: enhanced the robusteness of the function 
	  font_get_italic_name. But it's not at a 100%, though.

	* plugins/excel/ms-excel.c: slight modification to the error 
	  tracking mechanism (font stuff in ms_excel_set_cell_font).

1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264
1998-11-15  Michael Meeks    <mejm2@cam.ac.uk>

	* plugins/excel/ms-ole.c(ms_ole_directory*): Created new directory
	API for ole files, such that the excel dependant stuff is now moved
	out of ms-ole.c into ms-excel.c

	* plugins/excel/ms-excel.c(find_workbook): Nicer routine using the
	directory API to find its file

	* plugins/excel/ms-ole.c(ms_ole_stream_open): Renamed from ~_new

	* plugins/excel/ms-ole.c: Re-organisation, code clean, many cases
	added throughout to make NULL pointers less harmful, and allow
	for turning into a library soon.

Michael Meeks's avatar
Michael Meeks committed
1265 1266 1267 1268 1269
1998-11-14  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-excel.c(ms_excel_set_cell_font): Fixed buffer
	overflow bug, and secured sprintf.

Bruno Unna's avatar
Bruno Unna committed
1270 1271 1272 1273 1274 1275 1276 1277 1278
1998-11-12  Bruno Unna       <bruno@iac.com.mx>

	* plugins/excel/ms-excel.c: added support for fount size.

	* plugins/excel/ms-excel.c: included ctype.h.

	* plugins/excel/ms-excel.c: initial hacks on font name importing,
	  from windoze to X.

1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298
1998-11-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/parser.y: 

	* src/workbook.c (workbook_new): Use case-insenstive routines when
	creating the hash table.
	(workbook_sheet_get_free_name): Find an unused name for a sheet. 
	(workbook_sheet_lookup): Looks up a sheet by name in a Workbook.
	(insert_sheet_cmd): New command to insert a sheet into a workbook.

	* src/utils.c (gnumeric_strcase_hash, gnumeric_strcase_equal):
	Routines used for strings hash tables that are not case
	sensitive. 

1998-11-12  Morten Wellinder <terra@diku.dk>

	* test-parser.c: Fix to compile with the new API

	* parser.y: Make the code more maintainable.

1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316
1998-11-12  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.c, plugins/excel/ms-ole.h: Massive changes
	renamed many functions to conform to a sensible naming convention.
	Cleaned the interface, and structure names.

	* plugins/excel/ms-excel-biff.h: Split from ms-biff.h removing all
	the excel specifics so that the biff & ole stuff can be turned into
	a library sometime.

	* src/workbook.c(workbook_read): Updated to new structure names.

	* plugins/excel/ms-excel.c: Added list of array formulae, as yet
	unused, possibly unneccesary.

	* plugins/excel/ms-formula.c: Added support for slightly different
	array formula BIFF layout.

1317 1318 1319 1320 1321 1322 1323 1324
1998-11-11  Bruno Unna       <bruno@iac.com.mx>

	* src/gnumeric-util.c: Added function font_get_italic_name, 
	analogous to font_get_bold_name.

	* plugins/excel/ms-excel.c: added enhanced support for styles 
	(bold & italic). Included gnumeric-util.h.

Miguel de Icaza's avatar
Miguel de Icaza committed
1325 1326 1327 1328 1329 1330
1998-11-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/gnumeric-util.c (font_get_italic_name): Missing function.

	* src/parser.y: Use '^'.

Mark Probst's avatar
Mark Probst committed
1331 1332 1333 1334
1998-11-11  Mark Probst  <schani@obiwan.unix.cslab.tuwien.ac.at>

	* plugins/guile: Added guile plug-in.

1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363
1998-11-11  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-biff.h, plugins/excel/ms-excel.c: Removed fatal
	bug, and accelerated code by testing for DV in MULBLANK case.

	* plugins/excel/ms-excel.c(ms_excel_set_cell_xf): Out by one indexes
	causing serious attribute offset grief in fonts.

	* Rememberance_Day:
	They went with songs to the battle, they were young,
	Straight of limb, true of eye, steady and aglow.
	They were staunch to the end against odds uncounted,
	They fell with their faces to the foe.

	They shall grow not old, as we that are left grow old,
	Age shall not weary them, nor the years condemn.
	At the going down of the sun, and in the morning,
	We will remember them.

	Lest we forget.

1998-11-10  Bruno Unna       <bruno@iac.com.mx>

	* plugins/excel/ms-excel.c(ms_excel_set_font): Started implementing
	font styles properly.
	
	* src/gnumeric-util.c(font_get_bold_name, font_get_italic_name): Hacked
	both so they allow testing of new font code.

Michael Meeks's avatar
Michael Meeks committed
1364 1365 1366 1367 1368
1998-11-10  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.c(create_link_array): Truly
	brainless one suprised it took so long to surface.

1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394
1998-11-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-view.c (sheet_view_comment_get_points): Scale properly
	the points to be in window cordinates.

	* src/sheet.c (sheet_col_set_width): Move comments on column
	change. 

	* src/cell.c (cell_copy): Duplicated cells get col, row and sheet
	values set to NULL.

1998-11-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/fn-misc.c: Add ctype.h

	* src/sheet-view.c (sheet_view_comment_get_points): New utility
	routine used.
	(sheet_view_comment_relocate): New function used to relocate a
	comment canvas item in a cell to its new location.

	* src/cell.c (cell_relocate): Move the comments with the cell.
	(cell_realize, cell_unrealize, cell_comment_realize,
	cell_comment_unrealize): New functions used to create and destroy
	view-specific cell components (the comments are canvas objects
	that need to be created on a per-view basis).
	
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405
1998-11-10  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-ole.h: Added unsigned to WORD, LONG
	types.

	* plugins/excel/ms-formula.c(getRefV7, getRefV8): Fixed 
	bug in relative column retrieval.

	* plugins/excel/ms-formula.c(ms_excel_parse_formula):
	Squashed silly op-code bug, and got simple op-codes working.
	
1406 1407 1408 1409 1410 1411
1998-11-09  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-formula.c: Re-designed the translation
	code, abstracted, and implemented AVERAGE, MIN & MAX using
	StarOffice 4.0 to deduce the standard function numbers.

1412 1413 1414 1415 1416 1417 1418 1419 1420 1421
1998-11-08  Michael Meeks    <michael@imaginator.com>

	* plugins/excel/ms-formula.c: Major top to bottom changes
	basic hacked RPN to Infix parsing started in a rather nasty
	fashion. Much more work needed only 1 ( the SUM ) function
	supported.

	* src/cell.c (cell_split_text): Fixed string length malloc
	bug, out by 1 trashing stack.

1422 1423 1424 1425 1426 1427 1428 1429
1998-11-08  Michael Meeks    <michael@imaginator.com>

	* src/workbook.c, src/sheet.h, src/main.c (workbook_read):
	Added generic routine to read a file

	* plugins/excel/ms-excel.c: Major code overhaul, multiple bug
	fixes, BLANK, MULBLANK implemented & tested
	
1430 1431 1432 1433 1434 1435 1436 1437 1438 1439
1998-11-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c, src/workbook.c, src/sheet-view.c: Finish cell
	comment display routines.  Now we only need the dialog box to
	insert/edit a cell comment.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_set_comment): new implementation.

Miguel de Icaza's avatar
Miguel de Icaza committed
1440 1441
1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1442 1443 1444 1445 1446
	* src/fn-date.c (gnumeric_date): Fix longstanding off by one
	error.
	(gnumeric_today): ditto
	(gnumeric_now): ditto.

Miguel de Icaza's avatar
Miguel de Icaza committed
1447 1448 1449 1450 1451 1452 1453
	* Prepare for 0.4 release.
	
	* configure.in: Add test for new GTK+ selection code. 

	* src/clipboard.c: Make it work with both APIs: the old and the
	new one.  

1454 1455 1456 1457 1458
1998-10-28  Daniel Veillard <Daniel.Veillard@w3.org>

	* src/xml-io.c: now the basic I/O functions should be clean
	  removed all direct references to node->content.

1459 1460
1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

Miguel de Icaza's avatar
Miguel de Icaza committed
1461 1462 1463
	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Added
	keypad support. 

1464 1465
	* src/parser.y (dump_tree): Updated to use the new symbol table.

Miguel de Icaza's avatar
Miguel de Icaza committed
1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486
1998-10-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/parser.c (dump_tree): Use extra argument.

	* src/expr.c (function_call_with_values): Use the extra argument
	to symbol_lookup

	* src/func.c (constants_init): Use the extra argument to symbol_install.

	* src/main.c (main): Invoke global_symbol_init.

	* src/symbol.h: Symbol routines now take an extra argument; the
	symboltable they work on.  Now the code can have multiple symbol
	tables (this is required for the cell range name bindings in a
	per-sheet fashion.

1998-10-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet.c (sheet_set_zoom_factor): Zoom factor should be
	applied to to the default styles.

1487 1488 1489 1490 1491 1492 1493 1494
1998-10-27  Daniel Veillard <Daniel.Veillard@w3.org>

	* src/xml-io.c: adapted code to the new XML tree format, however
	  to compile you need to update your libxml from the CVS tree too.
	  Not a definite solution I'm thinking about a more general API
	  for XML tree values encoding/decoding. I modified the endoding
	  format but backward compatibility should be maintained.

1495 1496 1497 1498 1499
1998-10-23  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* src/workbook.c: Made the menus consistent with the (unwritten!)
	UI Guidelines document.

Tom Dyas's avatar
Tom Dyas committed
1500 1501 1502 1503
1998-10-18  Tom Dyas  <tdyas@vger.rutgers.edu>

	* src/clipboard.c: Update to new GTK selection API.

1504 1505 1506 1507 1508
1998-10-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/fn-string.c (gnumeric_right): New file.  Implements
	left/right string functions. 

Miguel de Icaza's avatar
Miguel de Icaza committed
1509 1510 1511 1512
1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-grid.h: Add some missing variables. 

1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537
1998-10-13  Jakub Jelinek  <jj@ultra.penguin.cz>

	* src/item-grid.c (item_grid_stop_sliding,
	item_grid_sliding_callback, item_grid_start_sliding):
	New functions.
	(item_grid_event): If x or y is out of canvas bounds,
	do sliding for both cell and formula selection.
	For button release from formula selection, make cell
	being edited visible afterwards.
	(item_grid_button_1): If not extending selection with
	shift, make cursor cell visible.

	* src/gnumeric-sheet.c (move_cursor,
	gnumeric_sheet_key_mode_sheet): Make cursor cell visible.

	* src/sheet.c (sheet_select_all): Make home visible.
	(sheet_make_cell_visible): New function.
	(sheet_cursor_move, sheet_cursor_set): Don't make cursor
	visible, caller has to do it himself if desired.	

	* src/sheet.h (sheet_make_cell_visible): New prototype.

	* src/workbook.c (workbook_parse_and_jump): Make cursor
	cell visible.
	
1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553
1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/utils.c (col_name): It is amazing the number of times I
	duplicated this code.  I wonder if I took prozac by accident.
	This should fix the bug reported by Morten Welinder

1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-view.c (vertical_scroll_event,
	horizontal_scroll_event): Set the top column/row from the
	adjustment as well.

	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_col,
	gnumeric_sheet_set_top_row): Export these functions to improve the
	scrolling behaviour.

1554 1555 1556 1557 1558
1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/utils.c (cellref_name): Fixed another of column name
	decoding.  I wonder when I will learn.

1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574
1998-10-07  Jakub Jelinek  <jj@ultra.penguin.cz>

	* src/sheet.c (sheet_cursor_set): Add base_col and
	base_row arguments. Move cursor to that location, so
	that it really reflects base of the selection.
	
	* src/sheet.h (sheet_cursor_set): Ditto.
	
	* src/clipboard.c (x_selection_received): Callers changed.
	
	* src/gnumeric-sheet.c (gnumeric_sheet_set_selection): Ditto.
	(move_cursor): Ditto.
	
	* src/item-cursor.c (item_cursor_autofill_event): Ditto.
	(item_cursor_init): Fix a typo.

1575 1576 1577 1578 1579 1580
1998-10-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-object.c (create_object): Rectangles have the same
	problems Ovals do in terms of Canvas cordinate constraints. 
	(sheet_view_object_realize): same.

1581 1582
1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1583 1584 1585 1586 1587
	* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
	the column is allocated (so that the column size change picks up
	the column during the iteration).
	(sheet_view_row_selection_changed): Same

1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641
	* src/style.c (font_init): New routine: loads a couple of default
	fonts to be used in Gnumeric.

	* src/item-bar.c (bar_draw_cell): Make the SELECTION cells display
	with a bold font. 
	(item_bar_realize, item_bar_unrealize): reference and unreference
	the gnumeric_default_bold_font.

1998-10-07  Jakub Jelinek  <jj@ultra.linux.cz>

	* src/item-grid.c (item_grid_button_1): Handle shift+click
	on cells (removes last selection and selects from last base
	to current mouse location).
	(item_grid_event): Don't lock up if mouse is moved during
	selection behind left or top margin of sheet canvas (later
	on we should move the current view).

	* src/cell.c (cell_formula_changed): Cast void * to something
	reasonable.

	* src/item-bar.c (draw_bar_cell): Switch from 2 state bars
	to 3 state: whole column/row is selected in one of the current
	selections, some cells are selected in one of the selections
	or nothing is selected. Get rid of ci->selected, compute it
	from the selections.
	(item_bar_draw): Ditto.

	* src/cell.h (selected): Ditto.

	* src/sheet.c (sheet_init_default_styles, sheet_init_dummy_stuff):
	Ditto.
	(sheet_selection_row_extend_to, sheet_selection_col_extend_to):
	Remove.
	(sheet_all_is_selected): True if any of the selections covers whole
	sheet.
	(sheet_col_selection_type, sheet_row_selection_type): New functions.
	(sheet_selection_set): New function.

	* src/sheet-view.c (sheet_view_row_set_selection,
	sheet_view_col_set_selection): Remove.
	(sheet_view_col_selection_changed, sheet_view_row_selection_changed):
	Handle shift+click and ctrl+click on whole columns/bars as well.
	(sheet_view_col_size_changed, sheet_view_row_size_changed): Use
	sheet_*_selection_type instead of ci->selected.

	* src/item-bar.h (ItemBarSelectionType): Enum for the new 3 state
	column/row titles.
	(ItemBarClass): selection_changed takes modifier mask as argument.

	* src/sheet-view.h (sheet_view_*_set_selection): Remove prototypes.

	* src/sheet.h (sheet_selection_*_extend_to): Ditto.
	(sheet_selection_set, sheet_*_selection_type): New prototypes.
	
1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661
1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_modified): Cells from the clipboard do not have
	a Sheet parameter attached. 

	* src/sheet.c (sheet_cell_add): Check the computed style:  if the
	computed style includes a format, then turn on the cell flag for
	format is set to avoid the auto guess of cell content.
	(sheet_style_compute): Now can return the flags of the style that
	were not part of the default style.

	* src/file.c (dialog_query_load_file, workbook_save_as): Put the
	window close to the mouse.

	* src/workbook.c (sheet_check_dirty, workbook_close): Do not
	cancel without warning the user if the workbook has changed.
	(workbook_new, workbook_can_close, workbook_window_destroy,
	quit_cmd, close_cmd): Reorganized the code to suit the new code to
	prevent inadvertent quits.

1662 1663 1664 1665 1666 1667 1668
1998-10-06 Adrian Likins <adrian@gimp.or>

	* doc/images/*.gif: gifs for documenting the button bar   
	* doc/editing.sgml, files.sgml, formulas.sgml, gnumeric.sgml,
	number-format.sgml, worksheet.sgml: doc updates, some prelim
	info on file loading/saving 

1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679
1998-10-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_modified): New function, used to tag a modified
	cell in a sheet.

	* src/fn-math.c (gnumeric_average): Display error on division by
	zero.  Make the code not depend on the types returned by
	gnumeric_sum and gnumeric_count.
	(callback_function_sum): Keep sum as integers as long as
	possible instead of using floating point all the time.

1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702
1998-10-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/fn-math.c (callback_function_sum): Do not try to be smart
	about string content.  Let the smartiness to other layers. 
	(gnumeric_average): Handle division by zero on average routine. 

	* src/number-match.c (create_option_list): Small bug fix:  First
	translate, then move the pointer ahead.

	* src/cell.c (str_trim_spaces): Trim space routine was removing
	everything after the first space instead of removing only the
	trailing space. 
	(cell_draw): Free the original string, not the modified copy.

	* src/sheet.c (sheet_set_text): Test if the format has been
	manually set by the user before trying to do format matching. 

	* src/cell.h: New flag: CELL_FORMAT_SET, used if the user has
	manually specified a format. FIXME: This information should be
	saved and loaded.
	
	* src/cell.c (cell_set_format): Set the CELL_FORMAT_SET flag

1703 1704
1998-10-03  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>

1705 1706 1707 1708
	* src/workbook.c: Added some more keys to navigate the menus.

	* gnumeric.desktop: Added Portuguese translations. 

1709 1710 1711
	* autogen.sh: Modified hack that patches libtool to work with
	srcdir != builddir

1712 1713 1714 1715 1716 1717 1718
1998-10-02  Richard Hestilow <hestgray@ionet.net>
	
	* plugins/stat/stat.c: added new function NVARIANCE
	for division by N instead of N - 1, fixed div by 0 error if
	variance of a single value was taken, free'd up some mem leaks.
	(Thanks to Morten Welinder for noticing these)

Richard Hestilow's avatar
Richard Hestilow committed
1719 1720 1721 1722
1998-10-02  Richard Hestilow <hestgray@ionet.net>

	* Added new statistics plugin
	
1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733
1998-10-02  Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
	
	* src/dialog-cell-format.c (apply_coloring_format): fix,
	fore_color was assigned twice, and back_color never. 

1998-10-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-grid.h: ItemGridSelectionType: new enumeration type
	used for item_grid->selecting to avoid shutting down entirely the
	formula selection range on mouse release.

1734 1735 1736 1737 1738
1998-10-02 Vincent Renardias <vincent@waw.com>

	* Changed 'es@mx' into 'es_MX' for locale stuff in
	  configure.in, po/*, doc/translating.sgml.

1739 1740 1741 1742 1743 1744 1745
1998-10-01 Adrian Likins <adrian@gimp.org>

	* src/*.sgml: guess what? doc updates.. mainly
	info on formatting cells.
	
	* src/images/number-format-*.jpg: more images

Miguel de Icaza's avatar
Miguel de Icaza committed
1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777
1998-10-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/item-grid.c (item_grid_event): Removed unused variables

	* src/gnumeric-sheet.c (gnumeric_sheet_start_cell_selection,
	gnumeric_sheet_selection_extend,
	gnumeric_sheet_selection_cursor_place): New routines for letting
	the user use the mouse to select a cell range.  Invoked from
	item-grid.c 

	* src/item-grid.c (item_grid_event): Clean and reorgranize the
	event handler, remove unused variables.

	* src/gnumeric-sheet.c (selection_expand_horizontal): -1 now means
	"shrink the selection", which means Left/Up keys shrink.
	Right/Down expand. 
	(selection_expand_vertical): likewise.

	* src/format.c (format_number): Fixed memory leak: this is a
	pretty bad construction: g_string_append (s, alloc_string()).  I
	just did not see it coming.  Taking metal note of this. 

	* src/number-match.c (format_create_regexp): Fixed memory leaks.
	The strings returned by create_option_list need to be released. 

	* src/style.c (style_color_new): Important bug fix:  The key I was
	passing was a GdkColor, but our hash table stored StyleColors
	inside. 

	* src/format.c (append_year): Better fix, suggested by Morten
	Welinder <terra@diku.dk> 

1778 1779
1998-09-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1780 1781 1782 1783
	* src/clipboard.c (clipboard_export_cell_region): Correct fix to
	the paste problem: dont pass current_workbook, but rather the wb
	we get. 

1784 1785 1786 1787 1788 1789 1790 1791
	* src/format.c (split_time): Compute the day of week.  This was
	done before by localtime, but the new code was not doing it (thus,
	format "ddd" always reported "Sun").

	* src/item-edit.c (item_edit_reconfigure): Call reconfigure in parent.

	* src/item-cursor.c (item_cursor_reconfigure): Call reconfigure in parent.

1792 1793 1794 1795 1796
	* src/format.c (append_year): Year 2000 fix :-).

	* src/cell.c (cell_set_text_simple): Fix, use localeconv
	information to figure out if the text is a number or not. 

1797 1798 1799 1800 1801
1998-09-30  Havoc Pennington  <hp@pobox.com>

	* src/dialog-cell-format.c (color_pick_change_notify): Change args 
	to match new gnome-color-picker color_set args.

1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815
1998-09-39 Adrian Likins <adrian@gimp.org>

	* doc/autofill.sgml, sell_refer.sgml, editing.sgml,
	  gnumeric.sgml, number-format.sgml, worksheet.sgml:
	    Minor updates, new info on formatting, spelling
	    and formatting fixes.

	* doc/selection.sgml, selections.sgml: removed selection.sgml
	and added selections.sgml. 

	* doc/images/worksheet-data-[1234].jpg,
	worksheet-running-calc-1.jpg, number-format-dialog-1.jpg:
	more pics to go along with the docs.

Arturo Espinosa's avatar
Arturo Espinosa committed
1816 1817 1818 1819 1820 1821
1998-09-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/workbook.c (quick_compute_routines): Made static

	* src/item-grid.c (item_grid_context_menus): Made static.

1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847
1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_draw_comment): New routine to paint a little
	red triangle if the cell hsa notes.

	* src/cell.c (cell_destroy): Destroy the comment.
	(str_trim_spaces): New routine.  Trims the spaces on a string.
	(cell_draw): Trim the leading and trailing spaces on every string
	of a multi-line text.

	* src/color.c (color_init): Allocate a red for tagging the
	spreadhseet notes.

	* src/dialog-cell-format.c (format_list_fill): Apply the
	traslation when adding the format.

	* doc/tranlating.sgml: New document that describes how to
	internationalize and localize Gnumeric properly.
	
	* src/workbook.c (recalc_cmd): Provide a way to force a recomputation.
	(insert_current_time_cmd): New function.  insert the current time.
	(insert_current_date_cmd): New function.  insert the current date.
	(insert_at_cursor): New utility function.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle control-home

1848 1849 1850 1851 1852
1998-09-29  Raja R Harinath  <harinath@cs.umn.edu>

	* src/parser.y (dump_tree): Update to change in `expr.h'.
	s/OP_/OPER_/g.

1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887
1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/xml-io.c: Changed the formatting of it to be like the rest
	of Gnumeric.

	* src/fn-math.c, src/fn-date.c: Simplify routines to use
	value_float and value_int.

	* src/expr.c (value_float, value_int): New utility functions to
	create values of type integer and float.

	* src/sheet.c (sheet_set_text): Use the matching engine on entered text

	* src/cell.c (cell_set_text_simple): New function.  Does not queue
	cell computations nor queue any redraws
	(cell_content_changed): New function: Queues recomputations for
	cells that depend on the contents of the argument.
	(cell_set_format_simple): New routine, like cell_set_format but
	does not render the value nor queues a redraw.
	
	* src/xml-io.c: Use workbook_recalc_all instead of workbook_recalc

	* src/fn-math.c (gnumeric_log10, gnumeric_log, gnumeric_log2):
	Range check fix was wrong.  The valid range does not include
	zero.  Thanks to Morten Welinder for noticing this. 
	(gnumeric_cosh): Call cosh, not cos.
	Reordered this file to have the help always before the function
	that defines it.
	(callback_function_or): Bug fix: any non-zero value is considered
	to be TRUE.
	(gnumeric_fact): Use exp (lgamma (n+1)) to compute large
	factorials (this only applies to factorials over 40).

	* src/about.c (dialog_about): Stop using gnome_dialog_set_modal.

Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
1888 1889
1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

1890 1891 1892
	* src/number-match.c (format_create_regexp): Small bug fix.  I was
	making 'mm' be parsed as 'mmm'.  Support 'mmmm'.

Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907
	* src/fn-date.c (gnumeric_now, gnumeric_date, gnumeric_today):
	Note that jannuary 1st is day 1, not day zero.

	* src/format.c (append_month): Fixed handling: tm_mon is zero based.
	(split_time): Fixed silly mistake I did last time I looked at this code

	* src/cell.c (cell_set_formula): Try to set the cell style if the
	style is General.

	* src/parser.y (return_symbol): Try to match the input with the
	format matching engine.

	* autogen.sh (PKG_NAME): Another hack to get rid of the annoying
	extracing symbols list, which, slows down my link time :-)

1908 1909 1910 1911 1912
1998-09-28  Adrian Likins <adrian@gimp.org>

	* doc/gnumeric.sgml, autofil.sgml, worksheet.sgml: More docs.
	* docs/images/worksheet*.jpg: jpg's for the new worksheet docs.

1913 1914
1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>

Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
1915 1916 1917 1918 1919 1920
	* src/number-match.c (compute_value): New file:  Implements a
	smart way of parsing numbers:  From all of the registered formats,
	it creates regexps for matching at the time the user inputs data.
	If that data matches any of the regexps, then the input is
	converted into a float, and a display format is assigned to it.

1921 1922
	* src/format.c (append_day, append_month): Skip the -now included-
	start at the begining for internationalization purposes.
Miguel de Icaza's avatar
New:  
Miguel de Icaza committed
1923 1924
	(split_time): Fixed the hour and second renddering.
	(format_number): Fix:  hour_seen was not being set.
1925

1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942