OChangeLog-2003-12-23 70.9 KB
Newer Older
1 2 3 4 5
2000-12-18  Morten Welinder  <terra@diku.dk>

	* src/eval.c (sheet_region_get_deps): Take a Range pointer, not a
 	Range structure as argument.  All callers changed.

6 7 8 9 10 11 12
2000-12-18  Jon K Hellan  <hellan@acm.org>

	* src/print.c (print_page): Fix bug: We must use gnome-print
	coordinate system when clipping to page limit. Also take into
	account that Postscript/gnome-print clip paths exclude the pixels
	on the path.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
13 14 15 16
2000-12-18  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in : Fix typo in gb check.

Jody Goldberg's avatar
Jody Goldberg committed
17 18 19 20
2000-12-17  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Post release bump

Jody Goldberg's avatar
Jody Goldberg committed
21 22
2000-12-17 Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
23
	* Release 0.61
Jody Goldberg's avatar
Jody Goldberg committed
24

Jody Goldberg's avatar
Jody Goldberg committed
25 26 27 28 29 30 31 32
2000-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/ranges.c (parse_range) : support singletons.

	* src/sheet-object.c (sheet_object_write_xml) : Store the anchor
	  descriptor.
	(sheet_object_read_xml) : restore the descriptor.

33 34 35 36 37
2000-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (cursor_vertical_move) : fix cut-n-paste-o.
	(rangesel_vertical_move) : Ditto.

38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
2000-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells
	  fully.
	(sheet_find_boundary_vertical) : Ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_set_cursor_bounds) : Remove
	  unnecessary sanity checks.
	(cursor_horizontal_move) : pass the base row.
	(cursor_vertical_move) : Ditto.
	(rangesel_horizontal_move) : Ditto.
	(rangesel_vertical_move) : Ditto.
	(rangesel_horizontal_extend) : Ditto.
	(rangesel_vertical_extend) : Ditto.

	* src/selection.c (sheet_selection_extend) : Pass the base row/col.
	* src/item-cursor.c (item_cursor_selection_event) : Ditto.

56 57 58 59 60 61 62 63 64 65
2000-12-17  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/dialog-stf-preview.c (stf_preview_format_line) :
	Pass desired format to format_match to preserve certain formatting
	information which would previously have been lost.

	* src/stf.c (stf_read_workbook) : First apply the styles to
	the sheet and then fill the contents of the cells instead of
	vice versa.

66 67 68 69 70
2000-12-17  Morten Welinder  <terra@diku.dk>

	* src/about.c (dialog_about): Made a little more consistent in
 	style.

71 72
2000-12-17  Jody Goldberg <jgoldberg@home.com>

73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
	* src/sheet.c (sheet_new_sheet_view) : no need to normalize.
	(sheet_cursor_set) : no need to normalize.

	* src/item-cursor.c (item_cursor_set_bounds) : Add a notion of
	  move_corner and base_corner.

	* src/gnumeric-sheet.c
	(cursor_horizontal_move) : renamed from move_cursor_horizontal.
	(cursor_horizontal_extend) : renamed from move_horizontal_selection.
	(cursor_vertical_move) : renamed from move_cursor_vertical.
	(cursor_vertical_extend) : renamed from move_vertical_selection.
	(gnumeric_sheet_selection_extend) : no need to normalize.  the
	  item-cursor now does it for us.
	(rangesel_horizontal_move) : renamed from selection_cursor_move_horizontal.
	(rangesel_vertical_move) : renamed from selection_cursor_move_vertical.
	(rangesel_horizontal_extend) : renamed from selection_expand_horizontal.
	  Use the new item-cursor base/move corners.
	(rangesel_vertical_extend) : renamed from selection_expand_vertical.
	  Use the new item-cursor base/move corners.
	(gnumeric_sheet_key_mode_sheet) : simplify.

94 95 96 97 98 99 100 101 102 103 104
	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells.
	(sheet_find_boundary_vertical) : ditto.
	(sheet_set_edit_pos) : Add edit_pos vs edit_pos_real to improve merged
	  cell support.
	(sheet_region_get_merged_cell) : new function.

	* src/gnumeric-sheet.c (move_cursor_horizontal) : Use edit_pos_real to
	  improve handling for merged cells.
	(move_cursor_vertical) : Ditto.
	(start_cell_selection) : Ditto.

105 106
2000-12-16  Jody Goldberg <jgoldberg@home.com>

107 108
	s/Sheet::cursor::edit_pos/Sheet::edit_pos/

109 110 111 112 113 114
	* src/gnumeric-sheet.c (gnumeric_sheet_new) : No need to pass in the
	  col/row items.  They are available from the sheet control.

	* src/sheet-control-gui.c (sheet_view_construct) : signature change to
	  gnumeric_sheet_new.

115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
2000-12-15  Jody Goldberg <jgoldberg@home.com>

	Tidy up the naming scheme a bit.
	s/row_col/colrow/
	s/col_row/colrow/
	s/SheetSelection/Range/

	* src/workbook-cmd-format.c (workbook_cmd_resize_selected_colrow) :
	  Merged from workbook_cmd_format_column_width and.
	  & workbook_cmd_format_row_height

	* src/item-bar.c (item_bar_end_resize) : Call scg_colrow_size_set
	  directly.
	(item_bar_class_init) : remove the SIZE_CHANGED signal.

	* src/selection.c (sheet_selection_full_cols_rows) : merge
	  sheet_selection_full_cols & sheet_selection_full_rows.

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
2000-12-14  Jody Goldberg <jgoldberg@home.com>

	* src/item-grid.c (item_grid_draw) : Move the span handling here.
	* src/cell-draw.c (cell_draw) : from here.

	* src/print-cell.c (print_cell_range) : Move the span handling here.
	(print_cell) : rather than here.

	* src/sheet-control-gui.c (scg_get_distance) : merge
	  sheet_{row,col}_distance_get_pixels and make the result sheet
	  control specific.

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

	* src/cell.c (cell_convert_expr_to_value) : rename from cell_make_value.

	* src/format.c (format_number) : adjust signature to take the
	  colwidth in preparation for supporting 
	(format_value) : pass in the width.

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

	* src/formats.c (currency_date_format_init) : correctly place currency
	  before or after the value, and optionally include a space.

	* src/format.c (format_get_currency) : include info on currency
	  placement.

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

	* src/workbook.c (workbook_sheet_rename) : Handle renames that only
	  change case more smoothly.

166 167 168 169
2000-12-14  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Gussy up the reporting to improve readability

170 171 172 173 174 175 176 177 178 179 180
2000-12-14  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
	  the client site here.
	(sheet_object_bonobo_set_object_iid) : rather than here.

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

	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
	  Add ')' bug 35149

181 182
2000-12-11  Morten Welinder  <terra@diku.dk>

183 184 185
	* src/functions/fn-math.c (gnumeric_round): Apply patch from
 	hans@snow.nl, see bug 34844.

186 187 188
	* src/functions/fn-math.c (help_int): fix bogus docs for negative
 	arguments.

189 190
	* configure.in: clean up quote stuff.

191 192 193 194 195
2000-12-10  Morten Welinder  <terra@diku.dk>

	* configure.in: first cut at improved version checks for required
	packages.

196 197
2000-12-10  Jody Goldberg <jgoldberg@home.com>

198 199 200
	* src/expr-name.c (expr_name_invalidate_refs_sheet) : comment out
 	  the warning.  The life cycles of names are too fluid to scare
 	  users yet.
201 202 203 204 205
	(expr_name_invalidate_refs_wb) : Ditto.

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

	* src/cell.c (cell_set_text) : send the current format to the
206
	  number matcher.
207 208
	* src/sheet.c (sheet_cell_set_text) : Ditto.

209
	* src/parse-util.c (parse_text_value_or_expr) : send the current
210 211 212
	  format to the number matcher.

	* src/number-match.c (format_match) : take the current format as a
213
 	  parameter.  Begin using it to handle cells formated as text.
214 215 216 217 218 219

	* src/format.c (style_format_is_text)  utility routine.

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

	* src/selection.c (sheet_selection_set_internal) : rename from
220 221
 	  sheet_selection_set and add the 'just_add_it' flag to indicate
 	  that we don't need to do anything fancy.
222

223 224
2000-12-09  Chema Celorio  <chema@celorio.com>

225 226
	* src/xml-io.c (xml_write_names): Always write a <Names> node,
	even if it is empty.  (See comment in code for details)
227

228 229 230 231 232 233 234 235
	* src/sheet.c (sheet_new): make sheet->names NULL.
	(sheet_clone_names): free the list with g_list_free not g_free
	(sheet_clone_names): add a warning about not duplicating
	names yet.

	* src/expr-name.h (expr_name_wb2sheet): add prototypes for
	wb2sheet & sheet2wb

236 237
	* src/expr-name.c (expr_name_unlink): new funct. Code from
 	expr_name_remove
238
	(expr_name_remove): call expr_name_unlink
239 240
	(expr_name_invalidate_refs_name): add a warning about this
 	function not being implemented
241 242
	(expr_name_invalidate_refs_sheet): ditto
	(expr_name_invalidate_refs_wb): ditto
243 244 245 246
	(expr_name_sheet2wb): new funct. changed the scope of a
 	NamedExpression from sheet to workbook.
	(expr_name_wb2sheet): not implemented yet. Workbook to sheet scope
 	change
