OChangeLog-2001-06-26 251 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
2000-09-24  Jody Goldberg <jgoldberg@home.com>

	* src/normal-args.c : Suppress warning.

	* src/functions/fn*.c : Add a prototype of the _init routine to
	  suppress warning.

	* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
	  implemented.

	* src/sheet-object-widget.c (sheet_object_widget_new) : delete.

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

	* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
	  the standard controls.  This does not work.
	* src/gnumeric.xml : Continue work on bonobizing toolbars.

2000-09-23  Jody Goldberg <jgoldberg@home.com>
	For : realms@telerama.com

	* src/datetime.c (datetime_g_days_between) : new function.
	(datetime_g_months_between) : Ditto.
	(datetime_g_years_between) : Ditto.

	* src/functions/fn-date.c : Implement DateDif.

2000-09-23  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (x_selection_to_cell_region) : typo.

	* src/gnumeric-util.c (gnumeric_inject_widget_into_bonoboui) : New
	  utility routine.

35 36 37 38 39 40 41
2000-09-23  JP Rosevear  <jpr@helixcode.com>

	* configure.in: Create an IDL_FLAGS variable with various paths based
	on GNOME_PATH

	* idl/Makefile.am: Use IDL_FLAGS 

42 43 44 45 46 47 48 49 50 51 52 53 54
2000-09-23  Almer S. Tigelaar  <almer1@dds.nl>

	* src/stf-parse.c, src/stf-parse.h:
	(stf_parse_is_valid_data): return invalid character
	or NULL if the data is valid.

	* src/clipboard.c:
	(stf_read_workbook): Adjust to cope with the new 
	stf_parse_is_valid_data.

	* src/stf.c:
	(x_selection_to_cell_region): Idem.

55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
2000-09-23  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c : Use stock icons.
	* src/workbook-object-toolbar.c : Ditto.
	* src/workbook.c : Ditto.  Add more verbs.

	* src/workbook-edit.c (workbook_edit_set_sensitive) : toolbar
	  sensitization is broken for bonobo.

	* src/gnumeric.xml : The beginings of toolbar support.

	* src/application.c : Register all pixmaps as stock icons.

2000-09-22  Jody Goldberg <jgoldberg@home.com>

	* src/history.c (history_menu_insert_separator) : Use
	  history_menu_locate_separator.  This is crufty.

73 74
2000-09-22  Morten Welinder  <terra@diku.dk>

75 76 77 78 79 80 81 82 83
	* src/format.c (append_hour): Increase buffer size, just in case.
	(append_hour_elapsed): Ditto.
	(append_minute): Ditto.
	(append_second): Ditto.
	(append_minute_elapsed): Sort-of ditto.
	(append_second_elapsed): Ditto.
	(append_hour): Fix hour display for am/pm mode for the midnight
 	and noon hours.

84 85 86
	* src/print-cell.c (print_show_iso8859_1): Use bigger stack buffer
 	so we will almost never have to allocate dynamically.

87 88 89 90 91 92
2000-09-22  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object-widget.c (sheet_widget_checkbox_toggled) : Change
	  the cell state.
	(sheet_widget_checkbox_construct) : default to something intelligent.

93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
2000-09-21  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_hide_cursor) : redraw the selection.
	* src/sheet.c (sheet_show_cursor) : redraw the selection.

	* src/sheet-object.c : Improve framework for editing/creating objects.
	  We are more consistent about hiding the selection, and when to make
	  things visible again.

	* src/sheet-object-widget.c : Begin framework for configuring the
	  sheet widgets.

	* src/selection.c (sheet_selection_redraw) : new function.

	* src/item-grid.c (item_grid_button_1) : Don't cancel object editing
	  if there is a guru up.  We could be configuring things.

	* src/selection.c (sheet_is_cell_selected) : Do no show selections
	  while objects are being edited.

	* src/gnumeric-util.c (gnumeric_non_modal_dialog) : Change the
	  signature.

	* src/sheet-object.c (sheet_object_destroy) : Improve safety.

118 119 120 121 122 123 124
2000-09-21  Lauris Kaplinski <lauris@helixcode.com>

	* print-cell.c (print_show_iso8859_1): Transcode to UTF-8 instead
	of UCS4, use gnome_print_show_sized.
	(g_unichar_to_utf8): Function copied from glib 1.3 (and will go away,
	if gnumeric will be ported to glib 2.0)

Jody Goldberg's avatar
Jody Goldberg committed
125 126 127 128 129 130 131 132
2000-09-21  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_month_before_day) : implement.

	* src/workbook.c (workbook_expr_relocate) : Support dependents other
	  than cells.
	(workbook_expr_unrelocate) : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
133 134
2000-09-21  Jody Goldberg <jgoldberg@home.com>

135 136 137
	* src/print-cell.c (print_show_iso8859_1) : Temp fix to get things
	  compiling.  What should we be using?

Jody Goldberg's avatar
Jody Goldberg committed
138 139
	* src/position.c (eval_pos_init_dep) : typo.

140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
2000-09-21  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_cmd_format_as_money) :
	  no need to translate the money format.  We generate it elsewhere.
	(workbook_cmd_format_as_percent) : ditto.

	* src/formats.c : Most format strings are NOT required to be
	  translated anymore.  We store them internaly in the C locale.
	(currency_date_format_init) : customize the currency symbol, and the
	  day/month order.

	* src/format.c (format_get_currency) : new function.
	(format_month_before_day) : New stub.  How to do this portably.
	(lookup_color_by_name) : new routine.
	(lookup_color) : that was split from here.
	(format_remove_decimal) : Fix a bit.  still broken for fmts with
	  multiple cases.
	(format_value) : no need to translate the format.
	(translate_format_color) : new routine.
	(style_format_delocalize) : new routine.  Add colour support.
	(style_format_new_XL) : split from here.
	(style_format_str_as_XL) : new routine.  Add colour support.
	(style_format_as_XL) : split from here.

