OChangeLog-2000-10-10 213 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
2000-08-30  Jody Goldberg <jgoldberg@home.com>

	* dependent.[ch] : New base class for Cells.
	  Convert everything to access the elements that are now
	  in the cell's base.
	s/Cell::sheet/Cell::Dependent::sheet/
	s/Cell::cell_flags/Cell::Dependent::flags/

	* Makefile.am : Because of XL we need to build plugins before src.
	  That will need changing.

	* src/func.c (function_marshal_arg) : Use expr_array_intersection.

	* src/expr.c (eval_expr_real) : Do implicit conversions from strings
	  to numbers if possible.
	  Access the first element of an array.  NOTE : This is WRONG
	  We need to implement array expression behavior some day.
	(expr_array_intersection) : New routine.

Morten Welinder's avatar
Morten Welinder committed
20 21 22 23 24 25
2000-08-30  Morten Welinder  <terra@diku.dk>

	* src/print-cell.c (print_show_iso8859_1): Fix a few type errors.

	* src/functions/fn-financial.c (gnumeric_rate): Respect the sign
 	of the guess.  Work much harder at getting an answer.
Morten Welinder's avatar
Morten Welinder committed
26
	(gnumeric_irr): Mirror the RATE improvements.
Morten Welinder's avatar
Morten Welinder committed
27 28 29

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

Jody Goldberg's avatar
Jody Goldberg committed
30 31 32 33 34 35 36 37 38 39
2000-08-29  Jody Goldberg <jgoldberg@home.com>

	* src/Makefile.am : Fix file names.

	* src/number-match.c (format_match_simple) : New routine.

	* src/parser.y (parse_string_as_value) : Use it here.
	(build_array) : Do not use g_list_next it unnecessarily checks for
	  NULL.

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
2000-08-30  Jon K Hellan  <hellan@acm.org>

	* src/print-cell.[ch] (print_show_iso8859_1): Wrapper around
	gnome_print_show which accepts iso8859.1. We use this until we
	switch to UTF-8 internally.

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

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

2000-08-30  Jon K Hellan  <hellan@acm.org>

	* src/print.c (print_page, print_job_info_get): Header/footer are
	measured from top/bottom of sheet, not from inside top/bottom
	margin.
	(print_page): Correct placement when centering horizontally or
	vertically.

58 59 60 61 62 63 64
2000-08-29  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_sln): Value arg is float,
 	not int.
	(gnumeric_syd): Ditto.
	(gnumeric_rate): Rate guess is float, not int.

Morten Welinder's avatar
Morten Welinder committed
65 66 67 68
2000-08-28  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_rate): Fix special case.

69 70 71 72 73 74 75 76 77 78
2000-08-27  Jody Goldberg <jgoldberg@home.com>

	* src/number-match.c (format_create_regexp) : If we see seconds
	  immediately after 'm' that was parsed as months replace it with
	  minutes.  XL is vile.
	(compute_value) : make seconds into a float.  Add some debug
	  assistance.  Use a putrid hack to handle the various cases that can
	  generate MATCH_NUMBER.  When handling decimals make a another putrid
	  hack to handle the case of second fragments.

79 80 81 82 83 84 85 86
2000-08-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (colrow_move) : Reset the cell positions.

2000-08-25  Jody Goldberg <jgoldberg@home.com>

	* Makefile.am : Build gnumeric before its executables.

Jody Goldberg's avatar
Jody Goldberg committed
87 88 89 90
2000-08-22  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_clone_styles) : Init the style tables.

Jody Goldberg's avatar
Jody Goldberg committed
91 92
2000-08-22  Jody Goldberg <jgoldberg@home.com>

93 94 95
	* src/sheet.c (sheet_clone_styles) : Patch leak.
	(sheet_clone_selection) : Patch leak.

Jody Goldberg's avatar
Jody Goldberg committed
96 97
	* src/print-info.c (print_info_copy) : Cut-n-Paste-o

Jody Goldberg's avatar
Jody Goldberg committed
98 99
2000-08-21  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
100 101 102
	* src/corba-sheet.c : suppress warnings.
	* src/dialogs/dialog-stf.c : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 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 181 182 183 184 185 186 187
	* src/number-match.c (format_create_regexp) : Improve regexps.

	* src/formats.c (cell_format_is_number) : Format always uses standard
	  decimal chars.

	* src/format.c (gnumeric_setlocale) : New routine that clears cached
	  locale info.
	(format_get_decimal) : Improve use mon_decimal.
	(format_get_thousand) : Improve use mon_thousands_sep.
	(format_get_arg_sep) : New func.
	(format_get_col_sep) : New func.
	(format_destroy) : Use GPtrArray.
	(render_number) : Improve localization.
	(format_add_thousand) : rename format_toggle_thousands. De-localize.
	(find_decimal_char) : De-localize.
	(format_remove_decimal) : Ditto.
	(format_add_decimal) : Ditto.
	(format_number) : Ditto.

	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.

	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.

	* src/auto-format.c (auto_style_format_suggest) :
	  style_format_new -> style_format_new_XL

	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
	  the format string anymore.
	(mstyle_set_format_text) : Add a warning.

	* src/gutils.[ch] (float_get_from_range) : Delete.
	(int_get_from_range) : Ditto.

	* src/parser.y : Revamp lexer to use strtol, and strtod for number
	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)

	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.

	* src/sheet.h : Move SpanCalcFlags.
	* src/gnumeric.h : here.

	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]

	* src/value.c (value_get_as_string) : Correctly localize things for
	  output.

	* src/workbook-format-toolbar.c (modify_cell_format) : format
	  modification callback modifies the StyleFormat.

	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.

	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
	(xml_workbook_write) : Ditto.
	(xml_read_cell) : Use style_format_new_XL.
	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
	(xml_write_style) : Ditto.

	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
	  Display localized number formats.
	(fillin_negative_samples) : Not need to localize generated number
	  formats.

	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
	  format_get_arg_sep.

	* src/dialogs/dialog-stf-format-page.c
	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
	  stored in a locale neutral format.

	* src/functions/fn-string.c (gnumeric_text) : changes to
	  style_format_new.

	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.

	* src/functions/fn-information.c (translate_cell_format) : This should
	  now work for different locales.

2000-08-18  Jody Goldberg <jgoldberg@home.com>

	* src/number-match.c (compute_value) : Extend the match algorithms to
	  handle the new regexps.

	* src/format.c (format_get_thousand) : provide a better default for
	  countries using ',' as a decimal point.

188 189 190 191 192
2000-08-20  Owen Taylor  <otaylor@redhat.com>

	* TODO.xml: Change "simple" to "small" as required by
	make-todo, so that it builds on developer.gnome.org.

193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
2000-08-18  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_write_cell_and_position) : Do not write Useless
	  'Style' attribute.
	- Make Rows/Cols attributes of the Cell not the Content
	- When storing Values store the value type, the parse format (if
	  available) and the value as a plain string (eg $100.00 == 100)

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

	* src/number-match.c (format_create_regexp) : Be more careful when
	  handling decimals and thousands seperators.  This sucks, but it
	  sucks less than before.

	* src/formats.c (format_currency) : typo.

Jody Goldberg's avatar
Jody Goldberg committed
209 210
2000-08-17  Jody Goldberg <jgoldberg@home.com>

211 212 213 214
	* src/xml-io.c (xml_check_version) : New function.
	(xml_probe) : Use it here.
	(gnumeric_xml_read_workbook) : And here.

Jody Goldberg's avatar
Jody Goldberg committed
215 216 217 218 219 220 221
	* src/print-info.c (print_info_copy) : Leak less.

	* src/clipboard.c (paste_cell) : Set the pos rather than the row/col
	  pointers.

	* src/solver-lp.c (solver_lp_copy) : Fix typo, and use Cell::pos.

222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
2000-08-16  Chema Celorio  <chema@celorio.com>

	* src/sheet.c (sheet_duplicate
		       sheet_clone_cells,
		       cb_sheet_cell_copy,
		       sheet_clone_objects,
		       sheet_clone_names,
		       sheet_clone_selection,
		       sheet_clone_styles,
		       sheet_clone_style_region,
		       sheet_clone_colrow_info,
		       sheet_clone_colrow_info_item) : New.

	* src/solver-lp.c (solver_lp_copy) : New func.

	* src/print-info.c (print_info_copy) : New func.
	(print_info_margin_copy) : Ditto.
	* src/workbook.c (sheet_action_clone_sheet) : New.

2000-08-16  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_insert) : Add a flag to disable span
	  recalculation.

	* src/sheet-style.c (sheet_get_style_list) : const.

	* src/position.c (parse_pos_init_cell) : Use Cell::pos.

	* src/clipboard.c (paste_cell_with_operation) : Changes to
	  sheet_cell_insert.
	(paste_cell) : Ditto.

	* src/analysis-tools.c (prepare_output) : Changes to
	  workbook_sheet_get_free_name.
	* src/workbook.c (insert_sheet_cmd) : ditto.
	(workbook_sheet_name_strip_number) : New.
	(workbook_sheet_get_free_name) : Handle names of the form 'bobo (2)'.

260 261
2000-08-16  Jody Goldberg <jgoldberg@home.com>

262 263 264
	* src/workbook-view.c (workbook_view_set_size) : Back out switch to
	  set_usize it was disabling shrinking.  Fix this eventually.

265 266 267 268 269 270 271 272 273 274 275 276
	* src/sheet.c (sheet_get_extent) : re-enable the use of
	  sheet_style_get_extent.

	* src/sheet-style.c (sheet_style_get_extent) : rework to use
	  'visible in blank cell' rather than non-infinite.

	* src/mstyle.c (mstyle_visible_in_blank) : new function.
	* src/border.c (style_border_visible_in_blank) : new function.

	* src/xml-io.c (xml_write_style) : Save font info even if it only
	  specifies underline or strikethrough.

277 278 279 280 281 282 283
2000-08-15  Morten Welinder  <terra@diku.dk>

	* src/gutils.c (gnumeric_get_le_int16, gnumeric_get_le_uint16,
 	gnumeric_get_le_int32, gnumeric_get_le_uint32,
 	gnumeric_get_le_double, gnumeric_set_le_double): new functions,
 	mostly for plugin support.