247

Jody Goldberg's avatar
Jody Goldberg committed
248 249 250 251 252 253 254 255
2000-12-09  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_comment_display) : Always clear the
	  timer.

	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p)
	: Add '<' '>'.  Bug 34642

256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
2000-12-09  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_object_construct) : delete.
	(sheet_object_set_bounds) : Delete.
	(sheet_object_set_sheet) : new function.
	(sheet_object_clear_sheet) : new function.
	(sheet_object_read_xml) : implement.
	(sheet_object_write_xml) : implement.
	(sheet_object_range_get) : support setting the range without a having
	  a sheet.
	(sheet_relocate_objects) : Use set_sheet & clear_sheet.
	(sheet_object_register) : new function.

	* src/sheet-object-widget.c (sheet_widget_checkbox_set_sheet) : new
	  function.  we need to move the dependent into the new sheet.
	(sheet_widget_checkbox_clear_sheet) :  ditto.

	* src/sheet-object-graphic.c : (sheet_object_graphic_{read,write)_xml) :
	  new functions.
	(sheet_object_filled_{read,write)_xml) : new functions.

	* src/sheet-object-container.c (view_activated_cb) : no more
	  sheet_object_construct.

	* src/sheet-object-cell-comment.c (cell_comment_{read,write)_xml) :
	  new functions.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_{read,write)_xml) :
	  New functions.  These need work.  the 'read_fn' and 'write_fn' do
	  not merge nicely yet.

287
	* src/main.c (gnumeric_main) : Register the sheet object types.
288 289 290 291 292 293 294
	  We need this until the plugin scheme is ready.

	* src/item-grid.c (cb_obj_create_button_release) : Use set_sheet
	  rather than realize.

	* src/bonobo-io.c (gnumeric_bonobo_obj_write) : constness.

295 296 297 298 299 300 301 302 303 304 305 306
2000-12-08  Jody Goldberg <jgoldberg@home.com>

	From :Ade Lovett <ade@FreeBSD.org>
	* templates/english/Makefile.am : typo.
	* idl/Makefile.am : Ditto.

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

	* src/sheet-object.c (sheet_object_write_xml) : protect from missing
	  virtual.
	(sheet_object_read_xml) : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
307 308 309 310
2000-12-07  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Bump the version number

Jody Goldberg's avatar
Jody Goldberg committed
311 312 313 314 315 316 317 318 319 320 321
2000-12-07  Jody Goldberg <jgoldberg@home.com>

        * Release 0.60

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

	* src/item-grid.c : Disable canvas grab debug.
	* src/item-cursor.c : Ditto.
	* src/item-bar.c : Ditto.
	* src/sheet-control-gui.c : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
322 323 324 325 326
2000-12-07  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_context_menu) : Use more of the new
	  artwork.

327 328 329 330 331
2000-12-07  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellrange_relocate) : disable the relocating the partner
	  for forced partial relocation.

Jody Goldberg's avatar
Jody Goldberg committed
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
2000-12-07  Jody Goldberg <jgoldberg@home.com>

	* src/application.c (application_init) : Add some new icons

	* src/gnumeric.xml : Use the new icons
	* src/workbook-control-gui.c : Ditto
	* src/workbook-format-toolbar.c : Ditto.

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

	* src/mstyle.c (mstyle_hash) : add indent.
	(mstyle_element_equal) : Ditto.
	(mstyle_new_default) : Ditto.
	(mstyle_[gs]et_orientation) : new functions.

Jody Goldberg's avatar
Jody Goldberg committed
347 348 349 350
2000-12-06  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Update GAL req.

351 352 353 354 355 356
2000-12-06  Jon K Hellan  <hellan@acm.org>

	* src/file.c (set_ok): Rename to handle_ok. Make it check if
	current file selection is a directory. If so, change to the
	directory and continue selecting file.
	
Jody Goldberg's avatar
Jody Goldberg committed
357 358 359 360 361 362 363
2000-12-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_region_adjacent_merge) : new function.

	* src/cellspan.c (cell_calc_span) : Use it here to pre bound the
	  potential span region.

364 365 366 367 368 369 370 371
2000-12-05  Jody Goldberg <jgoldberg@home.com>

	* src/item-grid.c (item_grid_draw_merged_range) : Draw borders too.
	  This can easily be optimized.

	* src/selection.c (sheet_selection_add_range) : Use
	  sheet_selection_set.

372 373 374 375 376
2000-12-05  Morten Welinder  <terra@diku.dk>

	* src/sheet-object.c (sheet_object_realize): Check that the sheet
 	object belongs to a valid sheet.

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

	* src/workbook-control-gui.c (wbcg_zoom_feedback) : Move the bounding
	  box if the zoom changes.

382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
2000-12-04  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (wb_view_sheet_focus) : Init the selection
	  descriptor and format format.
	(wb_view_selection_desc) : new function.
	(workbook_view_init) : Init the expression and format before setting
	  the current sheet.  Setting the sheet will update the content.

	* src/workbook-control.c (wb_control_sheet_add) : Init the format,
	  edit line, and selection descriptor.

	* src/selection.c (sheet_get_selection_name) : Delete.
	(sheet_selection_extend_to) : Use wb_view_selection_desc.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_release) : Use
	  wb_view_selection_desc.
	* src/item-grid.c (item_grid_event) : Ditto.

400 401 402 403 404 405 406
2000-12-05  Michael Meeks  <michael@helixcode.com>

	* src/main.c (gnumeric_main): do the bonobo activate before we
	start doing CORBA calls and bonobo stuff!

	* src/embeddable-grid.c: Fixup for the generic factory.

407 408 409 410 411 412 413 414 415 416 417 418
2000-12-04  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (wb_view_edit_line_set) : renamed from
	  workbook_edit_load_value and tweaked to operate on the view level.

	* src/workbook-edit.c (workbook_finish_editing) : Adjust to changes in
	  edit-line update api.

	* src/sheet.c (sheet_update) : Use wb_view_edit_line_set.

	* src/workbook-view.c (wb_view_sheet_focus) : bug 34185.

419 420
2000-12-04  Morten Welinder  <terra@diku.dk>

421 422 423
	* src/mstyle.c (mstyle_hash): Don't shift all the hash information
 	away.  Rotate, don't shift.

Morten Welinder's avatar
Morten Welinder committed
424 425
	* src/mathfunc.c: white-space mania.

426 427 428 429 430
	* src/item-bar.c: Make debug-code statement-safe, just in case.
	* src/item-cursor.c: Ditto.
	* src/item-grid.c: Ditto.
	* src/sheet-control-gui.c: Ditto.

Morten Welinder's avatar
Morten Welinder committed
431 432 433
	* src/sheet-object-widget.c (sheet_widget_checkbox_user_config):
 	Plug leak.

434 435 436 437 438 439 440
	* src/number-match.c (print_regex_error): Print error code
 	numerically if our switch does not catch it.  Catch REG_EBOL and
 	REG_EEOL.  Print errors to stderr.
	(format_match_define): Change result type to gboolean.  Plug leak.
	(format_create_regexp): Properly regexp-quote quoted
 	format-strings.

441 442 443 444 445
2000-12-04  Zbigniew Chyla  <cyba@gnome.pl>

	* src/sheet-object-widget.c (sheet_widget_checkbox_toggled): calling
	workbook_recalc() after setting cell value based on checkbox state.

446 447 448 449 450 451
2000-12-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_relocate_objects) : Remember to move the
	  object to the new sheet, not just the views.
	(sheet_object_position) : Off by one.  Use < not <=

452 453 454 455 456 457 458 459 460 461 462 463 464 465 466
2000-12-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : Call
	  sheet_relocate_objects.
	(sheet_move_range) : Ditto.

	* src/sheet-object.c (sheet_object_unrealize) : restore this routine.
	(sheet_object_destroy) : Use it here.
	(sheet_object_position) : renamed from sheet_object_reposition.
	(sheet_relocate_objects) : new routine.  Only handles current anchor
	  format.  Will need to extend this.

	* src/item-bar.c (item_bar_event) : Exit object edit mode when a
	  button presses on the itembar.

467 468 469 470 471 472 473
2000-12-02  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellrange_relocate) : Still not doing the 'right' thing
	  in all cases.   However at least it will no longer create broken
	  references.
	(cellref_relocate) : tweak a bit.

Michael Meeks's avatar
Michael Meeks committed
474 475 476 477
2000-12-01  Michael Meeks  <michael@helixcode.com>

	* configure.in: check for gb >= 0.0.17

478 479 480 481 482 483 484
2000-12-02  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellrange_relocate) : fix the logic that was broken when
	  supporting the partial ranges.
	(cellref_relocate) : move some of the code here, to decrease
	  replication.

485 486 487 488 489 490 491 492 493 494 495 496
2000-12-02  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c : Add some debug macros to catch the magic helix
	  cursor grab.
	* src/item-cursor.c : Ditto.
	* src/item-grid.c : Ditto.
	* src/sheet-control-gui.c : Ditto.

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

	* src/functions/fn-lookup.c (gnumeric_hlookup) : fix cut-n-paste-o.

