OChangeLog-2000-02-23 303 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
2000-02-23  Miguel de Icaza  <miguel@helixcode.com>

	* src/dialogs/dialog-stf.c (dialog_stf): remove invocation to
	glade_gnome_init(), this is not required.

	* src/sheet-object-container.c (sheet_object_container_realize):
	Update to new Bonobo API.

2000-02-19  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook.c (launch_graphics_wizard_cmd): New function, used
	to launch the graphics wizard.

	* src/wizard.h: New file.

	* src/corba-workbook-factory.c (WorkbookFactory_read): Fixed
	command_context_corba usage.  Kill memory leak.

	* src/sheet-object.c (sheet_set_mode_type): Remove the sheet event
	button binding code from here.
	(sheet_object_bind_button_events): New function.  To here.

	* src/sheet.h: New creation mode: SHEET_OBJECT_CREATE_COMPONENT.
	The GRAPHICS one will be used only by the wizard.

	* src/pixmaps.h: Include object.xpm.

	* src/pixmaps/object.xpm: More Modern Art work from Miguel, this
	image represents an object.  The object has suffered a lot and is
	in pain as you can see by the colors chosen by the artist.
	
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
2000-02-24  Michael Meeks  <michael@helixcode.com>

	* src/plugin.c (plugin_close): expand.

2000-02-23  Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/widgets/widget-color-combo.[ch]:
	In function color_table_construct() - moved tool_tip in order to
	plug memory leak(called gtk_tooltips_new() too many times)
	
	* src/functions/fn-database.c (gnumeric_daverage): add error for
	-'ive count

2000-02-23  Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/plugin.[ch]: Additions to API -- Made struct _PluginData private
	Added field 'initialized' to PluginData to keep track of whether 
	   the plugin has gone through init yet or not
	Added field 'descr' - a paragraph description of the plugin
	plugin_load() - Updated to use initialized field
	New function: static void plugin_close() - shuts down plugin
	Updated plugin_load() and plugin_unload() to use plugin_close() --
	   lots of duplicated code
	New functions to reflect new privateness of PluginData struct: 
	   plugin_data_init()
           plugin_data_get_filename()
	   plugin_data_get_title()
	   plugin_data_get_descr()
	   plugin_data_set_private_data()
	   plugin_data_get_private_data()
	
	* plugins/dif/dif.c
	* plugins/ff-csv/csv-io.c
	* plugins/ff-stf/stf.c
	* plugins/gda/plugin-gda.c
	* plugins/html/boot.c
	* plugins/lotus-123/boot.c
	* plugins/oleo/boot.c
	* plugins/plan-perfect/pln.c
	* plugins/sample/plugin-sample.c
	* plugins/sc/sc.c
	* plugins/sylk/sylk.c
	* plugins/text/text-io.c
	* plugins/xbase/boot.c:
	Changed init_plugin() in each to use new plugin API, specifically
	They all call plugin_data_init() now
	Changed the respective cleanup functions to not g_free() the title or
	descriptions
	
	* plugins/gb/plugin.c: in addition to the above statement, I changed
	cleanup() and init_plugin() to use plugin_data_[get|set]_private_data

	* plugins/guile/plugin.c
	* plugins/perl/perl.c
	* plugins/python/python.c: added function no_cleanup_for_me() which
	does absolutely nothing for completeness

	* src/dialogs/dialog-plugin-manager.c: Changed add_to_clist() to use
	new plugin_data_get_XXX() methods

92 93 94 95 96 97 98 99 100 101 102 103 104
2000-02-23  Matthias Warkus  <mawa@iname.com>

	* gnome-spreadsheet.png, gnome-xls.png: Removed. They have been
	superseded by correctly named, overhauled icons I checked in on
	January 31st. I was not aware that suboptimal versions had been
	added before. Kenneth seems to be sending icons out over the world
	a lot, it's hard to look after everything he's up to. In the
	future, please consult me before pulling that kind of stunt.

	Remember: I, too, wish that the icon project wasn't as tied to my
	person as it is today. I'm not a weird control freak (well, I am,
	but just a little).

105 106 107 108 109
2000-02-23  Peter Wainwright <prw@wainpr.demon.co.uk>

	* src/sheet-object-container.c (sheet_object_container_realize): Fix
	until Nat mends the bonobo brokenness.

110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
2000-02-23  Michael Meeks  <michael@helixcode.com>

	* src/sheet-style.c (sheet_style_optimize): don't optimize with
	the default style.

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
	use select_clear.

2000-02-21  Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/widgets/widget-color-combo.[ch]: Few minor API changes
        Added custom color support through a GnomeColorPicker widget

	* src/workbook-format-toolbar.c (fore_color_changed),
	(back_color_changed): Fix to handle above ColorCombo API change

	* src/dialog-autocorrect.c: Make array static

2000-02-23  Michael Meeks  <michael@helixcode.com>
	
	* configure.in (GB_LIBS): bump gb ver. check.

Michael Meeks's avatar
Michael Meeks committed
132 133 134 135 136 137
2000-02-21  Michael Meeks  <michael@helixcode.com>

	* src/expr-name.c (name_print_area): implement.

	* src/value.c (value_new_cellrange_r): implement.

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
2000-02-22  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/dialog-solver.c (dialog_solver): Set constraint
	clist title passive.
	(constr_add_click): Make solver dialog reappear if user presses
	<Esc>. Make <Ret> in entry fields invoke default.
	(constr_change_click): Make <Ret> in entry fields invoke default.

	* src/dialogs/solver.glade: Make more room for constraint list title.
	
	* src/dialogs/solver.glade,
	src/dialogs/solver.glade.h: Accelerators.

	* src/dialogs/solver-options.glade,
	src/dialogs/solver-options.glade.h: Accelerators

	* src/dialogs/utils-dialog.[ch] (hbox_pack_label_and_entry):
	Explicit dialog parameter. Reorder arguments in signature.

	* src/dialogs/dialog-analysis-tools.c (dialog_sampling_tool,
	dialog_descriptive_stat_tool, dialog_ztest_tool,
	dialog_random_tool, dialog_regression_tool): Use new signature of
	hbox_pack_label_and_entry. This kills some Gtk warnings.
	(dialog_data_analysis): Do not destroy if gnumeric_dialog_run
	returns -1.

	* src/dialogs/autosave.glade, src/dialogs/autosave.glade.h : 
	Accelerator for "minutes" field.

	* src/dialogs/autocorrect-exceptions.glade,
	src/dialogs/autocorrect-exceptions.glade.h: Accelerators

	* src/dialogs/dialog-autocorrect.c (exceptions_callback): Really
	make <Ret> in entry fields invoke default.

	* src/dialogs/dialog-goal-seek.c (dialog_found_solution):
	Deflickerize.

Jon Kåre Hellan's avatar
Jon Kåre Hellan committed
176 177 178 179
	* src/dialogs/dialog-analysis-tools.c (dialog_sampling_tool,
	dialog_descriptive_stat_tool, dialog_ztest_tool,
	dialog_random_tool, dialog_regression_tool): Deflickerize.

180 181
2000-02-21  Jody Goldberg <jgoldberg@home.com>

182 183
	* src/cell-draw.c (cell_draw) : Doh!

184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
	* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
	  changes.

	* src/commands.c (cmd_format) : save for formats for a range 1 cell
	  thick around the selection so that borders are handled.

	* src/sheet-view.c (sheet_view_redraw_cell_region) : Redraw a border
	  around the selected region to handle thick borders */

	* src/sheet-object.c (sheet_object_canvas_event) : Ignore mouse wheel
	  events.

	* src/border.c (style_border_set_gc_dash) : Use GDK_LINE_ON_OFF_DASH
	  so that background colours show through.

	* src/sheet-style.c (sheet_range_set_border) : Prefer top vs bottom
	  and left vs right.  This will simplify drawing eventually.

202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
2000-02-21  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/dialogs/dialog-stf-csv-page.c :
	(csv_page_prepare) : csv_page_custom_toggled was called twice, removed one.

	* src/stf.c, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-main-page.c, 
	* src/dialogs/dialog-stf-csv-page.c, src/dialogs/dialog-stf-fixed-page.c, 
	* src/dialogs/dialog-stf-format-page.c, src/dialogs/dialog-stf-preview.c 
	Fixed incorrect comments and added function comment headers where they
	didn't exist. Also moved some includes.

	* src/dialogs/dialog-stf.h
	Removed TEXT_VOFFSET, because it is no langer required.

	* src/dialogs/dialog-stf-preview.h
	Changed the colours to match the current gnumeric sheet selection color

	* src/dialogs/dialog-stf-format-page.c
	(format_page_collist_select_row) : Makes selected row visible
	(format_page_prepare) : Corrected minor error which caused the format entry to stay empty

	* src/dialogs/dialog-stf.glade, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h
	Completely removed the "finish" page of the druid.

	* src/dialogs/dialog-stf.glade, src/stf-parse.h, src/stf-parse.c
	Fixed support for colon and added support for new separator
	symbols : semicolon, pipe, slash, hyphen, bang.
	separators are now also displayed on the csv page.

	* src/stf-parse.c
	(stf_parse_get_colcount) : last line wasn't counted
	(stf_parse_get_colwidth) : idem
	
	* src/stf.h :
	Removed obsoleted FileSource_t struct type definition.

	* src/stf.c :
	(stf_read_workbook) : Detach sheet on parse error.

Jon K Hellan's avatar
Jon K Hellan committed
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
2000-02-21  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Deflickerize.

	* src/dialogs/dialog-cell-comment.c (dialog_cell_comment): Ditto.

	* src/gnumeric-util.c (gnumeric_dialog_show): New function. Pop up
	a dialog without recursive main loop, with a handler to take care
	of parent shell closing.
	(on_parent_close, on_close): New callback functions.
	(connect_to_parent_close): New helper function - connect handler
	for parent shell closing.

	* src/print.c (sheet_print): Use gnumeric_dialog_run.

256 257 258 259 260
2000-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/border.c (style_border_draw) : It ain't perfect, but it is
	  better than nothing.

261 262 263 264 265 266 267 268 269 270 271 272 273
2000-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-cell-format.c (cb_back_preview_color) : Hard code
	  the alpha channel to 0.
	(cb_pattern_preview_color) : Ditto.
	(cb_border_color) : Ditto.
	(init_border_button) : Ditto.

	* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap) :
	  Replace the storing of the new index.

	* src/workbook-format-toolbar.c (cb_border_changed) : Implement.

274 275 276 277 278 279 280
2000-02-20  Tuomas Kuosmanen  <tigert@gimp.org>

	* src/pixmaps/graphic.xpm: New icon for the "add graph" -button
	requested by miguel 

	(hello fellow finn below btw :)
	
281 282 283 284 285 286 287 288 289 290 291 292 293
2000-02-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/mathfunc.c: Implemented Affine Scaling algorithm for the
	Solver tool.

	* src/solver-lp.c: Switched the solver to use the affine scaling
	instead of the simplex.  Beautified the generated reports.

	* src/solver.h: Renamed some of the Solver constants.
	
	* src/analysis-tools.h: New file.  Moved stuff from
	src/dialog/dialogs.h.

294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
2000-02-20  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c : Switch to a quartic approved delayed update
	  model.  Do not change the bounding box while drawing.

	* src/selection.c (sheet_selection_add_range) : Do NOT directly change
	  the edit/move/base characteristics of the sheet sheet_cursor_set handles
	  that.

	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) : Use
	  item_cursor_reposition rather than pretending that the cursor moved.

	* src/item-grid.c (item_grid_button_1) : Don't call both
	  sheet_cursor_move and sheet_selection_add.  The former was moving
	  the edit cursor without redrawing it.

Michael Meeks's avatar
Michael Meeks committed
310 311 312 313 314
2000-02-20  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object-container.c (sheet_object_container_realize): pass
	UI handler in straight.

315 316 317 318 319
2000-02-19  Mike Kestner  <mkestner@ameritech.net>

	*src/dialogs/dialog-simple-input.c (dialog_get_number): Fixed leaks.
	(dialog_get_sheet_name): Fixed leaks.

320 321 322 323 324 325 326 327 328 329 330 331
2000-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/corba-workbook-factory.c (WorkbookFactory_read) : Create a tmp
	  corba context with which to report problems while reading a new
	  workbook.  This is a temporary work around until corba_context is
	  implemented and we see what the requirements are.

	* src/command-context-corba.c (command_context_corba_new) : longer
	  require a workbook.

	* src/corba-workbook.c (workbook_corba_setup) : Support above change.

332 333 334 335 336 337
2000-02-19  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_extend) : Don't store the results
	  of the move directly into sheet::cursor::move_corner.  That makes
	  sheet_selection_extend_to think there is nothing to be done.

338 339 340 341 342 343
2000-02-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-analysis-tools.c: Made the cancel operation
	of a tool to return the tool selection.
	
2000-02-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>
344 345 346 347 348

	* src/dialogs/analysis-tools.glade,
	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
	Anova two-single factor and Moving average tools.
	
349 350 351 352 353 354
2000-02-18  Almer. S. Tigelaar.  <almer1@dds.nl>

	* /src/dialogs/dialog-stf.glade :
	Corrected a minor spelling error on the first page of 
	the druid.

355 356 357 358 359 360 361 362 363
2000-02-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-autosave.c: Added a few checks for the
	correctness of autosave.glade file.

	* src/dialogs/analysis-tools.glade,
	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
	Anova single factor tool.
	
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
2000-02-18  Almer. S. Tigelaar.  <almer1@dds.nl>

	What follows is the Changelog entry for the new STF that miguel
	commited.
	
	The original STF Plug-in has been removed and is now merged
	with the Gnumeric main sources.
	Numerous bug fixes have been made, the major ones :
	
	* stf-util.c, stf-util.h :
	Obsoleted, merged with dialog_stf.[ch]

	* stf-fixed.c, stf-separated.c, stf-fixed.h, stf-separated.h :
	Obsoleted, replace with stf-parse.[ch], a new interface.

	* stf-parse.h, stf-parse.c :
	Two new units which are a re-make of the stf-separated.c and
	stf-fixed.c. These supersede those two units.

	* dialog-stf.c, dialog-stf.h, dialog-stf-csv-page.c, dialog-stf-fixed-page.c :
	Altered so they use the new stf-parse.[ch] instead of stf-separated.c 
	and stf-fixed.c. 

	* dialog-stf-main-page.c
	Now allows you to select both the line to start _and_ the line to stop
	importing.
	
	* dialog-stf-fixed-page.c :
	Apart from some minor bug fixes you can now also use the mouse
	to interactively create, delete and resize columns.

	* dialog-stf-format-page.c :
	Now allows you to click in the preview to select a column.
	Also fixed minor errors

	* dialog-stf-preview.c, dialog-stf-preview.h :
	Completely revised preview rendering, lots of changes.
	
	* dialog-stf.glade :
	More descriptive hints on each page
	
	Now some integration changes :

	* main.c
	Modified to also initialize the stf-plugin

	* stf.c, stf.h
	Now uses the new dialog-stf.[ch] and stf-parse.[ch] interfaces.

	* clipboard.c
	modified (x_selection_to_cell_region) to use the STF stuff instead
	of the previous 'based-on-assumptions' approach.
	->by request from Jody Goldberg
	
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 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 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
2000-02-18  Jody Goldberg <jgoldberg@home.com>

	* src/widgets/widget-color-combo.c (color_combo_construct) : typo.
	(color_combo_new) : Disable the charting colours for now.  They are
	  mostly duplicates.