284 285 286 287 288 289 290 291 292 293 294 295
2000-08-15  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : Set the size after initializing
	  everything else.

	* src/workbook-view.c (workbook_view_set_size) : size the notebook,
	  not the toplevel window.

	* src/colrow.h (ROW_INTERNAL_HEIGHT) : Delete.

	* configure.in : CVS bonobo is 0.18.

296 297
2000-08-14  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
298 299 300 301
	* src/print-cell.c (print_cell) : Sync with 
	* src/cell-draw.c (cell_draw) : and clear out a few usages of
	  Cell:{row,col})_info.

302 303 304
	* src/workbook.c (workbook_menu_edit) : Fix typo that made goto C-I
	  instead of C-G.

Jody Goldberg's avatar
Jody Goldberg committed
305 306 307 308 309
2000-08-12  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Bump bonobo version. 
	* README : Ditto.

310 311 312 313 314 315 316 317 318 319 320 321
2000-08-12  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (insert_object_cmd) :
	  s/gnome_bonobo_select_oaf_id/bonobo_selector_select_id.
	* src/sheet-object.c (sheet_set_mode_type_full) : Ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_drag_data_get) : Disable until
	  Michael has a chance to update to new api.

	* src/corba-workbook-factory.c (WorkbookFactory_create_object) :
	  Update after the OAF factory renaming.

322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
2000-08-11  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/Makefile.am : Add graph-guru for bonobo enabled builds.

	* src/dialogs/formula-guru.glade (rolled_label) : Don't fill.

2000-08-11  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-math.c (gnumeric_g_product) : Ignore blanks.
	(gnumeric_product) : Ditto.
	(gnumeric_sumsq) : Ditto.
	(gnumeric_suma) : Ditto.
	(gnumeric_sum) : Ditto.
	(gnumeric_gcd) : Ditto.

2000-08-11  Jody Goldberg <jgoldberg@home.com>

	* src/corba-args.c : Remove support for Gnorba. Die Pig Die !
	* src/corba-workbook-factory.c : Ditto.
	* src/embeddable-grid.c : Ditto.
	* src/sheet-object.c : Ditto.
	* src/workbook.c : Ditto.

	* src/cell-comment.c (cell_comment_realize) : Use Cell::pos rather
	  than Cell::{row,col}_info->pos.
	(cell_comment_reposition) : Ditto.
	* src/cell-draw.c (cell_draw) : Ditto.
	* src/cellspan.c (cell_register_span) : Ditto.
	(cell_calc_span) : Ditto.
	* src/clipboard.c (paste_cell_with_operation) : Ditto.
	(paste_cell) : Ditto.
	* src/cmd-edit.c (cb_compare_deps) : Ditto.
	(cmd_select_cur_depends) : Ditto.
	* src/eval.c (dependency_range_ctor) : Ditto.
	(handle_cell_single_dep) : Ditto.
	(handle_cell_range_deps) : Ditto.
	(cell_get_range_dependencies) : Ditto.
	(cell_get_dependencies) : Ditto.
	* src/item-grid.c (item_grid_draw) : Ditto.
	* src/parse-util.c (cell_name) : Ditto.
	* src/position.c (eval_pos_init_cell) : Ditto.
	* src/print-cell.c (print_cell) : Ditto.
	(print_cell_range) : Ditto.
	* src/sheet-autofill.c (autofill_cell) : Ditto.
	* src/sheet-vector.c (sheet_vectors_cell_changed) : Ditto.
	* src/sheet.c (sheet_cell_calc_span) : Ditto.
	(sheet_reposition_comments) : Ditto.
	(sheet_get_extent_cb) : Ditto.
	(sheet_redraw_cell) : Ditto.
	(sheet_cell_add_to_hash) : Ditto.
	(sheet_cell_insert) : Ditto.
	(sheet_cell_new) : Ditto.
	(sheet_cell_remove_from_hash) : Ditto.
	(sheet_move_range) : Ditto.
	* src/solver-lp.c (solver_simplex) : Ditto.
	(make_solver_arrays) : Ditto.
	(solver_affine_scaling) : Ditto.
	(make_int_array) : Ditto.
	(solver_branch_and_bound) : Ditto.
	(solver_answer_report) : Ditto.
	(solver_sensitivity_report) : Ditto.
	* src/xml-io.c (xml_write_cell) : Ditto.
	(xml_cell_set_array_expr) : Ditto.
	(xml_write_solver) : Ditto.
	* src/dialogs/dialog-solver.c (check_int_constraints) : Ditto.

	* src/about.c : Move the ABOUT_KEY here from.
	* src/dialogs/dialogs.h : here.  Also, add dialog_graph_guru.

	* src/Makefile.am : Remove wizard.h and the seperate wizard library.

393 394 395 396 397 398 399
2000-08-11  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (do_expr_tree_to_string) : Do not hard code the argument
	  seperator, it needs to change depending on the locale.
	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) :
	  Ditto.

400 401
2000-08-10  Jody Goldberg <jgoldberg@home.com>

402 403
	* src/functions/fn-stat.c : All callers to float_range_function ignore
	  blanks.
404
	* src/functions/fn-math.c : Ditto.
405

406 407 408 409 410 411 412 413 414
	* src/functions/fn-database.c (find_column_of_field) : Use
	  cell_get_rendered_text rather than entered_text.
	(parse_criteria_rang) : Ditto.
	(find_rows_that_match) : Ditto.

	* src/formats.c (cell_format_currency) : Add some versions without
	  trailing _), it was causing problems now that we handle spaces.
	  We should not be using these lists to do this.

415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
2000-08-09  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-date.c (gnumeric_datevalue) : Handle error values.
	(gnumeric_timevalue) : Ditto.
	(gnumeric_year) : Ditto.
	(gnumeric_month) : Ditto.
	(gnumeric_day) : Ditto.
	(gnumeric_weekday) : Ditto.
	(gnumeric_days360) : Ditto.
	(gnumeric_eomonth) : Ditto.
	(gnumeric_workday) : Ditto.
	(networkdays_holiday_callback) : Ditto.
	(gnumeric_networkdays) : Ditto.

	* src/functions/fn-financial.c (gnumeric_coupdaybs) : Ditto.
	(gnumeric_coupdays) : Ditto.
	(gnumeric_coupncd) : Ditto.
	(gnumeric_coupnum) : Ditto.

2000-08-07  Arturo Tena <arturo@directmail.org>

	* configure.in : Fix libole2 test.

438 439 440 441 442 443 444 445
2000-08-07  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_menu_insert_special) : No need to specify
	  the shift state anymore.

	* src/main.c (gnumeric_main) : Bug 15791.  Disregard the state of the
	  shift modifier for accelerators.

446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
2000-08-07  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-stat.c (callback_function_stat) : Handle blanks as 0.
	(callback_function_make_list) : Ditto.
	(callback_function_ttest) : Ditto.
	(gnumeric_mode) : Explicitly ignore blanks.
	(gnumeric_count) : Ditto.
	(gnumeric_ztest) : Ditto.
	(gnumeric_counta) : Ditto.
	(gnumeric_percentile) : Ditto.
	(gnumeric_quartile) : Ditto.
	(gnumeric_prob) : DO NOT IGNORE BLANKS.
	(gnumeric_ftest) : Ditto.
	(gnumeric_ttest) : Ditto.
	(gnumeric_frequency) : Ditto.

	* src/functions/fn-logical.c (gnumeric_and) : Handle
	  changes to function_iterate_argument_values.
	(gnumeric_or) : Ditto.
	* src/functions/fn-math.c (gnumeric_lcm) : Ditto.
	(gnumeric_multinomial) : Ditto.
	(gnumeric_seriessum) : Ditto.

	* src/functions/fn-financial.c (gnumeric_mirr) : Use the old
	  behavior of ignoring blanks.
	(gnumeric_irr) : Ditto.
	(gnumeric_npv) : Ditto.

	* src/functions/fn-eng.c (gnumeric_improduct) : Handle
	  changes to function_iterate_argument_values.
	(gnumeric_imsum) : Ditto.

	* src/func.c (function_iterate_argument_values) : Add ignore_blank
	  flag.

	* src/collect.c (callback_function_collect) : Support new collect flag
	  COLLECT_IGNORE_BLANKS.
	(collect_floats) : change to function_iterate_argument_values.
	(float_range_function2) : Use COLLECT_IGNORE_BLANKS.

2000-08-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-autofill.c (fill_item_new) : It is legal to have 'D' and 'M'
	  for day or month fields.

2000-08-01  Jody Goldberg <jgoldberg@home.com>
	For : John N S Gill <bmrg@gofree.indigo.ie>

	* src/item-cursor.c (item_cursor_autofill_event) : Implement support
	  for double click on autofill button.

Michael Meeks's avatar
Michael Meeks committed
497 498 499 500 501 502 503 504 505 506 507
2000-08-02  Michael Meeks  <michael@helixcode.com>

	* configure.in: update for BonoboX

2000-07-22  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object.c (sheet_finish_object_creation): unset
	dragging.

	* src/sheet-object-container.c (item_destroyed): conditional unref.

508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
2000-07-31  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-date.c (date_functions_ini) : Convert most of the
	  routines to take 'Scalar' rather than '?' which did not handle
	  ranges or arrays.

	* src/dialogs/dialog-function-wizard.c (formula_guru_arg_new) : Handle
	  'Scalar'

	* src/func.c (function_marshal_arg) : Add 'S' scalar.

2000-07-28  Jody Goldberg <jgoldberg@home.com>

	* src/global-gnome-font.c (global_gnome_font_init) : Adjust to
	  signature change for gnome_font_family_list.

Jody Goldberg's avatar
Jody Goldberg committed
524 525 526 527 528 529 530 531
2000-07-26  Jody Goldberg <jgoldberg@home.com>

	* src/parser.y (parse_string_as_value_or_name) : Check for names
	  before values.

	* configure.in : Update bonobo requirement to reflect release of 0.16
	README : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
532 533 534 535 536 537 538 539 540 541
2000-07-26  Jody Goldberg <jgoldberg@home.com>

	* src/print-cell.c (print_cell) : resync with cell-draw.