497 498 499 500 501 502 503 504 505
2000-12-01  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_drag_event) : Ignore press events fro
	  drag cursors.  And ignore release events for buttons other than the
	  one that started the drag.
	s/prepared_to_drag/drag_button/
	(item_cursor_set_arg) : Add 'Button' arg
	(item_cursor_class_init) : Ditto.

506 507 508 509 510
2000-12-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_object_stop_editing) : fix warning.
	  this is static now.

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 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598
2000-12-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_object_position_pts) : new function.
	(sheet_object_position_pixels) : new function.

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

	* src/xml-io.c : Begin moving the sheet object xml io into virtuals.

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

	* src/sheet.c : Add SHEET_FOREACH_CONTROL to help abstract the
	  implementation of controls and simplify changes later.
	(sheet_set_zoom_factor) : reposition objects not just comments.
	(sheet_get_objects) : New function.

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

	* src/sheet-object.c : Move most (not yet all) of the GUI aspects into
	  the sheet control.  Revamp the semantics of the sheet-object
	  virtuals.
	new_view : now handles the sizing and realizing of objects.
	Add support for persistance here.
	Delete get/set bound.

	* src/sheet-object-container.c : convert to new object management design
	* src/sheet-object-graphic.c : Ditto.
	* src/sheet-object-item.c : Ditto.
	* src/sheet-object-widget.c : Ditto.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) :
	  sheet_object_construct now takes a default size.

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

	* src/sheet-control-gui.c : Move cell comment and sheet object
	  placement routines here.  Rather than scattering them in non-gui
	  modules.

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

	* src/print.c (print_object_view_position) : Convert object position
	  to points.

	* src/selection.c (sheet_selection_redraw) : simplify.

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

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) : SheetObject
	  editing is now specific to the SheetControl.
	(gnumeric_sheet_key_press) : Ditto.
	(gnumeric_sheet_key_release) : Ditto.

	* src/selection.c (sheet_is_cell_selected) : Ditto.
	(sheet_col_selection_type) : Ditto.
	(sheet_row_selection_type) : Ditto.

	* src/item-bar.c (item_bar_draw) : Ditto.

	* src/item-grid.c (item_grid_draw_background) : Ditto.
	(item_grid_button_1) : Ditto.
	(item_grid_event) : Ditto.
	(cb_obj_create_motion) : Move the object creation GUI here.
	(cb_obj_create_button_release) : and add partial support for
	  autoscroll.
	(sheet_object_begin_creation) : Ditto.

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

	* src/cell.c (cell_copy) : Comments are no longer associated directly
	  with cells.
	* src/clipboard.c (paste_cell) : Ditto.
	(clipboard_release) : Ditto.

	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : No need to set bounds
	  or realize the object here.  That is handed at a higher level.

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

	* src/number-match.c (compute_value) : Use strtol to simplify things.

	* src/func.c (tokenized_help_new) : translate the help text.

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

	* src/formats.c (currency_date_format_init) : quote the currency
	  names.

599 600 601 602 603
2000-11-30  Almer S. Tigelaar  <almer1@dds.nl>

	* src/preview-grid-controller.c (preview_grid_controller_new) :
	Make the selection rectangle fatter and position it slightly better.

604 605
2000-11-29  Morten Welinder  <terra@diku.dk>

606 607 608
	* src/xml-io.c (xml_sheet_write): Initialise closure's rle_count
 	member.
	(natural_order_cmp): Fix major brown-bag in ordering.
609

610 611 612 613 614
2000-11-27  Morten Welinder  <terra@diku.dk>

	* src/analysis-tools.c (anova_single_factor_tool): Apply the rest
 	of Christensens' patch.

Jody Goldberg's avatar
Jody Goldberg committed
615 616
2000-11-27  Jody Goldberg <jgoldberg@home.com>

617 618 619
	* src/workbook-view.c (workbook_view_init) : Init the format feedback.
	  But don't bother displaying.  We don't have any controls yet.

Jody Goldberg's avatar
Jody Goldberg committed
620 621
	* configure.in (have_gda) : init to false.

Michael Meeks's avatar
upd.  
Michael Meeks committed
622 623 624 625 626 627 628 629
2000-11-27  Michael Meeks  <michael@helixcode.com>

	* src/embeddable-grid.c (EmbeddableGridFactory_init): upd.

	* Makefile.am (oaf_DATA): upd to GNOME_Gnumeric.oafinfo

	* GNOME_Gnumeric.oafinfo: upd.

630 631 632 633 634 635 636 637
2000-11-24  Jon K Hellan  <hellan@acm.org>

	* src/file.c (do_save_as): Remember name with extension, so
	subsequent saves are done to the correct file.
	
	* src/workbook.c (workbook_set_saveinfo): Remove redundant setting
	of title.

638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653
2000-11-24  Jody Goldberg <jgoldberg@home.com>

	* src/print-cell.c (print_cell) : bubble the sizing code further up.
	  src/cell-draw.c (cell_draw) : ditto.  Move towards a better api that
	  will pass in the bounding box rather than all the parameters needed
	  to generate it in different circumstances.

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

	* src/print-cell.c (print_cell) : until printing of the grid is synced
	  with drawing a grid, disable the tests for width, height.

	* src/expr.c (cellrange_relocate) : Use simple heuristic to help
	  diffentiate the 'expected' behavior of  moving expressions with
	  range references that are partially contained.

654 655 656 657 658 659
2000-11-22  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_sumx2py2): Plug leaks.
	(gnumeric_sumxmy2): Plug leaks.
	(gnumeric_sumx2my2): Plug leaks.

660 661 662 663 664 665
2000-11-22  Zbigniew Chyla  <cyba@gnome.pl>

	* src/dialogs/dialog-plugin-manager.c (refresh_right_frame):
	Replaced ctime() with strftime() to display translated form of
	plugin modification date.

666 667 668 669 670
	* src/item-bar.c (colrow_tip_setlabel): Translated (Polish)
 	version of string doesn't fit within "buffer". Dropped static
 	array and used dynamic memory allocation (g_strdup_printf).
	(vertical_scroll_change, horizontal_scroll_change): It fits with
 	Polish translation but code is similar to the above.
671

672 673 674 675 676
2000-11-22  Zbigniew Chyla  <cyba@gnome.pl>

	* src/dialogs/summary.glade: Centered "Document Summary
	Information" label.
	
Morten Welinder's avatar
Morten Welinder committed
677 678
2000-11-21  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
679 680
	* src/sheet.c (sheet_new_sheet_view): Remove spurious ref.

Morten Welinder's avatar
Morten Welinder committed
681 682
	* src/stf-parse.c (stf_parse_get_colwidth): Don't overrun buffer.

683 684
2000-11-20  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
685 686 687
	* src/gutils.c (gnumeric_usr_dir): Use g_get_home_dir, not just
 	$HOME.  Don't return duplicate slashes.

Morten Welinder's avatar
Morten Welinder committed
688 689 690 691 692
	* src/commands.c (cmd_resize_row_col_redo): Proper undo sizing.
	(cmd_sort_redo): Ditto.
	(cmd_hide_selection_rows_cols): Ditto.
	(cmd_autofill_redo): Ditto.

693 694 695 696 697 698 699 700 701 702 703 704
	* gnumeric.spec.in (gal): Require 0.2.99.

	* configure.in (gal): Require 0.2.99 (and fix check).

	* src/workbook-control-gui.c (workbook_control_gui_ctor_class):
 	Set undo_redo.truncate.
	(wbcg_undo_redo_truncate): New function.

	* src/commands.c (command_push_undo): truncate undo information.
	(truncate_undo_info): New function.
	(cmd_format): Properly size undo information.

Jody Goldberg's avatar
Jody Goldberg committed
705 706 707 708
2000-11-20  Jody Goldberg <jgoldberg@home.com>

	* src/colrow.c (col_row_get_index_list) : Take away my crack pipe.

709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725
2000-11-20  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Use a more conventional approach to path seperators.
	* src/gutils.c (gnumeric_usr_dir) : Adjust here.
	(gnumeric_sys_data_dir) : and here.
	(gnumeric_sys_lib_dir) : and here.

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

	* src/sheet.c (sheet_clone_selection) : Fix.

	* src/item-grid.c (item_grid_draw_merged_range) : If the merged region
	  is fully selected paint it as such.

	* src/selection.c (sheet_is_full_range_selected) : new function.
	(sheet_selection_set) : support merged cells.

726 727 728 729 730 731 732
2000-11-20  Morten Welinder  <terra@diku.dk>

	* src/sheet.c (sheet_destroy_contents): Eliminate merged regions.
	(sheet_destroy): Free data structures for merged regions.
	(sheet_new): Activate temporary debugging code on
 	GNUMERIC_DEBUG_MERGE in environment.

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 779
2000-11-19  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_region_is_merge_cell) :
	(sheet_region_get_merged) : 
	(sheet_region_unmerge) :
	(sheet_region_merge) : implement.

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

	* src/item-grid.c (item_grid_draw_merged_range) : new function.
	  This may be clearer if we draw the grid lines after the background.
	  It does not support borders or selection yet.
	(item_grid_draw) : Use it.

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

	* src/cellspan.c (cell_is_empty) : new utility function.
	  span calculation is now rather inefficent.  We could be smarter if
	  we had a better representation of spans.  For now adding support for
	  merged cells here would be enough.
	(cell_calc_span) : Use it.

	* src/cell-draw.c (cell_draw) : decrease dependence on
	  Cell::{col,row})_info::size_pixels.  This is not accurate for merged
	  cells.  More work is needed.  I have not converted the multiline
	  formating yet.  The signature of this function sucks.
	  We should pass in either span or width height, not both.

	* src/print-cell.c (print_cell) : Stay consistent with cell_draw.
	  NOTE : I have not ported over the merged cell support.  It seems
	  pointless until it is working completely for drawing.

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

	* s/sheet_view/scg/

	* src/formats.c (currency_symbols) : Add the slovenian tolar.

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

	* src/sheet-control-gui.c (scg_context_menu) : renamed from
	  item_grid_popoup_menu and moved here where it makes more sense.

	* src/sheet.c (sheet_merge_region) : implement.
	(sheet_unnmerge_region) : Ditto.
	(sheet_get_merged_regions) : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