Jody Goldberg's avatar
Jody Goldberg committed
164 165
2000-09-20  Jody Goldberg <jgoldberg@home.com>

166 167 168
	* src/sheet-object.c (sheet_object_destroy) : If the current object is
	  destroyed switch back to edit mode.

Jody Goldberg's avatar
Jody Goldberg committed
169 170 171 172 173 174 175 176 177 178 179 180 181 182 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 208 209 210 211 212 213 214 215 216
	* src/workbook-edit.c (workbook_start_editing_at_cursor) : We always
	  create an in canvas edit item, but sometimes we jump the focus to
	  the status line.

	* src/value.c (value_new_cellrange_r) : set the sheet for both
	  cell_refs.

	* src/sheet-object-widget.c (checkbox_set_expr) : Fix.

	* src/graph-series.c (graph_series_seq_scalar) : No need to handle
	  headers here.
	(graph_series_seq_date) : or here.
	(graph_series_seq_string) : or here.
	(graph_series_eval) : Handle idl rename.
	(series_get_name) : No need to do this here.
	(impl_vector_scalar_value) : No need to calculate label.
	(impl_vector_date_value) : Ditto.
	(impl_vector_string_value) : Ditto.
	(graph_series_set_expr) : Correctly register and un register deps.
	(graph_series_new) : series names are handled at a higher level.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Restore the
	  behaviour of F2.

	* src/expr.c (cellrange_relocate) : BE smarter about checking for
	  potential 3d references.

	* idl/gnumeric-graphs.idl : Rename routines using lowercase underscore
	  rather than StuddyCaps.

	* src/workbook.c (workbook_expr_relocate) : Handle dependents.

	* src/position.c (eval_pos_init_dep) : new function.
	
	* configure.in : Prepare for release.
	  Update req for gnome-print to 0.23
	  Update req for libglade to 0.14
	  Comment out pspell.
	  Leave perl disabled.

	* gnumeric.spec.in : Ditto.
	* README : Ditto.

2000-09-19  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (natural_order_cm) : Using col_info and row_info is
	  deprecated.

217 218 219 220 221 222
2000-09-20  Kenneth Christiansen  <kenneth@gnu.org>

	* gnumeric.spec.in: Updated for new release.
	* xml-po/: added new dir, which will be used for translation
	of XML files, in the near future.

223 224 225 226
2000-09-19  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_menu_tools): Spelling fixes.

227 228 229 230 231 232 233
2000-09-19  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_sheet_name_strip_number): isdigit takes
 	unsigned chars, not chars.

	* src/functions/fn-lookup.c (find_index_linear): Quiet warnings.

Michael Meeks's avatar
Michael Meeks committed
234 235 236 237 238 239
2000-09-18  Michael Meeks  <michael@helixcode.com>

	* src/Makefile.am (INCLUDES): add GNOME_DATADIR

	* src/workbook.c (workbook_new): use it.

Jody Goldberg's avatar
Jody Goldberg committed
240 241
2000-09-18  Jody Goldberg <jgoldberg@home.com>

242 243 244 245 246 247 248 249 250
	* src/sheet.c (sheet_row_size_fit_pixels) : PUTRID KLUDGE.
	  Avoid the ugly row size changes when fitting the size.

	* src/format.c (style_format_new_XL) : Implement translation.
	(style_format_as_XL) : Ditto.

	* src/number-match.c (format_match_init) : No need to compare to
	  translated General.

Jody Goldberg's avatar
Jody Goldberg committed
251 252
	* src/sheet.c (sheet_flag_status_update_cell) : Adjust signature.

Morten Welinder's avatar
Morten Welinder committed
253 254 255 256
2000-09-17  Morten Welinder  <terra@diku.dk>

	* src/main.c (gnumeric_main): Init colours earlier.

257 258 259 260 261 262 263 264
2000-09-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (cb_cell_rerender) : We need to recalc the size
	  after rendering the value.  However, it is wasteful to redraw each
	  cell individually.
	(cb_sheet_pref_display_formulas) : redraw entire sheet.  It is
	  simpler.

265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
2000-09-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c : Use the new Gnome App Libs (GAL)
	  routines.
	* src/workbook-view.c : Ditto.
	* src/workbook.c : Ditto.

	* src/main.c (gnumeric_main) : call e_color_init and e_color_shutdown.

	* src/gnumeric-util.c (gnumeric_create_tooltip) :
	  Rename from color -> e_color.
	* src/style.c (style_color_new) : Ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_realize) :
	  Rename from cursor -> e_cursor.
	* src/item-cursor.c (item_cursor_set_cursor) : Ditto.
	* src/cell-comment.c (cell_comment_clicked) : Ditto.
	* src/item-grid.c (item_grid_event) : Ditto.
	* src/sheet-object.c : Ditto.

	* src/color.c : Split the utilities into the gal library.

	* src/Makefile.am : Remove cursors.[ch]

	* configure.in : Handle the new Gnome App Lib (GAL)

291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321
2000-09-17  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-graph-guru.c (cb_create_series_from_range) :
	  GraphSeries is responsible for registering.

	* src/history.c : Attempt to convert to the new bonobo ui handler.

	* src/graph-series.c (graph_series_eval) : Support string and date
	  series.
	(series_get_name) : New function.
	(impl_vector_scalar_value) : Use it here.
	(impl_vector_date_value) : here
	(impl_vector_string_value) : and here.
	(cb_check_range_for_pure_string) : new function.
	(graph_series_new) : Start guess whether a series is scalar or string.
	(graph_series_servant) : Delete.
	(graph_series_set_subscriber) : Take responsibility for registering
	  with the remote Graph::Manager.

	* src/gnumeric.xml : Remove bogus '/menu/File/open' placeholder
	  Name the '/menu/File/FileHistory' placeholder.

	* src/sheet-object-container.c (sheet_object_container_update_bounds)
	  Fix off by 1 error here.
	(make_container_item) : And here.

	* src/sheet-object.c (sheet_object_add_view) : Renamed from
	  sheet_view_object_realize.
	(sheet_object_remove_view) : Renamed from sheet_view_object_unrealize.
	(control_point_handle_event) : Enable edit popup from control points.

