ChangeLog-2000-02-23 251 KB
Newer Older
1
2
3
4
5
6
2000-01-26  Jody Goldberg <jgoldberg@home.com>

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

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

14
15
16
17
18
19
20
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.

21
22
23
24
25
26
27
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.
	
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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.

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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.
	
66
67
68
69
70
71
72
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
73
74
75
76
77
78
79
80
81
82
83
84
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.

85
86
87
88
89
90
91
92
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.
	
93
94
2000-01-24  Jukka-Pekka Iivonen  <iivonen@iki.fi>

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
95
96
97
98
99
100
	* 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.

101
102
103
104
105
106
107
108
109
110
	* 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.
	
111
112
113
114
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. 
115

116
117
2000-01-23  Jon K Hellan  <hellan@acm.org>
	
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
	* 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.

140
141
142
143
144
145
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
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
167
2000-01-22  Jody Goldberg <jgoldberg@home.com>
Arturo Espinosa's avatar
Arturo Espinosa committed
168

Jody Goldberg's avatar
Jody Goldberg committed
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
	* 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
205
206
207

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

Jody Goldberg's avatar
Jody Goldberg committed
208
209
	* plugins/Makefile.am : Remove python plugin.
	* plugins/python/Makefile.am : Remove python plugin.
Arturo Espinosa's avatar
Arturo Espinosa committed
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
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
274
275
276
277
278
279

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

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

280
281
282
283
284
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
285
286
287
288
289
290
291
292
293
294
295
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.

296
297
298
299
300
301
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
302
	(sheet_save_row_col_sizes) : Use is_cols. Doh!
303
304
305
306
307
308
309
310
311
312
313
314
315
316

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

317
318
319
320
321
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
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.

338
339
340
341
342
2000-01-19  Jody Goldberg <jgoldberg@home.com>

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

343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
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.

378
379
380
381
382
383
384
385
386
387
388
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
389
390
391
392
393
394
395
396
397
398
399
400
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
401
402
403
404
405
406
407
408
409
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.

410
411
412
413
414
2000-01-18  Morten Welinder  <terra@diku.dk>

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

415
416
417
418
419
420
421
422
423
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.

424
425
2000-01-18  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
426
427
428
429
430
431
432
433
	* 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.

434
435
	* configure.in (gnome-xml): Make the check HPUX safe.

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

484
485
486
487
488
2000-01-18  Morten Welinder  <terra@diku.dk>

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

489
490
491
492
493
494
495
496
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
497
498
499
500
2000-01-18  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (x_selection_handler) : Add some preconditions to
	  make code more robust.
Jody Goldberg's avatar
Jody Goldberg committed
501
502
503
	(x_selection_to_cell_region) : Do not use ',' or ';' as seperators if
	  the current locale uses them as decimal points.
	(new_node) : Use g_strndup.
Jody Goldberg's avatar
Jody Goldberg committed
504
505
506
507

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

Jon K Hellan's avatar
Jon K Hellan committed
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
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
528
529
2000-01-17  Morten Welinder  <terra@diku.dk>

530
531
532
	* 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
533
534
	* src/functions/fn-stat.c (gnumeric_average): Correct error code.

535
536
537
538
539
540
541
542
543
544
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.

545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
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.

580
581
582
583
584
585
586
587
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

588
589
590
591
592
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
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
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
633
634
635
636
637
638
639
640
641
642
643
644
645
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.

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

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

Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
651
652
2000-01-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>