780 781 782 783 784
2000-11-18  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Bump to 0.60 post release
	* NEWS : ditto

Jody Goldberg's avatar
Jody Goldberg committed
785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804
2000-11-18  Jody Goldberg <jgoldberg@home.com>

	* Release 0.59

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

	* src/command-context-corba.c (command_context_corba_new) : warning
	  suppression.

	* src/workbook-control-gui.c (workbook_control_gui_ctor_class) : Init
	  progress_set in CommandContextClass, and add support for
	  splits_array at this level.

	* src/command-context.c (gnumeric_error_splits_array) : The decision
	  to use invalid should be done in the implementation.

	* src/workbook-control.c (wb_control_progress_set) : delete replicated
	  function.

2000-11-17  Chema Celoria  <chema@celorio.com>
805 806 807 808

	* src/print.c (sheet_print): change to a g_return_val_if_fail
	by gmorten's request

809 810 811 812 813
2000-11-17  Chema Celorio  <chema@celorio.com>

	* src/print.c (sheet_print): if gnome-print dialog is NULL,
	return. This avoids a crash if there aren't any printers installed.

814 815 816 817 818 819 820 821 822 823
2000-11-17  Almer S. Tigelaar  <almer1@dds.nl>

	* src/preview-grid-controller.c, src/preview-grid-controller.h
	(preview_grid_controller_new) : Extra selected parameters,
	if set a red rectangle will be drawn over the preview to indicate
	the selected state.

	* src/dialogs/dialog-autoformat.c (previews_load): Adjust so
	the selected preview will be drawn in selected state.

824 825 826 827 828 829 830 831 832 833 834
2000-11-16  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_month_before_day) : Add config test.
	* configure.in : Implement test here.
	* config.h.in : and here.

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

	* src/sheet.c (sheet_update_only_grid) : split from sheet_update.
	(sheet_update) : call sheet_update_only_grid.

835 836 837 838 839 840 841
2000-11-16  Michael Meeks  <michael@helixcode.com>

	* src/xml-io.h: add xmlmemory.h

	* src/gui-clipboard.c (x_selection_handler): xmlFree
	not g_free.

842 843 844 845
2000-11-16  Morten Welinder  <terra@diku.dk>

	* plugins/Makefile.am (GDA_DIR): Blank.

846 847 848 849 850
2000-11-16  Zbigniew Chyla  <cyba@gnome.pl>

	* src/sheet-autofill.c: Added support for boolean values (just copy
	them).