2000-07-25  Jody Goldberg <jgoldberg@home.com>

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

	* src/workbook-edit.c (workbook_start_editing_at_cursor) : Don't start
	  editing if we are already editing.
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564

2000-07-16  James R. Van Zandt  <jrv@vanzandt.mv.com>

	* src/functions/fn-math.c: Misc. documentation cleanups.

	* src/functions/fn-stat.c: Misc. documentation cleanups.

	* src/functions/fn-eng.c: Fix nomenclature in erf and Bessel
	  function documentation.  erf() accepts negative arguments.

2000-07-24  Jody Goldberg <jgoldberg@home.com>

	* src/colrow.c (col_row_set_visibility_list) : Fix typo in name.

	* src/sheet.c (sheet_set_zoom_factor) : Set the default zoom to 1.
	  (rather than the hackish -1) and add a 'force' flag to force an
	  update even if the new zoom is close to the current zoom.

	* src/workbook.c (change_zoom_in_current_sheet_cb) : Adjust to changes
	  in sheet_set_zoom_factor.
	* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Ditto.
	* src/xml-io.c (xml_sheet_read) : Ditto.

565 566 567 568 569
2000-07-21  JP Rosevear  <jpr@arcavia.com>

	* src/sort.c (sort_contents): Add another level of indirection
	to ignore hiddens rows/cols

570 571 572 573 574 575
2000-07-14  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object.c (shutdown_sheet_object_creation): implement
	(sheet_leave_notify): implement. (sheet_button_press): hook up leave notify.
	(sheet_finish_object_creation): disconnect the handler too.

576 577 578 579 580
2000-07-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c (coupnum): Fixed frequency two and
	four.  This functions should work now completely.

581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604
2000-07-16  Jody Goldberg <jgoldberg@home.com>

	* src/border.c (style_border_draw) : Improve the look of diagonal double
	  borders.  They still handle intersections poorly, but this improves
	  things a bit.
	(style_border_print) : Ditto.

2000-07-16  Jody Goldberg <jgoldberg@home.com>
	For : Matt Bissiri <bissiri@eecs.umich.edu>

	* src/clipboard.c: Implemented 'paste link' and 'skip blanks' for paste special.
	(paste_link): New function.
	(paste_cell): Do not clear the target cells if PASTE_SKIP_BLANKS is specified.
	Call paste_link if PASTE_LINK is specified.

	* src/clipboard.h:
	Added PASTE_LINK and PASTE_SKIP_BLANKS flags.

	* src/dialogs/dialog-paste-special.c:
	(transpose_cb): Rename transpose_cb -> checkbutton_toggled.
	(dialog_destroy): New function.
	(paste_link_set_sensitive): New function.
	(dialog_paste_special): Add 'paste link' and 'skip blanks' to the dialog.

Michael Meeks's avatar
Michael Meeks committed
605 606 607 608
2000-07-13  Michael Meeks  <michael@helixcode.com>

	* src/main.c (gnumeric_main): remove bonobo_shutdown.

609 610 611 612 613 614 615 616 617 618 619 620
2000-07-12 Jody Goldberg <jgoldberg@home.com>
	For : Matt Bissiri <bissiri@eecs.umich.edu>

	* src/clipboard.c Implemented arithmetic operations for paste special.
	(cell_has_expr_or_number_or_blank) : New function.
	(cell_get_contents_as_expr_tree) : New function.
	(paste_oper_to_expr_oper) : New function.
	(apply_paste_oper_to_values) : New function.
	(paste_cell_with_operation) : New function.
	(paste_cell) : Call paste_cell_with_operation if paste_flags
	indicates an arithmetic operation.
	
Michael Meeks's avatar
Michael Meeks committed
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
2000-07-12  Michael Meeks  <michael@helixcode.com>

	* src/main.c (gnumeric_main): add bonobo_shutdown.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_destroy): unref not
	destroy the bonobo object.

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

	* src/sheet-vector.c (sheet_vector_new): ditto.

2000-07-07  Michael Meeks  <michael@helixcode.com>

	* src/file.c (do_save_as, dialog_query_load_file): make check less
	stringent for fnames if using bonobo.

	* src/functions/fn-financial.c (coupdaybs): add brackets.

	* src/sheet-object.c (sheet_object_stop_editing): NULL the
	current_object.

Jody Goldberg's avatar
Jody Goldberg committed
642 643
2000-07-09  Jody Goldberg <jgoldberg@home.com>

644 645 646 647 648 649 650 651 652 653
	* src/history.c (history_menu_item_create) : Fix.

	* src/stf-parse.c (stf_parse_options_before_modification) : Simplify
	  for irix compiler.

	* src/print-info.c (print_info_new) : cellrange is a ValueRange.
	(save_range) : Ditto.
	* src/dialogs/dialog-printer-setup.c (do_setup_page_info) : Ditto.
	(do_fetch_page_info) : Ditto.

654 655 656 657 658 659 660 661 662 663 664 665 666
	* src/application.c (application_dpi_to_pixels) : return a double.
	  returning a float caused just enough loss of precision to break
	  my putrid use of 9pt fonts.

	* src/workbook.c (workbook_set_auto_expr) : autoexpr are always parsed
	  in the 'C' locale.

	* src/parser.y (gnumeric_parse_error) : New function.  Makes code
	  cleaner, and offers a handy dandy place for a break point.

	* src/workbook.c (workbook_setup_edit_area) : Pass '0' rather than
	  'FALSE' to avoid translation problems.

Jody Goldberg's avatar
Jody Goldberg committed
667 668
	* src/print.c (print_headers) : Adapt to changes in gnome-print.

669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710
2000-07-09  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_row_default_init) : Take units in pixels or
	  points.
	(sheet_{col,row}_set_default_size_pixels) : new functions.  This
	  interface sucks.  Clean it up.

	* src/parser.y : Optionally insert a place holder when an
	  unknown function is found.

	* src/func.c (function_add_placeholder) : New function, moved from the
	  XL import code.

	* src/expr.c (expr_parse_string) : gnumeric_expr_parser signature
	  change.
	* src/workbook.c (workbook_set_auto_expr) : Ditto.

	* src/application.c (application_dpi_to_pixels) : New function.
	* src/item-bar.c (item_bar_fonts_init) : Use it here.
	* src/sheet-view.c (sheet_view_get_style_font) : And here.
	* src/style.c (font_init) : and here.

2000-07-08  Jody Goldberg <jgoldberg@home.com>

	* src/parse-util.c (cellref_r1c1_get) : Make stricter.
	(r1c1_get_item) : Ditto.

2000-07-08  Jody Goldberg <jgoldberg@home.com>

	* plugins/Makefile.am (SUBDIRS) : Enable applix.

2000-07-08  Jody Goldberg <jgoldberg@home.com>

	* src/parse-util.c (col_from_name) : Add optional arg to indicate
	  where parsing stoped.  Similar to strtod.

2000-07-07  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_write_style_border) : Trivial optimization.  No
	  need to save colour for STYLE_BORDER_NONE.
	(xml_read_style_border) : Ditto.

711 712 713 714 715 716 717 718
2000-07-08  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_cell_foreach_range): Change traversal order
 	for ranges.

	* src/func.c (function_iterate_do_value): Fix traversal order for
 	arrays.

719 720 721 722 723 724 725 726 727 728
2000-07-07  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_sumproduct): Rewrite with lots
 	of care in error handling.

	* src/value-sheet.c (value_area_get_width): Make it official that
 	scalars have width 1.
	(value_area_get_height): Likewise.
	(value_area_get_x_y): Likewise.

729 730 731 732 733 734
2000-07-06  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/stf-parse.c (stf_parse_options_fixed_autodiscover): When splitting
	columns in 2 the last character in the rightmost column would not be
	taken into account.

735 736
2000-07-06  Jody Goldberg <jgoldberg@home.com>

737 738 739
	* src/item-cursor.c (item_cursor_do_action) : Do not do anything if we
	  have not moved.

740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755
	* src/sheet-style.c (sheet_style_compute_from_list) : Make public.
	  and rename from sheet_mstyle_compute_from_list.  Changed all
	  callers.

	* src/rendered-value.c (rendered_value_new) : Optionaly take a style
	  list.  Use it if offered.

	* src/cell.c (cell_render_value) : New signature for rendered_value_new.

	* src/render-ascii.c (cell_region_render_ascii) : Temporarily reverse
	  the style list so that it goes in the correct direction.   Use
	  rendered_value not entered_text.

	* src/clipboard.c (clipboard_prepend_cell) : Init the Cell::pos with
	  the offsets.  This is useful in when looking up formats.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
756 757 758 759
2000-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented COUPNCD().

Jody Goldberg's avatar
Jody Goldberg committed
760 761 762 763 764 765
2000-07-05  Jody Goldberg <jgoldberg@home.com>

	* src/Makefile.am (EXTRA_DIST) : Remove -lglade-bonobo for now.

	* src/main.c (gnumeric_main) : glade_bonobo_init -> glade_gnome_init

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 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812
2000-07-05  Michael Meeks  <michael@helixcode.com>

	* src/bonobo-io.c (write_stream_to_storage): implement.
	(write_mem_to_storage): implement.
	(create_xml_bonobo_stream): create.
	(xml_input_read_cb): 
	(xml_input_close_cb): 
	(hack_xmlSAXParseFile): copy from libxml.

	* src/sheet-object.c (sheet_object_drop_file): update; this should
	be totaly re-written.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_load): clean up.

	* src/sheet-object-item.c (sheet_object_item_new): remove,
	redundant; re-tool calls to sheet_object_container_new_object.

	* src/sheet-object.c (create_object): rename the one use.

	* src/sheet-object-container.c (sheet_object_container_new_from_object_id): 
	remove activation logic.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_destroy): free
	object_id. (sheet_object_bonobo_construct): do activation in here.
	(sheet_object_bonobo_get_object_iid): implement.

	* src/sheet-object-container.c (sheet_object_container_new_from_goadid):
	rename to (sheet_object_container_new_object): this.

	* src/xml-io.c (xml_write_sheet_object): add bonobo io.
	(xml_read_sheet_object): add bonobo and re-scope vars.
	(xml_parse_ctx_new_full): implement.

	* src/main.c (gnumeric_main): add bonobo_io_init.

	* src/xml-io.c (xml_parse_ctx_init): implement,
	(xml_parse_ctx_shutdown): ditto.
	(xml_workbook_write): moved
	(gnumeric_xml_write_workbook): s/parse_xml_context_t/XmlParseContext/

	* src/xml-io.c (xml_workbook_read): publicise.
	(xml_workbook_write): ditto.

