OChangeLog-2003-12-23 164 KB
Newer Older
1 2 3 4 5
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.

6 7 8 9 10
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.

11 12 13 14 15 16 17 18
2001-03-14  Jody Goldberg <jgoldberg@home.com>

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

20 21
	* src/workbook-control-gui.c (workbook_setup_auto_calc) : the autoexpr
	  button can not take focus.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

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.

37 38
2001-03-11  Jody Goldberg <jgoldberg@home.com>

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

42 43 44 45 46 47 48 49 50 51 52 53 54
	* 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.

55 56 57 58 59 60 61
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.

62 63 64 65 66
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
67 68
2001-03-08  Jody Goldberg <jgoldberg@home.com>

69 70 71
	* 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
72 73
	* src/xml-io.c (xml_get_print_unit) : make units case sensitive.

74 75 76 77 78 79 80 81 82 83
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.

84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
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.

115 116 117 118 119 120 121 122 123 124 125 126 127 128
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.

129 130 131 132 133
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
134 135 136 137
2001-03-03  Jody Goldberg <jgoldberg@home.com>

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

138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
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
186 187 188 189 190 191 192
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

193 194 195 196 197 198 199 200 201 202
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.

203 204 205 206 207
2001-02-27  Almer S. Tigelaar  <almer@gnome.org>

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

208 209 210 211 212 213 214
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
215 216
	(cmd_colrow_std_size_undo) : New, Undo for the std
 	row-height/col-width setting.
217 218
	(cmd_colrow_std_size_redo) : Idem, for redo.
	(cmd_colrow_std_size_destroy) : Idem.
Morten Welinder's avatar
Morten Welinder committed
219 220 221
	(cmd_colrow_std_size) : Entry point for std row-height/col-width
 	command.

222 223
2001-02-25  Jody Goldberg <jgoldberg@home.com>

224 225 226
	* src/workbook-control-gui.c (zoom_changed) : round the zoom factor
	  before displaying.

227 228 229
	* src/selection.c (sheet_selection_set_internal) : when the selection
	  shrinks and no longer selects full cols/rows redraw the union.

230 231 232 233 234
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
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
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.

256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
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
295 296
	* plugins/excel/boot.c (excel_save_95, excel_save_98, excel_save,
 	excel_probe, excel_load): Signature changes.
297 298 299 300

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

301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 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
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.

428 429 430 431 432 433
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.

434 435 436 437 438 439
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
440 441
	(wbcg_menu_state_sheet_count) : New, Take care of sheet counts
 	dependant gui elements like the sheet remove/re-order menus.
442 443
	(wbcg_sheet_add) : Call menu_state_sheet_count from here.
	(wbcg_sheet_remove) : Idem.
Morten Welinder's avatar
Morten Welinder committed
444 445 446
	(workbook_control_gui_init) : Initialize the remove and re-order
 	menu-items.

447 448 449 450 451
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.
452
	(workbook_control_gui_init) : Be anal and init this just in case.
453

454 455 456 457 458 459 460 461 462
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.

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

465 466 467 468 469 470
 	* 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
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
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
510 511 512 513
2001-02-23  Jody Goldberg <jgoldberg@home.com>

	* Release 0.63

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

516 517 518
	* src/item-grid.c (item_grid_draw_merged_range) : check for background
	  before checking for selection.

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

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

526 527 528 529
	* 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.

530 531 532
	* src/print-cell.c (print_cell_range) : Use the hide_grid from the
	  print flags not the sheet itself.

533 534 535 536 537
	* src/print.c (print_page_cells) : We now pass 'HideGridLines' so
	  invert the logic.

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

538 539
2001-02-22  Jody Goldberg <jgoldberg@home.com>

540 541 542 543 544 545 546 547
	* 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
548 549
	* src/expr.c (eval_expr_real) : fix old typo.

550 551 552 553 554
	* src/commands.c (cmd_unmerge_cells_init) : add simple test to avoid
	  merging singletons.
	(cmd_unmerge_cells) : check for failure.
	(cmd_merge_cells) : ditto.