jpekka's avatar
jpekka committed
653
654
	* samples/*.xls: Moved to samples/excel.
	
Jukka-Pekka Iivonen's avatar
Jukka-Pekka Iivonen committed
655
656
657
658
659
660
	* 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
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
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.

707
708
2000-01-15  Morten Welinder  <terra@diku.dk>

Morten Welinder's avatar
Morten Welinder committed
709
710
711
	* src/cell.c (cell_set_formula): Set the "Pending recomputation"
 	value earlier.

712
713
714
715
	* src/dialogs/dialog-goal-seek.c (gnumeric_goal_seek): Restore old
 	value of failure.
	(dialog_goal_seek): Fix restoration on cancel.

716
717
	* src/functions/fn-math.c (range_bogusproduct): New function.
	(gnumeric_product): Use it.
Morten Welinder's avatar
Morten Welinder committed
718
	(gnumeric_g_product): New function.
719

Morten Welinder's avatar
Oops.    
Morten Welinder committed
720
721
722
723
2000-01-14  Morten Welinder  <terra@diku.dk>

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

Miguel de Icaza's avatar
Miguel de Icaza committed
724
725
726
727
728
729
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
730
731
732
733
734
735
736
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
 
737
738
739
740
741
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.

742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
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.

757
758
759
760
761
762
763
764
765
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
766
767
768
769
770
771
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

772
773
774
775
776
2000-01-13  Morten Welinder  <terra@diku.dk>

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

777
778
779
780
781
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.

782
783
784
785
786
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.

787
788
789
790
791
792
793
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
794
795
796
797
2000-01-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/workbook.c, src/dialogs/dialog-autosave.c: Killed warnings.
	
798
799
800
801
802
803
804
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.

805
806
807
	* src/file.c (workbook_import) : Quick workaround to allow an import
	  routine to cancel import without generating an error dialog.

808
809
810
811
812
813
814
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. 

815
816
817
818
819
820
821
822
823
824
825
826
827
828
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.

829
830
831
832
833
834
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

835
836
837
838
839
840
841
842
843
844
845
846
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.
847
848
	(x_selection_handler) : We need to clear the region when we paste a
	  region that was marked for cut rather than copy.
849
850
851
852

	* ./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
853
854
855
856

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

857
858
	* configure.in :  Ditto.

859
860
861
862
863
864
865
866
867
868
869
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.

870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
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.

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

898
899
900
901
902
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.

903
904
905
906
2000-01-09  Jody Goldberg <jgoldberg@home.com>

	* src/commands.c (cmd_insert_cols) : Be kinder to translators.
	(cmd_insert_rows) : Ditto.
Jody Goldberg's avatar
Jody Goldberg committed
907
	(cmd_rename_sheet_{undo,redo,destroy}) : Implement.
908
909
910
	(cmd_rename_sheet) : Implement.
	(cmd_set_date_time_{undo,redo,destroy}) : Implement.
	(cmd_set_date_time) : Implement.
Jody Goldberg's avatar
Jody Goldberg committed
911
912
	(cmd_resize_row_col_{undo,redo,destroy}) : Implement.
	(cmd_resize_row_col) : Implement.
913

Jody Goldberg's avatar
Jody Goldberg committed
914
	* src/workbook.c (insert_at_cursor) : Delete.
915
	(insert_current_time_cmd) : Use cmd_set_date_time.
Jody Goldberg's avatar
Jody Goldberg committed
916
917
918
919
920
921
922
923
924
925
926
927
928
929
	(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.
930

931
932
933
934
935
936
937
938
939
940
941
942
943
944
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.

945
946
947
948
949
950
951
952
953
954
955
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>

956
957
958
	* src/dialogs/dialog-simple-input.c (dialog_get_sheet_name) :
	  Preselect the name of the sheet in the dialog.

959
960
961
	* src/workbook.c (sheet_action_rename_sheet) : Enable rename from the
	  popup menu associated with sheet tabs.

962
963
964
965
966
967
968
969
970
971
972
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.

973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
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.

995
996
2000-01-06  Jody Goldberg <jgoldberg@home.com>

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

999
1000
1001
1002
1003
1004
1005
	* 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.

1006
1007
1008
1009
1010
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
1011
1012
1013
1014
1015
1016
1017
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.

Michael Meeks's avatar
Michael Meeks committed
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
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
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
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.

1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
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.

Morten Welinder's avatar
Morten Welinder committed
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
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.
1194
1195
1196
1197
	(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.
Morten Welinder's avatar
Morten Welinder committed
1198
1199
1200
1201

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

1202
1203
1204
1205
1206
1207
1208
1209
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.

1210
1211
1212
1213
1214
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
1215
1216
1217
1218
1219
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.

Jody Goldberg's avatar
Jody Goldberg committed
1220
1221
1222
1223
1224
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
1225
1226
2000-01-05  Morten Welinder  <terra@diku.dk>

1227
1228
1229
	* src/expr.c (eval_expr_real): Fix OPER_EXP operand test for the
 	float_t case.

Morten Welinder's avatar
Morten Welinder committed
1230
1231
1232
1233
	* src/parser.y (register_allocation, unregister_allocation):
 	Ignore NULLs.

2000-01-04  Morten Welinder  <terra@diku.dk>
1234
1235
1236
1237
1238
1239
1240

	* 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
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
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.

1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
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
	
1280
1281
1282
1283
1284
1285
1286
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.
	
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
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.


1300
1301
1302
1303
1304
1305
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.

1306
1307
1308
1309
1310
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.

1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
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
1326
1327
1328
1329
2000-01-03  Michael Meeks  <mmeeks@gnu.org>

	* src/about.c (dialog_about): Add Ariel.

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

1338
1339
1340
2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/clipboard.c (x_selection_to_cell_region): the last element
1341
	of a paste was being dropped and the region was being miss-computed
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358

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
1359
1360
1361
1362
1363
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
1364
1365
1366
1367
1368
1369
2000-01-02  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.h (Sheet): Make generation guint8.

	* src/workbook.h (Workbook): ditto.

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

1372
1373
1374
	* src/xml-io.c (xml_read_cell): Set the cell value to empty
	instead of an empty string.

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
1402
1403
1404
1405
1406
1407
	* 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
1408
1409
1410
1411
1412
2000-01-01  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Make static again.
	* src/eval.c (workbook_next_generation) : Make static.

Jody Goldberg's avatar
Jody Goldberg committed
1413
1414
1415
1416
1999-12-31  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_import) : Support new plugin interface.

1417
1418
1999-12-31  Miguel de Icaza  <miguel@gnu.org>

1419
1420
1421
1422
1423
	* src/corba-workbook.c (workbook_corba_setup): Create the corba
	context here.
	(workbook_corba_shutdown): Destroy it here.
	(command_context_corba): Return it here.

1424
1425
1426
1427
1428
1429
	* 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.

1430
1431
1432
1433
1434
1435
1436
1437
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
1438
1439
1440
1441
1999-12-30  Ariel Rios <jarios@usa.net>

	* doc/Makefile.am: Added guile-gnumeric.txt to dist files.

1442
1443
1999-12-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>

1444
1445
1446
	* src/utils.c (parse_cell_name_list): Cell ranges are now also
 	accepted.

1447
1448
1449
1450
1451
1452
1453
1454
1455
	* src/solver-lp.c: Implemented Simplex algorithm.  It can
 	currently solve LP maximization problems of positive variables
 	having `<=' constraints.

	* src/workbook.c: Added `Solver' tool.

	* src/utils.c (parse_cell_name_list): Bug fix.  The last item on
 	the list was not included on the list.
	
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1999-12-30  Miguel de Icaza  <miguel@gnu.org>

	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE): New macro, copied
	from Evolution.  We need to refactor our code in Gnumeric to use
	this macro.

	* src/workbook.c (workbook_do_destroy): Destroy the per-workbook
	context here.  Hardcoded to be a GUI context for now.
	(workbook_new): Create the context here.
	(workbook_command_context_gui): This routine is now the one that
	returns the command context.

	* src/gnumeric.h: Added CommandCOntext typedef here.

	* All files: renamed CmdContext to CommandContext.
	renamed command_context_gui to workbook_command_context_gui.

	* src/workbook-view.c: Removed the GUI_CmdContext class setup.
	* src/command-context.c: Replaced the ad-hoc object system with a
	GtkObject-based system.

1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1999-12-30  Jody Goldberg <jgoldberg@home.com>

	* src/file.c (workbook_load_from) : The 'open' functions return error
	  strings now.  Success == NULL, standard error == "", custom error
	  which needs to be freed is everything else.
	(workbook_try_read) : An optional argument in which to store error
	  messages returned by the loaders.
	(file_error_message) : Support the custom error messages.
	(workbook_read) : Ditto.

	* src/xml-io.c (xml_workbook_read) : Return simple error strings.

1489
1490
1491
1492
1999-12-29  Ariel Rios  <jarios@usa.net>

	* doc/guile-gnumeric.txt: Documentation for the guile plugin was added.

1493
1494
1999-12-29  Jody Goldberg <jgoldberg@home.com>

1495
1496
	* src/main.c : Include print-info.h to suppess some warnings.

1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
	* src/workbook-view.c (command_context_gui,
				gui_splits_array,
				gui_plugin_problem,
				command_context_gui_cast) : New functions.

	* src/workbook.c (workbook_new) : Switch to using the workbook_view
	  routines to manipulate the undo/redo and paste/paste_special menu
	  items.

	* src/func.c (function_iterate_argument_values) : Return an error
	  for empty/missing arguments.

	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.

	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
	  Call plugin_version_mismatch to do some minimal version matching for
	  plugins and the running application.
1514
1515
	  Return an enum to clearly differentiate between error reporting
	    reqs.
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534

	* src/Gnumeric.idl : Add PluginProblem.

	* src/command-context.[ch] (gnumeric_error_splits_array,
				    gnumeric_error_plugin_problem,
				    command_context_vtbl_init) : New functions.

	* src/plugin.c (plugin_version_mismatch) : New function.
	  (plugin_load) : Hard code a GUI context for now.
	                  Switch to using gnumeric_error_ routines.
			  Pass a CmdContext to the init_plugin routines.
			  Only produce an error if the plugin returns -1.
			  Store the plugin filename.
	  (plugin_unload) : Free the filename on exit.

	* *.c : command_context_gui now takes a Workbook argument.
	      : Switch from gnumeric_no_modify_array_notice
	                 to gnumeric_error_splits_array in most places.

1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1999-12-28  Peter Moulder <reiter@netspace.net.au>

	* src/number-match.c: Currently, two-digit years are converted to
	four-digit years (ccyy) by assuming that cc is the same as in the
	current wall date.  The problem with that is that on 1999-12-31,
	entering any future dates in two-digit-year form will be
	misinterpreted; while on 2000-01-01, any past dates entered in
	two-digit form will be misinterpreted.  (I use the term
	"misinterpreted" with the assumption that one is much more likely
	to intend a date a few days away than 99 years away.)

1546
1547
1999-12-27  Jody Goldberg <jgoldberg@home.com>

1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
	* configure.in : Re-enable the python plugin by default.

	* src/plugin.c (load_all_plugins) : Search in a version specific
	  directory.

	* plugins/*/Makefile.am : Install in 
	      <prefix>/lib/gnumeric/plugins/${VERSION}
	  to decrease the number of silly version problems.
	  Adjust the plugin names to follow the convention
	      libgnum_<name>.so
	  to avoid problems like the python plugin 'libpython.so'
	  depending on the python libraries with the same name.
	
