OChangeLog-2001-06-26 182 KB
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
2001-04-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (wbcg_init_state) : implement.

2001-04-16  Jody Goldberg <jgoldberg@home.com>

	s/workbook_control_sheets_init/workbook_control_init_state/

	* src/commands.c (command_setup_combos) : new function to initialize
	  the undo/redo combos into a known state.
	* src/workbook-control.c (workbook_control_sheets_init) : called here.

	* src/workbook-control.c (wb_control_change_view) : new virtual.
	(workbook_control_set_view) : called here.

16 17 18 19 20
2001-04-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-edit.c (workbook_finish_editing) : fix.  We need to
	  ignore the leading '=' or '@'.

Jon K Hellan's avatar
Jon K Hellan committed
21 22 23 24
2001-04-17  Jon K Hellan  <hellan@acm.org>

	* configure.in: Fix typo

Jody Goldberg's avatar
Jody Goldberg committed
25 26 27 28 29 30 31
2001-04-16  Jody Goldberg <jgoldberg@home.com>

	* configure.in : bump GAL version reqs.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
	  Jump to updated interface.  Partially fix the shared group problems.

32 33 34 35 36 37
2001-04-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/item-grid.c : Within all functions
	where the ItemGrid is a variable, s/item_grid/ig,
	s/grid/ig.

38 39
2001-04-15  Jody Goldberg <jgoldberg@home.com>

40 41 42 43
	* src/item-grid.c (item_grid_draw) : Hide merged cells.
	(item_grid_draw_merged_range) : calculate the size the same way we do
	  it in cell_draw.

44 45 46 47 48 49 50 51 52 53 54 55
	* src/workbook-control-gui.c (wbcg_finish_editing) : new virtual
	(workbook_control_gui_ctor_class) : connect it here.
	(wbcg_sheet_remove_all) : be sure we are no longer editing.

	* src/workbook-control-priv.h : new virtual.
	* src/workbook-control.c : ditto.
	* src/workbook-control.h : ditto.

	* src/colrow.c (colrow_visibility) : One last potential NULL.

	* src/graph-vector.c : some portability fixes.

56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
2001-04-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/parser.y : Add detailed parser error messages.

	* src/workbook-edit.c (workbook_finish_editing) : Abort
	if the expression is invalid and return a boolean indicating
	success or failure.

	* src/expr.c (expr_parse_string): Set error message to the
	result of gnumeric_expr_parser.
	
	* src/parse-util.c (parse_error_init) : Properly initialize
	begin and end character.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Don't
	change the cursor position if workbook_finish_editing failed.
	(move_cursor): Idem.

	* src/item-grid.c (item_grid_button_1): Idem.
	
76 77 78 79 80 81 82 83 84 85 86 87 88 89
2001-04-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/preview-grid.c
	(preview_grid_realize) : Remove grid gc.
	(preview_grid_unrealize) : Idem.

	* src/item-grid.c
	(item_grid_realize) : Use gc.fill, gc.cell
	and gc.empty instead of fill_gc, etc.
	(item_grid_unrealize) : Idem.
	(item_grid_draw_merged_range) : Idem.
	(item_grid_draw_background) : Idem.
	(item_grid_draw) : Idem.

90 91 92 93 94 95 96
2001-04-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/preview-grid-controller.c,
	src/preview-grid-controller.h : Remove entirely, the
	preview-grid-controller abstraction is no longer
	needed.

97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
2001-04-15  Almer S. Tigelaar  <almer@gnome.org>

	* src/preview-grid.c (pgrid_get_style) : Calls upon
	cb_cell_get_style, if NULL use default.
	(pg_get_row_height) : Retrieve row height.
	(pg_get_col_width) : Retrieve col width.
	(pg_get_row_offset) : Get offset of row.
	(pg_get_col_offset) : Get offset of column.
	(pg_construct_cell) : Construct a cell from a value.
	(pg_destruct_cell) : Destruct a cell.
	(preview_grid_realize) : Initialize default mstyle.
	(preview_grid_unrealize) : Free default mstyle.
	(preview_grid_set_arg) : Add support for row height and col
	width.
	(pg_style_get_row) : Use pg_* routines.
	(preview_grid_draw) : Idem.

Jody Goldberg's avatar
Jody Goldberg committed
114 115
2001-04-13  Jody Goldberg <jgoldberg@home.com>

116 117 118 119
	* idl/Makefile.am (dist-hook) : automate removing the generated files.

	* src/workbook-control-gui.c (workbook_menu_data_outline) : new menu.

Jody Goldberg's avatar
Jody Goldberg committed
120 121 122
	* src/Makefile.am : workbook-control-bonobo is not ready for prime
	  time.

123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
2001-04-13  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (workbook_control_gui_init): Use
	gtk_idle_add to postpone clipboard setup. For mysterious reasons,
	connecting callbacks to the table doesn't work. Toplevel does
	work, but we must wait until we live inside a toplevel.

	* src/gui-clipboard.c (x_selection_received,
	x_clipboard_bind_workbook): Use wb_control_gui_toplevel to
	determine toplevel.

	* src/gui-clipboard.[ch] (x_clipboard_bind_workbook): Change
	signature to make it callable as an idle function. Make it
	determine the toplevel from 

Jody Goldberg's avatar
Jody Goldberg committed
138 139 140 141 142
2001-04-13  Jody Goldberg <jgoldberg@home.com>

	* src/style.c (font_init) : rename fontmap -> fontmap2 for newer
	  versions of gnome-print.

143 144
2001-04-12  Jody Goldberg <jgoldberg@home.com>

145 146 147 148 149 150 151 152 153
	* src/Makefile.am : rename gnumeric.xml GNOME_Gnumeric.xml.

	* src/sheet.c (sheet_col_add) : update the max outline_level.
	(sheet_row_add) : ditto.

	* src/xml-io.c (xml_read_colrow_info) : restore the col/row outline
	  level data.
	(xml_write_colrow_info) : store it here.

154 155 156 157 158 159 160 161 162 163 164 165 166 167
	* src/colrow.c (colrow_set_visibility) : don't collapse things unless
	  they are at the end of the region.  Always uncollapse things.

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

	* src/item-bar.c (item_bar_draw) : tweak the redraw a bit to match
	  event handling

	* src/mstyle.c (mstyle_elements_equal) : remove pointless asserts and
	  correct the logic.
	(mstyle_element_equal) : Stop passing structs.
	(mstyle_elements_equal) : adjust here.
	(mstyle_elements_compare) : and here.

Morten Welinder's avatar
Morten Welinder committed
168 169 170 171
2001-04-12  Morten Welinder  <terra@diku.dk>

	* src/plugin-util.c: Portability fix.

Jody Goldberg's avatar
53096  
Jody Goldberg committed
172 173 174 175 176 177
2001-04-12  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_paste_copy_undo) : Make the corner of the
	  restored region visible.
	(cmd_autofill_undo) : Ditto.
	(cmd_autofill_redo) : Ditto.
178 179 180 181 182
	(cmd_colrow_outline_change) : Uncollapsing things should work better
	  now.

	* src/colrow.c (colrow_set_visibility) : collapse state changes can
	  occur more than once within a range.
Jody Goldberg's avatar
53096  
Jody Goldberg committed
183 184 185

	* src/sheet.c (sheet_col_row_gutter_pts) : simplify, no need to store
	  sizes in pts.  Outline level is enough.
186
	  s/sheet_col_row_gutter_pts/sheet_col_row_gutter/
Jody Goldberg's avatar
53096  
Jody Goldberg committed
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 217 218 219 220 221 222
2001-04-10  Jody Goldberg <jgoldberg@home.com>

	* src/cellspan.c (cell_calc_span) : fix chema's spanning problem.

	* src/workbook-control-gui.c (workbook_menu_data) : Add an icon for
	  the sort menu item.

2001-04-9  Jody Goldberg <jgoldberg@home.com>

	s/cmd_hide_selection_colrow/cmd_colrow_hide_selection/

	* src/commands.c (cmd_colrow_outline_change) : new wrapper for
	  colrow_hide that handled outline changes.

	* src/workbook-control-gui.c (cb_insert_{cols,rows}) : cancel edit.
	(cb_select_auto_expr) : return a value.

	* src/colrow.c (cb_col_row_visibility) : Use get rather than fetch.
	(colrow_find_outline_bound) : new function.
	(cb_colrow_visibility) : turn this into a wrapper for.
	(colrow_visibility) : this, and add honour_collapse flag.
	  invert the search to go fro mthe end to the start in preparation for
	  supporting the honour_collapse flag.  Insert the items into a sorted
	  list in case we want to merge them some day.
	(colrow_get_outline_toggle) : use new routine here too.

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

	* src/item-bar.c (item_bar_event) : Doh!  The outline events are
	  controled by the minor coordinate.

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

	* src/main.c (gnumeric_main) : shut plugins down first.

223 224 225 226
2001-04-04  Morten Welinder  <terra@diku.dk>

	* src/style.c (font_init): Improve error message.  Constify.

227 228 229 230
2001-04-04  Morten Welinder  <terra@diku.dk>

	* src/style.c (font_init): Refer to bugzilla, not bugs.

231 232 233 234 235 236 237
2001-04-01  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin.c
	(plugin_db_activate_saved_active_plugins): Don't update saved active
	plugin ids if PLUGIN_DEBUG is defined.
	(plugins_shutdown): Update saved active plugin ids only if needed.

238 239 240 241 242 243 244 245 246 247 248 249 250
2001-04-01  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c
	(cmd_ins_del_colrow_redo): Don't mirror the size of the
	selected cols/rows, instead look at the next visible col/row
	to the top/left for the size.
	(cmd_hide_colrow_correct_selection): Pass extra "forward" parameter
	value to colrow_find_adjacent_visible.

	* src/colrow.h, src/colrow.c
	(colrow_find_adjacent_visible): Add optional "forward" parameter.
	If unset it will seek to the right/bottom otherwise to the left/top.

251 252 253 254 255 256 257 258 259
2001-03-31  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin.[ch]: Replaced PLUGIN_MESSAGE macro with plugin_message
	function to avoid portability problems (some compilers don't support
	vararg macros), added "level" argument.

	* src/plugin-loader.c (gnumeric_plugin_loader_load,
	gnumeric_plugin_loader_unload): Adjusted to plugin.h.

260 261
2001-03-30  Jody Goldberg <jgoldberg@home.com>

262 263 264 265 266 267 268 269 270 271 272 273 274
	* src/workbook-control-gui.c (wbcg_sheet_remove_all) : clear the
	  notebook BEFORE deleting it to avoid updating during destuction.

	* src/cellspan.c (cell_calc_span) : Cells in hidden columns can not
	  have spans.

	* src/file.c (file_finish_load) : no need to manually respan this will
	  happen via sheet_update.  This gives us a nice speed up.

	* src/sheet.c (sheet_cell_calc_span) : don't reregister spans that
	  have not changed.
	(sheet_new) : init all flags to true to ensure things get updated.

275 276 277 278 279 280 281 282 283
	* src/main.c : remove style_debug option tha was unused.
	* src/mstyle.c (mstyle_elements_equal) : It was only mostly unused :-)

	* src/workbook-control-gui.c (wbcg_menu_state_sheet_count) : fix.

	* src/item-bar.c (is_pointer_on_division) : robustify in the face of
	  clicking out of bounds.
	(item_bar_event) : ditto, also simplfy a bit.

284 285 286 287 288
2001-03-30  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin.h: Commented out PLUGIN_DEBUG and PLUGIN_ALWAYS_LOAD
	macros.

289 290 291 292 293
2001-03-29  Morten Welinder  <terra@diku.dk>

	* configure.in (try_python): Fix redirections and don't use the
	non-standard "grep -q".

