OChangeLog-2001-06-26 285 KB
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1 2 3 4 5 6 7 8
2001-06-27  Jody Goldberg <jgoldberg@home.com>

	* Release 0.66

2001-06-26  Jody Goldberg <jgoldberg@home.com>

	* configure.in : restore the zh translations.

9 10 11 12 13 14 15 16 17 18
2001-06-26  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (workbook_control_gui_init) : load the ui
	  file from a version specific location.

	* src/Makefile.am : No need for GNOME_DATADIR anymore.

	* gnumeric.spec.in : Move the bonobo ui file into a version specific
	  location.

19 20 21 22
2001-06-25  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_not_used_old_array_spec) : fix a few warnings.

23 24 25 26 27 28 29
2001-06-23  Almer S. Tigelaar  <almer@gnome.org>

	* src/item-cursor.c (item_cursor_do_drop): Always clear
	the status text.

	* src/GNOME_Gnumeric.xml: Add missing outline menu items.

30 31 32 33 34
2001-06-22  Morten Welinder  <terra@diku.dk>

	* src/goal-seek.c (update_data): Prefer absolute lowest y-value in
 	cases where we have only one side of zero.

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
2001-06-21  Morten Welinder  <terra@diku.dk>

	* src/summary.c: #include <string.h> for strlen.

	* src/search.c (calculate_replacement): Warning killer.

	* src/regression.c: #include <stdlib.h> for abs.

	* src/plugin-loader-module.c: #include <string.h> for strcmp.

	* src/formats.c (cell_format_fraction): Avoid accidental use of
 	trigraph.

	* src/complete.c: #include <stdlib.h> for abort.

50
2001-06-21  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
51

52 53
 	* src/gnumeric-sheet.c (border_mutate): New, toggles
 	borders around regions.
Morten Welinder's avatar
Morten Welinder committed
54

55 56 57 58 59
 	(gnumeric_sheet_key_mode_sheet):
 	Make Ctrl+Backspace center on the active cell.
 	Add support for Locked scrolling with the arrow keys, home and end.
 	Add support for Ctrl+Shift ~, $, %, ^, #, @, !, & and _ shortcut keys
 	for formatting and border mutations.
Morten Welinder's avatar
Morten Welinder committed
60

61 62 63 64
 	* src/workbook-control-gui.c, src/GNOME_Gnumeric.xml:
 	Change keybinding of Goto Cell from Ctrl+G to F5.
 	Set keybinding of Search&Replace to F6.
 	Set keybinding of Define Names to Ctrl+F3
Morten Welinder's avatar
Morten Welinder committed
65

66 67
2001-06-20  Almer S. Tigelaar  <almer@gnome.org>

68 69 70 71
	* src/workbook-control-gui.c (wbcg_claim_selection):
	Use wbcg->toplevel, not wbcg->table. This fixes
	copying from Gnumeric to another application.

72 73 74 75 76
	* src/print.c (print_page_cells): Convert scaling percentage
	to factor.
	(setup_scale): Idem.
	(print_page): Idem.
	(compute_group): Idem.
Morten Welinder's avatar
Morten Welinder committed
77

78 79 80 81
2001-06-20  Jody Goldberg <jgoldberg@home.com>

	* src/number-match.c (compute_value) : parse 12:xx am correctly.

82 83 84 85
2001-06-19  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_search_replace_do_cell) : Adjust to ref
	  semantics change.
Morten Welinder's avatar
Morten Welinder committed
86

87 88 89 90 91 92 93 94 95 96 97
	* src/number-match.c (format_match) : do not add a ref to the
	  resulting format.

	* src/sheet.c (sheet_cell_set_text) : no need to unref anymore.
	(sheet_range_set_text) : ditto.

	* src/cell.c (cell_assign_value) : ref before unref.
	(cell_eval_content) : Use a simplified assignment to avoid refing and
	  unrefing the formats.
	(cell_set_text) : cleanup reference handling.

98 99 100 101 102
2001-06-19  Morten Welinder  <terra@diku.dk>

	* src/number-match.c (compute_value): Don't g_barf on invalid
 	dates.

103
2001-06-19  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
104

105 106 107
 	* src/item-cursor.c (item_cursor_tip_setstatus): New function.
 	(cb_move_cursor): Call item_cursor_tip_setstatus.
 	(item_cursor_do_drop): Clear the status text.
Morten Welinder's avatar
Morten Welinder committed
108

109 110 111 112 113 114 115
2001-06-19  Morten Welinder  <terra@diku.dk>

	* configure.in: Add derivatives plugin.
	* plugins/Makefile.am (SUBDIRS_FUNCTIONS): Ditto.

	* src/plugin.h: Fix includes.

116 117 118 119
2001-06-19  Yukihiro Nakai <nakai@gnome.gr.jp>

	* configure.in: Re-add ja to ALL_LINGUAS.

Jody Goldberg's avatar
Jody Goldberg committed
120 121 122 123 124 125 126 127 128
2001-06-18  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (ActionType) : all actions must be > 0.

2001-06-17  Jody Goldberg <jgoldberg@home.com>

	* src/io-context.c (workbook_io_progress_set) : delete update based on
	  styles.  This operation leaked and was very expensive.

129 130 131 132 133 134 135 136 137 138 139
2001-06-18  Almer S. Tigelaar  <almer@gnome.org>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
	Support for end and ctrl+end.

	* src/workbook-control-gui.c: Add accelerator for
	formula/value toggling.

	* src/GNOME_Gnumeric.xml: Add missing accelerator for
	goto cell and new accelerator for formula/value toggling.

140 141 142 143
2001-06-18  Karl Eichwalder  <ke@suse.de>

	* src/main.c (gnumeric_main): Add missing exclamation mark.

144 145 146 147 148 149
2001-06-17  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (cb_filter_style) : delete code that is irrelevant
	  now that borders are sane.
	(sheet_style_get_uniform) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
150 151 152 153 154 155 156
2001-06-14  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_colrow_select) : don't
	  discard input when selecting a range.

	* src/xml-io.c (xml_write_range) : Add some safety.

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
2001-06-13  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (render_number) : improve rounding and cleanup.

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

	* src/cell.c (cell_cleanout) : call dirty here.
	(cell_destroy) : not here.
	(cell_set_text) : or here.
	(cell_set_value) : or here.
	(cell_set_expr_and_value) : or here.
	(cell_set_expr_internal) : or here.

2001-06-11  Jody Goldberg <jgoldberg@home.com>

	* src/print.c (compute_group) : add more error checking to avoid
	  possibility of infinite loop.

	* src/print-info.c (print_info_new) : init num copies.

	* src/mathfunc.c (stern_brocot) : move this here from
	* format.c : here.

180 181 182 183 184
2001-06-13  Morten Welinder  <terra@diku.dk>

	* src/mathfunc.c (gnumeric_add_epsilon): Make non-static.
	(gpow10): Use table for the range -20 ... +20.

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
2001-06-12  Zbigniew Chyla  <cyba@gnome.pl>

	* src/io-context-priv.h
	(enum GnumProgressHelperType, struct GnumProgressHelper): Two extra
	helpers (value, workbook) + changes in count helper), removed min_f and
	max_f fields.
	(struct ProgressRange): New.
	(struct _IOContext): Added progress_ranges, progress_min, progress_max.

	* src/io-context.h
	(enum WbProgressElements): New.
	(file_io_progress_set, memory_io_progress_set):
	Removed min_f and max_f arguments.
	(count_io_progress_set): Added step argument, removed min_f and max_f.
	(count_io_progress_update): s/value/inc.
	(io_progress_range_push, io_progress_range_pop,
	value_io_progress_set, value_io_progress_update,
	workbook_io_progress_set, workbook_io_progress_update): New.

	* src/io-context.c
	(io_context_init): Initialize extra fields: progress_ranges,
	progress_min, progress_max.
	(io_progress_update): Adjust the value, using current range
	<progress_min, progress_max>.
	(io_progress_range_push, io_progress_range_pop): New.
	(file_io_progress_set, memory_io_progress_set):
	Removed min_f and max_f arguments.
	(file_io_progress_update, memory_io_progress_update): Don't adjust value
	to current range, io_progress_update takes care of this.
	(count_io_progress_set): Added "step" argument, initialize extra
	struct fields: last, current, step.
	(count_io_progress_update): Take value increase as an argument, not
Morten Welinder's avatar
Morten Welinder committed
217
	value itself. Return immediately if value hasn't changed enough.
218 219 220 221 222 223 224 225 226 227 228 229 230 231
	(value_io_progress_set, value_io_progress_update,
	workbook_io_progress_set, workbook_io_progress_update): New. Two
	additional helpers, "workbook" should be very useful when saving
	workbook.

	* src/xml-io.h (struct _XmlParseContext): Removed element_counter.

	* src/xml-io.c
	(xml_read_styles, xml_sheet_read): Don't increment element_counter
	manually, just call count_io_progress_update.
	(xml_workbook_read): Pass the size of the step to
	count_io_progress_set, use io_progress_range_{push,pop}.
	(gnumeric_xml_read_workbook): Use io progress helper of type "value".

232 233 234 235
2001-06-11  Juan Pablo Mendoza <pablo_juan@yahoo.com>

	* .cvsignore: Add GNOME_Gnumeric.oaf.

236 237 238 239 240 241 242
2001-06-10  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_value) : if no conditions match treat as
	  General, not as empty.
	(format_compile) : No need to use a catch all condition if there are
	  some conditions.

243 244 245 246 247 248
2001-06-08  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (workbook_menu_format_row) : avoid
	  duplicate use of 'H' as accelerator.
	* src/GNOME_Gnumeric.xml : Ditto.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
249 250 251 252 253
2001-06-08  Almer S. Tigelaar  <almer@gnome.org>

	* src/embeddable-grid.c (grid_view_activate): Use
	scg->gsheet.

254 255
2001-06-07  Jody Goldberg <jgoldberg@home.com>

256 257 258 259 260
	* src/selection.c (sheet_selection_set_internal) : Add some sanity
	  checking for safety.
	* src/sheet.c (sheet_set_edit_pos) : ditto.
	(sheet_redraw_cell_region) : ditto.

261 262 263 264 265 266 267 268 269
	* src/rendered-value.c (cell_get_rendered_text) : We need this for
	  now.  There are functions that actualyl rely on the rendered text.

2001-06-06  Jody Goldberg <jgoldberg@home.com>

	* src/gui-file.c (gui_file_open) : There is no point showing the
	  create/delete/rename buttons when loading.
	(gui_file_import) : and importing.

270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
2001-06-07  Almer S. Tigelaar  <almer@gnome.org>

	* src/consolidate.c (retrieve_col_tree): Ignore
	empty values.
	(retrieve_row_tree): Idem.
	(key_list_get): Idem.
	(key_list_free): Burn.
	(colrow_consolidate): Free the lists directly instead
	of calling key_list_free.
	(simple_consolidate): Add flag, we don't want
	range merge optimizations on simple consolidations.
	(consolidate_apply): Adjust call to simple_consolidate.
	(cb_col_tree): Idem.
	(cb_row_tree): Idem.

285 286 287 288 289 290 291 292
2001-06-07  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control.h: Remove MS_ALL as flag
	and make it a define.

	* src/workbook-control-gui.c (wbcg_menu_state_update):
	Remove MS_ALL flag handling.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
293 294 295 296 297 298 299 300 301 302
2001-06-07  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control.h: Add MS_CONSOLIDATE.

	* src/workbook-edit.c (wbcg_edit_attach_guru): Call
	wb_control_menu_state_update
	(wbcg_edit_detach_guru): Idem.

	* src/workbook-control-gui-priv.h: Add consolidation
	menu item.
Morten Welinder's avatar
Morten Welinder committed
303

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
304 305 306 307 308
	* src/workbook-control-gui.c (wbcg_menu_state_update): Add
	consolidation menu item.
	(workbook_control_gui_init): Initialize consolidation
	menu item.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
309 310 311 312
2001-06-06  Almer S. Tigelaar  <almer@gnome.org>

	* src/stf.c (stf_read_workbook): Fix warning.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
313 314 315 316 317 318 319 320 321 322
2001-06-06  Almer S. Tigelaar  <almer@gnome.org>

	* src/gnumeric.h : Add new GlobalRange.

	* src/ranges.[ch] (global_range_new): Create a new globalrange.
	(global_range_free): Free.
	(global_range_overlap): Utility function.
	(global_range_dup): Idem.

	* src/sheet.[ch] (sheet_cell_get_value): New function.
Morten Welinder's avatar
Morten Welinder committed
323

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
324 325
	* src/workbook-control-gui.c (cb_data_consolidate) :
	Entry point for the data consolidation dialog.
Morten Welinder's avatar
Morten Welinder committed
326

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
327
	* src/GNOME_Gnumeric.xml : Add consolidate menu item.
Morten Welinder's avatar
Morten Welinder committed
328

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
329 330 331 332 333 334 335
	* src/commands.c (cmd_consolidate) : Undo/redo for consolidate.
	(cmd_consolidate_destroy) : Idem.
	(cmd_consolidate_redo) : Idem.
	(cmd_consolidate_undo) : Idem.

	* src/consolidate.[ch] : Consolidation low-level code.