1561
1562
	* src/cell.c (cell_get_formatted_val) : Make public.

1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1999-12-23  JP Rosevear  <jpr@arcavia.com>

	* src/plugin-manager.c (plugin_manager_new): Use a gnome_dialog and 
	stock icons
	(row_cb): Use gnome_dialog_set_sensitive instead of 
	gtk_widget_set_sensitive

	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis): Use 
	stock ok item for ok button

1573
1574
1575
1576
1577
1578
1579
1580
1999-12-22  JP Rosevear  <jpr@arcavia.com>

	* src/ranges.c (range_intersection): change interface to take a range
	pointer for the  result and return a boolean dictating whether or not 
	the ranges actually intersect

	* src/ranges.h : update for new range_intersection interface

JP Rosevear's avatar
JP Rosevear committed
1581
1582
1583
1584
1999-12-22  JP Rosevear  <jpr@arcavia.com>

	* src/ranges.c (range_intersection): Clean to meet coding specs.

1585
1586
1587
1588
1589
1590
1591
1592
1593
1999-12-21  JP Rosevear <jpr@arcavia.com>

	* src/ranges.c (range_intersection) : Tidy and handle the case
	where the ranges don't intersect.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Use
	sheet_get_extent only if there are infinite ranges, so the user
	sees their manually selected range if possible.

Jody Goldberg's avatar
Jody Goldberg committed
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1999-12-21  Jody Goldberg <jgoldberg@home.com>

	* src/expr.c (expr_implicit_intersection) : New routine split from
	  function_call_with_list.
	(compare) : Handle intersection.
	(eval_expr_real) : Ditto.  Add verbose comment on a possible heuristic
	  for the final piece of this ugly evaluation mechanism, array
	  interation.
	(cell_ref_get_abs_col_row) : Adjust to take a CellPos.

	* src/func.c (function_iterate_do_value) : Split the implicit
	  intersection out into a new function.  Use intersection for
	  strings as well as float & bool args.  Correct memory leak
	  when intersetion was used.
	(function_call_with_list) : Ditto.

	* *.c : Adjust to change in EvalPosition to use CellPos.

	* gnumeric.spec.in : Update the libglade dependancy.

	* src/workbook.c (wb_edit_key_pressed) : Do not select the current
	  cell address and do not move the cursor to the start of the cell
	  address when F4 is hit.

1618
1619
1999-12-20  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
1620
1621
	* src/parser.y : Clean up for byacc.

1622
1623
1624
1625
1626
1627
1628
1629
	* src/workbook.c (file_open_cmd) : Handle failed opens.
	(file_import_cmd) : Handle failed imports.

	* src/item-bar.c (item_bar_start_resize) : Add resize marker on the
	  other side of the row/col being resized.
	(item_bar_init) : Init the marker to NULL.
	(item_bar_end_resize) : Clear the marker.