851 852 853 854 855 856 857
2000-11-16  Rodrigo Moya <rodrigo@linuxave.net>

	* configure.in: added support for conditional compilation of
	the GDA (GNOME-DB) plugin
	* plugins/gda/*: updated to current GDA code. Does not compile
	yet though

858 859 860 861 862
2000-11-16  Zbigniew Chyla  <cyba@gnome.pl>

	* src/selection.c, src/dialogs/dialog-cell-sort.c: Marked strings
	for translation.

863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899
2000-11-15  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control.c (workbook_control_set_view) : Follow
	  convention that the manager is set when attached, and not before.
	* src/workbook-view.c (wb_view_attach_control) : Ditto.  Set the
	  tile on the new control.
	* src/workbook.c (workbook_attach_view) : Ditto.

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

	* src/command-context-corba.[ch] : This is incorrectly named and used
	  the wrong way :-( But at least it is compilable.  I'll fix this
	  later.

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

	* src/colrow.c (col_row_foreach) : Use ColRowSegments
	(col_row_restore_sizes) : Ditto.
	* src/sheet.c (sheet_{col,row}_add) : Ditto.
	(sheet_{col,row}_get_info) : Ditto.
	(sheet_{col,row}_get) : Ditto.
	(sheet_cell_foreach_range) : Ditto.
	(sheet_{col,row}_destroy) : Ditto.
	(sheet_regen_adjacent_spans) : Ditto.
	(colrow_move) : Ditto.
	(sheet_{col,row}_get_distance_pixels) : Ditto.
	(sheet_{col,row}_get_distance_pts) : Ditto.
	(sheet_{col,row}_set_size_pts) : Ditto.

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

	s/sheet-view/sheet-control-gui/

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

	* configure.in : Default to non-bonobo build

Michael Meeks's avatar
Michael Meeks committed
900 901 902 903
2000-11-15  Michael Meeks  <michael@helixcode.com>

	* gnumeric.oafinfo: rename to ObjectFactory

904 905 906 907 908
2000-11-54  John Gotts  <jgotts@linuxsavvy.com>

	* gnumeric.spec.in: Create a devel RPM.  Added some missing files.
	Made the build work from either a tar file or CVS.

909 910 911 912 913 914
2000-11-14  Almer S. Tigelaar  <almer1@dds.nl>

	* src/io-context.h, src/io-context.c
	(gnumeric_io_progress_set): New function, calls
	upon gnumeric_progress_set to do the job.

Jody Goldberg's avatar
Jody Goldberg committed
915 916 917 918
2000-11-14  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c : Fix warning.

Jody Goldberg's avatar
Jody Goldberg committed
919 920 921 922
2000-11-13  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Bump to 0.59 post release.

Jody Goldberg's avatar
Jody Goldberg committed
923 924 925 926
2000-11-13  Jody Goldberg <jgoldberg@home.com>

        * Release 0.58

927 928 929 930 931 932
2000-11-13  JP Rosevear  <jpr@helixcode.com>

	* src/functions/fn-lookup.c (find_bound_walk): Only reverse
	direction if we haven't already switched direction once.
	Fixes bug #2872

Jody Goldberg's avatar
Doh!  
Jody Goldberg committed
933 934 935 936
2000-11-13  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_feedback_set) : Doh!

937 938 939 940 941
2000-11-13  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-graph-guru.c (graph_guru_create_vectors_from_range) :
	  small improvement to vector selection heuristics.

Jody Goldberg's avatar
Jody Goldberg committed
942 943 944 945 946 947 948
2000-11-12  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_object_new_view) : Make public.

	* src/workbook-control-gui.c (wbcg_sheet_add) : Create views of all
	  sheet objects.

949 950 951 952 953
2000-11-12  Almer S. Tigelaar  <almer1@dds.nl>

	* src/stf-export.c (stf_export_sheet): Use sheet_get_extent
	instead of sheet->rows and sheet->cols.

Jody Goldberg's avatar
Jody Goldberg committed
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
2000-11-12  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_sheet_attach) : Use wb_view_sheet_add.

	* src/workbook-view.c (wb_view_sheet_add) : new function.
	(wb_view_format_feedback) : Ditto.
	(wb_view_auto_expr) : Store the display result.
	(wb_view_auto_expr_value_display) : renamed
	  from wb_view_auto_expr_value_set.
	(wb_view_destroy) : clear out the new members.

	* src/workbook-format-toolbar.c (workbook_feedback_set) : Calculate
	  the style here.  This is transitory.  It will eventually move into
	  the sheet view when that is split.

	* src/workbook-control.c (wb_control_sheet_add) : Do this manually
	  so that if the new sheet is the focus sheet for the view we can
	  update the various feedback mechanisms.
	(workbook_control_sheets_init) : rather than here.

	* src/sheet.c (sheet_update) : prepare for having the wb_view handle
	  the selection.

	* src/Makefile.am : Add missing workbook-control.h

	* src/workbook-view.c (wb_view_auto_expr) : When the expression
	  changes, recalculate.

	* src/workbook-control-gui.c (wbcg_auto_expr_value) : Mark as updating
	  the ui.
	(cb_auto_expr_changed) : test the updating flag here, don't set it.

986 987 988 989 990 991 992 993 994 995
2000-11-11  Michael Meeks  <michael@helixcode.com>

	* src/bonobo-io.c (gnumeric_bonobo_obj_write),
	(write_stream_to_storage): update unref fns.
	(read_stream_from_storage): upd.
	(gnumeric_bonobo_obj_read): set the bounds correctly.

	* src/xml-io.c (xml_write_sheet_object): NULL the sheet object
	we free.

Michael Meeks's avatar
Michael Meeks committed
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014
2000-11-11  Michael Meeks  <michael@helixcode.com>

	* src/clipboard.c (apply_paste_oper_to_values): kill warning.

	* src/xml-io-autoft.c: remove stale enum.

	* src/xml-io.c (xml_check_version): publicized.
	(xml_parse_ctx_new_full): add version parameter.
	(xml_parse_ctx_new): update.

	* src/bonobo-io.c (gnumeric_bonobo_read_workbook): use
	xml_check_version.

	* src/bonobo-io.c (gnumeric_bonobo_write_workbook): open the
	stream with the correct permissions.
	(gnumeric_bonobo_io_probe): update to like directories too.
	(gnumeric_bonobo_io_init): register for '.efs'
	(gnumeric_bonobo_read_workbook): beef up exception reporting.

1015 1016 1017 1018 1019 1020 1021 1022
2000-11-11  Michael Meeks  <michael@helixcode.com>

	* src/gnumeric.xml: fiddle, lots of strange mangling, needs HEAD
	bonobo to look at all good.
	
	* src/xml-io.c (xml_write_sheet_object): free the node nicely in
	the failure case.

1023 1024 1025 1026 1027
2000-11-11  Michael Meeks  <michael@helixcode.com>

	* configure.in (LIBS): add gnome-config --cflags idl to the default
	IDL_FLAGS.

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

1030 1031 1032 1033 1034 1035 1036
	* src/workbook-control-gui.c : Fix typos in the accelerator selections
	  for the name menu.

	* src/gnumeric.xml : Add entries for new shared/unshared views.

	* src/style.c (font_init) : Use the correct scale.

1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
	* src/value.c (value_get_default_halign) : Renamed and moved from here
	* src/cell.c (cell_default_halign) : to here.  Added support for
	  displaying formulas.

	* src/print-cell.c (print_cell) : only draw hash marks for numbers
	  not when displaying formulas.
	* src/cell-draw.c (cell_draw) : Ditto.
	* src/cellspan.c (cell_calc_span) : Ditto.
	* src/rendered-value.c (rendered_value_calc_size_ext) : Ditto.

1047 1048 1049 1050 1051 1052
2000-11-11  Jody Goldberg <jgoldberg@home.com>

	Patch from Tyler & James Christensen
	* src/analysis-tools.c (anova_single_factor_tool) : Correct handling
	  of variables stored in rows rather than columns.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
1053 1054 1055 1056 1057
2000-11-11  Zbigniew Chyla  <cyba@gnome.pl>

	* src/dependent.c (dependent_list_filter): Correct "for" loop
	condition.

1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076
2000-11-10  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-object.c (sheet_object_new_view) : Store the SheetObject
	  and SheetView as object_data.
	(cb_sheet_object_configure) : Pass the SheetView to configuration
	  routines.
	(sheet_object_populate_menu) : Pass the CanvasItem it has the useful
	  property of having the associated view and sheet object as user data.
	  This makes it handy for use in callbacks.
	(display_object_menu) : signature change.
	(control_point_handle_event) : changes to display_menu_object.
	(sheet_object_canvas_event) : Ditto.

	* src/sheet-object-widget.c (sheet_widget_checkbox_user_config) :
	  signature change.  This should get things working again.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_populate_menu) :
	  signature change.

1077 1078 1079 1080 1081
2000-11-10  Jody Goldberg <jgoldberg@home.com>
      Patch from Juan Pablo Mendoza <pablo_juan@yahoo.com>

      * sheet-view.c (sheet_view_comment_create_marke): Memory leak.

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
2000-11-10  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
	  Minor optimization to decrease flicker.

	* src/sheet.c (sheet_cell_calc_span) : Clarify the semantics of 
	  the various flags.
	(cb_max_cell_width) : If the value used a dynamic format we need to
	  rerender ignoring the current width.

	* src/rendered-value.c (rendered_value_new) : renamed from
	  rendered_value_new_ext and delete the old rendered_value_new.
	  Extend slightly to flag whether or not to handle dynamic formats.

	* src/render-ascii.c (cell_region_render_ascii) : Handle the style
	  lookup localy.

	* src/cell.c (cell_eval_content) : We need to manually render
	  the value here, but no longer need to calculate the size
	  seperately.  That is done automatically in the render.
	(cell_render_value) : Handle style localy, and calculate the size.

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

	* src/workbook-control-gui.c (workbook_control_gui_init) : move the
	  autosave code here.
	* src/workbook.c : from here.

1110 1111 1112 1113 1114
2000-11-09  Morten Welinder  <terra@diku.dk>

	* src/border.c (style_border_unref): Take border out of hash table
 	before we destroy the hashed fields.

Jody Goldberg's avatar
Jody Goldberg committed
1115 1116 1117 1118 1119 1120 1121 1122
2000-11-09  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (workbook_view_init) : Add prototype.

	* src/workbook-control-gui.c (cb_sheet_change_name) : Make static to
	  kill warning.
	* src/workbook-edit.c (workbook_edit_set_sensitive) : Ditto.

1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138
2000-11-09  Morten Welinder  <terra@diku.dk>

	* src/gnumeric-sheet.h (GNUMERIC_SHEET_FACTOR_X,
 	GNUMERIC_SHEET_FACTOR_Y): 1000000 and 2000000.  Still ugly, but
 	now central.

	* src/sheet-view.c (sheet_view_set_zoom_factor): Don't hard-code
 	scroll region sizes multiple places.

	* src/gnumeric-sheet.c (gnumeric_sheet_new): Ditto.

	* src/sheet-control.c (sheet_control_set_zoom_factor): Ditto.

	* src/sheet.h (SHEET_MAX_ROWS, SHEET_MAX_COLS): Remove duplicate
 	macros.

Jody Goldberg's avatar
Jody Goldberg committed
1139 1140 1141 1142
2000-11-09  Jody Goldberg <jgoldberg@home.com>

	* src/stf.c (stf_read_workbook) : We are passing an IOContext.

1143 1144 1145 1146 1147 1148 1149
2000-11-09  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_selection_event) : Make
	  the double click handler smarter.  It now handles empties
	  and checks both sides of a row/col.  Left/top is perfered to
	  bottom/right.

1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173
2000-11-08  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_init) : Initialize fully, add
	  prepared_to_drag_flag.
	(item_cursor_selection_event) : Move most of the state change
	  associated with BUTTON_PRESS into MOTION_NOTIFY.  And use the
	  prepared_to_drag_flag flag to indicate a requirement to initiate a
	  drag. Move most of the double click handling here.  The resone for
	  these changes was that there was a race condition in the old
	  version.  We were creating a new item cursor when we did a button
	  press.  It started in exactly the same position as the current
	  cursor.  2BUTTON_PRESS were sometimes being sent to the new cusor
	  and sometimes showing up as PRESS events on the old with no RELEASE.
	  This patch attempts to delay creating the new drag cursor until we
	  are sure this is not a double click so that the proper event
	  sequence is sent to the main cursor.

	* src/border.c (style_border_unref) : Unref the colour.
	(style_border_fetch) : unref the colour when needed.

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

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

1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187
2000-11-08  Morten Welinder  <terra@diku.dk>

	* src/complex.c (complex_from_string): Handle overflow.

	* src/number-match.c (format_match_simple): Don't depend on
 	incoming errno not to be ERANGE.

	* src/sheet-autofill.c (string_has_number): Ditto.

	* src/parser.y (yylex): Ditto.

	* src/value.c (value_new_from_string): Ditto.  Also take care of
 	empty string.

1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205
2000-11-08  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (apply_paste_oper_to_values) : Rewrite to use
	  eval_expr.
	(paste_cell_with_operation) : rework to handle pasting as_value
	  correctly.
	(paste_link) : This is broken.  FIXME.
	(paste_cell) : Move the check for pasting content or as_value to the
	  top.

	* src/cell.c (cell_make_value) : Unlink expressions if necessary.

	* src/sheet.c (sheet_cell_set_expr) : flag that content changed.

	* src/dependent.c (dependent_queue_recalc_list) : Add some safety.

	* src/item-cursor.c (item_cursor_event) : clicking on an anted cursor
	  is almost the same as clicking on a selection cursor.
1206 1207 1208 1209 1210

	* src/expr-name.c (expr_name_add) : It is legal to add names that are
	  available in other scopes as long as the new scope does not contiain
	  the name.

1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221
2000-11-06  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-autofill.c (autofill_cell) : Use cell_set_value directly.
	  No need to do depends or respaning for each cell.

	* src/commands.c (cmd_autofill_redo) : When we can do it here, for the
	  entire range.
	(cmd_area_set_text_redo) : Add the missing depend update here.

	* src/sheet.c (sheet_cell_set_value) : Render if required.

1222 1223 1224 1225 1226 1227 1228 1229
2000-11-06  Almer S. Tigelaar  <almer1@dds.nl>

	* src/gui-clipboard.c:
	(x_selection_to_cell_region): Make error message more descriptive.
	
	* src/stf.c:
	(stf_read_workbook): Ditto.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1230
2000-11-06  Almer S. Tigelaar  <almer1@dds.nl>
1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244

	Fix bug #21674. (Fix will kick in once the version number of the
	XML format is bumped to GNUM_XML_V5)
	
	* src/print-info.c (print_info_new): Add extra commenting.

	* src/xml-io.c:
	(xml_write_print_repeat_range): New function, for saving a repeat range.
	(xml_read_print_repeat_range): New function, for loading a repeat range.
	(xml_write_print_info): Save the row repeat and col repeat range using
	xml_write_print_repeat_range.
	(xml_read_print_info): Read col and row repeat range if file format
	version > GNUM_XML_V4 using xml_read_print_repeat_range.

1245 1246 1247 1248 1249 1250 1251
2000-11-06  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_sheet_detach) : remove unused parm.
	  Be more paranoid about focus handling.

	* configure.in : fix typo.

1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283
2000-11-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (cb_set_cell_content) : Use cell_set_value.
	(sheet_range_set_text) : remove need for entered_text.

	* src/xml-io.c (xml_read_cell) : Remove 'General' hack.

	* src/dialogs/dialog-cell-format.c (draw_format_preview) : remove
	  entered_text.

	* src/rendered-value.c (rendered_value_new_ext) : No need for
	  entered_text.  Use format_value in place of value_as_string.

	* src/format.c (format_value) : No need for entered_text.
	  Be careful to always set the colour.  This may need to be tuned
	  if we enter '$10' and use a display format of @ what should be
	  displayed ?  10 or $10 ?  We may need to pass in the parse format.

	* src/cell.c (cell_cleanout) : Remove entered_text.
	(cell_copy) : Ditto.
	(cell_set_text) : Ditto.
	(cell_set_value) : Ditto, do not render value here.
	(cell_set_text_and_value) : Delete.
	(cell_set_expr_and_value) : Remove entered_text, and add format
	  argument.
	(cell_set_expr_internal) : No need to manually unref the old expr.
	  That was already done in cleanout.
	(cell_make_value) : remove entered_text.

	* src/rendered-value.c (cell_get_entered_text) : Use the stored parse
	  format and format_value to regenerate the entered text from a value.

Jody Goldberg's avatar
30250  
Jody Goldberg committed
1284 1285 1286 1287 1288 1289 1290 1291
2000-11-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (sheet_view_{col,row}_size_changed) : Only resize
	  all columns if the column that changed is part of the selection.

	* src/selection.c (sheet_selection_full_{cols, rows}) : flag whether
	  the selection contains the requested col.

Jody Goldberg's avatar
30506  
Jody Goldberg committed
1292 1293 1294 1295 1296 1297 1298
2000-11-04  Jody Goldberg <jgoldberg@home.com>

	* src/format-template.c (format_template_apply_to_sheet_regions) : No
	  need to request a redraw.
	(cb_format_sheet_style) : Use sheet_range_apply_style because it
	  requests a redraw and handles respaning/spacing when necessary.

1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311
2000-11-03  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_paste_copy_undo) : Clear any operations when
	  storing the undo info for paste_copy.  There is no longer any need
	  for the operations.  We are storing the image.

	* src/clipboard.c (clipboard_prepend_cell) : Be safe and init the
	  comment field.

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

	* configure.in : Update the GAL requirement.

1312 1313
2000-11-03  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
30490  
Jody Goldberg committed
1314 1315 1316 1317 1318 1319
	* src/clipboard.c (clipboard_paste_region) : Optimize the styles for
	  the entire target region in one swoop, rather than each tile
	  individually.  This fixes the reported problem symptom.  I do not
	  have a definite reason why it was failing before.  This may just be
	  sweeping it under the rug.

Jody Goldberg's avatar
Jody Goldberg committed
1320 1321
	* src/xml-io.c (xml_workbook_write) : Bump the xml version.

1322 1323 1324
	* src/format.c (format_value) : A string value takes precedence over
	  the entered text.

Jody Goldberg's avatar
Jody Goldberg committed
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343
2000-11-03  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/analysis-tools.glade : Rename 'Alpha' to '1 - Alpha'

	* src/complete-sheet.c (text_matches) : Only use values that are strings
	  do not bother with 'entered_text'
	(complete_sheet_search_iteration) : Adjust the calls to text_matches.

	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) : Be
	  careful to use the non-localized version of the format internally.

	* src/cellspan.c (cell_calc_span) : Ignore hidden columns.

	* src/colrow.c (col_row_set_visibility_list) : regen the spans outside
	  the region which changes visibility.

	* src/sheet.c (sheet_regen_adjacent_spans) : Split this out
	  from sheet_clear_region.

1344 1345 1346 1347 1348
2000-11-02  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-autofill.c (string_has_number) : thou shalt not use atoi
	  for it does not check for oeverflow.

1349 1350
2000-11-02  Jody Goldberg <jgoldberg@home.com>

1351 1352 1353
	* src/print-cell.c (print_cell_range) : Set the printed flag whenever
	  there is a valid cell.

1354 1355 1356 1357 1358 1359
	* src/sheet-autofill.c (autofill_create_fill_items) : Do not look up
	  the cell here.
	(fill_item_new) : lookup the style and cell here.
	(sheet_autofill_dir) : Always apply the style.
	(fill_item_destroy) : release the style.

1360 1361 1362 1363 1364 1365 1366
2000-11-02  JP Rosevear  <jpr@helixcode.com>

	* src/xml-io.c (xml_read_attributes): Don't check for a workbook,
	this is redundant and not even true any more.
	(xml_workbook_read): Only read the attributes if the workbook is
	version 5 or later.

1367 1368 1369 1370 1371
2000-11-02  Jody Goldberg <jgoldberg@home.com>

	* src/rendered-value.c (rendered_value_new_ext) : Any form of General
	  will need a width.  Default to full precision.

1372
	* src/cell.c (cell_set_value) : Do not assign optional formats of General
1373

1374 1375 1376 1377
2000-11-02  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (cb_file_new) : We need to create a
	  control & view.
1378 1379 1380 1381 1382 1383
	(workbook_close_if_user_permits) : Do not attempt to finsihed editing
	  here.  This is called in a loop from cb_file_quit.
	(wbcg_close_control) : stop editing here.
	(cb_file_quit) : and stop editing here before closing and workbooks.
	  While closing workbooks save the calling working for last so than
	  can save the current view rather than guessing and using the first.
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
2000-11-02  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialog-autoformat.c:
	(templates_load): Also apply filtering to newly loaded templates.
	(dialog_autoformat): Don't call format_template_apply_to_sheet_regions,
	pushing the undo stuff (cmd_autoformat) already does this anyway.

	* src/format-template.c: Fix bug #30413
	(format_template_range_check): New, checks if the target range
	is wide enough to apply the format template to.
	(format_template_apply_to_sheet_regions): Use format_template_range_check
	to check the ranges. Display an error and abort when a range is invalid.
	(format_template_recalc_hash): Idem, but don't display an error but a
	warning, as no such error is supposed to happen here.
	
	* src/format-template.c: Fix bug #30419
	(format_template_filter_style): Add COLOR_BACK to pattern filtering.
	(format_template_filter_style): Correct to not always replace
	unset elements with default elements.
	(cb_format_hash_style): call format_template_filter_style with
	default element replacing.
	(cb_format_sheet_style): call format_template_filter_style without
	default element replacing.
	(cb_format_sheet_border): Idem.

Michael Meeks's avatar
Michael Meeks committed
1410 1411 1412 1413
2000-11-02  Michael Meeks  <michael@helixcode.com>

	* configure.in: Require bonobo-0.27+

Michael Meeks's avatar
Michael Meeks committed
1414 1415 1416 1417
2000-11-02  Michael Meeks <michael@helixcode.com>

	* The big api rename ...
	
1418 1419 1420 1421
2000-11-02  Michael Meeks  <michael@helixcode.com>

	* configure.in: bump gb requirement to gb-0.0.15

1422 1423 1424 1425 1426
2000-11-02  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_new_sheet_view) : Set the cursor when the sheet
	  is attached.

1427 1428 1429 1430 1431
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_clear_redo) : reverse the content list to keep
	  it in sync with the range list.

1432 1433 1434 1435 1436 1437 1438 1439 1440 1441
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_read_cell) : Default the parse format to General.
	  Eventually we can simply cell_set_value to not guess that the
	  display format == the parse format.  However, that will require
	  changing all of the importers.  For now we can cheat, and supply
	  General as the format.

	* src/functions/fn-string.c (gnumeric_dollar) : use string_get_nocopy.

1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellref_relocate) : inside is always calculatd based on
	  the source sheet.  eg  Sheet1:A1 = '=A2' and we are moving A1:A2
	  from Sheet1 -> Sheet2.  The reference to A2 should be considered
	  'inside'.  References to Sheet2!A2 have already been #REF!ed.

	* src/commands.c (cmd_paste_cut_redo) : Use range_check_sanity.

	* src/sheet.c (sheet_cell_insert) : Render if necessary.
	(sheet_move_range) : Extra care is only necessary if the source and
	  target sheets are the same.  When they are different we should just
	  invalidate all references to the target range.

1456 1457 1458
2000-11-02  Jon K Hellan  <hellan@acm.org>

	* src/workbook.c (workbook_history_update): Fix test to avoid
1459
	  changing an already correct history.
1460
	(workbook_destroy): Don't free wb->filename until we're through 
1461
	  using it.
1462

1463 1464 1465 1466 1467 1468 1469 1470 1471 1472
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (selection_insert_selection_string) :
	  Set the position to where we expect it to be.
	(gnumeric_sheet_key_mode_sheet) : Only call sheet_update if we are not editing.

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

	* src/sheet.c (sheet_name_quote) : names with parethesis require quotes.

1473 1474 1475 1476 1477 1478 1479
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-edit.c (workbook_finish_editing) : Restore the focus
	  from here.
	* src/workbook-control-gui.c
	(cb_cancel_input, cb_accept_input) : rather than here or here.

Jody Goldberg's avatar
Jody Goldberg committed
1480 1481 1482 1483 1484 1485 1486 1487 1488
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* */*.[ch] : s/SheetView::sheet_view/SheetView::canvas/
	  This has been bugging me for months.

	* src/gnumeric-sheet.c (move_cursor) : stop the edit at this level
	  rather than in sheet_cursor_set.
	(gnumeric_sheet_key_mode_sheet) : Use move_cursor.