336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369
2001-06-05  Zbigniew Chyla  <cyba@gnome.pl>

	* src/gnumeric-util.[ch] (gnumeric_dialog_file_selection): New
	function, some code moved from gui-file.c.

	* src/workbook.[ch] (workbook_get_filename): New accessor function.

	* src/gui-file.h
	(gui_file_open): New function.
	(gui_file_import): Removed fname argument.

	* src/gui-file.c
	(gui_file_import): Create and open file selector, using
	gnumeric_dialog_file_selection to display it. Use one dialog to select
	file and file format, we don't need glade file anymore. Optionally
	show all registered openers as importers.
	(gui_file_save_as): Uses gnumeric_dialog_file_selection. Take
	workbook's current saver if current_saver is NULL (previously we've
	been loosing this information), use
	gnumeric_option_menu_get_selected_index instead of playing with
	signals.
	(gui_file_open): New function, some code moved from
	dialog_query_load_file.
	(gui_file_save): Always call wb_view_preferred_size.
	(do_save_as): Take GnumFileSaver as argument.
	(cb_select, handle_ok, saver_activate, fill_save_menu,
	make_format_chooser, file_dialog_delete_event, fs_key_event,
	fs_set_filename): Removed.

	* src/workbook-control-gui.c
	(cb_file_new): Just call gui_file_open.
	(cb_file_import): Call gui_file_import.
	(workbook_control_gui_init): Initialize current_saver with NULL.

370 371 372 373 374
2001-06-05  Zbigniew Chyla  <cyba@gnome.pl>

	* src/workbook.c (workbook_new): Slight modification of the previous
	patch.

375 376 377 378 379
2001-06-04  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : Use the extension associated with
	  the default saver as the default extension.

380 381 382 383 384
2001-06-04  Zbigniew Chyla  <cyba@gnome.pl>

	* src/func.c (function_def_get_full_info_if_needed): Use fn_type to
	check if we need to get full information.

385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
2001-06-04  Almer S. Tigelaar  <almer@gnome.org>

	* src/stf-parse.[ch] : Burn useless comments.
	(stf_parse_options_csv_set_separators): Change interface.
	(stf_parse_csv_is_separator): Adjust for interface change.
	(stf_parse_options_new): Burn modified and old splitpositions.
	(stf_parse_options_set_type): Constify.
	(stf_parse_options_set_line_terminator): Idem.
	(stf_parse_options_set_lines_to_parse): Idem.
	(stf_parse_options_set_trim_spaces): Idem.
	(stf_parse_options_csv_set_customfieldseparator): Burn.
	(stf_parse_options_csv_set_stringindicator): Constify.
	(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
	(stf_parse_options_csv_set_duplicates): Idem.
	(stf_parse_options_fixed_splitpositions_add): Idem.
	(stf_parse_csv_cell): Cosmetic changes and adjust for
	change to stf_parse_csv_is_separator, plus use GList.
	(stf_parse_fixed_cell): Cosmetic changes.
	(stf_parse_fixed_line): Idem and use GList.
	(stf_parse_general): Optimize loop and use GList's.
	(stf_parse_get_rowcount): Cosmetic changes.
	(stf_parse_get_colcount): Idem.
	(stf_parse_get_longest_row_width): Idem and fix.
	(stf_parse_get_colwidth): Idem and fix.
	(stf_parse_convert_to_unix): Rewrite.
	(stf_parse_is_valid_data): Idem and constify.
	(stf_parse_options_fixed_autodiscover): Constify.
	(stf_parse_sheet): Rewrite.
	(stf_parse_region): Idem.

	* src/gui-clipboard.c (x_selection_to_cell_region):
	Constify return variable from stf_parse_is_valid_data.
Morten Welinder's avatar
Morten Welinder committed
417

418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
2001-06-04  Zbigniew Chyla  <cyba@gnome.pl>

	Displaying a question dialog if the user wants to export workbook
	with many sheets to file format supporting only one.

	* src/file-priv.h (struct _GnumFileSaver): Added save_scope.

	* src/file.h (gnum_file_saver_set_save_scope,
	gnum_file_saver_get_save_scope, enum FileSaveScope): New.

	* src/file.c
	(gnum_file_saver_init): Initialize save_scope with FILE_SAVE_WORKBOOK.
	(gnum_file_saver_set_save_scope, gnum_file_saver_get_save_scope): New.

	* src/gui-file.c (do_save_as): Optionally display a question dialog if
	we have many sheets and the saver can save only one.

	* src/plugin-service.h
	(struct _PluginServiceFileSaver): Added save_scope.

	* src/plugin-service.c (plugin_service_file_saver_read,
	gnum_plugin_file_saver_new): Support save_scope attribute.

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

	* src/xml-io.c:
	Reverted my last patch to save users' swap-space :-)

446 447 448 449 450 451
2001-06-03  Jody Goldberg <jgoldberg@home.com>

	* src/cellspan.c (cell_calc_span) : do not span expressions
	  because they do not span when recalculated.  This will be fixed when
	  just in time rendering is done.

452 453 454 455 456 457 458 459 460 461 462 463
2001-06-03  Jody Goldberg <jgoldberg@home.com>
	From Juan Pablo Mendoza <pablo_juan@yahoo.com>

	* rendered-value.c (rendered_value_get_text): Add a check for
	  rendered value != NULL.
	(cell_get_rendered_text): Add check for redered value == NULL

2001-06-03  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
	  status updates.

464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
2001-06-03  Zbigniew Chyla  <cyba@gnome.pl>

	Updating i/o progress while saving Gnumeric XML file.

	* src/xml-io.c
	s/N_ELEMENTS_BETWEEN_UPDATES/N_INPUT_ELEMENTS_BETWEEN_UPDATES
	(xml_write_cell_and_position): Update i/o progress every
	N_OUTPUT_ELEMENTS_BETWEEN_UPDATES cells.
	(xml_write_styles): Ditto for styles.
	(gnumeric_xml_read_workbook): Better error reporting.
	(workbook_get_n_elements): Internal function, calculating the number of
	"elements" (styles and cells) in workbook.
	(gnumeric_xml_write_workbook): Split saving to three stages: building
	XML tree, dumping it to memory buffer, saving (compressed) buffer
	contents to file. Update i/o progress regularly.
	The second stage still freezes UI though :(

481 482 483 484 485
2001-06-03  Zbigniew Chyla  <cyba@gnome.pl>

	* src/func.c (function_def_get_full_info_if_needed): Protected against
	stack overflow. Probably it doesn't really solve the problem though :(

486 487 488 489 490 491 492 493 494 495
2001-06-03  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (draw_text) : limit length of cell text to avoid
	  flakey X servers that crash with long strings.

	* src/clipboard.c (clipboard_paste_region) : be sure to rerender and
	  span if formats change.

	* src/format.c (format_value) : simplify.

496 497 498 499
2001-06-03  Almer S. Tigelaar  <almer@gnome.org>

	* src/stf.c (stf_write_workbook): Exporting wouldn't work
	because of wrong changes to the code. Fixed.
500 501 502 503 504 505 506 507 508 509
	(stf_parse_csv_cell): Add support for escaped newlines and
	clean-up.
	(stf_parse_options_csv_set_customfieldseparator): Support
	string separator.
	(stf_parse_options_new): Initialize customfieldseparator.
	(stf_parse_options_free): Free custom field separator.
	(stf_parse_csv_is_separator): Handle new string customfield separator.
	(stf_parse_csv_cell): Idem.
	(stf_parse_get_colcount): Idem.
	(stf_parse_get_colwidth): Idem.
Morten Welinder's avatar
Morten Welinder committed
510

511 512 513 514 515 516 517 518 519 520 521
2001-06-03  Morten Welinder  <terra@diku.dk>

	* src/func.c (function_add_args): Do arg type checking here.
	(fn_def_new): Not here.
	(function_remove): Free cached arg types.
	(function_add_args): Pre-calculate arg counts and types.
	(function_def_get_full_info_if_needed): Ditto.
	(function_call_with_list): Use pre-calculated arg counts and
 	types.
	(function_add_name_only): Use FUNCTION_NAMEONLY for type.

522 523 524 525 526
2001-06-03  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_compile) : doh!
	(format_compile) : Assign the default conditions.

527
2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
528 529 530 531 532

	* src/stf-parse.c (stf_parse_get_longest_row_width): Fix.

2001-06-03  Almer S. Tigelaar  <almer@gnome.org>

533 534 535 536
 	* src/parse-util.[ch] (row_name): New, converts
 	a row number to a string.
 	(rows_name): Idem, but for a start/end range.
 	(row_name_internal): Utility routine.
Morten Welinder's avatar
Morten Welinder committed
537

538 539 540
 	* src/colrow.c (colrow_string_build): Remove.
 	(colrow_index_list_to_string): Use rows_name
 	and cols_name.
Morten Welinder's avatar
Morten Welinder committed
541

542
 	* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
Morten Welinder's avatar
Morten Welinder committed
543

544 545 546
 	* src/commands.c (cmd_insert_rows): Idem.
 	(cmd_delete_cols): Beautify.
 	(cmd_delete_rows): Beautify and use rows_name.
Morten Welinder's avatar
Morten Welinder committed
547

548
 	* src/eval.c (dump_range_dep): Use row_name.
Morten Welinder's avatar
Morten Welinder committed
549

550 551
 	* src/item-bar.c (get_row_name): Deprecated, remove.
 	(item_bar_draw): Use row_name.
Morten Welinder's avatar
Morten Welinder committed
552

553
 	* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
Morten Welinder's avatar
Morten Welinder committed
554

555
 	* src/item-grid.c (item_grid_draw): Idem.
Morten Welinder's avatar
Morten Welinder committed
556

557 558
 	* src/ranges.c (range_name): Idem.
 	(range_dump): Idem.
Morten Welinder's avatar
Morten Welinder committed
559

560 561 562
 	* src/selection.c (reference_append): Idem.
 	(selection_get_ranges): Idem.
 	(cb_range_to_string): Idem.
Morten Welinder's avatar
Morten Welinder committed
563

564 565
 	* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
 	(vertical_scroll_offset_changed): Idem.
Morten Welinder's avatar
Morten Welinder committed
566

567 568 569
 	* src/value-sheet.c (value_dump): Idem.
 	(encode_cellref): Idem.

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 599 600
2001-06-03  Almer S. Tigelaar  <almer@gnome.org>

	* src/stf-parse.[ch] (stf_cache_options_new): Burn.
	(stf_cache_options_free): Burn.
	(stf_cache_options_set_data): Burn.
	(stf_cache_options_set_range): Burn.
	(stf_cache_options_invalidate): Burn.
	(stf_parse_general_cached): Burn.
	(stf_parse_options_before_modification): Burn.
	(stf_parse_options_after_modification): Burn.
	(stf_parse_options_set_type): Don't set modified.
	(stf_parse_options_set_line_terminator): Idem.
	(stf_parse_options_set_lines_to_parse): Idem.
	(stf_parse_options_set_trim_spaces): Idem.
	(stf_parse_options_csv_set_separators): Idem.
	(stf_parse_options_csv_set_customfieldseparator): Idem.
	(stf_parse_options_csv_set_stringindicator): Idem.
	(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
	(stf_parse_options_csv_set_duplicates): Idem.
	(stf_parse_options_valid): Remove modificationmode.
	(stf_parse_options_new): Idem.
	(trim_spaces_inplace): Make inline.
	(stf_parse_csv_is_separator): Idem and move things around
	a for some more speed.
	(stf_parse_csv_cell): Make inline.
	(stf_parse_fixed_cell): Idem.

	* src/stf.c (stf_read_workbook): Set maximum number of
	lines to parse to infinite.
	(x_selection_to_cell_region): Idem.

601 602 603 604 605 606
2001-06-02  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_value) : ref the colour.
	(format_entry_set_fmt) : new function.
	(format_compile) : parse the conditional values.

607
2001-06-02  Almer S. Tigelaar  <almer@gnome.org>
608 609 610 611 612 613

	* src/sheet.c (sheet_col_row_group_ungroup): Use
	sc_resize not scg_resize.

2001-06-02  Almer S. Tigelaar  <almer@gnome.org>

614 615 616 617
        * src/commands.[ch] (cmd_group_undo): Implement group undo/redo
  	(cmd_group_redo): Idem.
  	(cmd_group_destroy): Idem.
  	(cmd_group): Idem.
Morten Welinder's avatar
Morten Welinder committed
618

619 620 621 622
  	* src/workbook-control-gui.c (cb_data_group): Implement.
  	(cb_data_ungroup): Idem.
  	(group_ungroup_colrow): Utility function to determine if
  	columns or rows need to be grouped/ungrouped.
Morten Welinder's avatar
Morten Welinder committed
623

624 625 626 627 628 629 630
  	* src/sheet.[ch] (sheet_col_row_group_ungroup): New, high level routine
 	for adjusting outlines.
 	(sheet_col_row_fit_gutter): Dynamically adjust gutter size.
 	(cb_outline_level): Callback for the above.
 	(sheet_col_row_can_group): Query if a range of cols/rows
 	can actually group/ungroup.
 	(sheet_col_row_set_outline_level): Deprecated, remove.
Morten Welinder's avatar
Morten Welinder committed
631

632
 	* src/colrow.[ch] (colrow_set_outline): Set outline on a col/row.
Morten Welinder's avatar
Morten Welinder committed
633

634 635 636
  	* src/GNOME_Gnumeric.xml: DataOutlineUnGroup change to
  	DataOutlineUngroup.

637 638 639 640 641 642
2001-06-02  Jody Goldberg <jgoldberg@home.com>

	* src/main.c (handle_paint_events) : be consistent and don't block.

	* src/io-context.c (io_progress_update) : avoid an infinite loop.

Jody Goldberg's avatar
Jody Goldberg committed
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661
2001-06-02  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_compile) : rewrite, not quite done.

	* src/commands.c (cmd_set_text_undo) : queue a recalc.
	(cmd_clear_redo) : ditto.
	* src/corba-sheet.c (Sheet_clear_region) : ditto.
	(Sheet_clear_region_content) : ditto.
	* src/gui-clipboard.c (x_selection_handler) : ditto.
	* src/sheet-merge.c (sheet_merge_add) : ditto.

	* src/eval.c : switch the depend lists to be singly linked.
	(dep_slist_filter_sheet) : convenience routine.
	(dependent_unqueue_sheet) : Used here.
	(dependent_unlink_sheet) : and here.

	* src/workbook-control-gui.c (display_formulas) :  convert the single
	  lists.

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
2001-06-01  Zbigniew Chyla  <cyba@gnome.pl>

	Support for reporting i/o progress via IOContext.

	* src/command-context-priv.h (struct CommandContextClass): Added
	progress_message_set virtual.

	* src/command-context.[ch] (gnumeric_progress_message_set): New.

	* src/io-context-priv.h
	Made IOContext a GtkObject.
	(enum GnumProgressHelperType, struct GnumProgressHelper): New.

	* src/io-context.[ch]
	Made IOContext a GtkObject.
	(io_progress_update, io_progress_message,
	file_io_progress_set, file_io_progress_update,
	memory_io_progress_set, memory_io_progress_update,
	count_io_progress_set, count_io_progress_update,
	io_progress_unset): New functions.
	(gnumeric_io_context_free): Removed, use gtk_object_destroy instead.

	* src/workbook-control-gui.c (wbcg_progress_message_set): New,
	implementation of CommandContext virtual.

	* src/workbook-view.c
	(wb_view_save_as, wb_view_save, wb_view_open_custom):
	s/gnumeric_io_context_free/gtk_object_destroy

	* src/xml-io.h
	(struct _XmlParseContext): New members (io_context, element_counter) for
	progress reporting.

	* src/xml-io.c
	(xml_read_styles): Update i/o progress every N_ELEMENTS_BETWEEN_UPDATES
	styles.
	(xml_sheet_read): Ditto for cells.
	(xml_get_n_children, xml_read_sheet_n_elements,
	xml_read_workbook_n_elements): Internal functions, calculating the
	number of "elements" (styles and cells) in workbook.
	(xml_workbook_read): Set up io progress to "Processing XML tree" stage.
	(gnumeric_xml_read_workbook): Load the file into an XML tree using the
	Push mode and update i/o progress regularly.

	* src/plugin-util.c
	#include <libgnome/libgnome.h> instead of <gnome.h>.