Jody Goldberg's avatar
Jody Goldberg committed
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1999-12-19  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (sheet_selection_cut) : Fix Typo.

	* src/item-bar.c (item_bar_start_resize) : Don't bother setting the
	  location of the line here.  Instead we set the correctly zoomed
	  bounds of the static-dimension.
	(item_bar_end_resize) : Clear the saved points.
	(item_bar_init) : Init the guide and points to NULL;
	(item_bar_event) : No need to call canvas to world.  We zoom manually.
	(item_bar_get_line_points) : Delete.

1642
1643
1644
1645
1646
1999-12-19  Michael Meeks  <mmeeks@gnu.org>

	* configure.in: bump version to 0.46.

	* src/dialogs/dialog-printer-setup.c (fill_hf): use print_hf_same,
Jody Goldberg's avatar
Jody Goldberg committed
1647
	  since pointer comparison duff; since item is copied.
1648
1649
1650
1651
1652
1653
1654

	* src/print-info.c (print_hf_same): implement.
	(print_hf_register): update to use it.

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

	* src/dialogs/dialog-printer-setup.c (do_setup_hf): Grab the
Jody Goldberg's avatar
Jody Goldberg committed
1655
	  header & footer pointer from the sheet's print info if available.
1656
1657
1658
	(do_setup_hf_menus): only setup the dialog if non-null.

	* src/print-info.c (print_info_new): kill load_formats.
Jody Goldberg's avatar
Jody Goldberg committed
1659
1660
	  init hf_formats.
	(print_init, print_shutdown): implement.
1661
1662
1663
1664
1665
1666
1667
1668
1669

	* src/main.c (gnumeric_main): add print_init / shutdown.

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

	* src/sheet.c (sheet_new): setup pristine.
	(sheet_mark_clean, sheet_set_dirty, sheet_is_pristine): improve,
	thanks to Morten.

1670
1671
1999-12-18  Morten Welinder  <terra@diku.dk>

1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
	* src/xml-io.c (xml_read_print_info): Plug leaks.
	(xml_value_get): Return a g_malloc'ed string.  All callers
 	changed.
	(xml_get_print_unit): Plug leak.
	(xml_get_color_value): Plug leak.
	(xml_read_sheet_object): Plug leak, I think.
	(xml_set_value): Plug leak.
	(xml_set_value_string): Plug leak.
	(xml_set_value_int): Plug leak.
	(xml_set_value_double): Plug leak.
	(xml_set_color_value): Plug leak.
	(xml_set_gnome_canvas_points): free/g_free mixup.
	(xml_workbook_write): Plug leak.

1686
1687
1688
1689
1690
1691
	* src/item-bar.c (item_bar_destroy): Unref fonts.  (Found by
 	Miguel.)

	* src/style.c (style_shutdown): Add code to warn of font ref leaks
 	on exit.

Michael Meeks's avatar
clean.    
Michael Meeks committed
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/corba-sheet.c (command_context_corba): clean.

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

	* src/sheet.c (sheet_get_extent): Add union with style extent,
	fix silly typo.

	* src/ranges.c (range_is_infinite): Add new function.
	(range_union): implement.

Morten Welinder's avatar
Morten Welinder committed
1704
1705
1706
1707
1708
1709
1710
1999-12-18  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_yieldmat,
 	gnumeric_yielddisc, gnumeric_oddlyield, gnumeric_oddfyield,
 	gnumeric_oddfprice, gnumeric_oddlprice, gnumeric_yield,
 	gnumeric_price): New skeleton function.

1711
1712
1713
1714
1715
1999-12-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : Supress printing a '-' if the format
	  includes a manual '-' even if the negative is preceded by a \

1716
1717
1718
1719
1720
1999-12-18  Kjartan Maraas  <kmaraas@online.no>

	* src/dialogs/print.glade.h: Added xgettext:no-c-format in
	comment to please msgfmt.
	
Morten Welinder's avatar
Morten Welinder committed
1721
1722
1723
1724
1725
1999-12-18  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-financial.c (gnumeric_tbilleq,
 	gnumeric_tbillyield): check params better.

1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/about.c (dialog_about): add Jon.

1999-12-17  Jon K Hellan  <hellan@acm.org>
 
	* src/sheet.c (sheet_get_default_external_col_width): New
 	function.  Get default column width in units, including margins.
 	(sheet_get_default_external_row_height): New function. Get default
 	row height in units, including margins.
 	(sheet_col_get_external_width): New function. Get column width in
 	units, including margins.
 	(sheet_row_get_external_height): New function. Get row height in
	units, including margins.

 	* src/sheet.h: Declare new functions in sheet.c
 
Michael Meeks's avatar
Michael Meeks committed
1743
1744
1745
1746
1999-12-18  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): add command context.

1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1999-12-17  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): don't corrupt
	first selection range. Use selection_is_simple. Replace quad int's with
	cleaner range implementation.

1999-12-17  Ettore Perazzoli  <ettore@gnu.org>

	* src/pixmaps/cursor_cross.xpm: Fix drop shadow.

1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1999-12-18  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_check_for_partial_array) : Rename from
	  range_check_for_partial_array and make public.

	* src/selection.c (sheet_selection_cut) : Disable cutting part of an
	  array.

	* src/expr.c (eval_expr_real) : Wrap out of bound aarray lookups when
	  the src is 1 element wide or tall.

1768
1769
1770
1771
1772
1773
1774
1775
1999-12-17  Jody Goldberg <jgoldberg@home.com>

	* src/cell.c (cell_cleanout) : Publicize.

	* src/sheet.c (clear_cell_content) : Delete.
	(sheet_clear_region_content) : Use sheet_clear_region but leave the
	  styles in place.

Morten Welinder's avatar
Morten Welinder committed
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1999-12-17  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-stat.c: White-space mania.