322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
2000-09-16  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/autoformat.glade:
	Remove ability to focus widgets on the Template Details tab.
	Remove the 'Apply Dimensions' checkbox.
	Add some accelerators.
	Add tooltip to category combo.

	* src/dialogs/dialog-autoformat.c:
	(cb_category_entry_changed): Replaced by cb_category_popwin_hide
	(cb_category_popwin_hide): Invoked when the popup window of
	the category window becomes hidden.
	(dialog_autoformat): Remove handling for dimensions checkbox and
	change signal binding for category combo.

Michael Meeks's avatar
Michael Meeks committed
337 338 339 340
2000-09-16  Michael Meeks  <michael@helixcode.com>

	* src/workbook.c (workbook_new): use datadir for get_ui_fname.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
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
2000-09-16  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/autoformat.glade:
	New autoformat dialog.

	* src/dialogs/dialog-autoformat.c:
	(fill_category_list): Replace with load_categories.
	(load_categories): Same role as fill_category_list, but
	loads them into a GtkList instead.
	(free_categories): New, frees a GtkList holding categories.
	(templates_load): Hide the scrollbar when it's not needed, remove
	obsolete label code.
	(previews_load): Set only the template name as tooltip.
	(cb_more_clicked): Removed entirely, the more button is no longer.
	(cb_new_clicked): Replaced by cb_new_activated.
	(cb_new_activated): Same as cb_new_clicked but now
	for a GtkMenuItem.
	(cb_edit_clicked): Replaced by cb_edit_activated.
	(cb_edit_activated): Same as cb_edit_clicked but now
	for a GtkMenuItem.
	(cb_remove_clicked): Replaced by cb_remove_current_activated.
	(cb_remove_current_activated): Same as cb_remove_clicked but now
	for a GtkMenuItem.
	(cb_categories_select_row): Replace with cb_category_entry_changed.
	(cb_category_entry_changed): New, same role as cb_categories_select_row,
	but now for the 'category' GtkEntry instead of the previous GtkCList.
	(cb_apply_button_toggled): Replaced by cb_apply_item_toggled.
	(cb_apply_item_toggled): Same as cb_apply_item_toggled, but now for
	GtkCheckMenuItem.
	(cb_gridlines_button_toggled): Replaced by cb_gridlines_item_toggled.
	(cb_gridlines_item_toggled): Same as cb_gridlines_item_toggled, but now
	for GtkCheckMenuItem.
	(setup_apply_item): New, load a glade control and bind it's event to
	cb_apply_item_toggled in one step.
	(dialog_autoformat): Adjusted to handle the new controls.

377 378 379 380 381
2000-09-15  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-graph-guru.c (dialog_graph_guru) : Profilacticly
	  NULL the gui pointer.

382 383 384 385 386 387 388 389 390 391 392
2000-09-15  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.xml : Use placeholder for file history.
	  How to have multiple place holders ?

	* src/history.c (history_menu_insert_items) : Quick fix to reduce
	  number of warnings.

	* src/sheet-object.c (sheet_object_stop_editing) : Use set_active.
	(sheet_mode_edit_object) : Ditto.

393 394 395 396 397 398 399 400 401 402 403 404 405 406
2000-09-14  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object-widget.c (sheet_object_widget_new_view) : Fix off
	  by one error.
	(sheet_object_widget_update_bounds) : Ditto.
	(control_point_handle_event) : Handle events for the acetate.

	* src/sheet-object.c (sheet_object_destroy_control_points) : Avoid
	  hard coding the number of control points.
	(sheet_object_begin_creation) : event coordinates are already mapped.
	(update_bbox) : The off by 1 error was in the widget wrapper not here.

	* idl/gnumeric-graphs.idl : Make the Vector::changed routines oneway.

407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 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
2000-09-14  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (sheet_view_row_size_changed) : Use
	  sheet_selection_full_rows and workbook_cmd_format_row_height.
	(sheet_view_col_size_changed) : Use
	  sheet_selection_full_cols and workbook_cmd_format_column_width.

	* src/item-grid.c (context_row_height) : Use sheet_dialog_set_row_height.
	(context_col_width) : Use sheet_dialog_set_column_width.

	* src/workbook-cmd-format.c (sheet_dialog_set_column_width) : Split
	  the gui into here.
	(workbook_cmd_format_column_width) : And the action into here.  Use
	  the appropriate commands to get undo support.
	(workbook_cmd_format_column_auto_fit) : Use workbook_cmd_format_column_width.
	(sheet_dialog_set_row_height) : Split the gui into here.
	(workbook_cmd_format_row_height) : And the action into here.  Use
	  the appropriate commands to get undo support.
	(workbook_cmd_format_row_auto_fit) : Use workbook_cmd_format_row_height.

	* src/selection.c (sheet_row_selection_type) : moved from sheet.c
	(sheet_col_selection_type) : moved from sheet.c
	(sheet_selection_full_cols) : new routine.
	(sheet_selection_full_rows) : new routine.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Don't jump
	  directly to the edit line with F2.  Start editing in sheet first.

	* src/selection.c (selection_foreach_range) : Add the option of
	  iterating the list backwards.

	* src/workbook-cmd-format.c (cb_colrow_collect) : New function.

	* src/workbook-cmd-format.c (workbook_cmd_format_column_width) : Fix.
	(workbook_cmd_format_row_height) : Fix.

	* src/sheet-object-graphic.c (sheet_object_graphic_update_bounds) :
	  new function.
	(sheet_object_filled_new_view) : Set the bounds when a new view is
	  constructed.  DO NOT rely on the realized list, new objects are not
	  added until AFTER construction.
	* src/sheet-object.c (sheet_object_update_bounds) : delete.