709 710 711 712 713 714 715 716 717 718 719 720 721 722 723
2001-05-31  Jody Goldberg <jgoldberg@home.com>

	* src/solver-lp.c : Use cell_eval in place of cell_eval_content.

	* src/eval.c (cb_range_hash_invalidate) : disconnect the list from the
	  dep record while removing its contents.  We don't want to modify the
	  list while we are walking it.  This is also an optimization in that
	  we don't need to modify the list.
	(cb_single_hash_invalidate) : ditto.
	(depsingle_dtor) : Ensure that the list has already been cleared.
	(deprange_dtor) : ditto.
	(dependent_unlink) : short circuit if we are destroying.

	* src/sheet.c (sheet_destroy) : Clear the controls first.

724 725
2001-05-31  Karl Eichwalder  <ke@suse.de>

Karl Eichwalder's avatar
Karl Eichwalder committed
726 727
	* src/GNOME_Gnumeric.xml: Fix 2 typos.

728 729 730
	* configure.in: Write gnome.desktop.in.
	* .cvsignore: Add gnome.desktop.in.

731 732 733 734 735
2001-05-31  Zbigniew Chyla  <cyba@gnome.pl>

	* workbook-view (wb_view_open_custom): Handle opener errors without
	crashing.

736 737
2001-05-30  Jody Goldberg <jgoldberg@home.com>

738
	* src/value.c (value_error_set_pos) : change name from
739 740 741 742 743 744 745 746 747
	  value_new_error_err since we don't actually new anything.

	* src/position.c (eval_pos_init_cellref) : delete broken crap.

	* src/func.c (cb_iterate_cellrange) : duplicate error here.
	(function_iterate_argument_values) : duplicate the non-terminate
	  error here.
	* src/collect.c (collect_floats) : not here.

748 749 750 751 752 753 754 755 756 757 758 759 760
2001-05-30  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui-priv.h: New file. Implementation details
	for SheetControlGUI and methods directly accessible from the GUI
	layer.

	* src/Makefile.am: Add sheet-control-gui-priv.h

	* src/sheet-control-gui.h: Move struct _SheetControlGUI to
	sheet-control-gui-priv.h. Remove declarations of methods which
	have been made virtual.

	* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
Morten Welinder's avatar
Morten Welinder committed
761
	of sheet-control-gui.h.
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789
	Casts and temp variables because:
	- virtual scg methods now take a SheetControl parameter.
        - sheet member now lives in SheetControl.
	Make following methods static - externally available only as
	virtual SheetControl method: scg_redraw_all,
	scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
	scg_resize, scg_unant, scg_ant, scg_cursor_bound,
	scg_compute_visible_region, scg_make_cell_visible. Initialize
	class object with these as virtual methods together with
	scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
	and scg_mode_edit.  Rename context_menu_hander (sic!) to
	context_menu_handler.

	*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
	(sc_destroy): Comment out unused variable.
	(sheet_control_init_state): Rename to sc_init_state.
	(sc_sheet): New accessor - returns sheet attribute.
	(sc_invalidate_sheet): New function - sets sheet attribute to
	NULL.
	(resize, set_zoom_factor, redraw_all, redraw_cell_region,
	redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
	scrollbar_config, mode_edit, compute_visible_region,
	make_cell_visible, cursor_bound): New virtual methods.

	* src/sheet-control.h: Declare new methods in sheet-control.c

	* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
	instead of scg methods.
Morten Welinder's avatar
Morten Welinder committed
790

