-
Notifications
You must be signed in to change notification settings - Fork 22
/
OChangeLog-1999-07-09
6912 lines (4677 loc) · 228 KB
/
OChangeLog-1999-07-09
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
1999-07-09 Miguel de Icaza <[email protected]>
* src/about.c (dialog_about): Sort in alphabetical order.
* src/print-info.c (print_hf_free): Killed the style_format feature.
* src/print.c (print_job_info_get): Create render info context
here for header/footer printing.
(print_sheet_range): Setup number of pages here; Increment pages
after each one is outputed.
(print_headers): Implemented the header/footer printing.
* src/print-info.c (hf_render_info_new, hf_render_info_destroy):
New routines.
* src/fn-date.c (gnumeric_return_current_time): New function.
1999-07-09 Miguel de Icaza <[email protected]>
* configure.in (GNOMEGNORBA_LIBS): Simplified the Bonobo detection code.
1999-07-09 Miguel de Icaza <[email protected]>
* src/analysis-tools.c: Changed prototype of int_compare to
eliminate a warning.
Removed unused variables.
* src/cell.c: #inlcude gnumeric-util to eliminate warning.
* src/fn-financial.c: Fixed all the help strings to get the
SEELASO correctly done
* src/style.c: Zoom factor 1.0 is a reminder to me, not a warning.
1999-07-09 Miguel de Icaza <[email protected]>
* src/sheet-view.c (sheet_view_construct): Reverted last plan. We
do need a sheet_view_construct, as we require sheet_view->sheet to
be set.
1999-07-08 Miguel de Icaza <[email protected]>
* src/cell.c (calc_text_dimensions): Use gdk_fonts for measuring
the strings on the screen. Basically, back out using GnomeFont here.
* src/print-info.c (render_date, render_time): Finished
implementing.
(render_opcode): Enable argument mechanism to extend the number of
possible formats. Excel accepts stuff like &[DATE], we extend
this to accept &[DATE:mmmm-yyyy]. The argument for &[DATE] and
&[TIME] is a regular Gnumeric formatting code (ie, compattible
with the cell formatting in Excel).
* src/sheet-view.h: Change style to suit forward declaration
structure.
* src/sheet.h: Use forward declaration for SheetView.
* src/sheet.c (sheet_new_sheet_view, sheet_destroy_sheet_view):
New routines for managing the sheet views.
* src/sheet-view.c: Killed sheet_view_construct, there was nothing
really required there. Moved all the code to sheet_view_init.
(sheet_view_scrollbar_display, sheet_view_set_header_visibility):
New routines that control the visibility of the various gadgets of
a SheetView.
* embeddable-grid.c, embeddable-grid.h: New files. They implement
the Bonobo GnomeEmbeddable interfaces for embedding Gnumeric in
applications.
* src/workbook.c (workbook_new, workbook_core_new): Split this
routine in two: GUI independant and GUI dependant. The next step
is to provide multiple views of a workbook (although, I am not
sure I want this).
(workbook_new_with_sheets): Kill dead code.
* src/corba-sheet.c (Sheet_row_height, Sheet_col_width,
Sheet_max_cols_used, Sheet_max_rows_used): New methods.
* src/Gnumeric.idl (Sheet): new methods max_cols_used,
max_rows_used, col_width, row_height.
(Grid): New interface for embeddable grids.
* src/print-info.c (hf_format_render): Rendering routine for the
header and footers formats.
1999-07-09 Michael Meeks <[email protected]>
* src/Gnumeric.idl: Add GNOME::Unknown back in.
1999-07-09 Jukka-Pekka Iivonen <[email protected]>
* src/dialog-analysis-tools.c, src/analysis-tools.c: Added an
option to all tools to print the results to a new workbook.
* src/dialog-analysis-tools.c, src/analysis-tools.c: Added Moving
Average and Rank and Percentile tools.
1999-07-09 Michael Meeks <[email protected]>
* src/eval.c (add_value_deps): Add warning on default:
(add_cell_range_deps): Fixup for correct inter-sheet
dependencies; massive bug.
* TODO: Updated.
* doc/C/formulas.sgml: Wrote the 'name' documentation.
1999-07-08 Michael Meeks <[email protected]>
* src/func.c (function_iterate_do_value): Fix for NULL CellRef
Sheet *, fallback to EvalPosition's Sheet *
* src/fn-math.c (gnumeric_countif): ditto.
* src/fn-math.c (gnumeric_seriessum): Add check for NULL nodes
pointer.
1999-07-08 Jody Goldberg <[email protected]>
* src/cell-draw.c (cell_split_text) : Honour embedded newlines.
Why do we call str_trim_spaces ?
* src/print-cell.c (cell_split_text) : Ditto. Adjust gnome-print to
make the code even more similar to cell-draw version. Should we be
using double rather than int for width calculations ?
NOTE : This requires some recent (1999/7/7) changes to gnome-print.
* src/cell.c (cell_comment_realize) : reference the comment object
to avoid verbose warnings when we exit.
1999-07-08 Jukka-Pekka Iivonen <[email protected]>
* doc/C/analysis-tools.sgml: New file. Added documentation for the
following analysis tools: Correlation, Covariance, Descriptive
Statistics, Random Number Generation, Sampling, and F-Test.
* src/dialog-analysis-tools.c: Added some default parameters for
the random number generation tool.
* src/dialog-analysis-tools.c, src/analysis-tools.c: Started the
implementation of regression tool. Feel free to fill in the rest
of the calculations if you are familiar with the regression
statistics.
1999-07-08 Michael Meeks <[email protected]>
* src/eval.c (add_tree_deps): Change exprt to expr_tree.
* src/Gnumeric.idl: Removed : GNOME::Unknown from Workbook so
people can compile for now.
1999-07-07 Michael Meeks <[email protected]>
* src/expr.c (do_expr_decode_tree): Add vital translation stuff.
* src/parser.y (return_name): Created.
(try_symbol): Add name lookup.
* src/eval.c (add_tree_deps): Calculate name dependencies if at all
possible.
* src/main.c (gnumeric_main): Add expr_name_init.
* src/expr.c (expr_tree_new_name, do_expr_tree_unref),
(eval_expr, do_expr_decode_tree, do_expr_tree_invalidate_references),
(do_expr_tree_fixup_references, expr_dump_tree): Add OPER_NAME support
in every case just after OPER_FUNCALL.
* src/expr.h: Add ExprName struct, include and OPER_NAME.
* src/Makefile.am (GNUMERIC_BASE_SOURCES): Added expr_name.[ch]
1999-07-07 Miguel de Icaza <[email protected]>
* configure.in (EXTRA_GNOME_CFLAGS): Assemble all the flags we
will be linking with here.X
* src/Gnumeric.idl: Small typo fixes.
* Killed liblgade from here, it is now a requirement.
1999-07-07 Jukka-Pekka Iivonen <[email protected]>
* src/dialog-analysis-tools.c: Cleaned up `groupped by' radio
button code. Added `Labels in First Row' check buttons for all
tools. Made the tool list inside of a scrolled window.
* src/dialog-analysis-tools.c, src/analysis-tools.c: Implemented
`Random Number Generation' tool with the following distributions:
Discrete, Normal, and Uniform.
1999-07-07 Michael Meeks <[email protected]>
* src/about.c (dialog_about): Add Jody, updated Sean.
* src/dialog-cell-sort.c (dialog_cell_sort): Stop degenerate
cases from producing confusing 'Add / Remove clause' boxes.
1999-07-05 Miguel de Icaza <[email protected]>
* src/Gnumeric.idl: Use new interface name.
1999-07-06 Jukka-Pekka Iivonen <[email protected]>
* src/dialog-analysis-tools.c, src/analysis-tools.c: Added some
error checks, not complete yet.
1999-07-06 Jukka-Pekka Iivonen <[email protected]>
* src/dialog-analysis-tools.c, src/analysis-tools.c: Added output
frames and an option to output into an existing sheet.
1999-07-06 Jukka-Pekka Iivonen <[email protected]>
* src/dialog-analysis-tools.c: Cleaned up a lot. Added input
frames to input entries.
1999-07-06 Jukka-Pekka Iivonen <[email protected]>
* src/analysis-tools.c, src/dialog-analysis-tools.c,
src/dialogs.h: Implemented F-Test tool.
1999-07-06 Jukka-Pekka Iivonen <[email protected]>
* src/analysis-tools.c, src/dialog-analysis-tools.c,
src/dialogs.h: Implemented t-Test and z-Test tools.
1999-07-05 Miguel de Icaza <[email protected]>
* src/about.c (dialog_about): Added link to IGS web site.
1999-07-05 Jody Goldberg <[email protected]>
* src/cell.c (cell_set_formula) : Rework array-formula logic to deal
with cell_set_array_formula releasing the wrapper generated by the
parser.
(cell_set_text) : Crude but effective prohibition for editing 1 cell
in an array.
* src/eval.c : Add more debug info.
(search_cell_deps) : Rename search_range_deps.
(search_cell_deps) : New function. Special case of a single cell
only needs 1 call to intersect.
* src/expr.c (do_expr_tree_invalidate_references,
do_expr_tree_fixup_references) : Implement for OPER_ARRAY.
(expr_tree_get_const_str) : New function.
* src/format.c (format_number) : Made debug warning more verbose but
only print it the 1st time.
* src/gnumeric-util.[c,h] (gnumeric_no_modify_array_notice) : New.
* src/sheet.c (sheet_clear_region): Use gnumeric_no_modify_array_notice.
(avoid_dividing_array_horizontal, avoid_dividing_array_vertical) : New.
(sheet_insert_row, sheet_insert_row) : Use them.
(sheet_fill_selection_with) : Add flag to differentiate fills and
array-formulas. Check to ensure that the array/fill operation does
not overwrite a subset of an array.
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Pass is_array.
(gnumeric_sheet_patterns) : Adjust to more exactly match Excel.
NOTE : They are listed in DISPLAY order not excel's internal index
scheme, that requires a map.
* src/gnumeric-sheet.h : Increase number of patterns.
* src/pattern-selector.c : Adjust layout to match Excel. Still need to
figure out how to get the stipples on a white background.
* src/main.c : Add debug_excel_{read,formulas,color,chart} to
allow run time vs compile time verbosity.
1999-07-05 Morten Welinder <[email protected]>
* src/expr.c (value_array_resize): Shined up, fixed, not tested.
* src/print-info.c (print_hf_new): Constify.
(print_hf_free): Fix leaks.
* src/workbook.c (workbook_do_destroy): Fix leak.
* src/style.c (style_shutdown): Unref out fonts.
* src/sheet.c (sheet_start_editing_at_cursor): Doc fix.
1999-07-05 Jukka-Pekka Iivonen <[email protected]>
* src/analysis-tools.c, src/dialog-analysis-tools.c,
src/dialogs.h: Implemented Sampling Tool. Still more to come.
1999-07-05 Morten Welinder <[email protected]>
* src/style.c (style_font_new_simple): Reinstate negative caching.
* src/xml-io.c (xml_set_gnome_canvas_points): Handle zero point
case. Don't rely on return value from sprintf.
* src/dialog-function-select.c (function_definition_update): Kill
warnings.
* src/dialog-analysis-tools.c (dummy_fun): Make static.
(summary_stat_signal_fun): Ditto.
(confidence_signal_fun): Ditto.
(kth_largest_signal_fun): Ditto.
(kth_smallest_signal_fun): Ditto.
(tool_dialog_range): Ditto.
(selection_made): Ditto.
(dialog_data_analysis): Kill warning.
* src/analysis-tools.c (descriptive_stat_tool): Kill warnings.
1999-07-05 Jukka-Pekka Iivonen <[email protected]>
* src/analysis-tools.c, src/dialog-analysis-tools.c,
src/dialogs.h: Implemented Descriptive Statistics Tool. Please do
not edit these files (unless a serious bug fix) for a couple of
days; there is more to come.
1999-07-05 Miguel de Icaza <[email protected]>
* src/print.c: Only print the headers and sides
* plugins/text/text-io.c (text_cleanup_plugin): Kill probing here.
(text_init): kill probing here as well.
(text_parse_file): kill probing support here as well.
(text_parse_file): Do not use first line as sheet name.
* src/file.c (workbook_import): Added import dialog box.
(workbook_read): Now does only probe for existing probe routines.
(file_format_register_open): probe function being NULL now means
that this is not an auto-probe filter, but an import filter (ie,
the user has to manually select the file).
1999-07-04 Miguel de Icaza <[email protected]>
* src/file.c (file_format_register_open): Allow the probe_fn to be NULL.
* src/workbook.c (import_file_cmd): Added import menu item.
1999-07-05 Michael Meeks <[email protected]>
* src/sheet.c (sheet_update_auto_expr): Removed parsing.
* src/workbook.c (workbook_set_auto_expr): Moved unsafe parser
call in here.
* src/sheet.h: Changed auto_expr_text to ExprTree auto_expr.
* src/parser.y (gnumeric_expr_parser): Added.
(gnumeric_unsafe_expr_parser): Renamed and changed arguments.
* plugins/guile/plugin.c (init_plugin): New function stuff.
(func_scm_apply): ditto.
(func_scm_eval): ditto.
(func_marshal_func): ditto.
(scm_register_function): ditto.
* plugins/python/python.c (__register_function): Updated to
new function stuff.
(marshal_func): ditto.
* plugins/perl/ext/Makefile.PL.in: Added GNOME_PRINT bits.
1999-07-04 Michael Meeks <[email protected]>
* src/workbook.c (workbook_sheet_get_free_name): Made more
similar to Excel: base sheet no. = 1 + no space.
(workbook_new_with_sheets): Update to more Excel friendly
names.
1999-07-02 Miguel de Icaza <[email protected]>
* doc/Design, doc/translating.sgml: small touchups.
* src/dialog-printer-setup.c (do_setup_main_dialog): Set the
window parent here.
(do_setup_main_dialog): Force destruction of parent widget.
* src/print.glade: Removed visibility flag from toplevel dialog
box.
* doc/C/files.sgml: Updated indentation.
* src/dialog-printer-setup.c (do_setup_page): Use relative path
for printing here.
1999-06-30 Miguel de Icaza <[email protected]>
* src/item-grid.c (item_grid_draw_cell): Eliminate warning.
* src/dialog-printer-setup.c: Adapted to the new setup for keeping
track of col/rows ranges.
(do_fetch_page_info): ditto.
* src/print.c (PrintJobInfo): Use doubles for all the printing
units.
(print_sheet_range): Take into account the repeat ranges for
repeated headers, repeated columns.
(print_sheet): compute space used by repeated headers and repeated
columns.
(print_page): Print repeating top rows and repeating left
columns on each page. Loop over printing routines.
(print_page_cells): new routine: prints a cell range only.
(print_page_repeated_rows, print_page_repeated_cols): Prints the
repeating columns and repeating rows.
* src/dialog-cell-format.c (apply_font_format): Implement
GnomePrint based version.
* src/print-info.c (save_range): Updated to reflect the new change
to PrintRepeatRange.
(print_info_save): ditto.
(load_range): ditto.
(print_info_new): ditto.
* src/print-info.h: Store ranges as a structure that contains an
explicit tag for validness instead of overloading the definition
of Value/CellRange.
1999-07-02 Jukka-Pekka Iivonen <[email protected]>
* src/anaysis-tools.c: New file for data analysis tools.
Currently only correlation and covariance tools implemented.
* src/dialog-analysis-tools.c: New file.
* src/dialogs.h: Added some definitions for data analysis tools.
* src/workbook.c: Added data analysis menu entry.
1999-06-26 Morten Welinder <[email protected]>
* src/fn-string.c (gnumeric_dollar): Avoid warning overflows.
* src/print-info.c (print_unit_new): Warning killer.
* src/fn-financial.c (calculate_fvif): Warning killer.
* src/expr.c (build_error_string): Re-remove.
* src/dialog-printer-setup.c (unit_into_to_points): Warning killer.
* src/mathfunc.c (MATHLIB_WARNING2, MATHLIB_WARNING4): Warning killer.
1999-07-01 Michael Meeks <[email protected]>
* src/main.c (gnumeric_main): Added excel_shutdown.
1999-07-01 Jukka-Pekka Iivonen <[email protected]>
* samples/datefuns.xls: Added a few missing function tests.
1999-06-30 Heath Martin <[email protected]>
* src/cell.c, src/cell.h: (cell_get_comment) New function.
* src/xml-io.c: (xml_write_cell) Save comments.
(xml_read_cell) Load comments.
1999-06-30 Michael Meeks <[email protected]>
* TODO: Moved some bits to plugins/excel.
add a bit about Styles.
1999-06-29 Jody Goldberg <[email protected]>
* src/cell.c (cell_set_formula) : Handle special case of array by
setting the entire matrix from the top left corner.
(cell_set_array_formula) : New function.
* src/cell.h : Add cell_set_array_formula.
* src/eval.c (add_cell_range_deps) : Split setup into new function.
(add_cell_range_dep) : Here.
(add_tree_deps) : Support Array operators.
* src/parser.y : Parse new array formula syntax.
(dump_tree) : rename to expr_dump_tree and move to.
* src/expr.c (expr_dump_tree) : From parser.y.
(expr_tree_get_const_int) : New function.
(expr_tree_array_formula) : New function.
(expr_tree_array_formula_corner) : New function.
(do_expr_tree_unref) : Support Array operators.
(value_area_get_at_x_y) : Renamed to value_area_fetch_x_y, fixed
thinko, completed support for relative ranges.
(value_area_get_x_y) : New function, like value_area_fetch_x_y but
does not create missing values.
(eval_expr) : Support Array operators.
(do_expr_decode_tree) : Ditto.
(do_expr_tree_invalidate_references) : Ditto.
(do_expr_tree_fixup_references) : Ditto.
* src/expr.h : Add expr_tree_get_const_int, expr_tree_array_formula,
value_area_get_x_y, and Array operators. Rename value_area_get_at_x_y.
* src/fn-lookup.c : Handle renamed value_area_fetch_x_y.
* src/fn-math.c : Ditto. Add MMULT.
* src/format.c : (format_value) Handle arrays.
(assemble_clear_cell_list) : check that a subset of an array is not
being cleared.
* src/item-cursor.c : Ditto.
* src/item-grid.c : Ditto.
* src/xml-io.c : Deal with Array formula I/O.
1999-06-29 Miguel de Icaza <[email protected]>
* src/print-info.c (save_range): Save the repeat ranges routine.
(print_info_save): Save the repeat ranges.
* src/expr.c (value_cellrange_get_as_string): Implemented.
(value_get_as_string): Expanded to render cellranges.
* src/print-info.c (load_range): New routine, loads a range from
the config file.
* src/print.c (print_sheet_range): off-by-one error fix.
1999-06-29 Jukka-Pekka Iivonen <[email protected]>
* samples/textfuns.xls: Added a new test file.
* samples/engfuns.xls, samples/mathfuns.xls: Updated.
1999-06-29 Jukka-Pekka Iivonen <[email protected]>
* src/fn-stat.c: Added FORECAST() and INTERCEPT().
* src/fn-math.c: SUMIF() can now take an optional argument
(actual_range).
* src/fn-information.c: Made N() return 0 if the given string is
non-number, not an error.
1999-06-28 Michael Meeks <[email protected]>
* src/main.c (gnumeric_main): removed xbase_init.
* src/Makefile.am: Removed xbase static link.
1999-06-28 Miguel de Icaza <[email protected]>
* src/dialog-printer-setup.c (load_image): Use a constant relative
to the Gnumeric installation directory, do not use the gnome
pixmap path routine.
* src/workbook.c: Add print icon to the toolbar.
* src/dialog-printer-setup.c (do_print_cb): Fetch settings when
the user presses print from here.
(do_setup_main_dialog): Hide non working widgets.
1999-06-28 Michael Meeks <[email protected]>
* CHANGES: Updated for new release.
1999-06-27 Raja R Harinath <[email protected]>
* src/Makefile.am (Gnumeric-impl.o): This depends on Gnumeric.h,
Gnumeric-impl.c doesn't.
Reinstate Perl plugin.
* plugins/perl/Makefile.am: Clean up build.
* plugins/perl/ext/Gnumeric.xs (register_function):
Use FunctionCategory and `function_add_args' API instead of
`install_symbol'.
(marshal_func): Update to new callback prototype.
* plugins/perl/ext/Makefile.PL.in ('INC'): Use @top_srcdir@ rather
than @srcdir@/../../...
* doc/C/Makefile.am: Misc. srcdir != builddir fixes.
* configure.in (GNOME_PRINT_CFLAGS): Fix typo.
1999-06-25 Michael Meeks <[email protected]>
* src/dialog-function-wizard.c: Re-vamped table layout.
* src/fn-string.c (string_functions_init): Change category
name to 'String'; silly me.
* src/dialog-function-select.c (function_definition_update): Fixed
old & broken function pointer code.
* src/expr.c (eval_funcall): Updated to use union.
(function_def_call_with_values): ditto.
* src/func.c (function_add_nodes): ditto.
(function_add_args): ditto.
* src/expr.h: Changed void *fn pointer to a slicker union.
* src/plugin.h: Added a prototype for the one external function
every plugin must have ( kills some plugins warnings ).
* src/workbook.c (workbook_new): Updated call to set_auto_expr
(change_auto_expr): ditto.
(workbook_do_destroy): Update.
(workbook_set_auto_expr): Updated, just to set text leaving heavy
lifting for sheet.c. This removes possible error checking of our
quick-functions, but an error will be displayed in the status bar
having set the function, and the functionality wasn't used.
* src/sheet.h: Removed previously extern'd workbook_set_auto_expr,
this should be internal.
Remove auto_expr_tree from Workbook *.
* src/sheet.c (sheet_update_auto_expr): Moved auto_expr parsing
into sheet_update_auto_expr. Rational; neater, and not performance
critical.
1999-06-26 Miguel de Icaza <[email protected]>
* src/pixmaps.h: Removed unused pixmaps.
* src/corba-sheet.c (Sheet_corba_class_init): Fill in some missing
values fomr the GNOME::Gnumeric::Sheet epv interface.
* src/expr.c (eval_funcall): Removed unused variable.
* src/workbook.c (workbook_sheets): prepend and reverse instead of
appending all the time. It is more efficient.
* src/style.c (x11_font_compute_hints): Renamed as well. Might be
useful in the future.
* src/gnumeric-util.c (x11_font_get_italic_name,
x11_font_get_bold_name, x11_font_change_component): Renamed these
functions to reflect their actual usage.
* src/expr.c (expr_tree_new_constant): Change style to use early
return to keep indentation of the rest of the code at tab-1. This
is a trick to keep indentation nice with 8-tab spaces. Liberal
use of early returns, early continues, early breaks.
* src/cell.h (CELL_TEXT_GET): Kill unused macro.
1999-06-25 Miguel de Icaza <[email protected]>
* src/xml-io.c (xml_read_cell): Merge the style we just read with
the existing information from the cell (which are the defaults).
This is only for compatibility with the old format
1999-06-24 Miguel de Icaza <[email protected]>
* src/xml-io.c (style_font_new_from_x11): Implemented
* src/style.c (style_font_new): Improved matching of the font.
* src/xml-io.c (xml_write_style): Save Bold and Italic
properties. Save Units as double.
(xml_read_style): Add conversion hook from old format.
(xml_read_style): Load properly italic and bold properties.
(xml_read_cell): Add new style reading code. It is
compatible with the old Style reading code.
(xml_read_rows_info, xml_read_cols_info, xml_read_styles): Moved
Cols, Rows and Styles loading code here, for code clarity.
* src/style.c (style_font_new_simple): Include the scale in the
key lookup variable.
* src/xml-io.c: The FontDefs and the HREFs to the fonts were never
being used. The new code for styles simplifies this. Kill all
the references to the FontDefs urls and the font indeces.
* src/xml-io.c
1999-06-23 Miguel de Icaza <[email protected]>
* src/xml-io.c: Major updates.
(xml_read_colrow_info): Use floating point for loading the
units, margin_a and margin_b.
(xml_write_colrow_info): Save units, margin_a and margin_b using
floating point.
(xml_set_value_double): Activate this function.
(xml_write_cell): Do not save the style here. Lookup the style
id, and write a record with the style id link.
(xml_sheet_write): Add call to xml_cell_styles_init and
xml_cell_styles_shutdown to init and shutdown the cell styles in a
per-sheet basis.
Renamed functions to suit the gnumeric coding
sytle. Fixed indentation.
File format now saves a different version. We store all cell
styles first, and then we reference them.
(parse_xml_context_t): renamed from
parseXmlContext. Add style_table hash table for storing all the
styles used by the cells on a workbook. Used to dump Styles first
and then have the cells reference it.
* src/style.c (style_hash, style_compare): New routines to
put Styles on hash tables.
* src/workbook.c (workbook_sheets): Use g_list_prepend instead of
g_list_append and reverse the result.
1999-06-14 Miguel de Icaza <[email protected]>
* src/cell.h: Killed ColType and RowType definitions. They do not
save any noticeable amount of memory; we are not using them but
on the most useless places and finally they are the current limit
to our spreadsheet size.
* src/gnumeric-sheet.h: Use int instead of ColType, RowType
* src/item-cursor.h: Use int instead of ColType, RowType
* src/item-grid.h: Use int instead of ColType, RowType
* src/print-cell.c (CELL_DIM): Use _pt variants of the margins here.
(print_cell_text): and here.
(print_cell): and here.
(print_cell_range): and here.
(print_cell_grid): and here.
1999-06-13 Miguel de Icaza <[email protected]>
* src/sheet.c (sheet_compute_col_row_new_size): Update margin_a
and margin_b from the points.
(col_row_info_init): New function to initialize a sample
ColRowInfo. Inits the _pt fields.
(col_row_unit_distance): Use the new fields in computation.
(sheet_col_get_unit_distance): Use new fields in computation.
* src/dialog-printer-setup.c (do_setup_margin): Set scroll region.
(preview_page_create): Implement routine that draws the page for
the margin setup.
* src/sheet.h (ColRowInfo): Units are now doubles; margin_a_pt and
margin_b_pt are doubles that represent the a and b margins in
points.
* src/sheet.c (sheet_compute_col_row_new_size): Use the
1999-06-11 Miguel de Icaza <[email protected]>
* src/cell-draw.c (cell_draw): Move the foreground setting routine
here and handle single-line and multiline coloring properly.
* src/print-info.c (unit_name_to_unit): New routine, returns the
UniName from the string name.
* src/dialog-printer-setup.c (dialog_printer_setup): Use
print_info_save and kill the do_save_settings routine for the
cleaner print_info routine.
* src/print-info.c (print_info_new): Now loads the default
settings from the saved configuration.
(print_info_save): Saves the print information to the gnome_config.
1999-06-08 Miguel de Icaza <[email protected]>
* src/utils.c (str_trim_spaces): Moved str_trim_spaces ere.
* src/dialog-printer-setup.c (do_setup_main_dialog): Connect print
buttons.
* src/print-cell.c (print_cell_grid): Simplify routine.
* src/sheet.c (sheet_row_get_unit_distance,
sheet_col_get_unit_distance): Include margins in computation.
This is broken, as the margins are now pixels, and they should be
made points.
* src/dialog-printer-setup.c (do_fetch_page_info): Fetch other values.
(do_save_settings): Saves the configuration.
* src/print-cell.c (print_border): Implement border drawing.
(print_cell_grid): Make this work as it should.
* src/print.c (compute_groups): Handle the case where the contents
fit entirely in one page.
1999-06-07 Miguel de Icaza <[email protected]>
* src/print.c: New file. Implements high-level printing.
* src/dialog-printer-setup.c: New file. Implements the "Print
Setup" dialog box.
1999-04-30 Miguel de Icaza <[email protected]>
* src/cell-draw.c: New file. All of the cell screen drawing code
has been moved here now.
* src/print-cell.c: Enhanced code.
* src/workbook.c: hardcoded page size for testing purposes.
1999-03-10 Miguel de Icaza <[email protected]>
I do not like the current approach. I do think that StyleFonts
should be static with regard to Zoom.
And we would keep a cache of X fonts that are used for a
particular size.
* src/style.c (style_font_new_from): New routine that creates a
new font.
* src/sheet.c (sheet_set_zoom_factor): Scale fonts used in the
Sheet.
1999-02-15 Miguel de Icaza <[email protected]>
* src/dialog-printer-setup.c: New file. Implements the workbook
page configuration dialog box.
* src/print-info.c, src/print-info.h: Manages the per-worbook
print options.
1999-02-07 Miguel de Icaza <[email protected]>
* src/style.c (font_equal): Adapt function to the new StyleFont.
(style_font_new, style_font_new_simple): Adapt for the upcoming
gnome-print support.
(font_init): Adapt.
* src/xml-io.c: Use Gnome Print font scheme.
* src/workbook.c: ditto.
* src/cell.c: ditto.
* src/item-bar.c, src/item-edit.c: ditto
* src/dialog-cell-format.c: Disable font selector for now.
1999-06-26 Morten Welinder <[email protected]>
* src/fn-financial.c (gnumeric_rate): New function.
* src/sheet.c (sheet_destroy): Sssshhhh!
* src/fn-eng.c (val_to_base): Neat and tidy.
1999-06-25 Morten Welinder <[email protected]>
* src/fn-eng.c (eng_functions_init): Extend impower to handle two
complex numbers.
(eng_functions_init): Prepare for besseli and besselk. Docs
please.
* src/mathfunc.c (dweibull, pweibull, ppois, dpois, dexp, pexp,
dbinom, pbinom, qbinom, besseli, besselk): New functions.
* src/fn-stat.c: Use new mathfuncs.
(gnumeric_kurt): Use range function.
(gnumeric_kurtp): New function.
(gnumeric_skewp): New function.
* src/mathfunc.c (range_skew_est): Rename from range_skew.
(range_skew_pop): New function.
(range_kurtosis_m3_est): New function.
(range_kurtosis_m3_pop): New function.
* src/fn-math.c (gnumeric_gcd): Cleanup and fix.
1999-06-24 Michael Meeks <[email protected]>
* src/expr.c (value_area_get_at_x_y): Return value_zero instead
of the leaky value_new_int.
(value_area_get_at_x_y, value_area_get_width, value_area_get_height):
Updated to fall back to EvalPosition's Sheet *.
* src/expr.h: Added 'EvalPosition' parameter to area functions.
1999-06-23 Morten Welinder <[email protected]>
* src/fn-stat.c (gnumeric_poisson): Fix formula and error
handling.
(gnumeric_binomdist): Ditto.
(gnumeric_correl): Ditto.
* src/expr.c (eval_expr): Remove useless casts.
(eval_funcall): Treat 'b' as 'f' for now. Don't use fd until it
gets a value.
* src/func.c (function_iterate_argument_values): Don't leak error
message.
* src/eval.c (cell_eval): Don't leak error message.
* src/*.c: Remove strange casts to (Value *).
1999-06-24 Michael Meeks <[email protected]>
* src/expr.c (error_message_new): Fix stupid bug,
such that every error was set.
* src/fn-math.c: Add sumproduct back in.
1999-06-24 Michael Meeks <[email protected]>
* src/fn-stat.c: Added ftest, ttest again.
1999-06-23 Michael Meeks <[email protected]>
* src/sheet.c (sheet_update_auto_expr): Add check for cached
text.
* src/sheet.h: Added workbook_set_auto_expr.
* src/workbook.c (workbook_new): Initialise auto_expr stuff
before reading it in set_auto_expr.
(workbook_do_destroy): Add freeing of auto_expr_text.
(workbook_set_auto_expr): Hacked to cache expression until we
have a sheet context.
* src/expr.h: Add extra Parser error type for invalid args.
* src/fn-financial.c (finance_functions_init): Fix financial
functions, using 'i' as a token ( invalid ).
1999-06-23 Michael Meeks <[email protected]>
* docs/writing-functions.sgml: Updated to reflect my changes,
expanded and removed anachronisms.
* src/expr.h: Added FunctionArgs, FunctionNodes typedefs
Created struct EvalPosition, struct FunctionEvalInfo and
implemented through functions where necessary.
* src/expr.c (function_error, function_error_alloc): created
helper error return functions.
(eval_pos_init, eval_pos_cell): Helper EvalPosition fn's
(func_eval_info_init, func_eval_info_cell, func_eval_info_pos):
created helper FunctionEvalInfo fn's
(error_message_new, error_message_set_alloc),
(error_message_set_small, error_message_txt, error_message_free):
created error class.
* src/expr.c (expr_parse_string, gnumeric_expr_parser),
(expr_decode_tree, expr_tree_invalidate_referenced),
(expr_tree_fixup_references, eval_expr): Updated to pass / use
new EvalPosition / FunctionEvalInfo structures.
* src/parser.y (gnumeric_expr_parser): Updated arguments to use
EvalPosition, added more stringent checks.
* src/func.h: Updated lots of things to new structures.
Changed the iterators arguments to new structures, altered
FunctionIterateCallback to suit.
Re-implemented function storage / mapping.
* src/func.c (function_get_category, function_add_args),
(function_add_nodes): Created.
(function_iterate_do_value, function_argument_values),
(function_call_with_values, function_def_call_with_values):
Updated to new scheme.
* src/fn-*: Major major changes:
- All function definitions changed to use:
typedef Value *(FunctionArgs) (FunctionEvalInfo *fe, Value **args); or
typedef Value *(FunctionNodes) (FunctionEvalInfo *fe, GList *nodes);
- All error returns altered to use:
return function_error (ei, _("foo"));
instead of
{
*error_string = _("baa");
return NULL;
}
this will allow for changing the error handling.
- A few functions that used Sheet *, eval_col, eval_row updated.
1999-06-23 Morten Welinder <[email protected]>
* src/collect.c, src/collect.h: New files.
* src/Makefile.am (GNUMERIC_BASE_SOURCES): Add collect.c and
collect.h.
* src/fn-stat.c: Rewrite range-taking using collect and new range
handling functions. Most look really nice now. (This fixes and
number of leaks and makes error cases handled better. We might
return the wrong error from time to time, though.)
* src/fn-math.c: Ditto.
* src/expr.c (eval_funcall): Fix insanity check.
1999-06-22 Morten Welinder <[email protected]>
* src/expr.c (eval_funcall): Add sanity check.
* src/fn-stat.c (callback_function_ttest): Make static.
* src/expr.h: Delete unwanted member "sym".
1999-06-22 Jukka-Pekka Iivonen <[email protected]>
* samples/statfuns.xls: Added MMULT and MINVERSE tests.
* samples/lookfuns.xls: Added a new file for testing lookup and
reference functions.