2000-09-13  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellref_relocate) : Return more information so that we
	  can differentiate relocating rows, cols, or both.
	(cellrange_relocate) : Use the new information to extend the
	  heuristic for when to relocate a range.  In the past we assumed that
	  unless both ends of the range were moving we should not do the
	  relocation.  It seems that there are other cases which will also
	  relocate.  When inserting/deleting rows/cols or cutting a region
	  that includes an entire side of the source region we should
	  relocate.
	  Sadly this patch is incomplete.  It relocates too much now.
	  If you cut B2 and paste it into B3 the source region A1:B2 will
	  resize to A1:B3 even though it should not.  At least ins/del row/col
	  will now work.

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

	* src/workbook.c (create_bonobo_object) : Fixed.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_new_from_oid) :
	  Delete duplicate function.

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

	* src/commands.c (cmd_ins_del_row_col_{undo,redo}) : Insert/delete
	  rows/cols clears the cut buffer.  Copies are preserved.

	* src/sheet-object.c (cb_obj_create_button_release) :  remove the
	  bonobo specific file handling.  That is to be done earlier
	  or in a different place.  This routine is strictly for placement,
	  not content.
	(sheet_mode_clear) : Move the deactivation here for now.  Hopefully
	  move it to a virtual.

	* src/about.c (dialog_about) : suppress warning.

487 488 489 490
2000-09-12  Morten Welinder  <terra@diku.dk>

	* src/sheet-object-widget.c (checkbox_eval): Plug leak.

491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563
2000-09-11  Jon K Hellan  <hellan@acm.org>

	* src/main.c: Add print_debugging variable / debug_print startup
	option.
	(gnumeric_main): Make stdout line buffered - we only use it for
	debug info.

	* src/print-cell.[ch] (print_make_rectangle_path): New function: make
	a rectangular gnome-print path.
	* src/print-cell.c (print_cell): Use it.

	* src/print.c (print_empty_pages variable): Remove. This variable
	is never set. With the new repeated row/column handling, the logic
	will have to be rewritten anyway if needed.
	(print_page_repeated_rows): Remove unused parameters start_row and
	end_row.
	(print_page_repeated_cols): s/row/col/. Fix bug - was repeat_left,
	corrected to repeat_top.
	(print_page_object): Remove unused parameters page_width /
	page_height and end_col / end_row.
	(print_hf_element): Rename from print_hf
	(print_hf_line): New function. Logic shared by print_header and
	print_footer. Clip to header region. if print_debugging != 0, draw
	a box around header region.
	(print_headers): Use print_hf_line. Place at correct y position -
	ascenders flush with inside of top margin.
	(print_footers): Descenders flush with inside of bottom
	margin. Otherwise like headers.
	(print_page): Include logic for repeated rows and columns: They
	are only repeated after the start of the repeating range has been
	seen in the regular page flow. Fix grid size bug when centering
	horizontally or vertically. Use print_make_rectangle_path.  Remove
	print_empty_pages logic.
	(compute_group): New function. Old compute groups changed to only
	compute one page. Rationale: Available space on page for normal
	cell flow changes once repeated rows/columns kick in, so there is
	no gain in precomputing a list.
	(render_sheet_objects): New function. Factored out of
	print_sheet_range.
	(print_range_down_then_right): New function. Used to be the row
	major loop of print_sheet_range. Include logic for repeated rows
	and columns (see print_page).
	(print_range_right_then_down): s/row major/column major/
	(print_sheet_range): Restructure into a small function that calls
	render_sheet_objects, print_range_down_then_right,
	print_range_right_then_down.
	(compute_sheet_pages): Remove print_empty_pages logic. The
	variable is never set. With the new repeated row/column handling,
	the logic will have to be rewritten anyway if needed.
	(compute_sheet_pages, print_sheet): Remove "key" parameter because
	we are now called from g_list_foreach instead of
	g_hash_table_foreach.
	
	(compute_pages): Use list returned by workbook_sheets instead of
	wb->sheets so sheets are processed in order.
	(workbook_print_all): Print sheets in display order. To do so, use
	list returned by workbook_sheets instead of wb->sheets.
	(sheet_print): Use changed print_sheet signature.

	* src/workbook.h (struct _Workbook): Rename "sheets" to
	sheet_hash_private.

	* src/workbook.c (workbook_do_destroy, workbook_do_destroy,
	workbook_set_dirty, workbook_is_dirty, workbook_is_pristine,
	workbook_init, workbook_rename_sheet, workbook_sheet_count,
	workbook_attach_sheet, workbook_detach_sheet,
	workbook_sheet_lookup): s/wb->sheets/wb->sheet_hash_private/
	(cb_assemble_selection, workbook_selection_to_string): Not in
	use. Remove.

	* src/workbook-view.c (workbook_view_pref_visibility):
	s/wb->sheets/wb->sheet_hash_private/

Morten Welinder's avatar
Morten Welinder committed
564 565 566 567
2000-09-11  Morten Welinder  <terra@diku.dk>

	* configure.in (pspell): Quiet the test.

Jody Goldberg's avatar
Jody Goldberg committed
568 569 570 571 572 573 574 575 576 577 578 579 580
2000-09-11  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.xml : Add the missing menu elements.

	* src/workbook.c (verbs) : Add some of the missing elements.
	(insert_object_cmd) : Suppress some warnings.

	* src/sheet-object-container.c (sheet_object_container_new_file) :
	  suppress warning.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_new_from_oid) :
	  suppress warning.

Michael Meeks's avatar
Michael Meeks committed
581 582 583 584 585 586 587 588 589
2000-09-11  Michael Meeks  <michael@helixcode.com>

	* src/workbook-format-toolbar.c: s/BonoboApp/BonoboWin/

	* src/workbook-object-toolbar.c: ditto.

	* src/workbook.c: s/BonoboApp/BonoboWin/
	(verbs): Add FileSaveAs which I seem to have forgotten.

Jody Goldberg's avatar
Jody Goldberg committed
590 591 592 593 594
2000-09-10  Jody Goldberg <jgoldberg@home.com>

	* src/graph-series.c (graph_series_destroy) : plug leak.
	* src/sheet-object-widget.c (sheet_widget_checkbox_destroy) : Ditto.