1999-12-16  Andrew Chatham  <andrew.chatham@duke.edu>

	* src/regression.h: Better comments for parts of extra_stat
	* src/regression.c (linear_solve): Fixed adjusted R^2 bug (hopefully).
	* src/functions/fn-stat.c (gnumeric_linest, gnumeric_logest) Added
	beginning support for 3+ dimensional regressions in linest and logest.
	* src/analysis-tools.c (regression_tool) Documented Excel bugs with 
	no-intercept regressions that I didn't/can't mimic.

Morten Welinder's avatar
Morten Welinder committed
1789
1790
1791
1792
1999-12-16  Morten Welinder  <terra@diku.dk>

	* src/func.c (tokenized_help_destroy): Plug leak.

1793
1794
1795
1796
1999-12-16  Michael Meeks  <mmeeks@gnu.org>

	* src/corba-sheet.c (Sheet_range_set_alignment): add orientation.

Michael Meeks's avatar
Michael Meeks committed
1797
1798
1799
1800
1801
1999-12-16  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent_cb): Fix biggest leak ever seen,
	use cell_is_blank.

1802
1803
1804
1805
1806
1807
1808
1999-12-14  Cort Dougan  <cort@ppc.kernel.org>

	* src/corba-sheet.c (Sheet_range_set_font, Sheet_range_set_foreground),
	(Sheet_range_set_pattern, Sheet_range_set_background, Sheet_range_set_alignment):
	implement.
	(Sheet_corba_class_init): fill epv.

1809
1810
1999-12-14  Joe Sakosky <josak@ibm.net>

1811
	* src/file.c: privatized fileopener filesaver.
1812
1813
1814

	* src/file.h:  ditto
	
1815
1816
1817
1818
1819
1999-12-15  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_bonobo_setup): kill goadid.
	(workbook_new): kill brainless bug.

1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1999-12-15  Jody Goldberg <jgoldberg@home.com>

	* src/gnumeric.h : Move many of the typedefs here.

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Tweak some
	  const issues and minor logic problems at the boundaries.

1999-12-14  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-view.c (command_context_gui) : New function.

	* src/main.c (gnumeric_main) : Add a 'quit' flag for use in testing.
	  It causes the app to exit immediately after loading all the selected
	  books.

	* src/file.c (workbook_import) : Bug 3977.

	* src/corba-sheet.c (command_context_corba) : New function
	  temporarily located here.
	(Sheet_selection_copy) : Pass a CommandContext.
	(Sheet_selection_cut) : Ditto
	(Sheet_selection_paste) : Ditto
	(Sheet_clear_region) : Ditto
	(Sheet_clear_region_content) : Ditto
	(Sheet_insert_col) : Ditto
	(Sheet_delete_col) : Ditto
	(Sheet_insert_row) : Ditto
	(Sheet_delete_row) : Ditto
	(Sheet_shift_rows) : Ditto
	(Sheet_shift_cols) : Ditto

	* src/item-cursor.c (item_cursor_do_action) : Ditto.

	* src/item-grid.c (context_cut_cmd) : Ditto.
	(context_cut_cmd) : Ditto.
	(context_copy_cmd) : Ditto.
	(context_paste_cmd) : Ditto.
	(context_paste_special_cmd) : Ditto.
	(context_clear_cmd) : Ditto.

	* src/clipboard.[ch] (do_clipboard_paste_cell_region) : Take a
	  CommandContext.
	(sheet_paste_selection) : Ditto.
	(clipboard_paste_region) : Ditto.

	* src/selection.c (segments_intersect) : Return additional state 5
	  to designate equality.
	(selection_apply) : Use the equality state to simplify state selection.
	(selection_is_simple) : Use a command context.
	(sheet_selection_copy) : Ditto.
	(sheet_selection_cut) : Ditto.
	(sheet_selection_paste) : Ditto.
	(sheet_selection_clear) : Ditto.
	(sheet_selection_clear_content) : Ditto.
	(sheet_selection_clear_comments) : Ditto.
	(sheet_selection_clear_formats) : Ditto.

	* src/workbook.c (copy_cmd) : Ditto.
	(cut_cmd) : Ditto.
	(paste_cmd) : Ditto.
	(paste_special_cmd) : Ditto.
	(insert_cols_cmd) : Ditto.
	(insert_rows_cmd) : Ditto.
	(clear_all_cmd) : Ditto.
	(clear_formats_cmd) : Ditto.
	(clear_comments_cmd) : Ditto.
	(clear_content_cmd) : Ditto.

	* src/dialogs/dialog-delete-cells.c (dialog_delete_cells_impl) :
	  Ditto.
	(dialog_delete_cells) : Ditto.

	* src/dialogs/dialog-insert-cells.c (dialog_insert_cells_impl) :
	  Ditto.
	(dialog_insert_cells) : Ditto.

1896
1897
1898
1899
1900
1999-12-13  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet-style.c (sheet_style_optimize): add check for
	valid range.

1901
1902
1903
1904
1905
1906
1999-12-15  Morten Welinder  <terra@diku.dk>

	* configure.in (WITH_PYTHON): Disable python until someone fixes it.
	(Remove config.cache and the installed python plugin, or else you
	will not see the effect of this.)

1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1999-12-14  Morten Welinder  <terra@diku.dk>

	* src/dialogs/dialog-analysis-tools.c (dialog_regression_tool):
 	Mark strings for translation.

	* src/regression.c (ALLOC_MATRIX, FREE_MATRIX): New macros.
	(linear_solve): Use them.
	(general_linear_regression): Ditto.

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

1999-12-14  Andrew Chatham <andrew.chatham@duke.edu>

	* src/regression.c (general_linear_regression): Now uses LUP 
	decomposition and provides more statistics
	* src/analysis-tools.c (regression_tool) 
	* src/dialogs/tools.h
	* src/dialogs/dialog-analysis-tools.c (dialog_regression_tool): 
	Regression tool works with multidimensional data, outputs more
	statistics.

1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1999-12-13  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): use
	sheet_get_extent if the range is infinite
	* src/sheet.c (sheet_get_extent): redo to get the Range by
	iterating over the sheet cell_hash; as a side effect printing now
	doesn't print blank areas
	(sheet_get_extent_cb): call back function to iterate over cell
	hash