2000-07-04  Michael Meeks  <michael@helixcode.com>

	* src/about.c (dialog_about): sort alphabeticaly.

Morten Welinder's avatar
Morten Welinder committed
813 814 815 816 817 818 819 820 821
2000-07-05  Morten Welinder  <terra@diku.dk>

	* src/clipboard.c (x_selection_to_cell_region): Copy data and zero
 	terminate it.

	* src/stf-parse.c (stf_parse_fixed_line): Kill unneeded cast.
	(stf_parse_convert_to_unix): Unconstify.  Don't bother keeping
 	track of len.  Handle form-feeds better.

822 823 824 825 826 827 828
2000-07-05  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/stf-parse.c:
	(stf_parse_options_fixed_autodiscover): When a column has right
	and left aligned text split and has 2 or more spaces in the
	middle split the column in two. (Suggested by Morten)

829 830
2000-07-04  Jody Goldberg <jgoldberg@home.com>

831 832 833
	* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
	  guru in place is not an error.

834 835 836 837 838
	* src/clipboard.c (x_selection_received) : No need to sheet_update or
	  recalc.  cmd_paste_copy handles that.

	* src/gnumeric-util.c (gnumeric_non_modal_dialog) : New function.

839 840 841 842 843
2000-07-04  Morten Welinder  <terra@diku.dk>

	* src/clipboard.c (x_selection_received): Update current sheet,
 	not a NULL sheet.

844 845
2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>

846
	* autogen.sh:
847 848 849
	Downgrade libtool requirment from 1.3.4 to 1.3.3.
	because compiling Gnumeric works fine with 1.3.3.

850 851 852 853 854 855 856
2000-07-04  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented basis 0 for COUPDAYBS.

	* src/functions/fn-financial.c (coupdays): Implemented frequency 1
 	for basis 1 (frequences 2 and 4 are still not done).

857 858
2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>

859
	* src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-fixed-page.c:
860 861
	Fix column mangling in fixed width import.

862 863 864 865 866 867
	* src/dialogs/dialog-stf-format-page.c:
	(format_page_format_changed): Use new sublist_select member
	to avoid 'jumping' of the GtkClist when selecting from
	the sublist.
	(format_page_sublist_select_row): idem.
	(stf_dialog_format_page_init): Initialize sublist_select.
868

869 870
	* src/stf-parse.c, src/stf-parse.h:
	(stf_parse_options_fixed_autodiscover): New!
871 872
	Column autodiscovery for fixed width.

873
	* src/dialogs/dialog-stf.glade:
874 875
	Add clear and autodiscovery buttons
	
876 877 878 879
	* src/dialogs/dialog-stf-fixed-page.c: 
	(fixed_page_autodiscover): Autodiscovery routine.
	(fixed_page_clear_clicked): Clear click handler
	(fixed_page_auto_clicked): Autodiscovery click handler
880
	
881 882 883 884 885 886 887
2000-07-04  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* samples/excel/infofuns.xls: Changed the third test case of
 	ERROR.TYPE.  It seems that XL produces #VALUE! error for
 	STDEV("foo") but #DIV/0! error for STDEV(A1) when A1 contains
 	string `foo'.  Cool.

888 889 890 891 892 893 894 895 896 897 898 899 900 901 902
2000-07-03  Morten Welinder  <terra@diku.dk>

	* src/stf-parse.c (stf_parse_get_rowcount): Don't add one to the
 	number of lines if the last line is empty.

	* src/sheet.c (sheet_cell_set_text): Plug leak.

	* src/workbook-format-toolbar.c
 	(do_sheet_selection_apply_number_format): Avoid double translation
 	of format.

	* src/mstyle.c (mstyle_set_format_text): Renamed from
 	mstyle_set_format.
	(mstyle_set_format): New function taking a StyleFormat *.

Jody Goldberg's avatar
Jody Goldberg committed
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922
2000-07-03  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Begin the Name menu.

	* src/workbook-edit.c (workbook_edit_set_sensitive) : New function.
	(workbook_finish_editing) : Use here.
	(workbook_start_editing_at_cursor) : And here.
	(workbook_edit_attach_guru) : And here.
	(workbook_edit_detach_guru) : And here.
	(workbook_edit_entry_redirect_p) : New function.

	* src/item-grid.c (item_grid_button_1) : If we have a guru up, but are
	  not selecting a region ignore clicks.
	(item_grid_event) : Ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
	  possible to have a guru up without selecting regions.

	* src/expr-name.c (expr_name_list) : Doh!

923 924 925 926 927
2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/analysis-tools.c: Implemented `Histogram' tool (mostly).

	* src/dialogs/tools.h: Related changes.
928

929 930 931 932
	* src/dialogs/analysis-tools.glade, 
	src/dialogs/dialog-analysis-tools.c: Added dialogs for `Histogram'
	and `Fourier Analysis' tools.  The later is not implemented yet.
	
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949
2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented COUPNUM().

	* src/analysis-tools.c: Started the implementation of the third
	anova tool (two-factor with replication).
	
	* src/dialogs/analysis-tools.glade: Added dialog for the new
	tool.  Fixed the `Correlation' dialog.
	
	* src/dialogs/dialog-analysis-tools.c: Added 
	dialog_anova_two_factor_without_r_tool().

	* src/dialogs/tools.h: Related changes.

	* TODO: Added `Data analysis tools' section.

950 951
2000-07-02  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
952 953 954
	* src/expr.c (expr_rewrite) : Names can contain relative references,
	  we need to check them too.

955 956 957 958 959 960 961
	* src/parser.y (exp) : Add production for sheet specific names.
	  eg Sheet2!name

2000-07-01  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-string.c (parse_search_strin) : Use g_strdup.

962 963 964 965 966 967
2000-07-01  Morten Welinder  <terra@diku.dk>

	* src/file.c (can_try_save_to): Constify.  Handle empty name.
	(do_save_as): Ditto.
	(wants_to_overwrite): Ditto.

Morten Welinder's avatar
Morten Welinder committed
968 969
2000-06-30  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
970 971
	* src/file.c (dialog_query_load_file): Guard against empty entry.

Morten Welinder's avatar
Morten Welinder committed
972 973
	* src/parse-util.c (parse_cell_name_list): Plug leak.

974 975 976 977
	* src/solver-lp.c (write_constraint_str): Return an allocated
 	string instead of taking an unsized buffer.  Constify.  All
 	callers changed.

Morten Welinder's avatar
Morten Welinder committed
978 979 980 981
	* plugins/Makefile.am (SUBDIRS): Delete text, ff-csv, and sample
 	plugins.  Separate the remaining ones into file formats and
 	functions.

JP Rosevear's avatar
JP Rosevear committed
982 983
2000-06-30  JP Rosevear  <jpr@arcavia.com>

Morten Welinder's avatar
Morten Welinder committed
984 985
	* src/embeddable-grid.c (EmbeddableGridFactory_init): Use
 	consistent names.
JP Rosevear's avatar
JP Rosevear committed
986 987 988 989 990

	* gnumeric.gnorba: Make server names consistent 

	* gnumeric.oafinfo: Make server names consistent

991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016
2000-06-30  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
	  possible to have a guru up without editing.
	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
	(gnumeric_sheet_focus_in) : Enable the input context.
	(gnumeric_sheet_focus_out) : Disable the input context.
	(gnumeric_sheet_realize) : Create the input context.
	(gnumeric_sheet_unrealize) : Destroy the input context.
	(gnumeric_sheet_class_init) : Register the new methods.
	(gnumeric_sheet_init) : Init the input context.

	* src/clipboard.c (x_selection_handler) : Adjust to changes in
	  application_clipboard_clear.
	(x_selection_clear) : Ditto.
	* src/cmd-edit.c (cmd_paste) : Ditto.
	* src/sheet.c (sheet_destroy) : Ditto.

	* src/application.c (application_clipboard_clear) : Make dropping the
	  selection optional.  This removes the kludges necessary to handle
	  changing the clipboard when we already have the selection.

	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
	  fix signatures.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1017 1018 1019 1020
2000-06-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-logical.c: Added FALSE().

1021 1022
2000-06-29  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1023 1024 1025 1026
	* src/application.c (application_set_selected_sheet) : short circuit
	  clearing the selection if we are in the same workbook, not just the
	  same sheet.

1027 1028 1029 1030
	* src/sheet.c (sheet_name_quote) : cast to unsigned char for safety
	  when using isdigit.
	* src/workbook.c (wb_edit_key_pressed) : Ditto.

Arturo Tena's avatar
Arturo Tena committed
1031 1032 1033 1034
2000-06-28  Arturo Tena <arturo@directmail.org>
 
	* configure.in: Improve libole2 detection.
 