2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/widgets/widget-color-combo.[ch]
	Changed the code some to enable tooltips
	Minor api changes
	
2000-02-18  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c : Add history.h.

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

	* src/sheet.c (sheet_redraw_selection) : Delete.

	* src/selection.c (sheet_selection_extend_to) : Short circuit when
	  there would be no change to the selection.
	(sheet_selection_change) : The sheet already has the correct edit,
	  move, base positions.  Use them.

	* src/sheet-view.c (sheet_view_redraw_headers) : gnome_canvas_request_redraw
	  EXCLUDES the far coordinates.  Add 1 so that the last pixel get
	  redrawn too.

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

	* src/history.c (history_menu_item_create) : typo.

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

	* src/dialogs/dialog-goal-seek.c (dialog_goal_seek) : Use edit_pos.
	* src/dialogs/dialog-solver.c (dialog_solver) : Ditto.

	* src/xml-io.c (xml_read_selection_info) : Use edit_pos.
	(xml_write_selection_info) : Ditto.

	* src/workbook.c (cb_sheet_check_dirty) : Use edit_pos.
	(paste_cmd) : Ditto.
	(paste_special_cmd) : Ditto.
	(insert_current_date_cmd) : Ditto.
	(insert_current_time_cmd) : Ditto.
	(workbook_edit_comment) : Ditto.

	* src/sheet.c (sheet_new) : sheet_selection_append -> sheet_selection_add.
	(sheet_accept_pending_input) : Use edit_pos.
	(sheet_load_cell_val) : Ditto.
	(sheet_start_editing_at_cursor) : Ditto.
	(sheet_update_controls) : Ditto.
	(sheet_{col,row}_selection_type) : Fix cut-paste-o.
	(walk_boundaries) : Move to selection.c.
	(walk_boundaries_wrapped) : Ditto.
	(sheet_selection_walk_step) : Reworked and moved to selection.c.
	(sheet_cursor_move) : Switch to new framework.
	(sheet_cursor_set) : Ditto.
	(sheet_set_selection) : Delete.

	* src/sheet.h : (SheetSlection) : Remove base member.
	(Sheet) : adjsut notion of cursor to differentiate between,
	edit, base, and movement.  (see comments).
	* src/sheet-view.c (sheet_view_set_zoom_factor) : Use edit_pos.
	(sheet_view_scrollbar_config) : Switch to new scheme.
	(sheet_view_{col,row}_selection_changed) : Make the Top/Left visible
	  cell the edit cursor when things are out of range.

	* src/sheet-style.c (sheet_style_attach) : Use sheet_redraw_range directly.
	(sheet_range_apply_style) : Ditto.
	(sheet_range_set_border) : Ditto.

	* src/selection.c (sheet_selection_add_range) : Renamed from,
	  sheet_selection_append.  Document.  Switch to new edit, base, move
	  scheme.  Directly call sheet_cursor_set rather than the confusingly
	  named sheet_set_selection.
	(sheet_selection_add) : Renamed from sheet_selection_append.
	(sheet_selection_change) : Adjsut parm name from 'new' -> 'new_sel' to
	  enable test compiles from C++.
	(sheet_selection_extend_to) : Switch to new edit, base, move scheme.
	(sheet_selection_extend) : Just call sheet_selection_extend_to for the
	  main work.  Document.
	(sheet_select_all) : sheet_selection_append_range -> sheet_selection_add_range.
	(sheet_selection_extend_{horizontal, vertical} : Merge in to
	  sheet_seletion_extend and fix.
	(sheet_selection_set) : Switch to the new scheme.
	(sheet_selection_reset) : sheet_selection_append -> sheet_selection_add.
	  Use edit_pos.
	(walk_boundaries) : Moved from sheet.c, merged with
	  walk_boundaries_wrap, and change signature.
	(sheet_selection_walk_step) : Moved from sheet.c and switched to the
	  new method.  Do not change the selected region while iterating.

	* src/item-grid.c (item_grid_paint_empty_cell) : Use edit_pos.
	(item_grid_draw_cell) : Ditto.
	(item_grid_event) : Ditto.
	(context_paste_cmd) : Use the base and move cursors.
	(context_paste_special_cmd) : Ditto.
	(item_grid_button_1) : sheet_selection_append -> sheet_selection_add.

	* src/item-cursor.c (item_cursor_autofill_event) : Use
	  sheet_selection_add_range rather than the two step select extend.

	* src/clipboard.c (sheet_paste_selection) : Use
	  sheet_selection_add_range rather than the 2 step process
	  of setting the corner and extending.

	* plugins/excel/ms-excel-read.c (ms_excel_read_selection) :
	    sheet_selection_append_range -> sheet_selection_add_range
	* src/corba-sheet.c (Sheet_selection_append) : Ditto.
	(Sheet_selection_append_range) : Ditto.

	* src/gnumeric-sheet.c (move_cursor) : Ditto.
	(gnumeric_sheet_key_mode_sheet) : Ditto.  Use edit_pos.
          sheet_selection_walk_step now handles the cursor and selection
	  changes.
	(gnumeric_sheet_set_selection) : Delete this was unnecessary.
	(gnumeric_sheet_set_cursor_bounds) : Add preconditions.
	(move_cursor_horizontal) : Use the edit_pos for movement.
	(move_cursor_vertical) : Ditto.
	(gnumeric_sheet_create_editing_cursor) : Ditto.
	(start_cell_selection) : Ditto.
	(move_horizontal_selection) : Use sheet_selection_extend.
	(move_vertical_selection) : Ditto.
	(gnumeric_sheet_compute_visible_ranges) : Force a redraw of the
	  item-cursor when the visible region changes.  FIXME : This should be
	  an update not a redraw.

547 548 549 550 551 552 553 554 555 556 557 558
2000-02-18  Miguel de Icaza  <miguel@gnu.org>

	* configure.in (EXTRA_GNOME_CFLAGS): Remove stf plugin from here. 
	* plugins/Makefile.am (SUBDIRS): And from here.

	* src/stf.c (stf_open_and_read): Use malloc instead of g_malloc0
	because g_malloc aborts execution if the buffer is too large
	(which it might likely be).
	(stf_read_workbook): Release using free, not g_free here.
	(stf_read_workbook): Fix sheet object memory leak.
	(stf_init): Kill old and unused code.

559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
2000-02-18  Michael Meeks  <michael@helixcode.com>

	* src/workbook.c (workbook_new): setup view history.
	(workbook_do_destroy): add workbook to view history and write config.

	* src/history.c (history_item_label): substantialy alter.
	(history_remove_menu_item): kill translation on non bonobo case.

2000-02-18  Mike Kestner  <mkestner@ameritech.net>

	* src/application.c (application_history_get_list): add
	(application_history_update_list, application_history_list_shrink),
	(application_history_write_config): ditto.

	* src/workbook-view.c (workbook_view_history_setup): create.
	(workbook_view_history_update, workbook_view_history_shrink): ditto.

	* src/Makefile.am: add history.[ch].

	* src/history.[ch]: Added.

580 581 582 583 584 585 586 587 588 589 590 591 592 593 594
2000-02-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/analysis-tools.glade,
 	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
 	T-Test tools.

	* src/dialogs/dialog-autosave.c: Fixed a few bugs in
 	dialog_autosave (cancel caused segmentation fault at the next
 	run).  Made the prompt button unsensitive if the autosave is
 	turned off.

	* src/analysis-tools.c: Made the titles to be printed in italic
 	style for Correlation, Covariance, F-Test, and T-Test tools.  In
 	addition, the columns are autosized.

595 596 597 598 599 600 601
2000-02-16  Miguel de Icaza  <miguel@gnu.org>

	* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap):
	Changed the code to use gnoem_pixmaps here.
	(pixmap_combo_construct): and here.


602 603 604 605 606 607 608 609 610 611 612 613 614
2000-02-15  Jody Goldberg <jgoldberg@home.com>

	* *.[ch] : More header cleanup.  Remove value.h and sheet.h
	  from expr.h.  Remove sheet.h from cell.h.

2000-02-16  Dom Lachowicz <dominicl@seas.upenn.edu>

	* src/plugin-manager.c : Move functionality.
	* src/dialogs/dialog-plugin-manager.c : here.  and move to libglade.

	* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
	  of plugin_manager_new.

615 616 617 618 619 620
2000-02-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
 	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
 	Rank and Percentile tool.

621 622 623 624 625 626 627 628 629 630 631 632 633 634
2000-02-15  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-cmd-format.c (workbook_cmd_format_{column,row}_auto_fit) :
	  Handle repositioning and redrawing here in preparation to adding undo.
	(workbook_cmd_format_column_width) : Ditto.
	(workbook_cmd_format_row_height) : Ditto.

	* src/sheet.c (sheet_reposition_comments_from_{row,col}) : publicize.
	(sheet_recompute_spans_for_col) : Ditto.
	(sheet_save_row_col_sizes) : Store cols/rows of 'default' size as 0.
	(sheet_restore_row_col_sizes) : Restore cols/rows to true default state.
	(sheet_{col,row}_set_size_pts) : document, and REMOVE calls to reposition
	  and redraw.

Jon K Hellan's avatar
Jon K Hellan committed
635 636 637 638
2000-02-16  Jon K Hellan  <hellan@acm.org>

	* src/sheet.c (col_row_info_init): Fix typo

639 640 641 642 643 644
2000-02-15  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_mmult): Fix row/col confusion.
  	* src/mathfunc.c (mmult): Ditto.  How did this ever work for
 	non-square matrices?

645 646 647 648 649
2000-02-15  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_set_default_size_pts) : There is no notion of
	  default column width having thick margins.

Jon K Hellan's avatar
Jon K Hellan committed
650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679
2000-02-14  Jon K Hellan  <hellan@acm.org>

        * src/dialogs/import.glade: Add scrolled window
	
	* src/file.c (workbook_read, workbook_import, workbook_save_as,
	workbook_save): Use error message template.

	* src/command-context.h (struct _CommandContext): Add
	template_list member.
	(struct CommandContextClass): Call message parameter to methods
	"message".
	(command_context_push_template, command_context_pop_template):
	Declare. 
	
	* src/command-context.c (command_context_push_template): New
	function. Push a printf template for error messages to stack.
	(command_context_pop_template): New function. Pop current template
	from stack.
	(format_message): New function. Format a message using template on
	stack.
	(gnumeric_error_plugin_problem, gnumeric_error_read,
	gnumeric_error_save): Use format_message.

	* src/command-context-corba.c (ccc_error_plugin_problem,
	ccc_error_read, ccc_error_save): Call message parameter
	"message". 
	
	* src/command-context-gui.c (ccg_error_plugin_problem,
	ccg_error_read, ccg_error_save): Ditto.

680 681
2000-02-14  Jody Goldberg <jgoldberg@home.com>

682 683
	* src/cell-draw.c (cell_draw) : Cells can span in either direction.

684 685 686 687 688
	* src/format.c (format_value) : Empty formats produce empty cells.

	* src/workbook.c (workbook_menu_tools) : Move the plugins menu item to
	  the Tools menu.

689 690 691 692 693 694
2000-02-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
 	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
 	Correlation, Covariance, and F-Test tools.
	
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
2000-02-14  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c (item_bar_event) : Handle rename from
	  sheet_{col,row}_size_fit -> sheet_{col,row}_size_fit_pixels
	* src/selection.c (cb_set_row_height) : Ditto.
	* src/workbook-cmd-format.c
	(workbook_cmd_format_{column,row}_auto_fit) : Ditto.

	* src/cell.c (cell_calc_dimensions) : Use sheet_row_set_size_pixels
	  rather than sheet_row_set_internal_size_pts.

	* src/sheet.c (sheet_{col,row}_set_size_{pixels,pts}) :
	  Use sheet_row_fetch to avoid manually adding rows/col.
	  Syncronize implementations and move the 'set_internal' code
	  here.
	(sheet_{col,row}_set_internal_size_pts) : Delete.
	(sheet_{col,row}_size_fit) : Rename sheet_{col,row}_size_fit_pixels
	(colrow_compute_pts_from_pixels) : Typo.

714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743
2000-02-14  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/dialog-solver.c (constr_add_click): Fix handling
	of return value from gnumeric_dialog_run.  Fix memory leaks.

	* src/dialogs/dialog-goto-cell.c (dialog_goto_cell): Fix handling
	of return value from gnumeric_dialog_run

	* src/dialogs/dialog-function-wizard.c (dialog_function_wizard):

	* src/dialogs/dialog-analysis-tools.c (dialog_correlation_tool):
	Fix handling of return value from gnumeric_dialog_run
	(dialog_sampling_tool): ditto.
	(dialog_descriptive_stat_tool): ditto.
	(dialog_ttest_eq_tool): ditto.
	(dialog_regression_tool): ditto
	(dialog_average_tool): ditto.
	(dialog_ranking_tool): ditto.
	(dialog_anova_single_factor_tool): ditto.

	* src/dialogs/dialog-solver.c (dialog_solver): The argument is
	*NOT* a GtkObject, but some other data structure.

	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis):
	Correct handling.
	(dialog_covariance_tool): Handle correctly.

	* src/dialogs/dialog-advanced-filter.c (dialog_advanced_filter):
	Proper error handling.

744 745 746 747 748 749 750
2000-02-13  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar)
	  Add a border item.

	* src/widgets/widget-pixmap-combo.[ch] : New files.

751 752
2000-02-13  Miguel de Icaza  <miguel@gnu.org>

753 754 755
	* src/workbook.c (workbook_new): Do not autosave by default, much
	less with prompt feature.