294 295 296 297 298 299 300 301 302 303 304 305
2001-03-29  Morten Welinder  <terra@diku.dk>

	Responding to lots of bug reports from drk@sgi.com:

	* src/application.c (application_display_dpi_get): Don't
 	explicitly inline.  (The compiler hopefully will by itself.)

	* src/sheet-object-widget.c (DEP_TO_CHECKBOX): Avoid pointer
 	arithmetic on void pointers.

	* src/item-bar.c: Don't use zero-sized array.

306 307 308 309 310
2001-03-29  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin-service.c (plugin_service_file_opener_probe_func):
	Print an error on terminal before ignoring it.

311 312 313 314 315 316 317 318 319
2001-03-28  Zbigniew Chyla  <cyba@gnome.pl>

	* sheet.c
	(sheet_update): Register idle function to update "auto_expression"
	instead of doing this immediately. Calculating a sum of many values
	may take a looong time.
	(sheet_update_auto_expr_idle_func): New function (code moved from
	sheet_update) updating "auto_expression" in idle loop.

320 321 322
	* sheet-priv.h (struct _SheetPrivate): Added auto_expr_idle_id
	field.

323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
2001-03-26  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_cells): New function, extracted from
 	cmd_search_replace_do.

	* src/sheet.c (sheet_cells): New function, extracted from
 	cmd_search_replace_do.

	* src/cell.c (cell_has_comment_pos): New function for those cells
 	that aren't really there.

	* src/commands.c (cmd_search_replace_do): Use workbook_cells and
 	sheet_cells.
	(cmd_search_replace_do_cell): Change to take position instead of
 	cell.  Handle missing cells without crashing.
338 339
	(cmd_search_replace_undo, cmd_search_replace_redo): Fix for
 	missing cells with comments.
340

341 342 343 344 345 346 347
2001-03-25  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c
	(cmd_ins_del_colrow_redo): Resize inserted columns/rows
	to have the same size of the columns/rows that previously
	occupied the same space.

348 349 350 351 352 353 354 355 356
2001-03-25  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c
	(cmd_ins_del_colrow_undo): Re-ant the original cut selection.
	(cmd_ins_del_colrow_redo): Re-ant accounting for the shift in
	columns/rows.
	(cmd_ins_del_colrow_destroy): Free stored cut range.
	(cmd_ins_del_colrow): Store the cut range if any.

357 358 359 360
2001-03-23  Almer S. Tigelaar  <almer@gnome.org>

	* src/about.c : Make some small changes and add Zbigniew.

361 362 363 364 365
2001-03-23  Morten Welinder  <terra@diku.dk>

	* src/gnumeric-util.c (gnumeric_glade_group_value): Function moved
 	from dialog-search-replace.c.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
366 367 368 369
2001-03-21  Zbigniew Chyla  <cyba@gnome.pl>

	* src/gutils.h (g_vector_free_custom macro): Fixed stupid bug.

370 371 372 373 374 375 376 377 378 379 380 381 382 383
2001-03-20  Zbigniew Chyla  <cyba@gnome.pl>

	Moved XL support from Gnumeric binary into real plugin.

	* src/Makefile.am
	(gnumeric_libs): Removed ../plugins/excel/libexcel.a

	* src/main.c:
	Removed: 
	- include "../plugins/excel/boot.h"
	- xxx_debug variables
	- (gnumeric_popt_options) excel debugging options
	- excel_init() and excel_shutdown() calls