595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 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 711 712 713 714 715 716 717 718 719 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 751 752 753 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
2000-09-10  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_read_sheet_object) : objects have their positions
	  set after creation, not before.
	NOTE : This routine is incomplete.  It does not handle all of the
	  objects.  It is questionable whether or not it even belongs here.
	  We may want to encapsulate the persistence on a per object basis.
	(xml_sheet_read) : localize and improve variable naming.

	* src/workbook.c : Add an ifdef around the GnomeUI handler in bonobo
	  mode.  Move the object creation cruft into its own file.
	(select_component_id) : new function.
	(create_embedded_component_cmd) : simplify.
	(create_embedded_item_cmd) : simplify.
	(create_button_cmd) : Delete.
	(create_checkbox_cmd) : Delete.
	(create_line_cmd) : Delete.
	(create_arrow_cmd) : Delete.
	(create_rectangle_cmd) : delete.
	(create_ellipse_cmd) : delete.
	(cut_cmd) : simplify object handling.
	(insert_object_cmd) : Use sheet_object_bonobo_new_from_oid.
	(do_focus_sheet) : Handle object toolbar too.
	(workbook_detach_sheet) : Before messing with the views go back to
	  simple edit mode.

	* src/workbook-object-toolbar.c (create_object_command) : new
	  function.
	(cmd_create_*) : Use here.

	* src/workbook-edit.c (workbook_edit_set_sensitive) : Add the object
	  toolbar.

	* src/sheet-object.c (sheet_release_coords) : delete.
	(sheet_object_destroy) : simplify.
	(SheetObject::end_popup) : remove.
	(SheetObject::populate_menu) : rename from start_popup.
	(SheetObject::new_view) : rename from realize.
	(SheetObject::user_config) : New virtual.
	(sheet_object_construct) : initialize dragging to FALSE.
	  s/Sheet::objects/Sheet::sheet_objects/
	(sheet_object_drop_file) : Moved.
	(sheet_object_realize) : No need for SheetView::temp_item.
	(button_widget_create) : delete.
	(checkbox_widget_create) : delete.
	(sheet_object_create_button) : delete.
	(sheet_object_create_checkbox) : delete.
	(create_object) : delete.
	(cb_obj_create_motion) : rename from sheet_motion_notify.  Simplify.
	  Rubber band a rectangle rather than the actual object.
	  Keep track of whether or not a we have resized larger than the
	  minimum 5x5 size.
	(cb_obj_create_button_release) : rename from sheet_button_release.
	  Change behavior to have the release do the realizing and bound
	  setting.  Set the bounds to the current coord ONLY if we have moved
	  enough, otherwise just use the default size of the object tranformed
	  to the location of the original button press.
	(shutdown_sheet_object_creation) : merge into button release.
	(sheet_leave_notify) : Delete.
	(sheet_button_press) : Delete.
	(sheet_object_begin_creation) : Delete.
	(sheet_finish_object_creation) : merge into button release and clear
	  out all the cruft requiring removal of signals.
	(sheet_mode_clear) : new function.  Does some object management.
	(sheet_set_mode_type) : delete.
	(sheet_set_mode_type_full) : delete content.  Split logical action into.
	(sheet_mode_edit) : here.
	(sheet_mode_edit_object) : here.
	(sheet_mode_create_object) : and here.
	(sheet_object_destroy_control_points) : be more pedantic a about
	  checking that we have a valid view.
	(sheet_object_stop_editing) : Adjust for new object editing semantics.
	(set_item_x) : Merge this
	(set_item_y) : and this.
	(set_item_x_y) : into here.  And add the logic to call
	  new_control_point.
	(new_control_point) : Set the cursor here.
	(update_bbox) : Recall that the bounding box excludes the far coords.
	(control_point_handle_event) : No need to make object the current, if
	  we are being called we are current.
	(sheet_object_populate_menu) : rename from sheet_object_start_popup.
	(sheet_object_end_popup) : delete.
	(sheet_object_canvas_event) : adjust to function renaming.
	(sheet_object_widget_event) : delete.
	(sheet_object_widget_handle) : delete.
	(sheet_object_start_editing) : delete, no need.  update_bbox does all
	  of this.
	(sheet_object_make_current) : delete.
	(sheet_object_insert) : this was not what its name suggested.  It was
	  a rather specialized bonobo utility.  Move it where it belongs.

	* src/sheet-object-widget.c : Rewrite.

	* src/sheet-object-item.c (sheet_object_item_new_view) : rename from
	  sheet_object_item_realize.

	* src/sheet-object-graphic.c (sheet_object_graphic_new_view) :
	  rename from sheet_object_graphic_realize.
	(sheet_object_filled_new_view) : renamed from sheet_object_filled_realize.
	(sheet_object_create_line) : No need to take position, do that later.
	(sheet_object_create_filled) : Ditto.

	* src/sheet-object-container.c (user_activation_request_cb) : Adjust
	  to changes in sheet mode handling.
	(sheet_object_container_new_view) : rename from sheet_object_container_realize.
	(sheet_object_container_new_bonobo) : No need to take pos info, that
	  is set later.
	(sheet_object_container_new_object) : Ditto.
	(sheet_object_container_new_file) : Moved and renamed from sheet_object_drop_file.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : No need
	  to take position info.  Bounds are set later.
	(sheet_object_bonobo_new_from_oid) : Move from sheet_object_insert
	  which was much to generic a name and location for this.

	* src/print.c (print_sheet_range) : Adjust to rename of the
	  sheet_object list.

	* src/pixmaps.h : Remove the pixmaps that moved to the object toolbar.

	* src/item-grid.c (item_grid_button_1) : Handle object creation and
	  finishing object editing directly, no more need for adding and
	  removing handlers.  Adjust arg to be a Button event.
	(item_grid_event) : Add a new cursor for object creation.
	(item_grid_event) : Do not change to edit mode until we know why the
	  button was pressed.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) :
	  s/sheet_set_mode_type/sheet_mode_edit/
	(gnumeric_sheet_key_press) : Adjust to new mode scheme.
	(gnumeric_sheet_key_release) : Ditto.
	(gnumeric_sheet_filenames_dropped) : Ditto.

	* src/gnumeric.h : Add fwd decl of SheetObject.

	* src/gnumeric-sheet.h : delete GnumericSheet::mode .

	* src/gnumeric-type-util.h : Rename GNUMERIC_MAKE_TYPE_WITH_PARENT
	  to GNUMERIC_MAKE_TYPE_WITH_CLASS.  That makes more sense.

	* src/eval.c (invalidate_refs) : Use dependent_set_expr.
	(cell_eval) : New need to check generation If we are called we are out
	  of date.

	* src/dependent.c (dependent_eval) : moved from eval.c.
	(dependent_type_register) : New routine.
	(dependent_set_expr) ; Ditto.
	(dependent_debug_name) : Use the new registry.

	* src/dependent.h : Reorder flags, remove explicit types for graphs
	  and checkboxes.  Those are handled by the virtual table.

	* src/commands.c : s/PARENT/CLASS/

	* src/cell.h : Reorder the CellFlags.

	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Do not pass the
	  position to sheet_object_containter_new_object.

	* src/Makefile.am : Add workbook-object-toolbar.[ch]
	  and graph-series.[ch]
	  merge the libraries from the two idl files.

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

	* src/sheet-view.c (sheet_view_construct) : Init control points to NULL.
	(SheetView::temp_item) : remove this.

	* src/sheet.c (sheet_new) : Init the members associated with objects.
	(sheet_destroy) : Destroy objects.
	(Sheet::mode) : remove.

	* src/gnumeric.xml : Add a label for the selection menu.

	* src/sheet-object-container.c (sheet_object_container_realize) :
	  Fix warning.

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

	* src/item-bar.c (colrow_tip_setlabel) : mark the size tooltips as
	  containing pts.
	* src/dialogs/row-height.glade :
	* src/dialogs/col-width.glade : Ditto.

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
2000-09-10  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/dialog-stf.h: Limit the number of lines 
	displayed in the preview. This is a temporary solution for
	bug #23426.
	
	* src/dialogs/dialog-stf-csv-page.c:
	(stf_dialog_csv_page_prepare): Ditto.

	* src/dialogs/dialog-stf-fixed-page.c:
	(stf_dialog_fixed_page_prepare): Ditto.
	
	* src/dialogs/dialog-stf-format-page.c:
	(stf_dialog_format_page_prepare): Ditto.
	(format_page_format_changed): Kill memory
	leak.

	* src/stf-parse.c:
	(stf_parse_csv_line): Change to still return
	something if the maximum number of columns is
	exceeded.
	(stf_parse_fixed_line): Ditto.

	* src/dialogs/dialog-stf-preview.c:
	(stf_preview_render): Adjust to only render SHEET_MAX_COLS
	columns.
	(stf_preview_get_table_pixel_width): Ditto.