1035 1036 1037 1038 1039 1040 1041 1042
2000-06-29  Jody Goldberg <jgoldberg@home.com>

	* src/parser.y : Add 'string_opt_quote' and use it in a few
	  productions that do not care about the quote state of the token.

	* src/sheet.c (sheet_name_quote) : Sheet names that begin with digits
	  need to be quoted. (#15720)

Jody Goldberg's avatar
Jody Goldberg committed
1043 1044
2000-06-28  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1045 1046
	* src/expr.c (expr_tree_new_funcall) : Ref the function here.

Jody Goldberg's avatar
Jody Goldberg committed
1047 1048
	* src/func.c (fn_def_new) : Init the new elements.

Jody Goldberg's avatar
Jody Goldberg committed
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139
2000-06-28  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-sheet.c (GNUMERIC_VERSION) : new function.

	* src/workbook.c (workbook_do_destroy) : No need to release the
	  clipboard here.  The Sheet does it for us.

	* src/workbook-format-toolbar.c : Add Fill to the default money
	  format.

	* src/symbol.c : The only symbols are functions.  The global table
	  should not be world visible.

	* src/sheet.c (sheet_flag_status_update_cell) : Take a CellPos.
	(sheet_get_extent_cb) : Use Cell::pos rather than adding an
	  indirection.
	(cb_set_cell_content) : Use StyleFormat.
	(sheet_cell_set_value) : Call sheet_flag_status_update_cell.
	(sheet_cell_set_value) : Ditto.
	(sheet_destroy) : Prepare to clear out named expressions.
	(colrow_move) : Handle changes in cell_relocate signature.
	(sheet_move_range) : Ditto.

	* src/sheet-autofill.c : Use StyleFormats.

	* src/position.c (parse_pos_init) : Global position are permitted.

	* src/parser.y : Large change.  Do not automaticlly look for function
	  names or named expressions in the lexer.  The lexer returns STRING
	  and QUOTED_STRING.  The parser then does the appropriate lookups to
	  potentially convert to something else.  This allows us to have sheet
	  names that are the same as functions.

	* src/parse-util.c (cellref_name) : Add flag to optionally disable the
	  addition of the sheet name.  This is useful when printing
	  Sheet2!A1:A3 rather than Sheet2!A1:Sheet2!A3.

	* src/number-match.c (format_create_regexp) : Handle fill formats.

	* src/mstyle.c (mstyle_get_border) : Fix constness.

	* src/mathfunc.c (combin, fact) : Moved these here from
	  functions/fn-math.c

	* src/main.c (gnumeric_main) : No more constants_init, or
	  global_symbol_init.

	* src/func.c () : Reorg.  Remove some dead code.  Begin adding
	  workbook local function support, Begin adding volatile, and
	  semi-volatile functions.  Move the use of SymbolTable internal
	  in preparation for eliminating it.

	* src/format.c (format_number) : Improve support for pound, yen, and euro.
	  Remember to produce a number when we hit spacing.

	* src/expr.c : Have ExprFunc refer directly to the FunctionDefinition
	  We still use a SymbolTable internally, but that will be merged out
	  later.

	* src/expr-name.c : Major reorg.  Not complete.

	* src/corba-sheet.c (fill_corba_value) : Adjust to changes in
	  cellref_name signature.

	* src/commands.c (cmd_set_date_time_undo) : No need to manually call
	  update_cell_flag.  cell_remove, and cell_set_text do that for us.
	(cmd_set_date_time_redo) : Ditto.
	  Use StyleFormat.

	* src/clipboard.c (paste_cell) : Take the ExprRewriteInfo as an
	  argument.
	(clipboard_paste_region) : Init the ExprRewriteInfo.  We need to do
	  this here rather than in cell_relocate because we may be moving a
	  region, not just a single cell, and references within the region
	  should not be changed.

	* src/cell.c (cell_relocate) : Take the relocation info as an
	  argument.  Non NULL indicates a request to check bounds.  We can not
	  do this at the cell level. becuase we may be moving a block rather
	  than just a single cell, and references into the block should NOT be
	  rewritten.
	(cell_set_text_and_value) : Take a StyleFormat.
	(cell_assign_value) : Ditto.
	(cell_set_value) : Ditto.
	(cell_set_expr_internal) : Ditto.
	(cell_set_expr_unsafe) : Ditto.
	(cell_set_expr) : Ditto.

	* src/auto-format.c (do_af_suggest) : Expression now refers directly
	  to functionDef.

Miguel de Icaza's avatar
Miguel de Icaza committed
1140 1141 1142 1143 1144
2000-06-22  Miguel de Icaza  <miguel@helixcode.com>

	* src/sheet-object-item.c (sheet_object_item_new): Add OAF support
	here. 

1145 1146 1147 1148 1149 1150 1151
2000-06-27  JP Rosevear  <jpr@arcavia.com>

	* src/functions/fn-lookup.c (find_index_bisection): Undo
	transposition of find_bound_walk parameters.

	* samples/excel/lookfuns2.xls: Add type mismatch tests.

1152 1153 1154 1155 1156 1157 1158 1159 1160 1161
2000-06-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-stat.c (help_finv): Fixed copy-paste bug in
 	documentation.

	* src/functions/fn-logical.c: Added TRUE() function since it is
 	also a function in Excel.

	* TODO: Updated the status of the build-in functions.
	
Jody Goldberg's avatar
Jody Goldberg committed
1162 1163 1164 1165 1166
2000-06-26  Jody Goldberg <jgoldberg@home.com>

	* src/value.c (value_get_as_checked_bool) : Use g_return_val_if_fail
	  rather than assert.  A log entry is better than a crash.

1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190
2000-06-26  JP Rosevear  <jpr@arcavia.com>

	* src/value.c (value_get_as_checked_bool): New function that
	doesn't require an error variable - use only if confident that
	the value does actually exist.

	* src/value.h: Add new prototype.

	* src/functions/fn-lookup.c: Clean up cruft
	(find_type_valid): See if the value is a string or is gnumeric.
	(find_compare_type_valid): See if the types are comparable.
	(find_bound_walk): Walk an integer range first in one direction
	and then in the other direction.
	(find_index_linear): Do a linear search on a range or array.
	(find_index_bisection): Do a bisection search on a range or array
	that also follows excel rules for for handling type mismatches 
	during the search and finding the first and last item matching
	the search.
	(gnumeric_vlookup): Use new functions and implement undocumented
	excel behaviour.
	(gnumeric_hlookup): ditto
	(gnumeric_lookup): ditto
	(gnumeric_match): ditto

1191 1192 1193 1194 1195
2000-06-26  Morten Welinder  <terra@diku.dk>

	* src/format.c (lookup_color): Don't double translate.  Compare
 	the right number of characters.

Michael Meeks's avatar
Michael Meeks committed
1196 1197 1198 1199 1200
2000-06-26  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-bonobo.c (get_file_name): return non-filenames
	as NULL.

1201 1202 1203 1204 1205
2000-06-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Implemented COUPDAYS for basis 0,
 	2, 3, and 4 (basis 1 is still not implented).

1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233
2000-06-23  Morten Welinder  <terra@diku.dk>

	* src/dialogs/dialog-analysis-tools.c (set_output_option_signals):
 	Constify.
	(set_group_option_signals): Constify.
	(new_frame): Constify.
	(error_in_entry): Constify.
	(new_dialog): Constify.

	* src/analysis-tools.c: major cleanup.  Eliminate fixed-size
 	buffers that might overflow; constify; plug leaks; improve
 	precision; produce numbers without going through strings.
	(set_cell_float, set_cell_int, set_cell_na, set_cell_printf): New
 	functions.

	* src/xml-io.c (xml_write_range): Constify.
	(xml_get_gnome_canvas_points): Mark code as bogus.
	(xml_set_gnome_canvas_points): Constify.  Improve space checks.
	(xml_set_value_int): Improve buffer sizing.
	(xml_set_value_string): Constify.
	(xml_set_color_value): Improve buffer sizing.

	* src/ranges.c (parse_range): Constify, simplify, optimise, and
 	secure.
	(range_parse): Fix strict case.

	* src/parse-util.c (parse_cell_name_or_range): Remove bogus cast.

1234 1235 1236 1237 1238 1239
2000-06-23  Jon K Hellan  <hellan@acm.org>

	(sheet_object_container_new_bonobo): As suggested by Michael:
	use the accessor function bonobo_client_site_get_embeddable to
	get the bound embeddable.

1240 1241 1242 1243
2000-06-23  Karl Eichwalder  <ke@suse.de>

	* src/style.c (font_init): Add missing dot.

1244 1245 1246 1247 1248 1249
2000-06-22  Jody Goldberg <jgoldberg@home.com>

	* src/item-edit.c (item_edit_draw_text) : Restore code that was
	  deleted to handle a cursor on another line, or at the start of the
	  line.

1250 1251 1252 1253 1254 1255 1256
2000-06-22  Jon K Hellan  <hellan@acm.org>

	* src/sheet-object-container.c
	(sheet_object_container_new_bonobo): Change
	BonoboClientSite->bound_object to bound_embeddable. This was
	just changed in Bonobo CVS.

Michael Meeks's avatar
fix.  
Michael Meeks committed
1257 1258 1259 1260
2000-06-21  Michael Meeks  <michael@helixcode.com>

	* src/embeddable-grid.c (embeddable_grid_init_anon): fix.

1261 1262 1263 1264 1265
2000-06-20  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_ins_del_row_col_undo): Leak and assertion
 	fix from Jody's tree.

1266 1267
2000-06-20  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1268 1269
	* src/commands.c (cmd_paste_cut_redo) : Plug leak.

1270 1271 1272
	* src/number-match.c (format_match) : strings with only spaces are NOT
	  numbers.

Jody Goldberg's avatar
Jody Goldberg committed
1273 1274 1275 1276
2000-06-18  Jody Goldberg <jgoldberg@home.com>

        * Release 0.56

1277 1278
2000-06-19  Jody Goldberg <jgoldberg@home.com>

1279 1280 1281 1282 1283 1284 1285 1286 1287
	* src/eval.c (invalidate_refs) : const.
	(do_deps_destroy) : const.

	* src/cell.c (cell_set_expr_internal) : Be careful about unrefing.

	* src/item-edit.c (entry_event) : Rather than catching 'event' and
	  checking for the type of event we want.  Catch the events directly.
	  That way the events can take place BEFORE we look for our position.

1288 1289 1290 1291 1292
	* src/workbook-edit.c (entry_changed) : The characters starting
	  expressions are not alphabetic.  Don't bother testing them too.
	(workbook_start_editing_at_cursor) : Do not start autocompletetion
	  if the content is not completable.

1293 1294 1295 1296 1297
2000-06-19  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_get_extent_cb): Typo fix per Jody.  Hopefully
 	cures all the save-as-XL95 problems.

Jody Goldberg's avatar
Jody Goldberg committed
1298 1299 1300 1301
2000-06-18  Jody Goldberg <jgoldberg@home.com>

        * Release 0.55

1302 1303
2000-06-18  Jody Goldberg <jgoldberg@home.com>

1304 1305 1306
	* src/parser.y (build_array) : This is almost certainly broken in
	  locales that use ',' as a decimal point.