1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 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
2000-11-01  Jody Goldberg <jgoldberg@home.com>

	* src/ranges.c (range_translate) : Split sanity check into new function.
	(range_check_sanity) : here.

	* src/xml-io.c (xml_read_range) : Use it.

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

	* src/sheet.c (sheet_new) : Be mroe fine grained about the changes to
	  the edit position.
	(sheet_flag_status_update_cell) : Only content and format have changed.
	(sheet_flag_status_update_range) : handle the new flags.
	(sheet_flag_format_update_range) : new function.
	(sheet_update_editpos) : delete and split up.
	(sheet_update) : Do each update seperately. NOTE : this is broken.
	  All of these flags should be at the View level.

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

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

	* src/commands.c (cmd_format_undo) : flag the format change.
	(cmd_format_redo) : Ditto.

	* src/workbook-control.h (wb_control_claim_selection) : new virtual.
	* src/application.c (application_set_selected_sheet) : Used here.
	(application_clipboard_copy) : Take a WorkbookControl.
	(application_clipboard_cut) : Ditto.

	* src/workbook-control-gui.c (wbcg_paste_from_selection) : new
	  function.
	(workbook_control_gui_ctor_class) : register it.

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

	* src/print-cell.c (print_cell_range) : We are only outputing
	  something in the case of a blank cell if the format is visible.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1529 1530 1531 1532 1533