807 808 809 810 811 812
2000-09-09  Michael Meeks  <michael@helixcode.com>

	* src/gnumeric.xml: add magic placeholder to help section.

	* src/workbook.c (workbook_new): update for ui_util_new_ui changes.

813 814 815 816 817 818 819 820 821 822 823 824 825 826
2000-09-08  Michael Meeks  <michael@helixcode.com>

	* src/workbook.c (workbook_new): Parse the xml file and add the verbs.
	(workbook_do_destroy): remove warning.

	* src/Makefile.am: Add gnumeric.xml installation

	* src/gnumeric-util.c (gnumeric_dialog_show): remove conditional code.

	* src/sheet-object-container.c (sheet_object_container_realize): upd.

	* src/workbook.c (workbook_get_toplevel): update, BonoboApp is now a
	widget.

Jody Goldberg's avatar
Jody Goldberg committed
827 828 829 830 831 832 833
2000-09-06  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) : Fix
	  typo.

	* src/gnumeric-util.c (gnumeric_dialog_show) : improve readability

Michael Meeks's avatar
Michael Meeks committed
834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871
2000-09-06  Michael Meeks  <michael@helixcode.com>

	* configure.in: Check for bonobo 0.19

	* src/workbook.c: Add/Modify -> Add\\Modify for now.

	* src/workbook-view.c (workbook_view_set_title): use get_toplevel
	(workbook_view_set_size): 

	* src/workbook-private.h: add a main_vbox to put toolbars into.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar): 
	hack for non-bonobized toolbars.

	* src/workbook.c (workbook_show, workbook_hide, workbook_get_toplevel):
	helper functions.

	* src/corba-workbook.c (Workbook_show): use workbook show/hide
	
	* src/analysis-tools.c (prepare_output): ditto.

	* src/main.c (gnumeric_main): ditto.

	* src/clipboard.c (clipboard_paste, x_selection_received),
	(x_clipboard_bind_workbook): ditto.

	* src/application.c (application_set_selected_sheet): use
	workbook_get_toplevel

	* src/history.c (file_history_cmd): ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): ditto.

	* src/xml-io.c (xml_workbook_write): get_toplevel upd.

	* src/workbook.c (new_cmd, file_open_cmd, file_import_cmd): show / hide.
	(workbook_setup_edit_area): get_toplevel

872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887
2000-09-06  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (change_zoom_in_current_sheet_cb) : handle new
	  calling convention for sheet_set_zoom_factor.

	* src/xml-io.c (xml_sheet_read) : Ditto.

	* src/dialogs/dialog-zoom.c (dialog_zoom_impl) : Ditto.

	* src/sheet.c (sheet_new) : Ditto.
	(sheet_duplicate) : Ditto.
	(sheet_set_zoom_factor) : Add an arg to optionally disable
	  recalculating the spans and rerendering.  This is useful when
	  importing zoomed sheets where we know that we are going to respan
	  and render after loading everything.