1307 1308 1309
	* src/xml-io.c (xml_probe) : xmlCreateFileParserCtxt will return NULL
	  if the file was not readable.

1310
2000-06-17  Jody Goldberg <jgoldberg@home.com>
Valek Frob's avatar
Valek Frob committed
1311

1312 1313 1314 1315 1316
	* src/sheet.c (sheet_cell_set_text) : Does this change the selection
	  or content of edit pos.
	(sheet_cell_remove) : Ditto.
	(sheet_destroy) : Remove irrelevant assignment.  sheet_deps_destroy
	  does it for us.
Valek Frob's avatar
Valek Frob committed
1317

1318 1319
2000-06-15  Jody Goldberg <jgoldberg@home.com>

1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333
	* src/value-sheet.c (value_is_error) : No need for 'offset' parm.

	* src/number-match.c (format_match) : Parse TRUE/FALSE as this level.

	* src/value-sheet.c (constants_init) : TRUE/FALSE are not symbols.
	  They are values.  A symbol only has value in an expression.
	  A value operates at a lower level.  eg
	A1 : '=TRUE' will work as a value or a symbol
	A1 : 'TRUE' will only work as a value

2000-06-15  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (lookup_color) : Handle translated colours.

1334 1335 1336 1337 1338
	* src/number-match.c (format_create_regexp) : Build the regexp
	  ourselves.  The poor translators had no idea what the hell that was
	  supposed to do.  The regexp is still way way to general.
	(compute_value) : Use the locale.

1339 1340 1341 1342 1343 1344 1345
	* src/expr.c (expr_tree_as_string) : Renamed from expr_decode_tree.
	(expr_tree_get_func_def) : new function.
	(expr_tree_first_func) : New function.

	* src/expr-name.c (expr_name_value) : Rename expr_decode_tree ->
	  expr_tree_as_string.

1346 1347 1348
	* src/style.c (font_init) : Improve error message to include the most
	  probable location of the fontmap file.

1349 1350 1351 1352 1353 1354
	* src/sheet-view.c (sheet_view_size_allocate) : Disable jump to edit
	  pos to avoid unintended jumping when a sheet is added.

	* src/func.c (function_def_count_args) : Correctly handle vararg
	  functions that takes nodes.

JP Rosevear's avatar
JP Rosevear committed
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369
2000-06-15  JP Rosevear  <jpr@arcavia.com>

	* src/expr.c (eval_expr_real): Use new value_compare API

2000-06-14  JP Rosevear  <jpr@arcavia.com>

	* src/value.h: Update value_compare prototype.

	* src/value.c (value_compare): Make it take a new case
	sensitive flag for string comparisons.

	* src/sort.c (sort_compare_cells): Use value_compare to do the
	comparisons.  Handle the special cases of blanks (always at
	bottom, whether asc or desc) and errors (after booleans).

1370 1371
2000-06-14  Morten Welinder  <terra@diku.dk>

1372 1373 1374
	* src/history.c (history_item_label): Change "_" to "-", fixing
 	around 14183.

1375 1376
	* src/print.c (sheet_print): Complain when printing fails.

1377 1378 1379 1380 1381 1382
2000-06-14  JP Rosevear  <jpr@arcavia.com>

	* samples/excel/sort.xls: Add sort sample.  Now we see that Excel
	sorts Errors after Booleans (for ascending order) and then by the
	name of the error.  Blanks are always at the bottom (asc and desc).

1383 1384
2000-06-14  Jody Goldberg <jgoldberg@home.com>

1385
	* src/workbook-format-toolbar.c (money_format) : Correct.
1386
	  (do_sheet_selection_apply_number_format) : Decrease hackishness and
1387
	  improve docs for the formats.  
1388

1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401
2000-06-13  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-math.c (callback_function_sumproduct) : Handle
	  empty.
	(gnumeric_sumproduct) : Handle blank cells correctly, correct error
	  handling slightly.

	* src/func.c (iterate_cellrange_callback) : Handle empty cells.
	(function_iterate_do_value) : Add a new argument to control the
	  handling of empty cells.
	(function_iterate_argument_values) : Hard code the ignore_blanks
	  argument to TRUE the same as the previous behavior.

1402 1403 1404 1405 1406 1407 1408 1409
2000-06-13  Morten Welinder  <terra@diku.dk>

	* src/stf-parse.c (trim_spaces_inplace): New function.
	(stf_parse_fixed_cell): Don't trim spaces here.
	(stf_parse_fixed_line): Trim here.
	(stf_parse_csv_cell): Don't trim spaces here.
	(stf_parse_csv_line): Trim here.

Jody Goldberg's avatar
Jody Goldberg committed
1410 1411
2000-06-13  Jody Goldberg <jgoldberg@home.com>

1412 1413 1414 1415
	* src/functions/fn-math.c (callback_function_sumif) : No need to
	  malloc memory for an int.  Fix the logic to handle empty cells
	  properly.

Jody Goldberg's avatar
Jody Goldberg committed
1416 1417
	* src/stf-parse.c (stf_parse_options_set_trim_spaces) : patch typo.

1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503
2000-06-13  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
	  the BonoboObject in the ENABLED_BONOBO case.

	* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
	  that may be up.
	(entry_changed) : Do not autocomplete expressions.  Gurus play havoc
	  with this.
	(workbook_edit_auto_complete_init) : Delete unused.
	(workbook_get_entry_logical) : New function.
	(workbook_set_entry) : New function.
	(workbook_edit_attach_guru) : New function.
	(workbook_edit_detach_guru) : New function.
	(workbook_editing_expr) : When a guru is up we are always editing an
	  expression. TODO, tune this.
	(workbook_edit_load_value) : Moved from Sheet, and renamed from
	  sheet_load_cell_val.
	(workbook_edit_init) : Handle gurus.

	* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.

	* src/sheet-vector.c (sheet_vector_new) : The vectors are
	  BonoboObjects, destroy them correctly.
	(sheet_vectors_shutdown) : Ditto.

	* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
	(sheet_object_insert) : Renamed from sheet_insert_object and moved
	  from sheet.c

	* src/pixmaps.h : Enable the Formula guru.

	* src/parser.y (arg_list) : Improve handling of empty arguments.

	* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
	  workbook_get_entry_logical.
	(selection_insert_selection_string) : Ditto.
	(start_cell_selection_at) : Ditto.
	(gnumeric_sheet_key_mode_sheet) : Ditto.

	* src/workbook-private.[ch] : Make this into a Bonobo Object for now.

	* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
	  workbook_new_with_sheets.
	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
	  object.

	* src/history.c (history_menu_item_create) : Ditto.
	(history_menu_locate_separator) : Ditto.
	(history_menu_insert_separator) : Ditto.
	(history_menu_remove_items) : Ditto.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
	* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.

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

	* src/file.c (workbook_try_read) : Workbook is now always just a
	  GtkObject.
	(workbook_import) : Ditto.

	* src/formats.c (cell_format_date) : Add some new formats.

	* src/format.c (find_decimal_char) : Restore constness.
	(format_remove_decimal) : Fix the const correctly.

	* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
	  semantics.

2000-06-12  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-autofill.c (fill_item_destroy) : Free the format.
	(fill_item_new) : Handle filling by month and year.
	(autofill_compute_delta) : Ditto.
	(autofill_cell) : Ditto.

	* src/formats.c (cell_format_is_number) : currently handle the single
	  character currencies.
	(cell_format_date) : year only formats.

2000-06-10  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
	  optimization.

Morten Welinder's avatar
Morten Welinder committed
1504 1505 1506 1507
2000-06-13  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_round): Round properly.

1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519
2000-06-12  JP Rosevear  <jpr@arcavia.com>

	* src/workbook.c (sort_cmd): Adjust if the range to be sorted
	has a header.

	* NEWS: Update. 

	* src/ranges.h: New prototype.

	* src/ranges.c (range_has_header): New function to determine if
	a region has a header row.

1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548
2000-06-09  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_update) : Change sheet -> sheet-view.
	(item_cursor_set_bounds) : Add a short circuit test and return TRUE
	  if things changed.
	(item_cursor_selection_event) : Take a SheetView.
	(item_cursor_target_region_ok) : sheet -> sheet-view
	(item_cursor_do_action) : Ditto.
	(item_cursor_set_arg) : Ditto.
	(item_cursor_class_init) : Ditto.
	(item_cursor_set_bounds_visibly) : Make the cell visible before
	  changing the bounds.
	(cb_move_cursor) : New function.
	(cb_autofill_scroll) : New function.
	(item_cursor_handle_motion) : New function.
	(item_cursor_drag_event) : Enable timer based scrolling.
	(item_cursor_autofill_event) : Ditto.

	* src/gnumeric-sheet.c (start_cell_selection_at) : item-cursor takes a
	  sheet-view rather than a sheet.
	(gnumeric_sheet_new) : Ditto. Only update if the bounds changed.

	* src/item-edit.c : Take a SheetView rather than a Sheet.

	* src/sheet-view.c (sheet_view_start_sliding) : Return a flag
	  indicating whether or not the timer has been triggered.

	* src/border.c (LineDotPattern) : Fixed const.

1549 1550
2000-06-08  Jody Goldberg <jgoldberg@home.com>

1551 1552 1553 1554
	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) :
	  ok now I understand what those calls to
	  gnome_canvas_get_scroll_offsets where supposed to do.

Jody Goldberg's avatar
Jody Goldberg committed
1555
	* src/colrow.c (col_row_restore_sizes) : Arrgghh.  Stupid typo.
Jody Goldberg's avatar
Jody Goldberg committed
1556
	(col_row_restore_sizes_group) : Patch leak.
Jody Goldberg's avatar
Jody Goldberg committed
1557

1558 1559 1560
	* src/workbook-edit.c (entry_changed) : Only autocomplete text that
	  begins with an alphabetic