555 556 557 558 559 560
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.

561 562
2001-02-21  Jody Goldberg <jgoldberg@home.com>

563 564 565 566
	* 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.

567 568 569
	* src/sheet-style.c (sheet_style_insert_colrow) : When inserting
	  before the first row/col use the style from A/1.

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

573 574 575 576 577
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
578 579 580 581 582 583 584 585 586 587
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.

588 589 590 591
2001-01-20  John Gotts  <jgotts@linuxsavvy.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
592 593 594 595
2001-02-20  Jody Goldberg <jgoldberg@home.com>

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

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

607 608 609 610 611
2001-02-20  Jon K Hellan  <hellan@acm.org>

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

612 613 614 615 616 617
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.)

618 619 620 621 622 623 624 625 626 627 628
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
629 630 631 632
2001-02-20  Morten Welinder  <terra@diku.dk>

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

633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654
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
655 656 657 658 659 660 661 662 663
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.

664 665 666 667 668
2001-02-19  Morten Welinder  <terra@diku.dk>

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

669 670
2001-02-19  Jody Goldberg <jgoldberg@home.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
674 675 676 677 678
	* src/workbook-control-gui.c (show_gui) : kill warning.

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

679 680 681
	* 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
682
	(TOGGLE_HANDLER) : util macro to simplify gnome/bonobo transition.
683 684
	(workbook_control_gui_init) : use TOGGLE_REGISTER for the bonobo case.

685 686 687 688 689
2001-02-19  Jon K Hellan  <hellan@acm.org>

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

690 691 692 693 694 695 696 697
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
698 699 700 701 702 703 704 705
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.

706 707 708 709 710 711 712 713 714 715 716 717 718
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
719 720 721 722 723 724 725 726 727 728
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
729 730 731 732 733 734 735 736
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
737
	* src/workbook-edit.c (workbook_finish_editing) : Editing is local to
Jody Goldberg's avatar
Jody Goldberg committed
738 739 740 741 742 743 744 745 746
	  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.

747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762
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
763
	* src/preview-grid.c (preview_grid_draw) : cell_draw::h_center
764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818
	  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