888 889 890 891 892 893 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 925 926 927 928 929 930 931 932 933 934
2000-09-05  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Add test for pspell.
	* acconfig.h : Ditto.

	* s/cell.u.expression/cell.base.expression/
	* s/cell.generation/cell.base.generation/
	* s/cell.u.entered_text/cell.entered_text/  <- deprecated
	* s/workbook.formula_cell_list/workbook.dependents/

	* s/sheet_cell_expr_link/dependent_expr_link/
	* s/sheet_cell_expr_unlink/dependent_expr_unlink/

	* s/eval_queue_cell/dependent_queue_recalc/
	* s/eval_queue_list/dependent_queue_recalc_list/
	* s/eval_unqueue_cell/dependent_unqueue_recalc/
	* s/eval_unqueue_sheet/dependent_unqueue_recalc_sheet/
	*
	* s/cell_add_dependencies/dependent_add_dependencies
	* s/cell_drop_dependencies/dependent_drop_dependencies

	* s/cell_formula_changed/dependent_changed/
	* s/sheet_cell_expr_link/dependent_link/
	* s/CELL_IN_EXPR_LIST/DEPENDENT_IN_EXPR_LIST/

	* src/cell.c (cell_eval_content) : moved from eval.c

	* src/eval.c (sheet_region_get_deps) : Take a Range rather than 4 int.
	(drop_range_dep) : Use dependent_debug_name.
	(dependency_range_ctor) : Take a CellPos as an arg rather than a Cell.
	(handle_cell_single_dep) : Take an optional CellPos and a Dependent.
	(handle_cell_range_deps) : Ditto. Do not check for singletons here.
	(handle_tree_deps) : Ditto.  Call handle_cell_single_dep directly.
	(cell_add_explicit_dependency) : Delete.
	(get_single_dependencies) : Some const.

	* src/cmd-edit.c (cmd_select_cur_depends) : Use dependent_list_filter
	  to only show cell dependencies for now.

	* src/dependent.c (dependent_list_filter) : new function.
	(dependent_debug_name) : new function.

	* src/history.c : Add a comment about File/Print Preview for
	  translators.

	* src/workbook.c (cb_cell_rerender) : Only cells need this.

935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013
2000-09-03  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/cell-draw.c:
	(cell_draw): Modify to accept a NULL sheet for
	cell->sheet.

	* src/item-grid.c, src/item-grid.h:
	(item_grid_draw_border): Export this routine for use
	by the preview-grid.
	
	* src/preview-grid.h, src/preview-grid.c:
	New, preview-grid canvasitem, based upon item-grid.

	* src/preview-grid-controller.h, src/preview-grid-controller.c:
	New, easy to use wrapper around canvas and preview-grid.

	* src/dialogs/dialogs.h: Add autoformat dialog and
	autoformat edit dialog invocation functions.

	* src/dialogs/autoformat.glade: New,
	glade file for autoformat dialog.

	* src/dialogs/autoformat.glade.h: New,
	translation header for autoformat dialog.
	
	* src/dialogs/dialog-autoformat.c: New, source
	for controlling autoformat dialog.

	* src/sheet-view.c:
	(sheet_view_get_style_font): Modify to accept a 
	NULL sheet. (defaults to zoomlevel 1)
	
	* src/workbook.c:
	(workbook_menu_format[]): Add autoformat.
	(autoformat_cmd): New, invokes autoformat dialog.

	* src/mstyle.c, mstyle.h:
	(mstyle_replace_element): New, replaces an element
	in an mstyle with an element from another mstyle.

	* src/rendered-value.c, src/rendered-value.h:
	(rendered_value_calc_size_ext): Same as the previous
	rendered_value_calc_size, but accepts an mstyle as
	extra parameter. the purpose of this and some other
	minor changes from the rendered_value_calc_size is
	to be able to calc the size of a sheetless cell.
	(rendered_value_calc_size): Performs the same role
	as the previous rendered_value_calc_size and
	calls upon rendered_value_calc_size_ext to do its
	thing.
	(rendered_value_new_ext): Same as previous rendered_value_new
	but accept an mstyle as parameter for sheetless cells.
	(rendered_value_new): Exacly the same as the previous
	render_value_new, but calls upon rendered_value_calc_size_ext.

	* src/xml-io.c, src/xml-io.h:
	(xml_search_child): Export for use by xml-io-autoft.c.
	(xml_get_value_string): Idem.
	(xml_set_value_string): Idem.
	(xml_get_value_int): Idem.
	(xml_set_value_int): Idem.
	(xml_write_style): Idem.
	(xml_read_style): Idem.
	
	* src/xml-io-autoft.c, src/xml-io-autoft.h:
	New, these handle the reading/writing of autoformat templates.

	* src/format-template.h, src/format-template.c:
	New, wrapper around the loading and saving and managing
	of format templates.

	* templates/autoformat:
	Add default autoformat templates

	* configure.in:
	Modify to include the autoformat templates and define
	a new variable for the autoformat templates directory
	so we can find them at run-time

1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042
2000-08-31  Jody Goldberg <jgoldberg@home.com>

	* src/colrow.c (col_row_get_index_list) : Be more enthusiastic about
	  merging and ordering.
	(col_row_equal) : new function.
	(col_row_copy) : new function.
	(col_row_size_list_destroy) : Typo.
	(col_row_restore_sizes_group) : Handle restoring default size.
	(col_row_set_sizes) : In special case of resizing all be smart.
	  This needs improving.

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

	* src/number-match.c (compute_value) : AM/PM regexp matchs against the
	  'a' or 'p' not 'pm'

	* src/sheet.c (sheet_{col,row}_set_size_{pts,pixels}) : Set hard size
	  even if the size does not change.

	* src/xml-io.c (xml_read_cols_info) : Restore the default col size,
	  and rationalize the variable names.
	(xml_read_rows_info) : Restore the default col size,
	(xml_sheet_write) : Save the default row/col size in pts.
	  Flush the run length encoding of the row/col sizes.
	(xml_write_colrow_info) : Use run length encoding to decrease the size
	  of the generated xml.

	* src/colrow.c (col_row_equal) : new function.