791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824
	* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
	(sheet_ant): Use sc_ant instead of scg_ant.
	(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
	(sheet_redraw_all): Use sc_redraw_headers instead of
	scg_redraw_headers.
	(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
	(sheet_detach_scg): Rename to sheet_detach_control. Change
	parameter from SheetControlGUI to SheetControl. Use sc_sheet and
	sc_invalidate_sheet instead of direct attribute access.
	(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
	scg_set_zoom_factor.
	(sheet_update_only_grid): Use sc_compute_visible_region instead of
	scg_compute_visible_region.
	(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
	(sheet_redraw_cell_region, sheet_redraw_partial_row,
	sheet_redraw_cell): Use sc_redraw_cell_region instead of
	scg_redraw_cell_region.
	(sheet_make_cell_visible): Use sc_make_cell_visible instead of
	scg_make_cell_visible.
	(sheet_cursor_set): Use sc_cursor_bound instead of
	scg_cursor_bound.
	(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
	scg_update_cursor_pos.
	(sheet_scrollbar_config): Use sc_scrollbar_config instead of
	scg_scrollbar_config.
	(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
	and sc_redraw_all instead of scg_adjust_preferences, scg_resize
	and scg_redraw_all.

	* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
	instead of SheetControlGUIs.

	* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
	of scg_mode_edit.
Morten Welinder's avatar
Morten Welinder committed
825

826 827 828 829 830 831
	* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
	of sheet-control-gui.h.

	* src/sheet-object-graphic.c: Ditto.

	* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
Morten Welinder's avatar
Morten Welinder committed
832
	of sheet-control-gui.h.
833 834 835 836 837
	Casts and temp variables because:
	- virtual scg methods now take a SheetControl parameter.
        - sheet now lives in SheetControl.

	* src/item-bar.c: Ditto.
Morten Welinder's avatar
Morten Welinder committed
838

839
	* src/item-cursor.c: Ditto.
Morten Welinder's avatar
Morten Welinder committed
840

841
	* src/item-edit.c: Ditto.
Morten Welinder's avatar
Morten Welinder committed
842

843 844 845 846 847 848 849 850 851 852 853 854 855
	* src/item-grid.c: Ditto.

	* src/sheet-object-cell-comment.c: Ditto.

	* src/sheet-object-cell-container.c: Ditto.

	* src/sheet-object-item.c: Ditto.

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

	* src/workbook-control-gui.c: Ditto.

	* src/workbook-object-toolbar.c: Ditto, but don't include
Morten Welinder's avatar
Morten Welinder committed
856
	sheet-control-gui-priv.h
857 858 859 860

	* src/sheet-object.c (sheet_object_realize): Cast control to
	SheetControlGUI.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
861 862 863 864
2001-05-30  Zbigniew Chyla  <cyba@gnome.pl>

	* src/stf.c (stf_init): Register as importer.

865 866 867 868 869 870 871 872 873 874 875
2001-05-29  Zbigniew Chyla  <cyba@gnome.pl>

	* src/file.h
	(typedef enum FileProbeLevel) New.
	(typedef GnumFileOpenerProbeFunc, gnum_file_opener_probe): Added
	FileProbeLevel argument.
	(GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
	GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
	Macros moved to file-priv.h.

	* src/file-priv.h
Morten Welinder's avatar
Morten Welinder committed
876
	(struct _GnumFileOpenerClass::probe):
877 878 879 880 881
	(GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
	GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
	Macros moved from file.h.

	* src/file.c
Morten Welinder's avatar
Morten Welinder committed
882
	(gnum_file_opener_probe_real, gnum_file_opener_probe):
883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903
	Added FileProbeLevel argument.

	* src/workbook-view.c
	(wb_view_open_custom): Iterate over FileProbeLevel values when probing
	the file (passing current value to probe function).

	* src/xml-io.c
	(xml_probe): Added FileProbeLevel argument, testing only file name if
	probe level == FILE_PROBE_FILE_NAME.

	* src/plugin-service.c (gnum_plugin_file_opener_probe):
	Use file_patterns only if probe level == FILE_PROBE_FILE_NAME, otherwise
	call module's probe function.

	* src/bonobo-io.c (gnumeric_bonobo_io_probe),
	src/plugin-service.h (struct _PluginServiceFileOpener),
	src/plugin-loader-module.c
	(gnumeric_plugin_loader_module_func_file_probe,
	struct ServiceLoaderDataFileOpener::module_func_file_probe):
	Added FileProbeLevel argument.

904 905 906 907 908 909 910 911
2001-05-27  Jody Goldberg <jgoldberg@home.com>
	From Juan Pablo Mendoza <pablo_juan@yahoo.com>

	* gnumeric-util.h (gnumeric_filter_modifiers): New macro.

	* workbook-control-gui.c (wb_edit_key_pressed): Use it.
	* gnumeric-sheet.c (gnumeric_filter_modifiers): Ditto.

912 913 914
	* sheet.c (sheet_name_quote): Escape \ and add more chars to
	  to quote_chr.

915 916 917 918 919 920
2001-05-27  Jody Goldberg <jgoldberg@home.com>

	* src/eval.c (sheet_region_queue_recalc) : Queue the dependents in the
	  region not just those that depend on it.
	(cell_queue_recalc) : no need to queue non expression cells.

921
2001-05-27  Nathan Cullen <furyu@fuse.net>
Morten Welinder's avatar
Morten Welinder committed
922

923 924 925 926
 	* src/history.c (history_menu_insert_separator): Fixed keyboard
 	navigation problem in non-bonobo build with separator for recently
 	opened files.  There was an "invisible" separator item so you needed
 	to arrow down twice to get from "Print Preview" to the first file.
Morten Welinder's avatar
Morten Welinder committed
927

928 929
2001-05-27  Jody Goldberg <jgoldberg@home.com>

930 931 932 933 934 935 936 937 938
	* src/expr.c (eval_expr_real) : recurse for arrays too.
	(expr_tree_array_corner) : rename from expr_tree_array_formula_corner,
	  and return the corner, not the expression in the corner.

	* src/eval.c (cb_range_hash_invalidate) : invalidate and free things
	  in place.
	(cb_single_hash_invalidate) : ditto.
	(do_deps_destroy) : simplify.

939 940 941
	* src/workbook-control-gui.c (wbcg_sheet_rename) : Use the table not
	  the container.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
942 943 944 945
2001-05-27  Zbigniew Chyla  <cybs@gnome.pl>

	* src/plugin-service.c (parse_format_level_str): Fixed typo.

946 947 948 949 950 951 952
2001-05-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (colrow_move) : no need to queue recalc here.
	(cb_sheet_cell_copy) : Actually copy the array values.

	* src/cell.c (cell_relocate) : Just relink, no need to queue a recalc.
	(cell_set_array_formula) : Remove the ability to queue the recalc at
953
	  this level.  Just link the formulas in.  Reorder the arguments
954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972
	  to match the standard approach.

	* src/eval.c (workbook_recalc_all) : Used here.
	(workbook_queue_all_recalc) : new function.

	* src/xml-io.c (xml_workbook_read) : Queue everything for recalc.
	(xml_cell_set_array_expr) : no need to queue a recalc here.

	* src/commands.c (cmd_autofill_redo) : queue the recalc here.
	(cmd_area_set_text_redo) : we need to manually queue a recalc for
	  arrays now.

	* src/sheet.c (sheet_cell_set_text) : we need to queue a recalc for
	  both expressions and values now.
	(sheet_range_set_text) : queue recalcs for the region as a block.

	* src/graph-vector.c (graph_vector_new) : Just use dependent_link if
	  we don't want a recalc.

973 974 975 976 977 978 979
2001-05-27  Karl Eichwalder  <ke@suse.de>

	* Run xml-i18n-prepare:
	* gnumeric.desktop.in: Remove file.
	* gnumeric.desktop.in.in: New file.
	* Makefile.am: Adjust it for gnumeric.desktop.in.in.

Jody Goldberg's avatar
Jody Goldberg committed
980 981 982 983
2001-05-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.h : typo.

984 985 986 987 988 989 990 991 992 993 994
2001-05-26  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.[ch]: Derive from SheetControl rather than
	GtkObject.

	* src/gnumeric.h: Add incomplete def of SheetControl.

	* src/Makefile.am: Add sheet-control.c, sheet-control.h,
	sheet-control-priv.h

	* src/sheet-control.c: New file. Stub base class for
Morten Welinder's avatar
Morten Welinder committed
995
	SheetControlGUI.
996 997

	* src/sheet-control.h: Strip down even more from existing stub in
Morten Welinder's avatar
Morten Welinder committed
998
	CVS.
999 1000 1001 1002

	* src/sheet-control-priv.h: New file. Private header for
	SheetControl.

1003 1004 1005 1006
2001-05-26  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : suppress minus for "\(" to match "("

Karl Eichwalder's avatar
Karl Eichwalder committed
1007 1008 1009 1010
2001-05-26  Karl Eichwalder  <ke@suse.de>

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

1011 1012 1013 1014 1015 1016 1017 1018
2001-05-26  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_eval_content) : Use the iteration prefs.

	* src/workbook.c (workbook_iteration_tolerance) : new function.
	(workbook_iteration_enabled) : ditto.
	(workbook_iteration_max_number) : ditto.

1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037
2001-05-26  Zbigniew Chyla  <cyba@gnome.pl>

	* src/gui-file.c (fill_save_menu): If recently used saver has been
	removed, use default saver, not the first one.

	* src/file.c
	(unregister_file_opener, unregister_file_opener_as_importer): Fixed
	leaks.
	(unregister_file_saver): Fixed stupid bug (and leaks).

	* src/plugin-service.h (struct _PluginServiceFileSaver): Added
	default_saver_priority field.

	* src/plugin-service.c
	(plugin_service_file_saver_read): Read "default_saver_priority"
	attribute.
	(plugin_service_file_saver_initialize): Register as default saver if
	default_saver_priority is non-negative.

1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048
2001-05-25  Jody Goldberg <jgoldberg@home.com>

	* src/value.c (value_diff) : new routine.  This looks ugly.  We should
	  be able to avoid replicating this code.

	* src/cell.c (cell_eval_content) : support iteration.

	* src/format.c (render_number) : make the buffer big enough.
	  The assumtion that mantissa and exp are both maxed should leave
	  enough room for thousand separators.

1049 1050 1051 1052 1053
2001-05-25  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (wbcg_sheet_add): Bugfix: Connect
	button_press_event handler with scg->table as data instead of scg.

1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064
2001-05-25  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (wb_view_open_custom) : fix logic to avoid
	  adding a bogus view.

2001-05-24  Jody Goldberg <jgoldberg@home.com>

	* src/eval.c (workbook_recalc) : don't clear the flag until after the
	  calc is complete in case there is a cycle.
	(cell_eval) : ditto.

1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
2001-05-24  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (sheet_to_page_index): Rename view to
	scg. Retrieve it from object data on table.
	(sheet_to_page_index):
	(wb_control_gui_focus_cur_sheet, cb_sheet_label_button_press,
	cb_notebook_switch_page): Retrieve scg from object data on table.
	(wbcg_sheet_add): Show and insert in notebook scg->table. scg no
	longer is a GtkTable, it has one.

	* src/sheet-control-gui.c (scg_parent_class): Change to
	GtkObjectClass.
	(cb_table_destroy): New function. Finish all table and canvas
	dependent activities and set scg->table, scg->canvas to NULL.
	(scg_init): Don't create table here.
	(scg_construct): ..but here. Change terminology. Old: outer_table,
	table. New: scg->table, inner_table. Add scg to scg->table as
	object data. Add a destroy callback to scg->table.
	(scg_destroy): Move parts to cb_table_destroy. Unref table if not
	NULL.
	(scg_class_init, GNUMERIC_MAKE_TYPE): Inherit from GtkObject
	instead of GtkTable.
	(scg_cursor_visible): Be prepared for scg->canvas being NULL

	* src/sheet-control-gui.h (struct _SheetControlGUI,
	SheetControlGUIClass): Inherit from GtkObject instead of GtkTable.

1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104
2001-05-24  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_enable_recursive_dirty) : new function.
	* src/workbook-private.c (workbook_private_init) : Init
	  recursive_dirty_enabled.
	* src/sheet.c (sheet_cell_remove) : Use recursive_dirty_enabled.
	* src/eval.c (dependent_changed) : ditto.

	* src/workbook-view.c (wb_view_open_custom) : while loading disable
	  recursive depend dirtying.  We are loading everything it is up to
	  the loader to handle the queuing correctly (either queuing all, or
	  just those necessary)

1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
2001-05-23  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_destroy) : optionally queue the dependents
	  of this cell for recalc.

2001-05-23  Jody Goldberg <jgoldberg@home.com>

	* src/eval.c (dependent_changed) : Use cb_dependent_queue_recalc to
	  recursively queue the depends.
	Eg A1 : =sum(b1:b2)
	   B1 : =3
	if we do not recurse the assignment of '=3' would queue B1 but not A1

Jody Goldberg's avatar
Jody Goldberg committed
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150
2001-05-22  Jody Goldberg <jgoldberg@home.com>

	* gnumeric.spec.in : bump version of libole2
	* README : ditto.
	* configure.in : ditto.

2001-05-19  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_is_pristine) : no need to check the recalc
	  queue.  If there are no dependents there is nothing to put on the
	  eval queue.

	* src/func.c (cb_iterate_cellrange) : rename from
	  iterate_cellrange_callback remove 'generation' mechanism.

	* src/cell.c (cell_cleanout) : Clear both recalc flags,
	  in_queue and needs
	(cell_copy) : ditto.
	(cell_eval_content) : No need to render the value.  assign_value
	  already does it.
	(cell_content_changed) : deleted.

	* src/Makefile.am : merge dependent.[ch] into eval.[ch]

2001-05-18  Jody Goldberg <jgoldberg@home.com>

	* src/eval.c : reorg and merged with dependent.[ch]

	* src/sheet.c (sheet_cell_set_text) :
	  s/cell_content_changed/cell_queue_recalc/
	(sheet_cell_set_expr) : ditto.
	(sheet_cell_set_value) : ditto.
	(colrow_move) : ditto.
Morten Welinder's avatar
Morten Welinder committed
1151
	(sheet_destroy_contents) :
Jody Goldberg's avatar
Jody Goldberg committed
1152 1153 1154 1155 1156 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
	  s/dependent_unqueue_recalc_sheet/dependent_unqueue_sheet/

	* src/cmd-edit.c (cmd_select_cur_row) : Make behavior match XL.
	(cmd_select_cur_col) : Make behavior match XL.

	* src/format.c (render_number) : avoid temporaries.
	(do_render_number) : ditto.

2001-05-17  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (eval_range) : delete.
	(eval_expr_real) : Use workbook_foreach_cell_in_range rather than
	  range_eval.  Remove 'generation' mechanism.
	(cb_range_eval) : a simple pass through

	* src/eval.c (sheet_region_recalc_deps) : rename from
	  sheet_recalc_dependencies and merge in sheet_region_get_deps.
	  Use the new foreach style interfaces.
	(cb_single_recalc_all_depends) : rename from cb_single_get_all_depends
	  and simplify.
	(cb_range_recalc_all_depends) : rename from cb_sheet_get_all_depends and simplify.
	(cb_dependent_queue_recalc) : new wrapper.
	(cb_region_contained_depend) : renamed from search_range_deps and simplify.
	(cell_foreach_dep) : rename from cell_get_dependencies and switch to
	  an in place api rather than creating a list.
	(cell_foreach_single_dep) : switch to in place api
	(cell_foreach_range_dep) : ditto.
	(search_cell_deps) : ditto.
	(cell_recalc_deps) : ditto.
	(cell_eval) : ditto.
	(cb_generation_queue) : new utility.

	* src/dependent.c (dependent_list_filter) : delete.

	* src/cmd-edit.c (cb_collect_deps) : new function split from.
	(cmd_select_cur_depends) : here. So that we can use the new depend
	  api.

	* src/sheet.c (sheet_move_range) : use sheet_region_recalc_deps.
	(sheet_{insert,delete}_{cols,rows}) : ditto.
	(sheet_cell_remove_simple) : Use in place depend interface.

	* src/cell.c (cell_content_changed) : Use in place depend interface.
	* src/clipboard.c (clipboard_paste_region) : ditto.
	* src/commands.c (cmd_area_set_text_redo) : ditto.
	(cmd_autofill_redo) : ditto.

2001-05-21  Jody Goldberg <jgoldberg@home.com>

	* Makefile.am : remove gnorba and modernize a bit.

1203 1204 1205 1206 1207 1208 1209 1210 1211
2001-05-23  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin-service.c
	(struct _InputFilePattern): Added "case_sensitive" field.
	(gnum_plugin_file_opener_probe): Support "case_sensitive" attribute when
	checking if file name matches the pattern.
	(plugin_service_file_opener_read): Support "case_sensitive" attribute.
	Now matching is case _insensitive_ by default.

1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230
2001-05-23  Zbigniew Chyla  <cyba@gnome.pl>

	* src/bonobo-io.c, src/clipboard.c, src/file.c, src/plugin.c,
	src/sheet-object.c, src/stf.c, src/workbook.c:
	Removed #include "xml-io.h".

	* src/dialogs/dialog-plugin-manager.c (gnumeric_dialog_question_yes_no):
	Function moved ...

	* src/gnumeric-util.[ch]: ... here.

	* src/gui-file.c
	(gui_file_import): Sorting file importers.
	(fill_save_menu): Sorting file savers, function simplified (doesn't use
	file_saver_is_default_format).
	(can_try_save_to): Function simplified, uses
	gnumeric_dialog_question_yes_no from gnumeric-util.h, default answer
	for question about overwriting a file is configurable.

1231 1232 1233 1234 1235 1236 1237
2001-05-22  Almer S. Tigelaar  <almer@gnome.org>

	* src/xml-io.c : Bump XML version number.
	(xml_workbook_write): Write index of sheet names
	at the beginning of the file and always write
	latest version number.

1238 1239 1240 1241 1242
2001-05-22  Jon K Hellan  <hellan@acm.org>

	* src/workbook-edit.c (wbcg_editing_expr): Use renamed function
	gnumeric_expr_entry_rangesel_meaningful.

1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
2001-05-22  Zbigniew Chyla  <cyba@gnome.pl>

	* file.c
	(gnum_file_opener_setup, gnum_file_opener_new, gnum_file_opener_probe,
	gnum_file_opener_open, gnum_file_saver_setup, gnum_file_saver_new,
	gnum_file_saver_save, gnum_file_saver_fix_file_name,
	register_file_opener, register_file_opener_as_importer,
	unregister_file_opener, unregister_file_opener_as_importer,
	register_file_saver, register_file_saver_as_default,
	unregister_file_saver, get_default_file_saver,
	get_file_opener_by_id, get_file_saver_by_id,
	get_file_savers, get_file_openers, get_file_importers):
	Added gtk-doc style documentation.
	(struct _GnumFileOpener, struct _GnumFileOpenerClass,
	struct _GnumFileSaver, struct _GnumFileSaverClass): Removed structs
	already defined in file-priv.h.

	* workbook-view.c
	(wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom):
	Added gtk-doc style documentation.

	* file.h
	(gnum_file_opener_setup, gnum_file_saver_setup): Declarations moved ...

	* file-priv.h: ... here

1269 1270 1271 1272 1273 1274 1275 1276
2001-05-21  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
	Add toolbar_is_sensitive member.

	* src/workbook-control-gui.c (workbook_control_gui_init):
	Initialize wbcg->toolbar_is_sensitive.

Morten Welinder's avatar
Morten Welinder committed
1277
	* src/workbook-edit.c (workbook_edit_toolbars_set_sensitive): Use
1278
	wbcg->toolbar_is_sensitive instead of static is_sensitive.
Morten Welinder's avatar
Morten Welinder committed
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
2001-05-21  Zbigniew Chyla  <cyba@gnome.pl>

	Cleaned up file i/o interface.

	* src/Makefile.am: Added file-priv.h.

	* src/file.[ch]:
	Made GnumFileOpener and GnumFileSaver GtkObjects with virtual probe,
	open and save methods.
	New GnumFileOpener methods: get_id.
	New GnumFileSaver methods: get_id, fix_file_name.
	New functions: register_file_opener, register_file_opener_as_importer,
	unregister_file_opener, unregister_file_opener_as_importer,
	register_file_saver, register_file_saver_as_default,
	unregister_file_saver, get_default_file_saver,
	get_file_opener_by_id, get_file_saver_by_id,
	get_file_savers, get_file_openers, get_file_importers.

	* src/file-priv.h: New file with definitions of structs:
	_GnumFileOpener, _GnumFileOpenerClass, _GnumFileSaver,
	_GnumFileSaverClass.

	* src/workbook.h
	(struct _Workbook): Added file_saver_sig_id field.
	s/FileSaver/GnumFileSaver/
	(workbook_get_file_saver): New accessor function.

	* src/workbook.c
	(cb_saver_destroy_event, workbook_destroy, workbook_set_saveinfo):
	When setting new file_saver, connect to its "destroy" signal and
	set file_saver to NULL in signal handler. Disconnect when changing file
	saver or destroying the workbook.
	(workbook_get_file_saver): New accessor function.
1313 1314 1315 1316
	(workbook_persist_file_load): Use wb_view_open instead of
	workbook_load_from.
	(workbook_persist_file_save): Use wb_view_save_as instead of calling
	gnumeric_xml_write_workbook directly.
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373

	* src/workbook-view.[ch]
	(wb_view_set_attributev): Renamed to wb_view_set_attribute_list and
	simplified.
	(wb_view_save_as, wb_view_save, wb_view_open, wb_view_open_custom): New
	methods (some code moved from file.c).

	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped):
	Use wb_view_open() instead of workbook_try_read()+file_finish_load().

	* src/gui-file.c
	(gui_file_import): Use get_file_importers(). Use
	wb_view_open_custom() instead of file_opener_open() + manual creation
	of wb_view, error checking, etc.
	(is_saver_registered): Removed.
	(saver_activate): Don't check if saver is really registered.
	(file_saver_is_default_format): Use get_default_file_saver() instead
	of strcmp(extension, "gnumeric") hack.
	(do_save_as): Use gnum_file_saver_fix_file_name().
	Adjusted everything to file.h, workbook.h, workbook-control.h.

	* src/gui-file.h (gui_file_import): Signature change, now function
	returns gboolean.

	* src/gutils.[ch] (g_list_index_custom): New function.

	* src/history.c (file_history_cmd), src/main.c (gnumeric_main),
	src/workbook-control-gui.c (cb_file_open): Use wb_view_open()
	instead of workbook_read().

	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
	s/FileSaver/GnumFileSaver/

	* src/plugin-service
	Created GnumPluginFileOpener and GnumPluginFileSaver classes (derived
	from GnumFileOpener and GnumFileSaver respectively). Moved contents of
	plugin_service_file_opener_probe_func,
	plugin_service_file_opener_open_func,
	plugin_service_file_saver_save_func into
	gnum_plugin_file_opener_probe, gnum_plugin_file_opener_open,
	gnum_plugin_file_saver_save methods (slightly modified).
	(plugin_service_file_opener_read): Read "open" and "import" attributes
	of <service> tag.
	(plugin_service_file_opener_initialize,
	plugin_service_file_opener_cleanup): Register/unregister created
	file opener (GnumPluginFileOpener object) as normal opener and/or
	importer depending on "open" and "import" XML attributes.
	(plugin_service_file_opener_initialize,
	plugin_service_file_opener_cleanup): Register/unregister created
	file saver (GnumPluginFileSaver object).

	* src/plugin-service.h
	(struct _PluginServiceFileOpener):
	Added can_open and can_import fields.
	s/FileOpener/GnumFileOpener/
	(struct _PluginServiceFileSaver):
	s/FileSaver/GnumFileSaver/
Morten Welinder's avatar
Morten Welinder committed
1374

1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387
	* src/plugin-loader-module.c
	(struct ServiceLoaderDataFileOpener, struct ServiceLoaderDataFileSaver),
	gnumeric_plugin_loader_module_func_file_probe,
	gnumeric_plugin_loader_module_func_file_open,
	gnumeric_plugin_loader_module_func_file_save):
	s/FileOpener/GnumFileOpener/
	s/FileSaver/GnumFileSaver/

	* src/stf.c
	(stf_read_workbook, stf_write_workbook): Signature change
	(don't return gboolean).
	(stf_init): Adjusted to file i/o interface changes.

1388
	* src/xml-io.[ch]
1389 1390
	(gnumeric_xml_get_opener, xml_probe):
	s/FileOpener/GnumFileOpener/
1391
	(gnumeric_xml_get_saver):
1392 1393 1394 1395 1396
	s/FileSaver/GnumFileSaver/
	(gnumeric_xml_read_workbook, gnumeric_xml_write_workbook): Signature
	change (don't return gboolean).
	(xml_init): Adjusted to file i/o interface changes.

1397 1398 1399 1400 1401 1402 1403 1404 1405
	* src/bonobo-io.c
	(gnumeric_bonobo_read_workbook, gnumeric_bonobo_write_workbook):
	Signature change (don't return gboolean).
	s/FileOpener/GnumFileOpener
	s/FileSaver/GnumFileSaver
	(gnumeric_bonobo_io_probe):
	s/FileOpener/GnumFileOpener
	(gnumeric_bonobo_io_init): Adjusted to file i/o interface changes.

1406 1407 1408 1409 1410
2001-05-20  Chema Celorio  <chema@celorio.com>

	* src/sheet-control-gui.c (set_acetate_coords): make sure the accetate
	honors the direction of the object.

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 1447 1448 1449 1450
2001-05-20  Chema Celorio  <chema@celorio.com>

	* src/sheet-object.c (sheet_object_init): initialize the so->direction
	to _UNKNOWN
	(sheet_object_direction_set): impl.
	(sheet_object_rubber_band_directly): impl a small convenience function
	to get the value of SO_CLASS(so)->rubber_band_directly

	* src/sheet-object-widget.c (sheet_widget_checkbox_construct_with_range):
	add a label argument to also optionaly specify a label
	(sheet_widget_checkbox_clone): when cloning a checkbox, copy it's value
	too
	add a ->label and rename ->entry to ->expresion in CheckboxConfigState
	(cb_checkbox_label_changed): impl.
	(sheet_widget_checkbox_user_config): add an entry for the label of
	the checkbutton
	(sheet_widget_checkbox_set_sheet): call _set_active when setting the
	sheet of a checkbox

	* src/sheet-object-impl.h: add the SheetObjectDirection enums
	add ->direction to SheetObject
	add ->rubber_band_directly to SheetObjectClass

	* src/sheet-object-graphic.c (sheet_object_graphic_read_xml): read
	the object's direction
	(sheet_object_graphic_write_xml): save the direction of the object
	(sheet_object_graphic_class_init): so->direction = TRUE
	(sheet_object_graphic_init): initlalize so->direction

	* src/sheet-control-gui.c (scg_object_move): calculate the new direction
	of the object when moving a handle.
	(scg_object_view_position): the coordinates of the object depend on
	it's ->direction now.

	* src/item-grid.c (cb_obj_create_motion): if we are rubberbanding directly,
	calculate the sheet object direction and position.
	(cb_obj_create_button_release): only set the sheet if we are not rubber_banding_
	direcly. Objects that are rubber banded directly have already been attached to
	a sheet.
	(sheet_object_begin_creation): if we are rubber_banding_direclty the object,
Morten Welinder's avatar
Morten Welinder committed
1451
	attach it to a sheet.
1452 1453 1454 1455 1456

	* src/sheet-object-widget.c (sheet_widget_checkbox_destroy): check if
	the dependent has been linked before unlinking. We might have created
	the object without attaching it to a sheet.

Jody Goldberg's avatar
Jody Goldberg committed
1457 1458 1459 1460 1461
2001-05-21  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : revert
	  my silliness.

1462 1463 1464 1465 1466 1467
2001-05-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (render_number) : avoid temporaries.
	(do_render_number) : ditto.

2001-05-18  Jody Goldberg <jgoldberg@home.com>
Jody Goldberg's avatar
Jody Goldberg committed
1468 1469 1470

	* configure.in : bump version to 0.66.

Jody Goldberg's avatar
Jody Goldberg committed
1471 1472 1473 1474 1475 1476 1477 1478 1479
2001-05-20  Jody Goldberg <jgoldberg@home.com>

	* Release 0.65

2001-05-20  Jody Goldberg <jgoldberg@home.com>

	* configure.in : Remove ja, ko, zh* from ALL_LINGUAS until the po
	  files are fixed.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
1480 1481 1482 1483
2001-05-20  Zbigniew Chyla  <cyba@gnome.pl>

	* src/sheet-object.c (sheet_object_read_xml): Fixed leaks.

1484 1485 1486 1487 1488 1489
2001-05-20  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin.c (plugin_db_init): Last patch changed behaviour from
	"treat every plugin as known" to "treat every plugin as unknown" :-)
	Now it should be really fixed.

1490
2001-05-19  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
1491

1492 1493 1494
 	* src/workbook-edit.c (wbcg_edit_attach_guru):
 	Guard against two anted region on the same sheet.

1495 1496 1497 1498 1499 1500 1501 1502 1503
2001-05-19  Jody Goldberg <jgoldberg@home.com>

	* src/plugin.c (plugin_db_extend_saved_active_plugin_id_list) : Merge
	  into plugin_db_init.
	(plugin_db_init) : Find the unknown plugins not the known plugins.
	  Remove the list of plugins that default to on.
	  Fix the use of gnome_config.

2001-05-19  Jody Goldberg <jgoldberg@home.com>
1504

1505 1506 1507 1508
	* gnumeric.spec.in : update GAL req.
	* configure.in : ditto.
	* README : update

1509 1510 1511
	* src/GNOME_Gnumeric.xml : Fix the accelerators to use xkeysym names
	  rather than the physical key for slash and space.

1512 1513
	* src/plugin.c (plugin_db_init) : Enable new plugins by default.

1514 1515 1516 1517
2001-05-17  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (cell_tile_apply_pos) : Add more sanity checking.

1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
2001-05-16  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c (is_pointer_on_division) : Use
	  wbcg_rangesel_possible.
	* src/item-grid.c (item_grid_button_1) :  ditto.
	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : ditto.
	* src/sheet-control-gui.c (scg_select_all) : ditto.
	(scg_colrow_select) : ditto.
	(scg_construct) : ensure we start with focus.
	(scg_rangesel_possible) : move from here.

	* src/workbook-control-gui.c (wbcg_rangesel_possible) : to here.
	(cb_notebook_switch_page) : expand the logic slightly to correct gurus.

	* src/workbook-edit.c (wbcg_edit_finish) : always check for rangesel.

	* src/parse-util.c (gnumeric_char_start_expr_p) : improve handling of
	  NULL.

1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549
2001-05-16  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-edit.c (wbcg_edit_finish) : stop the current rangesel,
	  not rangesel on the current display sheet.

	* src/workbook-control-gui.c (cb_notebook_switch_page) : simplify and
	  use the new wbcg::rangesel to make things easier.
	(workbook_control_gui_init) : init the new flag.

	* src/sheet-control-gui.c (scg_rangesel_start) : store the scg doing
	  the rangesel in the wbcg.
	(scg_rangesel_stop) : clear it here.

1550 1551 1552 1553 1554 1555 1556 1557 1558 1559
2001-05-15  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_stop_range_selection) : delete.

	* src/commands.c (cmd_paste_copy) : call splits_region to check for
	  partial arrays and merged regions.

	* src/sheet.c (cb_set_cell_content) : Use the bounding box.
	(sheet_range_set_text) : set the bounding box.

1560
2001-05-15  Jon K Hellan  <hellan@acm.org>
Morten Welinder's avatar
Morten Welinder committed
1561

1562 1563
 	* src/workbook-control.h: Define menu state enums for print setup,
 	search/replace and define names and a define for the lot.
Morten Welinder's avatar
Morten Welinder committed
1564 1565

 	* src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
1566 1567
 	Add menu_item_print_setup, menu_item_search_replace,
 	menu_item_define_name members.
Morten Welinder's avatar
Morten Welinder committed
1568

1569 1570 1571 1572
 	* src/workbook-edit.c (workbook_edit_attach_guru,
 	workbook_edit_detach_guru): Update Update print setup,
 	search/replace and define names sensitivity according to whether
 	or not we have guru.
Morten Welinder's avatar
Morten Welinder committed
1573

1574 1575
 	* src/workbook-control-gui.c (wbcg_menu_state_update): Ditto. This
 	is where it's actually implemented.
Morten Welinder's avatar
Morten Welinder committed
1576

1577 1578 1579 1580 1581 1582
2001-05-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/sheet-control-gui.c (vertical_scroll_offset_changed): Sync
	for adjustment to scrollbars.
	(horizontal_scroll_offset_changed): Idem.

1583 1584
2001-05-14  Jody Goldberg <jgoldberg@home.com>

1585 1586 1587 1588 1589
	* src/sheet-control-gui.c (vertical_scroll_offset_changed) : reinstate
	  this and optionally support delayed scrolling.
	(horizontal_scroll_offset_changed) : ditto.
	(scg_construct) : reinstate.

1590 1591 1592
	* src/expr.c (cellref_boundingbox) : new function.
	(expr_tree_boundingbox) : implement.

1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609
2001-05-14  Almer S. Tigelaar  <almer@gnome.org>

	* src/colrow.c (rows_height_update): Add shrink flag.
	(cb_autofit_height_no_shrink): Callback function for new
	autofit without shrinking functionality.

	* src/commands.c (cmd_paste_cut_redo): Adjust for change
	to rows_height_update.
	(cmd_paste_copy_undo): Idem.
	(cmd_autoformat_undo): Idem.
	(cmd_format_undo): Idem.

	* src/clipboard.c (clipboard_paste_region): Idem.

	* src/sheet.c (sheet_clear_region): Idem.
	(sheet_apply_style): Idem.

1610 1611 1612 1613 1614 1615 1616 1617 1618
2001-05-14  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c (cmd_paste_copy_impl): New, contains
	what was previously in cmd_paste_copy_undo.
	(cmd_paste_copy_undo): Call upon cmd_paste_copy_impl.
	(cmd_paste_copy_redo): Idem.
	(cmd_paste_copy): Remove initialization of me->is_undo flag,
	the flag has been burned.

1619 1620 1621
2001-05-14  Almer S. Tigelaar  <almer@gnome.org>

	* configure.in: Bump GAL version requirement to 0.7.99.5
Morten Welinder's avatar
Morten Welinder committed
1622

1623 1624 1625 1626 1627 1628 1629 1630
  	* src/workbook-format-toolbar.c (cb_back_color_changed): Add
  	by_user flag handling and sync the combo's on all other views
 	if the color changes.
  	(cb_fore_color_changed): Idem.
  	(workbook_create_format_toolbar): Pass workbook view's to
  	color_group_fetch and sync the colors of the back and fore combo's
 	with the other views on creation.

1631 1632 1633
2001-05-14  Miguel de Icaza  <miguel@ximian.com>

	* src/sheet-control-gui.c: Removed support routines that used the
Morten Welinder's avatar
Morten Welinder committed
1634
	Excel-like toolbar.  I got fed up with it.
1635 1636 1637 1638 1639
	(scg_construct): Use regular Gtk scrollbars.  Connect to value
	changed to reflect the state of the scrollbar on the spreadsheet
	inmediately instead of doing the broken Excel behaviour.
	That is one feature I cloned that was totally idiotic.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1640 1641 1642 1643 1644
2001-05-13  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control-gui.c (wbcg_error_splits_array):
	Resolve warning.

1645
2001-05-13  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
1646

1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657
 	* src/colrow.c (colrow_save_sizes): Use float.
 	(colrow_restore_sizes): Use float.
 	(colrow_restore_sizes_group): Walk the selections
 	in parallel with the saved_sizes. Now this will
 	actually work for variabele size multiple selections.

	* src/commands.c (cmd_paste_copy_undo): Use the new
	is_undo flag. We need this to properly set and restore
	the row heights.
	(cmd_paste_copy_redo): Set is_undo to false.
	(cmd_paste_copy): Init is_undo flag.
1658 1659 1660

	* src/commands.c (cmd_resize_colrow): Correct descriptor
	for autofitting.
Morten Welinder's avatar
Morten Welinder committed
1661

1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673
2001-05-13  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_paste_region) : Use the new CLEAR_NORESPAN
	  flag.  It is premature to respan the content of surrounding cells.
	  That should only happen AFTER the new content goes in.

	* src/sheet.c (sheet_cell_calc_span) : check for spans into this cell
	  even if this cell is a merged cell.
	(sheet_clear_region) : Make the respan conditional on a new flag.

	* src/workbook-control-gui.c (cb_change_zoom) : Always update the zoom
	  combo in case the entry does not match what was used.
1674

1675 1676
	* src/commands.c (cmd_clear_selection) : only print warning once.
	(cmd_clear_undo) : There is no undo for pasting comments.
1677 1678 1679
	(cmd_paste_copy) : doh! We can not print the name of the target range,
	  it is out of bounds!
	(cmd_paste_cut) : ditto.
1680

1681 1682 1683
	* src/item-grid.c (item_grid_draw) : If everything is hidden we can
	  get into odd states.

1684 1685 1686
	* src/expr.c (eval_expr_real) : New peek code generated some spurious
	  errors when concatenating blanks.

1687 1688 1689 1690 1691
2001-05-12  Jody Goldberg <jgoldberg@home.com>
	From Juan Pablo Mendoza <pablo_juan@yahoo.com>

	* src/workbook-control-gui.c (show_gui) : remove -64 limit.

1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709
2001-05-11  Jody Goldberg <jgoldberg@home.com>

	* src/application.c (application_real_time_auto_expr_recalc) : new
	  function.

	* src/sheet.c (auto_expr_timer_clear) : new function.
	(sheet_update) : toggle the selection_content_changed flag here and
	  use a timer rather than an idle handler.

	* src/workbook-edit.c (wbcg_edit_ctor) : Init the sensitivity timer.

	* src/workbook-control-gui.c (workbook_setup_edit_area) : Use
	  wbcg_edit_ctor.
	(wbcg_destroy) : use wbcg_edit_dtor.

	* src/main.c (gnumeric_main) : setlocale (LC_ALL, NULL) to force
	  initialization of LC_* from the environment.

1710
2001-05-11  Jon K Hellan  <hellan@acm.org>
Morten Welinder's avatar
Morten Welinder committed
1711

1712 1713
 	* src/sheet-control-gui.c (scg_rangesel_changed): Improve handling
 	of merged cells. Freeze expr entry display until final range is found.
Morten Welinder's avatar
Morten Welinder committed
1714

Jody Goldberg's avatar
Jody Goldberg committed
1715 1716
2001-05-10  Jody Goldberg <jgoldberg@home.com>

1717 1718 1719
	* src/workbook.c (workbook_sheet_delete) : Clear the combos as well as
	  the menus.

Jody Goldberg's avatar
Jody Goldberg committed
1720 1721
	* src/workbook-view.c (wb_view_selection_desc) : intelligent naming.

1722 1723 1724 1725 1726
2001-05-10  Morten Welinder  <terra@diku.dk>

	* src/main.c (gnumeric_main): Complain if binary is more than 180
 	days old.

1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737
2001-05-10  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c (cmd_paste_cut_undo): Restore
	row heights after undo.
	(cmd_paste_cut_redo): Backup row heights.
	(cmd_paste_cut_destroy): Destroy saved sizes.
	(cmd_paste_cut): Initialize saved sizes.
	(cmd_paste_copy_undo): Save and restore row heights.
	(cmd_paste_copy_destroy): Destroy saved sizes.
	(cmd_paste_copy): Initialize saved sizes.

1738 1739 1740 1741 1742 1743 1744 1745 1746 1747
2001-05-09  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_read_selection_info) : typo.  Use the child not
	  the parent node.
	(xml_write_selection_info) : Save the real position.

	* src/sheet.c (sheet_new_scg) : set cursor bound, not the details.
	(sheet_cursor_set) : add some sanity checks.
	(sheet_clone_selection) : use the real edit_pos.

Jody Goldberg's avatar
Jody Goldberg committed
1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765
2001-05-09  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (cb_move_cursor) : typo.

	* src/cmd-edit.c (cmd_shift_cols) : correct bound if shifting right.
	(cmd_shift_rows) : correct bound if shifting down.

	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : If the
	  first == last then it is likely we are uninitialized and we can
	  start the search from the first the target may be contained in the
	  current region without scrolling.

	* src/sheet-control-gui.c (scg_construct) : resize is now called when
	  attached and the zoom scg_set_zoom_factor is set.
	(scg_set_zoom_factor) : resize.

	* src/workbook-control.c (workbook_control_init_state) : cut-n-paste-o.

1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 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
2001-05-08  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_set_internal) : split this out into.
	* src/sheet-merge.c (sheet_merge_find_container) : here.
	* src/sheet-control-gui.c (scg_rangesel_changed) : and here.