2000-11-01  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/dialog-stf.glade: 
	Beautify dialog.

1534 1535 1536 1537 1538 1539
2000-11-01  Almer S. Tigelaar  <almer1@dds.nl>

	* src/print-cell.c:
	(print_cell_range): Fix #29442, if a cell's background
	is 'printed' this also counts as a 'printed cell'

1540 1541 1542 1543 1544 1545
2000-11-01  Almer S. Tigelaar  <almer1@dds.nl>

	* src/dialogs/dialog-autoformat.c:
	(dialog_autoformat): Kill memory leak, we were not freeing
	the list of acquired selection ranges.

1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_set_text_undo) : Use sheet_clear_region to
	  ensure that spans get regenerated in neighbouring cells.
	(cmd_set_date_time_undo) : Ditto.

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

	* src/number-match.c (format_create_regexp) : Fix typo in regexp.
	  Be careful to only match 1 or more digits as a number.

1557 1558 1559 1560 1561 1562 1563
2000-10-31  Morten Welinder  <terra@diku.dk>

	* src/parser.y (unregister_allocation): plug leak.
	("line = error"): deallocate the result, just in case the parser
 	discovers the error after reducing the regular line production.
	(gnumeric_expr_parser): Initialise *parser_result.

Jody Goldberg's avatar
Jody Goldberg committed
1564 1565 1566 1567
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_ins_del_row_col_undo) : Correct target range.

Michael Meeks's avatar
Michael Meeks committed
1568 1569 1570 1571
2000-11-01  Michael Meeks  <michael@helixcode.com>

	* src/command-context-corba.[ch]: privatize the command context.

Jody Goldberg's avatar
Jody Goldberg committed
1572 1573 1574 1575 1576 1577 1578 1579 1580
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/cmd-edit.c (cmd_paste) : change the selection when pasting.
	(cmd_shift_{rows,cols}) : Do not change the selection when pasting.

	* src/commands.c (cmd_paste_cut_{undo,redo}) : Only select the target
	  if requested.
	(cmd_paste_cut) : new argument.

Jody Goldberg's avatar
Jody Goldberg committed
1581 1582 1583 1584 1585 1586 1587 1588
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/value.c (value_new_from_string) : Reset errno on over/underflow.
	* src/number-match.c (format_match_simple) : Ditto.

	* src/parser.y (yylex) : reset errno in the event of over/underflow.
	  test for 'e' as an indicator of flaoting point numbers.

1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/application.c (application_init) : Register a shrunken version
	  of the print preview.

	* src/workbook-control-gui.c (workbook_menu_file) : Use the new
	  shrunken print preview icon.

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

	* src/workbook-control-gui.c (cb_cancel_input) : renamed from
	  cancel_input, and return focus to the sheet.
	(cb_accept_input) : renamed from accept_input, and return focus
	  to the sheet.

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

	* src/item-grid.c (item_grid_popup_menu) : Use the MENU versions of
	  the stock pixmaps.

1609 1610 1611 1612 1613 1614
2000-10-31  Morten Welinder  <terra@diku.dk>

	* src/analysis-tools.c (get_data_groupped_by_columns): Properly
 	offset col.  Constify.
	(get_data_groupped_by_rows): Properly offset row.  Constify.

Jon K Hellan's avatar
Jon K Hellan committed
1615 1616 1617 1618
2000-10-31  Jon K Hellan  <hellan@acm.org>

	* src/io-context.c (gnumeric_io_error_system): Added it.

1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 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 1709 1710 1711 1712 1713 1714 1715 1716 1717 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
2000-10-31  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
	  LC_NUMERIC.
	* src/xml-io.c (xml_workbook_write) : Ditto.
	(xml_workbook_read) : Ditto.

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

	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
	  operations.  A WorkbookView is required to know which sheet is the
	  current.

	* src/xml-io.c : We now load/save WorkbookViews.

	* src/xml-io-autoft.c : Adjust to signature changes.

	* src/workbook.c : Split the View into WorkbookView.
	  Abstract the Controler interface, and move the GUI specific
	  implementation of the Controler into WorkbookControlGUI.

	* src/workbook-view.c : Complete rewrite with correct semantics.

	* src/workbook-private.h : Move all the GUI specific stuff into
	  WorkbookControlGUI were it belongs.

	* src/workbook-private.c (workbook_private_class_init) : Fix typo.

	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
	  We should rename the functions eventually.
	* src/workbook-format-toolbar.c : Ditto.
	* src/workbook-object-toolbar.c : Ditto.

	* src/workbook-cmd-format.c : Adjust to signature changes.
	  and use WorkbookControlGUI were necessary.

	* src/style.c (style_font_new_from) : Delete dead code.

	* src/solver-lp.c : Adjust to signature changes.
	* src/sort.c : Ditto.
	* src/stf.c : Ditto. Make dialog conditional on gui-ness.

	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
	  and only take a SheetView as argument.
	(sheet_new) : Do not create a view by default.
	(sheet_update_zoom_controls) : foreach control.
	(sheet_update_editpos) : ditto.
	(sheet_update) : handle multiple views and controls.

	* src/sheet-view.c : Commands take WorkbookControls rather than
	  CommandContexts.

	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
	  rather than Workbooks.

	* src/sheet-object-container.c (sheet_object_container_new_view) :
	  Use the uic from the WorkbookControlGUI.

	* src/sheet-control.c : New file. Unused so far.
	  cp sheet-view.c sheet-control.c
	  s/SheetView/SheetControl/

	* src/print.c : Make the GUI dependency explicit.
	  At some point the setup dialog should be split out of here.

	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
	  only adding sheets if nothing was loaded.  Improve handing of exit
	  request while loading.

	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
	  because we know which control to use.
	(context_menu_hander) : Switch to WorkbookControlGUI.
	(item_grid_popup_menu) : Ditto.

	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
	  Workbook now.

	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
	  a WorkbookControlGUI.
	(item_cursor_do_action) : All the commands take WorkbookControls.

	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
	  SheetView now.

	* src/history.c : Take WorkbookControlGUI.
	  Update all controls for each workbook.

	* src/gui-clipboard.c : Use 'unsigned char'

	* src/gnumeric.xml : More work to split commands from layout.

	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
	(gnumeric_notice) : Take a WorkbookControlGUI.
	(gnumeric_wb_dialog_run) : Ditto.
	(gnumeric_dialog_run) : Ditto.
	(gnumeric_dialog_show) : Ditto.
	(gnumeric_set_transient) : Ditto.
	(gnumeric_glade_xml_new) : Ditto.
	(gnumeric_non_modal_dialog) : Ditto.
	(gnumeric_inject_widget_into_bonoboui) : Ditto.

	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
	  to keep track of which control it is associated with. Use it.

	* src/file.c : Adjust to lots of signature changes.
	  We now load/save WorkbookView rather than Workbook.
	  Add a placeholder struct IOContext so that we can consider doing
	  smarter import/export and dealing with warnings and missing things
	  smoothly.

	* src/eval.c (workbook_recalc_all) : After a recalc update all views.

	* src/commands.c (undo_redo_menu_labels) : foreach control.
	(command_undo) : ditto.
	(command_redo) : ditto.
	(command_push_undo) : change signature.  The workbookcontrol
	  now acts as the command context.

	* src/cmd-edit.c : Adjust to signature changes.

	* src/clipboard.c : split the gui specific X handlers out into a new
	  file.
	* src/gui-clipboard.c :  here.

	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
	  not to we are editing.  That is at the control level.  Test it in
	  the rendering loop.

	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
	  broken for now.  This needs a View rather than a Model and should be
	  associated with something.

	* src/application.c (application_workbook_list_add) : New function.
	(application_workbook_list_remove) : New function.
	(application_workbook_list) : New function.
	(application_clipboard_copy) : foreach control.
	(application_clipboard_cut) : foreach control.
	(application_clipboard_clear) : foreach control.
	(application_workbook_foreach) : renamed from workbook_foreach.
	(application_set_selected_sheet) : FIXME. Disabled for now.

	* src/about.c (cb_closed) : Associated the flag with the control
	  directly.
	(dialog_about) : dialogs are associated with gui-controls.

	* src/analysis-tools.c : change all dialog signatures to handle MVC
	  split of workbook.

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

	* src/Makefile.am : Add new command-context,  io-context,
	  workbook-view, workbook-control, workbook-control-gui files.
	  Remove old command-context-gui, command-context-corba, and disable
	  corba-* for now.

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

	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
	  make up their minds.

	* idl/Gnumeric.idl : Remove Workbook::show.

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

	* BUGS : Update.
	* NEWS : Update.
	* TODO : Update.