756 757 758 759 760 761
	* src/widgets/widget-color-combo.c (color_combo_construct):
	Acknowledge the GNOME user settings for the combo box button.
	Same for the button we create.
	
	* src/workbook.c (workbook_create_standard_toobar): ditto.

Jody Goldberg's avatar
Jody Goldberg committed
762 763 764 765 766 767 768
2000-02-13  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_get_distance_pts) : Fix missed +1.

	* src/cell-draw.c (cell_draw) : syncronize with print_cell_text.
	* src/print-cell.c (print_cell_text) : Ditto.

769 770 771 772 773 774 775 776 777 778
2000-02-13  Jody Goldberg <jgoldberg@home.com>

	* src/item-grid.c (item_grid_paint_empty_cell) : paint the selection
	  rectangle EXCLUDING the grid lines when selected.

	* src/cell-draw.c (cell_draw) : Ditto.

	* src/pattern.c (gnumeric_background_set_gc) : return FALSE if there
	  is no pattern even if the cell is selected.

779 780
2000-02-13  Jody Goldberg <jgoldberg@home.com>

781 782 783 784 785 786 787 788
	* src/item-grid.c (item_grid_paint_empty_cell) : Move above item_grid_draw_cell.
	(item_grid_draw_cell) : Do not to set colours here that is handled
	  elsewhere.  Call empty_cell for zeros when we are not displaying them.

	* src/cell-draw.c (cell_draw) : Reset the clipping region
	  to avoid losing the background colour because the previous cell
	  drawn had set a non overlapping clipping region.

