-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathOChangeLog-2001-06-26
More file actions
8385 lines (5967 loc) · 285 KB
/
OChangeLog-2001-06-26
File metadata and controls
8385 lines (5967 loc) · 285 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2001-06-27 Jody Goldberg <jgoldberg@home.com>
* Release 0.66
2001-06-26 Jody Goldberg <jgoldberg@home.com>
* configure.in : restore the zh translations.
2001-06-26 Jody Goldberg <jgoldberg@home.com>
* src/workbook-control-gui.c (workbook_control_gui_init) : load the ui
file from a version specific location.
* src/Makefile.am : No need for GNOME_DATADIR anymore.
* gnumeric.spec.in : Move the bonobo ui file into a version specific
location.
2001-06-25 Jody Goldberg <jgoldberg@home.com>
* src/xml-io.c (xml_not_used_old_array_spec) : fix a few warnings.
2001-06-23 Almer S. Tigelaar <almer@gnome.org>
* src/item-cursor.c (item_cursor_do_drop): Always clear
the status text.
* src/GNOME_Gnumeric.xml: Add missing outline menu items.
2001-06-22 Morten Welinder <terra@diku.dk>
* src/goal-seek.c (update_data): Prefer absolute lowest y-value in
cases where we have only one side of zero.
2001-06-21 Morten Welinder <terra@diku.dk>
* src/summary.c: #include <string.h> for strlen.
* src/search.c (calculate_replacement): Warning killer.
* src/regression.c: #include <stdlib.h> for abs.
* src/plugin-loader-module.c: #include <string.h> for strcmp.
* src/formats.c (cell_format_fraction): Avoid accidental use of
trigraph.
* src/complete.c: #include <stdlib.h> for abort.
2001-06-21 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (border_mutate): New, toggles
borders around regions.
(gnumeric_sheet_key_mode_sheet):
Make Ctrl+Backspace center on the active cell.
Add support for Locked scrolling with the arrow keys, home and end.
Add support for Ctrl+Shift ~, $, %, ^, #, @, !, & and _ shortcut keys
for formatting and border mutations.
* src/workbook-control-gui.c, src/GNOME_Gnumeric.xml:
Change keybinding of Goto Cell from Ctrl+G to F5.
Set keybinding of Search&Replace to F6.
Set keybinding of Define Names to Ctrl+F3
2001-06-20 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_claim_selection):
Use wbcg->toplevel, not wbcg->table. This fixes
copying from Gnumeric to another application.
* src/print.c (print_page_cells): Convert scaling percentage
to factor.
(setup_scale): Idem.
(print_page): Idem.
(compute_group): Idem.
2001-06-20 Jody Goldberg <jgoldberg@home.com>
* src/number-match.c (compute_value) : parse 12:xx am correctly.
2001-06-19 Jody Goldberg <jgoldberg@home.com>
* src/commands.c (cmd_search_replace_do_cell) : Adjust to ref
semantics change.
* src/number-match.c (format_match) : do not add a ref to the
resulting format.
* src/sheet.c (sheet_cell_set_text) : no need to unref anymore.
(sheet_range_set_text) : ditto.
* src/cell.c (cell_assign_value) : ref before unref.
(cell_eval_content) : Use a simplified assignment to avoid refing and
unrefing the formats.
(cell_set_text) : cleanup reference handling.
2001-06-19 Morten Welinder <terra@diku.dk>
* src/number-match.c (compute_value): Don't g_barf on invalid
dates.
2001-06-19 Almer S. Tigelaar <almer@gnome.org>
* src/item-cursor.c (item_cursor_tip_setstatus): New function.
(cb_move_cursor): Call item_cursor_tip_setstatus.
(item_cursor_do_drop): Clear the status text.
2001-06-19 Morten Welinder <terra@diku.dk>
* configure.in: Add derivatives plugin.
* plugins/Makefile.am (SUBDIRS_FUNCTIONS): Ditto.
* src/plugin.h: Fix includes.
2001-06-19 Yukihiro Nakai <nakai@gnome.gr.jp>
* configure.in: Re-add ja to ALL_LINGUAS.
2001-06-18 Jody Goldberg <jgoldberg@home.com>
* src/item-cursor.c (ActionType) : all actions must be > 0.
2001-06-17 Jody Goldberg <jgoldberg@home.com>
* src/io-context.c (workbook_io_progress_set) : delete update based on
styles. This operation leaked and was very expensive.
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
2001-06-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet-style.c (cb_filter_style) : delete code that is irrelevant
now that borders are sane.
(sheet_style_get_uniform) : ditto.
2001-06-14 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.c (scg_colrow_select) : don't
discard input when selecting a range.
* src/xml-io.c (xml_write_range) : Add some safety.
2001-06-13 Jody Goldberg <jgoldberg@home.com>
* src/format.c (render_number) : improve rounding and cleanup.
2001-06-12 Jody Goldberg <jgoldberg@home.com>
* src/cell.c (cell_cleanout) : call dirty here.
(cell_destroy) : not here.
(cell_set_text) : or here.
(cell_set_value) : or here.
(cell_set_expr_and_value) : or here.
(cell_set_expr_internal) : or here.
2001-06-11 Jody Goldberg <jgoldberg@home.com>
* src/print.c (compute_group) : add more error checking to avoid
possibility of infinite loop.
* src/print-info.c (print_info_new) : init num copies.
* src/mathfunc.c (stern_brocot) : move this here from
* format.c : here.
2001-06-13 Morten Welinder <terra@diku.dk>
* src/mathfunc.c (gnumeric_add_epsilon): Make non-static.
(gpow10): Use table for the range -20 ... +20.
2001-06-12 Zbigniew Chyla <cyba@gnome.pl>
* src/io-context-priv.h
(enum GnumProgressHelperType, struct GnumProgressHelper): Two extra
helpers (value, workbook) + changes in count helper), removed min_f and
max_f fields.
(struct ProgressRange): New.
(struct _IOContext): Added progress_ranges, progress_min, progress_max.
* src/io-context.h
(enum WbProgressElements): New.
(file_io_progress_set, memory_io_progress_set):
Removed min_f and max_f arguments.
(count_io_progress_set): Added step argument, removed min_f and max_f.
(count_io_progress_update): s/value/inc.
(io_progress_range_push, io_progress_range_pop,
value_io_progress_set, value_io_progress_update,
workbook_io_progress_set, workbook_io_progress_update): New.
* src/io-context.c
(io_context_init): Initialize extra fields: progress_ranges,
progress_min, progress_max.
(io_progress_update): Adjust the value, using current range
<progress_min, progress_max>.
(io_progress_range_push, io_progress_range_pop): New.
(file_io_progress_set, memory_io_progress_set):
Removed min_f and max_f arguments.
(file_io_progress_update, memory_io_progress_update): Don't adjust value
to current range, io_progress_update takes care of this.
(count_io_progress_set): Added "step" argument, initialize extra
struct fields: last, current, step.
(count_io_progress_update): Take value increase as an argument, not
value itself. Return immediately if value hasn't changed enough.
(value_io_progress_set, value_io_progress_update,
workbook_io_progress_set, workbook_io_progress_update): New. Two
additional helpers, "workbook" should be very useful when saving
workbook.
* src/xml-io.h (struct _XmlParseContext): Removed element_counter.
* src/xml-io.c
(xml_read_styles, xml_sheet_read): Don't increment element_counter
manually, just call count_io_progress_update.
(xml_workbook_read): Pass the size of the step to
count_io_progress_set, use io_progress_range_{push,pop}.
(gnumeric_xml_read_workbook): Use io progress helper of type "value".
2001-06-11 Juan Pablo Mendoza <pablo_juan@yahoo.com>
* .cvsignore: Add GNOME_Gnumeric.oaf.
2001-06-10 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_value) : if no conditions match treat as
General, not as empty.
(format_compile) : No need to use a catch all condition if there are
some conditions.
2001-06-08 Jody Goldberg <jgoldberg@home.com>
* src/workbook-control-gui.c (workbook_menu_format_row) : avoid
duplicate use of 'H' as accelerator.
* src/GNOME_Gnumeric.xml : Ditto.
2001-06-08 Almer S. Tigelaar <almer@gnome.org>
* src/embeddable-grid.c (grid_view_activate): Use
scg->gsheet.
2001-06-07 Jody Goldberg <jgoldberg@home.com>
* src/selection.c (sheet_selection_set_internal) : Add some sanity
checking for safety.
* src/sheet.c (sheet_set_edit_pos) : ditto.
(sheet_redraw_cell_region) : ditto.
* src/rendered-value.c (cell_get_rendered_text) : We need this for
now. There are functions that actualyl rely on the rendered text.
2001-06-06 Jody Goldberg <jgoldberg@home.com>
* src/gui-file.c (gui_file_open) : There is no point showing the
create/delete/rename buttons when loading.
(gui_file_import) : and importing.
2001-06-07 Almer S. Tigelaar <almer@gnome.org>
* src/consolidate.c (retrieve_col_tree): Ignore
empty values.
(retrieve_row_tree): Idem.
(key_list_get): Idem.
(key_list_free): Burn.
(colrow_consolidate): Free the lists directly instead
of calling key_list_free.
(simple_consolidate): Add flag, we don't want
range merge optimizations on simple consolidations.
(consolidate_apply): Adjust call to simple_consolidate.
(cb_col_tree): Idem.
(cb_row_tree): Idem.
2001-06-07 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control.h: Remove MS_ALL as flag
and make it a define.
* src/workbook-control-gui.c (wbcg_menu_state_update):
Remove MS_ALL flag handling.
2001-06-07 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control.h: Add MS_CONSOLIDATE.
* src/workbook-edit.c (wbcg_edit_attach_guru): Call
wb_control_menu_state_update
(wbcg_edit_detach_guru): Idem.
* src/workbook-control-gui-priv.h: Add consolidation
menu item.
* src/workbook-control-gui.c (wbcg_menu_state_update): Add
consolidation menu item.
(workbook_control_gui_init): Initialize consolidation
menu item.
2001-06-06 Almer S. Tigelaar <almer@gnome.org>
* src/stf.c (stf_read_workbook): Fix warning.
2001-06-06 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric.h : Add new GlobalRange.
* src/ranges.[ch] (global_range_new): Create a new globalrange.
(global_range_free): Free.
(global_range_overlap): Utility function.
(global_range_dup): Idem.
* src/sheet.[ch] (sheet_cell_get_value): New function.
* src/workbook-control-gui.c (cb_data_consolidate) :
Entry point for the data consolidation dialog.
* src/GNOME_Gnumeric.xml : Add consolidate menu item.
* src/commands.c (cmd_consolidate) : Undo/redo for consolidate.
(cmd_consolidate_destroy) : Idem.
(cmd_consolidate_redo) : Idem.
(cmd_consolidate_undo) : Idem.
* src/consolidate.[ch] : Consolidation low-level code.
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/gnumeric-util.[ch] (gnumeric_dialog_file_selection): New
function, some code moved from gui-file.c.
* src/workbook.[ch] (workbook_get_filename): New accessor function.
* src/gui-file.h
(gui_file_open): New function.
(gui_file_import): Removed fname argument.
* src/gui-file.c
(gui_file_import): Create and open file selector, using
gnumeric_dialog_file_selection to display it. Use one dialog to select
file and file format, we don't need glade file anymore. Optionally
show all registered openers as importers.
(gui_file_save_as): Uses gnumeric_dialog_file_selection. Take
workbook's current saver if current_saver is NULL (previously we've
been loosing this information), use
gnumeric_option_menu_get_selected_index instead of playing with
signals.
(gui_file_open): New function, some code moved from
dialog_query_load_file.
(gui_file_save): Always call wb_view_preferred_size.
(do_save_as): Take GnumFileSaver as argument.
(cb_select, handle_ok, saver_activate, fill_save_menu,
make_format_chooser, file_dialog_delete_event, fs_key_event,
fs_set_filename): Removed.
* src/workbook-control-gui.c
(cb_file_new): Just call gui_file_open.
(cb_file_import): Call gui_file_import.
(workbook_control_gui_init): Initialize current_saver with NULL.
2001-06-05 Zbigniew Chyla <cyba@gnome.pl>
* src/workbook.c (workbook_new): Slight modification of the previous
patch.
2001-06-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_new) : Use the extension associated with
the default saver as the default extension.
2001-06-04 Zbigniew Chyla <cyba@gnome.pl>
* src/func.c (function_def_get_full_info_if_needed): Use fn_type to
check if we need to get full information.
2001-06-04 Almer S. Tigelaar <almer@gnome.org>
* src/stf-parse.[ch] : Burn useless comments.
(stf_parse_options_csv_set_separators): Change interface.
(stf_parse_csv_is_separator): Adjust for interface change.
(stf_parse_options_new): Burn modified and old splitpositions.
(stf_parse_options_set_type): Constify.
(stf_parse_options_set_line_terminator): Idem.
(stf_parse_options_set_lines_to_parse): Idem.
(stf_parse_options_set_trim_spaces): Idem.
(stf_parse_options_csv_set_customfieldseparator): Burn.
(stf_parse_options_csv_set_stringindicator): Constify.
(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
(stf_parse_options_csv_set_duplicates): Idem.
(stf_parse_options_fixed_splitpositions_add): Idem.
(stf_parse_csv_cell): Cosmetic changes and adjust for
change to stf_parse_csv_is_separator, plus use GList.
(stf_parse_fixed_cell): Cosmetic changes.
(stf_parse_fixed_line): Idem and use GList.
(stf_parse_general): Optimize loop and use GList's.
(stf_parse_get_rowcount): Cosmetic changes.
(stf_parse_get_colcount): Idem.
(stf_parse_get_longest_row_width): Idem and fix.
(stf_parse_get_colwidth): Idem and fix.
(stf_parse_convert_to_unix): Rewrite.
(stf_parse_is_valid_data): Idem and constify.
(stf_parse_options_fixed_autodiscover): Constify.
(stf_parse_sheet): Rewrite.
(stf_parse_region): Idem.
* src/gui-clipboard.c (x_selection_to_cell_region):
Constify return variable from stf_parse_is_valid_data.
2001-06-04 Zbigniew Chyla <cyba@gnome.pl>
Displaying a question dialog if the user wants to export workbook
with many sheets to file format supporting only one.
* src/file-priv.h (struct _GnumFileSaver): Added save_scope.
* src/file.h (gnum_file_saver_set_save_scope,
gnum_file_saver_get_save_scope, enum FileSaveScope): New.
* src/file.c
(gnum_file_saver_init): Initialize save_scope with FILE_SAVE_WORKBOOK.
(gnum_file_saver_set_save_scope, gnum_file_saver_get_save_scope): New.
* src/gui-file.c (do_save_as): Optionally display a question dialog if
we have many sheets and the saver can save only one.
* src/plugin-service.h
(struct _PluginServiceFileSaver): Added save_scope.
* src/plugin-service.c (plugin_service_file_saver_read,
gnum_plugin_file_saver_new): Support save_scope attribute.
2001-06-04 Zbigniew Chyla <cyba@gnome.pl>
* src/xml-io.c:
Reverted my last patch to save users' swap-space :-)
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/cellspan.c (cell_calc_span) : do not span expressions
because they do not span when recalculated. This will be fixed when
just in time rendering is done.
2001-06-03 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* rendered-value.c (rendered_value_get_text): Add a check for
rendered value != NULL.
(cell_get_rendered_text): Add check for redered value == NULL
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/workbook.c (workbook_expr_relocate) : flag all sheets as needing
status updates.
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
Updating i/o progress while saving Gnumeric XML file.
* src/xml-io.c
s/N_ELEMENTS_BETWEEN_UPDATES/N_INPUT_ELEMENTS_BETWEEN_UPDATES
(xml_write_cell_and_position): Update i/o progress every
N_OUTPUT_ELEMENTS_BETWEEN_UPDATES cells.
(xml_write_styles): Ditto for styles.
(gnumeric_xml_read_workbook): Better error reporting.
(workbook_get_n_elements): Internal function, calculating the number of
"elements" (styles and cells) in workbook.
(gnumeric_xml_write_workbook): Split saving to three stages: building
XML tree, dumping it to memory buffer, saving (compressed) buffer
contents to file. Update i/o progress regularly.
The second stage still freezes UI though :(
2001-06-03 Zbigniew Chyla <cyba@gnome.pl>
* src/func.c (function_def_get_full_info_if_needed): Protected against
stack overflow. Probably it doesn't really solve the problem though :(
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (draw_text) : limit length of cell text to avoid
flakey X servers that crash with long strings.
* src/clipboard.c (clipboard_paste_region) : be sure to rerender and
span if formats change.
* src/format.c (format_value) : simplify.
2001-06-03 Almer S. Tigelaar <almer@gnome.org>
* src/stf.c (stf_write_workbook): Exporting wouldn't work
because of wrong changes to the code. Fixed.
(stf_parse_csv_cell): Add support for escaped newlines and
clean-up.
(stf_parse_options_csv_set_customfieldseparator): Support
string separator.
(stf_parse_options_new): Initialize customfieldseparator.
(stf_parse_options_free): Free custom field separator.
(stf_parse_csv_is_separator): Handle new string customfield separator.
(stf_parse_csv_cell): Idem.
(stf_parse_get_colcount): Idem.
(stf_parse_get_colwidth): Idem.
2001-06-03 Morten Welinder <terra@diku.dk>
* src/func.c (function_add_args): Do arg type checking here.
(fn_def_new): Not here.
(function_remove): Free cached arg types.
(function_add_args): Pre-calculate arg counts and types.
(function_def_get_full_info_if_needed): Ditto.
(function_call_with_list): Use pre-calculated arg counts and
types.
(function_add_name_only): Use FUNCTION_NAMEONLY for type.
2001-06-03 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_compile) : doh!
(format_compile) : Assign the default conditions.
2001-06-03 Almer S. Tigelaar <almer@gnome.org>
* src/stf-parse.c (stf_parse_get_longest_row_width): Fix.
2001-06-03 Almer S. Tigelaar <almer@gnome.org>
* src/parse-util.[ch] (row_name): New, converts
a row number to a string.
(rows_name): Idem, but for a start/end range.
(row_name_internal): Utility routine.
* src/colrow.c (colrow_string_build): Remove.
(colrow_index_list_to_string): Use rows_name
and cols_name.
* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
* src/commands.c (cmd_insert_rows): Idem.
(cmd_delete_cols): Beautify.
(cmd_delete_rows): Beautify and use rows_name.
* src/eval.c (dump_range_dep): Use row_name.
* src/item-bar.c (get_row_name): Deprecated, remove.
(item_bar_draw): Use row_name.
* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
* src/item-grid.c (item_grid_draw): Idem.
* src/ranges.c (range_name): Idem.
(range_dump): Idem.
* src/selection.c (reference_append): Idem.
(selection_get_ranges): Idem.
(cb_range_to_string): Idem.
* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
(vertical_scroll_offset_changed): Idem.
* src/value-sheet.c (value_dump): Idem.
(encode_cellref): Idem.
2001-06-03 Almer S. Tigelaar <almer@gnome.org>
* src/stf-parse.[ch] (stf_cache_options_new): Burn.
(stf_cache_options_free): Burn.
(stf_cache_options_set_data): Burn.
(stf_cache_options_set_range): Burn.
(stf_cache_options_invalidate): Burn.
(stf_parse_general_cached): Burn.
(stf_parse_options_before_modification): Burn.
(stf_parse_options_after_modification): Burn.
(stf_parse_options_set_type): Don't set modified.
(stf_parse_options_set_line_terminator): Idem.
(stf_parse_options_set_lines_to_parse): Idem.
(stf_parse_options_set_trim_spaces): Idem.
(stf_parse_options_csv_set_separators): Idem.
(stf_parse_options_csv_set_customfieldseparator): Idem.
(stf_parse_options_csv_set_stringindicator): Idem.
(stf_parse_options_csv_set_indicator_2x_is_single): Idem.
(stf_parse_options_csv_set_duplicates): Idem.
(stf_parse_options_valid): Remove modificationmode.
(stf_parse_options_new): Idem.
(trim_spaces_inplace): Make inline.
(stf_parse_csv_is_separator): Idem and move things around
a for some more speed.
(stf_parse_csv_cell): Make inline.
(stf_parse_fixed_cell): Idem.
* src/stf.c (stf_read_workbook): Set maximum number of
lines to parse to infinite.
(x_selection_to_cell_region): Idem.
2001-06-02 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_value) : ref the colour.
(format_entry_set_fmt) : new function.
(format_compile) : parse the conditional values.
2001-06-02 Almer S. Tigelaar <almer@gnome.org>
* src/sheet.c (sheet_col_row_group_ungroup): Use
sc_resize not scg_resize.
2001-06-02 Almer S. Tigelaar <almer@gnome.org>
* src/commands.[ch] (cmd_group_undo): Implement group undo/redo
(cmd_group_redo): Idem.
(cmd_group_destroy): Idem.
(cmd_group): Idem.
* src/workbook-control-gui.c (cb_data_group): Implement.
(cb_data_ungroup): Idem.
(group_ungroup_colrow): Utility function to determine if
columns or rows need to be grouped/ungrouped.
* src/sheet.[ch] (sheet_col_row_group_ungroup): New, high level routine
for adjusting outlines.
(sheet_col_row_fit_gutter): Dynamically adjust gutter size.
(cb_outline_level): Callback for the above.
(sheet_col_row_can_group): Query if a range of cols/rows
can actually group/ungroup.
(sheet_col_row_set_outline_level): Deprecated, remove.
* src/colrow.[ch] (colrow_set_outline): Set outline on a col/row.
* src/GNOME_Gnumeric.xml: DataOutlineUnGroup change to
DataOutlineUngroup.
2001-06-02 Jody Goldberg <jgoldberg@home.com>
* src/main.c (handle_paint_events) : be consistent and don't block.
* src/io-context.c (io_progress_update) : avoid an infinite loop.
2001-06-02 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_compile) : rewrite, not quite done.
* src/commands.c (cmd_set_text_undo) : queue a recalc.
(cmd_clear_redo) : ditto.
* src/corba-sheet.c (Sheet_clear_region) : ditto.
(Sheet_clear_region_content) : ditto.
* src/gui-clipboard.c (x_selection_handler) : ditto.
* src/sheet-merge.c (sheet_merge_add) : ditto.
* src/eval.c : switch the depend lists to be singly linked.
(dep_slist_filter_sheet) : convenience routine.
(dependent_unqueue_sheet) : Used here.
(dependent_unlink_sheet) : and here.
* src/workbook-control-gui.c (display_formulas) : convert the single
lists.
2001-06-01 Zbigniew Chyla <cyba@gnome.pl>
Support for reporting i/o progress via IOContext.
* src/command-context-priv.h (struct CommandContextClass): Added
progress_message_set virtual.
* src/command-context.[ch] (gnumeric_progress_message_set): New.
* src/io-context-priv.h
Made IOContext a GtkObject.
(enum GnumProgressHelperType, struct GnumProgressHelper): New.
* src/io-context.[ch]
Made IOContext a GtkObject.
(io_progress_update, io_progress_message,
file_io_progress_set, file_io_progress_update,
memory_io_progress_set, memory_io_progress_update,
count_io_progress_set, count_io_progress_update,
io_progress_unset): New functions.
(gnumeric_io_context_free): Removed, use gtk_object_destroy instead.
* src/workbook-control-gui.c (wbcg_progress_message_set): New,
implementation of CommandContext virtual.
* src/workbook-view.c
(wb_view_save_as, wb_view_save, wb_view_open_custom):
s/gnumeric_io_context_free/gtk_object_destroy
* src/xml-io.h
(struct _XmlParseContext): New members (io_context, element_counter) for
progress reporting.
* src/xml-io.c
(xml_read_styles): Update i/o progress every N_ELEMENTS_BETWEEN_UPDATES
styles.
(xml_sheet_read): Ditto for cells.
(xml_get_n_children, xml_read_sheet_n_elements,
xml_read_workbook_n_elements): Internal functions, calculating the
number of "elements" (styles and cells) in workbook.
(xml_workbook_read): Set up io progress to "Processing XML tree" stage.
(gnumeric_xml_read_workbook): Load the file into an XML tree using the
Push mode and update i/o progress regularly.
* src/plugin-util.c
#include <libgnome/libgnome.h> instead of <gnome.h>.
2001-05-31 Jody Goldberg <jgoldberg@home.com>
* src/solver-lp.c : Use cell_eval in place of cell_eval_content.
* src/eval.c (cb_range_hash_invalidate) : disconnect the list from the
dep record while removing its contents. We don't want to modify the
list while we are walking it. This is also an optimization in that
we don't need to modify the list.
(cb_single_hash_invalidate) : ditto.
(depsingle_dtor) : Ensure that the list has already been cleared.
(deprange_dtor) : ditto.
(dependent_unlink) : short circuit if we are destroying.
* src/sheet.c (sheet_destroy) : Clear the controls first.
2001-05-31 Karl Eichwalder <ke@suse.de>
* src/GNOME_Gnumeric.xml: Fix 2 typos.
* configure.in: Write gnome.desktop.in.
* .cvsignore: Add gnome.desktop.in.
2001-05-31 Zbigniew Chyla <cyba@gnome.pl>
* workbook-view (wb_view_open_custom): Handle opener errors without
crashing.
2001-05-30 Jody Goldberg <jgoldberg@home.com>
* src/value.c (value_error_set_pos) : change name from
value_new_error_err since we don't actually new anything.
* src/position.c (eval_pos_init_cellref) : delete broken crap.
* src/func.c (cb_iterate_cellrange) : duplicate error here.
(function_iterate_argument_values) : duplicate the non-terminate
error here.
* src/collect.c (collect_floats) : not here.
2001-05-30 Jon K Hellan <hellan@acm.org>
* src/sheet-control-gui-priv.h: New file. Implementation details
for SheetControlGUI and methods directly accessible from the GUI
layer.
* src/Makefile.am: Add sheet-control-gui-priv.h
* src/sheet-control-gui.h: Move struct _SheetControlGUI to
sheet-control-gui-priv.h. Remove declarations of methods which
have been made virtual.
* src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead
of sheet-control-gui.h.
Casts and temp variables because:
- virtual scg methods now take a SheetControl parameter.
- sheet member now lives in SheetControl.
Make following methods static - externally available only as
virtual SheetControl method: scg_redraw_all,
scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos,
scg_resize, scg_unant, scg_ant, scg_cursor_bound,
scg_compute_visible_region, scg_make_cell_visible. Initialize
class object with these as virtual methods together with
scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config
and scg_mode_edit. Rename context_menu_hander (sic!) to
context_menu_handler.
*src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo.
(sc_destroy): Comment out unused variable.
(sheet_control_init_state): Rename to sc_init_state.
(sc_sheet): New accessor - returns sheet attribute.
(sc_invalidate_sheet): New function - sets sheet attribute to
NULL.
(resize, set_zoom_factor, redraw_all, redraw_cell_region,
redraw_headers, ant, unant, adjust_preferences, update_cursor_pos,
scrollbar_config, mode_edit, compute_visible_region,
make_cell_visible, cursor_bound): New virtual methods.
* src/sheet-control.h: Declare new methods in sheet-control.c
* src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers
instead of scg methods.
* src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant.
(sheet_ant): Use sc_ant instead of scg_ant.
(sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all.
(sheet_redraw_all): Use sc_redraw_headers instead of
scg_redraw_headers.
(sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound.
(sheet_detach_scg): Rename to sheet_detach_control. Change
parameter from SheetControlGUI to SheetControl. Use sc_sheet and
sc_invalidate_sheet instead of direct attribute access.
(sheet_set_zoom_factor): Use sc_set_zoom_factor instead of
scg_set_zoom_factor.
(sheet_update_only_grid): Use sc_compute_visible_region instead of
scg_compute_visible_region.
(sheet_col_row_gutter): Use sc_resize instead of scg_resize.
(sheet_redraw_cell_region, sheet_redraw_partial_row,
sheet_redraw_cell): Use sc_redraw_cell_region instead of
scg_redraw_cell_region.
(sheet_make_cell_visible): Use sc_make_cell_visible instead of
scg_make_cell_visible.
(sheet_cursor_set): Use sc_cursor_bound instead of
scg_cursor_bound.
(sheet_update_cursor_pos): Use sc_update_cursor_pos instead of
scg_update_cursor_pos.
(sheet_scrollbar_config): Use sc_scrollbar_config instead of
scg_scrollbar_config.
(sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize
and sc_redraw_all instead of scg_adjust_preferences, scg_resize
and scg_redraw_all.
* src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls
instead of SheetControlGUIs.
* src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead
of scg_mode_edit.
* src/embeddable-grid.h: Include sheet-control-gui-priv.h instead
of sheet-control-gui.h.
* src/sheet-object-graphic.c: Ditto.
* src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead
of sheet-control-gui.h.
Casts and temp variables because:
- virtual scg methods now take a SheetControl parameter.
- sheet now lives in SheetControl.
* src/item-bar.c: Ditto.
* src/item-cursor.c: Ditto.
* src/item-edit.c: Ditto.
* src/item-grid.c: Ditto.
* src/sheet-object-cell-comment.c: Ditto.
* src/sheet-object-cell-container.c: Ditto.
* src/sheet-object-item.c: Ditto.
* src/sheet-object-widget.c: Ditto.
* src/workbook-control-gui.c: Ditto.
* src/workbook-object-toolbar.c: Ditto, but don't include
sheet-control-gui-priv.h
* src/sheet-object.c (sheet_object_realize): Cast control to
SheetControlGUI.
2001-05-30 Zbigniew Chyla <cyba@gnome.pl>
* src/stf.c (stf_init): Register as importer.
2001-05-29 Zbigniew Chyla <cyba@gnome.pl>
* src/file.h
(typedef enum FileProbeLevel) New.
(typedef GnumFileOpenerProbeFunc, gnum_file_opener_probe): Added
FileProbeLevel argument.
(GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
Macros moved to file-priv.h.
* src/file-priv.h
(struct _GnumFileOpenerClass::probe):
(GNUM_FILE_OPENER_CLASS, IS_GNUM_FILE_OPENER_CLASS,
GNUM_FILE_SAVER_CLASS, IS_GNUM_FILE_SAVER_CLASS):
Macros moved from file.h.
* src/file.c
(gnum_file_opener_probe_real, gnum_file_opener_probe):
Added FileProbeLevel argument.
* src/workbook-view.c
(wb_view_open_custom): Iterate over FileProbeLevel values when probing
the file (passing current value to probe function).
* src/xml-io.c
(xml_probe): Added FileProbeLevel argument, testing only file name if
probe level == FILE_PROBE_FILE_NAME.
* src/plugin-service.c (gnum_plugin_file_opener_probe):
Use file_patterns only if probe level == FILE_PROBE_FILE_NAME, otherwise
call module's probe function.
* src/bonobo-io.c (gnumeric_bonobo_io_probe),
src/plugin-service.h (struct _PluginServiceFileOpener),
src/plugin-loader-module.c
(gnumeric_plugin_loader_module_func_file_probe,
struct ServiceLoaderDataFileOpener::module_func_file_probe):
Added FileProbeLevel argument.
2001-05-27 Jody Goldberg <jgoldberg@home.com>
From Juan Pablo Mendoza <pablo_juan@yahoo.com>
* gnumeric-util.h (gnumeric_filter_modifiers): New macro.
* workbook-control-gui.c (wb_edit_key_pressed): Use it.
* gnumeric-sheet.c (gnumeric_filter_modifiers): Ditto.
* sheet.c (sheet_name_quote): Escape \ and add more chars to
to quote_chr.
2001-05-27 Jody Goldberg <jgoldberg@home.com>
* src/eval.c (sheet_region_queue_recalc) : Queue the dependents in the
region not just those that depend on it.
(cell_queue_recalc) : no need to queue non expression cells.
2001-05-27 Nathan Cullen <furyu@fuse.net>
* src/history.c (history_menu_insert_separator): Fixed keyboard
navigation problem in non-bonobo build with separator for recently
opened files. There was an "invisible" separator item so you needed
to arrow down twice to get from "Print Preview" to the first file.
2001-05-27 Jody Goldberg <jgoldberg@home.com>
* src/expr.c (eval_expr_real) : recurse for arrays too.
(expr_tree_array_corner) : rename from expr_tree_array_formula_corner,
and return the corner, not the expression in the corner.
* src/eval.c (cb_range_hash_invalidate) : invalidate and free things
in place.
(cb_single_hash_invalidate) : ditto.
(do_deps_destroy) : simplify.
* src/workbook-control-gui.c (wbcg_sheet_rename) : Use the table not
the container.
2001-05-27 Zbigniew Chyla <cybs@gnome.pl>
* src/plugin-service.c (parse_format_level_str): Fixed typo.
2001-05-26 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (colrow_move) : no need to queue recalc here.
(cb_sheet_cell_copy) : Actually copy the array values.
* src/cell.c (cell_relocate) : Just relink, no need to queue a recalc.
(cell_set_array_formula) : Remove the ability to queue the recalc at
this level. Just link the formulas in. Reorder the arguments
to match the standard approach.
* src/eval.c (workbook_recalc_all) : Used here.
(workbook_queue_all_recalc) : new function.
* src/xml-io.c (xml_workbook_read) : Queue everything for recalc.
(xml_cell_set_array_expr) : no need to queue a recalc here.
* src/commands.c (cmd_autofill_redo) : queue the recalc here.
(cmd_area_set_text_redo) : we need to manually queue a recalc for
arrays now.
* src/sheet.c (sheet_cell_set_text) : we need to queue a recalc for
both expressions and values now.
(sheet_range_set_text) : queue recalcs for the region as a block.
* src/graph-vector.c (graph_vector_new) : Just use dependent_link if
we don't want a recalc.
2001-05-27 Karl Eichwalder <ke@suse.de>
* Run xml-i18n-prepare:
* gnumeric.desktop.in: Remove file.
* gnumeric.desktop.in.in: New file.
* Makefile.am: Adjust it for gnumeric.desktop.in.in.
2001-05-26 Jody Goldberg <jgoldberg@home.com>
* src/sheet-control-gui.h : typo.
2001-05-26 Jon K Hellan <hellan@acm.org>
* src/sheet-control-gui.[ch]: Derive from SheetControl rather than
GtkObject.
* src/gnumeric.h: Add incomplete def of SheetControl.
* src/Makefile.am: Add sheet-control.c, sheet-control.h,
sheet-control-priv.h
* src/sheet-control.c: New file. Stub base class for
SheetControlGUI.
* src/sheet-control.h: Strip down even more from existing stub in
CVS.
* src/sheet-control-priv.h: New file. Private header for