OChangeLog-2005-11-14 181 KB
Newer Older
Jody Goldberg's avatar
Jody Goldberg committed
1 2 3 4 5 6 7
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.

8 9 10 11 12 13
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.

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

16 17 18 19
	* 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.

20 21 22 23 24 25 26 27 28 29 30 31
	* 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.

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
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.
	
52 53 54 55 56 57 58 59 60 61 62 63 64 65
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.

66 67 68 69 70 71 72
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.

73 74 75 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 (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
90 91
2001-04-13  Jody Goldberg <jgoldberg@home.com>

92 93 94 95
	* 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
96 97 98
	* src/Makefile.am : workbook-control-bonobo is not ready for prime
	  time.

99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
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
114 115 116 117 118
2001-04-13  Jody Goldberg <jgoldberg@home.com>

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

119 120
2001-04-12  Jody Goldberg <jgoldberg@home.com>

121 122 123 124 125 126 127 128 129
	* 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.

130 131 132 133 134 135 136 137 138 139 140 141 142 143
	* 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
144 145 146 147
2001-04-12  Morten Welinder  <terra@diku.dk>

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

Jody Goldberg's avatar
53096  
Jody Goldberg committed
148 149 150 151 152 153
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.
154 155 156 157 158
	(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
159 160 161

	* src/sheet.c (sheet_col_row_gutter_pts) : simplify, no need to store
	  sizes in pts.  Outline level is enough.
162
	  s/sheet_col_row_gutter_pts/sheet_col_row_gutter/
Jody Goldberg's avatar
53096  
Jody Goldberg committed
163

Jody Goldberg's avatar
Jody Goldberg committed
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
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.

199 200 201 202
2001-04-04  Morten Welinder  <terra@diku.dk>

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

Morten Welinder's avatar
Morten Welinder committed
203 204 205 206
2001-04-04  Morten Welinder  <terra@diku.dk>

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

207 208 209 210 211 212 213
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.

214 215 216 217 218 219 220 221 222 223 224 225 226
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.

227 228 229 230 231 232 233 234 235
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.

236 237
2001-03-30  Jody Goldberg <jgoldberg@home.com>

238 239 240 241 242 243 244 245 246 247 248 249 250
	* 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.

251 252 253 254 255 256 257 258 259
	* 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.

260 261 262 263 264
2001-03-30  Zbigniew Chyla  <cyba@gnome.pl>

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

265 266 267 268 269
2001-03-29  Morten Welinder  <terra@diku.dk>

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

270 271 272 273 274 275 276 277 278 279 280 281
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.

282 283 284 285 286
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.

287 288 289 290 291 292 293 294 295
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.

296 297 298
	* sheet-priv.h (struct _SheetPrivate): Added auto_expr_idle_id
	field.

299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
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.
314 315
	(cmd_search_replace_undo, cmd_search_replace_redo): Fix for
 	missing cells with comments.
316

317 318 319 320 321 322 323
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.

324 325 326 327 328 329 330 331 332
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.

333 334 335 336
2001-03-23  Almer S. Tigelaar  <almer@gnome.org>

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

337 338 339 340 341
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
342 343 344 345
2001-03-21  Zbigniew Chyla  <cyba@gnome.pl>

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

346 347 348 349 350 351 352 353 354 355 356 357 358 359
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

360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 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
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
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
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.

447 448
2001-03-18  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
449 450 451
	* src/workbook-control-gui.c (wb_edit_key_pressed) : handle failure
	  cases better.

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

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

457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
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
518 519 520 521
2001-03-17  Jody Goldberg <jgoldberg@home.com>

	* Release 0.64

522 523 524 525 526
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.

527 528 529 530 531
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.

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

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

536 537 538 539 540 541
	* 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>
542

543 544
	* src/workbook-control-gui.c (workbook_setup_auto_calc) : the autoexpr
	  button can not take focus.
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559

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.

560 561
2001-03-11  Jody Goldberg <jgoldberg@home.com>

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

565 566 567 568 569 570 571 572 573 574 575 576 577
	* 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.

578 579 580 581 582 583 584
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.

585 586 587 588 589
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
590 591
2001-03-08  Jody Goldberg <jgoldberg@home.com>

592 593 594
	* 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
595 596
	* src/xml-io.c (xml_get_print_unit) : make units case sensitive.

597 598 599 600 601 602 603 604 605 606
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.

607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637
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.

638 639 640 641 642 643 644 645 646 647 648 649 650 651
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.

652 653 654 655 656
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
657 658 659 660
2001-03-03  Jody Goldberg <jgoldberg@home.com>

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

661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708
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
709 710 711 712 713 714 715
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

716 717 718 719 720 721 722 723 724 725
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.

726 727 728 729 730
2001-02-27  Almer S. Tigelaar  <almer@gnome.org>

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

731 732 733 734 735 736 737
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
Morten Welinder's avatar
Morten Welinder committed
738 739
	(cmd_colrow_std_size_undo) : New, Undo for the std
 	row-height/col-width setting.
740 741
	(cmd_colrow_std_size_redo) : Idem, for redo.
	(cmd_colrow_std_size_destroy) : Idem.
Morten Welinder's avatar
Morten Welinder committed
742 743 744
	(cmd_colrow_std_size) : Entry point for std row-height/col-width
 	command.

745 746
2001-02-25  Jody Goldberg <jgoldberg@home.com>

747 748 749
	* src/workbook-control-gui.c (zoom_changed) : round the zoom factor
	  before displaying.

750 751 752
	* src/selection.c (sheet_selection_set_internal) : when the selection
	  shrinks and no longer selects full cols/rows redraw the union.

753 754 755 756 757
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
758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778
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.

779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817
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.

Morten Welinder's avatar
Morten Welinder committed
818 819
	* plugins/excel/boot.c (excel_save_95, excel_save_98, excel_save,
 	excel_probe, excel_load): Signature changes.
820 821 822 823

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

824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 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
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.

951 952 953 954 955 956
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.

957 958 959 960 961 962
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
Morten Welinder's avatar
Morten Welinder committed
963 964
	(wbcg_menu_state_sheet_count) : New, Take care of sheet counts
 	dependant gui elements like the sheet remove/re-order menus.
965 966
	(wbcg_sheet_add) : Call menu_state_sheet_count from here.
	(wbcg_sheet_remove) : Idem.
Morten Welinder's avatar
Morten Welinder committed
967 968 969
	(workbook_control_gui_init) : Initialize the remove and re-order
 	menu-items.

970 971 972 973 974
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.
975
	(workbook_control_gui_init) : Be anal and init this just in case.
976

977 978 979 980 981 982 983 984 985
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.

986
2001-02-23  Jody Goldberg <jgoldberg@home.com>
Morten Welinder's avatar
Morten Welinder committed
987

988 989 990 991 992 993
 	* 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.
Morten Welinder's avatar
Morten Welinder committed
994

995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
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
1033 1034 1035 1036
2001-02-23  Jody Goldberg <jgoldberg@home.com>

	* Release 0.63

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

1039 1040 1041
	* src/item-grid.c (item_grid_draw_merged_range) : check for background
	  before checking for selection.

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

1045 1046 1047 1048
	* 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.

1049 1050 1051 1052
	* 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.

1053 1054 1055
	* src/print-cell.c (print_cell_range) : Use the hide_grid from the
	  print flags not the sheet itself.

1056 1057 1058 1059 1060
	* src/print.c (print_page_cells) : We now pass 'HideGridLines' so
	  invert the logic.

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

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

1063 1064 1065 1066 1067 1068 1069 1070
	* 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
1071 1072
	* src/expr.c (eval_expr_real) : fix old typo.

1073 1074 1075 1076 1077
	* src/commands.c (cmd_unmerge_cells_init) : add simple test to avoid
	  merging singletons.
	(cmd_unmerge_cells) : check for failure.
	(cmd_merge_cells) : ditto.

1078 1079 1080 1081 1082 1083
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.

1084 1085
2001-02-21  Jody Goldberg <jgoldberg@home.com>

1086 1087 1088 1089
	* 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.

1090 1091 1092
	* src/sheet-style.c (sheet_style_insert_colrow) : When inserting
	  before the first row/col use the style from A/1.

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

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

1111 1112 1113 1114
2001-01-20  John Gotts  <jgotts@linuxsavvy.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
1115 1116 1117 1118
2001-02-20  Jody Goldberg <jgoldberg@home.com>

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

1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129
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.

1130 1131 1132 1133 1134
2001-02-20  Jon K Hellan  <hellan@acm.org>

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

1135 1136 1137 1138 1139 1140
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.)

1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151
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
1152 1153 1154 1155
2001-02-20  Morten Welinder  <terra@diku.dk>

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

1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177
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
1178 1179 1180 1181 1182 1183 1184 1185 1186
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.

1187 1188 1189 1190 1191
2001-02-19  Morten Welinder  <terra@diku.dk>

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

1192 1193
2001-02-19  Jody Goldberg <jgoldberg@home.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
1197 1198 1199 1200 1201
	* src/workbook-control-gui.c (show_gui) : kill warning.

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

1202 1203 1204
	* 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
1205
	(TOGGLE_HANDLER) : util macro to simplify gnome/bonobo transition.
1206 1207
	(workbook_control_gui_init) : use TOGGLE_REGISTER for the bonobo case.

1208 1209 1210 1211 1212
2001-02-19  Jon K Hellan  <hellan@acm.org>

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

1213 1214 1215 1216 1217 1218 1219 1220
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
enable.  
Jody Goldberg committed
1221 1222 1223 1224 1225 1226 1227 1228
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.

1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
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
delete.  
Jody Goldberg committed
1242 1243 1244 1245 1246 1247 1248 1249 1250 1251
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
1252 1253 1254 1255 1256 1257 1258 1259
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
1260
	* src/workbook-edit.c (workbook_finish_editing) : Editing is local to
Jody Goldberg's avatar
Jody Goldberg committed
1261 1262 1263 1264 1265 1266 1267 1268 1269
	  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.

1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285
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.

Morten Welinder's avatar
Morten Welinder committed
1286
	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 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
	  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.

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1342 1343 1344 1345 1346
2001-02-18  Almer S. Tigelaar  <almer1@dds.nl>

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

	* src/workbook-control-gui.c :
Morten Welinder's avatar
Morten Welinder committed
1347 1348 1349 1350 1351 1352
	(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.
Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1353 1354

	* src/workbook-control-gui.h : Add menu_item_insert_cells.
Morten Welinder's avatar
Morten Welinder committed
1355 1356 1357 1358 1359

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

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1360
	* src/selection.c
Morten Welinder's avatar
Morten Welinder committed
1361
	(sheet_selection_set_internal) : If the whole sheet is selected,
Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1362 1363 1364 1365 1366
	disable Insert->Cells. Otherwise enable it.
	(sheet_selection_reset) : Enable Insert->Cells.

 	* src/workbook-view.c
 	(wb_view_menus_update) : Update Insert->Cells too.
Morten Welinder's avatar
Morten Welinder committed
1367

1368 1369 1370 1371 1372
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
1373 1374
2001-02-17  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1375 1376 1377
	* src/commands.c (cmd_clear_undo) : reset the selection to queue a
	  redraw.

1378 1379
	* 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
1380
	* src/print-cell.c (print_cell) : ditto.
1381 1382 1383 1384 1385

	* 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
1386 1387
	* src/print-cell.c (print_cell_range) : ditto.
	(print_merged_range) : ditto.
1388 1389 1390 1391 1392 1393

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
1394 1395 1396 1397 1398 1399 1400
	* 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.

1401 1402
2001-02-17  Almer S. Tigelaar  <almer1@dds.nl>

Morten Welinder's avatar
Morten Welinder committed
1403
	* src/commands.c
1404 1405 1406 1407 1408
	(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.
Morten Welinder's avatar
Morten Welinder committed
1409 1410

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

1413 1414 1415 1416 1417 1418 1419
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.

1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434
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
1435 1436 1437 1438
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* Release 0.62

Jody Goldberg's avatar
Jody Goldberg committed
1439 1440 1441 1442
2001-02-16  Jody Goldberg <jgoldberg@home.com>

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

1443 1444 1445 1446 1447 1448 1449 1450 1451
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
1452 1453 1454 1455
2001-02-15  Jody Goldberg <jgoldberg@home.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
1456 1457 1458 1459 1460
2001-02-15  Jody Goldberg <jgoldberg@home.com>

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

1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484
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

1485 1486 1487
2001-02-15  Almer S. Tigelaar  <almer1@dds.nl>

	* preview-grid-controller.c
Morten Welinder's avatar
Morten Welinder committed
1488 1489 1490 1491 1492 1493 1494
	(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.
1495

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

1498 1499 1500 1501 1502 1503 1504
	* 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.

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

Jody Goldberg's avatar
delete.  
Jody Goldberg committed
1507 1508 1509 1510 1511 1512 1513
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.
Morten Welinder's avatar
Morten Welinder committed
1514
	(preview_grid_draw) : for use here.
Jody Goldberg's avatar
delete.  
Jody Goldberg committed
1515 1516 1517 1518 1519 1520

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

1521 1522 1523 1524 1525
2001-02-14  Jody Goldberg <jgoldberg@home.com>

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

1526 1527 1528 1529
2001-02-14  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction to libglade requirement.

1530 1531 1532 1533 1534 1535 1536
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.

1537 1538 1539 1540 1541 1542
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.

1543 1544 1545 1546 1547
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.
Morten Welinder's avatar
Morten Welinder committed
1548

Karl Eichwalder's avatar
Karl Eichwalder committed
1549 1550 1551 1552 1553
2001-02-14  Karl Eichwalder  <ke@suse.de>

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

1554 1555 1556 1557 1558
2001-02-13  Jody Goldberg <jgoldberg@home.com>

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

1559 1560 1561 1562 1563 1564
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.

1565 1566 1567 1568 1569
2001-02-13  Jody Goldberg <jgoldberg@home.com>

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

1570 1571 1572 1573
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
1574

1575 1576
	* 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
1577

1578 1579 1580 1581 1582 1583
	* 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
1584 1585 1586 1587
2001-02-12  Karl Eichwalder  <ke@suse.de>

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

1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608
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.

1609 1610 1611 1612 1613 1614 1615
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
1616 1617
2001-02-11  Karl Eichwalder  <ke@suse.de>

Karl Eichwalder's avatar
Karl Eichwalder committed
1618
	* src/main.c: s/behaviour/behavior/ and s/colours/colors/ .
Karl Eichwalder's avatar
Typo.  
Karl Eichwalder committed
1619
	Typo.
Karl Eichwalder's avatar
Karl Eichwalder committed
1620

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1621 1622 1623 1624
2001-02-11  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction for GAL.

1625 1626 1627 1628 1629 1630 1631
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
1632 1633 1634 1635 1636 1637
2001-02-11  Jody Goldberg <jgoldberg@home.com>

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

1638 1639 1640 1641 1642 1643 1644
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).

1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656
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.

1657 1658
2001-02-10  Jody Goldberg <jgoldberg@home.com>

1659 1660 1661
	* src/workbook-control-gui.c (insert_bonobo_object) : help
	  translators.

1662 1663 1664
	* src/sheet-style.c (foreach_tile) : Only apply to applicable row or
	  col tile segments.

Jeffrey Stedfast's avatar
Jeffrey Stedfast committed
1665
2001-02-09  Jeffrey Stedfast  <fejj@ximian.com>
Morten Welinder's avatar
Morten Welinder committed
1666

Jeffrey Stedfast's avatar
Jeffrey Stedfast committed
1667 1668 1669 1670
	* src/print.c: include ranges.h

	* src/expr.c: include gutils.h

Jody Goldberg's avatar
Jody Goldberg committed
1671 1672 1673 1674 1675 1676 1677
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.

1678 1679
2001-02-08  Jon K Hellan  <hellan@acm.org>

Morten Welinder's avatar
Morten Welinder committed
1680
	* src/embeddable-grid.[ch]: Adapt to more Bonobo changes.
1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694

	* 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):

1695 1696
2001-02-08  Almer S. Tigelaar  <almer1@dds.nl>

Morten Welinder's avatar
Morten Welinder committed
1697 1698
	* 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
1699
	reading them out of the Sheet directly.
Morten Welinder's avatar
Morten Welinder committed
1700 1701

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

1704 1705 1706 1707 1708
2001-02-08  Morten Welinder  <terra@diku.dk>

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

1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719
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.

1720 1721 1722 1723 1724
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.

1725 1726 1727 1728 1729 1730 1731
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
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747
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.

1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761
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.

1762 1763
2001-02-06  Morten Welinder  <terra@diku.dk>

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

1766 1767 1768 1769
	* 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
1770 1771 1772 1773
2001-02-06  Jon K Hellan  <hellan@acm.org>

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

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

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

1785 1786 1787 1788 1789 1790 1791
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.

1792 1793 1794 1795 1796
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
1797 1798 1799 1800
2001-02-06  Jon K Hellan  <hellan@acm.org>

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

1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812
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.

1813 1814 1815 1816 1817 1818 1819
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.

1820 1821 1822 1823 1824
2001-02-05  Jody Goldberg <jgoldberg@home.com>

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

1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845
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
1846 1847 1848 1849 1850 1851
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.

1852 1853
2001-02-03  Jody Goldberg <jgoldberg@home.com>

1854 1855 1856 1857 1858 1859
	* 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.

1860 1861 1862 1863 1864
	* 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
1865

1866 1867 1868 1869 1870
	* 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.