384 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 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
2001-03-20  Zbigniew Chyla  <cyba@gnome.pl>

	Added support for plugin dependencies + some fixes.

	* src/gutils.h (g_list_to_vector, g_vector_free_custom):
	New macros. (used macros instead of functions to avoid casting and
	pointer size problems - ANSI C doesn't guarantee that
	sizeof (void *) == sizeof (something_else *).

	* src/plugin-loader.c
	(gnumeric_plugin_loader_load): Load required plugin dependencies
	before the plugin itself, increment n_deps for every loaded
	dependency (by calling plugin_dependencies_inc_dependants).
	(gnumeric_plugin_loader_unload): New function.
	(gnumeric_plugin_loader_load_service): Increment number of loaded
	services if loaded succesfully.
	(gnumeric_plugin_loader_unload_service): Decrement number of loaded
	services if unloaded succesfully, unload plugin if it reaches zero.

	* src/plugin-loader.h
	(struct _GnumericPluginLoader): Added n_loaded_services.
	(gnumeric_plugin_loader_unload): New function.

	* src/plugin-service.c:
	(plugin_service_file_opener_open_func,
	plugin_service_file_saver_save_func):
	Used gnumeric_io_error_occurred (and gnumeric_io_clear_error) when
	checking for error.

	* src/plugin.c:
	(plugins_active_by_default): Array containing ids of "standard"
	plugins. These will be active by default.
	(struct _PluginDependency): New struct.
	(struct _PluginInfo): Added dependencies_v, d_deps. Replaced
	service_list with services_v (vector in place of list).
	(plugin_info_get_config_prefix, plugin_dependency_get_plugin_info,
	plugin_info_read_dependency_list, plugin_dependency_free,
	plugin_inc_dependants, plugin_dec_dependants,
	plugin_dependencies_inc_dependants,
	plugin_dependencies_dec_dependants,
	plugin_load_dependencies):
	New functions.
	(plugin_info_provides_loader_by_type_str, plugin_info_free):
	Adjusted to service_list -> services_v change.
	(plugin_info_read): Read (optional) dependencies, adjusted to
	service_list -> services_v change.
	(activate_plugin):
	Activate required dependencies before the plugin itself.
	Increment n_deps for every activated dependency (by calling
	plugin_dependencies_inc_dependants).
	Adjusted to service_list -> services_v change.
	(deactivate_plugin):
	Decrement n_deps for every activated dependency (by calling
	plugin_dependencies_dec_dependants).	
	Adjusted to service_list -> services_v change.
	(plugin_can_deactivate):
	Return FALSE if any of n_deps > 0.
	Adjusted to service_list -> services_v change.
	(plugin_list_sort_by_dependency): Removed.
	(plugin_db_activate_plugin_list): Removed sorting.
	(plugin_db_init): Always activate new plugin if it's defined in
	plugins_active_by_default array.

	* src/plugin.h:
	(PluginDependencyType): New enum.
	(plugin_load_dependencies,
	plugin_inc_dependants, plugin_dec_dependants,
	plugin_dependencies_inc_dependants,
	plugin_dependencies_dec_dependants,
	plugin_info_get_config_prefix): New functions.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470
2001-03-20  Zbigniew Chyla  <cyba@gnome.pl>

	* src/io-context-priv.h:
	(struct _IOContext): Added error_occurred field.

	* src/io-context.c
	(gnumeric_io_context_new): Set error_occurred to FALSE by default.
	(gnumeric_io_error_system, gnumeric_io_error_read,
	gnumeric_io_error_save): Set error_occured to TRUE.
	(gnumeric_io_error_unknown, gnumeric_io_clear_error,
	gnumeric_io_error_occurred): New functions.

	* src/io-context.h
	(gnumeric_io_error_unknown, gnumeric_io_clear_error,
	gnumeric_io_error_occurred): New functions.

471 472
2001-03-18  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
473 474 475
	* src/workbook-control-gui.c (wb_edit_key_pressed) : handle failure
	  cases better.

Jody Goldberg's avatar
Doh!  
Jody Goldberg committed
476 477
	* src/colrow.c (colrow_foreach) : Doh!

478 479 480
	* src/item-bar.c (item_bar_event) : Now that we are zooming this
	  canvas we need to transform the coordinates.

481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
2001-03-16  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c (item_bar_calc_size) : rename from
	  item_bar_fonts_init.

	* src/sheet-control-gui.c (scg_set_zoom_factor) : prepare for panes by
	  zooming the col/row header canvases.  We need this as we transition
	  to using gnumeric-sheets instead of canvases to hold the item-bars.

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

	* src/colrow.c (colrow_equal) : handle outline&collapse.
	(colrow_copy) : ditto.

	* src/item-bar.c (outline_button_press) : new function.
	(item_bar_event) : used here.

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

	* src/item-bar.c (compute_pixels_from_pts) : new function.
	(item_bar_fonts_init) : resize the indent gutters based on the zoom.
	(item_bar_realize) : add another gc for outline drawing.
	(item_bar_unrealize) : ditto.
	(item_bar_draw) : implement drawing for groupings.
	(set_cursor) : handle cursor in the presence of groupings.

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

	* Makefile.am : update the handling of the oaf file.

	* src/sheet.c (sheet_col_row_default_calc) : rename from
	  sheet_col_row_default_init.

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

	* src/xml-io.c (xml_write_print_repeat_range) : PrintRepeatRange now
	  uses a simple Range.
	(xml_read_print_repeat_range) : ditto.
	* src/print-info.c (print_info_new) : ditto.
	(save_range) : Ditto.
	* src/dialogs/dialog-printer-setup.c (do_fetch_page_info) : ditto.
	* src/print.c (print_range_used_units) : ditto.
	(print_range_right_then_down) : ditto.
	(print_range_down_then_right) : ditto.
	(print_page_repeated_intersect) : ditto.
	(print_page_repeated_cols) : ditto.
	(print_page_repeated_rows) : ditto.
	(print_page) : ditto.

	* src/sheet-control-gui.c (scg_set_zoom_factor) : The sizing has moved
	  into the itembar.

	* src/item-bar.c : s/orientation/is_col_header/
	(item_bar_fonts_init) : Init the ideal cell size.
	(item_bar_update) : Begin to support grouping.
	(item_bar_draw) : ditto.
	(item_bar_init) : init the new members.

	* src/print-cell.c (print_cell) : re-enable halign FILL.
	* src/cell-draw.c (cell_draw) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
542 543 544 545
2001-03-17  Jody Goldberg <jgoldberg@home.com>

	* Release 0.64

546 547 548 549 550
2001-03-16  Zbigniew Chyla  <cyba@gnome.pl>

	* configure.in: Checking if we can build a shared library depending on
	libpython and disabling Python support otherwise.

551 552 553 554 555
2001-03-15  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (verbs): Fix the build for bonobo by
	  ifdefing out verbs for cb_data_validate and cb_view_freeze_panes.

556 557
2001-03-14  Jody Goldberg <jgoldberg@home.com>

558 559
	* src/item-grid.c (item_grid_event) : don't go past edges

560 561 562 563 564 565
	* src/parser.y : Add portability.h to help on Tru64

	* src/workbook-control-gui.c : disable validate and freeze for
	  release.

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

567 568
	* src/workbook-control-gui.c (workbook_setup_auto_calc) : the autoexpr
	  button can not take focus.
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583

2001-03-12  Jody Goldberg <jgoldberg@home.com>
	For  Vlad Harchev <hvv@hippo.ru> :

	* src/item-bar.c (item_bar_realize) :  Use colours from Style.

	* src/print-cell.c (print_show) : new routine to assist printing non
	  latin-1 characters.
	(get_width_string_n) : ditto.
	(get_width_string) : ditto.
	(print_text) : used here.
	(print_overflow) : here.
	(cell_split_text) : here.
	(print_cell) : and here.

584 585
2001-03-11  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
586 587 588
	* src/commands.c (cmd_sort_destroy) : Add some safety in preparation
	  for gtk2.0.

589 590 591 592 593 594 595 596 597 598 599 600 601
	* src/workbook-control-gui.c (workbook_setup_auto_calc) : remove the
	  use of the canvas to avoid label flicker.  Add support for a status
	  widget.
	(wb_control_gui_set_status_text) : new function.

	* src/gnumeric.xml : Add Status control and reverse the order to work
	  around probable bonobo bug.

	* src/sheet-control-gui.c (horizontal_scroll_offset_changed) : Use
	  wb_control_gui_set_status_text.
	(vertical_scroll_offset_changed) : ditto.
	(scg_scrollbar_config) : ditto.

602 603 604 605 606 607 608
2001-03-10  Almer S. Tigelaar  <almer@gnome.org>

	* src/sheet-control-gui.c 
	(scg_scrollbar_config): Clear scrollbar text.
	(vertical_scroll_offset_changed): Adjust to display hint in the scrollbar.
	(horizontal_scroll_offset_changed): Idem.

609 610 611 612 613
2001-03-10  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-control-gui.c (scg_construct) : lay some ground work for
	  multiple panes.

Jody Goldberg's avatar
Jody Goldberg committed
614 615
2001-03-08  Jody Goldberg <jgoldberg@home.com>

616 617 618
	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : fix off by
	  one width/height error at far boundary.

Jody Goldberg's avatar
Jody Goldberg committed
619 620
	* src/xml-io.c (xml_get_print_unit) : make units case sensitive.

621 622 623 624 625 626 627 628 629 630
2001-03-05  Zbigniew Chyla  <cyba@gnome.pl>

	* configure.in:
	(AC_OUTPUT): Added plugins/python-loader/Makefile,
	plugins/gnome-glossary/Makefile, plugins/py-func/Makefile.
	Fixed Python configuration.

	* plugins/Makefile.am:
	Conditionally added plugins: python-loader, py-func, gnome-glossary.

631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661
2001-03-05  Zbigniew Chyla  <cyba@gnome.pl>

	Fixes #51316 (actually, it fixes the _real_ problem).

	* src/dialogs/dialog-plugin-manager.c
	(cb_pm_button_activate_plugin_clicked): If the plugin is already
	active, remove it from "marked for deactivation" list.
	(cb_pm_button_deactivate_plugin_clicked): If the plugin cannot be
	deactivated, optionally add it to "marked for deactivation" list
	(if the user wants to).
	(cb_pm_clist_row_selected):
	Make "Activate plugin" button sensitive for some active plugins (for
	those on "marked for deactivation" list).
	(cb_pm_clist_row_unselected):
	Bugfix: don't free pm_gui->current_plugin_id string.
	(update_plugin_manager_view):
	Display the plugin state after its name ("in memory", "marked for
	deactivation").
	(dialog_plugin_manager): Plug leak.

	* src/plugin.c
	(plugin_info_force_mark_inactive,
	plugin_db_mark_plugin_for_deactivation,
	plugin_db_is_plugin_marked_for_deactivation): New functions.
	(plugins_shutdown): Set all plugins on "marked for deactivation"
	list as inactive before saving active plugins in configuration.

	* src/plugin.h:
	(plugin_db_mark_plugin_for_deactivation,
	plugin_db_is_plugin_marked_for_deactivation): New functions.

662 663 664 665 666 667 668 669 670 671 672 673 674 675
2001-03-05  Almer S. Tigelaar  <almer@gnome.org>

	* src/sheet-control-gui.c
	(vertical_scroll_change) : Remove.
	(horizontal_scroll_change) : Remove.
	(vertical_scroll_event) : Remove.
	(horizontal_scroll_event) : Remove.
	(vertical_scroll_changed) : New function, handles the 
	GnumericVScrollbar's "changed" signal.
	(horizontal_scroll_changed) : Idem for the GnumericHScrollbar.
	(scg_construct) : Create a gnumeric-vscrollbar instead of a
	gtk-vscrollbar and connect the "changed" signal do the same
	for gnumeric-hscrollbar.

676 677 678 679 680
2001-03-04  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control-gui.c
	(cb_data_validate) : New, invokes the data validation dialog.

Jody Goldberg's avatar
Jody Goldberg committed
681 682 683 684
2001-03-03  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_calc_span) : rewrite to be less stupid.

685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
2001-03-03  Zbigniew Chyla  <cyba@gnome.pl>

	Plugin code cleanup (removed unnecessary function arguments) + small
	fixes.

	* src/func.[ch]
	(struct _FunctionDefinition):
	Removed get_full_info_callback_data field.
	(function_add_name_only): Removed callback_data argument.
	(function_def_get_full_info_if_needed, FunctionGetFullInfoCallback):
	Now we just pass fn_def instead of name + callback_data.
	(function_call_with_list):
	Added missing function_def_get_full_info_if_needed() call.

	* src/plugin-loader.[ch]
	(gnumeric_plugin_loader_load_service,
	gnumeric_plugin_loader_unload_service):
	Return error (instead of crashing) if service is not supported.
	(gnumeric_plugin_loader_is_loaded): New function.

	* src/plugin-service.h
	(struct _PluginServiceGeneral, struct _PluginServiceFileOpener,
	struct _PluginServiceFileSaver, _PluginServicePluginLoader):
	Removed unneeded plugin argument from every function.

	* src/plugin-service.c
	(plugin_service_function_group_get_full_info_callback): Get fn_def
	arg instead of fn_name + callback_data.
	(plugin_service_function_group_initialize): Store pointer to service
	in fn_def's user_data.
	Adjusted to plugin-service.h (removed plugin argument).

	* src/plugin-loader-module.c
	(gnumeric_plugin_loader_module_func_init,
	gnumeric_plugin_loader_module_func_can_deactivate,
	gnumeric_plugin_loader_module_func_cleanup,
	gnumeric_plugin_loader_module_func_file_probe,
	gnumeric_plugin_loader_module_func_file_open,
	gnumeric_plugin_loader_module_func_file_save,
	gnumeric_plugin_loader_module_func_get_full_function_info,
	gnumeric_plugin_loader_module_func_get_loader_type):
	Adjusted to plugin-service.h (removed plugin argument).

	* src/plugin.[ch]
	s/plugin_load_loader_if_needed/plugin_get_loader_if_needed
	(plugin_info_get_extra_info_list): Get loader if it's not available.
	(plugin_info_is_loaded, plugin_info_get_loader): New functions.

Morten Welinder's avatar
Morten Welinder committed
733 734 735 736 737 738 739
2001-03-02  Morten Welinder  <terra@diku.dk>

	* src/ranges.h: Drop 24 bogus casts.

	* src/ranges.c (range_transpose): Drop extraneous &.
	(range_fragment_list_clip): Fix to work with new src/ranges.h

740 741 742 743 744 745 746 747 748 749
2001-03-01  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (cb_sheet_remove) : rename from
	  cb_edit_delete_sheet.

	* src/gnumeric.xml : Adopt a more consistent naming convention for
	  SheetRemove

	* src/mstyle.c (mstyle_element_dump) : add pattern.

750 751 752 753 754
2001-02-27  Almer S. Tigelaar  <almer@gnome.org>

	* src/commands.c
	(cmd_colrow_std_size) : Set undo descriptor for row height correctly.

755 756 757 758 759 760 761
2001-02-27  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-cmd-format.c
	(workbook_cmd_format_column_std_width) : Implement.
	(workbook_cmd_format_row_std_height) : Idem.

	* src/commands.c, src/commands.h
762 763
	(cmd_colrow_std_size_undo) : New, Undo for the std
 	row-height/col-width setting.
764 765
	(cmd_colrow_std_size_redo) : Idem, for redo.
	(cmd_colrow_std_size_destroy) : Idem.
766 767 768
	(cmd_colrow_std_size) : Entry point for std row-height/col-width
 	command.

769 770
2001-02-25  Jody Goldberg <jgoldberg@home.com>

771 772 773
	* src/workbook-control-gui.c (zoom_changed) : round the zoom factor
	  before displaying.

774 775 776
	* src/selection.c (sheet_selection_set_internal) : when the selection
	  shrinks and no longer selects full cols/rows redraw the union.

777 778 779 780 781
2001-02-25  Zbigniew Chyla  <cyba@gnome.pl>

	* src/file.c (workbook_save_as): Fixed crash (caused by calling
	gnumeric_io_context_free twice).

Jody Goldberg's avatar
Jody Goldberg committed
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802
2001-02-24  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : Invert the logic if this test.
	  We increment again later.  So what we really want is to avoid double
	  incrementing and avoid incrementing past the end.

	* src/cellspan.c (cell_calc_span) : rework when to increment
	  boundaries.  It is important not to have a span end in a hidden
	  column or it will not be drawn.  As such we need to be careful to
	  only increment the margin args when a bound extends into a visible
	  column.

	* src/sheet.c (sheet_regen_adjacent_spans) : check for spans before
	  cells in case we are cutting off the span at its core.

	* src/colrow.c (colrow_set_visibility_list) : set all visibilities
	  before regening spans.

	* src/cell-draw.c (cell_draw) : Add some warnings for cols/rows that
	  are too small.

803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841
2001-02-24  Zbigniew Chyla  <cyba@gnome.pl>

	* plugins/applix/applix-read.c,
	plugins/applix/applix.h, plugins/applix/boot.c,
	plugins/applix/plugin.xml,
	plugins/dif/dif.c, /plugins/dif/plugin.xml,
	plugins/html/boot.c, plugins/html/html.c,
	plugins/html/html.h, /plugins/html/latex.c,
	plugins/html/latex.h, plugins/html/plugin.xml,
	plugins/html/roff.c, /plugins/html/roff.h,
	plugins/lotus-123/boot.c, plugins/lotus-123/lotus.c,
	plugins/lotus-123/lotus.h, plugins/lotus-123/plugin.xml,
	plugins/oleo/boot.c, plugins/oleo/oleo.c,
	plugins/oleo/oleo.h, plugins/oleo/plugin.xml,
	plugins/plan-perfect/pln.c, plugins/plan-perfect/plugin.xml,
	plugins/sc/plugin.xml, plugins/sc/sc.c,
	plugins/sylk/plugin.xml, plugins/sylk/sylk.c,
	plugins/xbase/boot.c, plugins/xbase/plugin.xml,
	plugins/xbase/xbase.c, plugins/xbase/xbase.h,
	plugins/xml2/plugin.xml, plugins/xml2/xml2.c:
	Export "file_opener" plugin service (+ "file_saver" for dif and html).
	Use ErrorInfo where needed.
	Use GNUMERIC_MODULE_PLUGIN_INFO_DECL macro instead of
	gnumeric_plugin_version[] declaration.

	* plugins/numtheory/numtheory.c, plugins/numtheory/plugin.xml:
	Export "function_group" plugin service.

	* plugins/gb/plugin.c, plugins/gb/plugin.xml,
	plugins/gda/plugin-gda.c, plugins/gda/plugin.xml,
	plugins/guile/plugin.c, /plugins/guile/plugin.xml,
	plugins/perl/perl.c, plugins/perl/plugin.xml,
	plugins/python/Makefile.am, plugins/python/plugin.xml,
	plugins/python/python.c:
	Export "general" plugin service.
	Use ErrorInfo where needed.
	(init_plugin, can_deactivate_plugin, cleanup_plugin): Rename and
	signature changes.

842 843
	* plugins/excel/boot.c (excel_save_95, excel_save_98, excel_save,
 	excel_probe, excel_load): Signature changes.
844 845 846 847

	* plugins/excel/ms-formula-write.c: Use accessor functions from
	func.h instead of accessing FunctionDefinition struct directly.

848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974
2001-02-24  Zbigniew Chyla  <cyba@gnome.pl>

	* src/Makefile.am: Added files:  plugin-service.[ch],
	plugin-loader.[ch], plugin-loader-module.[ch], module-plugin-defs.h.

	* src/error-info.[ch] (error_info_new_from_errno): New function.

	* src/file.c
	(struct _FileOpener, struct _FileSaver): Moved from file.h
	(file_opener_get_format_description, file_opener_has_probe,
	file_saver_get_extension,  file_saver_get_format_description):
	New accessor functions.
	(file_opener_probe, file_opener_open, file_saver_save,
	file_opener_set_user_data, file_opener_get_user_data,
	file_saver_set_user_data, file_saver_get_user_data): New
	functions.
	(get_file_opener_by_id, get_file_saver_by_id): Removed
	Now using FileOpener*/FileSaver* instead of FileOpenerId/FileSaverId
	everywhere.

	* src/file.h
	(struct _FileOpener, struct _FileSaver): Moved to file.c.
	Adjusted to file.c.

	* src/gui-file.c: Adjusted to file.[ch], now FileSaver.extension
	field should contain real extension (without a dot).

	* src/func.[ch]
	(enum FunctionFlags, struct _FunctionDefinition): Moved from func.h
	to func.c.
	(struct _FunctionCategory): Added "internal_name" and "display_name"
	in place of "name" field.
	(function_get_category_with_translation,
	function_category_remove_func, func_get_ref_count, function_remove,
	function_add_name_only): New functions.
	Now it's possible to load function implementation on demand (after
	registering function using function_add_name_only() and providing
	function of type FunctionGetFullInfoCallback).
	Rename fd and fndef to fn_def for consistency.

	* src/functions/fn-database.c (database_functions_init),
	src/functions/fn-date.c (date_functions_init),
	src/functions/fn-eng.c (eng_functions_init),
	src/functions/fn-financial.c (finance_functions_init),
	src/functions/fn-information.c (information_functions_init),
	src/functions/fn-logical.c (logical_functions_init),
	src/functions/fn-lookup.c (lookup_functions_init),
	src/functions/fn-math.c (math_functions_init),
	src/functions/fn-sheet.c (sheet_functions_init),
	src/functions/fn-stat.c (stat_functions_init),
	src/functions/fn-string.c (string_functions_init):
	Use function_get_category_with_translation, instead of
	function_get_category.

	* src/plugin.[ch]
	(struct _PluginInfo): Removed many fields.
	(plugin_info_get_extra_info_list):
	Just call gnumeric_plugin_loader_get_extra_info_list.
	(plugin_info_peek_services_data, plugin_info_peek_loader_type_str):
	New accessor functions.
	(plugin_info_read_service_list, plugin_info_read_loader,
	plugin_info_read):
	Read services and loader info, use functions from
	gal/util/e-xml-utils.h everywhere.
	(activate_plugin, deactivate_plugin): Just activate/deactivate all
	plugin services.
	(plugin_can_deactivate): Ask plugin services.
	(plugin_load_service, plugin_unload_service,
	plugin_info_offers_loader_by_type_str,
	plugin_loader_register_type, plugin_loader_register_id_only,
	plugin_loader_get_by_id, plugin_loader_is_available_by_id,
	plugin_list_sort_by_dependency):
	New functions.
	(plugin_db_activate_plugin_list): Activate plugins in correct order,
	using plugin_list_sort_by_dependency function.
	(plugin_info_print): Removed.
	(module_plugin_print_info, module_plugin_info_get_extra_info_list,
	module_plugin_free, module_plugin_info_read, module_plugin_activate,
	module_plugin_deactivate, module_plugin_can_deactivate): Removed,
	most code  moved to plugin-loader.c and plugin-loader-module.c.

	* src/plugin-service.[ch]: New files, support for plugin services
	(five types of these so far).

	* src/plugin-loader.[ch]: New files, base class for plugin loaders.

	* src/plugin-loader-module.[ch]: New files, support for "g_module"
	plugins.

	* src/plugin-util.[ch] (gnumeric_fopen_error_info,
	gnumeric_open_error_info, gnumeric_mmap_error_info): New functions.

	* src/gutils.[ch] (g_list_free_custom, g_slist_free_custom,
	gnumeric_time_counter_push, gnumeric_time_counter_pop):
	New functions.

	* src/io-context-priv.h (struct _IOContext): Added error_info field.

	* src/io-context.[ch] (gnumeric_io_context_new,
	gnumeric_io_context_free, gnumeric_io_error_info_set,
	gnumeric_io_error_info_push, gnumeric_io_error_info_pop,
	gnumeric_io_error_info_clear, gnumeric_io_error_info_display,
	gnumeric_io_has_error_info): New functions, quick hack to add
	support for ErrorInfo.

	* src/module-plugin-defs.h: New file, should be included be every
	g_module plugin.

	* src/auto-format.c: Use accessor function from func.h.

	* src/bonobo-io.c (gnumeric_bonobo_write_workbook,
	gnumeric_bonobo_read_workbook, gnumeric_bonobo_io_probe),
	src/stf.c (stf_read_workbook, stf_write_workbook),
	src/xml-io.[ch] (xml_probe, gnumeric_xml_read_workbook,
	gnumeric_xml_write_workbook):
	Signature changes.

	* src/workbook.c: Adjusted to
	workbook_load_from/gnumeric_xml_write_workbook signature change.

	* src/dialogs/dialog-function-select.c: Adjust to func.[ch].

	* src/dialogs/dialog-plugin-manager.c
	Adjust to plugin.[ch].
	(cb_pm_button_activate_plugin_clicked): Check if loader for current
	plugin is available, suggest activating loader plugin otherwise.