Morten Welinder's avatar
Leaks.    
Morten Welinder committed
1938
1939
1940
1941
1942
1999-12-13  Morten Welinder  <terra@diku.dk>

	* src/functions/fn-stat.c (gnumeric_logest): Plug leaks.
	(gnumeric_linest): Plug leaks.

1943
1944
1945
1946
1947
1999-12-12  Tuomas Kuosmanen  <tigert@gimp.org>

	* src/pixmaps/bucket.xpm 
	* src/pixmaps/font.xpm: New icons that are both the same size..

Michael Meeks's avatar
Michael Meeks committed
1948
1949
1950
1951
1952
1999-12-11  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): nail ref leak of
	glade_xml object. (dialog_cell_sort): ditto.

1953
1954
1955
1956
1999-12-10  Michael Meeks  <mmeeks@gnu.org>

	* src/ranges.c (range_clip): kill. (range_intersection): implement.

Michael Meeks's avatar
Michael Meeks committed
1957
1958
1959
1960
1999-12-10  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_hash): initialise hash!

1961
1962
1963
1964
1965
1999-12-10  Andrew Chatham  <andrew.chatham@duke.edu>

	* src/regression.c (general_linear_regression): Handle the 3+
 	dimensional case.

1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1999-12-10  Jody Goldberg <jgoldberg@home.com>

	* src/functions/fn-lookup.c (gnumeric_indirect) : This solution is
	  more paletable.  Always attempt to add the dependency, but only
	  actually do so if the calling cell does not already depend on the
	  indirected cell.

	* src/eval.c (cell_add_explicit_dependency) : Expand this function to
	  test to see if a dependency already exists.

1976
1977
1978
1979
1980
1999-12-10  Jukka-Pekka Iivonen  <iivonen@iki.fi>

	* src/functions/fn-financial.c: Added EURO function for
 	currency conversions.

Jody Goldberg's avatar
Jody Goldberg committed
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1999-12-09  Jody Goldberg <jgoldberg@home.com>

	* src/eval.[ch] (cell_add_explicit_dependency) : New function.

	* src/functions/fn-lookup.c (gnumeric_indirect) : Clear all
	  dependencies the calling cell has and regenerate them anytime the
	  function is called.  This is somewhat wasteful but is IMO a better
	  space time trade off than penalizing all depends to be able to flag
	  which dep is an indirection dep.  This method may cause problems if
	  multiple indirection calls are using in a single expression.

Jon K Hellan's avatar
Jon K Hellan committed
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
1999-12-08  Jon K Hellan  <hellan@acm.org>

	* src/style.h: Declare style_font_equal, style_font_hash_func.

	* src/style.c (style_font_equal): Make non-static and rename from
	font_equal. 
	(style_font_hash_func): Make non-static and rename from font_hash
	(style_init): Use new names for font_hash, font_equal.

	* src/mstyle.c (mstyle_hash): Include MSTYLE_ORIENTATION. Return
	the hash value(!).

Jody Goldberg's avatar
Jody Goldberg committed
2004
2005
2006
2007
2008
2009
1999-12-08  Jody Goldberg <jgoldberg@home.com>

	* src/selection.c (segments_intersect) : Be more agressive about
	  returning containtment.
	(selection_apply) : Improve debug output.

Yuri Syrota's avatar
Yuri Syrota committed
2010
2011
2012
2013
1999-12-08  Yuri Syrota  <rasta@renome.rovno.ua>

	* configure.in (ALL_LINGUAS): Added "uk".
	
Michael Meeks's avatar
Michael Meeks committed
2014
2015
2016
2017
2018
1999-12-08  Jon K Hellan <hellan@acm.org>

	* src/workbook.c (workbook_is_pristine): fix boneheaded
	bonoboism.

2019
2020
2021
2022
2023
1999-12-07  Miguel de Icaza  <miguel@gnu.org>

	* src/dialogs/dialog-analysis-tools.c (new_dialog): Use Gnome
	Stock buttons here.

2024
2025
2026
2027
2028
2029
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (workbook_is_pristine): check we arn't
	exported as a grid. (workbook_new): NULL bonobo fields.
	(workbook_is_dirty): fix daft bug.

2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/file.c (workbook_save): return success flag.
	(workbook_save_as): ditto.

	* src/xml-io.c (xml_workbook_write): Save current page +
	edit text. (xml_workbook_read): Read edit text + current page.

	* src/workbook.c (workbook_is_dirty): split.
	(cb_sheet_check_dirty): update. (workbook_can_close): redo.
	(workbook_is_pristine, cb_sheet_check_pristine): implement.
	(file_import_cmd, file_open_cmd): check for pristine-ness.

	* src/sheet.c (sheet_get_extent): constify.
	(sheet_is_pristine): implement.

2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (sheet_get_extent): implement.

	* src/corba-sheet.c (Sheet_max_cols_used, Sheet_max_rows_used):
	update to use get_extent.

	* src/print.c (print_sheet): use sheet_get_extent.
	(print_sheet_range): pass a Range. (sheet_print_selection): ditto.

Michael Meeks's avatar
Michael Meeks committed
2056
2057
2058
2059
2060
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* doc/Styles.txt: Add section 2.1.1, update optimization +
	example code, type fixes. + 2.4.1 explaining borders.