1788 1789 1790 1791
2000-10-30  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_sumproduct): Plug leak.

1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814
2000-10-29  Almer S. Tigelaar  <almer1@dds.nl>

	* src/commands.h, src/commands.c:
	(cmd_autoformat_undo): New, undo for the autoformat.
	(cmd_autoformat_redo): New, redo for the autoformat.
	(cmd_autoformat_destroy): Part of undo/redo.
	(cmd_autoformat): Idem.
	
	* src/format-template.h: Correct outdated comment.
	
	* src/format-template.h, src/format-template.c:
	(format_template_member_clone): New, clone a templatemember.
	(format_template_clone): New, clone a format template.
	(cb_format_sheet_style): Insert extra checks.
	(cb_format_sheet_border): Idem.
	(format_template_apply_to_sheet_selection): Renamed.
	(format_template_apply_to_sheet_sheet_regions): Modification of the
	above function, now accept a separate list of regions.

	* src/dialogs/dialog-autoformat.c:
	(dialog_autoformat): Modify so it calls upon routines which record
	undo/redo information.

1815 1816 1817 1818
2000-10-28  Michael Meeks  <michael@helixcode.com>

	* configure.in (Configuration): add scary message about Gnome Basic.

1819 1820 1821 1822 1823 1824 1825
2000-10-28  Jon K Hellan  <hellan@acm.org>

	* src/bonobo-io.c (gnumeric_bonobo_{read|write}_workbook): 
	Forgot to tell: Also replaced vfs storage, which no longer exists
	in Bonobo, with efs, which does. It doesn't seem to work, but
	that's a different matter.

1826 1827 1828 1829 1830 1831 1832 1833 1834
2000-10-28  Almer S. Tigelaar  <almer1@dds.nl>

	* src/clipboard.c:
	(x_selection_to_cell_region): Correct 'char' into 'unsigned char' so the eror
	message will display the correct ASCII decimal.

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

Jon K Hellan's avatar
Jon K Hellan committed
1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846
2000-10-28  Jon K Hellan  <hellan@acm.org>

	* configure.in: Require Bonobo >= 0.26.

	* src/bonobo-io.c (write_stream_to_storage,
	gnumeric_bonobo_write_workbook): Switch from
	Bonobo_Storage_create_stream (which no longer exists) to
	Bonobo_Storage_open_stream
	(gnumeric_bonobo_obj_write, read_stream_from_storage,
	gnumeric_bonobo_write_workbook, gnumeric_bonobo_read_workbook):
	Use BONOBO_EX macro for clarity.

Michael Meeks's avatar
Michael Meeks committed
1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859
2000-10-26  Michael Meeks  <michael@helixcode.com>

	* configure.in: Depend on gb-0.0.14 (CVS)

2000-10-24  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-bonobo.c: Remove #ifdef ENABLE_BONOBO's
	(open_cb, sheet_object_bonobo_populate_menu): impl.
	(sheet_object_bonobo_class_init): hook in.
	(sheet_object_bonobo_load_from_file): upd.

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

1860 1861 1862 1863 1864
2000-10-24  Michael Meeks  <michael@helixcode.com>

	* src/gnumeric.xml: Start to separate out cmds / widgets, a very
	long and tedious job, s/Menu_Open/Open/ etc.

1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875
2000-10-22  Jon K Hellan  <hellan@acm.org>

	* src/workbook-format-toolbar.c (workbook_format_toolbar []): Now
	also for non bonobo case: Add button to replace font and size
	selectors in vertical mode.
	(workbook_format_toolbar_orient): Show/hide font button mentioned
	above.
	(workbook_create_format_toolbar): Hide font button.

	* src/workbook-format-toolbar.h: Update all toolbar item indexes.

1876 1877 1878 1879 1880 1881
2000-10-21  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (selection_to_list) : delete.
	(selection_get_ranges) : implement  allow_intersection.
	(selection_apply) : change the signature of the callback.

1882 1883 1884 1885 1886 1887 1888 1889
2000-10-21  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-container.c: include bonobo-object-directory.h

	* configure.in: depend on gb >= 0.0.13 and libole >= 0.1.7

	* README: update to reflect this.

1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911
2000-10-21  Jon K Hellan  <hellan@acm.org>

	* src/gnumeric.xml: Add tips for toolbar undo and redo.  Correct
	tip for menu PrintPreview.  Add tip to toolbar zoom.  Don't
	display it when vertical.  Add tips to toolbar font name and font
	size controls. Replace them with a button in vertical mode. (2
	controls -> 1 button.)  It invokes the font page of the format
	dialog. Add tips to toolbar border, background and foreground
	selectors.

	* src/workbook-format-toolbar.c (font_select_cmd): New
	command. Pop up cell format dialog at font page.
	(workbook_feedback_set): Remove warning by not defining toolbar
	variable for bonobo.
	(workbook_format_toolbar_orient): Remove warning by undefining
	this for bonobo.

	* src/workbook.c (format_cells_cmd): Call dialog_cell_format
	with new parameter pageno = FD_CURRENT.

	* src/item-grid.c (context_menu_hander): Ditto

Michael Meeks's avatar
Michael Meeks committed
1912 1913 1914 1915
2000-10-21  Michael Meeks  <michael@helixcode.com>

	* src/gnumeric.xml.h: commit to CVS.

1916 1917 1918 1919 1920 1921 1922
2000-10-20  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (do_render_number) : Brown paper bag.  Bug 29068.
	  I HATE global variables.
	(fmt_general_float) : Rewrite to rationalize and catch some corner
	  cases.

Michael Meeks's avatar
Michael Meeks committed
1923 1924 1925 1926
2000-10-19  Michael Meeks  <michael@helixcode.com>

	* src/gnumeric.xml: don't display the zoom control when vertical.

Michael Meeks's avatar
Michael Meeks committed
1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944
2000-10-19  Michael Meeks  <michael@helixcode.com>

	* configure.in (gnumeric_executable): check for (CVS) Bonobo 0.24

	* src/file.c (do_load_from): split from (workbook_load_from): upd.
	(workbook_try_read): use do_load_from to kill (empty) message box.

	* src/bonobo-io.c (gnumeric_bonobo_io_probe): remove annoying warning.

	* src/sheet-object-container.c (sheet_object_container_new_file):
	move this ugly code into bonobo and clean; make D&D components work again.

	* src/bonobo-io.c (gnumeric_bonobo_write_workbook): update for HEAD
	Bonobo.
	(gnumeric_bonobo_read_workbook): ditto.

	* src/sheet-object-bonobo.c (sheet_object_bonobo_load_from_file): upd.

1945 1946 1947 1948 1949 1950 1951 1952
2000-10-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_value) : Only format doubles as ints if they
	  fit in an integer.
	(fmt_general_int) : improve handling of log (0).
	(fmt_general_float) : ditto.  Increase (temporarily) the width of a
	  decimal point.

Jody Goldberg's avatar
Jody Goldberg committed
1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963
2000-10-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (fmt_general_float) : clamp the precision at DBL_PREC.

	* src/rendered-value.c (rendered_value_new_ext) : Don't forget the
	  intercharacter spacing when approximating the width of a character.

	* src/str.c (string_get_nocopy) : new function.

	* src/cell.c (cell_set_value) : Use it.

Jody Goldberg's avatar
Jody Goldberg committed
1964 1965 1966 1967
2000-10-16  Jody Goldberg <jgoldberg@home.com>

	* src/rendered-value.c (rendered_value_new_ext) : fix some leaks.

1968 1969
2000-10-15  Jody Goldberg <jgoldberg@home.com>

1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982
	* src/clipboard.c (clipboard_paste_region) : no need to clear the
	  formats.  We are going to be pasting over them later.  This means
	  that we don't rerender everything in the region then replace it.

	* src/rendered-value.c (rendered_value_new_ext) : Pass colwidth as a
	  float to get beter resolution.
	* src/format.c (format_value) : Ditto.

	* src/format.c (fmt_general_float) : More tuning.

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

	* src/sheet.c (sheet_update) : RE_RENDER when a span calc is forced.
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
	  This is a bit brute force for now, but is necessary to force the
	  re-rendering of values that may have width dependent f