975 976 977 978 979 980
2001-02-24  Morten Welinder  <terra@diku.dk>

	* src/workbook-control-gui.c (cb_edit_search_replace_action): New
 	function for non-modal action.
	(cb_edit_search_replace): Supply action callback.

981 982 983 984 985 986
2001-02-24  Almer S. Tigelaar  <almer@gnome.org>

	* src/workbook-control-gui-priv.h :
	Add sheet remove and sheet re-order menu items.

	* src/workbook-control-gui.c
987 988
	(wbcg_menu_state_sheet_count) : New, Take care of sheet counts
 	dependant gui elements like the sheet remove/re-order menus.
989 990
	(wbcg_sheet_add) : Call menu_state_sheet_count from here.
	(wbcg_sheet_remove) : Idem.
991 992 993
	(workbook_control_gui_init) : Initialize the remove and re-order
 	menu-items.

994 995 996 997 998
2001-02-24  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (workbook_control_gui_new) : Why was I
	  protecting a generic call ?  Its constituents not the caller are
	  responsible for blocking events.
999
	(workbook_control_gui_init) : Be anal and init this just in case.
1000

1001 1002 1003 1004 1005 1006 1007 1008 1009
2001-02-24  Almer S. Tigelaar  <almer@gnome.org>

	* src/sheet-control-gui.c
	(horizontal_scroll_event) : If we reach the maximum scroll offset
	increase it so we can keep scrolling down.
	(vertical_scroll_event) : Idem.
	(horizontal_scroll_change) : Directly manipulate scroll offset.
	(vertical_scroll_change) : Idem.

1010
2001-02-23  Jody Goldberg <jgoldberg@home.com>
1011

1012 1013 1014 1015 1016 1017
 	* src/commands.c (cmd_merge_cells_redo) : reorder to handle unmerging
 	  directly.
 	(cmd_merge_cells_undo) : ditto.
 	(CmdMergeCells) : no need to inherit from CmdUnmergeCells.
 	(cmd_unmerge_cells_redo) : merge the 'internal' versions.
 	(cmd_unmerge_cells_undo) : merge the 'internal' versions.
1018

1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056
2001-02-22  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_border_vmargins) : remove unnecessary
	  reference to next_sr.  sr.bottom == next_sr.top
	  For normal borders horizontal always dominates vertical.
	(style_border_hmargins) : Only cut corners for doubles if the corner
	  is a double.

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

	* src/selection.c (sheet_selection_set_internal) : Use it here.
	  The trick is that when extending a selection to include merged cells
	  it is possible that the edit cell is neither the base nor the move
	  col/row.  When you then shrink the selection to the pre-extended
	  state, without the merged region, you have lost track of the corner
	  and can easily loose the edit_position.

	* src/workbook-format-toolbar.c (toggled_from_toolbar) : delete this
	  ugliness.  We don't need it anymore.

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

	* src/workbook-control-gui.c (wbcg_ui_update_begin) : new utility
	(wbcg_ui_update_end) : new utility

	* src/workbook-format-toolbar.c (workbook_feedback_set) : Use them
	  here.
	(workbook_format_halign_feedback_set) : update center-across-selection
	  in the bonobo case.
	(do_modify_format) : rewrite to use the format from the edit cell and
	  to support undo.

	* src/format.c (format_toggle_thousands) : delete.

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

	* configure.in : post release version bump to 0.64.

Jody Goldberg's avatar
Jody Goldberg committed
1057 1058 1059 1060
2001-02-23  Jody Goldberg <jgoldberg@home.com>

	* Release 0.63

1061 1062
2001-02-23  Jody Goldberg <jgoldberg@home.com>

1063 1064 1065
	* src/item-grid.c (item_grid_draw_merged_range) : check for background
	  before checking for selection.

1066 1067 1068
	* src/sheet-merge.c (sheet_merge_add) : don't apply the borders from
	  the corner cell to the whole region.  Just the content.

1069 1070 1071 1072
	* src/sheet-control-gui.c (scg_comment_display) : We only need to be
	  sure that scg::selected is a comment if we are using it and no other
	  comment is visible.

1073 1074 1075 1076
	* src/style-border.c (print_hline) : gdk_draw_line excludes the far
	  pixel.  Make this match to keep the draw code consistent.
	(print_vline) : ditto.

1077 1078 1079
	* src/print-cell.c (print_cell_range) : Use the hide_grid from the
	  print flags not the sheet itself.

1080 1081 1082 1083 1084
	* src/print.c (print_page_cells) : We now pass 'HideGridLines' so
	  invert the logic.

	* src/print-cell.c (print_cell) : typo.

1085 1086
2001-02-22  Jody Goldberg <jgoldberg@home.com>

1087 1088 1089 1090 1091 1092 1093 1094
	* src/item-edit.c (point_is_inside_range) : dont highlight ranges on
	  other sheets.
	(scan_at) : simplify.

	* src/workbook-control-gui.c (cb_notebook_switch_page) : If we are
	  only switching pages to select a range there is no need to update
	  anything.

Jody Goldberg's avatar
Jody Goldberg committed
1095 1096
	* src/expr.c (eval_expr_real) : fix old typo.

1097 1098 1099 1100 1101
	* src/commands.c (cmd_unmerge_cells_init) : add simple test to avoid
	  merging singletons.
	(cmd_unmerge_cells) : check for failure.
	(cmd_merge_cells) : ditto.

1102 1103 1104 1105 1106 1107
2001-02-22  Almer S. Tigelaar  <almer@gnome.org>

	* src/preview-grid.c (preview_grid_draw): The style row
	init routine expect a hide gridlines parameter, so we need
	to pass the inverse of the preview grid's show gridlines property.

1108 1109
2001-02-21  Jody Goldberg <jgoldberg@home.com>

1110 1111 1112 1113
	* src/render-ascii.c (cell_region_render_ascii) : The list reveral
	  stuff is no longer needed.  The new engine keeps only complete
	  styles and keeps the list as a partition.

1114 1115 1116
	* src/sheet-style.c (sheet_style_insert_colrow) : When inserting
	  before the first row/col use the style from A/1.

1117 1118 1119
	* src/sheet.h (SHEET_FOREACH_CONTROL) : Be really really careful about
	  potential modifications to the list why we are walking it.

1120 1121 1122 1123 1124
2001-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_default_halign) : add support for arrays
	  and center booleans.

Jody Goldberg's avatar
Jody Goldberg committed
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134
2001-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_write_style) : store indent.
	(xml_read_style) : restore indent.

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

	* src/item-edit.c (item_edit_draw_text) : draw autocompletions of
	  wrapped text nicely.

1135 1136 1137 1138
2001-01-20  John Gotts  <jgotts@linuxsavvy.com>

	* gnumeric.spec.in: Sync with new directory structure.

Jody Goldberg's avatar
Jody Goldberg committed
1139 1140 1141 1142
2001-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/item-edit.c (item_edit_draw_text) : kill warning.

1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153
2001-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/main.c : remove inclusion of embeddable-grid.h this causes
	  problems in the release because main.c then depends on files that
	  are only available in the ENABLE_BONOBO case.

	* src/item-bar.c (bar_draw_cell) : set the clip for the text.  no need
	  to clip a rectangle or shadow whose boundaries we define.

	* src/sheet-control-gui.c (scg_redraw_cell_region) : Handle shrinkage.