789 790 791 792
	* src/workbook-view.c (workbook_view_set_size) : Clarify that the
	  measurements are in pixels.

	* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 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
	  bounding grid lines too.

	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
	  region to the visible range.  The layout still needs cleaning to
	  match the 'correct' way of implementing canvas-items, but this
	  heuristic saves us lots of iterations through the accumulator for
	  the size of the entire sheet.

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

	* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
	  margin changes.

	* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
	  XL2000.  Things are correct for rows, colwidth are quoted in pts
	  rather than char widths.
	(get_col_from_pos) : Use visible flag.
	(item_bar_start_resize) : Function renaming.
	(is_pointer_on_division) : Ditto.
	(item_bar_draw) : Changes to margins.

	* src/item-edit.c : Function renaming.
	* src/item-cursor.c : Ditto.  decrease spacing for auto handle.

	* src/item-grid.c (item_grid_draw) : Remove inversion process for the
	  selection.  Instead have the cells draw their background
	  differently.  Use the visible flag.
	(item_grid_paint_empty_cell) : Ditto.
	(item_grid_paint_cell) : Ditto.

	* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.

	* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
	  a selected cell differently.

	* src/print-cell.c (DIM) : margins are already included.
	(print_cell_text) : Adjust argument order to more closely match
	  cell_draw.  Add support for vertical alignment of 1 line cells.
	  Invert control of single vs multiple lines.
	(print_cell) : Adjust to changes in the arguments.
	(print_cell_range) : Use the visible flag.
	  Draw line at the boundary rather than pretending there were
	  additional rows/cols.

	* src/print.c (compute_groups) : size_pts INCLUDES margins.  Use 'visible' flag.
	(print_page) : Adjust to function renaming.
	(print_range_used_units) : Ditto.

	* src/selection.c : Include sheet-view directly for now.
	(cb_set_row_height) : Adjust to function renaming.

	* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
	  renaming.
	(sheet_view_redraw_headers) : Ditto.
	(sheet_view_set_zoom_factor) : Ditto.
	(sheet_view_col_size_changed) : Ditto.
	(sheet_view_row_size_changed) : Ditto.
	(sheet_view_comment_get_points) : Ditto.

	* src/sheet.[ch] : Rationalize function names, and add glossary.
	Make the use of margins and sizes (in points and pixels) consistant.

	(sheet_col_get_external_width : Delete.
	(sheet_row_get_external_height : Delete.
	(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
	(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
	(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
	(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
	(sheet_col_set_width : Rename sheet_col_set_size_pixels.
	(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
	(sheet_row_set_height : Rename sheet_row_set_size_pixels.
	(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
	(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
	(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
	(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
	(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
	(sheet_{row,col}_set_default_size_pts) : New functions.

	(sheet_init_default_styles) : Tune to match XL defaults.

	* src/sort.c : Use g_strcasecmp, and include <stdlib.h>

	* src/style.c (style_color_new) : Init the selection colour as a 50%
	  alpha blend with lavender.

	* src/style.h : Change default font to be Helvetica 9 because it will
	  scale better when the standard 96 dpi resolution is assumed.
	  Add a selected_color to StyleColor.

	* src/value-sheet.c : Include <gnome.h> to get the
	  internationalization support.

	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
	  sheet_col_set_width -> sheet_col_set_size_pixels.
	(workbook_cmd_format_column_width) :
	  sheet_col_set_width_units -> sheet_col_set_size_pts.
	(workbook_cmd_format_row_auto_fit) :
          sheet_row_set_height -> sheet_row_set_size_pixels
	(workbook_cmd_format_row_height) :
	  sheet_row_set_height_units -> sheet_row_set_size_pts.

	* src/xml-io.c (xml_read_rows_info) : Rename
	  sheet_row_set_height_units -> sheet_row_set_size_pts.
	(xml_read_cols_info) : Rename
	  sheet_col_set_height_units -> sheet_col_set_size_pts.
	(xml_read_colrow_info) : Remove hack with negative pixels.
	  Use 'visible' flag instead.
	(xml_write_colrow_info) : Ditto.

902 903 904 905
2000-02-12  Gregory McLean <gregm@gnu.org>

	* src/functions/fn-financial.c: Added documentation and examples.

906 907 908 909 910
2000-02-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* doc/C/autosave.sgml: New file added.  Documentation of the
	AutoSave tool.

911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930
2000-02-11  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
	  Adjust to new signature for color_combo_new.
	  Select index 0 rather than 1 (some one has spent too much time in
	  fortran).  Reorder the initializations to match deployment (I'm
	  being pedantic).

	* src/widgets/widget-color-combo.c (color_table_setup) : Change the
	  no_color flag to a possibly NULL string to provide finer control.
	(color_combo_construct) : Ditto.
	(color_combo_new_with_vals) : Ditto.
	(color_combo_new) : Ditto.

2000-02-11  Dean Scott <drscott12@hotmail.com>

	* src/widgets/widget-color-combo.c (default_colors) : Reorder to match
	  XL2000 more closely and provide names.
	(color_combo_new) : Correct the layout to display all colours.

931 932 933
2000-02-11  Michael Meeks  <michael@helixcode.com>

	* src/sheet.c (sheet_load_cell_val): fix brokenness.
Michael Meeks's avatar
Michael Meeks committed
934
	(sheet_load_cell_val): cast to shut it up.
935

936 937 938 939 940 941 942 943 944 945 946
2000-02-11  Michael Meeks  <michael@helixcode.com>

	* src/sheet.c (cellref_name): use sheet_quote_name.
	(sheet_quote_name): implement.

	* src/workbook.h (WorkbookClass): add cell_changed signal.

	* src/workbook.c (workbook_class_init): add cell_changed.

	* src/sheet.c (sheet_load_cell_val): Add signal for blind folks.

947 948 949 950 951 952
2000-02-11  Michael Meeks  <michael@helixcode.com>

	* src/sheet.c (sheet_get_extent): Fix silly buglet for blank sheets.

	* configure.in: split out GB autoconf from EXTRA_GNOME_LIBS

Michael Meeks's avatar
Michael Meeks committed
953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974
2000-02-10  Michael Meeks  <michael@helixcode.com>

	* src/clipboard.c (sheet_paste_selection): pass CellPos.
	(clipboard_copy_cell_range): pass ptr to range.

	* src/sheet-style.c (sheet_get_styles_in_range): include the background
	style so we can undo nicely. (sheet_style_attach_list): simplify.

	* src/workbook-format-toolbar.c (change_font_size_in_selection_cmd),
	(change_selection_font, set_selection_halign, change_font_in_selection_cmd),
	(change_font_size_in_selection_cmd, do_sheet_selection_apply_style),
	(fore_color_changed, back_color_changed): use cmd_format.

	* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply): update
	to use cmd_format.

	* src/sheet-style.c (sheet_selection_set_border): kill style unref.
	(sheet_selection_apply_border_cb): renamed to (sheet_range_set_border):
	(sheet_selection_set_border): kill ( with leak ).
	(sheet_range_apply_style): rename (sheet_selection_apply_style): kill.
	(sheet_get_styles_in_range): take a const range pointer

Jody Goldberg's avatar
Jody Goldberg committed
975 976 977 978 979
2000-02-10  Jody Goldberg <jgoldberg@home.com>

	* src/corba-workbook-factory.c (WorkbookFactory_read) : Include
	  gnorba.

980 981 982 983 984 985 986 987 988 989 990 991 992
2000-02-10  Michael Meeks  <michael@helixcode.com>

	* src/corba-sheet.c: include cell.h & colrow.h
	(Sheet_col_width): use size_pts (Sheet_row_height): ditto.

	* src/embeddable-grid.h: include sheet-view.h

	* configure.in (have_gb): bump ver.

	* src/workbook.c (workbook_new): fix ordering of arguments on autosave
	function; default to not ask, and make interval 10 minutes. ( instead
	of 1 with bug ).

993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008
2000-02-10  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.h : Remove inclusion of cell.h.  Adjust includes to loosen
	  things a bit more.

	* src/colrow.h : Remove margin_a_pt margin_b_pt.  Margins are NOT
	  scaled by resolution or zoom.
	  Rename units -> size_pts and store as float rather than double.
	  Rename pixels-> size_pixels
	  hard_size -> use gboolean rather than a 1 element bitfield

	* src/style.h : Move the typedefs from here.
	* src/gnumeric.h : to here.

	*.[ch] : Catch up with the renames and include changes.

1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
2000-02-09  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
	  the zoom specification.
	(workbook_create_standard_toobar) : Adjust the list of zoom labels.

	* src/style.c (font_init) : Add comment explaining that the default
	  fonts are not scaled by resolution, and that we depend on that.

	* src/sheet.c (sheet_init_default_styles) : Set the default sizes
	  based on the size of the default font not on pixels.

	* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
	  region here.
	(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
	  of 1 to set sizes and scroll regions.
	(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
	  dimensions.  Set them based on the font used for the headers.

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

	* src/commands.c (command_undo) : Be more careful and only undo
	  commands the successfully undo.

1033 1034 1035 1036
2000-02-06  Michael Meeks  <michael@helixcode.com>

	* src/sheet-object.c (sheet_object_construct): mark sheet as modified.

1037 1038 1039 1040 1041
2000-02-06  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/mathfunc.[ch], src/functions/fn-math.c: Moved mdeterm, mmult
 	and minverse to mathfunc.c.

1042 1043
2000-02-07  Miguel de Icaza  <miguel@gnu.org>

1044 1045 1046 1047
	* src/dialogs/Makefile.am (glade_msgs): Add new glade.h files
	* src/dialogs/*.glade.h: Touch up glade files that did not
	generate the corresponding .glade.h file.

1048 1049 1050 1051 1052 1053 1054 1055
	* src/solver-lp.c: Tag strings for internationalization.
	* src/analysis-tools.c: ditto.

	* src/workbook.c (dialog_autosave_callback): Moved autosave code
	here.
	(workbook_autosave_cancel): Cancels autosaving.
	(workbook_autosave_set): 

1056 1057 1058 1059 1060 1061 1062
	* src/dialogs/dialog-autosave.c (dialog_autosave): Change the
	order here.
	(dialog_autosave): Correct.  Help button does not mean OK.  Hook
	up help.

	* src/dialogs/auto-save.glade: Beautify.

1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087
2000-02-01  ERDI Gergo  <cactus@cactus.rulez.org>

	* src/about.c (dialog_about): Added myself to the contributors list

	* src/widgets/gtk-combo-box.c (gtk_combo_box_popup_hide):
	explicitly cast function pointers to avoid a warning

	* src/solver-lp.c (simplex_step_three): Default value for `min' to
	eliminate a warning

	* src/dialogs/dialog-advanced-filter.c: Included ranges.h
	(removing an `implicit declaration' warning)

	* src/commands.c: Included `dialogs.h'

	* src/workbook.c (workbook_standard_toolbar_orient): Hide the zoom
	combo box on vertical toolbars

	* src/widgets/gtk-combo-text.[ch]: New widget: easy-to-use combo box

2000-01-28  ERDI Gergo  <cactus@cactus.rulez.org>

	* src/workbook.c (workbook_create_standard_toobar): Added a zoom
	button to the toolbar as requested

JP Rosevear's avatar
JP Rosevear committed
1088 1089 1090 1091
2000-02-05  JP Rosevear  <jpr@arcavia.com>

	* src/commands.h : Fix typo
	
1092 1093 1094 1095 1096
2000-02-05  JP Rosevear  <jpr@arcavia.com>

	* doc/pref-attributes.txt : Start sorting excel attributes into
	application, workbook and sheet categories.

1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111
2000-02-05  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.[ch] (sheet_row_info_set_{height, width}) : Make static.

	* src/cell.c (cell_calc_dimensions) : The size is already scaled.

	* src/item-bar.c (item_bar_event) : Only scale by the zoom.
	  The item-grid canvas is zoomed by the zoom factor, not by the
	  resolution adjustment.
	(item_bar_start_resize) : Ditto.

	* src/selection.c (sheet_selection_paste) : Use cmd_paste_cut.

	* src/commands.c (cmd_paste_cut) : Implement.

1112 1113 1114 1115 1116 1117
2000-02-04  Jody Goldberg <jgoldberg@home.com>

	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
	  function.
	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.

Michael Meeks's avatar
Michael Meeks committed
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128
2000-01-31  Michael Meeks  <mmeeks@gnu.org>

	* src/cell-draw.c (cell_draw): Ameliorate the 'Fatal Error' to
	'Pending'; it looks better when we hit a MsgBox in a GB func.

2000-01-30  Michael Meeks  <michael@mejm2.dow.cam.ac.uk>

	* src/sheet.c (sheet_insert_object): repo -> goad for activate.

	* src/func.c: constify.

1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147
2000-02-04  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_set_internal_width) : Scale by the axis
	  resolution adjment.
	(sheet_row_set_internal_height) : Ditto.
	(colrow_set_units) : Ditto.
	(sheet_compute_col_row_new_size) : Ditto.

	* src/item-bar.c (item_bar_fonts_init) : Scale by resolution.
	(item_bar_start_resize) : Ditto.
	(item_bar_event) : Ditto.

	* src/cell.c (cell_calc_dimensions) : Adjust interface to take the
	  cell. Scale the height test by the vertical resolution adjustment.

	* src/cell-draw.c (sheet_view_get_style_font) : rename from
	  sheet_get_style_font in preparation for view split.  Scale
	  the font by the average of the resolutions.

1148 1149 1150 1151 1152 1153 1154 1155 1156
2000-02-03  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_{read,write}_selection_info) : New functions.
	(xml_{read,write}_range) : New functions.
	(xml_write_style_region) : Use xml_write_range.  (DOH!)
	(xml_read_style_region) : Use xml_read_range.
	(xml_sheet_read) : Use xml_read_selection_info.
	(xml_sheet_write) : Use xml_write_selection_info.

1157 1158 1159 1160 1161 1162 1163 1164
2000-02-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/solver-lp.c (solver_simplex): Bug fix.  Convert RHS values
 	to non-negative.

	* src/solver-lp.c: Implemented `Sensitivity Report' for Solver
 	tool.  Not complete though.
	
1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
2000-02-02  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_set_text) : Fix thinko.  We are assigning to the
	  entered_text so we should unref that.  Always print the assigning
	  empty warning.

	* src/str.c (string_unref_ptr) : Delete unused function.

	* src/clipboard.c (do_clipboard_paste_cell_region) : Use the correct
	  clear flags for sheet_clear_region.
	(x_selection_handler) : Ditto.

	* src/workbook.c (workbook_expr_relocate) : We need to unref the new
	  expression because the cell refs it itself.

	* ./src/format.c (format_remove_decimal) : Correctly remove the last
	  decimal. bug 5836.

1183 1184 1185 1186 1187 1188 1189 1190
2000-02-02  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-solver.c, src/dialogs/solver.glade:
 	Implemented the results and reports dialog for the Solver tool.

	* src/solver-lp.c, src/solver.h: Implemented `Answer' report
 	generation for Solver.
	
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1191 1192 1193 1194
2000-02-02  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-autocorrect.c: Killed bug #5719.

1195 1196 1197 1198 1199 1200 1201 1202 1203 1204
2000-02-01  Jody Goldberg <jgoldberg@home.com>

	* src/item-bar.c (item_bar_draw) : Fix minor fence-post drawing
	  glitch.
	(bar_draw_cell) : Apply a clipping region to ensure that title strings
	  do not overlap when sizes are small.

	* src/workbook.h : Remove bogus ';' from comments.
	  Bug 5717.

1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216
2000-01-31  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-solver.c, src/dialogs/solver.glade,
 	src/dialogs/Makefile.am: Gladefied the Solver tool.  Implemented
 	`Change' (constraint) button.

	* src/functions/fn-math.c: Added RandExp(), RandPoisson(),
 	RandBinom(), RandNegBinom(), and RandBernoulli() functions.

	* src/functions/fn-math.c, src/mathfunc.[ch]: Moved gcd to
 	mathfunc.c.

1217 1218
2000-01-31  Jody Goldberg <jgoldberg@home.com>

1219 1220 1221 1222 1223 1224 1225 1226 1227 1228
	* src/worksheet.h : Move more of the pure view elements into
	  WorkbookPrivate.

	* src/sheet.h : Remove include of workbook.h

	* *.c : manually include workbook.h only where we need it.

	* src/ranges.c (parse_range) : Move here from dialog-analysis-tools.c
	  to avoid warnings.

1229 1230
	* src/corba-workbook.c (Workbook_save_to) : Adjust to new calling
	  convention.
1231
	* src/corba-workbook-factory.c (WorkbookFactory_read) : Ditto.
1232

1233 1234 1235 1236 1237
	* src/parser.y : Support interbook references.

	* src/item-bar.c : Ignore scroll-wheel events. Eventually the app will
	  handle these rather than the grid.

1238 1239 1240 1241 1242
2000-01-31  Matthias Warkus  <mawa@iname.com>

	* *.png, Makefile.am, gnumeric.keys.in: New file type icons. Flame
	me if anything went wrong.

1243 1244 1245 1246
2000-01-31  Yuan-Chung Cheng <platin@linux.org.tw>

        * configure.in: Added "zh_CN.GB2312" to ALL_LINGUAS.

1247 1248 1249 1250 1251 1252 1253 1254 1255
2000-01-31  Jon K Hellan  <hellan@acm.org>

	* src/xml-io.c (gnumeric_xml_read_workbook): Never return -1
	without calling gnumeric_error_read
	(gnumeric_xml_write_workbook): s/read/write/

	* src/file.c (workbook_load_from): Report read failure if all
	probes fail.

1256 1257 1258 1259 1260
Sun Jan 30 15:40:50 EST 2000 Gregory McLean <gregm@comstar.net>

	* gnumeric.spec.in: Added in some logic to autogenerate the 
	catalog's file spec.

1261 1262
2000-01-30  Jody Goldberg <jgoldberg@home.com>

1263 1264 1265
	* src/item-bar.c (item_bar_event) : Propage scroll-wheel events up to
	  the parent.

1266 1267 1268
	* src/sheet.c (sheet_cancel_pending_input) : Reload the edit area with
	   the current cell's value when an edit is canceled.

1269 1270 1271 1272 1273
2000-01-30  Timur I. Bakeyev  <timur@gnu.org>

	* configure.in: AM_GNU_GETTEXT changed to AM_GNOME_GETTEXT - that
	makes proper substitution for INTLLIBS variable.
	
Jody Goldberg's avatar
Jody Goldberg committed
1274 1275
2000-01-29  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286
	* src/gnumeric-sheet.h (gnumeric_sheet_stop_cell_selection) : Remove
	  duplicate decl.

	* src/item-grid.c : Remove unused enum SELECTING_CELL_RANGE.

	* src/application.[ch] (application_workbook_get_by_{index,name}) :
	  New functions.

	* src/selection.c (sheet_selection_paste) : Reload the edit field when
	  finished. The current cell may have changed.

1287 1288 1289
	* src/sheet.c (sheet_accept_pending_input) : Use
	  gnumeric_sheet_destroy_editing_cursor.

Jody Goldberg's avatar
Jody Goldberg committed
1290 1291 1292
	* src/xml-io.c (gnumeric_xml_read_workbook) : Really return 0 on
	  success.

1293 1294 1295 1296
	* src/workbook.c (workbook_realized) : Delete unused function.
	(accept_input) : Force the sheet into edit mode when a user activates
	  the edit bar.

1297 1298 1299 1300 1301 1302
2000-01-30  Jon K Hellan  <hellan@acm.org>

	* src/xml-io.h (gnumeric_xml_read_workbook): Return int
	* src/xml-io.c (gnumeric_xml_read_workbook): Return 0 on success,
	-1 on failure. Use gnumeric_error_read to display messages.

1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326
2000-01-29  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_set_text_undo) : Special case VALUE_EMPTY.
	  Move to the previous cell only after reverting its value so that the
	  edit area is updated.
	(cmd_set_text) : Retrieve the old text of the cell directly.

	* src/sheet.c (sheet_set_current_value) : Delete and merge into...
	(sheet_accept_pending_input) : Here.  Harmonize the logic with.
	(sheet_cancel_pending_input) : this function.
	(sheet_set_text) : Publicize.
	(sheet_stop_editing) : Removed storage of value of cell being edited.
	(sheet_start_editing_at_cursor) : Ditto.

	* src/workbook.c (accept_input) : Use sheet_accept_pending_input.
	(redo_cmd, undo_cmd) : cancel pending input.

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

	* src/item-grid.c (item_grid_draw) : Pretend that the cell being
	  edited (and anything it spans) are empty.

	* src/sheet.c (sheet_duplicate_colrow) : Delete unused.

Jon K Hellan's avatar
Jon K Hellan committed
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401
2000-01-29  Jon K Hellan  <hellan@acm.org>

	Megacommit.

	The purpose of the changeset is twofold:

	1. Use CommandContexts for error reporting for file read/save.
	2. This allows us to let FileFormatOpen return 0 on success, -1 on
	   failure, same as FileFormatSave. The convention to return NULL
	   on success was highly ideosyncratic.

	* src/file.h (FileFormatOpen, FileFormatSave, workbook_load_from,
	workbook_import): Add CommandContext
	(FileFormatOpen, workbook_load_from): Return int instead of char*.
	
	* src/file.c (workbook_load_from, workbook_try_read,
	workbook_read, workbook_import, workbook_save_as, workbook_save)
	(file_error_message): Remove function
	(workbook_read, workbook_load_from, workbook_save_as,
	workbook_save): Do not display message, message, plugin does -
	using CommandContext.
	(workbook_load_from): Return int instead of char*.
	(workbook_load_from, workbook_import): fo->open returns int
	instead of char*.
	(workbook_try_read): Remove msg paramenter

	* src/workbook.c (workbook_persist_file_load,
	workbook_persist_file_save): Use workbook_command_context_gui.
	(file_import_cmd): ditto
	(file_open_cmd): ditto

	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Use
	workbook_command_context_gui. Call workbook_try_read without msg
	argument.

	* src/workbook.h (workbook_try_read, workbook_read,
	workbook_save_as, workbook_save): Add command context
	(workbook_try_read): Remove msg paramenter

	* src/dialogs/dialog-autosave.c (dialog_autosave_callback): 
	ditto

	* src/command-context.[ch] (gnumeric_error_read,
	gnumeric_error_save): New functions.

	* src/command-context-corba.c (ccc_error_read, ccc_error_save):
	Ditto.
	(ccc_init_class): Initialize error_read, error_save.

	* src/command-context-gui.c (ccg_error_read, ccg_error_save):
	Ditto.
	(ccg_init_class): Initialize error_read, error_save.

	* src/main.c (gnumeric_main): Make a CommandContext for use before
	we make first workbook. Unref it when no longer needed. Call
	plugins_init and workbook_read with CommandContext.

	* src/plugin-manager.c (add_cb): Use gnumeric_error_plugin_problem.
	(remove_cb): Ditto.

	* src/plugin.c (plugin_load, plugin_unload): CommandContext
	instead of workbook.
	(plugins_init): Add CommandContext.

	* src/plugin.c (plugin_load, plugin_unload): CommandContext
	instead of workbook.
	(plugin_unload): Use gnumeric_error_plugin_problem.
	(plugin_load_plugins_in_dir, load_all_plugins, plugins_init): Add
	CommandContext.

	* src/xml-io.h:  ditto

	* src/xml-io.c (gnumeric_xml_read_workbook,
	gnumeric_xml_write_workbook):  ditto

1402 1403 1404
2000-01-28    Mike Kestner    <mkestner@ameritech.net>

	* src/sheet-style.c (sheet_style_insert_colrow): Now does option checking
1405 1406 1407 1408 1409 1410
	  and calls either the new style preserving insert function or the existing
	  functionality in its new function.
	(stylish_insert_colrow): New.  Preserves style information by
	  extending ranges that contain the insertion point.
	(styleless_insert_colrow): Renamed.  Existing algorithm that fragments
	  style ranges to insert an unformatted col/row.
1411

1412 1413 1414 1415 1416 1417 1418 1419
2000-01-28  Michael Meeks  <mmeeks@gnu.org>

	* configure.in (have_gb): update.

	* plugins/Makefile.am: add gb.

	* configure.in: ditto.
	
1420 1421 1422 1423 1424 1425
2000-01-28  Jon K Hellan  <hellan@acm.org>

	* src/gnumeric-util.c (gnumeric_dialog_run): Handle wb = NULL
	correctly. Move handling of wb != NULL to gnumeric_wb_dialog_run.
	(gnumeric_wb_dialog_run): New static function.

1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451
2000-01-27  Jody Goldberg <jgoldberg@home.com>

	* *.c : convert to using Workbook::current_sheet rather than 
	    workbook_get_current_sheet.

	* src/workbook.c : Add a current_sheet member to Workbook.
	Delete some old test code.
	(do_focus_sheet) : Cancel inputs and update edit area with new cell.
	(workbook_focus_current_sheet) : Update current_sheet.
	(workbook_get_current_sheet) : Delete.

	* src/sheet.c (sheet_cursor_{move, set}) : Delete call to
	  gnumeric_sheet_cursor_set.

	* src/sheet.c (sheet_{row,col}_add) : Use sheet_view_scrollbar_config.
	  We should not be touching GUI directly.

	* src/sheet-view.c (sheet_view_scrollbar_config) : Set the scrollbar's
	  value as well as it max and page info.

	* src/gnumeric-sheet.[ch] (gnumeric_sheet_cursor_set) : Delete.
	  The scrollbars reflect the visible range, not the cursor cell.

	* src/item-cursor.c (item_cursor_set_bounds_visibly) : Remove call to 
	  gnumeric_sheet_cursor_set.

Jody Goldberg's avatar
Jody Goldberg committed
1452 1453 1454
	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) : std
	  toolbar has background then font colour combo box.

1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467
2000-01-27  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-advanced-filter.c, src/func.h, src/workbook.c:
	Implemented `Advanced Filter'.
	
	* src/mathfuns.[ch], src/analysis-tools.c, src/dialogs/dialogs.h,
 	src/dialogs/dialog-analysis-tools.c: Added the following
 	distributions for the random number generation tool:
	- poisson
	- binomial
	- negative binomial
	- exponential

Nick Lamb /GIMP's avatar
Nick Lamb /GIMP committed
1468 1469 1470 1471 1472
2000-01-27  Nick Lamb <njl195@zepler.org.uk>

	* doc/C/images/*.png: New screenshots for documentation, part 2/3
	Still no changes to live documentation yet.

1473 1474
2000-01-26  Jody Goldberg <jgoldberg@home.com>

1475 1476 1477 1478 1479 1480 1481 1482
	* src/xml-io.c (xml_workbook_write) : Do not save the current
	  edit-text.  We don't save the current cell or the current selection
	  so restoring the text of the ex-cursor is quite confusing.
	(xml_workbook_read) : Restore window size.
	(gnumeric_xml_sheet_{read,write}) : Delete unused.
	(xml_get_range) : Utility routine.
	(xml_read_selection_info) : Utility routine to restore the selection.

1483 1484 1485 1486
	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : Do the
	  insert/delete even if it looks like there are no cells there.
	  There may be styles.

1487 1488 1489 1490 1491 1492 1493
2000-01-27  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-object.c (sheet_object_drop_file): fix typo.

	* src/sheet-style.c (sheet_style_delete_colrow): Fix bug in style
	shifting.

1494 1495 1496 1497 1498 1499 1500
2000-01-26  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-util.c (gnumeric_dialog_run) : Handle the setting of
	  the parent here rather than scattering it throughout the system.

	* src/item-grid.c (item_grid_event) : Support mouse-wheel scrolling.

1501 1502 1503 1504 1505 1506 1507
2000-01-26  Jon K Hellan  <hellan@acm.org>

	* src/item-cursor.c (item_cursor_draw): Clip to bounds of
	drawable.  Avoid guint16 overflow during line drawing. Do the
	right thing when autofill handle is at top of viewport.
	Use explicit lower right coordinate for cursor.
	
1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528
2000-01-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (sheet_view_set_zoom_factor) : Keep the cursor in
	  the same place and recompute the alignments for everything.

	* src/item-cursor.c (item_cursor_set_bounds) : New function.

	* src/gnumeric-sheet.h : Add more orthogonal structure for caching
	  common row/col bounds and their canvas offsets.

	* src/gnumeric-sheet.c (gnumeric_sheet_create) : Init the new members.
	(gnumeric_sheet_filenames_dropped) : Keep the canvas private.
	(gnumeric_sheet_make_cell_visible) : Add 'force_scroll' argument.

	* src/clipboard.c (clipboard_release) : It is possible to have no
	  styles associated with a region.

	* src/item-grid.c : Remove overlapping cache of bounding rows/cols and
	  offsets.  Use the superset in GnumericSheet.
	 (item_grid_find_{row, col}) : Support sliding backwards.

1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545
2000-01-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/solver-lp.c: Implemented the `>=' and `=' constraints.
  	Solver should be quite usable now for LP problems assumed to be
 	non-negative.

	* src/dialogs/dialog-solver.c: Related changes.

	* src/dialogs/advanced-filter.glade,
 	src/dialogs/dialog-advanced-filter.c: New files added.  Not done
 	yet.
	
2000-01-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-autocorrect.c (dialog_autocorrect): Made the
 	unimplemented replace option unsensitive.
	
1546 1547 1548 1549 1550 1551 1552
2000-01-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/workbook.[ch]: Made workbook_is_dirty() public.

	* src/dialogs/dialog-autosave.c (dialog_autosave_callback): Added
 	checking whether the workbook is changed or not before saving it.

Jody Goldberg's avatar
Jody Goldberg committed
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564
2000-01-24  Jody Goldberg <jgoldberg@home.com>

	* src/cell-draw.c (cell_draw) : Take the style as an argument, no need
	  to recompute something that is already available.

	* src/xml-io.c (xml_sheet_read) : Move the {freeze,thaw}_redraws here.
	(xml_read_cell) : Remove the sillyness about removing newlines and
	  trailing spaces.  Remove the {freeze,thaw}_redraws.

	* src/cell.c (cell_set_text_simple) : Store the rendered value.
	(cell_set_text) : Store the entered value.

1565 1566 1567 1568 1569 1570 1571 1572
2000-01-24 Jon K Hellan  <hellan@acm.org>

	* src/dialogs/autocorrect.glade: Really commit the changes I
	entered into the ChangeLog yesterday.

	* ChangeLog: I jumbled the order and attributions of some entries
	yesterday. Fix.
	
1573 1574
2000-01-24  Jukka-Pekka Iivonen  <iivonen@iki.fi>

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
1575 1576 1577 1578 1579 1580
	* src/dialogs/analysis-tools.glade, src/dialogs/Makefile.am: New
 	file added.

	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis): Made
 	the main dialog of the analysis tools to use the new Glade file.

1581 1582 1583 1584 1585 1586 1587 1588 1589 1590
	* src/dialogs/solver-options.glade, src/dialogs/Makefile.am: New
 	file for Solver options.

	* src/dialogs/dialog-solver.c: Updated for the new Glade file.
  	Removed some unimplemented options.  Made the Solver options
 	unsensitive.

	* src/sheet.c (sheet_new): Added setting some default parameter
 	values for the Solver tool.
	
1591 1592 1593 1594
2000-01-23  Miguel de Icaza   <miguel@gnu.org>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle
	GDK_ISO_Left_Tab and GDK_KP_Tab as well, per Chris' suggestion. 
1595

1596 1597
2000-01-23  Jon K Hellan  <hellan@acm.org>
	
1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619
	* src/dialogs/autosave-prompt.glade: Give "Yes"
	button initial keyboard focus.
	
	* src/dialogs/autosave.glade: Set initial focus to
	first check button. Make OK the default.

	* src/dialogs/dialog-autocorrect.c (dialog_autocorrect): Make
	<Ret> in entry fields invoke default.
	(dialog_autocorrect, exceptions_callback): 

	* src/dialogs/autocorrect-exceptions.glade: Set initial focus to
	text entry field. Make OK the default. Do not show column headers
	in clist. Remove unnecessary level of scrollwindow.

	* src/dialogs/autocorrect.glade: Make OK the default. Set initial
	focus to first check button. Define accelerators. Set widgets for
	"replace text when typed" insensitive until feature is
	implemented. Do not show column headers in clist.

	* src/dialogs/dialog-autosave.c (dialog_autosave): Make
	<Ret> in "minutes" fields invoke default.

1620 1621 1622 1623 1624 1625
2000-01-18  Miguel de Icaza  <miguel@gnu.org>

	* src/clipboard.c (x_selection_to_cell_region): Do not hardcode
	',' as a number separator.  Use the locale information to select
	the proper separator.

Michael Meeks's avatar
Michael Meeks committed
1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646
2000-01-23  Michael Meeks  <michael@edenproject.org>

	* src/ranges.c (range_translate): fix glaring bugs + make
	semantics saner.
	(range_transpose): implement.

	* src/clipboard.c (do_clipboard_paste_cell_region): s/cell.cell/cell.
	(x_selection_to_cell_region): Null styles.
	(clipboard_prepend_cell): kill mstyle inefficiency.
	(clipboard_release): destroy styles.
	(sheet_paste_selection): new style bits.

	* src/render-ascii.c (cell_region_render_ascii): kill cell.cell

	* src/cell.h (CellCopy): Kill MStyle member.

	* src/ranges.c (range_init): implement helper.

	* src/sheet-style.c (style_region_destroy): add precondition.
	(sheet_get_styles_in_range, sheet_style_list_destroy): implement.

Jody Goldberg's avatar
Jody Goldberg committed
1647
2000-01-22  Jody Goldberg <jgoldberg@home.com>
Arturo Espinosa's avatar
Arturo Espinosa committed
1648

Jody Goldberg's avatar
Jody Goldberg committed
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684
	* src/sheet-view.c (sheet_view_redraw_headers) : New function that
	  will redraw a subset of an itembar.
	(sheet_view_redraw_columns) : Delete.
	(sheet_view_redraw_rows) : Delete.

	* src/sheet.c (sheet_redraw_headers) : Call sheet_view_redraw_headers.
	(sheet_redraw_columns) : Delete.
	(sheet_redraw_rows) : Delete.

	* src/gnumeric-sheet.h (GnumericSheet) : Remove unused member item_bar_col.

	* src/colrow.c (col_row_set_visiblity) : Use sheet_redraw_headers
	  in place of sheet_redraw_{cols,row}.
	* src/selection.c (sheet_selection_append_range) : Ditto.
	(sheet_select_all) : Ditto.
	(sheet_selection_reset_only) : Ditto.  Clear the selection internally.

	* src/sheet.c (sheet_{col,row}_get_distance) : Handle from > to.

	* src/item-cursor.c (item_cursor_get_pixel_coords) : Use the
	  precalculated offsets.
	* src/item-edit.c (item_edit_get_pixel_coords) : Ditto.

	* src/gnumeric-sheet.c (gnumeric_sheet_bar_set_top_row) : Update the
	  item_grid's notion of the top.  Calculate the new distance using the
	  previous top as the start point.
	(gnumeric_sheet_bar_set_left_col) : Rename from top_col.  Ditto.

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

	* src/item-bar.c (item_bar_draw) : Remove minor drawing glitch when
	  drawing at the edge of the sheet.
	(item_bar_class_init) : Remove the unsed 'First' argument.

	* src/item-grid.c (item_grid_draw) : Draw gridlines even at the
	  outer edges.
Arturo Espinosa's avatar
Arturo Espinosa committed
1685 1686 1687

2000-01-16  Miguel de Icaza  <miguel@gnu.org>

Jody Goldberg's avatar
Jody Goldberg committed
1688 1689
	* plugins/Makefile.am : Remove python plugin.
	* plugins/python/Makefile.am : Remove python plugin.
Arturo Espinosa's avatar
Arturo Espinosa committed
1690

1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753
2000-01-21  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-printer-setup.c (do_hf_config) : Take a Workbook.

	* src/gnumeric-util.c (gnumeric_dialog_run) : New function.
	  It is a wrapper for now.  After the release of .48 we will
	  move the parent setting here.  And handle the case where a
	  user closes the app window while a dialog is displayed.

	* src/file.c (workbook_import) : Use gnumeric_dialog_run.

	* src/dialogs/dialog-{dialog-zoom.c (dialog_zoom_impl)
		    summary.c (dialog_summary_update)
		    solver.c (dialog_solver)
		    solver.c (constr_add_click)
		    solver.c (dialog_solver_options)
		    simple-input.c (dialog_get_number, dialog_get_sheet_name)
		    printer.c (gnumeric_printer_dialog_run)
		    paste-special.c (dialog_paste_special)
		    insert-cells.c (dialog_insert_cells_impl)
		    goto-cell.c (dialog_goto_cell)
		    goal-seek.c (dialog_found_solution, dialog_goal_seek)
		    function-wizard.c (dialog_function_wizard)
		    delete-cells.c (dialog_delete_cells_impl)
		    cell-sort.c (dialog_cell_sort)
		    cell-format.c (fmt_dialog_impl)
		    cell-comment.c (dialog_cell_comment)
		    autosave.c (dialog_autosave_callback, dialog_autosave)
		    autocorrect.c (exceptions_callback)
		    (dialog_autocorrect)} : Ditto.

	* src/dialogs/dialog-analysis-tools.c
	(dialog_{correlation_tool, covariance_tool, sampling_tool,
	 descriptive_stat_tool, ztest_tool, ttest_paired_tool, ttest_eq_tool,
	 ttest_neq_tool, ftest_tool, random_tool, regression_tool,
	 average_tool, ranking_tool, anova_single_factor_tool,
	 anova_two_factor_without_r_tool, data_analysis}) : Ditto.

	* src/workbook.c (workbook_can_close) : Ditto.
	* src/item-cursor.c (item_cursor_target_region_ok) : Ditto.

	* src/sheet.c (sheet_move_range) : Avoid leaking when we paste.
	  This information will be used when undo for pasteing a cut
	  is ready.

	* README : update requirements.

	* plugins/Makefile.am : Do not compile the python plugin by
	  default.  This will avoid complaints regarding problems with
	  no dynamic python library until we have a solution.

	* src/functions/fn-stat.c : (gnumeric_kurt, gnumeric_kurtp) : return DIV/0
	  on error.

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

	* src/functions/fn-stat.c (gnumeric_kurtp, gnumeric_kurt) :
	  return DIV/0 on error.

	* src/sheet.c (sheet_move_range) : Release the list of changed
	  expressions until we have paste_cut undo ready.

2000-01-20  Morten Welinder  <terra@diku.dk>
Morten Welinder's avatar
Morten Welinder committed
1754 1755 1756 1757 1758 1759

	* src/functions/fn-stat.c (gnumeric_stdev): Correct error code.

	* src/functions/fn-math.c (gnumeric_log): Correct error code and
 	protect from crash.

1760 1761 1762 1763 1764
2000-01-20  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_mod): Correct error code; fix
 	for b < 0.

Morten Welinder's avatar
Morten Welinder committed
1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775
2000-01-20  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-math.c (gnumeric_power): Correct error code.

	* src/functions/fn-stat.c (gnumeric_avedev): Correct error code.
	(gnumeric_varp): Ditto.
	(gnumeric_var): Ditto.
	(gnumeric_median): Ditto.
	(gnumeric_min): Empty list yields zero, not error.
	(gnumeric_max): Ditto.

1776 1777 1778 1779 1780 1781
2000-01-20  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-cmd-format.c (workbook_cmd_format_{col,row}_{hide,unhide}) :
	  Use the undo framework.

	* src/sheet.c (sheet_fill_selection_with) : Take a context.
Jody Goldberg's avatar
Jody Goldberg committed
1782
	(sheet_save_row_col_sizes) : Use is_cols. Doh!
1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Add
	  Alt-Pg{Up,Down}.  sheet_fill_selection_with now takes a context.

	* src/commands.c (cmd_hide_selection_rows_cols) : Implement undo for
	  row/col hiding.
	(cmd_hide_row_col_{undo,redo,destroy}) : Ditto.

	* src/item-grid.c (context_{col,row}_{hide,unhide}) : Use undo support.

	* src/selection.c (selection_get_ranges) : Improve heuristics.
	(sheet_selection_extend_{horizontal,vertical}) : Ensure that the cell
	  being moved stays visible.

1797 1798 1799 1800 1801
2000-01-20  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/dialog-autosave.c (dialog_autosave): Re-enable
	autosave timer on cancel.

Jon K Hellan's avatar
Jon K Hellan committed
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817
2000-01-19  Jon K Hellan  <hellan@acm.org>

	* src/workbook.c (workbook_do_destroy): Remove autosave timer.

	* src/dialogs/dialog-zoom.c (dialog_zoom_impl): Set initial focus
	to selected radio button.

	* src/dialogs/font-sel.glade.h, src/dialogs/font-sel.glade: Fix
	typo in preview text

	* src/dialogs/dialog-printer-setup.c (do_setup_main_dialog): 
	Set Initial focus for print setup dialog.
	
	* src/workbook.c (workbook_can_close): Yes/No dialog: Give cancel
	button initial keyboard focus.

1818 1819 1820 1821 1822
2000-01-19  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_animation_callback) : Return TRUE
	  so that the timer will remaing.

1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857
2000-01-19  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Modularize a
	bit more for the sort dialog.  Use GLADE_FILE macro.
	(dialog_cell_sort_ok): New function connected to the sort 
	dialog ok button.  Builds the clause data and then calls cmd_sort.
	(dialog_cell_sort_adv): Use GLADE_FILE macro.
	(clip_range_to_finite): New function, reduces an infinite range to
	an appropriate finite range.

	* src/commands.c (cmd_sort): New function for new command
	organization.
	(cmd_sort_redo): ditto
	(cmd_sort_undo): ditto
	(cmd_sort_destroy): ditto

	* src/sort.c (sort_compare_values): The former compare_values
	function from dialog_cell_sort.c.
	(sort_compare_values2): Does comparisons on original order
	for undo.
	(sort_qsort_func): The former qsort_func function from
	dialog_cell_sort.c.
	(sort_qsort_func2): Quicksort function for undo.
	(sort_range): Performs the sort.  Much the same as the 
	sort_cell_range function that was in dialog_cell_sort.c.
	Sorts the data of a CmdSort object, creating it if necessary.
	Takes the quicksort function to call as an argument.

	* src/sort.h : New header file
	
	* src/ranges.h: Prototype range_name.

	* src/ranges.c (range_name): New function that returns a 
	const char * to "A1:B5" type range name.

1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868
2000-01-19  Jody Goldberg <jgoldberg@home.com>

	* src/print-cell.c (print_cell_grid) : Don't print grid lines for
	  hidden cols/rows.

	* src/print.c (compute_groups) : Hidden cols/rows exist.  They just
	  don't take up any space.

	* src/parser.y : array_cols remove null production.  We can have
	  empty array_rows OR we can have empty array_cols.  Not both.

Jody Goldberg's avatar
Jody Goldberg committed
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880
2000-01-18  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (eval_expr_real) : Add OPER_UNARY_PLUS.
	(do_expr_decode_tree) : Ditto.
	(expr_dump_tree) : Ditto.

	* src/auto-format.c (do_af_suggest) : Add OPER_UNARY_PLUS.

	* src/parser.y (exp -> + exp): treat as OPER_UNARY_PLUS.

	* src/print-cell.c (print_cell_range) : Ignore hidden rows/cols.

Morten Welinder's avatar
Morten Welinder committed
1881 1882 1883 1884 1885 1886 1887 1888 1889
2000-01-18  Morten Welinder  <terra@diku.dk>

	* src/expr.c (eval_expr_empty): New function.

	* src/func.c (function_iterate_argument_values): New new
 	eval_expr_empty and ignore empty values.

	* src/collect.c (callback_function_collect): Handle NULL value.

1890 1891 1892 1893 1894
2000-01-18  Morten Welinder  <terra@diku.dk>

	* src/parser.y (exp -> + exp): treat as 0+exp.  Remove duplicate
 	production.

1895 1896 1897 1898 1899 1900 1901 1902 1903
2000-01-18  Morten Welinder  <terra@diku.dk>

	* plugins/Makefile.am (SUBDIRS): Delete the superseded stat
 	plugin.

	* plugins/stat/*: remove

	* configure.in (AC_OUTPUT): Ditto.

1904 1905
2000-01-18  Morten Welinder  <terra@diku.dk>

1906 1907 1908 1909 1910 1911 1912 1913
	* src/functions/fn-logical.c (logical_functions_init): Add result
 	type for IF.

	* src/auto-format.h (AutoFormatTypes): Add AF_FIRST_ARG_FORMAT2.

	* src/auto-format.c (do_af_suggest): Implement
 	AF_FIRST_ARG_FORMAT2.

1914 1915
	* configure.in (gnome-xml): Make the check HPUX safe.

1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963
2000-01-18  Jody Goldberg <jgoldberg@home.com>

	* src/xml-io.c (xml_write_colrow_info) : Save whether or not a row/col
	  is hidden.
	(xml_read_colrow_info) : Restore the hidden-ness.

	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) :
	  Col/Row pixel width < 0 indicates the row is hidden.
	(gnumeric_sheet_make_cell_visible) : Ditto.
	(colrow_set_units) : Ditto.
	(sheet_{row,col}_info_set_{height,width}) : Ditto.
	(sheet_{row,col}_set_internal_{height,width}) : Ditto.
	(sheet_{row,col}_get_distance) : Ditto.
	(sheet_{row,col}_get_unit_distance) : Ditto.
	(sheet_{row,col}_is_hidden) : Utility routines.
	(sheet_find_boundary_{vertical,horizontal}) : Skip hidden rows/cols.
	(sheet_row_col_visible) : Mark a contiguous set of rows/cols as
	  visible or hidden.

	* src/sheet.c (sheet_compute_col_row_new_size) : Ditto.

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

	* src/item-grid.c (item_grid_find_{col,row}) : Ditto.
	(item_grid_draw) : Skip cells in hidden rows cols.
	(item_grid_paint_empty_cell) : Ditto, just in case.
	(item_grid_draw_cell) : Ditto.
	(context_{col,row}_{hide,unhide}) : New functions.
	(item_grid_context_menu) : Add new menu items.

	* src/selection.c (selection_row_col_visible) : New function.
	cb_row_col_visibility : Utility function.

	* src/workbook-cmd-format.c
	(workbook_cmd_format_{column,row}_{hide,unhide}) : New functions.
	(workbook_cmd_format_column_std_width) : Stub.
	(workbook_cmd_format_row_std_height) : Stub.

	* src/workbook.c : Add hide/unhide to the row/col format menus.

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

	* configure.in : Add test for gnome-xml >= 1.8.5. This is
	  required to support the problems with versions 1.8.[234].
	* gnumeric.spec.in : Ditto.

1964 1965 1966 1967 1968
2000-01-18  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-stat.c (stat_functions_init): Add auto-format
 	hints to deserving functions.

1969 1970 1971 1972 1973 1974 1975 1976
2000-01-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-autocorrect.c: Made the exceptions of first
 	two letter correction actually work.

	* src/dialogs/autocorrect-exceptions.glade: Changed a list to a
 	columned list.
	
Jody Goldberg's avatar
Jody Goldberg committed
1977 1978 1979 1980
2000-01-18  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (x_selection_handler) : Add some preconditions to
	  make code more robust.
Morten Welinder's avatar
Morten Welinder committed
1981
	(x_selection_to_cell_region) : Do not use ',' or ';' as separators if
1982 1983
	  the current locale uses them as decimal points.
	(new_node) : Use g_strndup.
Jody Goldberg's avatar
Jody Goldberg committed
1984 1985 1986 1987

	* src/application.c (application_clipboard_clear) : Release ownership
	  of the selection when the clipboard is cleared.

1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007
2000-01-18  Jon K Hellan  <hellan@acm.org>

	* src/dialogs/autocorrect.glade, src/dialogs/autosave.glade,
	  src/dialogs/autosave-prompt.glade,
	  src/dialogs/autocorrect-exceptions.glade: Set invisible to
	  remove flicker

	* src/plugin-manager.c (plugin_manager_new): Give list initial
	keyboard focus, make "add" button default.
	(remove_cb): Select next row in list after remove
	(plugin_manager_new): Internationalize texts.

	* src/dialogs/dialog-cell-sort.c (order_box_set_default): Set
	initial keyboard focus.
	(dialog_cell_sort): Use gnome_dialog_close_hides to ensure dialog
	is destroyed exactly once.
	(dialog_cell_sort_adv): Ensure dialog is destroyed exactly once.
	* src/dialogs/cell-sort.glade: Set initial focus for advanced sort
	dialog.

Morten Welinder's avatar
Morten Welinder committed
2008 2009
2000-01-17  Morten Welinder  <terra@diku.dk>

2010 2011 2012
	* src/auto-format.c (do_af_suggest): The difference of two dates
 	is a number, not a date.

Morten Welinder's avatar
Morten Welinder committed
2013 2014
	* src/functions/fn-stat.c (gnumeric_average): Correct error code.

2015 2016 2017 2018 2019 2020 2021 2022 2023 2024
2000-01-17  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (cellref_relocate) : Before relocating check that the
	  input reference is valid.  Bounds checking assumes the input is
	  valid.

	* src/workbook.c (sheet_action_delete_sheet) : Clear the clipboard to
	  avoid references to the deleted sheet.
	* src/sheet.c (sheet_destroy) : Ditto.

2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042
2000-01-17  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Menu items for sheet and workbook preferences.

	* src/sheet-view.c (sheet_view_adjust_preferences) : New function.
	* src/sheet.c (sheet_adjust_preferences) : New function.
	(sheet_new) : Init the new preferences.
	(sheet_set_text) : Avoid leaking in the failure case.

	* src/selection.c (sheet_selection_paste) : Pass a context.

	* src/cell.c (cell_render_value) : display_fomulas is now a sheet
	  level preference.
	(cell_is_number) : return boolean.
	(cell_is_zero) : New function.

	* src/item-grid.c (item_grid_draw_cell) : honour display_zero.

Morten Welinder's avatar
Morten Welinder committed
2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059
2000-01-16  Morten Welinder  <terra@diku.dk>

	* src/datetime.c: New file.
	* src/datetime.h: New file.

	* src/format.c (split_time): Use datetime functions.

	* src/commands.c (cmd_set_date_time_redo): Do proper rounding.

	* src/functions/fn-date.c: Move date handling to datetime.c

	* src/utils.c: Move date stuff to datetime.c.  Renamed
 	systematically; all callers changed.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add datetime.c and
 	datetime.h.

2060 2061 2062 2063 2064 2065 2066 2067
2000-01-16  Miguel de Icaza  <miguel@gnu.org>

	* src/item-cursor.c (item_cursor_request_redraw): Remove my
	experimental border from here;  Reset previous border

	* src/selection.c (sheet_selection_change): Range code is not
	happy when the ranges do not intersect.  Handle this

2068 2069 2070 2071 2072
2000-01-17  Birger Langkjer <birger.langkjer@image.dk>

	* added gnome-spreadsheet.png and gnome-xls.png on behalf of
	kenneth@ripen.dk, the new icons for gnumeric files in the filemanager.

Morten Welinder's avatar
Morten Welinder committed
2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112
2000-01-16  Morten Welinder  <terra@diku.dk>

	* src/auto-format.c: New file.
	* src/auto-format.h: New file.

	* src/formats.c (cell_format_general, cell_format_numbers,
 	cell_format_currency, cell_format_account, cell_format_date,
 	cell_format_time, cell_format_percent, cell_format_fraction,
 	cell_format_science, cell_format_text): Make static.

	* src/cell.c (cell_set_formula): Free the format.  Only set format
 	if the cell was previously blank.
	(cell_has_assigned_format, cell_get_format): New functions.

	* src/parser.y (gnumeric_expr_parser): Drop const for
 	desired_format.  On error, free the format.
	(make_string_return): g_strdup the format.

	* src/expr.c (expr_parse_string): Drop const for desired_format.

	* src/functions/fn-financial.c (finance_functions_init): Add
 	result types for auto-format.

	* src/functions/fn-date.c (date_functions_init): Add result types
 	for auto-format.

	* src/functions/fn-math.c (math_functions_init): Add result types
 	for auto-format.

	* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add auto-format.c and
 	auto-format.h.

	* src/main.c (gnumeric_main): Init and shutdown for auto_format.

2000-01-16  Morten Welinder  <terra@diku.dk>

	* gnumeric.spec.in (gnome-print): require 0.10.

	* configure.in (gnome-print): require 0.10.

Miguel de Icaza's avatar
Miguel de Icaza committed
2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125
2000-01-16  Miguel de Icaza  <miguel@gnu.org>

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

	* src/selection.c (sheet_selection_change): Just queue redraws for
	the actual change on the selection.

	* src/sheet.c (sheet_redraw_selection): Make this one take a Range
	instead of a SheetSelection

	* src/item-cursor.c (item_cursor_request_redraw): We now only
	queue a redraw event for the exact area exposed.

2126 2127 2128 2129 2130
2000-01-15  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (delete_sheet_cmd) : Add a 'Delete Sheet' menu
	  item.

2131 2132
2000-01-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

jpekka's avatar
jpekka committed
2133 2134
	* samples/*.xls: Moved to samples/excel.
	
2135 2136 2137 2138 2139 2140
	* samples/statfuns.xls: Updated the LINEST test.

	* samples/excel: Created a new directory for XL samples.

	* samples/excel/solver-01.xls: Added a new test file.

Jody Goldberg's avatar
Jody Goldberg committed
2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186
2000-01-15  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (clear_{all,formats,comments,content}_cmd) : Use
	  cmd_clear_selection.

	* src/sheet.c (sheet_clear_region) : Merge all types of deletion into
	  this routine and add some bit flags to enable the different types.
	(sheet_clear_region_content) : Delete.
	(sheet_clear_region_comments) : Delete.
	(clear_cell_format) : Delete.
	(sheet_clear_region_formats) : Delete.
	(sheet_move_range) : Adapt to changes in sheet_clear_region.

	* src/selection.c (cb_sheet_selection_clear) : Delete.
	(sheet_selection_clear) : Delete.
	(cb_sheet_selection_clear_content) : Delete.
	(sheet_selection_clear_content) : Delete.
	(sheet_selection_clear_comments) : Delete.
	(sheet_selection_clear_formats) : Delete.
	(selection_get_ranges) : New function split out from selection_apply.
	(selection_apply) : Use selection_get_ranges.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use
	  cmd_clear_selection.
	* src/item-grid.c (context_clear_cmd) : Ditto.

	* src/corba-sheet.c (Sheet_clear_region) : Adapt to new clear_region
	  calling convention.
	(Sheet_clear_region_content) : Use sheet_clear_region.
	(Sheet_clear_region_comments) : Ditto.
	(Sheet_clear_region_formats) : Ditto.

	* src/commands.c (cmd_ins_del_row_col_{undo,redo}) : Reload the the
	  edit bar just in case.
	(cmd_set_date_time_{undo,redo}) : Ditto.
	(cmd_clear{,_undo,_redo,_destroy}) : Implement.

	* src/clipboard.c (paste_cell) : No need to flag the existance of
	  formulas.
	(paste_cell_flags) : Ditto.
	(do_clipboard_paste_cell_region) : Don't recalc here.
	(x_selection_received) : Recalc here.
	(clipboard_paste_region) : Only use the X selection if the user does
	  not pass in a CellRegion. Only use the clipboard_paste_callback_data
	  if we are going through the X selection.

2187 2188
2000-01-15  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
2189 2190 2191
	* src/cell.c (cell_set_formula): Set the "Pending recomputation"
 	value earlier.

2192 2193 2194 2195
	* src/dialogs/dialog-goal-seek.c (gnumeric_goal_seek): Restore old
 	value of failure.
	(dialog_goal_seek): Fix restoration on cancel.

2196 2197
	* src/functions/fn-math.c (range_bogusproduct): New function.
	(gnumeric_product): Use it.
Morten Welinder's avatar
Morten Welinder committed
2198
	(gnumeric_g_product): New function.
2199

Morten Welinder's avatar
Morten Welinder committed
2200 2201 2202 2203
2000-01-14  Morten Welinder  <terra@diku.dk>

	* configure.in (GTK+): Really do use base 1000.

2204 2205 2206 2207 2208 2209
2000-01-14  Miguel de Icaza  <miguel@gnu.org>

	* src/mstyle.c: Removed extern from he too.

	* src/commands.c (cmd_set_text): Kill extern from here.

Jon K Hellan's avatar
Jon K Hellan committed
2210 2211 2212 2213 2214 2215 2216
2000-01-14  Jon K Hellan  <hellan@acm.org>

	* src/functions/fn-financial.c (help_disc): Fix typo 

        * src/plugin.c (plugin_load): Include context when calling
	init_plugin. "data" was freed to early
 
2217 2218 2219 2220 2221
2000-01-14  Morten Welinder  <terra@diku.dk>

	* configure.in (GTK+, libglade, gnome-print): Fix version checks.
  	Use base 1000.  Someone else needs to fix Bonobo check.

2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236
2000-01-14  Jody Goldberg <jgoldberg@home.com>

	* src/dialogs/dialog-autocorrect.c (autocorrect_tool) : Suppress
	  warnings.

	* src/commands.h : Do not declare autocorrect_tool here.

	* src/item-grid.c (item_grid_draw) : Add support for hiding the
	  grid_lines.
	* src/sheet.c (sheet_new) : Init show_grid.

	* src/functions/fn-math.c (gnumeric_sumif) : Do not ignore empty cells
	  if there is a result range that we need to stay in sync with.  Fix
	  handling of inter-sheet references.

2237 2238 2239 2240 2241 2242 2243 2244 2245
2000-01-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialog-autocorrect.c, src/autocorrect.glade,
 	src/autocorrect-exceptions.glade: New tool added.  Most things
 	should work but not all have been completed.

	* workbook.c: Created `Data' menu and moved `Sort' into it.
  	Added `AutoCorrect' tool.
	
Daniel Veillard's avatar
Daniel Veillard committed
2246 2247 2248 2249 2250 2251
2000-01-14  Daniel Veillard <Daniel.Veillard@w3.org>

	* src/xml-io.c (xml_probe) made the routine silent
	* src/xml-io.c (xml_read_summary, xml_read_names) changed g_free to
	  xmlFree

2252 2253 2254 2255 2256
2000-01-13  Morten Welinder  <terra@diku.dk>

	* configure.in (GTK): Fix version check.  Need to fix all other
 	version checks also.

2257 2258 2259 2260 2261
2000-01-14  Nick Lamb <njl195@zepler.org.uk>

	* doc/C/images/*.png: New screenshots for documentation, part 1/2
	No changes to live documentation yet.

2262 2263 2264 2265 2266
2000-01-13  Morten Welinder  <terra@diku.dk>

	* src/parser.y (gnumeric_expr_parser): Avoid zillions of g_mallocs and
 	frees of the deallocation stuff.

2267 2268 2269 2270 2271 2272 2273
2000-01-13  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (horizontal_scroll_event,
			    vertical_scroll_event) : Mice with middle scroll
	  wheels frequently send just button release events, dont assume there
	  was a button_press.

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
2274 2275 2276 2277
2000-01-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/workbook.c, src/dialogs/dialog-autosave.c: Killed warnings.
	
2278 2279 2280 2281 2282 2283 2284
2000-01-13  Jody Goldberg <jgoldberg@home.com>

	* *.[ch] : eval_expr now takes an EvalPosition rather than a FunctionEvalInfo.

	* src/workbook.c (workbook_set_title) : Moved to workbook_view_set_title.
	(workbook_new) : Use workbook_view_set_size.

2285 2286 2287
	* src/file.c (workbook_import) : Quick workaround to allow an import
	  routine to cancel import without generating an error dialog.

2288 2289 2290 2291 2292 2293 2294
2000-01-13  Sergey Panov <sipan@mit.edu>

	* src/functions(fn-eng.c fn-financial.c fn-logical.c
        fn-lookup.c fn-math.c fn-sheet.c fn-stat.c fn-string.c):
        Applied patches from Valek Filippov <frob@df.ru> ---
	correcting format of the function descr. messages. 

2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308
2000-01-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/dialogs/dialog-autosave.c: Implemented ``Auto Save'' tool.

	* src/dialogs/autosave.glade: New file.

	* src/dialogs/autosave-prompt.glade: New file.

	* src/workbook.c: Added Autosave tool.
	
	* src/workbook.h: Added autosave paramters to the Workbook struct.

	* src/dialog-solver: Fixed a constraint delete bug.

2309 2310 2311 2312 2313 2314
2000-01-13  Daniel Veillard <Daniel.Veillard@w3.org>

	* src/xml-io.c (gnumeric_xml_write_sheet, gnumeric_xml_write_workbook,
	  xml_workbook_write, xml_sheet_write) : removed use of xmlNewGlobalNs
	  to use xmlNewNs on the root element of the document instead

2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326
2000-01-13  Jody Goldberg <jgoldberg@home.com>

	* src/application.c (application_clipboard_copy,
	  application_clipboard_cut) : Use application_set_selected_sheet.
	(application_set_selected_sheet) : New routine that manages exporting
	  selection to X too.

	* src/clipboard.c (x_selection_clear) : Something else now has the
	  selection.  Clear ours.
	(clipboard_export_cell_region) : Delete.
	(find_local_workbook_with_selection) : Delete.
	(workbook_selection_locator) : Delete.
2327 2328
	(x_selection_handler) : We need to clear the region when we paste a
	  region that was marked for cut rather than copy.
2329 2330 2331 2332

	* ./src/item-grid.c (item_grid_popup_menu) : Always enable paste,
	  only enable paste special when we have a local cut.  This matches
	  the behavior of the menus and toolbar.
Jody Goldberg's avatar
Jody Goldberg committed
2333 2334 2335 2336

	* gnumeric.spec.in : Add a depend on libgtk+ >= 1.2.2 because 1.2.1
	  did not have gtk_object_get.

2337 2338
	* configure.in :  Ditto.

2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349
2000-01-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/workbook.c (workbook_menu_tools): UIINFO separators added to
 	Tools menu.

	* src/dialogs/dialog-solver.c (constr_add_click): Made the solver
	dialog to disapear when adding constraints.

	* src/dialogs/dialog-solver.c (constr_delete_click): Implemented
 	the delete button of constraints.

2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368
2000-01-11  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_detach_sheet) : Even books with only 1
	  sheet can have inter-sheet references.  think inter-book...
	(workbook_can_detach_sheet) : Delete we can always detach a sheet.

	* src/expr.c (cellref_relocate) : We only need to range check
	  references that are changing.

	* src/workbook.c (workbook_expr_relocate) : Copying to the same
	  logical cell in another sheet is still a copy.

	* ./src/eval.c (cell_queue_recalc_list) : Handle cross workbook
	  depends correctly.

	* src/eval.c (sheet_get_intersheet_deps) : Delete it is now unnecessary.
	(dependency_data_destroy) : invalidate dangling intersheet
	  dependancies.

2369 2370 2371 2372 2373 2374 2375 2376 2377
2000-01-10  Morten Welinder  <terra@diku.dk>

	* src/format.c (split_time): Improve rounding precision and avoid
 	overflow.  Also, round before doing date part.

	* src/functions/fn-date.c (gnumeric_hour, gnumeric_minute,
 	gnumeric_second): Don't do the 0.5 second rounding here.
	(get_serial_date, get_serial_time): Do it here.

2378 2379 2380 2381 2382
2000-01-10  Jody Goldberg <jgoldberg@home.com>

	* src/application.c (application_clipboard_cut) : Typo.
	* src/workbook-view.c (workbook_view_set_paste_special_state) : Typo.

2383 2384 2385 2386
2000-01-09  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_insert_cols) : Be kinder to translators.
	(cmd_insert_rows) : Ditto.
2387
	(cmd_rename_sheet_{undo,redo,destroy}) : Implement.
2388 2389 2390
	(cmd_rename_sheet) : Implement.
	(cmd_set_date_time_{undo,redo,destroy}) : Implement.
	(cmd_set_date_time) : Implement.
2391 2392
	(cmd_resize_row_col_{undo,redo,destroy}) : Implement.
	(cmd_resize_row_col) : Implement.
2393

2394
	* src/workbook.c (insert_at_cursor) : Delete.
2395
	(insert_current_time_cmd) : Use cmd_set_date_time.
2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409
	(insert_current_date_cmd) : Ditto.
	(sheet_label_text_changed_signal) : Use cmd_rename_sheet.
	(sheet_action_rename_sheet) : Ditto.

	* src/corba-workbook.c (Workbook_sheet_rename) : Use cmd_rename_sheet.
	* src/workbook-cmd-format.c (workbook_cmd_format_sheet_change_name) : Ditto.
	(workbook_format_toolbar_orient) : New function to hide font selector
	  when vertical.
	(workbook_create_format_toolbar) : Connect to workbook_format_toolbar_orient.

	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Enable
	  Bonobo version.
	(change_menu_label) : Ditto.
	(workbook_view_set_paste_special_state) : Ditto.
2410

2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424
2000-01-08  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric-util.c (gnumeric_char_start_expr_p) : new function.

	* src/workbook.c (wizard_input) : Use gnumeric_char_start_expr_p.

	* src/cell.c (cell_set_formula) : Add a precondition to ensure that
	  this is an expression.
	(cell_set_text_simple) : Use gnumeric_char_start_expr_p.

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

	* src/sheet.c (sheet_set_text) : Ditto.

2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435
2000-01-07  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_move_range) : Recalc here until there is a
	  command wrapper for shift and cut_paste.

	* src/sheet.c (sheet_{insert,delete}_{rows,cols}) : Move recalc
	  request into the command wrapper.
	* src/eval.c (sheet_recalc_dependencies) : Ditto.

2000-01-07  Mike Kestner <mkestner@enteract.com>

2436 2437 2438
	* src/dialogs/dialog-simple-input.c (dialog_get_sheet_name) :
	  Preselect the name of the sheet in the dialog.

2439 2440 2441
	* src/workbook.c (sheet_action_rename_sheet) : Enable rename from the
	  popup menu associated with sheet tabs.

2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452
2000-01-07  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (sheet_recalc_dependencies): add precondition, use
	the single dependency hash instead for more speed. Always do the
	workbook_recalc to clearl the queue.
	(cb_cell_get_all_depends): rename to (cb_single_get_all_depends):
	and simplify. (cb_sheet_get_all_depends): clean slightly.
	(search_range_deps): Use g_list_concat + g_list_copy instead.
	(sheet_region_get_deps): clip the range to the sheet extent for vital
	speedup.

2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474
2000-01-07  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_ins_del_row_col_*) : Implement.

	* src/cell.c (cell_set_formula_tree_simple) : Correct the docs.

	* src/sheet.c (sheet_insert_cols, sheet_insert_rows,
	  sheet_delete_cols, sheet_delete_rows) : Return flags to
	  indicate failure.  return list of expressions and locations that
	  were modified as a result of the change.

	* src/workbook.c (workbook_expr_relocate) : Correct documentation.
	(sheet_suspend_auto_expr, sheet_resume_auto_expr) : Delete unused functions.
	(workbook_expr_unrelocate, workbook_expr_unrelocate_free) : New functions.

	* src/eval.c (sheet_get_intersheet_deps) : No need for sheet member.
	(sheet_region_get_deps) : No need to init sheet.  Use g_list_concat.
	(sheet_recalc_dependencies) : All regions & cells in the sheet
	  contribute.
	(cb_cell_get_all_depends) : New function.
	(cb_sheet_get_all_depends) : New function.

2475 2476
2000-01-06  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
2477 2478
	* configure.in : correct typo as per bug 4936.

2479 2480 2481 2482 2483 2484 2485
	* src/commands.c (cmd_ins_del_row_col_undo) : Fix operator precedence.
	(cmd_ins_del_row_col_redo) : Ditto.

	* src/sheet.c (sheet_save_row_col_sizes) : Be extra careful.

	* src/gnumeric-sheet.c : Add include for commands.h.

2486 2487 2488 2489 2490
2000-01-06  Morten Welinder  <terra@diku.dk>

	* src/parser.y (register_allocation): Return a value, ahem...
	(unregister_allocation): Don't crash, just warn on trouble.

Michael Meeks's avatar
Michael Meeks committed
2491 2492 2493 2494 2495 2496 2497
2000-01-06  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent): stop start.col/row going negative;
	why they should I have no idea.

	* src/sheet-style.c (sheet_style_get_extent): Ignore last global region.

2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643
2000-01-05  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_move_range, sheet_insert_cols, sheet_delete_cols),
	(sheet_insert_rows, sheet_delete_rows): use sheet_recalc_dependencies.

	* src/eval.c (cell_eval_content): Hack out stubs of value tree
	pruning. (cell_eval): ditto.
	Stupidly remove all inline optimization.
	(sheet_recalc_dependencies): implement.

2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/clipboard.c (do_clipboard_paste_cell_region): add back
	region_get_deps.

2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent): fit inside the max_used bounds.

	* src/eval.c (search_range_deps): add back.
	(cell_get_single_dependencies): make API nicer + rename to
	(get_single_dependencies). (sheet_region_get_deps): revive, add
	single dependency checking + more logical name.

1999-12-31  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (cell_get_dependencies): add debub.
	(sheet_dump_dependencies): dump pending eval_queue.
	(drop_cell_range_dep): improve debug + kill printout.

	* src/cell.c (cell_relocate): When we relocate, we change the content,
	hence do a cell_content_changed.

	* src/clipboard.c (paste_cell): Do a 'cell_relocate' when we relocate
	a cell :-).

1999-12-30  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (drop_cell_range_dep): fast range dep drop.
	(cell_drop_dependencies): kill iterate over sheet in favour of faster
	drop_cell_range_dep. ( drastic simplification )
	Kill 'remove_list' (dependency_remove_cell): Kill.

	* src/sheet.c (sheet_cell_remove_from_hash): drop dependencies.

	* src/Gnumeric.idl: Add ';'.

	* src/eval.c (cell_eval_content): Comment out & 'fix' the 'changed'
	return value.

1999-12-24  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (DependencySmall): Use a CellPos, we don't need or want
	a Sheet pointer in this structure. (dependency_small_hash): remove sheet
	usage. (dependency_small_equal, handle_cell_small_dep): ditto.

	(DependencyRange): Kill redundant ref_count member, this was just ==
	g_list_length (DependencyRange->cell_list), and was not used sensibly.
	(dependency_remove_cell): check for cell_list == NULL not ref_count.
	(add_cell_range_dep, dependency_range_ctor, dump_range_dep): kill
	ref_count.

1999-12-23  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (cell_eval_content): documented + added 'changed' return
	value + check using value_equal if there is no change.

	* src/value.c (value_equal): implement.

	* src/value.h (struct _Value): comment redundant 'CellRef cell' member.

	* src/eval.c (dependency_range_ctor): kill redundant sheet in
	DependencyRange. (handle_cell_small_dep): add helpful precondition.
	(handle_cell_range_deps): Get the right sheet's deps.
	(add_cell_range_dep): Add DependencyData arg.
	(range_equal_func): remove sheet check.
	(search_cell_deps, search_intersheet_deps): ditto.

1999-12-22  Michael Meeks  <mmeeks@gnu.org>

	* src/clipboard.c (do_clipboard_paste_cell_region): remove redundant
	dependency queueing, this is done by cell_reloate in paste_cell anyhow.

	* src/eval.c (dump_range_dep, dump_small_dep): implement.
	(add_cell_range_dep): insert the inter sheet dependencies into the
	correct sheet's hash!
	(cell_get_range_dependencies): hence use only the sheet's hash and not
	all of the sheets !
	(cell_drop_dependencies): iterate over all sheets to kill dependencies.
	(dump_cell_list): implement.
	(handle_cell_range_dep): kill + (handle_tree_deps): fixup for ARRAY.

	* src/expr.c (eval_range): update warning + failure case.

	* src/workbook.c (workbook_can_detach_sheet): implement.
	(workbook_setup_edit_area, misc_output): debugging dumps.

	* src/eval.c (cell_drop_dependencies): only drop depends from single
	ref-counted formulae; (region_get_dependencies): kill it was used
	incorrectly all over the place. (search_range_deps): ditto.
	(search_intersheet_deps): implement. (sheet_get_intersheet_deps): implemtn.

	* src/clipboard.c (do_clipboard_paste_cell_region): remove get_deps +
	add warning.

	* src/workbook.c (workbook_do_destroy): call sheet_dump_dependencies.
	(dump_dep): move to eval.c (misc_output): hack debugging code.
	(workbook_can_detach_sheet): add warning + update ( this was broken ).

	* src/eval.c (cell_add_explicit_dependency): kill.
	(region_get_dependencies): add warning.
	(cell_drop_dependencies): Add handle_tree_deps; NB. this can be
	all moved elsewhere for speed later.
	(sheet_dump_dependencies): implement.

	* src/sheet.c (sheet_move_range): Kill region_get_dependencies +
	queue_recalc_list: cell_relocate has to do this anyway.
	(sheet_insert_cols, sheet_delete_cols,
	(sheet_insert_rows, sheet_delete_rows): ditto.

	* src/eval.c (dependency_small_hash, dependency_small_equal): implement.
	(handle_cell_range_depsm cell_add_dependencies, handle_tree_deps),
	(handle_cell_range_dep): rename + add 'add/remove' parameter.
	(cell_eval_content): update debug to ParsePosition.
	(handle_cell_range_deps): update with switch.
	(handle_cell_small_dep): implement.
	(cell_get_dependencies): hack.
	(cell_get_range_dependencies): split out.

1999-12-21  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (dependency_hash_init): kill.
	(dependency_data_new, dependency_data_destroy): implement.
	(cell_add_dependencies, cell_add_explicit_dependency),
	(region_get_dependencies, cell_get_dependencies): update preconditions.

	* src/sheet.c (sheet_destroy, sheet_new): use new functions.

	* src/sheet.h (Sheet): Use DependencyData.

	* src/eval.h: Add new / destroy functions for deps.

	* src/gnumeric.h: add DependencyData.

	* src/main.c: Add debug_deps.

2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655
2000-01-06  Jody Goldberg <jgoldberg@home.com>

	* *.[ch] : rename struct expr_relocate_info -> ExprRelocateInfo.

	* src/sheet.c (sheet_save_row_col_sizes) : New routine to support undo.
	(sheet_save_row_col_sizes) : Ditto.
	(col_row_info_init) : Init hard_size.

	* src/commands.c (cmd_ins_del_row_col_undo) : Restore the row/col size
	  info.
	(cmd_ins_del_row_col_redo) : Save the info.

2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673
2000-01-05  Morten Welinder  <terra@diku.dk>

	* src/commands.c (cmd_set_text_undo) : Free the old string.
	(command_push_undo) : No need to ref objects.  Things are born with
	  ref 1.
	(gnumeric_command_destroy): Brown paper bag fix.

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

	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE_WITH_PARENT) : new macro.
	(GNUMERIC_MAKE_COMMAND) : Use GNUMERIC_MAKE_TYPE_WITH_PARENT rather
	  than defining an empty Class for each command.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Pop the fake
	  SetText.

	* src/commands.c (cmd_delete_cols) : Fix typo.
	(command_list_pop_top_undo) : New command.
2674 2675 2676 2677
	(cmd_ins_del_row_col) : Call redo.
	(cmd_ins_del_row_col_redo) : Handle the insertion and deletion.
	(cmd_ins_del_row_col_undo) : Ditto. Still need to handle, values,
	  styles, and sizes.
2678 2679 2680 2681

	* src/command-context-corba.c (ccc_error_splits_array) : Suppress
	  warning.

2682 2683 2684 2685 2686 2687 2688 2689
2000-01-05  Jon K Hellan  <hellan@acm.org>

	* src/plugin-manager.c (struct PluginManager): Remove unused
	members. (BUTTON_ADD, BUTTON_REMOVE, BUTTON_CLOSE): Define
	(populate_clist):Remove set_sensitive. (row_cb): Use BUTTON_REMOVE define.
	(plugin_manager_new): Use BUTTON_.. defines. Allow user to expand
	size. Widen.

2690 2691 2692 2693 2694
2000-01-06  Michael Meeks  <mmeeks@gnu.org>

	* src/xml-io.c (xml_read_style): Actually read & use the font size; how
	did this die ?

Michael Meeks's avatar
Michael Meeks committed
2695 2696 2697 2698 2699
2000-01-05  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_get_font_size): fix a brainless precondition
	typo causing people grief; thanks to Jon.

2700 2701 2702 2703 2704
2000-01-05  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Disable
	  for bonobo versions.

Morten Welinder's avatar
Morten Welinder committed
2705 2706
2000-01-05  Morten Welinder  <terra@diku.dk>

2707 2708 2709
	* src/expr.c (eval_expr_real): Fix OPER_EXP operand test for the
 	float_t case.

Morten Welinder's avatar
Morten Welinder committed
2710 2711 2712 2713
	* src/parser.y (register_allocation, unregister_allocation):
 	Ignore NULLs.

2000-01-04  Morten Welinder  <terra@diku.dk>
2714 2715 2716 2717 2718 2719 2720

	* parser.y: revamp the allocation and deallocation system.

	* src/cell.c (cell_set_formula): Plug leak.

	* src/solver-lp.c (solver_simplex): j not used.

Jody Goldberg's avatar
Jody Goldberg committed
2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741
2000-01-04  Jody Goldberg <jgoldberg@home.com>

	* src/commands.[ch] : New files.

	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Take
	  strings to use as suffixes to undo and redo.  NULL indicates
	  disabled.

	* src/sheet.c (sheet_set_current_value) : Use cmd_set_text to register
	  undo.

	* src/workbook.c (workbook_menu_view) : Make The formula toggle a
	  toggle item.
	(workbook_menu_insert) : Move the insert object menu item here,
	  and adjust the selector characters to make more sense.
	(undo_cmd, redo_cmd) : Enable.

	(workbook_init) : Init the undo/redo lists.
	(workbook_do_destroy) : Clear the undo/redo lists.
	(wb_input_finished) : Delete.  It was the same as accept_input.

2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759
2000-01-03  Miguel de Icaza  <miguel@gnu.org>

	* src/cell.c (cell_render_value): Do not check for cell->sheet and
	cell->sheet->workbook, these must be true.

2000-01-02  Martin Sheppard  <martin.sheppard@iname.com>

	* src/workbook.h (struct _Workbook): add option to display text of
	formulas instead of their value

	* src/workbook.c (workbook_menu_edit): add menu oiption for toggling
	the display of formulas
	(toggle_formuals_cmd,cb_cell_rerender): new function to toggle the 
	display of formulas
	(workbook_new): initialize the display formulas option

	* src/cell.c (cell_render_value): implemented displaying formulas
	
2760 2761 2762 2763 2764 2765 2766
2000-01-02  Martin Sheppard <martin.sheppard@iname.com>

	* src/parser.{c,y} (yylex) : fixed so that while parsing a formula,
	a quoted function is convered to a string token rather than a 
	function call token. i.e. so that things like "sin" work properly in 
	formulas.
	
2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779
2000-01-03  Martin Sheppard <martin.sheppard@iname.com>

	* src/expr.c (strescape) : new function to escape strings
	(do_expr_decode_tree) : fixed so strings are escaped properly
	
2000-01-03  Miguel de Icaza  <miguel@gnu.org>

	* src/gnumeric-sheet.c (move_cursor): Fixed the annoying flashing
	of the cursor/selection problem by reverting to the old code setup.

	I also eliminated some animation of the cursor while doing this.


2780 2781 2782 2783 2784 2785
2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/func.c (function_remove, function_is_unused): implement.

	* src/symbol.c (symbol_is_unused, symbol_remove): implement.

2786 2787 2788 2789 2790
2000-01-03  Gregory McLean <gregm@gnu.org>

	* gnumeric.spec.in: Synced with my spec tree. This is in sync with
	0.47 and includes all the bits.

2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805
2000-01-03  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : paste_special is only disabled for
	  cut not for standard actions.

	* src/value-sheet.c (value_is_error) : New routine to look up errors.
	(gnumeric_error_init) : New routine.
	(constants_init) : Used here.

	* src/parser.y (yylex) : If a string begins with '#' it may be an
	  explicit error string.

	* src/xml-io.c (xml_write_style_border) : Write BORDER_NONE's too,
	  this makes it possible to save and restore the NONEs that erase borders.

Michael Meeks's avatar
Michael Meeks committed
2806 2807 2808 2809
2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/about.c (dialog_about): Add Ariel.

2810 2811 2812 2813 2814 2815 2816 2817
2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/func.c (function_marshal_arg): Split from
	(function_call_with_list): to make it sweeter.

	* src/sheet.c (sheet_get_extent): clip range to the max_used boundary,
	naff but gets round print problems for now.

2818 2819 2820
2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/clipboard.c (x_selection_to_cell_region): the last element
2821
	of a paste was being dropped and the region was being miss-computed
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838

2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/workbook-view.c (workbook_view_set_paste_special_state):
	Renamed this function to suit better its new purpose: only manage
	the paste special item, as paste can pull the information from the
	X clipboard.

	* src/parser.y (release_const_tree): New routine used to release
	exprtrees that we discard during parsing.

	array_expressions: The various NUMBERS used in this rule are
	never actually linked into the ExprTree, we are only interested in
	them to pull a couple of integers from it.  We now release them
	after we construct the formula.  This fixes the leaks reported by
	Morten. 

Jody Goldberg's avatar
Jody Goldberg committed
2839 2840 2841 2842 2843
2000-01-02  Jody Goldberg <jgoldberg@home.com>

	* src/application.h : Add application_clipboard_unant now that
	  it is used elsewhere.

Michael Meeks's avatar
Michael Meeks committed
2844 2845 2846 2847 2848 2849
2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.h (Sheet): Make generation guint8.

	* src/workbook.h (Workbook): ditto.

2850 2851
2000-01-01  Miguel de Icaza  <miguel@gnu.org>

2852 2853 2854
	* src/xml-io.c (xml_read_cell): Set the cell value to empty
	instead of an empty string.

2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887
	* src/cell.c (cell_set_text): Add warning if cell_set_text is
	invoked with the empty string.

	* src/workbook.c (workbook_edit_comment): Set the cell value to
	VALUE_EMPTY instead of setting it to "".

	* src/sheet.c (cellref_a1_get): Chek the range

2000-01-01  Miguel de Icaza  <miguel@gnu.org>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Use
	application_clipboar_unant here. 
	(gnumeric_sheet_key_mode_object): ditto.
	
	* src/sheet.c (sheet_start_editing_at_cursor): ditto.

	* src/workbook-format-toolbar.c (change_selection_font): ditto
	(set_selection_halign): ditto

	* src/application.c (application_clipboard_copy): Use defines.
	(application_clipboard_cut): Use defines.
	(application_clipboard_unant): New function, less agressive
	marking of unanting.

	* src/workbook-view.c (workbook_view_set_paste_state): Use
	named defines instead of arbitrary constants.  Please, no magic
	constants ever in Gnumeric guys.

	* src/application.c: 

	* src/workbook-private.h: Move the menu_item fields to
	workbook_private. 

Jody Goldberg's avatar
Jody Goldberg committed
2888 2889 2890 2891 2892
2000-01-01  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Make static again.
	* src/eval.c (workbook_next_generation) : Make static.

2893 2894 2895 2896
1999-12-31  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_import) : Support new plugin interface.

2897 2898
1999-12-31  Miguel de Icaza  <miguel@gnu.org>

2899 2900 2901 2902 2903
	* src/corba-workbook.c (workbook_corba_setup): Create the corba
	context here.
	(workbook_corba_shutdown): Destroy it here.
	(command_context_corba): Return it here.

2904 2905 2906 2907 2908 2909
	* src/corba-sheet.c: Use properly the command_context_corba,
	passing a workbook argument in all functions.

	* src/command-context-corba.c, src/command-context-corba.h:
	Implement CORBA versions of the CommandContext.

2910 2911 2912 2913 2914 2915 2916 2917
1999-12-30  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_command_context_gui) : minor warning
	  supression and adjustment of the comment to explain why we may
	  be called with a NULL workbook.  That occurs when an operation
	  occurs BEFORE a gui is available but we will be creating a gui
	  and want graphical error messages.

Ariel Rios's avatar
Ariel Rios committed
2918 2919 2920 2921
1999-12-30  Ariel Rios <jarios@usa.net>

	* doc/Makefile.am: Added guile-gnumeric.txt to dist files.

2922 2923
1999-12-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>