1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611
2000-06-08  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (sheet_view_{col,row}_selection_changed) :
	  Do not make the edge visible, the scroll time will take care of
	  that.
	(sheet_view_{col,row}_size_changed) : Use the new undo wrappers.
	(cb_colrow_resize) : Use the new undo wrappers.
	(sheet_view_init) : Init the scroll timers.
	(sheet_view_stop_sliding) : Based on the version from item_grid.
	(sheet_view_start_sliding) : Ditto.
	(sheet_view_sliding_callback) : Ditto.  Added callback support.
	  tuned scroll parameters.

	* src/number.h : Clear out unused cruft.

	* src/item-grid.c : Move support for scroll timers into sheet-view.

	* src/item-bar.c (get_element_from_pixel) : Renamed from
	  get_col_from_pos.
	(cb_extend_selection) : New function.
	(item_bar_event) : Use the sliding scroll mechanism in sheet_view.

	* src/item-cursor.c (item_cursor_selection_event) : Adapt to changes in
	  item_grid_find_{col,row}.
	(item_cursor_drag_event) : Ditto.

	* src/sheet.c (sheet_foreach_colrow) : renamed and moved to.
	* src/colrow.c (col_row_foreach) here.
	
	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : Moved here
	  and renamed from.
	* src/item-grid.c (item_grid_find_{col,row}) : here.

	* src/value.c (value_equal) : deleted.
	(value_compare) : Moved and renamed from
	* src/expr.c (compare) : here.
	(expr_dump_tree) : Delete replicated function.

	* src/colrow.c (col_row_size_list_destroy) :
	(col_row_index_list_destroy) : New function.
	(col_row_get_index_list) : New function.
	(col_row_set_sizes) : New function.
	(col_row_restore_sizes_group) : New function.

	(col_row_save_sizes) : Moved from sheet.c
	col_row_restore_sizes : Ditto.
	cb_set_row_height : Ditto.
	rows_height_update : Ditto.

	src/commands.c (cmd_resize_row_col*) : Implement.

1612 1613 1614 1615
2000-06-08  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_sort_undo): Take advantage of
 	sort_data_length and sort_permute_invert.
Morten Welinder's avatar
Morten Welinder committed
1616
	(cmd_sort_destroy): leak fix.
1617 1618 1619 1620

	* src/sort.c (sort_data_length): Make public.
	(sort_permute_invert): New function.

1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642
2000-06-08  Jon K Hellan  <hellan@acm.org>

	* src/workbook.c (change_displayed_zoom_cb): Set zoom using
	gtk_combo_text_set_text.
	(change_zoom_in_current_sheet_cb): Check that current sheet is non
	NULL.
	(workbook_zoom_feedback_set): Block callbacks while changing
	displayed zoom.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
	Drop the empty font name - that was needed in the option menu, but
	not now we're using a combo box.  Ignore nameless fonts in
	gnumeric_font_family_list. (We were displaying *two* blank lines
	at the top - now we've got rid of both.)
	(workbook_feedback_set): Set font size and font name using
	gtk_combo_text_set_text, which also selects the item in the combo
	list if present.  Get rid of hack to select font name in list -
	this is now done in the widget.
	(workbook_feedback_set):

	* src/sheet.c (sheet_set_zoom_factor): Check that sheet isn't NULL.

Morten Welinder's avatar
Morten Welinder committed
1643 1644
2000-06-07  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1645
	* src/sort.c (sort_contents): Use the C-library's qsort.
Morten Welinder's avatar
Morten Welinder committed
1646 1647
	Fix permutation.  Speed up things.

1648 1649 1650 1651 1652
2000-06-07  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : Escaped characters trigger a render
	  too.  This code really needs to be rationalized.

1653 1654 1655 1656 1657
2000-06-07  Darin Adler  <darin@eazel.com>

	* src/history.c: (history_menu_item_create):
	Update name of call so it will compile with the latest Bonobo.

Miguel de Icaza's avatar
Miguel de Icaza committed
1658 1659
2000-06-06  Miguel de Icaza  <miguel@helixcode.com>

Miguel de Icaza's avatar
Miguel de Icaza committed
1660 1661
	* src/commands.c (cmd_set_text): Update code.

Miguel de Icaza's avatar
Miguel de Icaza committed
1662 1663 1664
	* src/workbook-edit.c (workbook_auto_complete_destroy): Simplify
	test here. 

1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680
2000-06-06  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_delete_sheet) : Update the undo/redo
	  toolbar and menus.

	* src/sort.c (sort_permute) : Avoid Leak.
	* src/commands.c (cmd_sort_destroy) : Avoid leak.
	(cmd_autofill) : Do not autofill if the target is the same as the
	  source.

	* src/main.c (gnumeric_main) : Fix typo that was breaking minicons.

	* src/item-bar.c (item_bar_end_resize) : Always emit signal.
	(item_bar_event) : On double click emit a signal with newsize == -1 to
	 indicate a need to autosize.

1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708
2000-06-06  JP Rosevear  <jpr@arcavia.com>

	* src/sort.c (sort_position): Call sort_permute with the given
	permutation index
	(sort_contents): Call sort_qsort to get a permutation index and
	then use sort_permute to actually move the rows
	(sort_permute): Use copy and paste to move rows/cols around
	(sort_permute_next): Find next row/col the hasn't been set based
	on the permutation array
	(sort_permute_is_set): Find if a a bit in a bit array is set
	(sort_permute_set): Set a bit in a bit array
	(sort_permute_find): Find a given number in a permutation array
	(sort_qsort): Produce a permutation index for sorting rows or cols 
	(sort_swap): Swap two entries in the permutation index
	(sort_compare_sets): Compare two sets of cells
	(sort_compare_cells): Compare two cells
	(sort_data_destroy): Destroy SortData struct

	* src/commands.c (cmd_sort): Store the new sort data structure
	(cmd_sort_redo): Call sort_contents only if a permutation index
	does not already exist, otherwise use the index with sort_postion
	(cmd_sort_undo): Create an inverse of the permutation index
	if it doesn't already exit to call sort_positon with

	* src/commands.h: New cmd_sort prototype.

	* src/workbook.c (sort_cmd): Reflecting sorting API changes

Jody Goldberg's avatar
Jody Goldberg committed
1709 1710 1711 1712 1713 1714 1715 1716 1717
2000-06-05  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_relocate) : when relocating the expression
	  be careful to use the offsets when calculating the validity.

	* src/workbook-edit.c (workbook_auto_complete_destroy) : Only remove
	  signal if it has been activated.  Only delete the completer if it
	  exists.

Miguel de Icaza's avatar
Miguel de Icaza committed
1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804
2000-06-05  Miguel de Icaza  <miguel@helixcode.com>

	* src/gnumeric-util.c (gtk_radio_button_select): Add
	precondition.  Chema found this, but we should add the proper
	check at an upper layer.

2000-06-04  Miguel de Icaza  <miguel@helixcode.com>

	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p):
	Change prototype to use GtkEntry instead of GtkWidget.

	* src/workbook-edit.c (workbook_finish_editing): Changed direct access to
	workbook->private_entry to workbook_get_entry. 
	(entry_changed): ditto.
	(workbook_start_editing_at_cursor): ditto.
	(workbook_editing_expr): ditto.
	(workbook_edit_get_display_text): ditto.

	* src/workbook.c (autosum_cmd): Changed direct access to
	workbook->private_entry to workbook_get_entry. 
	(do_focus_sheet): ditto.
	(wb_edit_key_pressed): ditto.
	(workbook_setup_edit_area): ditto.

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

	* src/workbook-private.h: Make edit_line a structure to keep track
	of the entry and its signal changed.  Also take a chance to change
	this to the self descriptive GtkEntry instead of GtkWidget.

	* src/commands.c (cmd_set_text): Added const here.

	* src/workbook.c (workbook_do_destroy): Add destroy notification
	for the editing facilities

	* src/item-edit.c (item_edit_set_arg): removed auto complete code
	from here. 

2000-06-03  Miguel de Icaza  <miguel@helixcode.com>

	* src/workbook-edit.c, src/workbook-edit.h: New files.  Moved
	workbook_start_editing_at_cursor, workbook_finish_editing,
	workbook_get_entry, workbook_editing_expr here.  Killed
	workbook_set_entry prototype.

	* src/workbook.c (workbook_start_editing_at_cursor): Moved
	autocomplete here. 

	* src/workbook.h: Removed warning.  #include <config.h> is a
	mandatory header file in every C file.  A correct approach is to
	use something like Nautilus' perl script that verifies the
	presence of config.h as the first include.

	* src/workbook.c (close_cmd): Removed ulgy (void)
	(quit_cmd): More.
	(sheet_action_rename_sheet): more.
	(workbook_finish_editing): Fixed more ugly.

	* src/gutils.c (gnumeric_sys_glade_dir): Fixed ugly indentation.
	(gnumeric_usr_plugin_dir): More ugly stuff fixed.
	(gnumeric_usr_dir): Removed ugly const.

2000-05-02  Miguel de Icaza  <miguel@helixcode.com>

	* src/item-edit.h: New ::entry member, auto_max_size, auto_complete_text

	* src/item-edit.c (item_edit_draw_text): Take an ItemEdit as a
	first argument, and reduce the cluttered arguments we were
	passing.
	(item_edit_draw): Cursor_pos is now only the position, it is not
	overloaded with show/hide cursor as well.
	(item_edit_draw_text): Update acoordingly.
	(item_edit_draw_cursor): This new routine paints the cursor only.
	(item_edit_set_arg): Add a new signal handler for "activated" on
	the entry
	(cb_item_edit_cursor_blink): Removed FIXME.
	(item_edit_set_arg): Init item_edit->entry.  I am pretty sure this
	existed in the past.

2000-05-01  Miguel de Icaza  <miguel@helixcode.com>

	* src/item-edit.c (item_edit_draw): Pass auto-completing flag.
	(item_edit_draw_text): Invert auto-complete region.
	(item_edit_set_arg): Init auto_completing here.
	(item_edit_complete_notify): Set the entry from the
	auto-completing data here.

1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826
2000-06-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_expr_{link,unlink}) : renamed from
	  sheet_cell_formula_{link,unlink}.

	* src/cell.c (cell_relocate) : Doh! use the offset flags now that they
	  are being passed.

	* src/clipboard.c (paste_cell) : Renamed from paste_cell_flags.

	* src/expr.c (compare) : value_is_empty_cell -> VALUE_IS_EMPTY.

	* src/value.c (VALUE_IS_EMPTY) : rename from value_is_empty_cell.

	* src/sheet-private.h : Add resize_scrollbar.

	* src/sheet.c (sheet_{col,row}_add) : Use resize_scrollbar flag rather
	  than manually updating the scrolling bar.
	(sheet_update) : Handle resize_scrollbar.
	(sheet_cell_expr_link) : renamed from sheet_cell_formula_link.
	(sheet_cell_expr_unlink) : renamed from sheet_cell_formula_unlink.