1154 1155 1156 1157 1158
2001-02-20  Jon K Hellan  <hellan@acm.org>

	* src/item-edit.c (item_edit_draw_text): Fix wrapped line drawing
	problem.

1159 1160 1161 1162 1163 1164
2001-02-20  Morten Welinder  <terra@diku.dk>

	* src/item-bar.c (bar_draw_cell): Fix column header drawing
 	problem.  (And possibly other weird drawing problems related to
 	style.)

1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175
2001-02-20  Zbigniew Chyla  <cyba@gnome.pl>

	* src/dialogs/dialog-cell-format.c (setup_color_pickers): Move
	variable assignments out of assertions to allow compilation with
	"G_DISABLE_ASSERT" defined.

	* src/dialogs/dialog-cell-sort.c:
	Use e_free_string_list() from GAL instead of newly defined
	free_string_list().
	(dialog_cell_sort): Plug leak.

Morten Welinder's avatar
Morten Welinder committed
1176 1177 1178 1179
2001-02-20  Morten Welinder  <terra@diku.dk>

	* src/regression.c (LUPDecomp): Really fix row flipping.

1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201
2001-02-19  Jon K Hellan  <hellan@acm.org>

	* src/file.h: Add level FILE_FL_MANUAL_REMEMBER. Fix typos:
	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID,
	FILE_OPENER_ID_INVAID -> FILE_OPENER_ID_INVALID.

	* src/file.c (file_format_register_open): Fix typo:
	FILE_OPENER_ID_INVAID -> FILE_OPENER_ID_INVALID.
	(file_format_register_save): Fix typo: FILE_OPENER_ID_INVAID ->
	FILE_SAVER_ID_INVALID.
	(cb_unregister_save, workbook_save): Fix
	typo: FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.

	* src/workbook.c (workbook_destroy): Only include in history is
	file_format_level >= FILE_FL_MANUAL_REMEMBER.
	(workbook_new, workbook_set_saveinfo): Fix typo:
	FILE_SAVER_ID_INVAID -> FILE_SAVER_ID_INVALID.

	* src/xml-io.c: Fix typos: FILE_SAVER_ID_INVAID ->
	FILE_SAVER_ID_INVALID, FILE_OPENER_ID_INVAID ->
	FILE_OPENER_ID_INVALID.

Jody Goldberg's avatar
Jody Goldberg committed
1202 1203 1204 1205 1206 1207 1208 1209 1210
2001-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_format) : Optionally supply a name.

	* src/cell-draw.c (cell_draw) : numbers with indents turn to hashes
	  too.  Hmm, I do not like the hash marks.

	* src/print-cell.c (print_cell) : merge in the indent code.

1211 1212 1213 1214 1215
2001-02-19  Morten Welinder  <terra@diku.dk>

	* src/regression.c (LUPDecomp): Fix row flipping.
	(general_linear_regression): Survive failing LUPDecomp.

1216 1217
2001-02-19  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1218 1219 1220
	* src/rendered-value.c (rendered_value_calc_size_ext) : tune the size
	  of an indent step.

Jody Goldberg's avatar
Jody Goldberg committed
1221 1222 1223 1224 1225
	* src/workbook-control-gui.c (show_gui) : kill warning.

	* src/workbook-format-toolbar.c (cb_format_dec_indent) : implement.
	(cb_format_inc_indent) : ditto.

1226 1227 1228
	* src/gnumeric.xml : Move the toggle specs into commands.

	* src/workbook-control-gui.c (toggle_util) : new func.
Morten Welinder's avatar
Morten Welinder committed
1229
	(TOGGLE_HANDLER) : util macro to simplify gnome/bonobo transition.
1230 1231
	(workbook_control_gui_init) : use TOGGLE_REGISTER for the bonobo case.

1232 1233 1234 1235 1236
2001-02-19  Jon K Hellan  <hellan@acm.org>

	* src/workbook-control-gui.c (show_gui): Call
	scg_adjust_preferences only if sheet exists.

1237 1238 1239 1240 1241 1242 1243 1244
2001-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_paste_cut_redo) : update the selection after the
	  move to handle merged cells.

	* src/workbook-format-toolbar.c : Add a seperator and rename the
	  callbacks to follow std conventions.

Jody Goldberg's avatar
Jody Goldberg committed
1245 1246 1247 1248 1249 1250 1251 1252
2001-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (wbcg_menu_state_enable_insert) : There
	  has not been a need for the menu path for a while.  Why was this
	  still here ?
	(toggle_menu_item) : clean up the #ifdef to make this readable.
	(wbcg_menu_state_sheet_prefs) : Finish the bonobo case.

1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265
2001-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (show_gui) : It seems like we need to
	  show_all for the bonobo build, I don't know why.  Add an explicit
	  call the scg_adjust_preferences to rehide headers that may be shown
	  inadvertently.

	* src/cellspan.c (cell_calc_span) : Even if the content fits the
	  indent may cause a span.

	* src/style.c (required_updates_for_style) : flag an indent change as
	  something that requires a resize.

Jody Goldberg's avatar
Jody Goldberg committed
1266 1267 1268 1269 1270 1271 1272 1273 1274 1275
2001-02-18  Jody Goldberg <jgoldberg@home.com>

	* src/embeddable-grid.c (set_header_visibility) : delete.

	* src/workbook-control-gui.c (cb_change_zoom) : Block recursion here.
	(zoom_changed) : not here.
	(toggle_menu_item) : add warning for bonobo case.
	(workbook_setup_edit_area) : add show_all to compensate for changes in
	  construct.

Jody Goldberg's avatar
Jody Goldberg committed
1276 1277 1278 1279 1280 1281 1282 1283
2001-02-18  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c : Back port the help text from the bonobo
	  verson.
	(workbook_menu_edit_select) : Use Meta-space for select row,
	  Shift-space does not work well.
	(wbcg_close_control) : fix typo (bug 51058)

Jody Goldberg's avatar
Jody Goldberg committed
1284
	* src/workbook-edit.c (workbook_finish_editing) : Editing is local to
Jody Goldberg's avatar
Jody Goldberg committed
1285 1286 1287 1288 1289 1290 1291 1292 1293
	  the control.
	(workbook_start_editing_at_cursor) : ditto.

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

	* src/sheet-control-gui.c : reindent some ugliness from the rename.

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

1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309
2001-02-18  Jody Goldberg <jgoldberg@home.com>

	s/display_zero/hide_zero/		+ necessary logic inversions
	s/show_grid/hide_grid/			+ necessary logic inversions
	s/show_col_header/hide_col_header/	+ necessary logic inversions
	s/show_row_header/hide_row_header/	+ necessary logic inversions
	s/wb_control_paste_special_enable/wb_control_menu_state_paste_special/
	s/wbcg_paste_special_enable/wbcg_menu_state_paste_special/

	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
	  Simplfy and use wbcg::updating_ui.
	(workbook_format_halign_feedback_set) : use simplified interface.
	(workbook_feedback_set) : Ditto.
	(set_selection_halign) : If the current alignment is already set to
	  the target type revert to general.

1310
	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
1311 1312 1313 1314 1315 1316 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
	  will default to width / 2.
	* src/item-grid.c (item_grid_draw_merged_range) : Ditto.
	(item_grid_draw) : Ditto.

	* src/print-cell.c (print_cell) : print_cell::h_center
	  will default to width / 2.
	(print_merged_range) : Ditto.
	(print_cell_range) : Ditto.

	* src/sheet.c (sheet_adjust_preferences) : Update the menus to reflect
	  changes in prefs.  Take a flag to control redraw requests.
	(sheet_menu_state_enable_insert) : new function.

	* src/workbook-control-gui.c (wbcg_menu_state_enable_insert) : Merge
	  all the insert col/row/cell menu updates into here.
	(wbcg_menu_state_sheet_prefs) : new function.
	(cb_sheet_pref_display_formulas) : reentrancy protection and use
	  sheet_adjust_preferences.
	(cb_sheet_pref_hide_zeros) : ditto.
	(cb_sheet_pref_hide_grid_lines) : ditto.
	(cb_sheet_pref_hide_col_header) : ditto.
	(cb_sheet_pref_hide_row_header) : ditto.
	(workbook_control_gui_init) : add the new menu items.
	(workbook_control_gui_ctor_class) : reorg a bit.

	src/workbook-control.c : reorg a bit.

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

	* configure.in : Make python plugin optional.

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

	* src/workbook-control.c (wb_control_sheet_add) : update menus here.

	* src/print-cell.c (print_cell) : fix the display zero logic.
	* src/cell-draw.c (cell_draw) : ditto.  And fix the comment.

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

	* src/cell.c (cell_default_halign) : Handle alignment of numbers
	  correctly when displaying formulas.

	* src/embeddable-grid.c (set_header_visibility) : start using our
	  native MVC.
	(Grid_set_header_visibility) : ditto.
	(embeddable_grid_set_header_visibility) : delete.

	* src/sheet-control-gui.c (scg_set_header_visibility) : delete.
	(scg_adjust_preferences) : Make this contingent on having a wbcg.

	* src/selection.c (sheet_selection_set_internal) : Use
	  sheet_menu_state_enable_insert.
	(sheet_selection_reset) : ditto.

1366 1367 1368 1369 1370
2001-02-18  Almer S. Tigelaar  <almer1@dds.nl>

	* src/sheet-private.h : Add flag for insert cells.

	* src/workbook-control-gui.c :
1371 1372 1373 1374 1375 1376
	(wbcg_insert_cells_enable) : New, enable/disable the Insert->Cells
 	menu item.
	(workbook_control_gui_init) : Initialize the insert_cells menu
 	item.
	(workbook_control_gui_ctor_class) : Initialize insert_cells
 	function pointer.
1377 1378

	* src/workbook-control-gui.h : Add menu_item_insert_cells.
1379 1380 1381 1382 1383

	* src/workbook-control.c, src/workbook-control.h,
 	src/workbook-control-priv.h : Export wbcg_insert_cell_enable to
 	workbook-control.

1384
	* src/selection.c
1385
	(sheet_selection_set_internal) : If the whole sheet is selected,
1386 1387 1388 1389 1390
	disable Insert->Cells. Otherwise enable it.
	(sheet_selection_reset) : Enable Insert->Cells.

 	* src/workbook-view.c
 	(wb_view_menus_update) : Update Insert->Cells too.
1391

1392 1393 1394 1395 1396
2001-02-17  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_sheet_write) : Store some flags about the sheet.
	(xml_sheet_read) : Restore them.

Jody Goldberg's avatar
Jody Goldberg committed
1397 1398
2001-02-17  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1399 1400 1401
	* src/commands.c (cmd_clear_undo) : reset the selection to queue a
	  redraw.

1402 1403
	* src/cell-draw.c (cell_draw) : take the coords of the center of the
	  region directly, rather than the left offset.
Jody Goldberg's avatar
Jody Goldberg committed
1404
	* src/print-cell.c (print_cell) : ditto.
1405 1406 1407 1408 1409

	* src/preview-grid.c (preview_grid_draw) : change sematics of the
	  centering arg to cell_draw.
	* src/item-grid.c (item_grid_draw) : ditto.
	(item_grid_draw_merged_range) : ditto. Fix drawing of selected cells.
Jody Goldberg's avatar
Jody Goldberg committed
1410 1411
	* src/print-cell.c (print_cell_range) : ditto.
	(print_merged_range) : ditto.
1412 1413 1414 1415 1416 1417

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

	* src/clipboard.c (clipboard_paste_region) : Allow pasting just
	  formats.

Jody Goldberg's avatar
Jody Goldberg committed
1418 1419 1420 1421 1422 1423 1424
	* src/print.c (print_page) : fix typo.

	* src/xml-io.c (xml_read_style) : Before version 1 and after version 6
	  we stored full styles.  Be sure the create a default style as a
	  backward compatibility measure incase we add elements to styles in
	  the future.