2001-05-08  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_read_selection_info) : Use sheet_set_edit_pos.

	* src/selection.c (sheet_selection_extend) : merge into
	  scg_cursor_extend.

	* src/sheet-control-gui.c (scg_cursor_move_to) : rename from
	  scg_cursor_move.
	(scg_cursor_extend) : merge scg_cursor_extend_[hv]
	(scg_cursor_move) : merge scg_cursor_move_[hv]
	(scg_rangesel_extend) : merge scg_rangesel_extend_[hv]
	(scg_rangesel_move) : merge scg_rangesel_move_[hv]
	(scg_rangesel_start) : cleanup.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : fix handling
	  of Home. Simplify the function pointers for move vs extend by
	  merging horizontal and vertical versions.

2001-05-08  Jody Goldberg <jgoldberg@home.com>

	s/scg_stop_range_selection/scg_rangesel_stop/

	s/scg_set_cursor_bounds/scg_cursor_bound/
	s/scg_cursor_vertical_extend/scg_cursor_extend_v/
	s/scg_cursor_horizontal_extend/scg_cursor_extend_h/
	s/scg_cursor_vertical_move/scg_cursor_move_v/
	s/scg_cursor_horizontal_move/scg_cursor_move_h/
	s/scg_cursor_vertical_extend/scg_rangesel_extend_v/
	s/scg_cursor_horizontal_extend/scg_rangesel_extend_h/
	s/scg_cursor_vertical_move/scg_rangesel_move_v/
	s/scg_cursor_horizontal_move/scg_rangesel_move_h/

	* src/sheet-control-gui.[ch] : Move the rangesel info from
	  gnumeric-sheet into here in preparation for panes.
	(scg_rangesel_extend_v) : merge content from
	  gnumeric-sheet equivalent.
	(scg_rangesel_extend_h) : ditto.
	(scg_rangesel_move_v) : ditto.
	(scg_rangesel_move_h) : ditto.
	(scg_rangesel_start) : ditto.
	(scg_rangesel_stop) : ditto.
	(start_range_selection) : moved from gnumeric-sheet.
	(scg_rangesel_possible) : renamed from
	    gnumeric_sheet_can_select_expr_range.
	(scg_rangesel_changed) : renamed from scg_range_selection_changed
	  and make this the point that rationalizes the cursor points.
	(scg_cursor_bound) : renamed from scg_set_cursor_bounds
	  and make this the point that raionalizes the cursor points.
	(scg_ant) : changes to item_cursor_set_bounds.
	(scg_colrow_select) : rangesel support is now in scg.
	(scg_select_all) : ditto.

	* src/workbook-edit.c : cleanup includes.

	* src/item-grid.c (item_grid_event) : rangesel support is now in scg.
	(item_grid_button_1) : ditto.

	* src/item-cursor.h : privatize the structure and class.

	* src/item-cursor.c (cb_autofill_scroll) : changes to
	  item_cursor_set_bounds_visibly signature.
	(cb_move_cursor) : ditto.
	(item_cursor_set_bounds_visibly) : changes to item_cursor_set_bounds
	  signature.
	(item_cursor_selection_event) : ditto.
	(item_cursor_set_bounds) : simplify.

	* src/item-bar.c (is_pointer_on_division) : rangesel support is now in scg.

	* src/gnumeric-sheet.[ch] : move the rangesel logic up into scg.