Michael Meeks's avatar
Michael Meeks committed
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
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
1999-12-06  Michael Meeks  <mmeeks@gnu.org>

	* src/eval.c (search_cell_deps): Cull dead 'draw' code.

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

	* src/expr.c (eval_funcall): Extract body to func.c
	(cell_ref_make_absolute, free_values): move to func.c
	(do_expr_decode_tree): Use function_def_get_name

	* src/func.c (function_call_with_list): Clean to use new
	helper functions + update style; use eval_expr not
	eval_expr_real in 1 place; cleans flow;
	(cell_ref_make_absolute): make args more convenient.

	* Makefile.am: Kill dump.[ch]
	
	* src/dump.[ch]: kill + move to

	* src/func.c: (function_dump_defs).

	* src/main.c (gnumeric_main): Use function_dump_defs

	* src/func.c (function_def_get_fn): implement.
	(function_def_get_user_data, function_def_set_user_data),
	(function_def_count_args, function_def_get_name): implement.
	(function_def_get_arg_type): implement.
	Hide FunctionDefinition here. Stylistic cleans.

	* plugins/python/python.c (marshal_func): use function_def_count_args
	(__register_function): kill ancient mem leak in duff code.

	* src/dialogs/dialog-function-select.c (function_definition_update):
	use function_def_get_name.

	* src/dialogs/dialog-function-wizard.c (arg_data_list_new): rewrite to
	use count_args + get_arg_type: much safer. (get_text_value): use get_name.

	* src/expr.h: Add user_data to function definition + hack it out.

	* src/sheet.c (sheet_cell_get, sheet_cell_fetch): move up & inline

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

	* plugins/sample/plugin-sample.c (func_plusone): Make this a good
	example ! ug + stylistic clean.

Ariel Rios's avatar
Ariel Rios committed
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
1999-12-05  Ariel Rios <jarios@usa.net>

	* plugins/guile/Makefile.am: Modified to include functions.scm
	
	* plugins/guile/gnumeric_startup.scm: We now load the scheme
          functions from the new file functions.scm

	* plugins/guile/functions.scm: The guile functions and their 
          registration are now located in this file.
          (=FIBO(num)): Added fibonacci formula.

Michael Meeks's avatar
Michael Meeks committed
2119
2120
2121
2122
2123
1999-12-04  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-sort.c (compare_values): Fix fatal bug
	with cell_get_text on a NULL Cell.

2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
1999-12-03  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort_adv): options
	for case sensitivy and value or text comparisons
	(order_box_new): display the advanced button for each clause
	(dialog_cell_sort): make sure the OrderData contains the
	value/text and case sensitivity flags
	(compare_values): take the new options into account

	* src/dialogs/cell-sort.glade: update gui

2135
2136
2137
2138
2139
2140
2141
1999-12-02  Nat Friedman  <nat@helixcode.com>

	* src/corba-workbook.c (Workbook_corba_class_init): Use the new
 	epv-getting functions when filling the vepv.

	* src/embeddable-grid.c (init_embeddable_grid_corba_class): Likewise.

2142
2143
2144
2145
2146
2147
2148
2149
2150
1999-12-01  Michael Meeks  <mmeeks@gnu.org>

	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page):
	Update to new API.

	* src/widgets/widget-font-selector.c (font_selector_set): Kill.
	(font_selector_set_points, font_selector_set_style),
	(font_selector_set_name): create.

2151
2152
2153
2154
2155
2156
1999-12-01  Federico Mena Quintero  <federico@redhat.com>

	* src/item-grid.c: item_grid_parent_class should be a
	GnomeCanvasItemClass *, not a GnomeCanvasItem *.  Thanks to Nick
	Lamb (njl98r@ecs.soton.ac.uk) for pointing this out.

Michael Meeks's avatar
Michael Meeks committed
2157
2158
2159
2160
1999-11-30  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (cb_sheet_check_dirty): Fixup.

Michael Meeks's avatar
Michael Meeks committed
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
1999-11-30  Michael Meeks  <mmeeks@gnu.org>

	* src/mstyle.c (mstyle_hash): updated.

1999-11-30  Jon K Hellan  <hellan@acm.org>

	* src/mstyle.c (mstyle_hash): implement.

	* src/main.c: Add debug_excel_write parameter.

2171
2172
2173
2174
2175
2176
2177
2178
1999-11-29  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c (workbook_new) : Disable for bonobo case
	  until I can figure out how to retrieve menu items in that case
	  also.

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

Michael Meeks's avatar
Michael Meeks committed
2179
2180
1999-11-29  Michael Meeks  <mmeeks@gnu.org>

Michael Meeks's avatar
Michael Meeks committed
2181
2182
	* src/expr-name.c (expr_name_add): Add commented out debug.

Michael Meeks's avatar
Michael Meeks committed
2183
2184
2185
	* src/workbook.c (wb_edit_key_pressed): Remove set_dirty.
	(cb_sheet_check_dirty): Add check for input area.

2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
1999-11-28  Jody Goldberg <jgoldberg@home.com>

	* src/Makefile.am : Add new files.

	* src/workbook-view.c (workbook_view_set_paste_state) : New function.

	* src/application.c (application_clipboard_clear) : Disable the
	  paste, paste-special menu items and unant the previous selection.
	(application_clipboard_copy) : Enable paste/paste_special, ant the
	  selection.
	(application_clipboard_cut) : Enable paste, ant the selection.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Clear the
	  clipboard rather than unanting manually.
	(gnumeric_sheet_key_mode_object) : Ditto.

	* src/item-cursor.c (item_cursor_do_drop) : Don't unant manually.
	  let the functions take care of it.

	* src/selection.c (sheet_selection_copy) : Ditto.
	(sheet_selection_cut) : Ditto.

	* src/workbook.c (workbook_new) : Catch the widgets of several of the
	  edit menu bar items so that they can be enabled and disabled.

2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
1999-11-28  Michael Meeks  <mmeeks@gnu.org>

	* src/workbook.c (wb_edit_key_pressed): Fix bug #2110

	* src/mstyle.c: re-organise elements type to save memory.
	make several globals static.
	(mstyle_hash): constify. (mstyle_new): remove alloc + gnew0
	(mstyle_copy): update. (mstyle_elements_copy): update.
	(mstyle_destroy): update.

2221
2222
2223
2224
2225
1999-11-28  Jody Goldberg <jgoldberg@home.com>

	* src/workbook.c : Add some menu items and experiment with disabling
	  paste/paste-special when there is nothing appropriate to paste.

Michael Meeks's avatar
Michael Meeks committed
2226
2227
2228
2229
1999-11-27  Michael Meeks  <mmeeks@gnu.org>

	* src/sheet.c (cb_set_cell_value): Fix silly format setting bug.