1425 1426
2001-02-17  Almer S. Tigelaar  <almer1@dds.nl>

1427
	* src/commands.c
1428 1429 1430 1431 1432
	(cmd_hide_colrow_correct_selection) : Make sure the
	hidden cols/rows are not selected. Selecting adjacent cols/rows
	instead. Fixes #38179.
	(cmd_hide_colrow_undo) : Call cmd_hide_colrow_correct_selectio here.
	(cmd_hide_colrow_redo) : And here.
1433 1434

	* src/colrow.h, src/colrow.c (colrow_find_adjacent_visible) :
1435 1436
	New, Find the next visible col/row in the sheet.

1437 1438 1439 1440 1441 1442 1443
2001-02-17  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_borders_row_draw) : Don't draw the
	  diagonals unless we are drawing the verticals.

	* src/sheet-control-gui.c (scg_scrollbar_config) : simplify a bit.

1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_align_page) :
	  begin support for indenting.
	* src/workbook-format-toolbar.c : ditto.

2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* configure.in : post release version bump

2001-02-15  Jody Goldberg <jgoldberg@home.com>

	* s/fit_in_cell/wrap_text/
	rename this in preparation for supporting shrink_to_fit

Jody Goldberg's avatar
Jody Goldberg committed
1459 1460 1461 1462
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* Release 0.62

Jody Goldberg's avatar
Jody Goldberg committed
1463 1464 1465 1466
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* src/print.c (render_sheet_objects) : more constness.

1467 1468 1469 1470 1471 1472 1473 1474 1475
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.xml : remove the 'pack-end' from some of the format
	  controls too.

2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (cell_draw) : fix some warnings.

Jody Goldberg's avatar
Jody Goldberg committed
1476 1477 1478 1479
2001-02-15  Jody Goldberg <jgoldberg@home.com>

	* src/number-match.c (compute_value) : check for overflow.

Jody Goldberg's avatar
Jody Goldberg committed
1480 1481 1482 1483 1484
2001-02-15  Jody Goldberg <jgoldberg@home.com>

	* configure.in : remove dead dirs
	* Makefile.am : Add the xml-i18n-*.in files

1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508
2001-02-15  Jody Goldberg <jgoldberg@home.com>

	* src/print.c (compute_sheet_pages) : Use even_if_only_styles.
	(print_page) : Ditto.
	(print_sheet) : Ditto.

	* src/xml-io.c (xml_write_print_info) : Support 'even_if_only_styles'
	(xml_read_print_info) : Ditto.
	* src/dialogs/dialog-printer-setup.c (do_fetch_page_info) : ditto.
	(do_setup_page_info) : Ditto.
	* src/print-info.c (print_info_copy) : ditto.
	(print_info_new) : ditto.
	(print_info_save) : ditto.

2001-02-15  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (cell_draw) : Support indents for left/right
	  alignment.

	* src/cellspan.c (cell_calc_span) : Support indents when calculating
	  spans.

	* src/rendered-value.c (cell_rendered_offset) : new function

1509 1510 1511
2001-02-15  Almer S. Tigelaar  <almer1@dds.nl>

	* preview-grid-controller.c
1512 1513 1514 1515 1516 1517 1518
	(preview_grid_controller_new) : Properly initialize the
 	selection_rect.
	(preview_grid_controller_free) : Remove rect and selection_rect
 	from canvas.

	* templates/autoformat/autoformat.General.advanced.xml : Correct
 	wrongly set border.
1519

1520 1521
2001-02-15  Jody Goldberg <jgoldberg@home.com>

1522 1523 1524 1525 1526 1527 1528
	* src/mstyle.c (mstyle_visible_in_blank) : off by one error.
	* src/xml-io.c (xml_write_style_border) : Ditto.
	(xml_read_style_border) : ditto.

	* src/rendered-value.c (rendered_value_calc_size_ext) : calculate the
	  indent offsets.

1529 1530
	* src/sheet-merge.c (sheet_merge_add) : redraw the entire region.

Jody Goldberg's avatar
Jody Goldberg committed
1531 1532 1533 1534 1535 1536 1537
2001-02-14  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_border_draw) : delete.

2001-02-14  Jody Goldberg <jgoldberg@home.com>

	* src/preview-grid.c (pg_style_get_row) : new function.
1538
	(preview_grid_draw) : for use here.
Jody Goldberg's avatar
Jody Goldberg committed
1539 1540 1541 1542 1543 1544

	* src/sheet-style.c (style_row_init) : New routine spit out from.
	* src/item-grid.c (item_grid_draw) : here.
	* src/preview-grid.c (preview_grid_draw) : for use here.
	(preview_grid_draw_background) : there is no selection.

1545 1546 1547 1548 1549
2001-02-14  Jody Goldberg <jgoldberg@home.com>

	* s/sheet_view/scg/
	Do some renaming before the release

1550 1551 1552 1553
2001-02-14  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction to libglade requirement.

1554 1555 1556 1557 1558 1559 1560
2001-02-14  Morten Welinder  <terra@diku.dk>

	* src/plugin.c (plugin_info_list_read_for_dir): Prepare for xml2.
  	(s/childs/xmlChildrenNode/).

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

1561 1562 1563 1564 1565 1566
2001-02-14  Almer S. Tigelaar  <almer1@dds.nl>

 	* src/preview-grid.c
 	(preview_grid_draw_border): Remove.
 	(preview_grid_draw): Revamp excluding border drawing.

1567 1568 1569 1570 1571
2001-02-14  Jody Goldberg <jgoldberg@home.com>

	* configure.in : bump the libglade req to get some translation fixes.
	* README : ditto.
	* gnumeric.spec.in : ditto.
1572

Karl Eichwalder's avatar
Karl Eichwalder committed
1573 1574 1575 1576 1577
2001-02-14  Karl Eichwalder  <ke@suse.de>

	* src/workbook-control-gui.c (cb_edit_search_replace_query):
	Untabify message.

1578 1579 1580 1581 1582
2001-02-13  Jody Goldberg <jgoldberg@home.com>

	* some header cleanup.  Remove unused copies of
	  rendered-value.h

1583 1584 1585 1586 1587 1588
2001-02-13  Morten Welinder  <terra@diku.dk>

	* src/plugin.c (plugin_info_list_read_for_dir): Plug leak big
 	enough to drive a truck through.
	(plugin_info_free): Plug leak.

1589 1590 1591 1592 1593
2001-02-13  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_clone_styles) : rewrite for new style engine.
	(sheet_move_range) : remove warning.

1594 1595 1596 1597
2001-02-13  Maciej Stachowiak  <mjs@eazel.com>

	Changes to make gnumeric distcheck properly (mildly xml-i18n-tools
	related).
Karl Eichwalder's avatar
Karl Eichwalder committed
1598

1599 1600
	* po/Makefile.in.in: Remove; this should not be in cvs, autogen
	will create it with gettextize and patch it with xml-i18n-tools.
Karl Eichwalder's avatar
Karl Eichwalder committed
1601

1602 1603 1604 1605 1606 1607
	* src/dialogs/Makefile.am: Remove define of glade_msgs and remove
	it from EXTRA_DIST; these files are not in cvs any more, rather
	they are generated on demand by the xml-i18n-tools extraction
	code, so they should not (and cannot) go into the distribution
	tarball.

Karl Eichwalder's avatar
Typo.  
Karl Eichwalder committed
1608 1609 1610 1611
2001-02-12  Karl Eichwalder  <ke@suse.de>

	* templates/autoformat/Makefile.am (Category_files): Typo.

1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632
2001-02-12  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (cell_draw) : Center content on the cell with the
	  content, not on the width of the span (think about asymetric column
	  widths on the left and right.
	* src/print-cell.c (print_cell) : Ditto.

	* src/item-grid.c (item_grid_draw) : Pass the offset from the left
	  edge to the cell with content.
	* src/print-cell.c (print_cell) : Ditto.

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

	* src/cell-draw.c (cell_draw) : Fence post problem.  Measure right
	  margin as 'left + width - 1'
	* src/print-cell.c (print_cell) : ditto.

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

	* src/item-grid.c (item_grid_draw) : pass the correct width.

1633 1634 1635 1636 1637 1638 1639
2001-02-11  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-control-gui.c (wb_control_gui_focus_cur_sheet) :
	  Improve the precondition.
	(cb_autosave) : ditto.
	(cb_notebook_switch_page) : Add some safety.

Karl Eichwalder's avatar
Karl Eichwalder committed
1640 1641
2001-02-11  Karl Eichwalder  <ke@suse.de>

Karl Eichwalder's avatar
Karl Eichwalder committed
1642
	* src/main.c: s/behaviour/behavior/ and s/colours/colors/ .
Karl Eichwalder's avatar
Typo.  
Karl Eichwalder committed
1643
	Typo.
Karl Eichwalder's avatar
Karl Eichwalder committed
1644

1645 1646 1647 1648
2001-02-11  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction for GAL.

1649 1650 1651 1652 1653 1654 1655
2001-02-11  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_cell_set_text) : Queue a redraw before changing
	  in case span shrinks after change.

	* src/sheet-merge.c (sheet_merge_add) : Clear spans

Jody Goldberg's avatar
Jody Goldberg committed
1656 1657 1658 1659 1660 1661
2001-02-11  Jody Goldberg <jgoldberg@home.com>

	* README : bump GAL req.
	* gnumeric.spec.in : ditto.
	* configure.in : Ditto.

1662 1663 1664 1665 1666 1667 1668
2001-02-11  Jody Goldberg <jgoldberg@home.com>

	* src/parser.y : Move the state information into a struct so that we
	  can eventually get rid of the statics.
	Take a 'ParseError' as a place to return more detailed information
	  about parsing errors (Not used yet).

1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680
2001-02-10  Jon K Hellan  <hellan@acm.org>

	* src/print.c: Illustrate margin definitions.
	(print_headers): Header, not top margin, should be top of header
	area.
	(print_footers): Footer, not bottom margin, should be top of
	footer area.

	* src/xml-io.c (xml_print_info_fix_margins): New function fix up
	incorrectly stored margins.
	(xml_read_print_margins): Use it.

1681 1682
2001-02-10  Jody Goldberg <jgoldberg@home.com>

1683 1684 1685
	* src/workbook-control-gui.c (insert_bonobo_object) : help
	  translators.

1686 1687 1688
	* src/sheet-style.c (foreach_tile) : Only apply to applicable row or
	  col tile segments.

Jeffrey Stedfast's avatar
Jeffrey Stedfast committed
1689
2001-02-09  Jeffrey Stedfast  <fejj@ximian.com>
1690

Jeffrey Stedfast's avatar
Jeffrey Stedfast committed
1691 1692 1693 1694
	* src/print.c: include ranges.h

	* src/expr.c: include gutils.h

Jody Goldberg's avatar
Jody Goldberg committed
1695 1696 1697 1698 1699 1700 1701
2001-02-08  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.xml : Remove the ugly alight right

	* src/style-border.c (style_borders_row_draw) : Do a quick
	  implementation of diagonals.

1702 1703
2001-02-08  Jon K Hellan  <hellan@acm.org>

1704
	* src/embeddable-grid.[ch]: Adapt to more Bonobo changes.
1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718

	* src/embeddable-grid.h (struct EmbeddableGridClass): Add
	POA_GNOME_Gnumeric_Grid__epv.

	* src/embeddable-grid.c:  Remove
	embeddable_grid_(v)?epv.
	(embeddable_grid_class_init): New version.
	(init_embeddable_grid_corba_class, create_embeddable_grid):
	Remove.
	(embeddable_grid_new(_anon)?): Remove CORBA stuff.
	(embeddable_grid_get_type, grid_view_get_type): Use
	bonobo_x_type_unique.
	(grid_view_get_type):