2001-05-08  Jody Goldberg <jgoldberg@home.com>

	From Juan Pablo Mendoza <pablo_juan@yahoo.com>
	* src/sheet.c: (sheet_clone_colrow_info): Clone col and row
	  default size.

1850 1851 1852 1853 1854 1855 1856
2001-05-08  Almer S. Tigelaar  <almer@gnome.org>

	* src/colrow.c (colrow_restore_sizes_group): Restore
	default from list of savedsizes.
	(colrow_set_sizes): When changing default save as
	list of savedsizes.

1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869
2001-05-08  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control-gui.c (wbcg_menu_state_update): New, combine
	all the enabling/disabling of menu items here including the newly
	added show/hide menu items.
	(wbcg_menu_state_enable_insert): Remove.
	(wbcg_menu_state_paste_special): Remove.
	(workbook_control_gui_ctor_class): Init menu_state_update callback
	and remove paste_special and enable_insert initializations.
	(workbook_control_gui_init): Initialize show/hide menu items.

	* src/workbook-control-gui-priv.h: Add show/hide detail menu items
	and tidy structure lay-out.
Morten Welinder's avatar
Morten Welinder committed
1870

1871 1872 1873
	* src/workbook-control-priv.h: Remove menu_state_enable_insert
	and menu_state_paste_special callbacks and add menu_state_update
	callback.
Morten Welinder's avatar
Morten Welinder committed
1874

1875 1876 1877 1878 1879 1880
	* src/workbook-control.[ch]: Add wb_menu_state_update and
	remove wb_menu_state_paste_special and wb_menu_state_enable_insert.
	(wb_control_sheet_add): call wb_menu_state_update, Remove
	call to menu_state_paste_special.

	* src/sheet-private.h: Add enable_showhide_detail.
Morten Welinder's avatar
Morten Welinder committed
1881

1882 1883
	* src/sheet.c (sheet_new): Initialize menu state booleans.
	(sheet_menu_state_enable_insert): Use wb_control_menu_state_update.
Morten Welinder's avatar
Morten Welinder committed
1884

1885 1886
	* src/workbook-view.c (wb_view_menus_update): Idem and
	remove call to wb_control_menu_state_paste_special.
Morten Welinder's avatar
Morten Welinder committed
1887

1888 1889 1890 1891 1892 1893 1894
	* src/application.c (application_clipboard_clear): Idem.
	(application_clipboard_copy): Idem.
	(application_clipboard_cut): Idem.

	* src/selection.c (sheet_selection_set_internal): Add comment for
	show/hide detail enabling/disabling, something we can't do just yet.

1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912
2001-05-08  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_paste_region) : Add PASTE_IGNORE_COMMENTS.

	* src/commands.c (cmd_merge_cells_undo) : Use it here.

2001-05-07  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-merge.c (sheet_merge_remove) : adjust comments.
	(sheet_merge_add) : ditto.

	* src/sheet-object-cell-comment.c (comment_get_points) : handle merged
	  cells.

	* src/commands.c (cmd_unmerge_cells) : don't queue an undo object if
	  there is nothing to do.
	(cmd_merge_cells) : filter existing ranges too.

1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925
2001-05-07  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_event) : ignore events while editing.

	* src/functions/fn-string.c (gnumeric_value) : s/free/g_free/
	* src/parse-util.c (parse_cell_name_list) : ditto.

	* src/parser.y (gnumeric_expr_parser) : reorganize slightly to improve
	  readability.

	* src/sheet.c (sheet_range_contains_region) : doh!.  forgot to invert
	  logic when I renamed the function.

1926 1927 1928 1929 1930 1931
2001-05-07  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.c (scg_select_all): Handle select button
	both within and outside guru mode.
	(button_select_all): Use scg_select_all.

1932
2001-05-07  Morten Welinder  <terra@diku.dk>
1933 1934 1935 1936 1937 1938

	* src/stf.c (stf_write_workbook): Plug file descriptor leak.
	(stf_write_func): Constify.
	(stf_open_and_read): Protect against missing file size after
 	fstat.