2230
2231
2232
2233
2234
1999-11-27  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c: Fixed two bugs when the
	selection was not in the upper left corner of the sheet

2235
2236
2237
2238
2239
2240
1999-11-27  Michael Meeks  <mmeeks@gnu.org>
	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Use
	string_list_free (fix leak). (string_list_free): implement.
	Stylistic fixes.
	(dialog_cell_sort_header_toggled): Fix fatal list bug.

2241
2242
2243
2244
2245
1999-11-26  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort: Allow sorting of rows
	(horizontally) as well as by columns

2246
2247
2248
2249
2250
2251
2252
1999-11-26  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_col_get_unit_distance,
	  sheet_row_get_unit_distance) : subtract 1 to match the inverse map and
	  round to integers when accumulating to give a closer approximation to
	  the trucation that occurs when drawing in pixels.

2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
1999-11-22  Miguel de Icaza  <miguel@gnu.org>

	* src/print.c: Fit the ranges that are printed.

1999-11-21  Miguel de Icaza  <miguel@gnu.org>

	* src/item-cursor.c (item_cursor_drag_event): update the canvas
	here;  Not in item_cursor_set_bounds_visibly.

1999-11-19  Miguel de Icaza  <miguel@gnu.org>

	* src/xml-io.c (xml_write_styles): Implement correctly.

2266
2267
2268
2269
2270
1999-11-25  Jody Goldberg <jgoldberg@home.com>

	* src/item-cursor.c (item_cursor_draw) : Draw autofill handle
	  in a better location if the bottom of the cursor is not visible.

2271
2272
1999-11-24  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
2273
2274
2275
2276
2277
2278
2279
2280
	* src/format.c (format_number) : Handle negatives for scientific
	  notation.  Add support for
	  'e' vs 'E'
	  Prepending a '+'.

	* src/dialogs/dialog-cell-format.c (draw_format_preview) : Correct
	  typo.

2281
2282
2283
	* src/item-edit.c (item_edit_draw) : Fix fence post problem is
	  previous patch.  Add currently unused 'row_span' in preparation.

2284
2285
1999-11-23  Jody Goldberg <jgoldberg@home.com>

2286
2287
2288
	* src/item-edit.c (item_edit_draw) : Avoid crashing when we hit the
	  edge of the sheet.

2289
2290
2291
	* src/cell-draw.c (cell_draw) : Fix long standing bone headed mistake.
	  multi-line cells were hard coded to use black as the font color.

2292
2293
1999-11-21  Jody Goldberg <jgoldberg@home.com>

2294
2295
2296
2297
2298
2299
2300
	* src/widgets/widget-color-combo.c (none_clicked) : Emit a -1 if none
	  is selected.
	(color_table_setup) : Use new function.

	* src/workbook-format-toolbar.c (back_color_changed) : Support Color
	  'None'.

2301
2302
2303
2304
2305
2306
2307
2308
2309
	* src/file.c (workbook_save) : Use needs_name flag rather than
	  checking the filename.  All books now have file names.

	* src/workbook.c (workbook_new_with_sheets) : Move default name
	  assignment.
	(workbook_new) : Here.  Make the default name end in .gnumeric.
	  Add a needs_name flag marking this name as auto generated.
	(workbook_set_filename) : Clear the needs_name flag.

2310
2311
2312
2313
2314
2315
2316
2317
2318
1999-11-21  Jeff Garzik  <jgarzik@mandrakesoft.com>

	* configure.in, plugins/Makefile.am:
	New file import filter for SC and xspread spreadsheets.
	* src/utils.h (parse_cell_name): update prototype
	* src/utils.c (parse_cell_name): return gboolean, to reflect true,
	and documented, nature of return value.
	(parse_cell_name_list): move loop exit condition into 'for' statement

2319
2320
1999-11-20  Jody Goldberg <jgoldberg@home.com>

Jody Goldberg's avatar
Jody Goldberg committed
2321
2322
	* src/format.c (format_number) : Handle m, mm as minutes if followed
	  immediately by seconds.
2323
2324
2325
2326
2327
2328

	(format_remove_decimal) : Remove the decimal place when there are no
	  more numbers after the decimal.  This is still broken in the face
	   of specs with different forms for negatives.
	(format_add_decimal) : Support formats other than number.  Same
	  brokeness as format_remove_decimal.
Jody Goldberg's avatar
Jody Goldberg committed
2329

2330
2331
2332
	* src/dialogs/{cell-format,font-sel}.glade.h : Regenerate from
	  current .glade files.

2333
2334
2335
2336
1999-11-19  Kevin Handy  <kth@srv.net>

	* configure.in, plugins/Makefile.am: add DIF import/export filter

2337
2338
2339
2340
2341
2342
1999-11-19  JP Rosevear  <jpr@arcavia.com>

	* src/dialogs/dialog-cell-sort.c: Allow selection of the columns
	by header name.  Put Add/Remove buttons at the bottom with stock
	icons.

2343
2344
1999-11-19  Jody Goldberg <jgoldberg@home.com>

2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
	* src/cell.c (cell_relocate) : optionally do a bounds check on
	  relocated expressions.  Do this by 'moving' the expression from its
	  new location to its new location.  Some extra work is performed but
	  the expression is checked for boundedness.

	* src/sheet.c (sheet_move_range) : Use new interface for
	  cell_relocate.
	(colrow_move) : Ditto.

	* src/clipboard.c (paste_cell) : Ditto.

2356
2357
2358
2359
2360
	* src/item-bar.c (item_bar_fonts_init) : Use the sheet's zoom factor.
	(item_bar_realize) : Adjust to new item_bar_fonts_init interface.

	* src/sheet-view.c (sheet_view_set_zoom_factor) : Ditto.

2361
2362
2363
2364
1999-11-18  Jon K Hellan  <hellan@acm.org>

	* src/sheet.c (sheet_row_set_height_units): Use rows->default_style
	not cols->default_style.