1719 1720
2001-02-08  Almer S. Tigelaar  <almer1@dds.nl>

1721 1722
	* src/style-border.h, src/style-border.c (style_borders_row_draw):
	Adjust so it uses a vector of ints for column widths instead of
1723
	reading them out of the Sheet directly.
1724 1725

	* src/item-grid.c (item_grid_draw): Built a column width
1726 1727
	vector and pass it to the style_borders_row_draw routine.

1728 1729 1730 1731 1732
2001-02-08  Morten Welinder  <terra@diku.dk>

	* src/file-autoft.c (category_group_list_get): Plug leak.
	(category_group_free): Plug grave leak.

1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743
2001-02-07  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_search_replace_do_cell): Improve quoting
 	using gnumeric_strescape.

	* src/gutils.c (gnumeric_strescape): Imported from src/expr.c.
  	Constified and changed to add the quotes.

	* src/expr.c (strescape): Moved to gutils.
	(do_expr_tree_to_string): Use gnumeric_strescape.

1744 1745 1746 1747 1748
2001-02-07  Jon K Hellan  <hellan@acm.org>

	* src/print.c (print_hf_line): Check if there is room to print a
	header or footer.

1749 1750 1751 1752 1753 1754 1755
2001-02-07  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (border_mask_vec) : fix the problem where
	  artificial conflicts were created when comparing cells without
	  borders to cells with backgrounds and no borders.  the backgrounds
	  were causing the borders to be NULL which would toggle a conflict.

Jody Goldberg's avatar
typo.  
Jody Goldberg committed
1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771
2001-02-06  Jody Goldberg <jgoldberg@home.com>

	* src/print.c (print_page) : Print areas with visible styles too.

	* src/sheet-style.c (sheet_style_has_visible_content) : new function

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

	* src/style-border.c (style_borders_row_print) : Use print_hline
	  print_vline to simplify things later.

	* src/print.c (print_page) : typo.

	* src/sheet.c (sheet_col_set_default_size_pts) : Add some safety.
	(sheet_row_set_default_size_pts) : Add some safety.

1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785
2001-02-06  Jody Goldberg <jgoldberg@home.com>

	* src/print.c (print_page) : Add a simple filter to avoid printing
	  pages with no content.  Currently uses only cells.  No tests for
	  visible styles on blank cells.

	* src/cellspan.c (cell_calc_span) : improve const.

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

	* src/style-border.c (style_border_data) : DO NOT use width 0 lines
	  with dashes.  Strange offset problems happen when you do partial
	  redraws.

1786 1787
2001-02-06  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
1788 1789
	* src/workbook-private.c (workbook_private_new): Fix prototype.

1790 1791 1792 1793
	* src/commands.c (cmd_search_replace_destroy): Plug leak.
	(cmd_search_replace_do_cell): Implement string and error failure
 	modes (apart from a FIXME in the code).

Jon K Hellan's avatar
Jon K Hellan committed
1794 1795 1796 1797
2001-02-06  Jon K Hellan  <hellan@acm.org>

	* configure.in, README: Depend on bonobo >= 0.35.

1798 1799 1800 1801 1802 1803 1804 1805
2001-02-06  Almer S. Tigelaar  <almer1@dds.nl>

	* src/gui-clipboard.c (x_selection_to_cell_region):
	Use mstyle_new_default instead of mstyle_new.

	* src/preview-grid-controller.c (preview_grid_controller_new):
	No need to make a copy of the default mstyle.

1806
	* src/format-template.c (format_template_set_style):
1807
	Make sure the passed mstyle gets all it's elements set.
1808

1809 1810 1811 1812 1813 1814 1815
2001-02-06  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_borders_row_draw) : init x.
	(style_borders_row_print) : init x.

	* src/print-cell.c (print_cell_range) : typo.

1816 1817 1818 1819 1820
2001-02-06  Almer S. Tigelaar  <almer1@dds.nl>

	* src/gui-clipboard.c (x_selection_to_cell_region):
	Don't invoke the STF druid when pasting a single line. Fixes #21507.

Jon K Hellan's avatar
Jon K Hellan committed
1821 1822 1823 1824
2001-02-06  Jon K Hellan  <hellan@acm.org>

	* src/embeddable-grid.c (grid_view_new): Adapt to changes in bonobo.

1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836
2001-02-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (sheet_style_get_extent) : this should search the
	  entire sheet, not just decrease the extent passed in.

	* src/style-border.c (style_borders_row_draw) : new function.

	* src/print-cell.c (print_cell_grid) : delete.
	(print_cell_range) : sync with itemgrid.
	(print_merged_range) : ditto.
	(print_cell_background) : ditto.

1837 1838 1839 1840 1841 1842 1843
2001-02-05  Jody Goldberg <jgoldberg@home.com>

	* src/item-grid.c (item_grid_draw) : Off by one.
	(item_grid_draw_merged_range) : some simple optimization.  No need to
	  calc the coords for the entire cell unless we are painting the
	  content too.

1844 1845 1846 1847 1848
2001-02-05  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_borders_row_draw) : check for NULL even on
	  the last border.

1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869
2001-02-05  Jody Goldberg <jgoldberg@home.com>

	* src/style-border.c (style_border_hmargins) : built from the original
	(style_border_vmargins) : draw routines.
	(style_borders_row_draw) : a wrapper to draw a set of borders.

2001-02-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (style_row) : Handle the display of gridlines
	  here.

	* src/item-grid.c (item_grid_draw_merged_range) : prepare to do
	  borders & grids in a batch as part of the standard render process.
	(item_grid_draw) : Ditto.

2001-02-04  Jody Goldberg <jgoldberg@home.com>

	* src/preview-grid.c (preview_grid_realize) : no need for
	  visual_is_paletted.
	* src/item-grid.c (item_grid_realize) : ditto.

Jody Goldberg's avatar
Jody Goldberg committed
1870 1871 1872 1873 1874 1875
2001-02-03  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_workbook_read) : bump xml version to 6.
	(xml_read_style_region) : V6 uses set_range rather than the older
	  apply_range.  We now save/restore fully qualified styles.

1876 1877
2001-02-03  Jody Goldberg <jgoldberg@home.com>

1878 1879 1880 1881 1882 1883
	* src/sheet-object.c (sheet_objects_max_extent) : new routine.
	(sheet_object_destroy) : regen extent if necessary.

	* src/sheet-control-gui.c (scg_scrollbar_config) : Honour the object
	  max extent flag.

1884 1885 1886 1887 1888
	* src/gui-file.c (gui_file_import) : A successful import must have at
	  least 1 sheet.

	* src/file.c (do_load_from) : Check that a successful read actually
	  imported something.
Jody Goldberg's avatar
Jody Goldberg committed
1889

1890 1891 1892 1893 1894
	* src/gui-clipboard.c (x_selection_to_cell_region) : Init
	  CellRegion::merged.
	* src/stf-parse.c (stf_parse_region) : Ditto.
	* src/xml-io.c (xml_read_selection_clipboard) : Ditto.

Jody Goldberg's avatar
Jody Goldberg committed
1895 1896 1897 1898 1899
	* src/sheet-control-gui.c (scg_object_move) : split out from the
	  control point motion handler.
	(cb_control_point_event) : Use it here.
	(cb_slide_handler) : and here.

Jody Goldberg's avatar
Jody Goldberg committed
1900 1901
2001-02-01  Jody Goldberg <jgoldberg@home.com>

1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915
	* src/item-grid.c (item_grid_draw) : Last couple of intersection
	  cases.  We now draw correctly for the simple cases.  Grid lines are
	  handled incorrectly.  The error won't show up when drawing, but it
	  will when we do this for printing.  We should also be more careful
	  with the intersection cases for borders.  double check using borders
	  of different colours.

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

	* src/item-grid.c (cb_obj_create_button_release) : Use the new default
	  size routine.

	* src/sheet-object-impl.h : Add default_{width, height} to class.

1916 1917 1918 1919 1920
	* src/sheet-control-gui.c (scg_object_update_bbox) : when we select a
	  new object get its position.
	(cb_control_point_event) : This is a motion event.  Get rid of the
	  stupid statics.

Jody Goldberg's avatar
Jody Goldberg committed
1921 1922 1923 1924
	* src/sheet-merge.c (sheet_merge_remove) : free the range AFTER we
	  lookup the cell.  It is possible that the range is the same as the
	  argument and we still need it.

1925 1926
	* src/item-grid.c (item_grid_draw) : Init the extra horizontals
	  in the next two rows.
Jody Goldberg's avatar
Jody Goldberg committed
1927

1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940
2001-02-01  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_get_extent) : don't call style_extent.  The
	  caller can do that if desired.

	* src/item-grid.c (item_grid_draw) : Use the new drawing code.

	* src/style-border.c (style_border_fetch) : init 'width'
	(style_border_set_gc_dash) : Use 'CAP_NOT_LAST' to get consistent
	  behavior with width 0 and width > 0 lines.
	(style_border_hdraw) : implement.
	(style_border_vdraw) : implement.

1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953
2001-01-31  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_search_replace): Revert previous interface
 	change (and use a callback instead).  Commands should not know
 	about user interfaces.

	* src/workbook-control-gui.c (wbcg_paste_special_enable): Fix
 	Bonobo case, I hope.
	(cb_edit_search_replace_query): New function.
	(cb_edit_search_replace): Connect cb_edit_search_replace_query.

	* src/item-grid.c (item_grid_draw): Kill a few (real) warnings.

1954 1955 1956 1957
2001-01-31  Almer S. Tigelaar  <almer1@dds.nl>

 	* src/sheet.h :
 	Remove all menu item state flags.
1958

1959 1960
 	* src/sheet-private.h:
 	Put the menu item state flags here.
1961

1962 1963 1964 1965 1966 1967 1968
 	* src/workbook-control-gui.c:
 	(wbcg_paste_special_enable): Remove the second argument to
 	this function. Instead read this directly out of the flags. Add sheet
	argument.
 	(wbcg_insert_cols_rows_enable): Ditto for the 3rd argument and
 	also remove the cols arguments so that one call will update both
 	row and column menu items. Also add sheet argument.
1969 1970

 	* src/workbook-control.c, src/workbook-control.h,
1971 1972
	src/workbook-control-priv.h:
 	Adjust arguments to wbcg_paste_special_enable and insert_cols_rows.
1973

1974 1975 1976 1977 1978
 	* src/application.c:
	(application_clipboard_copy): First set the paste special flag
 	and don't pass argument to paste_special_enable.
 	(application_clipboard_cut): Ditto.
 	(application_clipboard_clear): Ditto.
1979

1980
 	* src/workbook-view.c:
1981 1982 1983
 	(wb_view_menus_update): Update to don't pass flags as argument,
 	don't do separate calls for cols and rows and optimize to do all
 	calls in one loop.
1984

1985 1986 1987 1988
 	* src/selection.c:
 	(sheet_selection_set_internal): Disable or enable insert cols/rows,
 	update UI only when neccessary and rename label for clarity.
 	(sheet_selection_reset): Enable insert cols/rows flags.
1989

1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000
2001-01-31  Morten Welinder  <terra@diku.dk>

	* src/search.c (search_replace_verify): For regexps, validate the
 	replacement string.
	(search_replace_compile): Detect whether replacement text is
 	literal (modulo case of letters).

	* src/commands.c (cmd_search_replace): Take a wbcg so we can pop
 	up dialogs.
	(cmd_search_replace_do_cell): Implement "Fail" error mode.

2001 2002 2003 2004 2005 2006
2001-01-30  Jody Goldberg <jgoldberg@home.com>

	* src/preview-grid-controller.c (preview_grid_controller_force_redraw)
	  work around overflow on BSD.
	* src/item-bar.c (item_bar_event) : ditto.

Jody Goldberg's avatar
typo.  
Jody Goldberg committed
2007 2008 2009 2010
2001-01-30  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_sheet_create) : typo.