1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
2001-05-07  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-edit.c
	(workbook_edit_toolbars_set_sensitive): New, enable/disable
	all toolbars. Now works for bonobo toolbars too.
	(cb_thaw_ui_toolbar): Use toolbars_set_sensitive.
	(workbook_edit_set_sensitive): Idem.

	* src/GNOME_Gnumeric.xml: Add toolbar commands and set verbs
	on existing toolbars.

1950
2001-05-07  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
1951

1952 1953 1954 1955 1956 1957 1958 1959
    	* src/parser.y (gnumeric_expr_parser): Display which
    	token caused the parse error. And display more detailed
    	error messages for paren matching errors using
    	check_parens.
   	(find_matching_close): Utility function for paren matching.
    	(check_parens): Renamed from find_bracket. Replace bracket
    	with paren everywhere for consistency.
    	(yylex): Kill paren matching here.
Morten Welinder's avatar
Morten Welinder committed
1960

Morten Welinder's avatar
Morten Welinder committed
1961 1962
2001-05-07  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1963 1964
	* src/item-grid.c (drag_start): Plug leak.

Morten Welinder's avatar
Morten Welinder committed
1965 1966
	* src/plugin.c (plugin_info_read): Fix truck-size leak.
	(plugin_file_state_from_string): Plug leak.
Morten Welinder's avatar
Morten Welinder committed
1967

1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075
2001-05-07  Zbigniew Chyla  <cyba@gnome.pl>

	Improved plugin system performance & scalability:
	- reading plugin information from file only if necessary
	  (usually when activating a plugin)
	- some minor optimizations (using hashes instead of lists, etc.)

	* src/Makefile.am
	(GNUMERIC_BASE_SOURCES): Sorted some items.

	* src/gutils.h (g_list_to_vector_custom): New macro.

	* src/plugin.c:
	Made some functions static.
	s/plugin_loader_get_by_id/plugin_loader_get_type_by_id/
	(struct _PluginInfo): Added has_full_info field.
	(get_file_state_as_string, plugin_file_state_as_string,
	plugin_file_state_from_string, plugin_file_state_free,
	plugin_cache_init, plugin_cache_shutdown):
	New functions, support for caching information about plugin ids
	stored in XML files (together with modification dates).
	(plugin_info_read_full_info_if_needed_error_info,
	plugin_info_read_full_info_if_needed): New functions loading missing
	plugin information from file if necessary.
	(plugin_info_read):
	Use existing PluginInfo struct rather than creating a new one,
	take XML file name (not parsed XML tree) as an argument.
	(plugin_info_new_from_xml):
	New function, creates new PluginInfo struct from XML file (using
	plugin_info_read).
	(plugin_info_new_with_id_and_dir_name_only):
	New function, creates new PluginInfo struct with only plugin id and
	directory name given (sets has_full_info to FALSE).
	(plugin_info_get_name, plugin_info_get_description,
	plugin_info_get_extra_info_list, plugin_info_is_active,
	plugin_info_peek_name, plugin_info_peek_description,
	plugin_info_peek_loader_type_str,
	plugin_info_provides_loader_by_type_str,
	plugin_info_is_loaded, plugin_info_peek_services_data,
	plugin_info_get_loader,
	plugin_inc_dependants, plugin_dec_dependants,
	plugin_dependencies_inc_dependants,
	plugin_dependencies_dec_dependants,
	plugin_get_loader_if_needed, activate_plugin, deactivate_plugin,
	plugin_can_deactivate, plugin_info_force_mark_inactive,
	plugin_load_service, plugin_unload_service,
	plugin_load_dependencies):
	Read full plugin information if needed.
	(plugin_info_free):
	Don't try to free most data if has_full_info == FALSE.
	(plugin_info_list_read_for_dir):
	Return one PluginInfo instead of a list, create incomplete
	PluginInfo (using plugin_info_new_with_id_and_dir_name_only) if
	found a directory in plugin_file_state_dir_hash.
	(plugin_info_list_read_for_subdirs_of_dir):
	Don't check if current file is a directory (it'll be detected
	anyway).
	(plugin_db_get_known_plugin_id_list,
	plugin_db_extend_known_plugin_id_list, plugin_db_is_known_plugin,
	plugin_db_get_saved_active_plugin_id_list,
	plugin_db_is_saved_active_plugin):
	Removed.
	(plugin_db_get_available_plugin_info_list): Just return
	available_plugin_info_list, never fail.
	(plugin_db_mark_plugin_for_deactivation,
	plugin_db_is_plugin_marked_for_deactivation, plugins_shutdown):
	Use hash table (plugins_marked_for_deactivation_hash) instead of
	a list.
	(plugin_db_init): Initialize available_plugin_info_list and
	saved_active_plugin_id_list here, use a hash table when detecting
	new plugins.
	(plugins_init): Call plugin_cache_init.
	(plugins_init): Call plugin_cache_shutdown.

	* src/plugin.h
	(plugin_info_read, plugin_info_print, plugin_info_list_read_for_dir,
	plugin_info_list_read_for_subdirs_of_dir,
	plugin_info_list_read_for_subdirs_of_dir_list,
	plugin_info_list_read_for_all_dirs,
	plugin_db_extend_known_plugin_id_list, plugin_db_is_known_plugin,
	plugin_db_extend_saved_active_plugin_id_list,
	plugin_db_is_saved_active_plugin,
	plugin_db_activate_saved_active_plugins):
	Removed (most of them are now static functions).

	* src/plugin-service.c
	(plugin_service_file_saver_initialize): Fixed serious typo.

	* src/dialogs/dialog-plugin-manager.c
	(cb_pm_button_activate_plugin_clicked,
	cb_pm_button_activate_all_clicked,
	cb_pm_button_deactivate_all_clicked,
	update_plugin_manager_view): Adjusted to
	plugin_db_get_available_plugin_info_list signature change.

	* plugins/applix/plugin.xml, plugins/dif/plugin.xml,
	plugins/excel/plugin.xml, plugins/gb/plugin.xml,
	plugins/gda/plugin.xml, plugins/gnome-glossary/plugin.xml,
	plugins/guile/plugin.xml, plugins/html/plugin.xml,
	plugins/lotus-123/plugin.xml, plugins/numtheory/plugin.xml,
	plugins/oleo/plugin.xml, plugins/perl/plugin.xml,
	plugins/plan-perfect/plugin.xml, plugins/py-func/plugin.xml,
	plugins/python/plugin.xml, plugins/python-loader/plugin.xml,
	plugins/sc/plugin.xml, plugins/sylk/plugin.xml,
	plugins/xbase/plugin.xml, plugins/xml_sax/plugin.xml:
	Removed <gnumeric_plugin_group> tags. Now every directory may contain
	only one plugin.

2076 2077 2078 2079 2080
2001-05-07  Almer S. Tigelaar  <almer@gnome.org>

	* src/preview-grid.c (preview_grid_draw_background):
	Call style_border_draw_diag here.

2081 2082
2001-05-06  Jody Goldberg <jgoldberg@home.com>

2083 2084 2085 2086 2087 2088 2089 2090
	* src/style-border.c (style_borders_row_draw) : don't draw the
	  diagonals here.
	(style_border_draw_diag) : split the diag drawing code into here.

	* src/item-grid.c (item_grid_draw_merged_range) : call
	  style_border_draw_diag here.
	(item_grid_draw_background) : and here.

2091 2092 2093 2094 2095 2096 2097 2098 2099 2100
	* src/workbook-format-toolbar.c (cb_merge_cells) : fragment the
	  selection just in case.
	(cb_unmerge_cells) : ditto.  Thanks Juan Pablo.

	* src/commands.c (cmd_unmerge_cells) : remove ugly hack cast.
	(cmd_merge_cells) : ditto.  DO NOT DO THAT !

	* src/sheet.c (sheet_range_splits_region) : implement the optional
	  ignore feature for merged regions too.

2101 2102 2103 2104 2105 2106
2001-05-06  Almer S. Tigelaar  <almer@gnome.org>

	* src/colrow.c (colrow_restore_sizes): Don't free things
	twice.
	(colrow_save_sizes): Initialize run length.

2107 2108 2109
2001-05-06  Almer S. Tigelaar  <almer@gnome.org>

	* src/gnumeric.h: Define ColRowRLESizeList.
Morten Welinder's avatar
Morten Welinder committed
2110

2111 2112 2113
 	* src/commands.c (cmd_ins_del_colrow_*) : For saving
 	and restoring the col/row sizes we now use a
	ColRowRLESizeList instead of a double *.
Morten Welinder's avatar
Morten Welinder committed
2114

2115 2116 2117 2118 2119
 	* src/colrow.[ch] (colrow_save_sizes) : Rebuild to return
 	a Run-Length encoded list of sizes.
 	(colrow_restore_sizes): Idem, but as parameter.
 	(colrow_size_list_destroy): Use colrow_rle_size_list_destroy.
	(colrow_rle_size_list_destroy): Free SavedSize's.
Morten Welinder's avatar
Morten Welinder committed
2120

2121 2122 2123 2124 2125
2001-05-06  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.c (scg_range_selection_changed): Change
	item cursor if expr entry changed the range.

2126 2127 2128 2129 2130 2131 2132
2001-05-06  Jon K Hellan  <hellan@acm.org>

	* src/item-bar.h:  We don't need guru_cursor.

	* src/item-bar.c (item_bar_realize, item_bar_unrealize,
	set_cursor): Ditto

2133 2134 2135 2136 2137 2138 2139
2001-05-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-merge.c (sheet_merge_add) : update the edit_pos if
	  necessary.

	* src/sheet.c (sheet_update_only_grid) : fix typo.

2140 2141 2142 2143 2144 2145 2146
2001-05-05  Almer S. Tigelaar  <almer@gnome.org>

  	* src/item-bar.[ch]:
 	(item_bar_realize): Initialize item_bar->shade and tidy to be
 	more correct.
 	(item_bar_unrealize): Unref item_bar->shade.
 	(item_bar_draw): Use item_bar->shade.
Morten Welinder's avatar
Morten Welinder committed
2147

Jon K Hellan's avatar
Jon K Hellan committed
2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159
2001-05-05  Jon K Hellan  <hellan@acm.org>

	* src/item-bar.h (struct _ItemBar): Add guru_cursor member.

	* src/item-bar.c (item_bar_realize): Initialize guru_cursor.
	(item_bar_unrealize): Destroy guru_cursor.
	(is_pointer_on_division): Handle uninitialized case.
	(set_cursor): Do not show resize cursor in guru mode.
	(item_bar_event): Allow gurus to do range selection. Do nothing if
	guru is up but no range selector active. Do not post context menu
	when guru is up.

2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176
2001-05-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_range_splits_array) : Make the displaying the
	  warning optional.
	(sheet_range_splits_region) : ditto.
	(sheet_range_contains_region) : implement.

	* src/workbook-control-gui.c (sort_cmd) : no need to check for merges
	  or arrays here.
	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : or here.

	* src/commands.c (cmd_sort) : it belongs here.

	* src/print.c (print_page) : in the case of grid lines we were off by
	  a point.  In the case without gridlines we need not display the
	  leading cell margins.