819 820 821 822 823
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
824 825 826 827 828 829
	(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
830 831

	* src/workbook-control-gui.h : Add menu_item_insert_cells.
Morten Welinder's avatar
Morten Welinder committed
832 833 834 835 836

	* 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
837
	* src/selection.c
Morten Welinder's avatar
Morten Welinder committed
838
	(sheet_selection_set_internal) : If the whole sheet is selected,
Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
839 840 841 842 843
	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
844

845 846 847 848 849
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
850 851
2001-02-17  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
852 853 854
	* src/commands.c (cmd_clear_undo) : reset the selection to queue a
	  redraw.

855 856
	* 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
857
	* src/print-cell.c (print_cell) : ditto.
858 859 860 861 862

	* 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
863 864
	* src/print-cell.c (print_cell_range) : ditto.
	(print_merged_range) : ditto.
865 866 867 868 869 870

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
871 872 873 874 875 876 877
	* 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.

878 879
2001-02-17  Almer S. Tigelaar  <almer1@dds.nl>

Morten Welinder's avatar
Morten Welinder committed
880
	* src/commands.c
881 882 883 884 885
	(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
886 887

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

890 891 892 893 894 895 896
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.

897 898 899 900 901 902 903 904 905 906 907 908 909 910 911
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
912 913 914 915
2001-02-16  Jody Goldberg <jgoldberg@home.com>

	* Release 0.62

Jody Goldberg's avatar
Jody Goldberg committed
916 917 918 919
2001-02-16  Jody Goldberg <jgoldberg@home.com>

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

920 921 922 923 924 925 926 927 928
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
929 930 931 932
2001-02-15  Jody Goldberg <jgoldberg@home.com>

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

Jody Goldberg's avatar
Jody Goldberg committed
933 934 935 936 937
2001-02-15  Jody Goldberg <jgoldberg@home.com>

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

938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961
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

962 963 964
2001-02-15  Almer S. Tigelaar  <almer1@dds.nl>

	* preview-grid-controller.c
Morten Welinder's avatar
Morten Welinder committed
965 966 967 968 969 970 971
	(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.
972

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

975 976 977 978 979 980 981
	* 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.

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

Jody Goldberg's avatar
delete.  
Jody Goldberg committed
984 985 986 987 988 989 990
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
991
	(preview_grid_draw) : for use here.
Jody Goldberg's avatar
delete.  
Jody Goldberg committed
992 993 994 995 996 997

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

998 999 1000 1001 1002
2001-02-14  Jody Goldberg <jgoldberg@home.com>

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

1003 1004 1005 1006
2001-02-14  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction to libglade requirement.

1007 1008 1009 1010 1011 1012 1013
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.

1014 1015 1016 1017 1018 1019
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.

1020 1021 1022 1023 1024
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
1025

Karl Eichwalder's avatar
Karl Eichwalder committed
1026 1027 1028 1029 1030
2001-02-14  Karl Eichwalder  <ke@suse.de>

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

1031 1032 1033 1034 1035
2001-02-13  Jody Goldberg <jgoldberg@home.com>

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

1036 1037 1038 1039 1040 1041
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.

1042 1043 1044 1045 1046
2001-02-13  Jody Goldberg <jgoldberg@home.com>

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

1047 1048 1049 1050
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
1051

1052 1053
	* 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
1054

1055 1056 1057 1058 1059 1060
	* 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
1061 1062 1063 1064
2001-02-12  Karl Eichwalder  <ke@suse.de>

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

1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
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.

1086 1087 1088 1089 1090 1091 1092
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
1093 1094
2001-02-11  Karl Eichwalder  <ke@suse.de>

Karl Eichwalder's avatar
Karl Eichwalder committed
1095
	* src/main.c: s/behaviour/behavior/ and s/colours/colors/ .
Karl Eichwalder's avatar
Typo.  
Karl Eichwalder committed
1096
	Typo.
Karl Eichwalder's avatar
Karl Eichwalder committed
1097

Almer S. Tigelaar's avatar
Almer S. Tigelaar committed
1098 1099 1100 1101
2001-02-11  Almer S. Tigelaar  <almer1@dds.nl>

	* configure.in: Small correction for GAL.

1102 1103 1104 1105 1106 1107 1108
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
1109 1110 1111 1112 1113 1114
2001-02-11  Jody Goldberg <jgoldberg@home.com>

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

1115 1116 1117 1118 1119 1120 1121
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).

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

1134 1135
2001-02-10  Jody Goldberg <jgoldberg@home.com>

1136 1137 1138
	* src/workbook-control-gui.c (insert_bonobo_object) : help
	  translators.

1139 1140 1141
	* src/sheet-style.c (foreach_tile) : Only apply to applicable row or
	  col tile segments.

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

Jeffrey Stedfast's avatar
Jeffrey Stedfast committed
1144 1145 1146 1147
	* src/print.c: include ranges.h

	* src/expr.c: include gutils.h

Jody Goldberg's avatar
Jody Goldberg committed
1148 1149 1150 1151 1152 1153 1154
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.

1155 1156
2001-02-08  Jon K Hellan  <hellan@acm.org>

Morten Welinder's avatar
Morten Welinder committed
1157
	* src/embeddable-grid.[ch]: Adapt to more Bonobo changes.
1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171

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

1172 1173
2001-02-08  Almer S. Tigelaar  <almer1@dds.nl>

Morten Welinder's avatar
Morten Welinder committed
1174 1175
	* 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
1176
	reading them out of the Sheet directly.
Morten Welinder's avatar
Morten Welinder committed
1177 1178

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

1181 1182 1183 1184 1185
2001-02-08  Morten Welinder  <terra@diku.dk>

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

1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196
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.

1197 1198 1199 1200 1201
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.

1202 1203 1204 1205 1206 1207 1208
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
1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224
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.

1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238
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.

1239 1240
2001-02-06  Morten Welinder  <terra@diku.dk>

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

1243 1244 1245 1246
	* 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
1247 1248 1249 1250
2001-02-06  Jon K Hellan  <hellan@acm.org>

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

1251 1252 1253 1254 1255 1256 1257 1258
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.

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

1262 1263 1264 1265 1266 1267 1268
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.

1269 1270 1271 1272 1273
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
1274 1275 1276 1277
2001-02-06  Jon K Hellan  <hellan@acm.org>

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

1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289
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.

1290 1291 1292 1293 1294 1295 1296
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.

1297 1298 1299 1300 1301
2001-02-05  Jody Goldberg <jgoldberg@home.com>

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

1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322
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
1323 1324 1325 1326 1327 1328
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.

1329 1330
2001-02-03  Jody Goldberg <jgoldberg@home.com>

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

1337 1338 1339 1340 1341
	* 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
1342

1343 1344 1345 1346 1347
	* 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
1348 1349 1350 1351 1352
	* 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
1353 1354
2001-02-01  Jody Goldberg <jgoldberg@home.com>

1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368
	* 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.

1369 1370 1371 1372 1373
	* 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
1374 1375 1376 1377
	* 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.

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

1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393
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.

1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406
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.

1407 1408 1409 1410
2001-01-31  Almer S. Tigelaar  <almer1@dds.nl>

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

1412 1413
 	* src/sheet-private.h:
 	Put the menu item state flags here.
1414

1415 1416 1417 1418 1419 1420 1421
 	* 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.
1422 1423

 	* src/workbook-control.c, src/workbook-control.h,
1424 1425
	src/workbook-control-priv.h:
 	Adjust arguments to wbcg_paste_special_enable and insert_cols_rows.
1426

1427 1428 1429 1430 1431
 	* 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.
1432

1433
 	* src/workbook-view.c:
Morten Welinder's avatar
Morten Welinder committed
1434 1435 1436
 	(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.
1437

1438 1439 1440 1441
 	* 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.
1442

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

1454 1455 1456 1457 1458 1459
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
1460 1461 1462 1463
2001-01-30  Jody Goldberg <jgoldberg@home.com>

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

1464 1465 1466 1467 1468 1469 1470
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
1471
	* src/parse-util.c (parse_text_value_or_expr) : dont lose the entered
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491
	  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.

1492 1493
2001-01-30  Michael Meeks  <michael@helixcode.com>

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

1497 1498 1499 1500
2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>

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

1502 1503 1504 1505 1506 1507 1508 1509
	* 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.

1510 1511 1512
2001-01-29  Almer S. Tigelaar  <almer1@dds.nl>

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

	* src/selection.c
1515 1516
	(sheet_selection_add_range):
	Remove the settings of insert cols/rows here.
1517
	(sheet_selection_set_internal):
1518 1519 1520
	Set insert cols/rows menu items and flags correctly.
	(sheet_selection_reset_only): Reset insert cols/rows flags.

1521
	* src/application.c
1522 1523 1524 1525 1526
	(application_clipboard_clear): Set enable paste special flag.
	(application_clipboard_copy): Ditto.
	(application_clipboard_cut): Ditto.

	* src/workbook-view.c, src/workbook-view.h
1527
	(wb_view_menus_update): New function, updates the
1528 1529 1530 1531 1532 1533 1534
	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
1535 1536 1537 1538 1539
2001-01-29  Fatih Demir	<kabalak@gmx.net>

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

1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553
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.

1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569
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"

1570 1571 1572 1573 1574
2001-01-27  Zbigniew Chyla  <cyba@gnome.pl>

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

1575 1576 1577 1578 1579 1580
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.

1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592
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.
1593

1594 1595 1596
	* src/item-grid.c (cb_extend_expr_range): Use
	scg_rangesel_cursor_extend instead of gnumeric_sheet version.

1597 1598 1599 1600 1601
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.

1602 1603 1604 1605 1606 1607
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.
1608 1609

	* src/workbook-control-gui.c
1610
	(wbcg_paste_special_enable): Use change_menu_sensitivity.
Morten Welinder's avatar
Morten Welinder committed
1611 1612
	(workbook_control_gui_ctor_class): Adjust for removal of the
 	insert struct.
1613

Morten Welinder's avatar
Morten Welinder committed
1614 1615 1616 1617
2001-01-25  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_search_replace_update_after_action): Delete
 	unused variable.
1618
	(enum SearchReplaceItemType): retire SRI_expr.
Morten Welinder's avatar
Morten Welinder committed
1619 1620 1621 1622 1623 1624

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

1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661
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
1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731
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.
	(gnumeric_xml_get_opener_id, gnumeric_xml_get_saver_id): New
	functions.

1732 1733 1734
2001-01-25  Almer S. Tigelaar  <almer1@dds.nl>

	* src/clipboard.h : Add PASTE_UPDATE_ROW_HEIGHT as a new paste flag.
1735 1736

	* src/commands.c
1737 1738 1739 1740 1741 1742 1743 1744
	(cmd_paste_copy_undo): Add PASTE_UPDATE_ROW_HEIGHT to the paste flags.
	(cmd_paste_cut_redo): Update the row heights of the target region after
	pasting for consistency with the behaviour of copy.
	(cmd_paste_cut): Show source cut range in undo descriptor.

	* src/clipboard.c (clipboard_paste_region): Update row height after
	pasting if PASTE_UPDATE_ROW_HEIGHT flag is given.

Jody Goldberg's avatar
Jody Goldberg committed
1745 1746 1747 1748 1749 1750 1751 1752 1753
2001-01-25  Jody Goldberg <jgoldberg@home.com>

	* src/cmd-edit.c (cmd_paste_to_selection) : allow merged regions

	* src/clipboard.c (clipboard_paste_region) : Optionally paste merged
	  regions too.

	* src/style-border.c (style_border_fetch) : add margins.

Morten Welinder's avatar
Morten Welinder committed
1754 1755 1756 1757 1758 1759 1760 1761 1762 1763
2001-01-24  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_search_replace_update_after_action): New
 	function.
	(cmd_search_replace_undo, cmd_search_replace_redo,
 	cmd_search_replace_do): Call
 	cmd_search_replace_update_after_action.
	(cmd_search_replace_do_cell): Change to work on entered text which
 	is, we believe, what XL does.

1764 1765 1766 1767 1768 1769 1770 1771 1772 1773
2001-01-24  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-style.c (sheet_style_get_uniform) : disable stupid cruft
	  until I actually write this function.

	* src/format-template.c (format_template_recalc_hash) : remove the
	  cruft to apply shifted borders.

	* src/gnumeric.xml : Define font Underline/Italic as toggles.

1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793
2001-01-24  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (clipboard_copy_range) : save the merged regions.
	(clipboard_release) : cleanup merged regions.

	* src/commands.c (cmd_merge_cells_redo) : move the non-corner content
	  clearing from here.
	* src/sheet-merge.c (sheet_merge_add) : to here.  Apply the style from
	  the corner to the entire region.

	* src/sheet.c (sheet_range_set_text) : clear range_filled merged
	  regions.

	* src/item-grid.c (item_grid_draw) : borders & grids for merged cells.

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

	* src/sheet-style.c (style_row) : move the clearing of grid lines
	* src/item-grid.c (item_grid_draw) : from here.

1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807
2001-01-24  Almer S. Tigelaar  <almer1@dds.nl>

	* src/gnumeric-util.c (gnumeric_create_popup_menu):
	Let the sensitivity filter function exacly like the
	display filter.

	* src/sheet-control-gui.c (scg_context_menu):
	Disable insert rows/cols according to the selected
	rows/cols. We don't want people to insert anything if
	the whole sheet is selected or if there are multiple
	selections of whole rows and cols.

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