2011 2012 2013 2014 2015 2016 2017
2001-01-30  Jody Goldberg <jgoldberg@home.com>

	s/float_t/gnum_float/
	s/int_t/gnum_int/

	* src/sheet-style.c (sheet_style_get_uniform) : implement.

Jody Goldberg's avatar
typo.  
Jody Goldberg committed
2018
	* src/parse-util.c (parse_text_value_or_expr) : dont lose the entered
2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038
	  text.

	* src/history.c (history_menu_insert_separator) : keep case
	  consistent.
	* src/workbook-control-gui.c (workbook_menu_file) : ditto.

	* configure.in : update GAL req.
	* README : ditto.
	* gnumeric.spec.in : ditto.

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

	* src/sheet-style.h : decl for StyleRow.

	* src/xml-io.c : Use the Child and Root aliases to ease ease
	  transition from xml1 -> xml2.
	(xml_sheet_create) : default name for sheets that fail to specify one.

	* src/workbook.c (workbook_sheet_by_index) : improve safety.

2039 2040
2001-01-30  Michael Meeks  <michael@helixcode.com>

2041
	* src/sheet-object-bonobo.c (sheet_object_bonobo_set_server):
2042 2043
	add a ref to the server, we seem to have lost one somewhere.

2044 2045 2046 2047
2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>

	* src/selection.c, src/selection.h:
	(sheet_selection_reset_only): Rename to sheet_selection_reset.
2048

2049 2050 2051 2052 2053 2054 2055 2056
	* src/cmd-edit.c: s/sheet_selection_reset_only/sheet_selection_reset.
	* src/commands.c: Ditto.
	* src/gnumeric-sheet.c: Ditto.
	* src/item-grid.c: Ditto.
	* src/sheet.c: Ditto.
	* src/sheet-control-gui.c: Ditto.
	* src/xml-io.c: Ditto.

2057 2058 2059
2001-01-29  Almer S. Tigelaar  <almer1@dds.nl>

	* src/sheet.h: Add flags for insert cols/rows and paste special.
2060 2061

	* src/selection.c
2062 2063
	(sheet_selection_add_range):
	Remove the settings of insert cols/rows here.
2064
	(sheet_selection_set_internal):
2065 2066 2067
	Set insert cols/rows menu items and flags correctly.
	(sheet_selection_reset_only): Reset insert cols/rows flags.

2068
	* src/application.c
2069 2070 2071 2072 2073
	(application_clipboard_clear): Set enable paste special flag.
	(application_clipboard_copy): Ditto.
	(application_clipboard_cut): Ditto.

	* src/workbook-view.c, src/workbook-view.h
2074
	(wb_view_menus_update): New function, updates the
2075 2076 2077 2078 2079 2080 2081
	insert cols/rows and paste special menu items.
	(wb_view_sheet_focus): Call menus_update here.
	(wb_view_sheet_add): Ditto.

	* src/workbook-control-gui.c
	(workbook_control_gui_init): Update menu items here.

Fatih Demir's avatar
Fatih Demir committed
2082 2083 2084 2085 2086
2001-01-29  Fatih Demir	<kabalak@gmx.net>

	* .cvsignore: Added the xml-i18n-* files and the intl
		subdir to the ignores.

2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100
2001-01-28  Zbigniew Chyla  <cyba@gnome.pl>

	* src/plugin.c, src/xml-io-autoft.c:
	s/xml_search_child/e_xml_get_child_by_name/
	s/xml_search_child_lang_list/e_xml_get_child_by_name_by_lang_list/

	* src/xml-io.[ch]:
	Removed function: xml_search_child.
	Functions moved to GAL:
	xml_search_child_lang_list_with_score,
	xml_search_child_lang_list,
	xml_search_child_no_lang.
	Use e_xml_get_child_by_name instead of xml_search_child everywhere.

2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116
2001-01-27  Zbigniew Chyla  <cyba@gnome.pl>

	Making Gnumeric -Werror friendly (well, almost).

	* plugins/excel/ms-chart.c: Added "#if 0/#endif" around declarations
	of unused variables.

	* plugins/gda/plugin-gda.c (display_recordset): Removed unused
	variable, fixed some errors (that's why I use -Werror).

	* plugins/xml2/xml2.c (init_plugin): Used xml2_probe function.

	* src/search.c: Included "ranges.h".

	* src/style.c: Included "sheet.h"

2117 2118 2119 2120 2121
2001-01-27  Zbigniew Chyla  <cyba@gnome.pl>

	* src/dialogs/plugin-manager.glade: Set policy to AUTOMATIC for some
	scrollbars.

2122 2123 2124 2125 2126 2127
2001-01-26  Zbigniew Chyla  <cyba@gnome.pl>

	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Added
	missing file_finish_load(). Displaying error dialog in non-bonobo
	version if file has unknown format.

2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139
2001-01-26  Jon K Hellan  <hellan@acm.org>

	* src/sheet-control-gui.[ch] (scg_rangesel_cursor_extend,
	  scg_take_focus): new functions to wrap direct calls to gsheet.

	* src/sheet-control-gui.c (sheet_view_destroy): Yield focus if we
	have it.

	* src/workbook-control-gui.c (wb_control_gui_focus_cur_sheet): Use
	scg_take_focus instead of gtk_window_set_focus.
	(yield_focus): Remove. sheet_view_destroy now takes care of this.
	(wbcg_sheet_add): Do not attach yield_focus.
2140

2141 2142 2143
	* src/item-grid.c (cb_extend_expr_range): Use
	scg_rangesel_cursor_extend instead of gnumeric_sheet version.

2144 2145 2146 2147 2148
2001-01-26  Michael Meeks  <michael@helixcode.com>

	* src/plugin.c (plugin_info_read): g_new0 the PluginInfo so the
	umpteen function pointers are NULL'd.

2149 2150 2151 2152 2153 2154
2001-01-25  Almer S. Tigelaar  <almer1@dds.nl>

        * src/workbook-control-priv.h: Remove insert struct, there
	is only one function in it anyway so no need for a struct.

	* src/workbook-control.c: Adjust for removal of the insert struct.
2155 2156

	* src/workbook-control-gui.c
2157
	(wbcg_paste_special_enable): Use change_menu_sensitivity.
2158 2159
	(workbook_control_gui_ctor_class): Adjust for removal of the
 	insert struct.
2160

Morten Welinder's avatar
Morten Welinder committed
2161 2162 2163 2164
2001-01-25  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_search_replace_update_after_action): Delete
 	unused variable.
2165
	(enum SearchReplaceItemType): retire SRI_expr.
Morten Welinder's avatar
Morten Welinder committed
2166 2167 2168 2169 2170 2171

	* src/parser.y (parse_ref_or_string): Constify.
	(gnumeric_parse_error): Fix prototype.
	(STRING '(' arg_list ')'): plug leak and use proper error
 	reporting method.

2172 2173 2174 2175 2176 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
2001-01-25  Zbigniew Chyla  <cyba@gnome.pl>

	* plugins/applix/boot.c plugins/dif/dif.c plugins/excel/boot.c
	plugins/gb/plugin.c plugins/gda/plugin-gda.c plugins/guile/plugin.c
	plugins/html/boot.c plugins/html/boot.h plugins/html/html.c
	plugins/html/html.h plugins/html/latex.c plugins/html/latex.h
	plugins/html/roff.c plugins/html/roff.h plugins/lotus-123/boot.c
	plugins/numtheory/numtheory.c plugins/oleo/boot.c
	plugins/plan-perfect/pln.c plugins/python/python.c plugins/sc/sc.c
	plugins/sylk/sylk.c plugins/xbase/boot.c plugins/xml2/xml2.c:
	Defined gnumeric_plugin_version variable containing Gnumeric version
	string for every plugin.
	Added user_data parameter to "probe", "open" and "save" functions.
	Changed PluginData to PluginInfo.
	Modified can_deactivate_plugin, cleanup_plugin and init_plugin
	functions to match new prototypes in plugin.h.
	Storing registered opener_id/saver_id in variables and using them
	while unregistering.

	* plugins/applix/Makefile.am plugins/dif/Makefile.am
	plugins/gda/Makefile.am plugins/html/Makefile.am
	plugins/lotus-123/Makefile.am plugins/numtheory/Makefile.am
	plugins/oleo/Makefile.am plugins/plan-perfect/Makefile.am
	plugins/sc/Makefile.am plugins/sylk/Makefile.am
	plugins/xbase/Makefile.am plugins/xml2/Makefile.am:
	Installing every plugin in separate directory, together with plugin
	descriptions (plugin.xml files).

	* plugins/applix/plugin.xml, plugins/dif/plugin.xml,
	plugins/gda/plugin.xml, plugins/html/plugin.xml,
	plugins/lotus-123/plugin.xml, plugins/numtheory/plugin.xml,
	plugins/oleo/plugin.xml, plugins/plan-perfect/plugin.xml,
	plugins/python/plugin.xml, plugins/sc/plugin.xml,
	plugins/sylk/plugin.xml, plugins/xbase/plugin.xml,
	plugins/xml2/plugin.xml:
	New files - plugin descriptions in XML files.

Chyla Zbigniew's avatar
Chyla Zbigniew committed
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
2001-01-25  Zbigniew Chyla  <cyba@gnome.pl>

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Added error-info.[ch]

	* error-info.[ch]: New files.

	* src/plugin.[ch]: New plugin engine.

	* src/dialogs/dialog-plugin-manager.c,
	src/dialogs/plugin-manager.glade,
	src/dialogs/plugin-manager.glade.h:
	New plugin manager.

	* src/main.c (gnumeric_main): Call plugins_shutdown() on shutdown.

	* src/bonobo-io.c
	(gnumeric_bonobo_write_workbook, gnumeric_bonobo_read_workbook,
	gnumeric_bonobo_io_probe): Added "user_data" arg.
	(gnumeric_bonobo_io_init): Saving saver/opener id.

	* src/file-autoft.c (gnumeric_extra_autoformat_dirs): Used
	gnumeric_config_get_string_list function.

	* src/file.c
	(file_format_register_open, file_format_register_save): Added
	user_data parameter, return FileOpenerId/FileSaverId.
	(file_format_unregister_open, file_format_unregister_save): Take
	only FileOpenerId/FileSaverId as parameter.
	(get_file_saver_by_id, get_file_opener_by_id): New functions.
	(do_load_from): Pass user_data parameter to "probe" and "open"
	functions.
	(workbook_save_as, workbook_save): Pass user_data parameter to "save"
	function.

	* src/file.h
	(FileFormatProbe, FileFormatOpen, FileFormatSave): Adder user_data
	parameter.
	(struct _FileOpener, struct _FileSaver): Added opener_id/saver_id
	field.
	(file_format_register_open, file_format_register_save):
	Added user_data parameter, return FileOpenerId/FileSaverId.
	(file_format_unregister_open, file_format_unregister_save):
	Take only FileOpenerId/FileSaverId as parameter.

	* src/gnumeric-util.[ch]
	(gnumeric_error_info_dialog_show, static ctree_insert_error_info):
	New functions displaying dialog with ErrorInfo contents.

	* src/gui-file.c (gui_file_import): Pass user_data parameter to
	"open" function.

	* src/gutils.[ch]
	New functions: gnumeric_config_get_string_list,
	gnumeric_config_set_string_list, g_string_list_copy,
	g_strsplit_to_list.
	(g_create_list): Added missing va_end().

	* src/stf.c (stf_read_workbook, stf_write_workbook): Added user_data
	parameter.

	* src/workbook.[ch] (workbook_set_saveinfo): Now takes file_saver_id
	instead of save_fn.

	* src/xml-io.c
	(xml_probe, gnumeric_xml_read_workbook, gnumeric_xml_write_workbook):
	Added user_data parameter.
	(xml_init): Store xml_opener_id and xml_saver_id.</