2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320
2001-05-04  Jody Goldberg <jgoldberg@home.com>

	s/clipboard_release/cellregion_free/
	s/range_copy/range_dup/
	s/cell_region_render_ascii/cellregion_to_string/
	s/clipboard_release/cellregion_free/

	* src/commands.c (cmd_autofill) : Use sheet_range_contains_region.
	(cmd_autofill_redo) : no need to test here.
	(cmd_paste_cut) : test destination for validity and ensure that it
	  does not slice up any merged regions or arrays.  Make the descriptor
	  an argument so that other commands can use this one.
	(cmd_ins_del_colrow_redo) : use colrow_max.
	(cmd_area_set_text_redo) : use sheet_ranges_split_region.
	(cmd_colrow_outline_change) : suppress warning.

	* src/gui-clipboard.c (x_selection_to_cell_region) : simplify by using
	  some of the convenience routines.

	* src/gutils.c (gnumeric_sys_data_dir) : warning suppression.
	(gnumeric_sys_lib_dir) : ditto.

	* src/item-bar.c (item_bar_draw) : add missing warning.

	* src/item-cursor.c (item_cursor_drag_event) : Don't assume the
	  release came from the button that started the grab (think about
	  multiple simultaneous button downs.
	(item_cursor_selection_event) : ditto.
	(item_cursor_do_drop) : changes to selection_first_range.

	* src/parse-util.c (col_name_internal) : new routine split from
	  col_name with better buffer handling.
	(col_name) : used here.
	(cols_name) : and in this new function.

	* src/print.c (sheet_print_selection) : changes to
	  selection_first_range.

	* src/print-info.c (print_info_new) : default even_if_only_styles to
	  false.  This is probably what most people want.

	* src/ranges.c (range_translate) : don't invert.
	(range_height) : new util.  could probably be #define.
	(range_width) : new util.  could probably be #define.
	(range_is_infinite) : use range_is_full.
	(range_is_full) : new util.

	* src/search.c (calculate_replacement) : warning suppression.

	* src/selection.c (sheet_selection_cut) : Use
	  sheet_range_splits_region and selection_first_range.
	(sheet_selection_copy) : Use selection_first_range and remove TODO
	  about supporting not paste by content for partial arrays.
	(selection_first_range) : Add optional error reporting if there are
	  multiple selection ranges.

	* src/format.c (format_get_currency) : diddle the logic to get
	  undefined to work the way people expect for locale C.

	* src/sheet-merge.c (sheet_merge_relocate) : remove some dead code.
	(sheet_merge_add) : changes to sheet_range_splits_array.

	* src/sheet-object-widget.c (sheet_widget_checkbox_construct) :
	  changes to selection_first_range.

	* src/sheet.c (sheet_delete_{cols,rows}) : changes to
	  sheet_range_splits_array.
	(sheet_insert_{cols,rows}) : use sheet_range_splits_array.
	(avoid_dividing_array_vertical) : delete.
	(avoid_dividing_array_horizontal) : delete.
	(sheet_is_pristine) : constness.
	(sheet_mark_clean) : delete.
	(sheet_clear_region) : changes to sheet_range_splits_array.
	(sheet_ranges_split_region) : renamed from selection_check_for_array.
	(sheet_range_splits_region) : new routine to check arrays and merged
	  regions.
	(sheet_range_splits_array) : improve and add hooks to be used for
	  overlapping checks.
	(cb_check_array_vertical) : report the array being split.
	(cb_check_array_horizontal) : report the array being split.

	* src/stf-parse.c (stf_parse_region) : use cellregion_new.
	(stf_parse_is_valid_data) : simplify.

	* src/value-sheet.c (value_area_get_width) : warning suppression.
	(value_area_get_height) : warning suppression.
	(value_area_fetch_x_y : signedness.
	(value_area_get_x_y) : signedness.

	* src/value.c (value_array_resize) : signedness.
	(value_array_set) : signedness.

	* src/workbook-control-gui.c (wbcg_error_splits_array) : signature
	  change.
	(cb_insert_rows) : use selection_first_range
	(cb_insert_cols) : ditto.
	(sort_cmd) : ditto.
	(cb_workbook_debug_info) : clean out some deadwood.

	* src/workbook-edit.c (auto_complete_matches) : warning suppression.

	* src/workbook.c (workbook_sheet_detach) : warning suppression.
	(g_ptr_array_insert) : warning suppression, moved to gutils.

	* src/xml-io.c (xml_write_attributes) : warning suppression.
	(xml_read_selection_clipboard) : use cellregion_new and tidyup.

	* src/clipboard.c (paste_link) : Only make the link sheet specific if
	  we need to.
	(clipboard_paste_region) : constness, support being able to paste
	  content only as link or value.
	(clipboard_prepend_cell) : check for arrays.
	(clipboard_copy_range) : use cellregion_new
	(cellregion_new) : new function
	(cellregion_free) : renamed from clipboard_release.
	(cellregion_to_string) : moved here from render-ascii.

	src/cmd-edit.c (cmd_paste) : more protection. Merge in
	  application_paste.
	(cmd_paste_to_selection) : handle changes to selection_is_simple and
	  use selection_first_range
	(cmd_shift_rows) : changes to cmd_paste_cut.
	(cmd_shift_cols) : ditto.

	* src/command-context-priv.h : change signature of splits array.
	* src/command-context.h : ditto.
	* src/command-context.c (gnumeric_error_splits_array) : ditto.

	* src/application.c (application_clipboard_clear) :
	(application_set_selected_sheet) : remove #warning, it is not portable.

	* src/commands.c
	* src/Makefile.am : remove render-ascii.[ch]  Move their content into
	  clipboard.

2001-05-01  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_prepend_cell) : remove ugly
	  implementation.

	* src/workbook-edit.c (auto_complete_matches) : remove warning.

	* src/xml-io.c (xml_write_attributes) : remove warning.

Morten Welinder's avatar
Morten Welinder committed
2321 2322 2323 2324
2001-05-04  Morten Welinder  <terra@diku.dk>

	* src/expr.c (expr_parse_string): Plug leak.

Morten Welinder's avatar
Morten Welinder committed
2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345
2001-05-04  Morten Welinder  <terra@diku.dk>

	* src/analysis-tools.c (set_cell_value): Make public.

	* src/solver-lp.c (solver_sensitivity_report,
 	solver_answer_report): Use set_cell_value.

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

	* src/expr.c (eval_expr_real): Simplify CONCAT case using
 	value_peek_string.

	* src/datetime.c (datetime_value_to_serial_raw): Simplify using
 	value_peek_string.

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

	* src/graph-vector.c (graph_vector_seq_string): Ditto.

	* src/solver-lp.c (find_name): Ditto.

2346
2001-05-04  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
2347

2348 2349 2350
 	* src/GNOME_Gnumeric.xml: Correct InsertComment
 	pixmap, add pixmap for Sort and add separators
 	on the right places.
Morten Welinder's avatar
Morten Welinder committed
2351

2352 2353
 	* src/pixmaps: Split sort ascending into 16x16 and
 	24x24 versions.
Morten Welinder's avatar
Morten Welinder committed
2354

2355 2356 2357 2358 2359 2360
 	* src/application.c: Account for the split. This
 	will make the menu item show up with a correct
 	icon in Bonobo.

	* src/workbook-control-gui.c: Idem. Use the 16x16
	icon for the menu.
Morten Welinder's avatar
Morten Welinder committed
2361

2362 2363 2364 2365 2366
2001-05-04  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c (cmd_unmerge_cells): Correct minor typo.
	(cmd_merge_cells): Idem.

2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385
2001-05-03  Jon K Hellan  <hellan@acm.org>

	* src/gnumeric-util.c (cb_remove_object_data): New callback
	function. Removes object data from wbcg when dialog is destroyed.
	(gnumeric_keyed_dialog): New function. Make dialog a transient
	child of wbcg, attaching to wbcg object data to identify the
	dialog.
	(gnumeric_dialog_raise_if_exists): New function: Raise the dialog
	identified by key if it is registered on the wbcg.

	* src/gnumeric-util.h (gnumeric_dialog_make_unique,
	gnumeric_dialog_raise_if_exists): Declare.

 	* src/about.c (dialog_about): Use gnumeric_keyed_dialog.
	Use gnumeric_dialog_raise_if_exists to ensure that only one sheet
	object config dialog at a time can be displayed for a wbcg.

 	* src/sheet-object-widget.c (sheet_widget_checkbox_user_config):
	Ditto.
Morten Welinder's avatar
Morten Welinder committed
2386

2387 2388 2389 2390 2391 2392 2393 2394 2395
2001-05-02  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-edit.c (cb_thaw_ui_toolbar): Callback timer
	routine, re-enables the toolbars.
	(workbook_edit_set_sensitive): Add a ui timer to eliminate
	toolbar flickering.

	* src/sheet.c (sheet_menu_state_enable_insert): Clean-up.

2396
2001-05-01  Almer S. Tigelaar  <almer@gnome.org>
Morten Welinder's avatar
Morten Welinder committed
2397

2398 2399 2400 2401 2402 2403 2404 2405 2406
 	* src/parser.y (yylex): Seek for matching )'s for ('s and
 	vice versa.
 	(find_bracket): The meat for the above functionality
 	(find_char): Split out from yylex, might be useful in other
 	places. Currently used to scan for matching quotes.
	(gnumeric_expr_parser): If the ExprTree is null, assume that
	an error has occurred, set a general "invalid expression" and
	mark the whole expression. Also display more detail when both
	the expression and error message are non-null.
Morten Welinder's avatar
Morten Welinder committed
2407

2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437
2001-05-01  Almer S. Tigelaar  <almer@gnome.org>

	* src/application.[ch] (application_clipboard_unant): Use
	sheet_unant.
	(application_clipboard_clear): Idem.
	(application_clipboard_copy): Use sheet_ant.
	(application_clipboard_cut): Idem.
	(application_clipboard_is_cut): New function, is the area
	on the clipboard marked for cutting or for copying?

	* src/selection.[ch] (sheet_selection_ant): Deprecated, remove.
	(sheet_selection_unant): Idem.

	* src/sheet-control-gui.[ch] (scg_selection_ant): Rename
	to scg_ant and add a ranges parameter where the ranges to
	ant can be specified.
	(scg_selection_unant): Rename to scg_unant.
	(scg_destroy): Make sure to un-ant everything.
	(scg_construct): Ant all anted regions on the sheet.

	* src/sheet.[ch] (sheet_ant): New, ants one or more regions
	on the sheet.
	(sheet_unant): New, unants all currently anted region on the
	sheet.
	(sheet_destroy): Make sure to free the ant list.

	* src/commands.c (cmd_ins_del_colrow_undo): Remove ugly ant-hack,
	this is no longer needed, application_clipboard_cut/copy handles
	this now.
	(cmd_ins_del_colrow_redo): Idem
Morten Welinder's avatar
Morten Welinder committed
2438
	(cmd_ins_del_colrow): Oh dear, we were actually storing both
2439 2440 2441
	the cut and copied area as a cut area and we were actually
	cutting even if the range was a copied area after shifting.

Jody Goldberg's avatar
Jody Goldberg committed
2442 2443 2444 2445 2446 2447 2448 2449
2001-04-30  Jody Goldberg <jgoldberg@home.com>

	* src/about.c (dialog_about) : sync with website.

	* src/format.c (format_number) : don't suppress the minus sign when
	  faced with a space in the format.  Is there a counter example ?
	(format_number) : handle negative improper fractions.

Morten Welinder's avatar
Morten Welinder committed
2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473
2001-04-30  Morten Welinder  <terra@diku.dk>

	* src/func.c (tokenized_help_find): Warning killer.

	* src/value.c (value_new_array): Kill warnings.
	(value_new_array_empty): Ditto.
	(value_release): Ditto.

	* src/print-cell.c (print_show): Use proper types.
	(get_width_string_n): Ditto.

	* src/number-match.c (gnumeric_error_init): Warning killer.

	* src/parser.y (deallocate_all): Warning killer.

	* src/item-bar.c (item_bar_draw): Avoid signedness problems.

	* src/format-template.c (hash_table_destroy): Warning killer.

	* src/colrow.h (struct _ColRowInfo): Make size_pixels an int.

	* src/value-sheet.c (value_area_get_width, value_area_get_height):
 	Return an int, not a guint.

2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492
2001-04-30  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c (cmd_clear_selection): More descriptive
	descriptor.
	(cmd_format): Idem.
	(cmd_resize_colrow): Idem.
	(cmd_autofill): Idem.
	(cmd_autoformat): Idem.
	(cmd_unmerge_cells): Idem.
	(cmd_merge_cells): Idem.
	(cmd_colrow_std_size): Add "pts" to end of descriptor.
	(cmd_zoom): No need to re-assign gstring.
	(range_list_to_string): Convert a list of ranges to a
	string representation.

	* src/colrow.[ch] (colrow_index_list_to_string): Convert
	an index list to a string representation.
	(colrow_string_build): Utility routine for
	colrow_index_list_to_string.
Morten Welinder's avatar
Morten Welinder committed
2493

2494 2495 2496 2497 2498 2499
2001-04-30  Almer S. Tigelaar  <almer@gnome.org>

	* src/parser.y (gnumeric_expr_parser) : Give a warning
	when both the resulting ExprTree and error message is non-null.
	This should never happen.

2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511
2001-04-29  Jody Goldberg <jgoldberg@home.com>

	* src/parser.y (yylex) : return INVALID_TOKEN rather than EOF when a
	  lexical error is found.

	* src/selection.c (sheet_selection_cut) : It is ok for the source
	  region to have merged regions or arrays.  It is NOT ok for the
	  target to have regions that are split.

	* src/cmd-edit.c (cmd_paste) : Only clear the clipboard if the paste
	  was successful.

2512 2513 2514 2515 2516 2517 2518 2519 2520 2521
2001-04-29  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c (cmd_zoom) : Implement zoom undo/redo
	(cmd_zoom_destroy) : Idem.
	(cmd_zoom_redo): Idem.
	(cmd_zoom_undo): Idem.

	* src/workbook-control-gui.c (cb_change_zoom):
	Use cmd_zoom here.

2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537
2001-04-28  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (print_hline) : handle offset of screen coords vs
	  printer coords.
	(print_vline) : ditto.
	(style_borders_row_print) : sync with style_borders_row_draw and pass
	  width to the line drawing to handle different coordinate types.

	* src/ranges.c (range_translate) : warn if clipped not just if
	  removed.

	* src/clipboard.c (clipboard_prepend_cell) : store the source sheet if
	  possible.
	(paste_link) : Use the right sheets.
	(clipboard_paste_region) : send enough information into paste_link.

2538 2539 2540 2541 2542 2543 2544 2545 2546 2547
2001-04-27  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (pre_parse_format) : Catch fractions too.
	(render_number) : don't pass in so many copies of flags.  Just use the
	  info struct.  Add a 'has_fraction' flag to disable rounding.
	(do_render_number) : ditto.
	(stern_brocot) : simple stern brocot tree.  Should really use an
	  adaptive precision but I am lazy.
	(format_number) : add fractions.

Morten Welinder's avatar
Morten Welinder committed
2548
	* src/commands.c (cmd_autofill_redo) : changing visibility can triger a
2549 2550 2551
	  draw which requiresthat things be rendered and spanned.  Be sure to
	  complete the action BEFORE changing visibility.

2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562
2001-04-27  Chema Celorio  <chema@celorio.com>

	* src/sheet-object.h: add the header for clone_sheet

	* src/sheet-object.c (sheet_object_clone): implement
	(sheet_object_clone_sheet): implemnt.

	* src/sheet-object-widget.c (SOW_MAKE_TYPE): add read_xml, write_xml
	and clone methods to macro
	(sheet_object_widget_clone): implement.
	Implement for X in label, frame, button, checkbox
Morten Welinder's avatar
Morten Welinder committed
2563 2564 2565 2566
	(sheet_widget_x_construct_with_label):
	(sheet_widget_x_destroy):
	(sheet_widget_x_clone):
	(sheet_widget_x_write_xml):
2567
	(sheet_widget_x_read_xml):
Morten Welinder's avatar
Morten Welinder committed
2568

2569