Jody Goldberg's avatar
Jody Goldberg committed
1827 1828 1829 1830 1831 1832
2000-06-04  Jody Goldberg <jgoldberg@home.com>

	* src/value.c (value_is_empty_cell) : str == "" is not empty

	* src/expr.c (compare) : comparisons between "" and empty are special.

1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856
2000-06-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_add_to_hash) : Set the CELL_IN_SHEET_LIST
	  flag.
	(sheet_cell_remove_from_hash) : Clear the CELL_IN_SHEET_LIST flag.
	(cb_remove_allcells) : Ditto.
	(sheet_cell_formula_link) : Set the CELL_IN_EXPR_LIST flag.
	(sheet_cell_formula_unlink) : Clear the CELL_IN_EXPR_LIST flag.
	(sheet_formulas_unlink) : Ditto.

	* src/clipboard.c (paste_cell_flags) : Take some additional arguments
	  so that pasted cells can potentially have their references made
	  invariant, this is for sorting.
	(clipboard_paste_region) : Pass the additional offsets when
	  PASTE_EXPR_RELOCATE is specified.
	(append_cell_closure_t) : Delete this type.  Move the origin cell info
	  into CellRegion.

	* src/cell.c (cell_copy) : Clear the sheet and associated flags for
	  the copied cell.  This avoids accidentally realizing comments that
	  become undeletable.
	(cell_relocate) : Remove the unlink flag now that we have the
	  additional cell_flags.

Michael Meeks's avatar
Michael Meeks committed
1857 1858 1859 1860
2000-06-02  Michael Meeks  <michael@helixcode.com>

	* Makefile.am (SUBDIRS): remove libole2. duh.

1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883
2000-06-02  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_reset) : Delete unused routine.
	(sheet_selection_to_list) : Ditto.

	* src/item-cursor.c (item_cursor_autofill_event) : Use new undoable
	  version of autofill.

	* src/corba-sheet.c (Sheet_selection_reset) : Delete.

	* src/commands.c (cmd_area_set_text_undo) : We want to restore
	  formulas, not values.
	(cmd_clear_selection) : Paste by value should be exclusive of paste by
	  formula.
	(cmd_autofill_*) : New functions.

	* idl/Gnumeric.idl : Remove useless function selection_reset.

	* src/number-match.c (format_match) : Handle numbers larger than
	  LONG_{MAX,MIN} by falling through to double.

	* src/sheet.c (sheet_recompute_spans_for_col) : Use closure.

1884 1885 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
2000-06-01  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_sheet_write) : Adjust to changes in
	  sheet_foreach_colrow.

	* src/sheet.c (sheet_foreach_colrow) : Adjust signature.
	(colrow_compute_pixels_from_pts) : Adjust to changes in sheet_foreach_colrow.
	(sheet_set_zoom_factor) : Ditto.
	(cb_recalc_spans_in_col) : Ditto.
	(sheet_recompute_spans_for_col) : Ditto.
	(cb_colrow_compute_pixels_from_pts) : New function wrapper.
	(sheet_find_boundary_{horizontal,vertical}) : Fix case of being on the
	  last non-blank element of a col/row and jumping to the far edge.
	(sheet_move_range) : Redraw prior to moving incase the src region
	  contains a span.

	(sheet_redraw_cell_region) : Be more intelligent about skipping over
	  large empty regions.
	(sheet_cell_foreach_range) : Ditto.

	(cb_check_array_{horizontal,vertical}) : new functions.
	(sheet_range_splits_array) : Rewrite to be use sheet_foreach_colrow.

	* src/selection.c (sheet_selection_cut) : Adjust to changes in
	  sheet_range_splits_array.

	* src/commands.c (cmd_paste_cut_undo) : Select the src range when
	  undoing a cut.  This seems like a nice effect.

	* src/colrow.c (cb_set_row_height) : Adjust to the changes in
	  sheet_foreach_colrow.

	* src/auto-format.c (auto_format_suggest) : Make static.

	* src/gnumeric-util.c (gnumeric_wb_dialog_run) : Silence warning.

1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935
2000-06-02  Jon K Hellan  <hellan@acm.org>

	* src/gnumeric-util.c (gnumeric_wb_dialog_run): Do not set parent
	if parent is already the right one. This avoids unwanted moving of
	already displayed dialogs.

	* src/about.c: Make sure it is only popped up once
	(cb_closed): New callback to remove dialog from workbook window's
	object data.
	(dialog_about): Check if dialog exists as object data on workbook
	window. If so, raise dialog window instead of creating a new one.
	Otherwise store dialog as object data, and connect signal handler
	for "close".  Replace calls to gnome_dialog_set_parent,
	gnome_dialog_set_close and gtk_widget_show with a call to
	gnumeric_dialog_show which does it all.

Michael Meeks's avatar
Michael Meeks committed
1936 1937 1938 1939 1940 1941
2000-05-30  Michael Meeks  <michael@helixcode.com>

	* src/Makefile.am (gnumeric_libs): kill libole2 hack.

	* configure.in: kill CONFIG_SUBDIRS for libole2.

1942 1943 1944 1945 1946 1947 1948 1949
2000-05-31  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/dialogs/dialog-stf.c :
	(stf_dialog_druid_page_cancel) : Remove misplaced gtk_main_quit.

	* src/dialogs/dialog-stf-export.c :
	(stf_export_dialog_druid_page_cancel) : Idem.

1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961
2000-06-01  Kenneth Christiansen <kenneth@gnu.org>

        * po/desk.pl, po/update.pl: Two new scripts for helping 
        translation/i18n maintainance of Gnumeric

        * po/README.tools: Added readme file, which explains the
        use of the newly checked in po tools.

	* NEWS: Added notice about this

        Please go read.

1962 1963
2000-05-31  Jody Goldberg <jgoldberg@home.com>

1964 1965
	* configure.in : Improve naming for libxml messages.

1966 1967 1968
	* src/functions/fn-information.c (gnumeric_countblank) : Fix typo
	  reported by <matasmi@iki.fi> Bug 12428.

1969 1970 1971 1972 1973 1974
	* src/sheet.c (sheet_move_range) : invalidate destination before
	  adjsuting src to point to dst.
	(cmd_paste_cut_*) : keep a list of displaced content, not just the
	  lost bits of the destination range, but also the portions of the src
	  that are out of range.

Jody Goldberg's avatar
Jody Goldberg committed
1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995
2000-05-31  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_ins_del_row_col_destroy) : Fix leak.
	(cmd_paste_cut_*) : We do need to worry about invalidations.  Any
	  references to the portions of the destination region that do not
	  overlap the src region get invalidated.

	* src/ranges.c (range_translate) : Adjust the semantics so that the
	  result warns of a range that was translated completly out of bounds.

	* src/sheet.c (sheet_move_range) : Invalidate the references to the
	  portions of the destination range that do NOT overlap with the src.
	(sheet_shift_{cols,rows}) : Rename and move to..
	* src/cmd-edit.c (cmd_shift_{cols,rows}) : here.  Use cmd_paste_cut
	  instead of sheet_move_range directly.

	* src/dialogs/dialog-{insert,delete}.c : Switch to cmd_shift_{cols,rows}.

	* src/history.c (history_menu_insert_separator) : Add a more detailed
	  explaination when the history lookup fails.

1996 1997 1998 1999 2000
2000-05-30  Morten Welinder  <terra@diku.dk>

	* src/format.c (find_decimal_char): Remove over-constification.
	(format_remove_decimal): Terminate the copy properly.

2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025
2000-05-30  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/dialog-printer-setup.c (enum MarginOrientation): Add
	MARGIN_NONE for use with set_horizontal/vertical_bounds.
	(spin_button_set_bound): New function. Allow the value in spin
	button to increase by at most space_to_grow.
	(get_printable_width): New function. Return page width minus
	margins in specified unit.
	(get_printable_height): New function. Return page height minus
	margins, header and footer in specified unit.
	(set_horizontal_bounds): New function. Set the upper bounds for
	left and right margins.
	(set_vertical_bounds): New function. Set the upper bounds for
	top/bottom margins, headers and footers.
	(draw_margin): Add default branch to silence warning - MARGIN_NONE
	now exists.
	(canvas_update): Update bounds for margins when paper size has
	changed.
	(spin_button_adapt_to_unit): New function. Select suitable
	increments and number of digits for the unit.
	(do_convert): Call function above.
	(unit_changed): Update bounds for margins when a margin has
	changed.
	(unit_editor_configure): Call spin_button_adapt_to_unit.

2026 2027 2028 2029
2000-05-29  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_ins_del_row_col_undo) : Bounds are inclusive.

Jody Goldberg's avatar
Jody Goldberg committed
2030 2031 2032 2033
2000-05-29  Jody Goldberg <jgoldberg@home.com>

	* src/item-grid.c (create_popup_menu) : translate the menu labels.

2034 2035 2036 2037 2038 2039 2040
2000-05-27  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-bonobo.c (sheet_object_bonobo_load),
	(sheet_object_bonobo_load_from_file): update for new PersistStream API.

	* configure.in (gnumeric_executable): check for bonobo 0.14

2041 2042 2043 2044 2045
2000-05-29  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellrange_relocate) : Only relocate a range if both
	  elements need relocation.

2046 2047 2048 2049 2050 2051 2052 2053 2054 2055
2000-05-29  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_workbook_write) : Arrrggh.  textdomain seems to
	  use a static buffer.  We need to strdup the result.  A more thorough
	  reading of the docs suggests that changing the textdomain is
	  completely wrong.  It is not doing what I had originally thought at
	  all.  Any idea what the correct solution would be ?  I'll patch this
	  for now because 12461 is serious, and this does solve the problem,
	  even if the solution is crap.

ERDI Gergo's avatar