1043 1044 1045 1046 1047 1048 1049
2000-08-31  Morten Welinder  <terra@diku.dk>

	* src/goal-seek.c (goal_seek_trawl_normally): Respect xmin and
 	xmax.
	(goal_seek_bisection): Implement Ridder's method also.  (This
 	method turns out to be very useful for RATE-like functions.)

1050 1051 1052 1053 1054
2000-08-31  Jon K Hellan  <hellan@acm.org>

	* src/Makefile.am: Remove ref to non-existent graph-series.c to
	make the build work again. 

1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073
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
1074 1075 1076 1077 1078 1079
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
1080
	(gnumeric_irr): Mirror the RATE improvements.
Morten Welinder's avatar
Morten Welinder committed
1081 1082 1083

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

Jody Goldberg's avatar
Jody Goldberg committed
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093
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.

1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111
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.

1112 1113 1114 1115 1116 1117 1118
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
1119 1120 1121 1122
2000-08-28  Morten Welinder  <terra@diku.dk>

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

1123 1124 1125 1126 1127 1128 1129 1130 1131 1132
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.

1133 1134 1135 1136 1137 1138 1139 1140
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
1141 1142 1143 1144
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
1145 1146
2000-08-22  Jody Goldberg <jgoldberg@home.com>

1147 1148 1149
	* src/sheet.c (sheet_clone_styles) : Patch leak.
	(sheet_clone_selection) : Patch leak.

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

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

Jody Goldberg's avatar
Jody Goldberg committed
1154 1155 1156
	* src/corba-sheet.c : suppress warnings.
	* src/dialogs/dialog-stf.c : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 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 1234 1235 1236 1237 1238 1239 1240 1241
	* 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.

1242 1243 1244 1245 1246
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.

1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262
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
1263 1264
2000-08-17  Jody Goldberg <jgoldberg@home.com>

1265 1266 1267 1268
	* 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
1269 1270 1271 1272 1273 1274 1275
	* 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.

1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313
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)'.

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

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

1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330
	* 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.

1331 1332 1333 1334 1335 1336 1337
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.

1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349
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.

1350 1351
2000-08-14  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1352 1353 1354 1355
	* 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.

1356 1357 1358
	* src/workbook.c (workbook_menu_edit) : Fix typo that made goto C-I
	  instead of C-G.

Jody Goldberg's avatar
Jody Goldberg committed
1359 1360 1361 1362 1363
2000-08-12  Jody Goldberg <jgoldberg@home.com>

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

1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375
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.

1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 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
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.

1447 1448 1449 1450 1451 1452 1453
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.

1454 1455
2000-08-10  Jody Goldberg <jgoldberg@home.com>

1456 1457
	* src/functions/fn-stat.c : All callers to float_range_function ignore
	  blanks.
1458
	* src/functions/fn-math.c : Ditto.
1459

1460 1461 1462 1463 1464 1465 1466 1467 1468
	* 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.

1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
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.

1492 1493 1494 1495 1496 1497 1498 1499
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.

1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 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 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550
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
1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561
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.

1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577
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
1578 1579 1580 1581 1582 1583 1584 1585
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
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595
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.
1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618

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.

1619 1620 1621 1622 1623
2000-07-21  JP Rosevear  <jpr@arcavia.com>

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

1624 1625 1626 1627 1628 1629
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.

1630 1631 1632 1633 1634
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.

1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658
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
1659 1660 1661 1662
2000-07-13  Michael Meeks  <michael@helixcode.com>

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

1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674
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
1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695
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
1696 1697
2000-07-09  Jody Goldberg <jgoldberg@home.com>

1698 1699 1700 1701 1702 1703 1704 1705 1706 1707
	* 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.

1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720
	* 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
1721 1722
	* src/print.c (print_headers) : Adapt to changes in gnome-print.

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
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.

1765 1766 1767 1768 1769 1770 1771 1772
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.

1773 1774 1775 1776 1777 1778 1779 1780 1781 1782
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.

1783 1784 1785 1786 1787 1788
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.

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

1791 1792 1793
	* src/item-cursor.c (item_cursor_do_action) : Do not do anything if we
	  have not moved.

1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809
	* 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
1810 1811 1812 1813
2000-07-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

Jody Goldberg's avatar
Jody Goldberg committed
1814 1815 1816 1817 1818 1819
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

1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866
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
1867 1868 1869 1870 1871 1872 1873 1874 1875
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.

1876 1877 1878 1879 1880 1881 1882
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)

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

1885 1886 1887
	* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
	  guru in place is not an error.

1888 1889 1890 1891 1892
	* 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.

1893 1894 1895 1896 1897
2000-07-04  Morten Welinder  <terra@diku.dk>

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

1898 1899
2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>

1900
	* autogen.sh:
1901 1902 1903
	Downgrade libtool requirment from 1.3.4 to 1.3.3.
	because compiling Gnumeric works fine with 1.3.3.

1904 1905 1906 1907 1908 1909 1910
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).

1911 1912
2000-07-04  Almer. S. Tigelaar.  <almer1@dds.nl>

1913
	* src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-fixed-page.c:
1914 1915
	Fix column mangling in fixed width import.

1916 1917 1918 1919 1920 1921
	* 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.
1922

1923 1924
	* src/stf-parse.c, src/stf-parse.h:
	(stf_parse_options_fixed_autodiscover): New!
1925 1926
	Column autodiscovery for fixed width.

1927
	* src/dialogs/dialog-stf.glade:
1928 1929
	Add clear and autodiscovery buttons
	
1930 1931 1932 1933
	* 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
1934
	
1935 1936 1937 1938 1939 1940 1941
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.

1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956
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
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976
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!

1977 1978 1979 1980 1981
2000-07-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>

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

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

1983 1984 1985 1986
	* 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
1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003
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.

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

Jody Goldberg's avatar
Jody Goldberg committed