Update Spanish translation
[gnumeric.git] / OChangeLog-2003-12-23
blobe82814d1f691a7e2dabc941f16b4fa9a9e7b5f92
1 2003-12-23  Jody Goldberg <jody@gnome.org>
3         * Release 1.2.3
5 2003-12-23  Jody Goldberg <jody@gnome.org>
7         * gnumeric.keys.in : expand our claims.
8         * gnumeric.mime : apparently duplicates are not a good idea.
10 2003-12-23  Jody Goldberg <jody@gnome.org>
12         * src/graph.c (gnm_go_data_preferred_fmt) : simplify to handle both
13           scalar and vector and use the auto-format code.
15 2003-12-22  Morten Welinder  <terra@gnome.org>
17         * src/gutils.c (gnm_get_real_name): Fix $NAME case.
19 2003-12-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
21         http://bugzilla.gnome.org/show_bug.cgi?id=128611
22         * src/formats.c (cell_format_classify): ignore case when comparing
23           with general format
25 2003-12-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
27         http://bugzilla.gnome.org/show_bug.cgi?id=129049
28         * src/session.c (interaction_function): stick dialogs and workbook
29           windows to ensure they are visible for logout conversation
31 2003-12-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
33         http://bugzilla.gnome.org/show_bug.cgi?id=129444
34         * src/print-cell.c (cell_split_text_no_wrap): new
35         (print_cell): check for non-word-wrapped cells with line breaks
36           and handle them like word-wrapped ones.
38 2003-12-20  Jody Goldberg <jody@gnome.org>
40         * src/format.c (style_format_account) : quote currencies as necessary.
41         (fmt_general_float) : decimal points are generally narrower.
43 2003-12-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
45         * src/stf-export.c (stf_export_options_set_format_mode): new
46         (stf_export_options_new): initialize new fields
47         (stf_export_options_set_format_mode): new
48         (stf_export_cell): use rendered text if required
49         * src/stf-export.h (StfExportOptions_t): add preserve_format
50         (stf_export_options_set_format_mode): new
52 2003-12-20  Andreas J. Guelzow  <aguelzow@taliesin.ca>
54         * src/gui-util.c (gnumeric_popup_menu): handle NULL event.
56 2003-12-19  Jon K Hellan  <hellan@acm.org>
58         * src/format-template.c (format_template_new): Use gnm_get_real_name.
60         * src/summary.c (summary_info_default): UTF-8 encode author name.
61         (summary_item_new_string): Validate string as utf-8.
63         * src/gutils.[ch] (gnm_get_real_name): New function.
65 2003-12-18  Jody Goldberg <jody@gnome.org>
67         * src/graph.c (gnm_go_data_scalar_preferred_fmt) : new.
69 2003-12-18  Jody Goldberg <jody@gnome.org>
71         * src/workbook-control-gui.c (wbcg_scroll_wheel_support_cb) : add some
72           bounds checks to avoid listing things like 'zoom -10' in the ui.
74 2003-12-18  Jody Goldberg <jody@gnome.org>
76         * src/workbook-control-gui.c (wbcg_scroll_wheel_support_cb) : support
77           scroll wheel zoom, and horizontal scrollwheels.
79         * src/xml-io.c (xml_workbook_read) : fix xml import of manual recalc
80           flag.
82 2003-12-17  Jody Goldberg <jody@gnome.org>
84         * src/number-match.c (value_is_error) : no need to use strncmp
86 2003-12-14  J.H.M. Dassen (Ray) <jdassen@debian.org>
88         * debian/changelog, debian/control: Updated.
90 2003-12-13  Jody Goldberg <jody@gnome.org>
92         http://bugzilla.gnome.org/show_bug.cgi?id=128169
93         * src/item-edit.c (ie_layout) : Use the actual font description, not
94           the default associated with the context.
96 2003-12-11  Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
98         * src/xml-io.c (xml_read_sheet_object): Do not try to get the class of
99         object before its instantiation.
101 2003-12-10  Morten Welinder  <terra@gnome.org>
103         * src/format.c (append_hour_elapsed): Re-fix display of negative
104         values.
106 2003-12-06  Jody Goldberg <jody@gnome.org>
108         http://bugzilla.gnome.org/show_bug.cgi?id=128565
109         * src/sheet-object.c (sheet_object_read_xml) : patch one direction.
110           new can now load old.  We'll need more work to get back to using old
111           name.
112         (sheet_object_class_init) : init new xml_export_name member to NULL.
113         (sheet_object_write_xml) : use it here.
114         * src/sheet-object-cell-comment.c (cell_comment_class_init) : Use it
115           here to keep exporting comments as CellComment rather than the newly
116           renamed class.
118 2003-12-02  Morten Welinder  <terra@gnome.org>
120         * configure.in: Fix checks for fdopen, M_PI, and various other
121         library symbols.  (From bunk@fs.tum.de <Adrian Bunk>)
122         http://bugzilla.gnome.org/show_bug.cgi?id=128136
124 2003-12-01  Andreas J. Guelzow  <aguelzow@taliesin.ca>
126         http://bugzilla.gnome.org/show_bug.cgi?id=128166
127         * src/commands.c (cmd_reorganize_sheets_undo): dirty workbook
128         (cmd_reorganize_sheets_redo): ditto
130 2003-12-01  Andreas J. Guelzow  <aguelzow@taliesin.ca>
132         * src/gnumeric-gconf.c (gnm_conf_init_essential): add
133           prefs.printer_config, since it is needed for first workbook
134         (gnm_conf_init_extras): remove prefs.printer_config
135         * src/print.c (sheet_print): remove some unused variables and code
137 2003-11-26  Jody Goldberg <jody@gnome.org>
139         * configure.in : post release bump
141 2003-11-26  Jody Goldberg <jody@gnome.org>
143         * Release 1.2.2
145 2003-11-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
147         * src/print.c (print_job_info_destroy): plug leak
149 2003-11-24  Jody Goldberg <jody@gnome.org>
151         * src/sheet.c (sheet_colrow_group_ungroup) : when adding a group
152           calculate the global max gutter, not just the max in the changed
153           region.
155 2003-11-23  Jody Goldberg <jody@gnome.org>
157         * src/item-cursor.c (item_cursor_draw) : Use not xor.
159 2003-11-20  Jody Goldberg <jody@gnome.org>
161         * src/colrow.c (colrow_is_empty) : new.
163 2003-11-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>
165         * src/print-info.c (print_info_new): don't read n_copies from
166           gnome_config
167         (print_info_save): don't bother writing n_copies to gnome_config
168         (print_info_set_n_copies): new
169         * src/print-info.h: remove n_copies field from PrintInformation
170         (print_info_set_n_copies): new
172 2003-11-18  Jody Goldberg <jody@gnome.org>
174         http://bugzilla.gnome.org/show_bug.cgi?id=64297
175         * src/item-cursor.c (item_cursor_draw) : invert selection rectangle
176           outlining the content to keep it visible on dark backgrounds.
178 2003-11-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>
180         * src/print-info.c (print_info_new): disable page setup continuity
181           again. The bug seems to be still in libgnomeprint 2.4.x (it is gone
182           from 2.5.x, at least so it seems).
184 2003-11-17  Andreas J. Guelzow  <aguelzow@taliesin.ca>
186         * src/print-info.c (print_info_new): re-enable page setup continuity
188 2003-11-18  Jody Goldberg <jody@gnome.org>
190         http://bugzilla.gnome.org/show_bug.cgi?id=127262
191         * src/item-grid.c (item_grid_draw) : Avoid 16bit overflow when drawing
192           the divider line,  just draw the visible bit.
194 2003-11-17  Jody Goldberg <jody@gnome.org>
196         http://bugzilla.gnome.org/show_bug.cgi?id=127238
197         * src/format-template.c (format_template_transform_edges) : fix.
199         http://bugzilla.gnome.org/show_bug.cgi?id=127211
200         * src/style.c (style_default_halign) : errors appear to have default
201           horizontal alignment of center.  This is ancient code, I wonder why
202           no one ever noticed.
204         http://bugzilla.gnome.org/show_bug.cgi?id=127199
205         * src/gui-file.c (gui_file_read) : do a sheet_update after a
206           successful read.
208 2003-11-16  Jody Goldberg <jody@gnome.org>
210         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : no need to
211           sheet_update on queued movement.
213         * src/sheet-control-gui.c (scg_queue_movement) : call sheet_update as
214           necessary.
215         (cb_scg_queued_movement) : ditto.
217 2003-11-16  Morten Welinder  <terra@gnome.org>
219         * src/mathfunc.c (random_01): Optionally generate pseudo-random
220         (as opposed to random) numbers.
222 2003-11-16  Jody Goldberg <jody@gnome.org>
224         * src/xml-io.c (xml_parse_ctx_new) : set the workbook here.
226 2003-11-15  Jody Goldberg <jody@gnome.org>
228         http://bugzilla.gnome.org/show_bug.cgi?id=116090
229         * src/normal-args.c (gnumeric_arg_parse) : function info dumps do not
230           require libgnomui.
231         * src/main-application.c (main) : only init session when we have a gui.
233         * gnumeric.xsd : Add the Calculation info
235         * src/xml-io.c (xml_workbook_write) : Save manual recalc and iteration
236           preferences.
237         (xml_workbook_read) : And read them.
239         http://bugzilla.gnome.org/show_bug.cgi?id=126907
240         * src/commands.c (cmd_set_text_redo) : even when using manual recalc
241           we should calculate newly entered expression.
243 2003-11-14  Jody Goldberg <jody@gnome.org>
245         http://bugzilla.gnome.org/show_bug.cgi?id=68794
246         * src/selection.c (sv_selection_to_plot) : default to rows
247           when rows == cols
249 2003-11-06  Jody Goldberg <jody@gnome.org>
251         http://bugzilla.gnome.org/show_bug.cgi?id=126389
252         * src/commands.c (cmd_format_redo) : dirty the sheet.
254 2003-11-05  Jody Goldberg <jody@gnome.org>
256         * src/workbook-control-gui.c : ditto.
257         * src/GNOME_Gnumeric.xml : Enable select inputs
259 2003-11-03  Morten Welinder  <terra@gnome.org>
261         * src/print.c (sheet_print): Plug leak.
263         * src/gui-util.c (gnumeric_error_info_dialog_new): Plug leak.
265 2003-11-03  Jody Goldberg <jody@gnome.org>
267         http://bugzilla.gnome.org/show_bug.cgi?id=126056
268         * src/graph.c (cb_assign_val) : failed string conversion is inf,
269           rather than nan.
271 2003-11-03  Jody Goldberg <jody@gnome.org>
273         * gnumeric.mime : add more.
275 2003-11-02  Jody Goldberg <jody@gnome.org>
277         * src/main-application.c (main) : init before calling
278           handle_paint_events.
280         * src/application.c: s/g_assert/g_return_if_fail/
282         * src/ssconvert.c :  Add --list-importers
283         * doc/C/ssconvert.1 : document it.
285 2003-11-02  Andreas J. Guelzow  <aguelzow@taliesin.ca>
287         * src/gnumeric-gconf.c (gnm_conf_init_printer_decoration_font): new
288         (gnm_conf_init_extra): call gnm_conf_init_printer_decoration_font
289           rather than doing the work itself.
290         (gnm_conf_shutdown): new
291         * src/gnumeric-gconf.h: printer_decoration_font replaces
292           printer_decoration_font_*
293         * src/libgnumeric.c (gnm_common_init): gnm_conf_init requires
294           mstyle_init
295         (gnm_shutdown): call gnm_conf_shutdown
296         * src/print.c (print_job_info_get): printer_decoration_font replaces
297           printer_decoration_font_*
299 2003-11-02  J.H.M. Dassen (Ray) <jdassen@debian.org>
301         * src/application.c: Added g_assert()s to ensure app is not NULL prior
302         to being dereferenced, to make crashes like Debian #217368 less
303         spectacular.
305 2003-10-31  Jody Goldberg <jody@gnome.org>
307         * configure.in : disable deprecated is only for development releases.
309 2003-10-29  Andreas J. Guelzow  <aguelzow@taliesin.ca>
311         * src/stf.c (stf_init): csv means "... values"
313 2003-10-29  Jody Goldberg <jody@gnome.org>
315         * gnumeric.desktop.in : Add a new String 'Spreadsheet' to conform to
316           freedesktop standards with a 'GenericName' entry.
318 2003-10-27  Morten Welinder  <terra@gnome.org>
320         * src/gnumeric-gconf.c (gnm_gconf_get_float): Avoid double->float
321         precision loss.  Quiet gcc.
323 2003-10-27  Jody Goldberg <jody@gnome.org>
325         http://bugzilla.gnome.org/show_bug.cgi?id=125577
326         * src/sheet.c (cb_collect_cell) : preserve the recalc state.
328 2003-10-26  Jody Goldberg <jody@gnome.org>
330         * src/xml-io.c (xml_probe) : rework to use sax.
331         (xml_dom_read_warning) : new.
332         (xml_dom_read_error) : new.
333         (xml_init) : setup.
334         (gnumeric_xml_read_workbook) : cheesy mechanism to send errors to the
335           iocontext.
337 2003-10-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
339         * schemas/gnumeric-dialogs.schemas.in: add schemas for header/footer
340           font
341         * src/gnumeric-gconf-priv.h: new keys:
342           PRINTSETUP_GCONF_HF_FONT_NAME, PRINTSETUP_GCONF_HF_FONT_SIZE,
343           PRINTSETUP_GCONF_HF_FONT_BOLD, PRINTSETUP_GCONF_HF_FONT_ITALIC
344         * src/gnumeric-gconf.c (gnm_conf_init_extras): initialize new fields
345         * src/gnumeric-gconf.h: new fields for preference structure
346         * src/print.c (print_job_info_get): use preference info and fallback
347           fonts
349 2003-10-25  Jody Goldberg <jody@gnome.org>
351         http://bugzilla.gnome.org/show_bug.cgi?id=125421
352         * src/sheet-view.c (sv_panes_insdel_colrow) : don't move the top when
353           the insert happens before it
355 2003-10-25  J.H.M. Dassen (Ray) <jdassen@debian.org>
357         * debian/changelog, debian/control, debian/rules: Updated.
359 2003-10-24  Morten Welinder  <terra@gnome.org>
361         * src/regression.c (general_linear_regression): Handle a
362         loss-of-precision case for xdim==2.
364 2003-10-24  Jody Goldberg <jody@gnome.org>
366         http://bugzilla.gnome.org/show_bug.cgi?id=125230
367         * src/format.c (append_hour_elapsed) : Add epsilon _before_ we scale
369 2003-10-24  Jody Goldberg <jody@gnome.org>
371         * src/clipboard.c (clipboard_paste_region) : Fill in increasing order
372           to avoid the dreaded ultra deep stack caused by recalcing starting
373           at the end.  It is a bandaid.  During 1.3 we'll need something more
374           robust.
376 2003-10-23  Jody Goldberg <jody@gnome.org>
378         * src/workbook-control-gui.c : Ensure that all actions with
379           accelerators attempt to finish any edits in progress.
381 2003-10-22  Jody Goldberg <jody@gnome.org>
383         http://bugzilla.gnome.org/show_bug.cgi?id=77303
384         * src/sheet-control-gui.c (scg_cursor_move) : don't scroll the other
385           panes unless we absolutely have to.
387 2003-10-21  Morten Welinder  <terra@gnome.org>
389         * src/format.c (append_hour_elapsed): Get sign right, even when
390         the hour is zero.
392 2003-10-20  Jody Goldberg <jody@gnome.org>
394         http://bugzilla.gnome.org/show_bug.cgi?id=124975
395         * src/commands.c (CmdPasteCut) : handle undo for paste from a deleted
396           external sheet.  Only fixes first order problem.  We'll need a more
397           invasive approach later.
399 2003-10-20  Jody Goldberg <jody@gnome.org>
401         http://bugzilla.gnome.org/show_bug.cgi?id=123325
402         * src/value.c (criteria_test_greater_or_equal) : NULL args are valid.
403         (criteria_test_less_or_equal) : ditto.
404         (criteria_test_greater) : ditto.
405         (criteria_test_less) : ditto.
406         (criteria_test_equal) : ditto.
408 2003-10-16  Jody Goldberg <jody@gnome.org>
410         * src/gnumeric-gconf.c : rework to catch missing schemas and delay non
411           essential loads until later.
413 2003-10-14  Morten Welinder  <terra@gnome.org>
415         * src/stf-parse.c (stf_parse_general): Add maxlines argument.  All
416         callers changed.
418 2003-10-13  Jody Goldberg <jody@gnome.org>
420         * src/number-match.c (format_match_init) : trivial optimization to
421           avoid checking against the same regexp multiple times.
423 2003-10-13  Morten Welinder  <terra@gnome.org>
425         * src/stf-parse.c (stf_parse_fixed_cell, stf_parse_csv_cell,
426         stf_parse_general, stf_parse_lines): Switch to allocating from a
427         GStringChunk.
429 2003-10-12  Jody Goldberg <jody@gnome.org>
431         * configure.in : remove GTK_DISABLE_DEPRECATED for now.  gtk head has
432           changed alot recently and this breaks the build.
434 2003-10-12  Rodrigo Moya <rodrigo@gnome-db.org>
436         * configure.in: bumped requirements for libgda and libgnomedb.
438 2003-10-10  Jody Goldberg <jody@gnome.org>
440         * src/stf.c (stf_write_csv) : new to write csv files without
441           intervention.
442         (stf_init) : Use it.
444 2003-10-09  Jody Goldberg <jody@gnome.org>
446         * src/libgnumeric.c : pull the ancient if BONOBO checks
448         * src/io-context-gtk.c (icg_show_gui) : mark the window as a splash.
450         * schemas/Makefile.am : make friendlier for rpm builders
452 2003-10-08  Jody Goldberg <jody@gnome.org>
454         * configure.in : post release version bump
456 2003-10-08  Jody Goldberg <jody@gnome.org>
458         * Release 1.2.1
460 2003-10-07  Jody Goldberg <jody@gnome.org>
462         * src/graph.c (gnm_go_data_get_dep) : Its ok to have other GOData's.
463         (gnm_go_data_set_sheet) : ditto.
465 2003-10-06  Jody Goldberg <jody@gnome.org>
467         * src/value.c (criteria_test_equal) : privatize
468         (criteria_test_less) : privatize
469         (criteria_test_greater) : privatize
470         (criteria_test_less_or_equal) : privatize
471         (criteria_test_greater_or_equal) : privatize
472         (criteria_test_unequal) : privatize and have it handle empty.
473         (parse_criteria) : avoid replicated code.  Handle the trivial ==number
474           case here too.
475         (parse_criteria_range) : use the new simplified interface.
477 2003-10-05  Jody Goldberg <jody@gnome.org>
479         * src/workbook-control.c (wb_control_parse_and_jump) : skip blanks
481         * src/func.c (function_def_get_arg_type_string) : handle 'B' a scalar
482           that can even be blank.
483         (function_call_with_list) : ditto.
485 2003-10-05  Jody Goldberg <jody@gnome.org>
487         * src/ssconvert.c : if no export file name is specified try to
488           generate one based on the exporter.
490 2003-10-05  Jon K Hellan  <hellan@acm.org>
492         * src/sheet-object-graphic.c (sheet_object_graphic_user_config):
493         gtk_combo_box renamed to gnm_combo_box.
495         * src/workbook-control-gui.c (ur_stack, wbcg_undo_redo_clear,
496         wbcg_undo_redo_truncate, wbcg_undo_redo_pop,
497         wbcg_undo_redo_push, workbook_create_standard_toolbar,
498         workbook_create_standard_toolbar): Ditto.
500         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
501         Ditto.
503 2003-09-29  Morten Welinder  <terra@gnome.org>
505         * src/format.c (render_number): Keep track of number of
506         significant digits so we don't show garbage.
508 2003-09-27  J.H.M. Dassen (Ray) <jdassen@debian.org>
510         * src/ssconvert.c: Handle bad command lines in a sensible manner.
512 2003-09-27  J.H.M. Dassen (Ray) <jdassen@debian.org>
514         * configure.in: Updated ALL_LINGUAS as po/hi.po has been removed.
516 2003-09-25  Jody Goldberg <jody@gnome.org>
518         * src/style.c (gnm_pango_context_get) : simple wrapper to enable
519           windowless operation.
520         (font_init) : move the global_font crap here temporarily to enable
521           windowless operation.
522         (font_shutdown) :  new merged in global_font_shutdown.
524         * src/ssconvert.c : stick this ins CVS as an incentive to someone to
525           polish it up a bit and finish it.
527         * src/sheet.c (sheet_new) : Use the new gnm_pango_context_get.
529         * src/libgnumeric.c (gnm_common_init) : global_gnome_font_init is gone
530         (gnm_shutdown) : ditto global_gnome_font_shutdown.
532         * src/global-gnome-font.c : rip the init and shutdown logic out of here
534         * src/style-color.c (gnumeric_color_init) : allow this to work with no
535           display.
537         * src/command-context-stderr.c (command_context_stderr_new) : change
538           return type to the more useful and popular base class.
540 2003-09-25  Jody Goldberg <jody@gnome.org>
542         http://bugzilla.gnome.org/show_bug.cgi?id=123226
543         * gnumeric.spec.in : patch the bugs mentioned and some general cleanup
545 2003-09-24  Morten Welinder  <terra@gnome.org>
547         * src/number-match.c (compute_value): Reduce the number of
548         localtime calls when matching partial dates.
550 2003-09-23  Jody Goldberg <jody@gnome.org>
552         * src/str.h : Start of the big renaming s/String/GnmString/
554 2003-09-23  Jody Goldberg <jody@gnome.org>
556         * src/xml-io.c (xml_probe) : revert need to change libgsf api.  That
557           was a bug in libxml-2.6.0-beta2
558         * configure.in :  ditto
559         * gnumeric.spec.in : ditto
560         * README : ditto
562 2003-09-22  Jody Goldberg <jody@gnome.org>
564         From John Gill :
565         * src/sheet-filter.c (sheet_filter_guess_region) : Some heuristics to
566           guess the region to autofilter when only 1 cell or row is selected.
567         * src/workbook-control-gui.c (cb_auto_filter) : Use it.
569 2003-09-22  Jody Goldberg <jody@gnome.org>
571         * src/workbook-control-gui.c (cb_graph_dim_editor_update) : ignore if
572           dataset has already been deleted.
573         (cb_dim_editor_weakref_notify) : new.
574         (graph_dim_editor_free) : new.
575         (wbcg_data_allocator_editor) : add a weakref to handle situation where
576           the dataset is deleted before the widget.
578 2003-09-22  Jody Goldberg <jody@gnome.org>
580         * configure.in :  require libgsf 1.9.0 because it works around changes
581           in libxml2 semantics for 2.6.0 that break our sax based importers.
583         * src/style.c (style_font_new_simple) : cache the font height too.
585         * src/sheet.c (cb_max_cell_height) : be smarter.  There is no need to
586           render a cell whose value does not wrap.
588 2003-09-22  Morten Welinder  <terra@gnome.org>
590         * src/format.c (format_boolean): Use function.
591         (format_value_gstring): Use format_boolean.
593         * src/number-match.c (format_match_simple): Ditto.
594         * src/value-sheet.c (value_dump): Ditto.
595         * src/value.c (value_get_as_gstring): Ditto.
597 2003-09-22  Jody Goldberg <jody@gnome.org>
599         * src/stf.c (csv_tsv_probe) : probe only by name.  Always accepting
600           content turned this into a catch all importer.
602         * src/plugin-service.c (gnm_plugin_file_opener_can_probe) : new.
603         (gnm_plugin_file_opener_class_init) : hook it up.
605         * src/file.c (gnm_file_opener_can_probe_real) : new.
606         (gnm_file_opener_class_init) : link it up.
607         (gnm_file_opener_can_probe) : call it here.
609         * src/workbook-view.c (wb_view_new_from_input) : be more explicit
610           about when not to probe for content.  The underlying code is in
611           desperate need of cleanup.
613 2003-09-21  Jody Goldberg <jody@gnome.org>
615         * src/stf.c (stf_text_to_columns) : relax requirements, blanks and
616           hidden are ok.  It might be nice to skip hidden, or filter blanks
617           but we have no capabilities to paste into 'non-hidden' region.  So
618           it makes sense to ignore hidden for consistency.
619         (cb_get_content) : accept blanks.
621 2003-09-18  Jody Goldberg <jody@gnome.org>
623         * src/gui-util.c (cb_free_keyed_dialog_context) : remove the
624           unnecessary precondition.  If we're being called during wbcg::finalize
625           then the data is already gone.
627 2003-09-16  Jody Goldberg <jody@gnome.org>
629         * src/expr.c (do_expr_as_string) : fill in ParsePos::sheet too so that
630           names get properly qualified.
632 2003-09-15  Jody Goldberg <jody@gnome.org>
634         * src/graph.c (gnm_go_data_vector_load_len) : don't get confused by
635           references to empty sheets.
636         (gnm_go_data_vector_load_values) : set flags and min/max even for
637           empty vectors.
639 2003-09-15  Jon K Hellan  <hellan@acm.org>
641         * configure.in: Require libgsf-gnome-1 >= 1.8.2. No big deal, we
642         were already requiring libgsf-1 >= 1.8.2 elsewhere.
643         Remove big bad "unstable branch" warning.
645 2003-09-15  Jody Goldberg <jody@gnome.org>
647         * configure.in : bump the gsf-gnome req to 1.8.2 also.
649 2003-09-15  Jody Goldberg <jody@gnome.org>
651         * configure.in : post release version bump
653 2003-09-15  Jody Goldberg <jody@gnome.org>
655         * Release 1.2.0
657 2003-09-15  Jody Goldberg <jody@gnome.org>
659         * configure.in : Call it 1.2.0
661         * src/style.c (gnm_font_find_closest_from_weight_slant) : put in some
662           fallbacks.
664         * schemas/gnumeric-general.schemas.in : return to using 'Sans' rather
665           than 'Sans Regular'. The later does not make gnome-print any happier
666           and it is not listed in the default fontconfig list.
668         * src/graph.c (cb_assign_val) : Only clip empty cells, not invalid
669           cells.  We might be interested in the strings even if they're not
670           useful as numbers.  This can happen when using a vector of strings
671           as the X axis in a scatter plot.
673 2003-09-14  Andreas J. Guelzow  <aguelzow@taliesin.ca>
675         * src/gui-file.c (make_format_chooser): expect to receive the
676           correct list of formats.
677         (gui_file_save_as): filter out FILE_SAVE_RANGE savers
679 2003-09-14  Andreas J. Guelzow  <aguelzow@taliesin.ca>
681         * src/style.c: fix format warnings
682         (gnm_font_find_closest_from_weight_slant): new
683         * src/style.h (gnm_font_find_closest_from_weight_slant): new
685 2003-09-13  Andreas J. Guelzow  <aguelzow@taliesin.ca>
687         * src/print-info.c (render_path): &[PATH] should not include
688           basename
690 2003-09-13  Andreas J. Guelzow  <aguelzow@taliesin.ca>
692         * src/print-info.h: remove unused enumeration items
693         * src/print-info.c (render_tab): simplify default name
694         (render_file): show basename only and provide default
695         (render_path): new
696         (render_opcode): remove unused code, don't strip and
697           forget subformatting, don't use g_ascii_strcasecmp on
698           tranlated text.
700 2003-09-13  Jody Goldberg <jody@gnome.org>
702         * src/graph.c (gnm_go_data_vector_load_values) : typo broke horizontal
703           data.
705         * src/workbook-control-gui.c (cb_graph_dim_entry_unmap) : only fire if
706           the widget is sensitive.  We have data displayed that the user
707           did not enter.
709 2003-09-13  Jon K Hellan  <hellan@acm.org>
711         * src/workbook-control-gui.c (cb_graph_dim_entry_unmap): New name
712         for cb_graph_dim_entry_destroy. We now connect it to the "unmap"
713         signal.
714         (wbcg_data_allocator_editor): Connect cb_graph_dim_entry_unmap to
715         the "unmap" signal.
717 2003-09-13  Jody Goldberg <jody@gnome.org>
719         * gnumeric.spec.in:
720         * README :
721         * configure.in : require gsf 1.8.2 to ensure that libole2 based
722           gnumeric-1.0.x can read our xls files.
724 2003-09-12  Jon K Hellan  <hellan@acm.org>
726         * src/workbook-control-gui.c (cb_graph_dim_editor_destroy): New
727         callback invoked when expr entry is destroyed.
728         (wbcg_data_allocator_editor): Use it.
730 2003-09-12  Andreas J. Guelzow  <aguelzow@taliesin.ca>
732         * src/print.c (print_range_down_then_right) equalize the scaling parameters
733         (print_range_right_then_down): ditto
735 2003-09-12  Jody Goldberg <jody@gnome.org>
737         * gnumeric.spec.in : install the plugin schema too.
739 2003-09-12  Andreas J. Guelzow  <aguelzow@taliesin.ca>
741         * src/print.c (compute_scale_fit_to): adjust for the case that some
742           columns may not fit on a page.
744 2003-09-12  Jody Goldberg <jody@gnome.org>
746         * src/style.c (font_init) : be more verbose when we can't find fonts.
748 2003-09-12  Andreas J. Guelzow  <aguelzow@taliesin.ca>
750         * src/print.c (compute_scale_fit_to): only use real range
752 2003-09-11  Jody Goldberg <jody@gnome.org>
754         * src/workbook-view.c (wb_view_sendto) : the gnm-sendto dir is what
755           we're creating, do not assume it exists.
757 2003-09-11  Andreas J. Guelzow  <aguelzow@taliesin.ca>
759         * src/print.c (compute_group): don't scale already scaled values
761 2003-09-11  Jody Goldberg <jody@gnome.org>
763         * src/sheet-object-cell-comment.c (cell_comment_finalize) : only
764           attempt to clear the state if we are connected to some views.
766 2003-09-10  J.H.M. Dassen (Ray) <jdassen@debian.org>
768         * README: Updated Debian package names.
770 2003-09-10  Christian Neumair  <chris@gnome-de.org>
772         * src/sheet-object-graphic.c (sheet_object_graphic_user_config): Add
773           ATK relation information.
774         (sheet_object_filled_user_config): ditto.
776 2003-09-10  Jody Goldberg <jody@gnome.org>
778         * src/gui-util.c (gnm_setup_label_atk) : weaken requirement to
779           GtkWidget from GtkLabel for Manny.
781 2003-09-10  Jody Goldberg <jody@gnome.org>
783         * configure.in : bump to 1.1.91 just in case
785 2003-09-10  Jody Goldberg <jody@gnome.org>
787         * Release 1.1.90
789 2003-09-09  Jody Goldberg <jody@gnome.org>
791         http://bugzilla.gnome.org/show_bug.cgi?id=121873
792         * src/format.c (style_format_number) : g_string_append (str, str->str)
793           is a bad idea.
794         (style_format_delocalize) : handle "" cleanly.
795         * src/formats.c (cell_format_classify) : ditto.
797 2003-09-08  Jody Goldberg <jody@gnome.org>
799         * src/sheet-object-graph.c (cb_save_as) : Use gsf more extensively.
800           Use the new SVG renderer.
802 2003-09-07  Jody Goldberg <jody@gnome.org>
804         * configure.in : Bump version reqs to at least gnome-2.0 to make
805           things nice and clear.
807 2003-09-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
809         * src/sort.c (sort_permute): move comments
811 2003-09-06  Jody Goldberg <jody@gnome.org>
813         * src/dependent.c (dependent_clear_dynamic_deps) : Just remove the
814           DynamicDep record from the hash that will free it as necessary.
815         (dynamic_dep_free) : free the containing DynDep too, not just content.
816         (invalidate_refs) : Ignore dynamic deps, we could not delete them with
817           things disconnected.
818         (cb_find_dynamic_deps) : new.
819         (dep_hash_destroy) : split out to cleanly handle dynamic deps
820         (do_deps_destroy) : Collect dyn deps before invalidating, then queue
821           any of them that are external for recalc.
823 2003-09-06  Jon K Hellan  <hellan@acm.org>
825         * src/sheet-object-graph.c (sheet_object_graph_populate_menu):
826         Push "Save as image" down to 2nd place.
828 2003-09-03  Jody Goldberg <jody@gnome.org>
830         * src/format.c (format_value_gstring) : be more expansive about
831           exactly what constitutes 'General'
833         * src/graph.c (gnm_go_data_vector_load_values) : handle empty sheets.
835         * src/ranges.c (range_normalize) : minor optimization
837 2003-09-03  Morten Welinder  <terra@gnome.org>
839         * src/stf.c (stf_open_and_read): Fix zero-size check.
841         * src/number-match.c (compute_value): Handle negative hh:mm.
843 2003-09-02  Jody Goldberg <jody@gnome.org>
845         * src/func.c (function_call_with_list) : always pass something to
846           optional args with supplied values, even if the supplied value is
847           empty.
849 2003-09-01  Jody Goldberg <jody@gnome.org>
851         * src/workbook-control-gui.c (cb_graph_dim_editor_update) : If the
852           parse fails, popup an error for vectors, and fall back to a string
853           for scalars.
855 2003-09-01  Metin Amiroff  <metin@karegen.com>
857         configure.in: Added "az" in ALL_LINGUAS.
859 2003-08-30  Jon K Hellan  <hellan@acm.org>
861         * src/sheet-object-graph.c (cb_save_as): New. Save graph as image.
862         (sheet_object_graph_populate_menu): New. Add 'Save as image' menu
863         item.
864         (sheet_object_graph_class_init): Use
865         sheet_object_graph_populate_menu.
867 2003-08-27  Andreas J. Guelzow  <aguelzow@taliesin.ca>
869         * src/gui-util.c (gnm_pixbuf_intelligent_scale): use height and
870           width arguments
871         * src/gui-util.h (gnm_pixbuf_intelligent_scale): ditto
872         * src/workbook-control-gui.c: add #include
874 2003-08-27  Jody Goldberg <jody@gnome.org>
876         * src/sheet-control-gui.c (scg_mode_edit) : reset the menu/toolbar.
877         (scg_mode_edit_object) : ditto.
878         (scg_mode_create_object) : ditto.
880         * src/workbook-control-gui.c (wbcg_sheet_to_page_index) : handle
881           invocation before there is a notebook.
882         (wbcg_menu_state_update) : enable and disable clipboard operations
883           depending on object editing state.
884         (cb_edit_cut) : remove asymetry of deleting during the cut command.
885         (workbook_create_standard_toolbar) : store the clipboard toolbar
886           widgets for the non-bonobo case.
887         (workbook_control_gui_init) : store the clipboard menu items for the
888           non-bonobo case.
890         * src/dependent.c (dependent_link) : keep a tail pointer and append
891           new dependents to the list.  This is a slightly better fit to the
892           common idiom of starting at the top and working down, and papers
893           over the most common case of ultra deep recursion blowing the stack.
894           We'll need to solve this more rigorously during 1.3.
895         (dependent_unlink) : ditto.
896         (gnm_dep_container_new) : ditto.
898 2003-08-27  Andreas J. Guelzow  <aguelzow@taliesin.ca>
900         * src/gui-util.c (gnm_pixbuf_intelligent_scale): new
901         * src/gui-util.h (gnm_pixbuf_intelligent_scale): new
903 2003-08-26  Jody Goldberg <jody@gnome.org>
905         * configure.in : remove duplicate call to AM_PROG_LIBTOOL
907         * src/expr.c (cellrange_relocate) : don't confuse Sheet:NULL as a 3d
908           reference.
910 2003-08-25  Jody Goldberg <jody@gnome.org>
912         * schemas/gnumeric-general.schemas.in : Use 'Sans Regular' as the
913           default font, just Sans confuses gnome-print
915 2003-08-26  Andreas J. Guelzow  <aguelzow@taliesin.ca>
917         * src/gui-util.c (gnumeric_dialog_image_file_selection): deleted
918         (selchanged_foreach) : deleted
919         (cb_file_open_selchanged) : deleted
920         * src/gui-util.h (gnumeric_dialog_image_file_selection): deleted
921         * src/workbook-control-gui.c (cb_insert_image):  use
922           preview_file_selection_new and not
923           gnumeric_dialog_image_file_selection
925 2003-08-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
927         * src/gui-util.c (gnumeric_dialog_file_selection):
928           watch for NULL wbcg
930 2003-08-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
932         * src/gui-util.c (selchanged_foreach): new
933         (cb_file_open_selchanged): new
934         (gnumeric_dialog_image_file_selection): new
935         * src/gui-util.h (gnumeric_dialog_image_file_selection): new
936         * src/workbook-control-gui.c (cb_insert_image): use
937           gnumeric_dialog_image_file_selection
939 2003-08-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
941         * src/GNOME_Gnumeric.xml: enable DataImportText
942         * src/gui-file.c (gui_file_open): add format argument
943         (file_opener_find_by_id): new
944         * src/gui-file.h (gui_file_open): add format argument
945         * src/workbook-control-gui.c: enable DataImportText
946         (cb_file_open): add argument to gui_file_open
947         (cb_data_import_text): enable and implement
949 2003-08-24  Andreas J. Guelzow  <aguelzow@taliesin.ca>
951         http://bugzilla.gnome.org/show_bug.cgi?id=120562
952         * src/style.h (DEFAULT_FONT): change to "Sans Regular"
954 2003-08-24  Andreas J. Guelzow  <aguelzow@taliesin.ca>
956         * src/sheet-object-graph.c (cmd_so_graph_config): use
957           sheet_object_graph_user_config_t
958         (sheet_object_graph_user_config_free_data): new
959         (sheet_object_graph_user_config): use gclosure
960         (sheet_object_graph_guru): ditto
961         * src/sheet-object-graph.h (sheet_object_graph_guru): use gclosure
962         * src/workbook-control-gui.c (cb_launch_chart_guru): use gclosure
964 2003-08-24  Jody Goldberg <jody@gnome.org>
966         http://bugzilla.gnome.org/show_bug.cgi?id=120541
967         * src/sheet.c (sheet_delete_cols) : we were only flagging the residual
968           that moved as having changed, not the source.
969         (sheet_delete_rows) : ditto.
971 2003-08-24  Jody Goldberg <jody@gnome.org>
973         * src/commands.c (cmd_so_graph_config_redo) : no need to diddle with
974           references.  set_gog adds and unrefs as necessary internally.
975         (cmd_so_graph_config_undo) : all we need to do is watch our
976           references.
978         * src/sheet-object-graph.c (sheet_object_graph_set_gog) : beef this up
979           a bit to handle connecting and disconnecting the data.  Remove the
980           'attach_signals' flag.  That exposes more implementation than I'm
981           comfortable with.
982         (sog_datas_set_sheet) : new.  Split out of new.  Split out of.
983         (sheet_object_graph_set_sheet) : here.
984         (sheet_object_graph_remove_from_sheet) : and here.
986 2003-08-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
988         * src/commands.c (cmd_so_graph_config_redo): use
989           sheet_object_graph_set_gog
990         (cmd_so_graph_config_undo): ditto
991         (cmd_so_graph_config): initialize me->first_time
992         * src/sheet-object-graph.h (sheet_object_graph_reassign_gog):
993           export sheet_object_graph_set_gog instead
994         (sheet_object_graph_reassign_gog): delete
995         (sheet_object_graph_set_gog): allow this function to be called
996           even with a second (or later) graph.
998 2003-08-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1000         * src/commands.c
1001         (cmd_reorganize_sheets_delete_get_this_sheet_info): do not
1002           exclude graphs
1004 2003-08-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1006         * src/commands.c (cmd_so_graph_config*): new
1007         * src/commands.h (cmd_so_graph_config): new
1008         * src/sheet-object-graph.c (sheet_object_graph_reassign_gog): new
1009         (cb_update_graph): use cmd_so_graph_config
1010         (sheet_object_graph_user_config): store wbcg on sheetobject
1011         * src/sheet-object-graph.h (sheet_object_graph_reassign_gog): new
1013 2003-08-23  Jody Goldberg <jody@gnome.org>
1015         * src/formats.c : Use english form of plural, not polish for Zlotys
1017         * src/workbook-control-gui.c (cb_edit_cut) : if we're goign to delete
1018           an object don't cut the selection too.
1020 2003-08-22  Jody Goldberg <jody@gnome.org>
1022         * src/graph.c (gnm_go_data_get_dep) : new.
1023           Use it to clear up all sorts of related concepts.
1024         (gnm_go_data_dup) : new.
1026 2003-08-22  Morten Welinder  <terra@gnome.org>
1028         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet): Support
1029         End+Home.
1031 2003-08-21  Jody Goldberg <jody@gnome.org>
1033         http://bugzilla.gnome.org/show_bug.cgi?id=120436
1034         * schemas/Makefile.am : simplfy.
1035         * gnumeric.spec.in : the other half of the schema installation
1036           delete bogus gal req
1038 2003-08-21  Jody Goldberg <jody@gnome.org>
1040         * configure.in : post release bump to 1.1.90 in prep for beta status
1041           next week.
1043 2003-08-21  Jody Goldberg <jody@gnome.org>
1045         * Release 1.1.20
1047 2003-08-21  Jody Goldberg <jody@gnome.org>
1049         * src/main-component.c (main) : bind the encoding to utf8 here.
1050         * src/main-application.c (main) : and here.
1051         * src/libgnumeric.c (init_init) : rather than here, which is too
1052           early.  It can't be done until after popt does its stuff.
1054         * src/sheet-object.c (sheet_object_clone) : set_sheet adds a
1055           reference, we don't need to keep the original.
1057 2003-08-19  Jody Goldberg <jody@gnome.org>
1059         * src/workbook-edit.c (wbcg_edit_attach_guru_main) : clear END-mode
1060         (wbcg_edit_detach_guru) : ditto.
1062         From John Gill :
1063         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : Enable support
1064           for END-mode keystrokes.  The transition keys do something a bit
1065           funky though, disabled by default.
1066         * src/workbook-control-gui.c (wbcg_toggle_end_mode) : new.
1067         (wbcg_set_end_mode) : new.  To handle display of 'END-mode' keys.
1069 2003-08-19  Jody Goldberg <jody@gnome.org>
1071         * src/value.c : Add #UNKNOWN! to avoid problems.
1073         * src/expr.c (bin_cmp) : split out of.
1074         (gnm_expr_eval) : here, in preparation for support implicit iteration
1075           for operators.
1077         * schemas/gnumeric-general.schemas.in : disable transition keys by
1078           default because they make the ctrl-arrow movement odd.
1080         * src/sheet-object-graph.c (sheet_object_graph_read_xml) : be more
1081           lenient about invalid xml.
1082         * src/sheet-object.c (sheet_object_read_xml) : produce better
1083           warnings for unknown objects, and recognize that a GnmGraph is a
1084           graph even though we don't call it that anymore.
1086 2003-08-20  Morten Welinder  <terra@gnome.org>
1088         * src/dependent.c (dependent_add_dynamic_dep): Identify
1089         single-cell dependencies and record them as such.  (Fixes
1090         performance problem 120290.)
1092 2003-08-18  Morten Welinder  <terra@gnome.org>
1094         * src/main-application.c (main): s/printf/g_print/, see 120124.
1096 2003-08-17  Jody Goldberg <jody@gnome.org>
1098         * src/selection.c (characterize_vec) : handle empty cells at the end
1099           when characterizing.
1101 2003-08-16  Jody Goldberg <jody@gnome.org>
1103         http://bugzilla.gnome.org/show_bug.cgi?id=117711
1104         * src/sheet-view.c (sv_panes_insdel_colrow) : be smarter during
1105           deletetion.
1106         * src/sheet-control-gui.c (scg_resize) : stave off some warnings while
1107           unfreezing by not resizing the panes that we're about to delete.
1109 2003-08-16  Jody Goldberg <jody@gnome.org>
1111         A bit of tidying to make 70184 simpler
1112         * src/cell.c (cell_is_empty) : renamed from cell_is_blank.  All
1113           callers changed.
1114         (cell_is_blank) : new function that handles "" too.
1116         * src/sheet-filter.c (cb_collect_unique) : Use it here.
1117         (cb_filter_non_blanks) : here.
1118         (cb_filter_blanks) : and here.
1120 2003-08-15  Danilo Å egan  <dsegan@gmx.net>
1122         * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
1124 2003-08-15  Morten Welinder  <terra@gnome.org>
1126         * src/workbook-view.c (wbv_save_to_file): Handle output errors
1127         that happen after the initial open.
1129 2003-08-14  Carlos Perelló Marín <carlos@gnome.org>
1131         * configure.in: We need intltool 0.27.2 to be able to work with UTF-8
1132         strings inside source code.
1134 2003-08-12  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1136         * src/workbook-control.c (wb_control_parse_and_jump): make the range
1137           also visible
1139 2003-08-12  Morten Welinder  <terra@gnome.org>
1141         * src/sheet-filter.c (filter_expr_init): Set ->date_conv before we
1142         use it.
1144 2003-08-11  Jody Goldberg <jody@gnome.org>
1146         * src/sheet-private.h : Add filters_changed flag.
1148         * src/sheet-filter.c (gnm_filter_new) : set it here.
1149         (gnm_filter_remove) : here.
1150         (sheet_filter_insdel_colrow) : and here.  Only add a new field if a
1151           col is inserted in the midst of a filter range.  Inserting before or
1152           after just ignores moves them.
1154         (gnm_filter_add_field) : fix inserting fields in the middle.
1156         * src/sheet.c (sheet_update_only_grid) : regenerate the menu here if
1157           it's set.
1159         * src/workbook-control-gui.c (cb_auto_filter) : sheet_update handles
1160           it now.
1162 2003-08-11  Carlos Perelló Marín <carlos@gnome.org>
1164         * configure.in: Added a dependency with intltool 0.27 because
1165         this project needs UTF-8 strings inside source code. (#85718)
1167 2003-08-10  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1169         * src/session.c (set_clone_restart): new
1170         (interaction_function): call set_clone_restart
1171         (client_save_yourself_cb): call set_clone_restart
1173 2003-08-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1175         * src/sheet-object-graphic.c: replace helpfile address
1176           with #define from help.h
1177         * src/sheet-object-widget.c: ditto
1179 2003-08-08  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1181         * src/sheet-filter.c (cb_filter_blanks): hide non-blanks
1182         (cb_filter_non_blanks): hide blanks
1184 2003-08-08  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1186         * src/session.c: new
1187         * src/session.h: new
1188         * src/Makefile.am: add src/session.[ch]
1189         * src/main-application.c (main): call gnm_session_init
1191 2003-08-04  Jody Goldberg <jody@gnome.org>
1193         * src/xml-io.c (xml_read_solver) : beef up error checking.
1195 2003-08-07  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1197         * src/commands.c
1198         (cmd_reorganize_sheets_delete_get_this_sheet_info):
1199           save sheet object and colrow info
1200         (cmd_reorganize_sheets_delete_recreate_sheet): also
1201           recreate sheet objects and set colrow info
1202         (cmd_reorganize_sheets_delete_free): free sheet object
1203           and colrow info
1204         (cmd_reorganize_sheets): increade command size if sheets
1205           are being deleted.
1207 2003-08-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1209         * src/commands.c (cmd_reorganize_sheets): add
1210           argument to call of workbook_sheet_rename_check
1211         * src/workbook.c (workbook_sheet_rename_check):
1212           ignore sheets to be deleted
1213         * src/workbook.c (workbook_sheet_rename_check):
1214           add argument
1216 2003-08-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1218         * src/commands.c: revert all the sheet pointer/index
1219           changes thoughout
1221 2003-08-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1223         * src/commands.c (cmd_search_replace_undo): update
1224           sheet pointer in cells
1225         (cmd_search_replace_redo): ditto
1226         (cmd_search_replace): initialize sri->sheet_idx
1227         (cmd_search_replace_update_sheet_pointer): new
1228         (cmd_define_name_undo): update sheet pointer in ParsePos
1229         (cmd_define_name_redo): ditto
1230         (cmd_define_name): use an appropriate cmd.sheet
1232 2003-08-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1234         * src/commands.c (cmd_sort_redo): adjust sheet pointer
1235         (cmd_sort_undo): ditto
1237 2003-08-05  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1239         * src/commands.c (cmd_analysis_tool_undo): add argument
1240           to dao_update_sheet_pointer
1241         (cmd_analysis_tool_redo): ditto
1243 2003-08-05  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1245         * src/commands.c (cmd_merge_data_destroy_rrlist): new
1246         (cmd_merge_data_delete_sheets): delete
1247         (cmd_merge_data_vallist_to_rrlist): new
1248         (cmd_merge_data_update_rrlist): new
1249         (cmd_merge_data_undo): use sheet indices
1250         (cmd_merge_data_redo): ditto
1251         (cmd_merge_data): store sheet indices
1253 2003-08-05  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1255         * src/commands.c (cmd_text_to_columns_impl): save sheet
1256           index and update sheet pointer
1258 2003-08-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1260         * src/commands.c (cmd_set_text_redo): use cmd->sheet rather than
1261           pos.sheet
1263 2003-08-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1265         * src/commands.c (cmd_analysis_tool_undo): call
1266           dao_update_sheet_pointer before causing the sheet pointer to
1267           be used
1268         (cmd_analysis_tool_redo): ditto
1270 2003-08-04  Jon K Hellan  <hellan@acm.org>
1272         * configure.in: Make Python plugin depend on python >= 2.0 and
1273         pygtk-2.0. Remove WITH_PYGTK and BROKEN_PY_INITIALIZE
1274         conditionals.
1276 2003-08-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1278         * src/commands.c (cmd_ins_del_colrow*): use sheet info in
1279           me->cmd,sheet
1280         (cmd_resize_colrow): ditto
1281         (cmd_colrow_std_size): ditto
1283 2003-08-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1285         * src/workbook-view.c (wb_view_selection_desc): don't include
1286           the number of rows (or columns) for full columns (or rows)
1288 2003-08-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1290         * src/commands.h (cmd_tabulate): new
1291         * src/commands.c (cmd_tabulate*): new
1293 2003-08-03  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1295         * src/consolidate.c (consolidate_check_destination):
1296           implement
1298 2003-08-03  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1300         * src/commands.c (cmd_consolidate*): delete
1301         * src/commands.h (cmd_consolidate): delete
1302         * src/consolidate.c (consolidate_free): add argument
1303         (consolidate_set_destination): delete
1304         (consolidate_get_dest_bounding_box): delete
1305         (consolidate_apply): make static
1306         (tool_consolidate_engine): new
1307         (set_cell_expr): delete
1308         (set_cell_value): delete
1309         (redraw_respan_and_select): delete
1310         (simple_consolidate): use dao
1311         (cb_row_tree): ditto
1312         (row_consolidate): ditto
1313         (cb_col_tree): ditto
1314         (col_consolidate): ditto
1315         (colrow_consolidate): use dao and write values only once
1316         * src/consolidate.h (consolidate_free): add argument
1317         (consolidate_set_destination): delete
1318         (consolidate_get_dest_bounding_box): delete
1319         (consolidate_apply): delete
1320         (tool_consolidate_engine): new
1321         (consolidate_check_destination): new
1323 2003-08-03  Jon K Hellan  <hellan@acm.org>
1325         * src/sheet-object-graphic.c (sheet_object_graphic_user_config):
1326         Remove preview from tab sequence, yielding sane tabbing behaviour.
1328 2003-08-01  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1330         * src/commands.c (cmd_set_comment_redo): don't keep a sheet
1331           pointer across undo/redo.
1332         (cmd_set_comment): ditto
1334 2003-08-01  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1336         * src/commands.c (cmd_reorganize_sheets_delete_recreate_sheet):
1337           paste content back
1338         (cmd_reorganize_sheets_delete_get_this_sheet_info): get content
1339         (cmd_reorganize_sheets_delete_free): free content
1340         * src/workbook-control-gui.c (delete_sheet_if_possible):
1341           Do not ask for confirmation.
1343 2003-08-01  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1345         http://bugzilla.gnome.org/show_bug.cgi?id=118830
1346         * src/sheet.c (sheet_dup): convert to zoom factor 1 before
1347           duplicating
1349 2003-08-01  Morten Welinder  <terra@gnome.org>
1351         * src/workbook-control-gui.c (wbcg_data_allocator_editor): Plug
1352         leak.
1354 2003-07-31  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1356         * src/commands.c (cmd_clone_sheet*): new command
1357         * src/commands.h (cmd_clone_sheet): new
1358         * src/workbook-control-gui.c (sheet_action_clone_sheet):
1359           use cmd_clone_sheet
1360         (cb_edit_duplicate_sheet): use cmd_clone_sheet
1362 2003-07-31  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1364         * src/commands.c: switch from sheet pointer to sheet indices
1365           throughout
1366         (cmd_reorganize_sheets_delete_sheets): deleted
1367         (cmd_reorganize_sheets_delete_get_this_sheet_info): new
1368         (cmd_reorganize_sheets_delete_shift_list): new
1369         (cmd_reorganize_sheets_delete_cmp_f): new
1370         (cmd_reorganize_sheets_delete_get_all_sheets_info): new
1371         (cmd_reorganize_sheets_delete_recreate_sheet): new
1372         (cmd_reorganize_sheets_delete_free): new
1373         (cmd_reorganize_sheets_fix_list): new
1374         (cmd_reorganize_sheets_undo): do most of the work here rather than
1375           in workbook_sheet_reorganize
1376         (cmd_reorganize_sheets_redo): ditto
1377         (cmd_reorganize_sheets): handle deletion
1378         (cmd_reorganize_sheets_finalize): handle deletion
1379         * src/commands.h: change arguments to cmd_reorganize_sheets
1380         * src/workbook-control-gui.c (insert_sheet_at): new
1381         (cb_insert_sheet): use insert_sheet_at
1382         (cb_append_sheet): change call to cmd_reorganize_sheets
1383         (delete_sheet_if_possible): use cmd_reorganize_sheets
1384         (sheet_action_clone_sheet): temporarily append clone sheet (rather
1385           than insert) to protect the undo-chain
1386         (cb_edit_duplicate_sheet): ditto
1387         (cb_sheet_label_drag_data_received): change arguments to
1388           cmd_reorganize_sheets
1389         * src/workbook.c (workbook_sheet_by_index): handle index -1
1390           separately
1391         (workbook_sheet_reorder): drop last argument
1392         (workbook_sheet_reorder_by_idx): new
1393         (workbook_sheet_recolor): new
1394         (workbook_sheet_rename): new
1395         (workbook_sheet_rename_check): new
1396         (workbook_sheet_change_protection): new
1397         (workbook_sheet_reorganize): delete
1398         * src/workbook.h (workbook_sheet_reorder): drop last argument
1399         (workbook_sheet_reorder_by_idx): new
1400         (workbook_sheet_recolor): new
1401         (workbook_sheet_rename): new
1402         (workbook_sheet_rename_check): new
1403         (workbook_sheet_change_protection): new
1404         (workbook_sheet_reorganize): delete
1406 2003-07-31  Jody Goldberg <jody@gnome.org>
1408         * src/xml-io.c (maybe_convert) : seek back to the start if we don't
1409           need to convert things.  Assume we were already at the start on
1410           arrival.
1411         (maybe_gunzip) : ditto.
1412         * plugins/xml_sax/xml-sax-read.c (maybe_convert) : ditto.
1413         (maybe_gunzip) : ditto.
1415 2003-07-31  Jody Goldberg <jody@gnome.org>
1417         * src/graph.c (gnm_go_data_vector_get_value) : implement.
1418         (gnm_go_data_vector_get_str) : implement and adjust to signature
1419           change.
1421 2003-07-31  Morten Welinder  <terra@gnome.org>
1423         * src/xml-io.c (maybe_gunzip, maybe_convert): New functions.
1424         (xml_probe, gnumeric_xml_read_workbook): Use above to handle 1.0
1425         documents (lacking encoding).
1427 2003-07-30  Jody Goldberg <jody@gnome.org>
1429         http://bugzilla.gnome.org/show_bug.cgi?id=118723
1430         * src/xml-io.c (copy_hash_table_to_ptr_array) : always export cells
1431           with expressions, even if it's value is blank,
1433         * src/sheet-object.c (sheet_object_register) : add sheet-object-image.
1435 2003-07-30  Jody Goldberg <jody@gnome.org>
1437         For : Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
1438         * icons/Makefile.am: add chart_{line,area}*.png icons, and a pile of
1439           svg for the future.
1441 2003-07-30  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1443         * samples/test-math.gnumeric: add apostrophes around PASS and NO.
1445 2003-07-30  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1447         * src/workbook-control-gui.c: Change verb name ToolsScenario to
1448           ToolsScenarioAdd
1450 2003-07-28  Jody Goldberg <jody@gnome.org>
1452         http://bugzilla.gnome.org/show_bug.cgi?id=118261
1453         * src/sheet-object-image.c (sheet_object_image_update_bounds) : fix
1454           when there really is an image.
1456 2003-07-28  Jody Goldberg <jody@gnome.org>
1458         * src/graph.c (gnm_go_data_scalar_eq) : handle the delayed connection
1459           to the sheet where the expression is still NULL because we have not
1460           parsed it yet.
1461         (gnm_go_data_vector_eq) : ditto.
1463         * src/func.c (function_call_with_list) : allow implicit iteration that
1464           does not start at the first argument.
1466 2003-07-27  Jon K Hellan  <hellan@acm.org>
1468         * src/sheet-object-graphic.c (sheet_object_filled_user_config,
1469         sheet_object_graphic_user_config): Make <return> in text entry,
1470         spin button fields activate default.
1472         * src/sheet-object-widget.c (sheet_widget_adjustment_user_config,
1473         sheet_widget_checkbox_user_config): Make <return> in text entry,
1474         expression entry fields activate default.
1476 2003-07-26  Jon K Hellan  <hellan@acm.org>
1478         * src/plugin.c (gnm_plugin_try_unref): New function. Unref plugin
1479         object if it is legal to destroy it.
1480         (plugins_shutdown): Use it. Fixes
1481         http://bugzilla.gnome.org/show_bug.cgi?id=114211.
1483 2003-07-25  Morten Welinder  <terra@gnome.org>
1485         * src/gui-util.c (gnumeric_clist_moveto): Finally delete this.
1487         * src/stf-parse.c (stf_parse_options_fixed_splitpositions_clear):
1488         Add terminator here.
1489         (stf_parse_options_fixed_splitpositions_add): Insert sorted.
1490         (stf_parse_options_fixed_splitpositions_remove,
1491         stf_parse_options_fixed_splitpositions_count,
1492         stf_parse_options_fixed_splitpositions_nth): New functions.
1494 2003-07-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1496         * src/commands.c (cmd_goal_seek*): new
1497         * src/commands.h (cmd_goal_seek): new
1499 2003-07-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1501         * src/commands.c (cmd_solver*): new
1502         * src/commands.h (cmd_solver): new
1504 2003-07-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1506         * src/commands.c (cmd_text_to_columns*): new
1507         * src/commands.h (cmd_text_to_columns): new
1508         * src/gui-clipboard.c
1509         (text_to_cell_region): use stf_dialog_result_attach_formats_to_cr
1510         * src/stf.c (stf_text_to_columns) use stf_parse_region and
1511           stf_dialog_result_attach_formats_to_cr rather than
1512           stf_store_results
1514 2003-07-22  Jody Goldberg <jody@gnome.org>
1516         * src/sheet-object-widget.c (sheet_widget_button_set_label) : remove
1517           debug spew.
1519 2003-07-22  Morten Welinder  <terra@gnome.org>
1521         * src/sheet-object-image.c (sheet_object_image_update_bounds):
1522         Take care of placeholder tiling here.
1524         * src/gui-util.c (gnm_pixbuf_tile): New function.
1526 2003-07-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1528         http://bugzilla.gnome.org/show_bug.cgi?id=117409
1529         * src/stf-parse.c (stf_parse_region): fix one-off error in
1530           number of columns
1532 2003-07-21  Morten Welinder  <terra@gnome.org>
1534         * src/sheet-object-image.c (soi_get_pixbuf): Stop making silly
1535         files.  Show a "?" image instead of files we do not understand.
1537 2003-07-18  Jody Goldberg <jody@gnome.org>
1539         * src/sheet-object-widget.c (sheet_widget_slider_create_widget) : Mark
1540           the object as being in the process of an update when a new widget is
1541           created.  Otherwise the assignment of the new adjustment will look
1542           like an update and dirt the workbook.
1543         (sheet_widget_spinbutton_create_widget) : ditto.
1544         (sheet_widget_scrollbar_create_widget) : ditto.
1546 2003-07-18  Jody Goldberg <jody@gnome.org>
1548         For Joseph Pingenot <trelane@digitasaru.net>
1549         * src/sheet-object-widget.c : Add Spinner and Slider.
1551 2003-07-18  Jody Goldberg <jody@gnome.org>
1553         * src/mstyle.c (mstyle_hash_internal) : renamed from mstyle_hash,
1554           internalized and generalized.
1555         (mstyle_hash_XL) : new.
1556         (mstyle_hash) : new.
1558 2003-07-17  Jody Goldberg <jody@gnome.org>
1560         * src/workbook-control-gui.c (wbcg_sheet_add) : no need to set the
1561           zoom again  sheet_control_gui_new already did.
1563         * src/sheet-control-gui.c (scg_finalize) : remove the comment window
1564           if it is displayed.
1566 2003-07-17  Morten Welinder  <terra@gnome.org>
1568         * src/io-context-gtk.c (icg_user_is_impatient): Improve
1569         large-latency case.
1571         * src/io-context.c (io_progress_update): Make sure we update at
1572         the end, so the display doesn't stop at, say, 95%.
1573         (value_io_progress_update): Ditto.
1574         (count_io_progress_update): Ditto.
1576         * src/number-match.c (format_create_regexp): Approach working
1577         state for fractions.
1578         (compute_value): Handle fractions.
1580         * src/workbook-control-gui.c (cb_sheet_label_drag_begin): Get
1581         marker from application.
1583         * src/application.c (gnumeric_application_setup_pixbufs): Add
1584         sheet_move_marker.
1586         * src/item-bar.c (item_bar_calc_size): Calculate the width based
1587         on SHEET_MAX_ROWS.  (This makes it slightly narrower than it used to,
1588         probably a good thing.)
1590 2003-07-16  Jody Goldberg <jody@gnome.org>
1592         * src/workbook-control-gui.c : include gog-data-set.h
1594         * src/stf.c (csv_tsv_probe) : probe content must be true or we won't
1595           accept the match.
1597         * src/sheet-view.c (sv_init_sc) : set the zoom early to avoid problems
1598           when attaching an existing control to a new sheet.
1600 2003-07-16  Morten Welinder  <terra@gnome.org>
1602         * src/io-context-gtk.c (icg_show_gui): Load splash from
1603         application.  (So it can be displayed fast.)
1605         * src/application.c (gnumeric_application_setup_pixbufs): Add line
1606         and background patterns.  Ditto for splash and borders.
1608         * src/format.c (style_format_equal): Just compare pointers.
1610 2003-07-15  Jody Goldberg <jody@gnome.org>
1612         From John Gill :
1613         * schemas/gnumeric-general.schemas.in : Add core/gui/editing/transitionkeys
1614         * src/application.c (application_history_add) : new.
1615         (application_set_transition_keys) : new.
1616         * src/gnumeric-gconf.c (gnm_conf_init) : load the new pref.
1617         (gnm_gconf_set_transition_keys) : new.
1619         * src/item-cursor.c (item_cursor_selection_event) : Improve the
1620           heuristics even further.
1622 2003-07-15  Morten Welinder  <terra@gnome.org>
1624         * src/format.c (style_format_build): New function.
1625         (style_format_number, style_format_account, style_format_science,
1626         style_format_percent, style_format_fraction): Move from format.c
1627         and make static.  Change to returning StyleFormat* instead of
1628         building a string.  All callers changed.
1630         * src/auto-format.c (is_date): Use precomputed family.
1631         * src/sheet-autofill.c (fill_item_new): Ditto.
1633         * src/formats.c (cell_format_classify): Don't use
1634         style_format_is_general since this function must work early.
1636         * src/format.h (struct _StyleFormat): Add family and family_info
1637         members.
1639         * src/format.c (style_format_new_XL): Init family stuff.
1640         (style_format_is_general, style_format_is_text): Make these
1641         macros.
1643 2003-07-15  Morten Welinder  <terra@gnome.org>
1645         * src/format.h: Suck in formats.h and remove that file.  All
1646         includers fixed.
1648         * src/format.c (style_format_str_as_XL): Avoid a gazillion strlen
1649         calls.
1650         (style_format_new_XL): Don't free strings that aren't ours to
1651         free.
1653         * src/commands.c (cmd_selection_clear): Avoid a pointless strlen.
1655         * src/clipboard.c (cellregion_to_string): Avoid a silly copy of
1656         the result (and a few pointless strlens).
1658         * src/formats.c (style_format_number): Avoid making a copy of the
1659         format.
1661         * src/format.c (format_number): Fix sign position for fractions.
1662         Align fractions.
1663         (append_year, append_month, append_day, append_hour,
1664         append_hour_elapsed, append_minute, append_minute_elapsed,
1665         append_second, append_second_elapsed, format_number): Simplify
1666         using g_string_append_printf.
1668 2003-07-14  Morten Welinder  <terra@gnome.org>
1670         * src/auto-format.c (is_date): New function.
1671         (do_af_suggest): Be smarter about date differences.  They're
1672         common and formatting them as dates is irritating.
1674 2003-07-13  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1676         * src/commands.c (cmd_analysis_tool_redo): recalc
1677         (cmd_analysis_tool_undo): ditto
1679 2003-07-10  Jody Goldberg <jody@gnome.org>
1681         * src/func.c (function_dump_defs) : tack on category
1682           and make the generated links for the state dump uppercase to match
1683           the results from yelp.
1685 2003-07-10  Jody Goldberg <jody@gnome.org>
1687         * src/stf.c (csv_tsv_probe) : quicky bogus probe for csv/tsv suffixes.
1688           We really need to merge the plugin service and the Openers for 1.3
1690 2003-07-09  Jody Goldberg <jody@gnome.org>
1692         * configure.in : we're not going to be finished in time.  Make bonobo
1693           the default.
1695 2003-07-11  Morten Welinder  <terra@gnome.org>
1697         * src/formats.c (style_format_fraction): Handle fixed-denominator
1698         fractional formats.
1699         (cell_format_fraction): Add three-digit general and several
1700         fixed-denominator fractional formats.
1701         (currency_date_format_init): Recognize fractional formats with
1702         explicit denominator.
1703         (cell_format_is_fraction): Recognize explicit denominator.
1705         * src/format.c (format_add_decimal, format_remove_decimal): Do
1706         something sensible for fixed-denominator fractional formats.
1708 2003-07-11  Morten Welinder  <terra@gnome.org>
1710         * src/format.c (format_toggle_thousands, format_add_decimal,
1711         format_remove_decimal, reformat_decimals): Return a StyleFormat,
1712         not a [vile XL format] string.  All callers changed.
1714 2003-07-10  Morten Welinder  <terra@gnome.org>
1716         * src/format.c (format_toggle_thousands): New function.
1718         * src/workbook-format-toolbar.c (cb_format_with_thousands): Toggle
1719         thousands separator instead of just applying a random format.
1721         * src/formats.c (style_format_account): Do not discard old part of
1722         result.
1723         (currency_date_format_init): Add optional quotes around currency
1724         symbol.
1726         * src/workbook-view.c (wb_view_format_feedback): Take cell value's
1727         format into account.
1729         * src/format.c (style_format_equal): New function.
1731 2003-07-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1733         * src/stf.c (stf_text_to_columns): do not pass null data to stf_dialog
1735 2003-07-09  Morten Welinder  <terra@gnome.org>
1737         * src/formats.c (currency_date_format_shutdown): Free regexps.
1738         (currency_date_format_init): Build regexp for fractions.
1739         (cell_format_is_fraction): New function.
1740         (cell_format_classify): Recognize fraction with precision.
1742         * src/format.c (format_remove_decimal, format_add_decimal): Handle
1743         fraction formats too.
1745         * src/formats.c (style_format_fraction): New function.
1747 2003-07-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1749         * src/stf.c (stf_text_to_columns): do not post an error on user cancel.
1751 2003-07-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1753         * src/stf.c (stf_read_workbook): do not post a cancelled "error"
1754         * src/workbook-view.c (wb_view_new_from_input): if the workbook
1755           has no sheet but we didn't have an error, the user must have
1756           cancelled
1758 2003-07-08  Jody Goldberg <jody@gnome.org>
1760         * src/application.c (gnumeric_application_setup_icons) : add
1761           spinbutton
1763         * src/pixmaps/Makefile.am : Add spin button and use the icons from
1764           glade for button and radio button.
1766 2003-07-08  Morten Welinder  <terra@gnome.org>
1768         * src/datetime.c (days_between_basis): Handle new basis
1769         BASIS_MSRB_30_360_SYM.
1770         (days_between_BASIS_MSRB_30_360_SYM): New function.
1771         (days_between_BASIS_MSRB_30_360): Handle end-of-February
1772         correctly.
1774 2003-07-07  Morten Welinder  <terra@gnome.org>
1776         * src/datetime.c (yearfrac): Even get February 29 right.
1778         * src/mathfunc.c (lbeta3): Gimme a brown paper bag.  (Thanks to
1779         deaddog for spotting.)
1781         * src/sheet-style.c: Use pool allocation.
1783         * src/value.c (value_equal): Change to eq-style semantics
1784         (matching the hash function).
1786         * src/expr.c (gnm_expr_equal): Use value_equal.
1788         * src/workbook-control-gui.c (workbook_control_gui_init): Fix
1789         numbering after separator.
1790         (workbook_control_gui_init): Remove assignments to members
1791         menu_item_sheets_edit_reorder and menu_item_sheets_format_reorder.
1792         (Wrong, but unused anyway.)
1794         * src/workbook-view.c (wb_view_sendto): Fix encoding confusion.
1795         (wb_view_sendto): Fix uninitialized use of "problem".
1797 2003-07-06  Jody Goldberg <jody@gnome.org>
1799         For John Gill <jng@renre.com>
1800         * src/item-cursor.c (item_cursor_selection_event) : More XLish
1801           heuristics for autofill range selection when double clicking.
1803 2003-07-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1805         * src/stf-parse.c (stf_parse_sheet): no col_import_array means
1806           we want to import all columns
1807         (stf_parse_region): ditto
1808         * src/stf.c (stf_apply_formats): ditto
1810 2003-07-06  Rodrigo Moya <rodrigo@gnome-db.org>
1812         * configure.in:
1813         * plugins/Makefile.am: added gnome-db plugin directory, built only
1814         when Bonobo is compiled in.
1816 2003-07-06  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1818         * src/GNOME_Gnumeric.xml: clean up the sheet insert/append issue
1819         * src/workbook-control-gui.c: ditto
1820         (cb_insert_sheet): insert the sheet after the current sheet
1821           rather than append
1822         (cb_append_sheet): append a new sheet
1823         (sheet_action_add_sheet): use cmd_... via cb_append_sheet rather
1824           than adding without undo
1825         (sheet_action_insert_sheet): new
1827 2003-07-05  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1829         * src/gui-clipboard.c: change dialogresult->formats to
1830           dialogresult->parseoptions->formats thoughout
1831         * src/stf-parse.c (stf_parse_options_new): initialize formats
1832         (stf_parse_options_free (stf_parse_region): rewrite
1833         * src/stf-parse.h: add formats list to parseoptions
1834         * src/stf.c (stf_store_results): split into stf_store_results
1835           and stf_apply_formats
1836         (stf_apply_formats): new
1838 2003-07-05  Morten Welinder  <terra@gnome.org>
1840         * src/position.c (cellref_hash): Use hash space much better.
1842         * src/expr.c (expr_tree_sharer_destroy): Provide a sane hash for
1843         cell refs!
1845 2003-07-05  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1847         * src/GNOME_Gnumeric.xml: adding ellipses to the stat analysis
1848           menu items
1849         * src/workbook-control-gui.c: ditto
1851 2003-07-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1853         * src/GNOME_Gnumeric.xml: fix tooltip inconsistence and
1854           add stock item to delete
1855         * src/workbook-control-gui.c: ditto
1857 2003-07-04  Rodrigo Moya <rodrigo@gnome-db.org>
1859         * configure.in: require libgnomedb CVS version, for
1860         gnome_db_login_set_dsn.
1862 2003-07-04  Rodrigo Moya <rodrigo@gnome-db.org>
1864         * configure.in: added check for libgnomedb.
1866 2003-07-04  Jody Goldberg <jody@gnome.org>
1868         * src/workbook-view.c (wb_view_sendto) : quick implementation that
1869           hard codes evolution-1.4, and its syntax.  Will leak the file if we
1870           exit too soon after sending.
1872         * src/sheet-object-graphic.c (cb_dialog_graphic_config_destroy) : fix leak.
1873         (cb_dialog_graphic_config_ok_clicked) : delete.
1874         (cb_fill_color_changed) : simplify.
1875         (sheet_object_graphic_user_config) : tidy and set mnemonics for the
1876           colour combos.
1877         (sheet_object_filled_user_config) : ditto.
1878         (cb_dialog_filled_config_destroy) : fix leaks.
1879         (cb_fillcolor_changed) : simplify
1880         (cb_outlinecolor_changed) : ditto.
1882 2003-07-03  Jon K Hellan  <hellan@acm.org>
1884         * src/sheet-object-graphic.c (sheet_object_graphic_user_config)
1885         (sheet_object_filled_user_config)
1886         (sheet_object_filled_user_config): Turn off color combo
1887         tearoff behaviour in dialogs.
1889 2003-07-02  Jody Goldberg <jody@gnome.org>
1891         * src/sheet-control-gui.c (scg_comment_display) : Use gtk_window_move
1892           in place of the deprecated gtk_widget_set_uposition.
1894 2003-07-02  Morten Welinder  <terra@gnome.org>
1896         * src/datetime.c (yearfrac): Swap args if incorrectly ordered.
1897         Make it clear that we're counting February 29ths, not leap days.
1898         (Leap days are February 24ths, if you must know.)  Get the less
1899         than one year special case right.
1901 2003-07-02  Jody Goldberg <jody@gnome.org>
1903         * po/Makefile.in.in : As suggested by tino, try to do a release
1904           without the .gmo files.
1906 2003-07-02  Jody Goldberg <jody@gnome.org>
1908         * src/print.c (print_sheet_objects) : translate to the upper left
1909           corner of the object and pass in its width and height.
1910         * src/sheet-object.c (sheet_object_print) : adjust print interface to
1911           only pass width and height in pts.  print context is already at 0,0
1912           and scaled.
1913         * src/sheet-object-graph.c (sheet_object_graph_print) : Use new
1914           cleaner interface.
1915         * src/sheet-object-image.c (sheet_object_image_print) : ditto.
1916         * src/sheet-object-graphic.c (sheet_object_graphic_print) :
1917           Save the graphics context before filling and just resuse it for the
1918           outline.  Fix the direction handling for the new interface
1919           semantics.
1920         (sheet_object_filled_print) : ditto.
1922 2003-07-01  Morten Welinder  <terra@gnome.org>
1924         * src/datetime.c (yearfrac): New function.
1926 2003-07-01  Jody Goldberg <jody@gnome.org>
1928         * src/Makefile.am : Be even more delicate about changeing built
1929           sources.  Be very anal about not including generated files in the
1930           release.
1931         * src/gnumeric-paths.sh.in : No need to handle paths here.  Do it in
1932           the make file.
1934 2003-07-01  Jody Goldberg <jody@gnome.org>
1936         http://bugzilla.gnome.org/show_bug.cgi?id=115929
1937         For gjc@inescporto.pt (Gustavo Carneiro)
1938         * autogen.sh : Use gnome-common's libtool version test rather than the
1939           antiquated version in here that did not handle libtool-1.5
1941 2003-07-01  Jody Goldberg <jody@gnome.org>
1943         http://bugzilla.gnome.org/show_bug.cgi?id=116447
1944         * src/formats.c (style_format_account) : fix typo.
1946         * src/GNOME_Gnumeric.xml : Add FileSend
1948 2003-06-30  Jody Goldberg <jody@gnome.org>
1950         * src/gnumeric-paths.sh.in : Add exec_prefix
1952 2003-06-30  Jody Goldberg <jody@gnome.org>
1954         For Ben Liblit
1955         * configure.in : add src/gnumeric-paths.sh
1956         * src/Makefile.am : Use src/gnumer-paths.sh and remove the all-local
1957           kludge.
1959 2003-07-01  Morten Welinder  <terra@gnome.org>
1961         * src/graph.c (gnm_go_data_vector_load_values): Always set minimum
1962         and maximum.
1964         * src/stf-parse.c (stf_parse_csv_cell): Don't use O(n^2) UTF-8
1965         validation.
1967         * src/sheet-control-gui.c (cb_table_destroy): Properly release
1968         panes.
1970 2003-06-30  Morten Welinder  <terra@gnome.org>
1972         * src/libgnumeric.c (gnm_common_init, gnm_shutdown): Style depends
1973         on colours.
1975         * src/commands.c (cmd_set_text_redo): Don't override a user
1976         format.
1978         * src/gui-clipboard.c (text_to_cell_region): Handle column
1979         selection here too.
1980         * src/stf-parse.c (stf_parse_region): Ditto.
1982 2003-06-29  Morten Welinder  <terra@gnome.org>
1984         * src/formats.c (style_format_percent, style_format_science,
1985         style_format_account, style_format_number): Simplify using
1986         g_string_append_len.
1988         * src/stf.c (stf_store_results): Don't switch locales here.
1990 2003-06-28  Andreas J. Guelzow  <aguelzow@taliesin.ca>
1992         * src/stf-parse.c (stf_parse_options_new): initialize new fields
1993         (stf_parse_options_free): free new fields
1994         (stf_parse_csv_line): show all columns
1995         (stf_parse_sheet): only store selected rows (and formats vary within
1996           each row!)
1997         * src/stf-parse.h: add col_import_array to parse_options
1998         * src/stf.c (stf_store_results): apply only the format of selected
1999           columns
2001 2003-06-27  Jody Goldberg <jody@gnome.org>
2003         * src/datetime.c (days_between_basis) : tidy up a bit.
2004         (annual_year_basis) : move this here from the date plugin and use the
2005           enum to improve clarity.
2007 2003-06-27  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2009         http://bugzilla.gnome.org/show_bug.cgi?id=115503
2010         * src/formats.c (cell_format_classify): set the date related
2011           FormatCharacteristics to something valid (not just to something sane)
2013 2003-06-27  Morten Welinder  <terra@gnome.org>
2015         * src/rendered-value.c (cell_get_entered_text): Always quote
2016         string values starting with a quote.
2018 2003-06-26  Jody Goldberg <jody@gnome.org>
2020         * src/gui-file.c (ask_for_file_saver) : ditto.
2021         * src/file.c (gnm_file_saver_save_to_stream_real) : delete.  We can
2022           handle this via libgsf now.
2024         * src/workbook-control-gui-priv.h : some cleanup.
2026 2003-06-27  Jon K Hellan  <hellan@acm.org>
2028         * src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
2029         Remove clipboard_paste_callback_data.
2031 2003-06-26  Jon K Hellan  <hellan@acm.org>
2033         * src/gui-clipboard.c (struct GnmGtkClipboardCtxt): New struct,
2034         clipboard paste context.
2035         (complex_content_received): Request fallback format if paste
2036         doesn't succeed.
2037         (x_clipboard_received): Choose a table or spreadsheet format as
2038         preferred paste format, and a string format to fall back to.
2040 2003-06-26  Morten Welinder  <terra@gnome.org>
2042         * src/stf-parse.c (stf_parse_options_guess): Improve separator
2043         guessing.
2045 2003-06-25  Morten Welinder  <terra@gnome.org>
2047         * src/gui-util.c (gdk_cursor_new_from_pixbuf): Please leaks in
2048         stolen code...
2050         * src/expr.c (do_expr_as_string): Make this produce "(-2)^2", not
2051         "-2^2", to cut down on surprises.  Fix old bug in other
2052         ()-insertion.
2054 2003-06-25  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2056         * src/func-builtin.c: change category name to match previous change
2057           in fn-math plugin
2059 2003-06-25  Jon K Hellan  <hellan@acm.org>
2061         * src/gui-clipboard.c (x_clipboard_get_cb): Use
2062         gtk_selection_data_set_text when pasting as string. Makes pasting
2063         non Latin-1 work.
2065 2003-06-24  Jody Goldberg <jody@gnome.org>
2067         http://bugzilla.gnome.org/show_bug.cgi?id=115853
2068         * src/formats.c (style_format_number) : generate an _un_translated
2069           format.
2071 2003-06-24  Jon K Hellan  <hellan@acm.org>
2073         * src/gui-clipboard.c (x_clipboard_get_cb): Call
2074         gtk_selection_data_set with correct data flavour.
2076 2003-06-24  Morten Welinder  <terra@gnome.org>
2078         * src/application.c (application_get_pixbuf): New function.
2080         * src/pixmaps/Makefile.am (VARIABLES): Extra gnm_cursor_cross from
2081         gui-util.c.
2083         * src/sheet-control-gui.c (scg_set_display_cursor): Use
2084         gnm_widget_set_cursor methods.
2086         * src/item-grid.c (cb_cursor_motion): Use
2087         gnm_pane_mouse_cursor_set.
2089         * src/gnumeric-pane.h (GnumericPane): Replace cursor_type member
2090         by mouse_cursor.
2092         * src/gnumeric-pane.c (gnm_pane_release): Free mouse_cursor.
2093         (gnm_pane_mouse_cursor_set): New function.
2095         * src/gui-util.c (gdk_cursor_new_from_pixbuf)
2096         [!HAVE_GDK_CURSOR_NEW_FROM_PIXBUF]: New function.
2097         (CursorDef, cursor_cross_xpm, gnm_cursor_init1, gnm_cursor_create,
2098         gnm_cursor_set_widget): Delete.
2099         (gnm_widget_set_cursor_type): Rename from gnm_widget_set_cursor.
2100         All callers changed.
2101         (gnm_widget_set_cursor): New function.
2102         (gnm_fat_cross_cursor): New function.
2104         * configure.in: Check for gdk_cursor_new_from_pixbuf.
2106         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
2107         Use application_get_pixbuf to get icons for color_combo_new.
2109 2003-06-24  Jon K Hellan  <hellan@acm.org>
2111         * src/plugin-service.c (plugin_service_file_saver_read_xml):
2112         Recognize save_scope value "range".
2114         * src/gui-file.c (make_format_chooser): Leave savers with scope
2115         'range' out from menu.
2117         * src/gui-clipboard.c (table_cellregion_write): New
2118         function. Convert to memory buffer in format wanted by clipboard
2119         by pasting into a temporary workbook, saving that to a memory
2120         output stream.
2121         (x_clipboard_get_cb): Export to clipboard as xhtml.
2123         * src/file.h (enum FileSaveScope): Add FILE_SAVE_RANGE, used when
2124         exporting to clipboard.
2126         * src/file.[ch] (gnm_file_saver_get_save_scope): Constify.
2128 2003-06-23  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2130         * src/main-application.c (warn_about_ancient_gnumerics): change
2131           Gnumeric URL
2133 2003-06-23  Morten Welinder  <terra@gnome.org>
2135         * src/item-edit.c (item_edit_event): Use gnm_widget_set_cursor.
2137         * src/item-cursor.c (item_cursor_set_cursor): Use
2138         gnm_widget_set_cursor.
2140         * src/sheet-object-cell-comment.c (cell_comment_event): Use
2141         gnm_widget_set_cursor.
2143         * src/gui-util.c (gnm_widget_set_cursor): New function.
2145         * src/gui-util.h (GnmCursorType): Eliminate unused _SIZE cursors.
2147         * src/gnumeric-pane.c (cb_control_point_event): Change "cursor"
2148         data to a GdkCursorType.
2149         (set_acetate_coords): Ditto.
2150         (new_control_point): Ditto.  Arg type changed.  All callers
2151         changed.
2152         (set_item_x_y): Ditto.
2154         * src/gui-util.h (GnmCursorType): Eliminate unused zoom and hand
2155         cursors.
2157         * src/number-match.c (format_create_regexp): Simplify using
2158         gnumeric_regexp_quote1.
2159         (char_to_re): Delete.
2160         (str_to_re): Replace by gnumeric_regexp_quote.
2162         * src/search.c (search_replace_compile): Simplify using
2163         gnumeric_regexp_quote.
2165         * src/regutf8.c (gnumeric_regexp_quote, gnumeric_regexp_quote1):
2166         New functions.
2167         (gnumeric_regcomp_XL): Simplify using gnumeric_regexp_quote1.
2169 2003-06-23  Jon K Hellan  <hellan@acm.org>
2171         * src/gui-clipboard.c (OOO11_ATOM_NAME, complex_content_received,
2172         x_clipboard_received): New name in OpenOffice.org 1.1 Beta for
2173         OpenOffice XML clipboard target. Add it.
2175 2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2177         * schemas/gnumeric-dialogs.schemas.in: add printsetup/header and
2178           printsetup/footer schemas
2179         * src/gnumeric-gconf-priv.h: add more keys
2180         * src/gnumeric-gconf.c (gnm_gconf_set_printer_footer): new
2181         (gnm_gconf_set_printer_header): new
2182         (gnm_gconf_set_printer_config): change name of key
2183         (gnm_conf_init): initialize header and footer from gconf
2184         * src/gnumeric-gconf.h (gnm_gconf_set_printer_footer): new
2185         (gnm_gconf_set_printer_header): new
2186         (GnmAppPrefs): add header and footer fields
2187         * src/print-info.c (print_info_save): save footer and header to
2188           gconf
2189         (print_info_new): read footer and header to gconf
2191 2003-06-22  Jon K Hellan  <hellan@acm.org>
2193         * src/file.c (gnm_file_saver_save): Don't check for overwrite if
2194         not saving to a file.
2196 2003-06-22  Jody Goldberg <jody@gnome.org>
2198         * src/sheet-object.c (sheet_object_register) : register the graph
2199           types to allow loading.
2201         * src/sheet-object-graph.c (sheet_object_graph_read_xml) : enable.
2202         (sheet_object_graph_write_xml) : enable.
2204         * src/graph.c (gnm_go_data_from_str) : new utility shared by vector
2205           and scalar that can parse, and handle delaying the parse until the
2206           data source is linked to a sheet to provide context.
2207         (gnm_go_data_set_sheet) : ditto.
2208         (gnm_go_data_scalar_from_str) : new requirement for interface.
2209         (gnm_go_data_scalar_set_sheet) : use gnm_go_data_set_sheet.
2210         (gnm_go_data_vector_from_str) : new requirement for interface.
2211         (gnm_go_data_vector_set_sheet) : use gnm_go_data_set_sheet.
2213         * src/application.c (application_history_add) : GObject::notify seems
2214           to prefer hyphens to underscores.
2215         (gnumeric_application_class_init) : ditto.
2217 2003-06-18  Jody Goldberg <jody@gnome.org>
2219         * src/hlink.c (gnm_hlink_cur_wb_activate) : jump to the target sheet,
2220           not the current sheet.
2222 2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2224         * src/stf-parse.c (stf_parse_options_new): initialize locale
2225         (stf_parse_options_free): free locale
2226         (stf_parse_sheet): setup locale
2227         (stf_parse_region): setup locale
2228         * src/stf-parse.h : add locale to parseoptions
2229         * src/stf.c (stf_store_results): setup locale
2231 2003-06-21  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2233         * src/formats.c (currency_date_format_shutdown): free allocated
2234           memory since currency_date_format_init/shutdown may be called
2235           multiple time
2236         (currency_date_format_init): Do not assume that data structures
2237           are in pristine state
2239 2003-06-20  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2241         * src/print-info.c (print_info_new): set up (but disable) load of
2242           print-config from configuration string
2243         * src/print.c (print_job_info_set_one_time_defaults): delete
2244         (print_job_info_save_one_time_defaults): delete
2246 2003-06-20  Jon K Hellan  <hellan@acm.org>
2248         * src/io-context-gtk.c (cb_realize): New. Called when splash is
2249         realized. Move placement logic here, and use natural size.
2250         (icg_show_gui): Register realize handler, move placement logic
2251         out, and get rid of explicit sizing.
2253 2003-06-20  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2255         * src/print.c (print_job_info_get): don't overwrite page layout
2256           info with default.
2258 2003-06-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2260         * src/print-info.c (print_info_new): protect all parts of the
2261           locale from libcups
2263 2003-06-19  Morten Welinder  <terra@gnome.org>
2265         * src/format.c (format_get_decimal, format_get_thousand): Return a
2266         UTF-8 string, not a char.  All callers changed.
2268 2003-06-19  Jon K Hellan  <hellan@acm.org>
2270         * src/main-application.c (main): Don't load any more workbooks if
2271         user closed splash.
2273         * src/io-context-gtk.c (struct _IOContextGtk): Add 'interrupted'
2274         member.
2275         (cb_icg_window_destroyed): Don't abort, set 'interrupted' flag
2276         instead, when user closes splash after the first file has been
2277         shown.
2278         (icg_init): Initialize 'interrupted'.
2280         * src/io-context-gtk.[ch] (icg_get_interrupted): New. Return
2281         'interrupted'.
2283 2003-06-19  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2285         * format.c (update_lc): set locale_info_cached to TRUE
2287 2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2289         * src/GNOME_Gnumeric.xml: spelling fixes
2290         * schemas/gnumeric-general.schemas.in: spelling fixes
2292 2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2294         * src/file.c: spelling fixes
2295         * src/format-template.c: spelling fixes
2296         * src/formats.c: spelling fixes
2297         * src/func-builtin.c: spelling fixes
2298         * src/sheet-style.c: spelling fixes
2300 2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2302         * src/gui-clipboard.c: call stf_dialog with new arguments
2303         * src/stf.c: call stf_dialog with new arguments
2305 2003-06-18  Jon K Hellan  <hellan@acm.org>
2307         * src/io-context-gtk.c (struct _IOContextGtk): Add 'latency'
2308         member to help in startup time prediction.
2309         (icg_user_is_impatient): Try to predict startup time after
2310         ICG_POPUP_DELAY/3, and pop up splash if we predict startup to take
2311         > ICG_POPUP_DELAY.
2312         (icg_progress_set): Update progress before checking if it is time
2313         to show splash.
2314         (icg_init): Initialize latency.
2316 2003-06-18  Jon K Hellan  <hellan@acm.org>
2318         * src/print-info.c: Include locale.h
2320 2003-06-18  Andreas J. Guelzow  <aguelzow@taliesin.ca>
2322         * src/print-info.c (print_info_new): preserve the locale across
2323           the call to gnome_print_config_default.
2324           (A workaround for a library bug.)
2326 2003-06-17  Morten Welinder  <terra@gnome.org>
2328         * src/format.c (update_lc): New function to extract all lc info
2329         right away.
2330         (format_get_decimal, format_get_thousand, format_get_currency):
2331         Use it.
2333         * src/stf-parse.c (stf_parse_options_guess): Set sepchar in all
2334         cases.
2336 2003-06-16  Morten Welinder  <terra@gnome.org>
2338         * src/gutils.c (gnm_guess_encoding): New function.
2340         * src/stf.c (stf_read_workbook_auto_csvtab): Properly decode file
2341         before inspecting.  Use stf_parse_options_guess.
2343         * src/stf-parse.c (stf_parse_options_guess): New function.
2345         * src/parse-util.c (sheetref_parse): Base on gnm_strunescape like
2346         parser.y's equivalent code.  Avoid unbounded stack usage.
2348 2003-06-14  Jon K Hellan  <hellan@acm.org>
2350         * src/sheet-object-graphic.c (sheet_object_graphic_user_config)
2351         (sheet_object_filled_user_config): Fix typo
2353 2003-06-13  Jon K Hellan  <hellan@acm.org>
2355         * src/sheet-object-graphic.c (sheet_object_graphic_user_config)
2356         (sheet_object_filled_user_config): Turn off instant apply for
2357         color combos.
2359 2003-06-13  Morten Welinder  <terra@gnome.org>
2361         * src/gui-clipboard.c (text_to_cell_region): Stop assuming
2362         nul-termination and stop copying the string.
2364         * src/workbook-control-gui.c (register_xml_ui): Change signature
2365         to using GCallback, not a bonobo type.
2367 2003-06-12  Morten Welinder  <terra@gnome.org>
2369         * src/gui-clipboard.c (text_to_cell_region): Add fixed_encoding
2370         argument as for stf_dialog.  All callers changed.
2372         * src/stf-parse.c (compile_terminators): New function.
2373         (stf_parse_options_add_line_terminator,
2374         stf_parse_options_remove_line_terminator,
2375         stf_parse_options_clear_line_terminator): Call
2376         compile_terminators, fix memory ownership.
2377         (stf_parse_options_new): Set terminators using
2378         stf_parse_options_add_line_terminator.
2379         (compare_terminator): Speed up using compiled terminators.
2381 2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
2383         * configure.in: added en_CA
2385 2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
2387         http://bugzilla.gnome.org/show_bug.cgi?id=114099
2388         * src/clipboard.h: change PASTE_DEFAULT to include comments
2390 2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
2392         * src/workbook-control-gui.c: Correct the description of the mean
2393           test.
2394         * src/GNOME_Gnumeric.xml: ditto
2396 2003-06-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
2398         * src/workbook-control-gui.c: Improve the description of the mean
2399           test.
2401 2003-06-11  Jody Goldberg <jody@gnome.org>
2403         * src/workbook-control-gui.c (workbook_setup_sheets) : Fix my
2404           incorrect replacement on 2003-06-05.  show_border is something
2405           completely different.  Use the properties instead of the old
2406           accessors.
2408 2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
2410         for Evert Verhellen
2411         * src/GNOME_Gnumeric.xml: change Insert->Add/Modify Comment to
2412           Edit->Comment
2413         * src/workbook-control-gui.c: ditto
2414         * src/sheet-control-gui.c: change pop-up Add/Modify comment to
2415           Edit Comment
2417 2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
2419         * schemas/gnumeric-plugins.schemas.in: new
2420         * schemas/Makefile.am: added schemas/gnumeric-plugin.schemas.in
2421         * src/gnumeric-gconf-priv.h: add gconf keys
2422         * src/gnumeric-gconf.c (gnm_gconf_set_latex_use_utf8): new
2423         * src/gnumeric-gconf.h: add latex_use_utf field
2424         (gnm_gconf_set_latex_use_utf8): new
2425         * schemas/.cvsignore: add schemas/gnumeric-plugin.schemas
2427 2003-06-11  Morten Welinder  <terra@gnome.org>
2429         * src/stf-parse.h (StfParseOptions_t): Remove parselines member.
2431         * src/stf-parse.c (stf_parse_get_longest_row_width): Take a
2432         data_end pointer too.  Callers changed.
2433         (stf_parse_general): Ditto.
2434         (stf_parse_sheet): Ditto, but optional.
2435         (stf_parse_region): Ditto, but optional.
2436         (stf_parse_options_fixed_autodiscover): Ditto.  Remove data_lines arg.
2437         (stf_parse_options_set_lines_to_parse): Delete.
2439 2003-06-11  Jody Goldberg <jody@gnome.org>
2441         * schemas/gnumeric-general.schemas.in : Make the default number of
2442           sheets 3 to make things clearer in the documentation.
2444 2003-06-11  Morten Welinder  <terra@gnome.org>
2446         * src/stf-parse.c (stf_parse_convert_to_unix): Delete.
2448         * src/gui-clipboard.c (text_to_cell_region): Don't muck with line
2449         endings.
2451         * src/stf-parse.c (stf_parse_options_fixed_autodiscover): Handle
2452         line terminators correctly.
2453         (stf_parse_get_longest_row_width): Ditto.
2454         (stf_parse_general): Properly skip line endings.
2455         (stf_parse_lines): Add parse option argument and use standard line
2456         ending parsing.  All callers changed.
2458         * src/gui-clipboard.c (complex_content_received): Handle all kinds
2459         of strings here too.
2460         (text_to_cell_region): Rename from x_clipboard_to_cell_region.
2461         Add optional encoding parameter and let data be in that encoding.
2462         Only allow simple one-line paste if we can translate to UTF-8.
2463         (x_clipboard_received): Put string targets into prioritized list.
2464         (text_received): Delete.
2466 2003-06-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
2468         http://bugzilla.gnome.org/show_bug.cgi?id=114777
2469         * src/stf-export.c (stf_export_cell): quote content before
2470         converting it into some other encoding. (fix leaks on the side)
2472 2003-06-10  Jody Goldberg <jody@gnome.org>
2474         * src/sheet-object-image.c (sheet_object_image_print) : fix.
2476         * src/sheet-object-graph.c (sheet_object_graph_update_bounds) :
2477           Handle inversion.
2478         (sheet_object_graph_print) : implement.
2480         * src/format-template.c (format_template_transform_edges) : minor
2481           pedantic reordering.
2483         * src/print.c (print_sheet_objects) : handle inverted objects.
2485 2003-06-10  Morten Welinder  <terra@gnome.org>
2487         * src/workbook-edit.c (wbcg_edit_start): Make sure we only mark
2488         ranges when we are dealing with a formula.
2490         * src/format-template.c: Apply flame thrower.
2492         * src/stf.c (stf_read_workbook): Make filename handling UTF-8
2493         safe.
2494         * src/workbook-view.c (wb_view_attach_control): Ditto.
2495         (wb_view_save): Ditto.
2496         (workbook_view_new): Ditto.
2497         (wbv_save_to_file): Ditto.
2498         * src/workbook.c (workbook_set_filename): Ditto.
2499         * src/print-info.c (render_file): Ditto.
2500         * src/gui-file.c (can_try_save_to): Ditto.
2502         * src/workbook.c (workbook_get_filename_utf8): New function.
2504         * src/gutils.c (gnumeric_valid_filename): Delete.  No longer useful.
2506 2003-06-10  Abel Cheung  <maddog@linux.org.hk>
2508         * configure.in: Removed en_CA and en_AU from ALL_LINGUAS. They are
2509           dummy translations now.
2511 2003-06-09  Jody Goldberg <jody@gnome.org>
2513         * src/format-template.c (xml_read_format_col_row_info) : remove use of
2514           get_child_by_name.
2515         (xml_read_format_template_member) : ditto.
2517 2003-06-09  Morten Welinder  <terra@gnome.org>
2519         * src/format-template.c (format_template_transform_edges): Plug
2520         leak.
2521         * src/gnm-marshalers.list: Add stuff from gal.
2522         * src/*.c: change to use imported gal widgets.
2524 2003-06-09  Jody Goldberg <jody@gnome.org>
2526         * src/application.c (gnumeric_application_finalize) : patch a leak.
2528 2003-06-09  Jody Goldberg <jody@gnome.org>
2530         * src/preview-grid.c : Major reorg.
2531           Convert the signals into virtuals.
2532           Add default value, and style methods
2533           Convert from GtkArg -> GParam
2534           Begin fixing _draw to support positions other than 0,0
2535           Update queus a redraw
2537         * src/file-autoft.c (category_group_list_find_category_by_name) : delete
2538         * src/Makefile.am : add preview-grid-impl.h
2540 2003-06-09  J.H.M. Dassen (Ray) <jdassen@debian.org>
2542         * debian/*: Updated from latest package.
2544 2003-06-09  Morten Welinder  <terra@gnome.org>
2546         * src/mathfunc.c (mathfunc_init): Turn off SIGFPE in here.
2548 2003-06-08  Jody Goldberg <jody@gnome.org>
2550         * src/style.h : DEFAULT size in the schemas is 10, use it here too.
2552         * schemas/gnumeric-general.schemas.in : Use valid english.
2554         * Makefile.am : do not include the .server or .server.in files in the
2555           distribution.
2556         * src/Makefile.am (ui_DATA) : be absolutely anal about
2557           gnumeric-paths.h, generate it early, and do not include it in the
2558           distribution.
2560 2003-06-07  Jody Goldberg <jody@gnome.org>
2562         * configure.in : bump again
2564 2003-06-07  Jody Goldberg <jody@gnome.org>
2566         * Release 1.1.19
2568 2003-06-07  Jody Goldberg <jody@gnome.org>
2570         * src/Makefile.am : Suck it up and ignore the make warnings about
2571           circular dependencies.   automake-1.4 pisses me off.
2573 2003-06-07  Jody Goldberg <jody@gnome.org>
2575         * src/dependent.c (link_expr_dep) : be more anal in case something
2576           unexpected gets in.
2578 2003-06-07  Jody Goldberg <jody@gnome.org>
2580         * configure.in : post release bump
2582 2003-06-07  Jody Goldberg <jody@gnome.org>
2584         * Release 1.1.18
2586 2003-06-06  Morten Welinder  <terra@gnome.org>
2588         * src/style-border.c (style_border_set_gc_dash): Work around a
2589         missing const in gdk.
2590         (*_line, *_pattern): constify.
2592         * src/style-color.c (gnumeric_color_shutdown): Unref
2593         black/white/grid colors.  Print leaks.
2595         * src/format.c (number_format_shutdown): Print leaks.
2596         (number_format_shutdown): Unref default formats.
2597         (format_destroy): Make static.
2599 2003-06-06  Jody Goldberg <jody@gnome.org>
2601         * src/sheet.c (sheet_colrow_delete_finish) : This is bad practice and
2602           should not really be here.  However, we need to ensure that update is
2603           run before sv_panes_insdel_colrow plays with frozen panes, updating
2604           those can trigger redraws before sheet_update has been called.
2605         (sheet_colrow_insert_finish) : ditto.
2607         * configure.in : bump gsf req.
2608         * README : ditto.
2610 2003-06-06  Jody Goldberg <jody@gnome.org>
2612         * src/bonobo-io.c (gnm_persist_stream_load) : warning suppression.
2614 2003-06-06  Morten Welinder  <terra@gnome.org>
2616         * src/item-bar.c (struct _ItemBar): Add normal_font_ascent and
2617         bold_font_ascent fields.  Change normal_font and bold_font to
2618         PangoFonts.
2619         (item_bar_calc_size): Set font and ascent fields.
2620         (ib_draw_cell): Use them.
2621         (item_bar_normal_font): Change to return a pango font.
2622         (ib_fonts_unref): Use g_object_unref, not style_font_unref.
2623         (ib_draw_cell): Use the right font for shaping.  (This prevents
2624         the bold dancing effect.)
2626         * src/sheet-control-gui.c (scg_setup_group_buttons): Match
2627         item_bar_normal_font change.
2629         * src/style.c (font_init): Don't export gnumeric_default_font, but
2630         gnumeric_default_font_width instead.  Single user changed.
2631         (style_font_string_width): Make static.
2632         (style_font_get_height): Delete.
2634 2003-06-05  Jody Goldberg <jody@gnome.org>
2636         * src/gnumeric-gconf.c (gnm_gconf_rm_notification) : delete.
2638         * src/plugin.c (gnumeric_extra_plugin_dirs) : clarify the ownership of
2639           the lists.
2640         (plugins_init) : ditto.
2641         (plugins_shutdown) : ditto.
2643         * src/application.c (application_history_get_list) : const the output
2644           to be clear on the ownership semantics.  Add a 'force_reload'
2645           argument to force the list to reload and clip from the underlying
2646           gconf source.  Should not be necessary later when we clear up the
2647           relationship between application, and the config.
2648         (application_history_update_list) : deleted.
2649         (application_history_add) : new.  merge in some of the old
2650           application_history_update_list, and some of the history_menu stuff
2651           and emit a notifuy even on the newly created file_history_list
2652           property of the application.  We should do the same for other
2653           properties rather than requiring direct gconf connections.
2654         (application_history_list_shrink) : delete.
2655         (application_history_write_config) : delete.
2656         (gnumeric_application_get_property) : new.
2657         (gnumeric_application_class_init) : install the property.
2659         * src/workbook.c (workbook_finalize) : Just call
2660           application_history_add directly rather than
2661           workbook_history_update that was a pointless layer of indirection.
2662           No need to directly call application_history_write_config
2663           history_add handles that.
2665         * src/sheet-object-widget.c (sheet_widget_list_create_widget) : If
2666           we're going to throw in a stub widget, it might as well a treeview
2667           rather than a deprecated list widget.
2669         * src/workbook.c (workbook_history_update) : delete the vast majority
2670           of this moving what little remained into.
2672         * src/history.c : delete everything but history_item_label.
2673           greatly simplify the logic and move the majority of it into.
2674         * src/workbook-control-gui.c : here.  While we're at it simplify our
2675           lives in preparation for turning the bonobo mess into virtuals on
2676           wbcg.  Use a simpler approach to creation and removal that let
2677             - monitors the application::notify::file-history-list rather than
2678               requiring explicit calls from a non-gui layer.
2679             - removes everything even the seperator then reinserts the new
2680               entries.
2681         (wbcg_file_history_setup) : renamed from wbcg_history_setup.
2682         (change_menu_label) : Use gtk_label_set_text with use_underline
2683           set to true in place of the deprecated parse_uline gunk.  While
2684           we're in here set the tooltip too.  Its a hack, setting the data
2685           directly based on knownledge of the implementation in libgnomeui.
2686           However, there aren't many choices other than fixing libgnomeui
2687           which is just too long a wait.
2688         (cb_edit_paste_special) : move call to cmd_paste_to_selection in to
2689           the dialog like every other implemntation.
2690         (wbcg_finalize) :  Use g_signal_handlers_disconnect_by_func in place
2691           of the deprecated gtk_signal_disconnect_by_func.
2692         (workbook_setup_sheets) : Use gtk_notebook_set_show_border (FALSE) in
2693           place of the deprecated gtk_notebook_set_tab_border (0).
2694         (workbook_control_gui_init) : use allow_grow, and allow_shrink
2695           properties in place of deprecated gtk_window_set_policy.  And
2696           g_idle_add, in place of deprecated gtk_idle_add.
2698         * src/sheet-control-gui.c (context_menu_handler) :
2699           dialog_paste_special now calls cmd_paste_to_selection itself
2700           like all the other dialogs.
2702         * src/gutils.c (g_slist_map) : constify to make life easier.
2704         * src/gnumeric-pane.c : some minor property renaming in the custom
2705           canvas-items when we removed the deprecated gunk.
2706         * src/item-bar.c : remove deprecated GtkArg gunk in favour of
2707           GObject::Param stuff.
2708         * src/item-grid.c : ditto.
2710         * src/gnumeric-gconf.h : Make the public GSLists const just to be
2711           absolutely clear about who owns what.
2713         * src/gnumeric-gconf.c (gnm_gconf_set_plugin_extra_dirs) : make list
2714           ownership semantics absolutely clear.
2715         (gnm_gconf_set_plugin_extra_dirs) : ditto.
2716         (gnm_gconf_set_file_history_files) : ditto.
2717         (gnm_gconf_add_notification_plugin_directories) : delete unused.
2718         (gnm_gconf_set_autoformat_extra_dirs) : delete unused.
2720         * src/gnumeric-gconf-priv.h : no need to publicly include gconf anymore
2722 2003-06-05  Morten Welinder  <terra@gnome.org>
2724         * src/stf.c (stf_read_default_probe): Delete.
2726         * src/stf-parse.c (stf_parse_get_rowcount): Delete.
2727         (stf_parse_fixed_cell): Make UTF-8 safe.
2728         (stf_parse_get_longest_row_width): Ditto.
2729         (stf_parse_is_valid_data): Delete.
2731         * src/stf.c (stf_preparse): Butcher this.  Don't do encodings
2732         here.
2734 2003-06-04  Morten Welinder  <terra@gnome.org>
2736         * src/stf.c (stf_store_results): Fix off-by-one and missing base
2737         error in setting formats.
2739         * src/gui-clipboard.c (x_clipboard_to_cell_region): Fix off-by-one
2740         error in setting formats.
2742         * src/stf-parse.c (stf_parse_region): Quote anything that might be
2743         an expression.  Still not brilliant, but better.
2745 2003-06-04  Jody Goldberg <jody@gnome.org>
2747         * src/sheet-filter.c (cb_filter_button_press) : this seems simpler,
2748           and catches clicking on other buttons to close the popup.
2750 2003-06-03  Jody Goldberg <jody@gnome.org>
2752         For Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
2753         http://bugzilla.gnome.org/show_bug.cgi?id=112713
2754         * src/gui-utils.[ch]
2755         (gnumeric_button_new_with_stock_image) : new
2756         (gnumeric_add_dialog_button) : new
2757         (gnumeric_message_dialog_new) : new
2758         * src/workbook-control-gui.c
2759         (workbook_close_if_user_permits) : build a HIG compliant
2760         confirmation dialog
2762 2003-06-03  Jody Goldberg <jody@gnome.org>
2764         * src/sheet.c (sheet_row_size_fit_pixels) : delete the old hack to
2765           work around granular font sizes and take out the +1 for the grid
2766           line
2768         * src/sheet-filter.c (gnm_filter_remove) : make filterered rows
2769           visible.
2770         * src/workbook-control-gui.c (cb_auto_filter) : sheet_update on remove
2771           too.
2773         * src/item-cursor.c : clear out deprecated GtkObject::Arg goo.
2774         (item_cursor_draw) : pixel noise drawing zero sized animated cursors.
2776 2003-06-03  Jody Goldberg <jody@gnome.org>
2778         * src/sheet.h : delete some non-existant decls.
2780         * src/sheet-object.c (sheet_objects_relocate) : kludgy tweak so that
2781           ins/del col/row moves things and cut-n-paste does not.
2783 2003-06-03  Jody Goldberg <jody@gnome.org>
2785         * src/sheet-filter.c (gnm_filter_overlaps_range) : new.
2786         (gnm_filter_contains_row) : delete.
2787         * src/sheet-view.c (sv_first_selection_in_filter) : new.
2788         (sv_edit_pos_in_filter) : delete.
2789         * src/workbook-control-gui.c (wbcg_menu_state_update) : use here.
2790         (cb_auto_filter) : and here.
2792 2003-06-03  Jody Goldberg <jody@gnome.org>
2794         * src/expr-name.c (gnm_named_expr_collection_insert) : ease
2795           requirements and allow active names to be inserted.  This is the
2796           majority case for all the places we up/dowgrade placeholders and
2797           change scope.
2798         (expr_name_check_for_loop) : rename from name_refer_circular and make
2799           public.
2800         (expr_name_downgrade_to_placeholder) : new.
2801         (expr_name_set_scope) : no need to diddle ::active now that
2802           collection_insert is less anal.
2803         (expr_name_cmp_by_name) : renamed from expr_name_by_name.
2805         * src/commands.c (cmd_define_name*) : add more checking at the start.
2806           Don't bother keeping a ref to the nexpr.
2807           handle undo for defining an existing placeholder.
2809 2003-06-03  Morten Welinder  <terra@gnome.org>
2811         * src/stf-parse.c (stf_parse_lines): New function.
2812         (stf_parse_next_token): Move UTF-8 from here to callers to avoid
2813         insane slowdown.
2815 2003-06-02  Jody Goldberg <jody@gnome.org>
2817         * src/expr-name.c (expr_name_set_scope) : if the new scope does not
2818           have any names initialize it.  Don't remove the name from the old
2819           scope if it already exists in the newscope.  Return an error message
2820           in the case of problems.
2822 2003-06-02  Morten Welinder  <terra@gnome.org>
2824         * src/stf-parse.c (stf_parse_general_free): New function.
2825         (stf_parse_general): Switch from list <list<string>> to
2826         ptrarray<ptrarray<string>>, gaining random access.  All callers
2827         changed.
2829         * src/style.c (style_font_new_simple): Take a pango context
2830         argument also instead of producing a bogus one.
2831         (style_font_new): Ditto.  Improve fall-back scheme.
2832         (font_init): For now, create the default font on the default
2833         screen.  The need for the default is almost gone.
2835         * src/mstyle.c (mstyle_get_font, mstyle_get_pango_attrs): Take a
2836         pango context also to produce fonts.
2837         * src/rendered-value.c (calc_indent, rendered_value_render): Ditto.
2838         * src/sheet-control-gui.c (scg_get_style_font): Ditto.
2840         * src/print.c (sheet_print): Display preview on the right display.
2842         * src/gui-util.c (gnm_link_button_and_entry): New function.
2844         * src/commands.c (cmd_analysis_tool): Clarify memory ownership
2845         rules and adhere to them.  Plug leak.
2847         * src/item-edit.c (ie_layout): Handle ->layout properly so it
2848         doesn't get leaked.
2850 2003-06-01  Jody Goldberg <jody@gnome.org>
2852         * src/sheet-object.c (sheet_objects_relocate) : check for
2853           move_with_cells.
2854         (sheet_object_init) : init move_with_cells.
2856         * src/sheet-filter.c (filter_field_init) : new.
2858         * src/workbook-control-gui.c (cb_auto_filter) : update the menu when
2859           adding or removing a filter.
2861 2003-05-31  Jody Goldberg <jody@gnome.org>
2863         http://bugzilla.gnome.org/show_bug.cgi?id=114084
2864         * src/parser.y (find_matching_close) : Generated spurious paren errors
2865           because gnm_strunescape points to the first char after the string
2866           then we incremented.
2867         (yylex) : As long as we're down here tack on a bit of user
2868           friendliness in the face of spaces.  If we know they can't be
2869           operators based on the token we're returning ignore them to help the
2870           users out.
2872         http://bugzilla.gnome.org/show_bug.cgi?id=114147.
2873         * src/sheet.c (sheet_clone_colrow_info) : copy max outline level too.
2875         http://bugzilla.gnome.org/show_bug.cgi?id=114151.
2876         * src/commands.c (cmd_selection_outline_change) : minor thinko when
2877           implementing inverted placement.
2879         * src/sheet-control-gui.c (scg_setup_group_buttons) : honour the
2880           sheet::display_outline flag.  We could probably move these to the
2881           SheetView.
2883         * src/parser.y (parser_sheet_by_name) : don't leak the arguments when
2884           attempting to parse an expression with an unknown function name.
2886         http://bugzilla.gnome.org/show_bug.cgi?id=114144.
2887         * src/workbook-control-gui.c (wbcg_validation_msg) : add accelerators
2888           for the buttons.
2890         http://bugzilla.gnome.org/show_bug.cgi?id=114097.
2891         * src/sheet-object-widget.c : while we're in here clean up a bit.
2892         (cb_checkbox_label_changed) : doh!
2894         http://bugzilla.gnome.org/show_bug.cgi?id=114079.
2895         * src/colrow.c (colrow_get_states) : a difference in the default state
2896           will also split a run. (fixes crash #2)
2897         * src/sheet-merge.c (sheet_merge_remove) : don't free range until
2898           after we're through using r.  Just in case they are the same.
2900         * src/workbook-control-gui.c (cb_view_freeze_panes) : base the
2901           decision to use default position on the last visible, not last full.
2903         * src/gnumeric-pane.c (cb_sheet_object_canvas_event) : don't freak out
2904           if we can't edit the seleted object.
2906         * src/xml-io.c (xml_read_style) : target needs a function, it is not a
2907           GObject::param.
2909         * src/dialogs/dialog-hyperlink.c (dialog_hyperlink) : we need to
2910           register the types earlier.  Move the calls from here.
2911         * src/libgnumeric.c (gnm_common_init) : to here.
2913         * src/gui-util.c (gnumeric_error_info_dialog_new) : make the close
2914           button the default.
2916         * src/validation.c (validation_eval) : fix typo that passed the type
2917           as the style. Unique to 1.1.x
2919 2003-05-31  Jody Goldberg <jody@gnome.org>
2921         * src/workbook-edit.c (wbcg_edit_finish) : add an optional flag to
2922           indicate if a dialog was displayed.  This is necessary for only 1
2923           caller.
2924         * src/validation.c (validation_eval) : add the dialog needed flag here
2925           too.
2926         * src/item-grid.c (item_grid_button_press) : don't start dragging or
2927           showing a menu.  If there was a validation dialog we already ignored
2928           the corresponding button release.
2930         * src/tools/fill-series.c (do_row_filling) : only clip the fill with
2931           the selection if the stoping value is not set.  Add a bounds test.
2932         (do_column_filling) : ditto.
2934         * src/GNOME_Gnumeric.xml : disable unimplemented import external.
2935           Give Fill -> Series & Merge mnemonics
2936           s/Graph/Chart/
2937         * src/workbook-control-gui.c : ditto.
2939 2003-05-30  Morten Welinder  <terra@gnome.org>
2941         * src/workbook-control.c (wb_control_parse_and_jump): Fix 114045.
2943         * src/style.c: Eliminate gnumeric_default_bold_font and
2944         gnumeric_default_italic_font.
2945         (style_font_new): Apply a simpler fall-back scheme that will work
2946         for bold & italic also.
2947         (style_shutdown): Greatly simplify now that
2948         gnumeric_default_bold_font and gnumeric_default_italic_font are
2949         gone.
2951         * src/mstyle.c (mstyle_link_sheet): Avoid referring to
2952         possibly-freed pointer.
2954 2003-05-30  Morten Welinder  <terra@gnome.org>
2956         * src/mstyle.c (mstyle_init, mstyle_shutdown): New functions.
2957         (mstyle_new, mstyle_copy, mstyle_copy_merge, mstyle_unref): Use
2958         mstyle pool.
2960         * src/libgnumeric.c (gnm_common_init): Init mstyles.
2961         (gnm_shutdown): Shut them down.
2963 2003-05-28  Jody Goldberg <jody@gnome.org>
2965         * configure.in : Add he to ALL_LINGUAS
2967 2003-05-27  Jon K Hellan  <hellan@acm.org>
2969         * src/main-component.c: Include gnumeric-paths.h.
2971 2003-05-27  Morten Welinder  <terra@gnome.org>
2973         * src/style-border.c (style_border_none_set_color): Fix ref count
2974         leak.
2976         * src/style.c (style_font_new_simple): Fix warning text.
2978         * src/gnumeric-pane.h (struct _GnumericPane): cursor_type is of
2979         type GnmCursorType, not int.
2981         * src/item-grid.c (cb_cursor_motion): Ditto for cursor.
2982         * src/sheet-control-gui.c (scg_set_display_cursor): Ditto.
2984 2003-05-24  Jody Goldberg <jody@gnome.org>
2986         * src/workbook-control-gui.c (cb_sheet_label_drag_begin) : remove
2987           deprecation.
2989 2003-05-23  Jody Goldberg <jody@gnome.org>
2991         * src/selection.c (sv_selection_to_plot) : skip the dimension if its
2992           can't be filled, don't just keep looking for data to put in it.
2994 2003-05-23  Morten Welinder  <terra@gnome.org>
2996         * src/style-border.c (style_border_get_gc): Fix ref count error.
2998         * src/gnumeric-pane.c (set_acetate_coords): Create bitmap on the
2999         right display.
3001         * src/pattern.c (gnumeric_pattern_get_stipple): Take drawable
3002         argument for identifying screen that bitmaps need to be valid on.
3004         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
3005         Switch font and size selectors to gnm_combo_text.
3007         * src/gui-util.c (gnm_cursor_set_widget): New function, cloned
3008         from GAL's e_cursor_set_widget which isn't multihead safe.  Some
3009         GAL stuff imported.  All callers changed.
3011         * src/pattern.c (gnumeric_background_set_gc): Batching is back per
3012         Jody's request.  The multihead issues remain fixed, though.
3014 2003-05-22  Morten Welinder  <terra@gnome.org>
3016         * src/style-color.c (style_color_new_uninterned): Set bogus .pixel
3017         values.
3019         * src/pattern.c (gnumeric_background_set_gc): Don't batch, gdk
3020         already does that.  Don't assume .pixel for colours.
3022         * src/gui-clipboard.c (x_claim_clipboard): Get the clipboard from
3023         the right display.
3024         (x_request_clipboard): Ditto.
3026         * src/clipboard.c (cellregion_to_string): Take a pango context
3027         parameter.  Use that instead of faking it.
3029         * src/gui-clipboard.c (x_clipboard_get_cb): Make this take a wbcg
3030         which is what it already gets.  Use that to get a pango context to
3031         send to cellregion_to_string.
3033         * src/item-bar.c (item_bar_realize): Set cursor for the right
3034         display.
3036         * src/workbook-control-gui.c (workbook_control_gui_new): Extra
3037         argument here is a GdkScreen pointer.  Supply that to
3038         workbook_control_gui_init.  All callers changed.
3040         * src/workbook-control-priv.h (WorkbookControlClass): Add extra
3041         parameter to control_new method.
3043         * src/workbook-control.c (wb_control_wrapper_new): Add "extra"
3044         argument here also and supply it to control_new.  All callers
3045         changed.
3047         * src/workbook-control-gui.c (workbook_control_gui_init): Make
3048         static.  Take extra GdkScreen parameter and set the new screen
3049         asap before we go creating pango contexts and gcs relating to the
3050         default screen.  All callers changed.
3052 2003-05-22  Jody Goldberg <jody@gnome.org>
3054         * src/dependent.c (dependents_relocate) : cells optionally don't
3055           relink, but objects must for now.
3057         * src/expr.c (cellrange_relocate) : fix logic inversion introduced
3058           when I removed the unnecessary heuristic on 2003-05-16.
3060 2003-05-22  Morten Welinder  <terra@gnome.org>
3062         * src/workbook-control-gui.c (workbook_menu_view): Combine the two
3063         New-View entries into one.
3064         (workbook_control_gui_init): Fix reference to freeze-panes menu
3065         entry.
3066         (cb_view_new): New function just calling the dialog.
3068 2003-05-21  Jody Goldberg <jody@gnome.org>
3070         * src/item-edit.c : General de-cruftification.
3071           - Move from GtkObject -> GObject
3072           - Use set_property rather than set_args
3073           - Remove pointless inclusion of sheet-control-gui-priv.h
3074           (ie_layout) : rename from recalc_spans, move the
3075           PangoLayout generation from _draw in here because it was more
3076           advanced and cache the layout.
3078         * Makefile.am : don't clean the .server file it is generated by
3079         autoconf and a real pain to regenerate
3081 2003-05-21  Morten Welinder  <terra@gnome.org>
3083         * src/gui-util.c (cb_free_keyed_dialog_context): Set the
3084         KeyedDialog property on the right object.
3086         * src/style-border.h (struct _StyleBorder): Add gc_screen field to
3087         track the screen that gc belongs to.
3089         * src/style-border.c (style_border_get_gc): Manage gc_screen.
3090         (style_border_unref): Ditto.
3092         * src/workbook-control-gui.c (workbook_create_standard_toolbar):
3093         Get pango context from toplevel widget.
3095         * src/preview-grid.c (preview_grid_draw): Get pango context from
3096         widget and pass it to pg_construct_cell.
3097         (pg_construct_cell): Remove bogus context construction from here.
3099 2003-05-20  Morten Welinder  <terra@gnome.org>
3101         * src/style-border.c (style_border_set_gc_dash): Set the
3102         background colour as previosly, not the foreground.  Ugh.
3104         * src/sheet-control-gui.c (sheet_control_gui_new): Use
3105         g_object_set_data, not gtk_object_set_data.
3107         * src/style-border.c (style_border_set_gc_dash): Use
3108         gdk_gc_set_rgb_fg_color, not gdk_gc_set_foreground.  USe
3109         gdk_gc_set_rgb_bg_color, not gdk_gc_set_background.
3110         (style_border_none_set_color): Ditto.
3111         (style_border_get_gc): Ditto.
3113         * src/item-grid.c (item_grid_realize): Ditto.
3114         * src/item-cursor.c (item_cursor_draw): Ditto.
3115         * src/pattern.c (gnumeric_background_set_pc): Ditto.  (#if 0'ed.)
3116         (gnumeric_background_set_gc): Ditto, more or less.
3118         * src/preview-grid.c (preview_grid_realize): Plug "white" out of
3119         the style.  Use gdk_gc_set_rgb_fg_color, not
3120         gdk_gc_set_foreground.
3122         * src/gnumeric-canvas.c (gnm_canvas_realize): Plug "white" out of
3123         the style.
3125         * src/style-color.c (gnumeric_color_init): Make gs_yellow,
3126         gs_white, gs_black, gs_dark_gray, gs_light_gray, and gs_lavender
3127         unallocated colours.  Eliminate unused gs_red.
3129         * src/item-bar.c (item_bar_realize): Use gdk_gc_set_rgb_fg_color,
3130         not gdk_gc_set_foreground for multi-head support.
3132         * src/style-color.h (struct _StyleColor): Remove redundant red,
3133         green, and blue members.  All users changed to use color member.
3135         * src/style-color.c (color_hash): Improve hash function (as if it
3136         mattered).
3138 2003-05-20  Jody Goldberg <jody@gnome.org>
3140         * src/sheet-object-graph.c (sheet_object_graph_remove_from_sheet) : new.
3141         (sheet_object_graph_class_init) : hook it up.
3143         * src/graph.c (gnm_go_data_vector_finalize) : free the values too.
3144         (gnm_go_data_scalar_set_sheet) : handle unlinking too.
3145         (gnm_go_data_vector_load_len) : only free the buffer if the length
3146           changed.
3147         (gnm_go_data_vector_set_sheet) : ditto.
3148         (cb_assign_val) : be smarter and collect min/max and do decent end
3149           checking.
3150         (nm_go_data_vector_load_values) : use the additional information.
3152 2003-05-19  Jody Goldberg <jody@gnome.org>
3154         * src/workbook-control-gui.c (wbcg_sheet_focus) : set the scg earlier
3155           as soon as the sheet gets focus.
3157         * configure.in : remove -Wsign-promo according to gcc-3.3 it is only
3158           valid for C++ now.
3160 2003-05-19  Morten Welinder  <terra@gnome.org>
3162         * src/history.c (file_history_cmd): Use GObject methods.
3163         (history_menu_item_create): Ditto.
3164         * src/gui-util.c (popup_item_activate): Ditto.
3166         * src/workbook-control-gui.c (workbook_create_standard_toolbar):
3167         Use gtk_widget_set_size_request, not gtk_widget_set_usize.
3168         (workbook_setup_auto_calc): Ditto.
3169         (show_gui): Ditto.
3170         (workbook_setup_edit_area): Ditto.  Also don't use an arbitrary
3171         pixel count.
3173         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
3174         Use gtk_widget_set_size_request, not gtk_widget_set_usize.
3176         * src/gui-util.c (gnumeric_error_info_dialog_new): Use
3177         gtk_widget_set_size_request, not gtk_widget_set_usize.  Also base
3178         size of window on screen size, not arbitrary pixel counts.
3180         * src/sheet-control-gui.c (scg_setup_group_buttons, scg_resize,
3181         scg_resize): Use gtk_widget_set_size_request, not
3182         gtk_widget_set_usize.
3184         * src/workbook-format-toolbar.c: Avoid GNOME deprecated pixmaps.
3186         * src/libgnumeric.c (gnm_common_init): Use glade_init, not
3187         glade_gnome_init.
3189         * src/gui-util.c (gnumeric_position_tooltip): Use gtk_window_move,
3190         not deprecated gtk_widget_set_uposition.
3191         (gnumeric_clist_moveto): Use "void *" as arg instead of deprecated
3192         "GtkCList *" so the many includers of gui-util.h do not get
3193         punished.
3195 2003-05-18  Morten Welinder  <terra@gnome.org>
3197         * src/*.c: Eliminate obvious deprecated stuff.
3199 2003-05-16  Jody Goldberg <jody@gnome.org>
3201         http://bugzilla.gnome.org/show_bug.cgi?id=106148.
3202         * src/expr.c (cellrange_relocate) : remove previous hack.  We're not
3203           changing the expression so don't pretend to.  The right solution is.
3204         * src/dependent.c (dependents_relocate) : here.
3205           Even if the expression does not change queue it for recalc.  We know
3206           it depends on the region, so it needs to recalc.
3208         * src/sheet.c (sheet_move_range) : queue dependencies of target region
3209           for recalc their expressions may not change but the content will.
3211 2003-05-16  Morten Welinder  <terra@gnome.org>
3213         * src/workbook-control-gui.c (workbook_setup_auto_calc,
3214         workbook_create_standard_toolbar): Use gnm_measure_string instead
3215         of incorrect and deprecated GdkFont stuff.
3217         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
3218         Ditto.
3220         * src/gui-util.c (gnm_measure_string): New function.
3222 2003-05-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
3224         * src/stf-parse.c (stf_parse_csv_cell): remove debug spew
3226 2003-05-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
3228         * src/GNOME_Gnumeric.xml: Fix spelling
3229         * src/workbook-control-gui.c: ditto
3231 2003-05-14  Jody Goldberg <jody@gnome.org>
3233         * src/workbook-control-gui.c (cb_notebook_switch_page) : set the edit
3234           line's scg if we are not in the middle of a rangesel.
3236         * src/xml-io.c (xml_read_names) : revert my previous error.
3237           We can't use parse_pos_init_sheet here because it will fail in the
3238           context of workbook level names.
3240         * src/position.c (parse_pos_init_sheet) : check for that.
3242 2003-05-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
3244         * src/gui-file.c (gui_file_open): change in charmap_selector_new
3245           arguments
3247 2003-05-14  Morten Welinder  <terra@gnome.org>
3249         * src/gutils.c (ldexpgnum): Use gnm_pinf and gnm_ninf.
3250         * src/regression.c (general_linear_regression): Ditto.
3252         * src/mathfunc.c (mathfunc_init): Generate gnm_pinf and gnm_ninf
3253         also.  Try much harder at making a NaN.
3255         * src/stf-export.c (stf_export_can_transliterate): Don't use
3256         fallback.  I think we want it to fail if it cannot transliterate
3257         the test string.
3259         * src/stf-export.h (StfExportOptions_t): Make quoting_char and
3260         cell_separator gunichars.
3262         * src/stf-export.c (stf_export_options_set_quoting_char,
3263         stf_export_options_set_cell_separator): Ditto.
3264         (stf_export_cell): Handle gunichar quoting.
3266 2003-05-13  Jody Goldberg <jody@gnome.org>
3268         * schemas/gnumeric-general.schemas.in : Sans 10 is the default font
3270 2003-05-13  Morten Welinder  <terra@gnome.org>
3272         * src/stf.c (stf_read_workbook): Set an error message so cancels
3273         won't cause blank books.
3275         * src/mathfunc.c (random_binomial): Use qbinom for sane time
3276         consumption.
3277         (random_negbinom): Use qnbinom for sane time consumption.
3279 2003-05-13  Jody Goldberg <jody@gnome.org>
3281         * src/gui-file.c (gui_file_open) : add mnemonics for the type and
3282           encoding selector.
3283         (file_format_changed_cb) : desensitize the label as well as the menu.
3285 2003-05-13  Jody Goldberg <jody@gnome.org>
3287         * src/pattern.c (gnumeric_pattern_get_stipple) : fence post.
3289 2003-05-13  Morten Welinder  <terra@gnome.org>
3291         * src/stf-parse.c (trim_spaces_inplace): Make UTF-8 safe.
3293 2003-05-12  Morten Welinder  <terra@gnome.org>
3295         * src/stf.c (stf_open_and_read): Fix crash on errors and empty
3296         files.  Fix return value for empty files.
3298         * src/xml-io.c (gnumeric_xml_write_workbook): Fix broken object
3299         handling.
3301 2003-05-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
3303         * src/stf-parse.c (compare_terminator) : return the byte
3304           length of the used terminator
3305         (stf_parse_paresoptions_new): initialize the string indicator
3306           to our default
3307         (stf_parse_next_token): pass all parse options, check also for
3308           separators and terminators
3309         (stf_parse_options_csv_set_stringindicator): the string
3310           indicator could be a non-ascii character
3311         (stf_parse_csv_cell): use the type information returned by
3312           stf_parse_next_token
3313         (stf_parse_eat_separators): Don't eat null bytes.
3314         (stf_parse_get_rowcount): use stf_parse_next_token to avoid
3315           counting in-string newlines
3316         * src/stf-parse.h (stf_parse_next_token): pass all parse
3317           options
3318         (stf_parse_options_csv_set_stringindicator): the string
3319           indicator could be a non-ascii character
3320         * src/stf.c (stf_read_workbook_auto_csvtab): stf_parse_next_token
3321           now needs a parseoption
3323 2003-05-12  Jody Goldberg <jody@gnome.org>
3325         * omf-install/Makefile.am : add missing ;
3327 2003-05-12  Jody Goldberg <jody@gnome.org>
3329         * configure.in : post release version bump
3331 2003-05-11  Jody Goldberg <jody@gnome.org>
3333         * Release 1.1.17
3335 2003-05-09  Jody Goldberg <jody@gnome.org>
3337         * src/item-edit.c (item_edit_set_arg) : Use connect_object and
3338           simplify the detroy function
3339         (item_edit_destroy) : by not having to recall the handler ids.
3341 2003-05-09  Jody Goldberg <jody@gnome.org>
3343         * src/workbook-control-gui.c (cb_data_pivottable) : disable until it
3344           does something.
3345         * src/GNOME_Gnumeric.xml : ditto.
3347 2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
3349         * src/stf-parse.c (comp_term): handle multibyte terminals
3350         (compare_terminator): check all terminators
3351         (stf_parse_options_new): initialize terminator list
3352         (stf_parse_options_free): free terminator list
3353         (long_string_first): new
3354         (stf_parse_options_set_line_terminator_char): deleted
3355         (stf_parse_options_set_line_terminator): deleted
3356         (stf_parse_options_clear_line_terminator): new
3357         (stf_parse_options_add_line_terminator): new
3358         (stf_parse_options_remove_line_terminator): new
3359         * src/stf-parse.h: Change type of StfParseOptions_t->
3360           terminator
3361         (stf_parse_options_set_line_terminator_char): deleted
3362         (stf_parse_options_set_line_terminator): deleted
3363         (stf_parse_options_clear_line_terminator): new
3364         (stf_parse_options_add_line_terminator): new
3365         (stf_parse_options_remove_line_terminator): new
3368 2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
3370         http://bugzilla.gnome.org/show_bug.cgi?id=99649
3371         * src/GNOME_Gnumeric.xml: insert separator between Open and
3372           Save of the File menu.
3373         * src/workbook-control-gui.c (workbook_menu_file): ditto
3376 2003-05-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
3378         * stf-export.c (stf_export_cell): transliterate if
3379           requested
3380         (stf_export_options_set_transliterate_mode): new
3381         (stf_export_can_transliterate): new
3383         * stf-export.h: Add StfTransliterateMode_t
3384         (stf_export_options_set_transliterate_mode): new
3385         (stf_export_can_transliterate): new
3387 2003-05-09  Morten Welinder  <terra@gnome.org>
3389         * src/format.h: Use gnumeric_regex_t, not regex_t.
3391         * configure.in: Check for memmove.  Add
3392         src/cut-n-paste-code/pcre/Makefile.
3394         * src/Makefile.am (gnumeric_app_libs): Add
3395         cut-n-paste-code/pcre/libpcre.a.
3397         * src/formats.c (currency_date_format_init): Switch to pcre
3398         (==perl) syntax in regular expressions.
3399         (cell_format_is_number): Use UTF-8 regexp
3400         routines.
3402         * src/number-match.c (char_to_re): Take a gunichar, just in case.
3403         (format_create_regexp): Take an unsigned char *.  Make UTF-8 safe.
3405         * src/regutf8.c: Switch to using pcre.
3407 2003-05-08  Morten Welinder  <terra@gnome.org>
3409         * src/cell-draw.c (cell_draw): Fix HALIGN_CENTER case when a cell
3410         overflows.
3412 2003-05-08  Andreas J. Guelzow <aguelzow@taliesin.ca>
3414         * src/stf.c (stf_read_workbook_auto_csvtab): use a locale dependent
3415         separator (same as argument separator)
3417 2003-05-07  Andreas J. Guelzow <aguelzow@taliesin.ca>
3419         * src/stf.c (stf_read_workbook): add encoding argument
3420         (stf_init): set configurable text import to accept encoding
3422 2003-05-07   Andreas J. Guelzow <aguelzow@taliesin.ca>
3424         For Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
3425         http://bugzilla.gnome.org/show_bug.cgi?id=111075
3426         * src/stf-export.c
3427         (stf_export_options_set_charset): new
3428         (stf_export_cell): add conversion to selected charset
3430         * src/stf-export.h
3431         (StfExportOptions_t): add charset
3433 2003-05-07  Andreas Guelzow <aguelzow@taliesin.ca>
3435         * src/regutf8.c (ISASCII): last ASCII is 0x7f
3437 2003-05-07  Andreas Guelzow <aguelzow@taliesin.ca>
3439         http://bugzilla.gnome.org/show_bug.cgi?id=100529
3440         * src/GNOME_Gnumeric.xml: Change `Open a....' to `Open a file'
3441           and `Create a new spreadsheet' to `Create a new workbook'
3442         * src/workbook-control-gui.c: Change `Opena....' to `Opena file'
3444 2003-05-06  Jody Goldberg <jody@gnome.org>
3446         * src/item-cursor.c (item_cursor_realize) : Use g_timeout_add
3447           directly.
3448         (item_cursor_unrealize) : shutdown the animation here, not at
3449           destruction.
3451 2003-05-03  Jody Goldberg <jody@gnome.org>
3453         For Martin Hoffmann <nvnc-relay@gmx.net>
3454         * src/workbook-edit.c (auto_complete_matches) : fix autocompletion in
3455           the face of multi byte characters.
3457 2003-05-03  Jody Goldberg <jody@gnome.org>
3459         * src/gui-util.c (color_combo_get_style_color) : fix leak.
3461 2003-05-02  Jody Goldberg <jody@gnome.org>
3463         * configure.in  : Tack on libart for the graphing.
3465 2003-05-01  Jody Goldberg <jody@gnome.org>
3467         * src/gnumeric-pane.c (cb_control_point_event) : make things a bit
3468           prettier.
3470 2003-05-06  Andreas Guelzow <aguelzow@taliesin.ca>
3472         http://bugzilla.gnome.org/show_bug.cgi?id=80806
3473         * src/stf-parse.h (StfTokenType_t): new enumeration
3474         (stf_parse_options_set_line_terminator): change argument type
3475         (stf_parse_options_set_line_terminator_char): new
3476         (stf_parse_next_token): new
3478         * src/stf-parse.c
3479         (stf_parse_options_set_line_terminator): change argument type
3480         (stf_parse_options_set_line_terminator_char): new
3481         (stf_parse_next_token): new
3482         (comp_term): new inline
3483         (compare_terminator): new inline and use throughout the file
3484         (stf_parse_csv_is_separator): rewrite
3485         (stf_parse_csv_cell): rewrite
3486         (stf_parse_eat_separators): new
3487         (stf_parse_csv_line): make UTF-8 clean
3489         * src/stf.c (stf_read_workbook): fix released memory access (thanks Morten)
3490         (stf_read_workbook_auto_csvtab): make UTF-8 clean and adjust guess to make
3491           it more likely to guess tsv rather than csv
3493 2003-05-06  Morten Welinder  <terra@gnome.org>
3495         * src/mathfunc.c (qbeta): Improve guess in log_p and lower_tail
3496         cases.
3497         (random_gaussian_pdf): Delete and use dnorm instead.
3498         (random_normal): Use the unit-circle method to generate two
3499         normally distributed numbers at a time.
3500         (random_lognormal): Use our own method based on random_normal.
3502 2003-05-06  Guntupalli Karunakar  <karunakar@freedomink.org>
3504         * configure.in: Added "hi" in ALL_LINGUAS.
3506 2003-05-05  Andreas Guelzow <aguelzow@taliesin.ca>
3508         * stf.c (stf_read_workbook_auto_csvtab): make guesswork UTF-8
3509           clean and make it more likely to guess tsv
3511 2003-05-05  Morten Welinder  <terra@gnome.org>
3513         * src/mathfunc.c (pfuncinverter): New function, extracted from
3514         qgamma.
3515         (qgamma): Use pfuncinverter.
3516         (qbeta): Replace R's version by pfuncinverter-based one.
3517         (dbeta): New from R.
3519 2003-05-05  Andreas Guelzow <aguelzow@taliesin.ca>
3521         * src/Makefile.am: removed src/charset.[ch]
3522         * src/charset.[ch]: removed (replaced by
3523           src/widgets/widget-charmap-selector.[ch])
3524         * src/gui-file.c: replaced data block CharmapChooser by
3525           widget CharmapSelector including the corresponding
3526           function calls
3528 2003-05-05  Andreas Guelzow <aguelzow@taliesin.ca>
3530         * src/charset.c (make_charmap_chooser): move declarations
3531           where they belong
3533 2003-05-05  Andreas Guelzow <aguelzow@taliesin.ca>
3535         * src/charset.c (set_encodings_menu): handle unknown
3536           locale encoding
3538 2003-05-05  Andreas Guelzow <aguelzow@taliesin.ca>
3540         * src/bonobo-io.c (gnm_persist_stream_load): add argument
3541           to call of wb_view_new_from_input
3543         * src/charset.c: new file
3544         * src/charset.h: new file
3545         * src/file-priv.h: (_GnmFileOpenerClass): add argument to
3546           declaration of open method
3547         (_GnmFileOpener): add encoding_dependent field
3548         (gnm_file_opener_setup): add argument
3550         * src/file.c (gnm_file_opener_open_real): new argument to pass
3551           to open call
3552         (gnm_file_opener_setup): new argument to be used for
3553           initialization of added field
3554         (gnm_file_opener_new): add argument to call of
3555           gnm_file_opener_setup
3556         (gnm_file_opener_new_with_enc): new function
3557         (gnm_file_opener_is_encoding_dependent): new function
3558         (gnm_file_opener_open): new argument
3560         * src/file.h (GnmFileOpenerOpenFuncWithEnc): new type
3561         (gnm_file_opener_new_with_enc): new function
3562         (gnm_file_opener_open): new argument
3563         (gnm_file_opener_is_encoding_dependent): new function
3565         * src/gui-clipboard.c (table_cellregion_read): add argument
3566           to call of wb_view_new_from_input
3568         * src/gui-file.c (file_format_changed_cb_data): new type
3569         (make_format_chooser): only make option menu
3570         (gui_file_read): new argument to be passed to call of
3571           wb_view_new_from_file
3572         (file_format_changed_cb): new callback
3573         (gui_file_open): add encoding selector to load file dialog
3575         * src/gui-file.h (gui_file_read): new argument
3576         * src/history.c (file_history_cmd): add argument to call of
3577           gui_file_read
3579         * src/main-application.c (main): add argument to call of
3580           wb_view_new_from_file
3582         * src/plugin-service.c (gnm_plugin_file_opener_open): new
3583           argument
3584         (gnm_plugin_file_opener_new): add argument to call of
3585           gnm_file_opener_setup
3587         * src/stf.c (stf_open_and_read): new argument
3588         (stf_preparse): handle encoding conversion
3589         (stf_read_workbook_auto_csvtab): new argument to be passed to
3590           the call of stf_parse
3591         (stf_init): setup encoding
3593         * src/workbook-view.c (wb_view_new_from_input): new argument to be
3594           passed to the call of gnm_file_opener_open
3595         (wb_view_new_from_file): new argument to be passed to the call of
3596           wb_view_new_from_input
3598         * src/workbook-view.h (wb_view_new_from_input): new argument
3599         (wb_view_new_from_file): new argument
3601 2003-05-02  Morten Welinder  <terra@gnome.org>
3603         * src/gnumeric-canvas.h (GNUMERIC_CANVAS_FACTOR_Y): Up size to
3604         6000000 which seems to be enough for acuster.  It's a kludge,
3605         though.
3607 2003-05-01  Morten Welinder  <terra@gnome.org>
3609         * src/mathfunc.c (fmin2, fmax2, imin2, imax2): Make these inline
3610         functions instead of macros.  (The R versions are functions.)
3611         (gammafn): Delete.
3613         * src/mstyle.c (mstyle_get_pango_attrs): Add zoom parameter.
3614         * src/rendered-value.c (rendered_value_new): Supply zoom.
3616 2003-05-01  Jody Goldberg <jody@gnome.org>
3618         * src/sheet-object.c (sheet_object_default_size) : simplify.
3619         (sheet_object_update_bounds) : call position_changed to let the model
3620           know the size/position have changed not just the views.
3623         * src/sheet-object-graph.c (sheet_object_graph_position_changed) :
3625 2003-05-01  Morten Welinder  <terra@gnome.org>
3627         * src/gutils.c (g_unichar_strstr_utf8, g_unichar_strchr,
3628         g_unichar_strncmp, g_unichar_strlen): Delete.
3630         * src/sheet.c (cb_sheet_get_extent): Per Jody, let's respan here
3631         when needed.
3633 2003-04-29  Morten Welinder  <terra@gnome.org>
3635         * src/mathfunc.c (mathfunc_init): New function.
3637         * src/libgnumeric.c (gnm_common_init): Call mathfunc_init.
3639 2003-04-28  Jody Goldberg <jody@gnome.org>
3641         * configure.in : I'm a lazy bugger and will just commit the
3642           directories for the goffice work.
3644         * src/sheet-object-graph.c (sheet_object_graph_default_size) : Use the
3645           graph's notion of its default size.
3646         (sheet_object_graph_class_init) : init here.
3648 2003-04-28  Morten Welinder  <terra@gnome.org>
3650         * src/commands.c (cmd_area_set_text_undo): Restore formats too.
3651         (cmd_set_text_redo): Handle auto-format.
3652         (cmd_set_text_undo): Undo via pasting.
3654         * src/auto-format.c (auto_style_format_suggest): Ref the result.
3656         * src/format.c (style_format_default_money): Make the default
3657         format be the one using ()s and red negatives.
3659 2003-04-26  Jody Goldberg <jody@gnome.org>
3661         * src/position.c (parse_pos_init_sheet) : new convenience routine.
3662           Use it all over the place.
3664         * src/gui-util.c (gnm_setup_label_atk) : update.
3666         * src/workbook-control-gui.c (cb_graph_dim_editor_update) : signature
3667           change for the GnmExprEntry::update signal.
3669 2003-04-25  Jody Goldberg <jody@gnome.org>
3671         * configure.in : bump gsf version req to force the use of CVS.
3673         * src/ranges.c (range_trim) : do a pre-emptive clip to the existing
3674           region to ameliorate the cost.
3676 2003-04-25  Morten Welinder  <terra@gnome.org>
3678         * src/Makefile (gnm-marshalers.c): Add an #include to the
3679         generated file.
3681 2003-04-23  Jody Goldberg <jody@gnome.org>
3683         * src/workbook-edit.c (wbcg_edit_ctor) : set the wbcg early.
3685 2003-04-22  Jody Goldberg <jody@gnome.org>
3687         * src/gnm-marshalers.list : add NONE:BOOLEAN
3689         * src/sheet-control-gui.c (scg_select_all) : pretend that we
3690           drag selected the range to fire an update signal even if the
3691           exprentry's update_policy is discontinuous.
3692         (scg_rangesel_extend) : keyboard changes cause an update too.
3693         (scg_rangesel_move) : ditto.
3694         * src/item-bar.c (item_bar_event) : ditto.
3696 2003-04-22  Morten Welinder  <terra@gnome.org>
3698         * src/gui-clipboard.c (x_request_clipboard): Follow cut-and-paste
3699         preference.
3701         * src/gnumeric-gconf.c (gnm_conf_init): Set initial cut-and-paste
3702         preference.
3703         (gnm_gconf_set_prefer_clipboard_selection): New function.
3705         * src/formats.c (currency_date_format_init): Improve error
3706         messages.
3708 2003-04-22  Jody Goldberg <jody@gnome.org>
3710         * doc/xmldocs.make : install docs where libgnome expects them
3711           now something actually happens, although it is dog slow.
3713 2003-04-21  Jody Goldberg <jody@gnome.org>
3715         * src/mstyle.c (mstyle_hash) : adjust to allow styles from different
3716           sheets to hash the same despite auto colours that have different
3717           instances.
3718         (mstyle_element_equal) : ditto.
3720         * src/sheet.c (sheet_destroy) : free the names last to make debugging
3721           easier.
3723 2003-04-19  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3725         * src/commands.c: Implemented Undo/Redo for data shuffling.
3727         * src/commands.c: Implemented Undo/Redo for scenario->manager.
3729 2003-04-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3731         * src/sheet.c (sheet_move_range): Added a call to update scenarios.
3733         * src/commands.c: Implemented Undo/Redo for scenario->add.
3735 2003-04-16  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3737         * src/xml-io.c (xml_read_scenarios): Use global_range_parse
3738         instead of parse_range.
3740 2003-04-15  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3742         * src/xml-io.c (xml_read_scenarios): Wrote. Reads scenarios of a
3743         sheet.
3744         (xml_write_scenarios): Wrote. Stores scenarios of a sheet.
3745         (xml_node_set_value): Wrote.
3746         (xml_node_get_value): Wrote.
3747         (xml_sheet_write): Added a call to write scenarios.
3748         (xml_sheet_read): Added a call to read scenarios.
3750 2003-04-12  Jody Goldberg <jody@gnome.org>
3752         * src/workbook-control-gui.c (cb_graph_guru_done) : new.
3753         (cb_launch_graph_guru) : simplify the DataAllocator interface.
3754           The whole edit_{begin/end} was needed for wbcg.  We can handle that
3755           here directly without extending the interface.
3757 2003-04-12  Jody Goldberg <jody@gnome.org>
3759         * icons/chart* : fix the background transparency.
3760         * *.c : Use g_type_class_peek_parent and tidy up upchaining a bit
3761           to be more consistent across all classes.
3763         * schemas/Makefile.am :  no need to install or translate the
3764           plot-types file those are migrating to the plot plugins.
3766 2003-04-11  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3768         * src/sheet.c (sheet_delete_rows, sheet_delete_cols,
3769         sheet_insert_rows, sheet_insert_cols): Update scenarios.
3771 2003-04-11  Morten Welinder  <terra@gnome.org>
3773         * src/print.c (print_job_info_get): Use
3774         gnome_font_face_find_closest for a 0.1% drop in suckage.
3776 2003-04-11  Morten Welinder  <terra@gnome.org>
3778         * src/print-info.c (print_info_save): Store the printer
3779         configuration too.
3781         * src/gnumeric-gconf.c (gnm_gconf_set_printer_config): New
3782         function replacing all other gnm_gconf_set_printer_* functions.
3783         (gnm_conf_init): Get new printer-config key, not the old printer
3784         config keys.
3786         * src/print.c (print_job_info_set_one_time_defaults): Just use
3787         gnome_print_config_from_string.
3788         (print_job_info_save_one_time_defaults): Just use
3789         gnome_print_config_to_string.
3791 2003-04-10  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3793         * src/workbook-control-gui.c: Added scenario tool.
3795         * src/sheet.c (sheet_destroy): Added scenarios free call.
3796         (sheet_dup): Added scenarios copy call.
3798 2003-04-09  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3800         * src/sheet.c (sheet_new): Initialize scenarios field.
3802         * src/sheet.h: Added scenarios field.
3804 2003-04-06  Jody Goldberg <jody@gnome.org>
3806         * src/workbook-control-gui.c (wbcg_go_plot_data_allocator_init) :
3807           conditionalize the graphing extensions.
3809 2003-04-04  Jody Goldberg <jody@gnome.org>
3811         * schemas/Makefile.am : remove plot-types.xml that will be handled in
3812           the plotting plugins now.  Remove file and move images later.
3814 2003-04-02  Jody Goldberg <jody@gnome.org>
3816         * src/plugin-loader-module.c : remove gobject loader capabilities and
3817           just sponge off of gobject directly.
3819 2003-04-03  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3821         * src/workbook-control-gui.c, src/GNOME_Gnumeric.xml: Added a new
3822         filling tool just like in XL.
3824 2003-04-02  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
3826         * src/workbook-control-gui.c: Added a new tool for data shuffling.
3828 2003-03-30  Morten Welinder  <terra@diku.dk>
3830         * src/func.c (function_remove): Prevent crash if the function is
3831         no longer there.
3833 2003-03-27  Jody Goldberg <jody@gnome.org>
3835         * src/xml-io.h : add missing decls for
3836           xml_node_get_bool, xml_node_set_bool.
3838         * src/style.c (style_font_new_simple) : doh!  Thanks Morten.
3840 2003-03-26  Morten Welinder  <terra@diku.dk>
3842         * src/style.c (style_font_string_width): Dont'ask for height just
3843         to throw it away.
3845 2003-03-26  Jody Goldberg <jody@gnome.org>
3847         * src/pattern.c (gnumeric_background_set_gc) : trivial optimization to
3848           avoid multiple calls to gdk_gc_set_values.
3849         (gnumeric_pattern_get_stipple) : no need to publicize this for now.
3850           simply a bit.
3852         * src/commands.c (command_register_undo) : handle 0 sized command
3853           queues by keeping a ref to the current command in case the
3854           truncation unrefs it.
3856         * src/workbook-control-gui.c (workbook_control_gui_ctor_class) : be
3857           more resilient in the face of incomplete installs.
3859 2003-03-21  Morten Welinder  <terra@diku.dk>
3861         * src/rendered-value.c (cell_get_render_color): Work around the
3862         work-around for bug 105322.
3864 2003-03-20  Morten Welinder  <terra@diku.dk>
3866         * src/xml-io.c (gnumeric_xml_write_workbook): Remove gratuitous
3867         const cast.
3869 2003-03-18  Jody Goldberg <jody@gnome.org>
3871         * src/gui-util.c (gnumeric_inject_widget_into_bonoboui) : make it more
3872           forgiving in the face of installation problems.
3874 2003-03-17  Jody Goldberg <jody@gnome.org>
3876         * src/dependent.c (name_dep_debug_name) : new.
3877         (dynamic_dep_eval) : new.
3878         (dependent_types_init) : register name pseudo type a name is not
3879           really a dependent, but it is useful for relocation to have a unique
3880           type for it.
3882         * src/dependent.h : Add relocation flavour to handle the needs of
3883           names and potentially eventually sorting.
3885         * src/clipboard.c (clipboard_paste_region) : set relocation flavour.
3886         * src/sheet-autofill.c (autofill_cell) : ditto.
3887         * src/sheet.c (cb_set_cell_content) : ditto.
3888         * src/workbook.c (workbook_sheet_detach) : ditto.
3890         * src/item-edit.c (recalc_spans) : support the use of partial columns
3891           at the edges.
3892         * src/sheet-control-gui.c (gnm_canvas_make_cell_visible) : don't
3893           scroll past the requested col/row if it is larger than the screen.
3895 2003-03-15  Jody Goldberg <jody@gnome.org>
3897         * src/file.h : fix the naming of a few methods (Still needs cleanup)
3898           and add gnm_file_saver_for_file_name.
3900 2003-03-19  Guntupalli Karunakar  <karunakar@freedomink.org>
3902         * configure.in: Added "ml" in ALL_LINGUAS
3904 2003-03-14  Jody Goldberg <jody@gnome.org>
3906         * src/gutils.h (GNM_SIZEOF_ARRAY) : delete and use G_N_ELEMENTS
3908 2003-03-13  Jody Goldberg <jody@gnome.org>
3910         * src/stf.c (stf_text_to_columns) : patch warning.
3912         * src/plugin-service.c : Add ServiceSimple as a convenience base for
3913           plugin services that are only data, no exectution.
3915         * src/plugin-loader.c (gnumeric_plugin_loader_load_service) : add
3916           simple service as a convenience base class.
3917         (gnumeric_plugin_loader_unload_service) : ditto.
3919         * src/main-application.c : underscores in command line args are ugly.
3921 2003-03-12  Jody Goldberg <jody@gnome.org>
3923         http://bugzilla.gnome.org/show_bug.cgi?id=108225
3924         * src/format.c (append_hour_elapsed) : why did I round this ?
3925           Ideally we need to know the display precision to round correctly.
3927         * src/gui-util.c (cb_keyed_dialog_keypress) : new.
3928         (gnumeric_keyed_dialog) : initialize it here so that all the keyed
3929           dialogs get support for quiting when Escape is pressed.
3931 2003-03-07  Morten Welinder  <terra@diku.dk>
3933         * src/value.c (value_peek_string): Use G_N_ELEMENTS.
3934         * src/regutf8.c (test): Ditto.
3935         * src/gnumeric-pane.c (gnm_pane_init): Ditto.
3937         * src/main-component.c (n_zoom_levels): Replace with use of
3938         G_N_ELEMENTS macro.
3940 2003-03-06  Jody Goldberg <jody@gnome.org>
3942         * src/sheet-control-gui.c (scg_queue_movement) : new.
3943         (cb_scg_queued_movement) : ditto.
3944         (scg_init) : init the delayed movement handler.
3945         (scg_finalize) : clear the delayed movment handler.
3947         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : use the motion
3948           compression here for paging.
3950 2003-03-05  Jody Goldberg <jody@gnome.org>
3952         * src/test-pango.c (main) : init initial_workbook_open_complete so
3953           that things exit on last unref.
3955         * src/item-grid.c (item_grid_button_press) : more morton warnings.
3957 2003-03-05  Morten Welinder  <terra@diku.dk>
3959         * src/format-template.c (format_template_save): Fix grave
3960         integer/gboolean confusion.
3962         * src/workbook-control-gui.c (workbook_close_if_user_permits): Fix
3963         grave integer/gboolean confusion.
3965         * src/xml-io.c (xml_node_set_color): Fix pointer/integer
3966         confusion.
3968         * src/consolidate.c (cb_col_tree): Fix return type.
3970         * src/style-border.c (style_border_fetch): Fix pointer/integer
3971         confusion.
3973         * src/workbook.c (workbook_date_conv): Fix pointer/gboolean
3974         confusion.
3976 2003-02-28  Morten Welinder  <terra@diku.dk>
3978         * src/mathfunc.c (random_01): Get larger chunks of randomness.
3979         People who need randomness tend to need a lot.
3981 2003-02-26  Morten Welinder  <terra@diku.dk>
3983         * src/rendered-value.h: No more rendered_text member.
3985         * src/rendered-value.c (rendered_value_destroy): Don't release
3986         rendered_text.
3987         (rendered_value_new): Don't set rendered_text.  Change to using
3988         format_value_gstring.  Recycle the GString.
3989         (rendered_value_get_text): Don't check rendered_text because we
3990         don't use it.
3991         (cb_rendered_value_pool_leak): Use the pango text.
3993         * src/print-cell.c (print_cell): Use the pango text.
3995         * src/print-info.c (render_value_with_format): Use
3996         format_value_gstring.
3998         * src/format.c (format_number): Change to take a GString *
3999         argument.  All callers changed.
4000         (fmt_general_float): Ditto.
4001         (fmt_general_int): Ditto.
4002         (format_value_gstring): New function copied from format_value.
4003         (format_value): Changed to a simple wrapper around
4004         format_value_gstring.
4006         * src/formats.c (cell_format_is_number): Don't redefine macro.
4008 2003-02-24  Morten Welinder  <terra@diku.dk>
4010         * src/sheet-object-bonobo.c (sheet_object_bonobo_set_object_iid):
4011         Don't use '== TRUE'.
4013         * src/rendered-value.c (rendered_value_new): Don't specify the
4014         text length for the layout text.  strlen takes time and
4015         pango_layout_set_text is going to walk over the string anyway.
4017 2003-02-24  Morten Welinder  <terra@diku.dk>
4019         * src/xml-io.c (xml_read_styles): Count blank nodes too for
4020         progress update purposes.
4021         (xml_sheet_read): Ditto.
4023 2003-02-23  Morten Welinder  <terra@diku.dk>
4025         * src/format.c (render_number): Use g_string_append_len instead of
4026         g_string_append a few places where we know the length.  That saves
4027         a strlen call.
4029         * */*.c */*/*.c: s/g_string_new ("")/g_string_new (NULL)/.
4030         The latter saves a strlen call.
4032 2003-02-21  Morten Welinder  <terra@diku.dk>
4034         * src/style.c (style_font_new_simple): Set language on pango
4035         context.
4036         * src/clipboard.c (cellregion_to_string): Ditto.
4037         * src/sheet.c (sheet_new): Ditto.
4039 2003-02-18  Jody Goldberg <jody@gnome.org>
4041         * src/workbook-view.c (wb_view_new_from_input) : you can't probe
4042           content if there is no probe function.
4044 2003-02-17  Jody Goldberg <jody@gnome.org>
4046         http://bugzilla.gnome.org/show_bug.cgi?id=106148.
4047         * src/expr.c (cellrange_relocate) : In situations where only part of a
4048           range ref is moving we may not need to change the expression.
4049           However, thiings will not be queued for recalc if the expression is
4050           not changed, so pretend to change it.
4052 2003-02-15  Jody Goldberg <jody@gnome.org>
4054         * src/plugin-loader-module.c
4055         (gnumeric_plugin_loader_module_load_service_plugin_loader) : simplify.
4057 2003-02-11  Jody Goldberg <jody@gnome.org>
4059         * src/plugin-service.c (plugin_service_new) : use a hash table for the
4060           service types.
4061         (plugin_services_init) : new to define the builtin services.
4062         (plugin_services_shutdown) : new.
4063         (plugin_service_define) : allow the definition of new service types.
4065 2003-02-10  Morten Welinder  <terra@diku.dk>
4067         * src/xml-io.c (xml_read_cell_copy): Fix 104669.
4069 2003-02-09  J.H.M. Dassen (Ray) <jdassen@debian.org>
4071         * schemas/gnumeric-dialogs.schemas.in,
4072         schemas/gnumeric-general.schemas.in: Added <list_type>s to fix the
4073         warnings on schema installation.
4075 2003-02-08  Jody Goldberg <jody@gnome.org>
4077         * configure.in : Remove tests for evolution.  We can use the simpler
4078           command line interface with far fewer worries.
4079         * configure.in : remove mr_IN until there is content
4081 2003-02-07  Morten Welinder  <terra@diku.dk>
4083         * src/rendered-value.h: Store a GdkColor here in order to work
4084         around http://bugzilla.gnome.org/show_bug.cgi?id=105322.
4086 2003-02-03  Jody Goldberg <jody@gnome.org>
4088         * src/workbook-view.c (wb_view_new_from_input) : A name match needs to
4089           be a content match too.
4090         (wb_view_new_from_file) : suppress warnings.
4092 2003-02-02  Jody Goldberg <jody@gnome.org>
4094         * src/mstyle.c (mstyle_get_pango_attrs) : The mstyle uses the ref to
4095           the new list so we need to add a ref for the result.
4097 2003-02-01  J.H.M. Dassen (Ray) <jdassen@debian.org>
4099         * README: Updated; added Debian package names.
4101 2003-01-28  Jody Goldberg <jody@gnome.org>
4103         * src/commands.c (cmd_area_set_text_redo) : fix minor warning from
4104           autoformating.
4106 2003-01-28  Morten Welinder  <terra@diku.dk>
4108         * src/mstyle.c (mstyle_get_pango_attrs): Cache attributes.
4109         (struct _MStyle): new member pango_attrs.
4110         (mstyle_pango_clear): New function.
4111         (mstyle_new): Set pango_attrs.
4112         (mstyle_copy): Duplicate pango_attrs.
4113         (mstyle_unref): Clear pango_attrs.
4114         (mstyle_set_color): Ditto.
4115         (mstyle_set_font_name): Ditto.
4116         (mstyle_set_font_bold): Ditto.
4117         (mstyle_set_font_italic): Ditto.
4118         (mstyle_set_font_uline): Ditto.
4119         (mstyle_set_font_strike): Ditto.
4120         (mstyle_set_font_size): Ditto.
4122 2003-01-28  Morten Welinder  <terra@diku.dk>
4124         * src/workbook-control-gui.c (cb_rerender_zeroes): Rerender cells
4125         that are zero when toggling the hide-zeroes flag.
4127         * src/value.c (find_column_of_field): Don't refer to rendered
4128         text, because that is not what is meant.  Use value_get_as_string
4129         for now.
4131         * src/style.c (style_font_new_simple): Create a
4132         PangoFontDescription also (for the benefit of
4133         mstyle_get_pango_attrs.)
4134         (style_font_unref): Get rid of it.
4135         (style_font_text_width): Delete.
4137         * src/stf-export.c (stf_export_cell): Don't use rendered text, use
4138         the result of value_get_as_string.  Perhaps this should be a
4139         format call.
4141         * src/sheet.c (sheet_new): Create a PangoContext and store it in
4142         the sheet.
4143         (sheet_destroy): Unref it.
4145         * src/rendered-value.c (rendered_value_new): Take and use a
4146         PangoContext for creating layouts.  Place the string into the
4147         layout.  Handle zero-blanking here.  Process and store all mstyle
4148         info, either in layout or in RenderedValue itself.  Implement
4149         HALIGN_JUSTIFY modulo a Pango bug.  Implement HALIGN_FILL
4150         correctly for multi-line cells.
4152         * src/preview-grid.c (pg_construct_cell): Changed to match new
4153         conventions for rendering cells.
4155         * src/mstyle.c (mstyle_get_pango_attrs): Handle font also.
4157         * src/cell-draw.c (cell_draw): Rework to let Pango handle much of
4158         the alignment and line-breaking issues.  Clean out #includes.
4159         Move gdk_gc_set_fill calls into callers.  (Or rather into their
4160         setup routines.)
4162         * configure.in: post release bump.
4164 2003-01-28  Jody Goldberg <jody@gnome.org>
4166         * Release 1.1.16
4168 2003-01-27  Jody Goldberg <jody@gnome.org>
4170         * schemas/gnumeric-general.schemas.in : Override the default toolbar
4171           layout to be icon only.  It can still be changed by clicking on the
4172           toolbar, but at least the default is less ugly.
4174 2003-01-26  Jody Goldberg <jody@gnome.org>
4176         * src/gui-file.h : remove unnecessary bonobo specific interface.
4177           libgsf wraps all of that now.
4179 2003-01-27  Morten Welinder  <terra@diku.dk>
4181         * src/print.c (print_page, print_job_info_get,
4182         print_job_info_destroy): Make robust with respect to missing
4183         fonts.
4185 2003-01-25  J.H.M. Dassen (Ray) <jdassen@debian.org>
4187         * configure.in: Consistently require libgsf 1.7.1. Thanks Christian
4188         Biesinger.
4190 2003-01-24  Morten Welinder  <terra@diku.dk>
4192         * src/format.c (format_number): Allow more digits in fractions and
4193         use continued_fraction.
4195         * src/mathfunc.c (continued_fraction): New function.
4197 2003-01-23  Jody Goldberg <jody@gnome.org>
4199         For Murray Cumming  <murrayc@usa.net>
4200         * configure.in: Now uses libgnomeprint*-2.2 instead of 2.0, for GNOME
4201         2.2. It is an API-incompatible, parallel-installable separate library.
4202         * src/print.c, src/dialogs/dialog-printer-setup.c:
4203         Made code changes (search/replace) as per Chema's instructions.
4205 2003-01-23  Jon K Hellan  <hellan@acm.org>
4207         * src/gui-clipboard.c (table_cellregion_read): Initalize wb and
4208         wb_view to NULL, check against NULL before unrefing.
4209         (complex_content_received): const char* reader_id.
4210         (x_clipboard_clear_cb): Remove incorrect comment.
4211         (x_request_clipboard): Update confusing variable name 'primary' to
4212         'clipboard'.
4214 2003-01-23  Jody Goldberg <jody@gnome.org>
4216         For Wayne Schuller  <k_wayne@linuxpower.org>
4217         * src/print-info.c (print_info_new, print_info_save): Implement the 'fit-to' feature.
4218           Scaling is now broken into x and y. They are equal when normal
4219           scaling is being used (so we just use the x value)
4220          * src/print.c (print_page_cells, setup_scale, print_page,
4221            compute_group, compute_scale_fit_to,
4222            print_range_down_then_right, print_range_right_then_down): Ditto.
4223         * src/xml-io.c (xml_write_print_info), (xml_read_print_info): We
4224           don't save the x and y attributes, but just the x attribute for
4225           general percentage scaling.
4227         * plugins/excel/ms-excel-read.c (excel_read_SETUP): Ditto.
4228         * plugins/xml_sax/xml-sax-read.c (xml_sax_print_scale): Ditto.
4230 2003-01-22  Jody Goldberg <jody@gnome.org>
4232         * configure.in : bump the gsf req to reflect the updated xml api
4233           names.
4235 2003-01-21  Jody Goldberg <jody@gnome.org>
4237         * src/format.c (append_hour_elapsed) : rewrite to use rounding and to
4238           handle negatives.  Still not really correct and can not handle
4239           fractional seconds.
4240         (append_minute_elapsed) : ditto.
4241         (append_second_elapsed) : ditto.
4242         (split_time) : remove vile static variable.
4244         For Nicolas Peninguy :
4245         http://bugzilla.gnome.org/show_bug.cgi?id=102236
4246         * src/formats.c : decrease dependence on glibc regexp extensions.
4248 2003-01-20  Jon K Hellan  <hellan@acm.org>
4250         * src/gui-clipboard.c (table_cellregion_read): New function. Read
4251         from selection, interpreting as table.
4252         (text_received): New function. Receive text from
4253         gtk_clipboard_receive_text.
4254         (complex_content_received): New function. Receive non-textual
4255         content from clipboard. Factored out of x_clipboard_received.
4256         Fix leak of clipboard_paste_callback_data.
4257         (x_clipboard_received): Accept html and OpenOffice archive
4258         format. Factor out receipt of text and other formats to
4259         text_received and complex_content_received.
4261 2003-01-14  Jon K Hellan  <hellan@acm.org>
4263         * src/io-context-gtk.[ch] (icg_set_transient_for): New
4264         function. Set transient_parent attribute, and call
4265         gtk_window_set_transient if we already have a window. On most
4266         window managers, this will put the splash screen on top of the
4267         transient parent.
4269         * src/io-context-gtk.c (struct _IOContextGtk): Add
4270         transient_parent attribute.
4271         (cb_icg_window_destroyed): Clear transient_parent attribute.
4272         (icg_show_gui): Call gtk_window_set_transient if transient_parent
4273         attribute is set.
4275         * src/main-application.c (main): Call icg_set_transient_for after
4276         each workbook is opened - yet another hack to keep the splash
4277         screen on top of the workbooks.
4279 2003-01-14  Morten Welinder  <terra@diku.dk>
4281         * src/rendered-value.h: Delete render_color member.
4283         * src/rendered-value.c (cell_get_render_color): Change to return a
4284         PangoColor pointer that includes any explicit foreground colour.
4285         All callers changed.
4286         (rendered_value_new): Don't store render_color.
4287         (rendered_value_destroy): Don't release render_color.
4289         * src/print-cell.c (print_cell): Use cell_get_render_color (for
4290         now).
4292 2003-01-13  Morten Welinder  <terra@diku.dk>
4294         * src/rendered-value.c (rendered_value_new): Create a matching
4295         PangoAttrList.
4296         (rendered_value_calc_size_ext): Constify.
4298         * src/cell-draw.c (cell_draw): Use the rendered value's
4299         attributes.
4301         * src/mstyle.c (mstyle_get_pango_attrs): New function.
4303         * src/style.c (style_font_new_simple): Explicitly set a colour map
4304         for the pango context.
4306         * src/item-grid.c (cb_cursor_come_to_rest): Constify.
4308 2003-01-10  Morten Welinder  <terra@diku.dk>
4310         * src/workbook-control-gui.c (zoom_changed): buffer size paranoia.
4312         * src/workbook-format-toolbar.c (workbook_create_format_toolbar):
4313         Ditto.
4314         (workbook_feedback_set): Ditto.
4316 2003-01-08  Jody Goldberg <jody@gnome.org>
4318         Patch from Theppitak Karoonboonyanan for
4319         http://bugzilla.gnome.org/show_bug.cgi?id=84062
4320         * src/gnumeric-canvas.c (gnm_canvas_retrieve_surrounding_cb) : new.
4321         (gnm_canvas_delete_surrounding_cb) : new.
4322         (gnm_canvas_init) : connect them up.
4324 2003-01-07  Morten Welinder  <terra@diku.dk>
4326         * src/parse-util.h (GnmParseFunctionHandler): don't take a user
4327         pointer, but the conventions instead.
4329         * src/parser.y: Supply convs to handlers.  Look up functions in
4330         rewriter hash and act accordingly.
4332 2003-01-07  Morten Welinder  <terra@diku.dk>
4334         * src/regression.c (matrix_invert): Return value was transposed.
4335         Not good.
4337 2003-01-04  Jon K Hellan  <hellan@acm.org>
4339         * src/sheet-object-widget.c (sheet_widget_scrollbar_user_config)
4340         (sheet_widget_checkbox_user_config): Remove grab_focus. Not needed
4341         in GTK2, plus didn't work since expr_entry no longer is a subclass
4342         of GtkEntry.
4344 2003-01-03  Jon K Hellan  <hellan@acm.org>
4346         * src/item-grid.c (cb_cursor_come_to_rest): Don't display empty
4347         tooltip.
4349         * src/hlink.c (gnm_hlink_cur_wb_activate): Test and complain if
4350         target is neither range nor name.
4352 2003-01-03  Jody Goldberg <jody@gnome.org>
4354         * src/position.h : Some minor arg name cleanup.
4356         * src/commands.c (cmd_area_set_text_redo) : really fix it this time.
4358         * src/sheet.c (sheet_foreach_cell_in_range) : fix minor typo.
4360         * src/rendered-value.c (rendered_value_new) : handle preview grid's
4361           use without a sheet.
4363 2003-01-02  Jody Goldberg <jody@gnome.org>
4365         * src/xml-io.c (xml_workbook_write) : export quick hack for 1904 date
4366           convention.  The positioning is silly.
4367         (xml_workbook_read) : read it back.
4369 2003-01-01  Jody Goldberg <jody@gnome.org>
4371         * gnumeric.desktop.in : Add StartupNotify=true
4373 2003-01-02  Morten Welinder  <terra@diku.dk>
4375         * src/regression.c (matrix_invert): New function.
4376         (matrix_determinant): New function.
4377         (LUPDecomp): Add an argument in which to return determinant.
4378         (rescale): Add an argument in which to return determinant scaling.
4380         * src/mathfunc.c (mdeterm, minverse): Delete.
4382 2003-01-01  J.H.M. Dassen (Ray) <jdassen@debian.org>
4384         * debian/changelog, debian/control, debian/gnumeric-doc.dirs,
4385         debian/rules: Updated.
4387 2003-01-01  Jody Goldberg <jody@gnome.org>
4389         * configure.in : post release bump
4391 2002-12-31  Jody Goldberg <jody@gnome.org>
4393         * Release 1.1.15
4395 2002-12-31  Jody Goldberg <jody@gnome.org>
4397         * src/commands.c (cmd_area_set_text_redo) : fix.  It is an error to
4398           pass NULL as the parse text.
4400 2002-12-30  Morten Welinder  <terra@diku.dk>
4402         * src/format-template.c: Import CC2XML and CXML2C macros from
4403         xml-io.c and use them.
4404         (xml_read_format_col_row_info): Constify.
4406         * src/parse-util.h: Delete
4407         GNM_EXPR_PARSE_CREATE_PLACEHOLDER_FOR_UNKNOWN_FUNC flag.
4409         * src/parser.y: Delete create_placeholder_for_unknown_func flag.
4411 2002-12-30  Jody Goldberg <jody@gnome.org>
4413         * src/parser.y (parser_sheet_by_name) : fix allocation handling of
4414           unknown functions.
4416         * src/print-info.c (render_file) : add FILE
4418 2002-12-30  Jon K Hellan  <hellan@acm.org>
4420         * src/application.c (gnumeric_application_setup_icons): Add
4421         Gnumeric_Protection_Yes_Dialog.
4423         * src/pixmaps/protection_yes_48.png: Add.
4425         * src/pixmaps/Makefile.am:  Add protection_yes_48.png.
4427         * src/workbook-control-gui.c (cb_accept_password): Move to
4428         dialogs/dialog-password.c.
4429         (wbcg_get_password): Most of it moved to dialog_get_password in
4430         dialogs/dialog-password.c.
4432         * src/io-context-gtk.c (icg_get_password): New function which
4433         implements CommandContext::get_password.
4434         (icg_class_init): Connect icg_get_password.
4436         * src/command-context.[ch] (cmd_context_get_password): Rename 2nd
4437         parameter from 'msg' to 'filename'.
4439         * src/command-context-priv.h (CommandContextClass.get_password):
4440         Ditto.
4442         * src/command-context-stderr.c (ccs_get_password): Ditto.
4444         * src/workbook-control-component.c (wbcc_get_password): Ditto.
4446         * src/io-context.c (ioc_get_password): Ditto.
4448 2002-12-30  Morten Welinder  <terra@diku.dk>
4450         * src/formats.c (currency_date_format_init): Don't use undefined
4451         \? pattern.
4453         * src/sheet-style.c (cell_tile_style_new): Don't use res
4454         uninitialized, even if we compile with no checks.
4456         * src/gui-util.c (gnumeric_dialog_raise_if_exists): Return NULL on
4457         failure, not FALSE.
4458         * src/ranges.c (range_init_value): Ditto.
4459         * src/sheet-object-widget.c (sheet_widget_scrollbar_get_ref,
4460         sheet_widget_checkbox_get_ref): Ditto.
4461         * src/value-sheet.c (value_area_foreach): Ditto.
4463 2002-12-29  Jody Goldberg <jody@gnome.org>
4465         http://bugzilla.gnome.org/show_bug.cgi?id=64969
4466         * src/sheet-merge.c (sheet_merge_add) : update bounds.
4468         * src/sheet-control-gui.c (scg_set_panes) : handle freezing already
4469           frozen panes to support adjustments after ins/del col/row.
4471         * src/sheet-view.c (sv_panes_insdel_colrow) : new.
4473 2002-12-29  Morten Welinder  <terra@diku.dk>
4475         * src/ranges.c (range_parse): Return NULL on failure, not FALSE.
4477 2002-12-28  Rodrigo Moya <rodrigo@gnome-db.org>
4479         * configure.in: require libgda >= 0.10, needed for the read-only
4480         connections.
4482 2002-12-28  Jody Goldberg <jody@gnome.org>
4484         * src/format.c (style_format_delocalize) : tweak.
4486         * src/sheet-filter.c (filter_field_arrow_format) : be less polite to
4487           styles, but at least it will work in the vast majority of cases.
4489 2002-12-27  Morten Welinder  <terra@diku.dk>
4491         * src/parse-util.c (cellpos_parse): Change calling convention.
4492         All callers changed.
4493         (test_cellpos_stuff): New function.
4494         (parse_util_init) [TEST]: Call it.
4496 2002-12-27  Jody Goldberg <jody@gnome.org>
4498         * src/parse-util.c (cellpos_parse) : fix.
4500         * src/workbook-control-gui.c (cb_auto_filter) : do a sheet update.
4502         * src/sheet.c (sheet_colrow_insert_finish) : relocate filters.
4503         (sheet_colrow_delete_finish) : relocate filters.
4505         * src/sheet-filter.c : Use the sheetobject anchor as the normative
4506           source of the field index to simplify things.
4507         (sheet_filter_insdel_colrow) : new.
4508         (gnm_filter_add_field) : new split out from.
4509         (gnm_filter_new) : here.
4511 2002-12-27  Morten Welinder  <terra@diku.dk>
4513         * src/commands.c (truncate_undo_info): Handle undo_max_number==0
4514         also.
4516 2002-12-26  Morten Welinder  <terra@diku.dk>
4518         * src/xml-io.c (xml_workbook_read): Don't call textdomain.
4519         (xml_workbook_write): Ditto.
4521 2002-12-24  Jody Goldberg <jody@gnome.org>
4523         * schemas/plot-types.xml.in : fix some typos, and some consistency
4524           improvements
4525         * schemas/gnumeric-dialogs.schemas.in : more typos.
4527         * src/sheet-object-image.c (soi_get_pixbuf) : minor readability
4528           improvement.
4530 2002-12-23  Morten Welinder  <terra@diku.dk>
4532         * src/parse-util.c (col_parse, row_parse): Change to return NULL
4533         in the failure case.  All callers changed.
4534         (test_col_stuff, test_row_stuff): New functions.
4535         (parse_util_init) [TEST]: Call them.
4537 2002-12-23  Morten Welinder  <terra@diku.dk>
4539         * src/parse-util.c (row_parse): Don't allow sign or initial
4540         white-space.  Don't allow numbers starting with '0'.  Fix
4541         potential overflow problem on machines wherer long>int.  No need
4542         to fiddle with errno.
4543         (cellref_as_string): Simplify using col_name_internal and
4544         row_name_internal.  (Making it work for larger SHEET_MAX_COLS
4545         also.)
4546         (cellref_a1_get, cellpos_parse): Simplify greatly using col_parse
4547         and row_parse.  (Thus making them work for larger SHEET_MAX_COLS
4548         also.)
4550 2002-12-23  Jon K Hellan  <hellan@acm.org>
4552         * configure.in: Require libgda >= 0.9 for gda plugin.
4554 2002-12-22  Jody Goldberg <jody@gnome.org>
4556         * configure.in : post release version bump
4558 2002-12-22  Jody Goldberg <jody@gnome.org>
4560         * Release 1.1.14
4562 2002-12-22  Jody Goldberg <jody@gnome.org>
4564         * src/workbook-control-gui.c (cb_auto_filter) : aarrrggghhh typo.
4566 2002-12-22  Jody Goldberg <jody@gnome.org>
4568         * configure.in : post release version bump
4570 2002-12-22  Jody Goldberg <jody@gnome.org>
4572         * Release 1.1.13
4574 2002-12-20  Jody Goldberg <jody@gnome.org>
4576         * src/stf-parse.c (stf_parse_sheet) : use cell_set_value and simplify.
4578         * src/clipboard.c (paste_cell) : fix leak.
4580 2002-12-20  Morten Welinder  <terra@diku.dk>
4582         * src/workbook-view.c (wb_view_new_from_input): Add a ref-count
4583         check for probes.
4585         * src/parser.y: Check for failure from build_intersect.
4587 2002-12-19  Morten Welinder  <terra@diku.dk>
4589         * src/parse-util.h (GnmExprConventions): Add cell_ref_handler
4590         and range_ref_handler members.
4592         * src/expr.c (do_expr_as_string): Call cell_ref_handler and
4593         range_ref_handler.
4595         * src/parse-util.c (gnm_expr_conventions_new): Set default
4596         cell_ref_handler and range_ref_handler.
4597         (col_name_internal): Change to take an accumulator GString.  All
4598         callers changed.
4599         (row_name_internal): Ditto.
4600         (rangeref_as_string): Ditto.
4601         (cellref_as_string): Ditto.
4603 2002-12-19  Morten Welinder  <terra@diku.dk>
4605         * src/parse-util.c (gnm_expr_conventions_default_1_0): Delete.
4606         (parse_util_init): Don't set up gnm_expr_conventions_default_1_0.
4607         (parse_util_shutdown): Don't free it.
4609 2002-12-17  Morten Welinder  <terra@diku.dk>
4611         * src/value.c (value_new_from_string): Take new "translated"
4612         argument and respect it for booleans and errors.  All callers
4613         changed.
4615         * src/format.c (format_get_currency): Make really sure not to
4616         return NULL.
4618         * src/xml-io.c (xml_io_conventions): New function.
4619         (xml_parse_ctx_new): Add exprconv member to our context.
4620         (xml_parse_ctx_destroy): Free it.
4621         (xml_write_style, cb_xml_write_name, xml_read_names,
4622         xml_read_style, xml_write_cell_and_position,
4623         xml_cell_set_array_expr, xml_read_cell, xml_read_cell_copy): Use
4624         exprconv.
4625         (xml_cell_set_array_expr, xml_not_used_old_array_spec): Add parse
4626         context argument.  All callers changed.
4627         (xml_write_cell_and_position): Use value_get_as_gstring to get
4628         non-local error names.
4629         (xml_write_filter_expr): Ditto.
4631         * src/gutils.c (gnm_strunescape): New function.
4633         * src/parser.y (yylex): Handle error constants that don't end in
4634         "!", such as "#NAME?".  Catch unterminated error tokens.  Return
4635         token CONSTANT for errors.
4636         (find_matching_close): Use gnm_strunescape.
4637         (find_char): Delete.
4639         * src/value.c (value_get_as_gstring): Use untranslated error
4640         messages when requested.
4642 2002-12-16  Morten Welinder  <terra@diku.dk>
4644         * src/number-match.c (format_match_init): Don't setup error
4645         variables any more.
4646         (gnumeric_error_init): Delete.
4648         * src/value.c (value_error_name): New function.
4650         * src/parse-util.c (def_expr_name_handler): Use value_error_name
4651         to get proper spelling of the REF error.
4653         * src/collect.c (float_range_function, float_range_function2,
4654         string_range_function): Take a GnmStdError, not a string.
4656         * src/value.c (value_error_classify): New function.
4658         * src/expr.c (gnm_expr_is_err): Take a GnmStdError, not a string.
4659         All callers changed.
4661         * src/value.c (value_init): Build table of translated error names.
4662         (value_shutdown): Tear it down.
4663         (value_new_error_NULL, value_new_error_DIV0,
4664         value_new_error_VALUE, value_new_error_REF, value_new_error_NAME,
4665         value_new_error_NUM, value_new_error_NA, value_new_error_RECALC):
4666         New functions.
4667         * */*.c */*/*.c: Elminate most occurrences of gnumeric_err_*.
4669         * src/libgnumeric.c (gnm_common_init): Move string initialization
4670         to before values.
4671         (gnm_shutdown): Similarly.
4673 2002-12-15  Morten Welinder  <terra@diku.dk>
4675         * src/expr.c (gnm_expr_as_gstring): New function.
4677         * src/rendered-value.c (rendered_value_new): Use
4678         gnm_expr_as_gstring to avoid extra copy of result.  Use
4679         string_get_nocopy to avoid yet another copy.
4680         (cell_get_entered_text): Use gnm_expr_as_gstring to avoid extra
4681         copy of result.
4683 2002-12-14  Jody Goldberg <jody@gnome.org>
4685         * src/workbook-control-gui.c (cb_auto_filter) : It makes no sense to
4686           create a filter for 1 header row.
4688         * src/sheet-filter.c (filter_field_apply) : be more resilient about
4689           bogus filters.
4691 2002-12-13  Jody Goldberg <jody@gnome.org>
4693         * src/input-msg.c (gnm_input_msg_get_msg) : new.
4694         (gnm_input_msg_get_title) : new.
4696 2002-12-12  Jody Goldberg <jody@gnome.org>
4698         * src/sheet-style.c (cb_hash_to_list) : improve placement of debug
4699           info to ignore irrelevent ranges that were merged into something else.
4701         * tools/import-foocanvas : do not install foocanvas
4703         * src/sheet-style.c (sheet_style_get_validation_list) : new.
4704         (cb_style_list_add_validation) : simple filter.
4705         (cb_style_list_add_node) : generalize slightly to make the comparison
4706           routine dynamic.
4707         (cb_hash_merge_horiz) : ditto.
4708         (sheet_style_get_list) : adjust to the new generalized utilities.
4710 2002-12-13  Morten Welinder  <terra@diku.dk>
4712         * src/value.c (value_get_as_gstring): New function.
4713         (value_get_as_string): Use that.
4715         * src/expr.c (do_expr_as_string): Use value_get_as_gstring.
4717         * src/xml-io.c (gnumeric_xml_read_workbook): Grammar fix.
4719         * src/parse-util.h (struct _GnmExprConventions): New members
4720         expr_name_handler, output_sheet_name_sep, output_argument_sep,
4721         output_array_col_sep, and output_translated.  Eliminate
4722         use_locale_C.
4724         * src/expr.c (do_expr_as_string): Use new expr_name_handler in
4725         conventions.
4727         * src/parse-util.c (def_expr_name_handler): New function, mostly
4728         extracted from do_expr_as_string.
4729         (gnm_expr_conventions_new): Attach def_expr_name_handler.
4731 2002-12-13  Morten Welinder  <terra@diku.dk>
4733         * src/gutils.c (gnm_strescape): Rename from gnumeric_strescape and
4734         take GString accumulator argument.  All callers changed.
4736 2002-12-13  Morten Welinder  <terra@diku.dk>
4738         * src/expr.c (gnm_expr_list_as_string): Take accumulator argument
4739         and no prefix.  All callers changed.
4740         (do_expr_as_string): Take accumulator argument and clean up
4741         otherwise.
4743 2002-12-12  Morten Welinder  <terra@diku.dk>
4745         * src/sheet-filter.c (cb_filter_expr): Fix "and" semantics.
4747 2002-12-11  Jon K Hellan  <hellan@acm.org>
4749         * src/bonobo-io.c: Remove 10 unnecessary includes.
4751 2002-12-11  Jon K Hellan  <hellan@acm.org>
4753         * GNOME_Gnumeric.server.in.in (OAFIID:GNOME_Gnumeric_Control):
4754         Don't pretend to support  Bonobo/PersistFile.
4756         * src/main-component.c (load_workbook_from_file): Remove.
4757         (add_interfaces): Don't pretend to support
4758         Bonobo/PersistFile. Replace deprecated bonobo_persist_stream_new
4759         with gnm_persist_stream_new.
4761         * src/bonobo-io.h: Declare gnm_persist_stream_new. Remove
4762         everything else.
4764         * src/bonobo-io.c: Add boilerplate for class GnmPersistStream
4765         implementing Bonobo:PersistStream.
4766         (gnumeric_bonobo_read_from_stream): Rename to
4767         gnm_persist_stream_load and change to correct signature for
4768         PersistStream load method.
4769         (workbook_persist_file_load, workbook_persist_file_save,
4770         workbook_bonobo_setup): Dead code. Remove.
4772         * src/sheet-object-image.c (soi_get_pixbuf): Use
4773         gdk_pixbuf_loader_new_with_type if type is known. Close pixbuf
4774         loader before getting pixbuf. Copy image to file on all errors.
4776 2002-12-08  Jody Goldberg <jody@gnome.org>
4778         * src/xml-io.c (xml_write_sheet_filters) : filter export.
4780         * src/workbook-control-gui.c (wbcg_finalize) : patch leak.
4782         * src/expr-name.c (expr_name_remove) : removing a name dfrom the hash
4783           will already set the expr to NULL and unref.  No need to do it again.
4785 2002-12-09  Morten Welinder  <terra@diku.dk>
4787         * src/sheet-filter.c (filter_field_apply): Filter out blanks per
4788         jody.
4790 2002-12-08  Jon K Hellan  <hellan@acm.org>
4792         * src/sheet-filter.c (do_focus_change): Use stack allocated events
4793         rather than 2.1.x addition gdk_event_new.
4795 2002-12-08  Jon K Hellan  <hellan@acm.org>
4797         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream): Bitrot was
4798         setting in. Fix.
4800         * src/main-component.c (load_workbook_from_file): Conditionalize
4801         debug output.
4802         (gnm_component_factory): Rename from
4803         gnumeric_component_factory. Conditionalize debug output.
4804         (main): Use new name of gnm_component_factory.
4806         * src/workbook-control-gui.c (wbcg_get_gtk_settings): Get screen
4807         from wbcg->table. Needed for Bonobo component case.
4809 2002-12-08  Jon K Hellan  <hellan@acm.org>
4811         * src/sheet-filter.c: Include gdkevents.h
4813 2002-12-08  Jon K Hellan  <hellan@acm.org>
4815         * src/GNOME_Gnumeric.xml: Add Pivot table command.
4817 2002-12-08  Jon K Hellan  <hellan@acm.org>
4819         * GNOME_Gnumeric.server.in.in: Install gnumeric-component to
4820         libexec.
4822         * src/Makefile.am (libexec_PROGRAMS): Ditto.
4824         * Makefile.am ($(server_in_files)): Substitute for "@LIBEXECDIR@"
4825         in server.in.in file.
4827         * configure.in (AC_OUTPUT): Don't output GNOME_Gnumeric.server.in,
4828         make generates it.
4830 2002-12-08  Jon K Hellan  <hellan@acm.org>
4832         * src/sheet-filter.c (do_focus_change): New. Copied from
4833         gtkwindow.c. Send focus_change event to the list
4834         (filter_popup_destroy): New. Move keyboard focus away from the
4835         popup and destroy it.
4836         (cb_filter_key_press, cb_filter_button_press): Take list parameter
4837         and call filter_popup_destroy.
4838         (cb_filter_button_release): Call filter_popup_destroy.
4839         (cb_filter_button_pressed): Pass list argument with
4840         key_press_event and button_press_event callbacks. Make popup take
4841         keyboard focus by means of deep runes suggested by Owen and seen
4842         in gtktreeview.c::gtk_tree_view_real_start_interactive_search.
4844 2002-12-07  Jody Goldberg <jody@gnome.org>
4846         * src/sheet-filter.c : Initial attempt at expr filters
4848 2002-12-07  Christian Neumair  <chris@gnome-de.org>
4850         * src/dialogs/sheet-order.glade: Made "_Duplicate" translatable.
4851         * plugins/derivatives/options.c: Capitalized "@FUNCTION=opt_bs".
4853 2002-12-06  Jon K Hellan  <hellan@acm.org>
4855         * src/sheet-filter.c (cb_filter_button_release): Use
4856         gtk_get_event_widget to check if release took place inside list.
4857         (cb_filter_button_pressed): Call gdk_pointer_grab with
4858         owner_events TRUE. Connect the motion_notify callback to the list
4859         rather than the popup.
4861 2002-12-06  Jody Goldberg <jody@gnome.org>
4863         * src/sheet-filter.c (filter_field_arrow_format) : new to make the
4864           arrow more obviously different.
4866         * src/regutf8.c (gnumeric_regcomp_XL) : moved from
4867           plugins/fn-string/functions.c:search_pattern_to_regexp and turned into
4868           a wrapper.
4870 2002-12-05  Morten Welinder  <terra@diku.dk>
4872         * src/xml-io.c: Eliminate most char casts.
4874 2002-12-05  Jody Goldberg <jody@gnome.org>
4876         * src/sheet-filter.c (cb_filter_button_release) : silence warning.
4877         (gnm_filter_set_condition) : ditto.
4879         * src/plugin-service.c : s/gnum_plugin/gnm_plugin/
4881         * src/Makefile.am (EXTRA_DIST) : add README.gnm_float
4883 2002-12-05  Jody Goldberg <jody@gnome.org>
4885         * src/style-color.c (gnumeric_color_init) : swap green to yellow
4887         * src/gui-util.c (gnumeric_create_tooltip) : use gs_yellow.
4889         * src/tools/filter.c (filter_show_all) : clear filters.
4891         * src/sheet-filter.c (filter_field_apply) : #$^@# fix inversion of
4892           'top' and 'bottom'
4893         (collect_unique_elements) : Store the value
4894         (gnm_filter_get_condition) : new.
4895         (cb_filter_find_percentage) : new.
4896         (cb_hide_unwanted_percentage) : new.
4897         (filter_field_apply) : implement top/bottom percentage filters.
4899 2002-12-05  Morten Welinder  <terra@diku.dk>
4901         * src/workbook-control-gui.c: Attempt to reinstate pixmap for
4902         print preview in non-bonobo case.
4904 2002-12-04  Jody Goldberg <jody@gnome.org>
4906         * src/workbook-control-gui.c (wbcg_menu_state_update) : link filter
4907           state to 'show all' state.
4909         * src/value.c (value_cmp_reverse) : new.
4911         * src/xml-io.c (xml_write_sheet_filters) : new.
4912         (xml_sheet_write) : Used here.
4913         (xml_read_sheet_filters) : new.
4914         (xml_sheet_read) : Used here.
4916         * src/gui-util.c (gnumeric_option_menu_get_selected_index) : delete.
4918         * src/sheet-filter.c (cb_filter_find_minmax) : new.
4919         (cb_hide_the_rest) : new.
4920         (filter_field_apply) : support top/bottom N items.
4921         (cb_filter_button_release) : connect up the dialog stubs.
4923 2002-11-18  Fernando Herrera <fherrera@onirica.com>
4925         * gnumeric.desktop.in: add X-GNOME-BUGZILLA stuff
4927 2002-12-04  Jody Goldberg <jody@gnome.org>
4929         * src/expr.c (gnm_expr_as_string) : Add a currently useless
4930           conventions argument for future use.
4932 2002-12-03  Jody Goldberg <jody@gnome.org>
4934         * src/sheet-control-gui.c (sheet_control_gui_new) : take a wbcg as a
4935           an argument so that we can assign it at creation rather than later.
4937         * src/sheet-object.c (sheet_object_new_view) : only create a
4938           view if there isn't one already.
4940         * src/sheet-filter.c (cb_filter_blanks) : Use colrow_set_visibility.
4941         (cb_filter_non_blanks) : ditto.
4942         (gnm_filter_set_condition) : ditto.
4944 2002-12-03  Jody Goldberg <jody@gnome.org>
4946         * src/sheet-filter.c (cb_filter_button_release) : don't die when faced
4947           with unsupported filter types.
4949         * src/GNOME_Gnumeric.xml : Add auto filter
4950         * src/workbook-control-gui.c : ditto.
4952 2002-12-03  Jon K Hellan  <hellan@acm.org>
4954         * src/sheet-filter.c (cb_filter_button_release): Check if event
4955         window is popup window.
4957 2002-12-03  Morten Welinder  <terra@diku.dk>
4959         * src/xml-io.c (POINT_SIZE_PRECISION): Increase to 4.
4960         (xml_node_set_print_unit): Just use the GnomePrintUnit name.
4961         (xml_node_get_print_unit): Use unit_name_to_unit.
4963         * src/print-info.c (print_unit_new, unit_name_get_short_name,
4964         unit_name_get_name): Delete.
4965         (unit_name_to_unit): Return a GnomePrintUnit*.  Remove unused
4966         "translated" argument.  All callers changed.
4967         (unit_convert): Take GnomePrintUnit* arguments.  All callers
4968         changed.
4970         * src/print-info.h (enum UnitName): Delete.
4972 2002-12-03  Jon K Hellan  <hellan@acm.org>
4974         * configure.in: Check for gtk_settings_get_for_screen
4976 2002-12-03  Jon K Hellan  <hellan@acm.org>
4978         * src/item-bar.c (item_bar_calc_size): Use default desktop font of
4979         screen.
4981         * src/workbook-control-gui.[ch] (wbcg_get_font_desc): New .Return
4982         font_desc of default desktop font, looking it up if not
4983         known. Wire up notification about font changes.
4985         * src/workbook-control-gui.c: Add PivotTable verb.
4986         (settings_get_font_desc): New. Get Pango font desc from string.
4987         (cb_update_item_bar_font): New callback. Called from
4988         gtk_container_foreach for each notebook tab to update the item bars.
4989         (cb_desktop_font_changed): New callback. Called when desktop font
4990         has changed.
4991         (wbcg_get_gtk_settings): New. Gets GtkSettings - by screen if
4992         possible.
4994         (workbook_control_gui_init): Init font_desc to NULL.
4996         * src/workbook-control-gui-priv.h (struct _WorkbookControlGUI):
4997         Add font_desc.
4999 2002-12-03  Jody Goldberg <jody@gnome.org>
5001         * configure.in : bump gsf req
5003 2002-12-03  Jody Goldberg <jody@gnome.org>
5005         * src/sheet-filter.c : add condition framework
5006           select existing conditions
5007           provide feedback for which filter is active
5008           Support blank/non-blank/All filters
5010 2002-12-02  Jon K Hellan  <hellan@acm.org>
5012         * src/io-context-gtk.c (icg_inc_files_done): Only increment file
5013         progress bar if we have one (bug #100081).
5015 2002-12-02  Jon K Hellan  <hellan@acm.org>
5017         * src/Makefile.am: Don't link component with IOContextGtk.
5019         * src/io-context-gtk.c (icg_progress_set)
5020         (icg_progress_message_set): Respect no-splash flag.
5022         * src/main-application.c: Add no-splash argument.
5024 2002-11-30  Jody Goldberg <jody@gnome.org>
5026         * src/expr-name.c (cb_check_name) : ignore hidden names.
5028         * src/io-context-gtk.c (icg_error_error_info) : no need to display the
5029           splash if we are going to pop up an error.  Something was screwing
5030           up and I don't feel like tracing it.
5032         * src/expr.c (do_referenced_sheets) : fix nasty typo.
5033         (gnm_expr_containts_subtotal) : new.
5035         * src/collect.c (collect_floats) : start support for SUBTOTAL
5036         * src/sheet.c (sheet_foreach_cell_in_range) : ditto.
5037         * src/func.c (function_iterate_argument_values) : ditto.
5039 2002-11-29  Jody Goldberg <jody@gnome.org>
5041         * src/workbook-control-gui.c (wbcg_menu_state_update) : add auto
5042           filter.
5043         (cb_auto_filter) : initial quicky implementation.
5044         (cb_data_pivottable) : ditto.
5045         (workbook_control_gui_init) : init the autofilter.
5047         * src/value.c (value_equal) : new util.
5048         (value_cmp) : new.
5050         * src/style-color.c (gnumeric_color_init) : add green.
5052         * src/stf.c : quiet a few warnings.
5054         * src/sheet.c (sheet_new) : init filters and pivots.
5055         (sheet_destroy_contents) : free the filters and pivots.
5056         (sheet_range_calc_spans) : no one sets NO_DRAW so don't check for it.
5057         (sheet_cell_calc_span) : ditto.
5059         * src/sheet-view.c (sv_edit_pos_in_filter) : new.
5061         * src/sheet-object.c (sheet_object_print) : no warning if the object
5062           does not print.
5063         (sheet_object_clone) : nor is it a problem if it can not be cloned.
5065         * src/sheet-object-widget.c (sheet_widget_button_set_label) : new.
5066         (sheet_widget_checkbox_set_label) : new.
5067         (cb_checkbox_config_cancel_clicked) :use sheet_widget_checkbox_set_label
5068         (cb_checkbox_label_changed) : ditto.
5069         (sheet_widget_radio_button_finalize) : free the label.
5070         (sheet_widget_radio_button_set_label) : new.
5072         * src/ranges.c (setup_range_from_value) : remove ugly release argument.
5073         (setup_range_from_range_ref) : ditto.
5074         (value_to_global_range) : take a GlobalRange as an arg.  No need to
5075           allocate the result.
5077         * src/item-bar.c (item_bar_realize) : create a GC for filtered regions
5078         (item_bar_unrealize) : free it.
5080         * src/io-context.c (workbook_io_progress_set) : const the workbook.
5082         * src/gnumeric.h : Add GnmFilter.
5083           Remove unused SPANCALC_NO_DRAW.
5085         * src/file.c (gnum_file_saver_save_real) : view is const not output.
5086         (gnum_file_saver_save) : ditto.
5088         * src/file-priv.h (save) : view is const not output.  delete save to
5089           stream.
5091         * src/consolidate.c (consolidate_set_destination) : adjust to less
5092           silly interface to setup_range_from_value.
5093         (consolidate_add_source) : ditto.
5095         * src/pixmaps/Makefile.am : add the pivottable icons
5096         * src/application.c (gnumeric_application_setup_icons) : ditto.
5098         * src/Makefile.am : add pivot table stub and auto filter
5099           implementation
5101 2002-11-28  Jody Goldberg <jody@gnome.org>
5103         * src/expr-name.c (sheet_names_get_available) : document.
5104         (cb_get_names) honour is_hidden.
5105         (expr_name_new) : init is_hidden.
5107 2002-11-28  Jon K Hellan  <hellan@acm.org>
5109         * src/file-priv.h (struct _GnumFileSaverClass::save): Replace
5110         file_name with GsfOutput *output.
5112         * src/file.h (GnumFileSaverSaveFunc, gnum_file_saver_save): Ditto.
5114         * src/file.c:
5115         (gnum_file_saver_save_real, gnum_file_saver_save): Ditto.
5117         * src/plugin-service.h
5118         (PluginServiceFileSaverCallbacks::plugin_func_file_save): Ditto
5120         * src/plugin-service.c:
5121         (gnum_plugin_file_saver_save): Ditto
5123         * src/workbook-view.c: Include gsf/gsf-output-stdio.h.
5124         (wbv_save_to_file): New function. Creates a gsf output stream from
5125         file.
5126         (wb_view_save_as, wb_view_save): Call wbv_save_to_file rather than
5127         gnum_file_saver_save.
5129         * src/stf.c (stf_text_to_columns): Call
5130         gsf_output_memory_get_bytes with new signature.
5131         (stf_open_for_write): Remove.
5132         (stf_write_func): Use gsf_output_puts.
5133         (stf_write_workbook): Replace file_name with GsfOutput *output.
5134         Don't open and close file. Higher layer does that.
5136         * src/xml-io.c (gnumeric_xml_write_workbook): Replace file_name
5137         with GsfOutput *output.  Don't open and close file. Higher layer
5138         does that.
5140 2002-11-27  Jon K Hellan  <hellan@acm.org>
5142         * src/workbook-control-gui.c (wbcg_progress_set): Deprecation
5143         cleanup: s/gtk_progress_bar_update/get_progress_bar_set_fraction/.
5144         (setup_progress_bar): Deprecation cleanup: Remove
5145         gtk_progress_bar_set_orientation. These are in the changelog for
5146         2002-11-19, but never actually got committed.
5148 2002-11-27  Morten Welinder  <terra@diku.dk>
5150         (From Evert's patch in bug #99429.)
5151         * src/history.c (history_menu_locate_separator): This now needs to
5152         link to the preferences menu item.
5154 2002-11-27  Christian Neumair  <chris@gnome-de.org>
5156         * .cvsignore: Updated.
5158 2002-11-26  Morten Welinder  <terra@diku.dk>
5160         * src/parser.y (gnm_expr_parse_str): Take GnmExprConventions, not
5161         a ref_parser.  All callers changed.
5162         (yylex): Flatten structure and use GnmExprConventions options.
5164         * src/parse-util.h (struct _GnmExprConventions): New structure for
5165         parsing info.
5166         (GnmExprParseFlags): Prune lots of flags.
5168         * src/parse-util.c (parse_util_init, parse_util_shutdown,
5169         gnm_expr_conventions_new, gnm_expr_conventions_free): New
5170         functions.
5171         (gnm_expr_parse_str_simple): New function (was macro).
5173         * src/libgnumeric.c (gnm_shutdown): Shut down parse_util.
5174         (gnm_common_init): Init parse_util.
5176         * src/func.c (gnm_func_placeholder_factory): New function.
5178 2002-11-25  Jody Goldberg <jody@gnome.org>
5180         * src/main-application.c (main) : create io-context-gtk directly.
5182         * src/io-context-gtk.c (icg_show_gui) : remove the label, the spash
5183           has enough text.  Make the window a popup to keep it at the top
5184           with no decoration rather than a toplevel that gets buried as we
5185           open new windows. renamed form icg_init_gui, and only call later.
5186         (gnumeric_io_context_gtk_new) : delete empty method.
5187         (icg_init) : init the timer here.
5189         * src/workbook-view.c (wb_view_new_from_input) : move do the recalc
5190           here to be more central.
5191         * src/gui-file.c (gui_file_read) : rather than here.
5193         * src/expr.c (gnm_expr_rewrite) : fix handling of SET.
5194           Make smarter about 3d references.
5196 2002-11-25  Jody Goldberg <jody@gnome.org>
5198         * src/parse-util.c (rangeref_parse) : init sheet_b in the case where
5199           there is no sheet at all.
5201         * src/workbook.c (cb_tweak_3d) : new.
5202         (workbook_sheet_detach) : use it here to fix 3d references.
5204         * src/dependent.c (dependent_changed) : don't relink here.
5205         (dependent_set_expr) : which cleans up the semantics here.
5206         (dependent_set_sheet) : relink here instead which is much nicer.
5208         * src/sheet-control-gui.c (scg_set_left_col) : clip on pane 1
5209           but we always need to scroll 3 if it exists.
5210         (scg_set_top_row) : ditto, but reverse the panes.
5212         * src/item-grid.c (item_grid_draw_merged_range) : do just in time
5213           spanning here too.
5215 2002-11-24  Jody Goldberg <jody@gnome.org>
5217         * src/sheet-object-graphic.c (sheet_object_text_set_text) : new.
5219         * src/cut-n-paste-code/foocanvas/libfoocanvas/foo-canvas-text.c
5220         (foo_canvas_text_set_property) : enable line wrapping.
5222 2002-11-23  Jody Goldberg <jody@gnome.org>
5224         * src/sheet-view.c (sv_freeze_panes) : Be more robust about handling
5225           h/v only freezing that have initial positions > A1
5227         * src/sheet-object-graphic.c : Move the label widget here.  Inherit it
5228           from SheetObjectFilled, and use canvas text.  Still needs some love
5229           to handle the outline width nicely but on the whole it works.
5231 2002-11-22  Jody Goldberg <jody@gnome.org>
5233         * src/commands.c (cmd_selection_group) : Add a bonus heuristic to
5234           accept attempts to ungroup a region that erroneously includes the
5235           collapse marker.
5237 2002-11-22  Jody Goldberg <jody@gnome.org>
5239         http://bugzilla.gnome.org/show_bug.cgi?id=97691
5240         * src/workbook-edit.c (wbcg_edit_finish) : detach guru before
5241           destroying it.
5243         * tools/import-foocanvas : add a trailing backslash before the
5244           header list.
5246         * src/commands.c (cmd_global_outline_change) : don't push a useless
5247           command.
5248         (cmd_selection_outline_change) : fix handling of collapse at start.
5250         * src/item-bar.c (item_bar_draw) : optionally draw collapse markers
5251           at the start rather than the end.
5253         * src/colrow.c (colrow_set_visibility) : Handle collapse at start vs
5254           at the end.
5256 2002-11-22  Christian Neumair  <chris@gnome-de.org>
5258         * src/dialogs/autoformat.glade: Make the menu display mnemotics correctly.
5260 2002-11-21  Jody Goldberg <jody@gnome.org>
5262         * src/colrow.c (colrow_get_global_outline) : new.
5264         * src/commands.c (cmd_colrow_hide_correct_selection) : just in case,
5265           don't reset the selection unless we are going to set it to something.
5266         (cmd_colrow_hide_undo) : convert from elements+flag -> 2 lists.
5267         (cmd_colrow_hide_redo) : ditto.
5268         (cmd_colrow_hide_finalize) : ditto.
5269         (cmd_selection_colrow_hide) : ditto.
5270         (cmd_selection_outline_change) : ditto.
5271         (cmd_global_outline_change) : new.
5273 2002-11-20  Jody Goldberg <jody@gnome.org>
5275         * src/sheet.c (sheet_regen_adjacent_spans) : delete.
5277         * src/sheet-control-gui.c (scg_setup_group_buttons) : hook up the
5278           outline buttons to a callback.
5279         (cb_outline_button) : new.
5281 2002-11-20  Jody Goldberg <jody@gnome.org>
5283         * src/sheet-control-gui.c (scg_setup_group_buttons) : The outline
5284           buttons can not take focus.
5286         * src/parse-util.c (rangeref_parse) : fix parsing 3d refs.  When
5287           initializing in case the cell is singleton do not over write the sheet
5288           in case it was already parsed as 3d.
5290         * src/gui-util.c (gnumeric_dialog_file_selection) : remove magic
5291           directory selector, gtk handles it now and We are already assigning
5292           the path earlier.
5294         * src/workbook-view.c (wb_view_save_as) : only change the filename if
5295           the format is changed.
5296         * src/workbook.c (workbook_set_saveinfo) : remove limitation on file
5298         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream) : Use
5299           wb_view_new_from_input.
5301 2002-11-20  Morten Welinder  <terra@diku.dk>
5303         * src/gutils.c (gnumeric_ascii_strcase_hash): Use g_ascii_tolower,
5304         not locale-dependent tolower.
5306 2002-11-19  Jon K Hellan  <hellan@acm.org>
5308         * src/io-context-gtk.[ch]: (icg_set_files_total): New function:
5309         set number of files to process. If > 1, an additional progress bar
5310         is shown so user can monitor both files processed and progress
5311         within file.
5312         (icg_inc_files_done): New function: Indicate that a file has been
5313         processed.
5315         * src/io-context-gtk.c (struct _IOContextGtk): Add file_bar,
5316         rename progress_bar to work_bar, add files_total and files_done.
5317         (icg_progress_set): Use gtk_widget_show instead of
5318         gtk_widget_show_all so file_bar doesn't show up uninvited.
5319         Deprecation cleanup:
5320         s/gtk_progress_bar_update/get_progress_bar_set_fraction/.
5321                 (icg_progress_message_set):
5322         s/gtk_widget_show_all/gtk_widget_show/. Update per file progress
5323         bar, which is named work_bar.
5324         (cb_icg_window_destroyed): NULL out both progress bars.
5325         (icg_init): Initialize additional attributes.
5326         (icg_init_gui): Pack an additional progress bar, but don't show
5327         it. Show the other widgets individually.
5329         * src/main-application.c (main): Call icg_set_files_total and
5330         icg_inc_files_done.
5332         * src/workbook-control-gui.c (wbcg_progress_set): Deprecation
5333         cleanup: s/gtk_progress_bar_update/get_progress_bar_set_fraction/.
5334         (setup_progress_bar): Deprecation cleanup: Remove
5335         gtk_progress_bar_set_orientation.
5337 2002-11-19  Morten Welinder  <terra@diku.dk>
5339         * src/sheet-autofill.c (autofill_cell): Unify, generalise,
5340         optimise, and clean up FILL_STRING_WITH_NUMBER case.
5341         (string_has_number): Add arg to return endpos of number.
5343 2002-11-19  Morten Welinder  <terra@diku.dk>
5345         * src/sheet-autofill.c (string_has_number): Change to return
5346         gboolean.  Constify.  Make UTF-8 safe.
5347         (autofill_cell): Fix for negative numbers as strings.
5349 2002-11-18  Jon K Hellan  <hellan@acm.org>
5351         * src/workbook-control-gui.c (show_gui): This is getting
5352         embarassing!
5354 2002-11-18  Jon K Hellan  <hellan@acm.org>
5356         * src/io-context-gtk.c (icg_init_gui): I could have sworn...
5358 2002-11-18  Jon K Hellan  <hellan@acm.org>
5360         * src/workbook-control-gui.c (show_gui): Use window->screen
5361         instead of default screen.
5363         * src/io-context-gtk.c (icg_init_gui): Use
5364         gdk_screen_get_monitor_geometry instead of gdk_screen_get_width.
5366         * configure.in (LIBS): Check for gdk_screen_get_monitor_geometry
5367         instead.
5369 2002-11-18  Jon K Hellan  <hellan@acm.org>
5371         * src/gui-file.c (gui_file_read): Display both errors and warning
5372         (accidentally left out of commit 2002-11-15).
5374         * src/main-application.c (main): Clear io context after displaying
5375         error.
5377 2002-11-18  Morten Welinder  <terra@diku.dk>
5379         * configure.in (LIBS): Check for gdk_screen_get_width.
5381         * src/workbook-control-gui.c (wbcg_menu_state_update): Change
5382         tooltip also.
5383         (change_menu_label): Handle tooltip changing too.
5385         * src/io-context-gtk.c (icg_init_gui): Set size and position of
5386         splash screen.
5388 2002-11-16  Morten Welinder  <terra@diku.dk>
5390         * src/sheet-autofill.c (autofill_cell): Don't use snprintf for no
5391         reason.
5393 2002-11-17   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5395         * stf.c (stf_open_and_read) : stf expects \0-terminated data. Make
5396         sure it is in fact \0-terminated.
5398 2002-11-16   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5400         * stf-parse.c (stf_parse_is_valid_data) : declare wstr only if
5401         HAVE_WCTYPE_H, don't read past the buffer end even if we encountered
5402         wide characters.
5404 2002-11-16  Jon K Hellan  <hellan@acm.org>
5406         http://bugzilla.gnome.org/show_bug.cgi?id=98661
5407         * src/file.c (gnum_file_opener_open): Set filename. Fixes
5409         * src/plugin-service.c (gnum_plugin_file_opener_open): No longer
5410         set filename.
5412 2002-11-15  Jon K Hellan  <hellan@acm.org>
5414         * src/io-context-gtk.c (icg_init_gui): Make it dialog-like. More
5415         like a splash screen, but still possible to move it out of the way.
5417         (gnumeric_io_context_gtk_new): Declare void.
5419 2002-11-15  Jon K Hellan  <hellan@acm.org>
5421         * src/io-context-gtk.c: Include libgnumeric.h
5422         (icg_init_gui): Declare static void.
5424         * src/Makefile.am (GNUMERIC_BASE): Add io-context-gtk.[ch]
5426 2002-11-15  Jon K Hellan  <hellan@acm.org>
5428         * src/main-application.c (warn_about_ancient_gnumerics): Take an
5429         IOContext instead of a WorkbookControl.
5430         (main): Create an initial IOContextGtk if started with GUI, a
5431         CommandContextStderr otherwise. Call plugins_init earlier, but
5432         don't create wbcg before reading initial files. Read initial files
5433         with wb_view_new_from_file, and wrap them in a wbcg if successful.
5435         * src/io-context-gtk.[ch]: Add. IO Context with GUI for showing
5436         progress and messages before first wbcg is shown.
5438         * src/io-context.[ch] (gnumeric_io_warning_occurred): Add.
5440         * src/io-context.c (io_context_init): Initialize warning_occurred,
5441         error_info renamed to info.
5442         (ioc_finalize, gnumeric_io_error_unknown): impl is now optional.
5443         (gnumeric_io_error_info_set, gnumeric_io_error_push): error_info
5444         renamed to info.
5445         (gnumeric_io_error_display, io_progress_update,
5446         io_progress_message): Display it ourselves if no impl.
5447         (gnumeric_io_error_clear): Clear warning_occurred, error_info
5448         renamed to info.
5449         (gnm_io_warning): Implement.
5451         * src/io-context-priv.h (struct _IOContext): Rename error_info to
5452         info, add warning_occurred field.
5454         * src/gui-util.[ch] (gnumeric_error_info_dialog_new): New
5455         function. Contains the meat of gnumeric_error_info_dialog_show,
5456         but doesn't show it or set the parent. Display an error or warning
5457         dialog depending on the severity of the error_info.
5459         * src/gui-util.c (gnumeric_error_info_dialog_show): Factor out
5460         gnumeric_error_info_dialog_new.
5462         * src/error-info.c (error_info_new_str, error_info_new_printf):
5463         Set severity to GNM_ERROR.
5464         (error_info_new_from_error_list): Return NULL for empty list.
5465         (error_info_print_with_offset): Prefix with 'E' or 'W' for errors
5466         and warnings.
5468         * src/error-info.h (enum GnmSeverity): Add with values for
5469         warnings and errors.
5471         * src/error-info.[ch] (error_info_new_vprintf): Add severity
5472         argument.
5473         (error_info_peek_severity): Add.
5475         * src/error-info.c (struct _ErrorInfo): Add severity field.
5477         * src/workbook-control-gui.c (show_gui): Catch incorrectly parsed
5478         geometry. Include code to fix bug 59902: Window too large with
5479         xinerama setup, but disable until we depend on gtk2.2.
5481         * src/gui-file.c (gui_file_read): Display both errors and warnings.
5483         * src/workbook-view.c (wb_view_save_as, wb_view_save): Ditto.
5485 2002-11-15  Jody Goldberg <jody@gnome.org>
5487         * src/pixmaps/Makefile.am : convert to new add/remove decimal icons
5489 2002-11-15  Jody Goldberg <jody@gnome.org>
5491         * configure.in : post release version bump
5493 2002-11-15  Jody Goldberg <jody@gnome.org>
5495         * Release 1.1.12
5497 2002-11-14  Jon K Hellan  <hellan@acm.org>
5499         * src/gui-file.c (gui_file_open): Use get_file_openers instead of
5500         get_file_importers.
5502         * src/plugin-service.c (struct _PluginServiceFileOpener):
5503         can_open, can_import, default_importer_priority: Remove.
5504         (plugin_service_file_opener_read_xml)
5505         (plugin_service_file_opener_read_xml): Ignore "open" and "import"
5506         properties.
5507         (plugin_service_file_opener_activate): Don't use
5508         register_file_opener_as_importer or
5509         register_file_opener_as_importer_as_default.
5511         (plugin_service_file_opener_deactivate): Don't use
5512         unregister_file_opener_as_importer.
5514         * src/file.[ch] (get_default_file_importer,
5515         register_file_opener_as_importer,
5516         register_file_opener_as_importer_as_default,
5517         unregister_file_opener_as_importer, get_default_file_importer,
5518         get_file_importers): Remove
5520         * src/file.c (default_file_importer_list, file_importer_list,
5521         default_file_importer_cmp_priority,): Remove.
5523         * src/stf.c (stf_init):
5524         s/register_file_opener_as_importer_as_default/
5525         register_file_opener/
5527 2002-11-14  Jon K Hellan  <hellan@acm.org>
5529         * src/file.c (gnum_file_opener_probe_real): Seek back
5530         to start of file after probing.
5532         * src/plugin-service.c (gnum_plugin_file_opener_probe): Ditto.
5534 2002-11-14  Jody Goldberg <jody@gnome.org>
5536         * src/gui-util.c (gnumeric_keyed_dialog) : add a weakpointer to the
5537           wbcg in case it goes away before the dialog.  Use data_set_full in
5538           place of a destroy handler.
5540 2002-11-14  Morten Welinder  <terra@diku.dk>
5542         * src/search.c (search_replace_compile): Turn on regutf8.
5544 2002-11-13  Jody Goldberg <jody@gnome.org>
5546         * src/expr.c (gnm_expr_eval) : functions only check for NULL not empty.
5548 2002-11-13  Jon K Hellan  <hellan@acm.org>
5550         * src/GNOME_Gnumeric.xml: Remove FileImport.
5552         * src/gui-file.h (gui_file_import): Remove.
5554         * src/gui-file.c (make_format_chooser): Include an "Automatically
5555         detected" menu item for NULL in file opener/saver list.
5556         (gui_file_open, gui_file_import): Merge into one function, named
5557         gui_file_open. Default to automatically detecting format.
5559         * src/workbook-control-gui.c (cb_file_import): Remove.
5560         (workbook_menu_file[]): Remove cb_file_import.
5561         (verbs[]): Remove FileImport.
5563 2002-11-12  Jody Goldberg <jody@gnome.org>
5565         * src/mstyle.c (mstyle_element_dump) : polish up a bit.
5567 2002-11-11  Jody Goldberg <jody@gnome.org>
5569         * src/sheet-style.c (sheet_style_get_extent) : optionally take the
5570           most common style into account when calculating extents.  The
5571           default style for a column does not contribute to its extent.
5573         * src/parser.y (fold_negative) : new.
5574         (unary negative) use it here.
5575         (array_exp) : and here.
5576         (yylex) : do _not_ handle negatives here.
5578 2002-11-11  Jody Goldberg <jody@gnome.org>
5580         * src/preview-grid.c : convert to GObject
5582 2002-11-10  Jody Goldberg <jody@gnome.org>
5584         * src/rendered-value.c (rendered_value_calc_size_ext) : cells with
5585           embedded new lines will potentially be narrower than the cell,
5586           but still require multiple lines.
5588 2002-11-10  Jody Goldberg <jody@gnome.org>
5590         * src/parser.y (yylex) : fix the handling of negative numbers in
5591           inline arrays.
5593 2002-11-08  Jody Goldberg <jody@gnome.org>
5595         * src/stf.c (stf_preparse) : quicky fix for 97672.  Pending removal of
5596           this limitation.
5598 2002-11-07  Jody Goldberg <jody@gnome.org>
5600         * src/item-edit.c (item_edit_draw) : fix bounding box.
5602 2002-11-07   Andreas J. Guelzow  <aguelzow@taliesin.ca> for
5603         Evert Verhellen <evert.verhellen@advalvas.be>:
5605         * src/pixmaps/function_selector_24.png : improved
5606         * src/pixmaps/function_selector_16.png : improved
5608 2002-11-07   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5610         * src/file.h (gnum_file_saver_fix_file_name): change signature
5611         * src/file.c (gnum_file_saver_fix_file_name): change signature
5612           and return FALSE if non-matching extension
5613         * src/gui-file.c (do_save_as): watch for non-matching extensions
5615 2002-11-07  Morten Welinder  <terra@diku.dk>
5617         * src/mathfunc.c (beta, lbeta): New functions.
5619 2002-11-07  Morten Welinder  <terra@diku.dk>
5621         * src/file.c (gnum_file_saver_get_description): Fix failure case.
5622         (gnum_file_saver_get_extension): Ditto.
5623         (gnum_file_saver_get_mime_type): Ditto.
5624         (gnum_file_saver_get_id): Ditto.
5626 2002-11-06  Jody Goldberg <jody@gnome.org>
5628         * src/plugin.c (ghf_collect_new_plugins) : don't bother copying ids
5629           for reading later.  Respect the new require_explicit_enabling flag
5630           so that a plugin like a real time data feed or corba interface will
5631           only be enabled if the user explicitly requests it.
5632         (plugins_init) : Do active plugins 1st and don't free things, that
5633           memory belongs to the Application.  Then do the new plugins and
5634           don't bother copying then freeing memory.
5636 2002-11-06  Jody Goldberg <jody@gnome.org>
5638         * src/sheet.c (cb_clear_rendered_values) : new.
5639         (sheet_range_calc_spans) : this should be renamed eventually.
5640           It no longer calculates the spans, rather it just honours the flags
5641           and queues the respan or render as necessary.
5642         (sheet_clear_region) : just queue things.
5644         * src/sheet-merge.c (sheet_merge_add) : do it the easy way and just
5645           queue all the rows for respan.  No need to do all the work to work
5646           out this set.
5648         * src/clipboard.c (clipboard_paste_region) : just flag the render/span
5649           it will happen when necessary.
5651 2002-11-06  Morten Welinder  <terra@diku.dk>
5653         * src/mathfunc.c (random_exppow_pdf): Use lgammagnum, not lgamma.
5654         (combin): Ditto.
5655         (permut): Ditto.
5656         (fact): Ditto.
5658 2002-11-06  Jody Goldberg <jody@gnome.org>
5660         * src/item-*, src/*canvas* : convert to foocanvas
5662         * src/application.c (gnumeric_application_setup_icons) : Use new
5663           scaled pngs for formula guru.
5664         * src/pixmaps/Makefile.am : ditto.
5666         * src/plugin.c (plugin_info_read) : add 'require_explicit_enabling' flag
5667           so that we don't auto enable specialized plugins.
5669         * src/plugin-service.c (input_file_save_info_read) : delete.
5670         (plugin_service_file_opener_read_xml) : don't call it here.
5671         (gnum_plugin_file_opener_open) : And don't try to use it here.
5672           It is not useful to hard code the saver if the importer can handle
5673           multiple versions of the format.  Only the import process will know
5674           enough to be able to select the appropriate exporter.
5676         * src/item-cursor.c (item_cursor_tip_setlabel) : simplify.
5677         * src/auto-format.c : tidy up includes.
5679 2002-11-06   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5681         * src/stf.c (stf_init) : text export is lossy too. (78356)
5683 2002-11-06   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5685         http://bugzilla.gnome.org/show_bug.cgi?id=78356
5686         * src/workbook-view.c (wb_view_save_as) : don't mark the
5687           workbook clean unless we saved under the new name.
5689 2002-11-06  Jon K Hellan  <hellan@acm.org>
5691         * configure.in: Fix gda configure switch.
5693 2002-11-05   Andreas J. Guelzow  <aguelzow@taliesin.ca>
5695         * src/workbook-edit.c (wbcg_set_entry) : stop editing before
5696           changing the entry.
5698 2002-11-05   Andreas J. Guelzow  <aguelzow@taliesin.ca> for:
5699         Olaf Till <i7tiol@t-online.de>
5701         * src/regression.[ch] (logarithmic_regression,
5702           logarithmic_fit): New functions.
5704 2002-11-04  Andreas J. Guelzow  <aguelzow@taliesin.ca>
5706         * configure.in (CFLAGS): Switch POSIX and BSD checks.
5708 2002-11-04  J.H.M. Dassen (Ray) <jdassen@debian.org>
5710         * src/application.c, src/auto-format.c, src/cell.c, src/cellspan.c,
5711           src/colrow.c, src/command-context-stderr.c, src/command-context.c,
5712           src/commands.c, src/complete.c, src/consolidate.c, src/io-context.c,
5713           src/tools/analysis-tools.c, src/tools/auto-correct.c,
5714           src/tools/random-generator.c, src/tools/simulation.c,
5715           src/dependent.c, src/expr.c, src/expr-name.c src/format-template.c:
5716           Annotate unused parameters.
5717         * src/expr-name.h.c, src/gnumeric-graph.c, src/sheet-view.c: Included
5718           headers for some standard library functions.
5720 2002-11-04  Morten Welinder  <terra@diku.dk>
5722         * src/func.h: Add GNM_FUNC_AUTO_UNKNOWN.
5724         * configure.in (CFLAGS): Check for magic to get fdopen prototype.
5726 2002-11-03  Morten Welinder  <terra@diku.dk>
5728         * src/func.h: Add type flags here.
5729         * src/auto-format.h: Delete from here.
5731         * src/func-builtin.c (func_builtin_init): Switch to using function
5732         flags for SUM's type.
5734         * src/libgnumeric.c (gnm_common_init): No longer need to init
5735         auto-format.
5736         (gnm_shutdown): No longer need to shut it down either.
5738 2002-11-03  Jody Goldberg <jody@gnome.org>
5740         * src/mstyle.c : Add hooks for rotation.
5742         * src/workbook-control-gui.c (workbook_setup_edit_area) : simplify.
5743         (edit_area_button) : Use stock images, not stock items.
5745 2002-11-03  J.H.M. Dassen (Ray) <jdassen@debian.org>
5747         * src/gnumeric.h: Make it possible to use __attribute__ even if the
5748           compiler happens not to understand it.
5750 2002-11-02  Jody Goldberg <jody@gnome.org>
5752         * src/workbook-control-gui.c (workbook_control_gui_ctor_class) :
5753           Use gtk_window_set_default_icon_list directly.
5755 2002-11-02  J.H.M. Dassen (Ray) <jdassen@debian.org>
5757         * acconfig.h: obsoleted.
5758         * configure.in: Added template descriptions to AC_DEFINE and
5759           AC_DEFINE_UNQUOTED to obsolete acconfig.h .
5760           Removed AC_ARG_PROGRAM as AM_INIT_AUTOMAKE already calls it on our
5761           behalf.
5762           Actually honour --enable-compile-warnings=... .
5763           Upped libgsf(-gnome) checks to consistently require 1.5.0 or newer.
5764         * src/parse-util.h, src/regutf8.c, src/regutf8.h: Don't use // comments.
5765         * src/func.c (gnm_func_group_remove_func),
5766           src/parse-util.c (wbref_parse),
5767           src/plugin.c (gnm_plugin_type_module_load,
5768           gnm_plugin_type_module_unload): Made static.
5769         * src/gnumeric-gconf.h: Added gnm_gconf_get_printer_command prototype.
5770         * src/sheet.h: Added sheet_redraw_headers prototype.
5771         * src/xml-io.c (xml_check_version, xml_workbook_write,
5772           xml_workbook_read, gnumeric_xml_read_workbook,
5773           gnumeric_xml_write_workbook): Made static.
5774         * src/xml-io.c: Casts and type changes to fix signedness.
5776 2002-11-01  Jody Goldberg <jody@gnome.org>
5778         * src/item-grid.c (item_grid_realize) : move setting the background
5779           to white from here.
5780         * src/gnumeric-canvas.c (gnm_canvas_realize) : to here where it makes
5781           more sense.
5783         * src/xml-io.c (xml_write_style) : simplify handling of validation.
5785         * src/mstyle.c (mstyle_new_default) : store NULL validation.
5786         (mstyle_set_validation) : accept NULL.
5788 2002-11-01  Morten Welinder  <terra@diku.dk>
5790         * src/search.c (search_filter_matching): Handle locus.  Search
5791         expression results if requested.
5792         (search_replace_cell): Handle locus.
5793         (search_replace_value): New function.
5795         * src/search.h: Add possibility of searching expressions' results.
5797 2002-11-01  Jody Goldberg <jody@gnome.org>
5799         * configure.in : pos release version bump
5801 2002-11-01  Jody Goldberg <jody@gnome.org>
5803         * Release 1.1.11
5805 2002-10-31  Jody Goldberg <jody@gnome.org>
5807         * src/rendered-value.c (cell_get_entered_text) : only display the
5808          leading quote for strings that might be misinterpretted.
5810         * src/workbook-control-gui.c (cb_autosum) : force focus back onto the
5811           sheet so that we can edit.
5813 2002-10-31  Morten Welinder  <terra@diku.dk>
5815         * src/mathfunc.c (qgamma): Handle the scale parameter at the very
5816         end; just work with unit scale.
5818         * src/func.c (function_def_get_arg_type): Do something sane for
5819         NODES functions.
5821 2002-10-31  Jody Goldberg <jody@gnome.org>
5823         * src/item-edit.c (scan_for_range) : merge a pile of 1 time routine
5824           together to make it clearer what they are trying to do.  I still
5825           don't think this belongs here but at least its getting easier to
5826           read.
5828         * src/workbook-edit.c (wbcg_edit_finish) : allow a user to enter "-"
5829           without a hassle.  If a user accepts the result of a parse error
5830           as a string restore focus to the sheet.  The patch that focused on
5831           the entry would confuse things, and we would pop backinto edit mode.
5833         * src/gnumeric.h : Bring things back down to 256x64k memory usage is
5834           still too high.
5836 2002-10-30  J.H.M. Dassen (Ray) <jdassen@debian.org>
5838         * debian/TODO, debian/gnumeric.postinst: New.
5839         * debian/gnumeric-doc.doc-base: Removed.
5840         * debian/README.Debian, debian/changelog, debian/control,
5841           debian/gnumeric-doc.dirs, debian/gnumeric-doc.files, debian/rules:
5842           Updated.
5844 2002-10-30  Morten Welinder  <terra@diku.dk>
5846         * src/workbook-edit.c (entry_changed): Ditto.
5847         (wbcg_edit_start): Ditto.
5849         * src/func.c (tokenized_help_new): Make UTF-8 safe.
5851         * src/cell-draw.c (cell_split_text): Fix isspace check and
5852         eliminate ctype.h usage.
5853         * src/print-cell.c (cell_split_text): Ditto.
5854         * src/rendered-value.c (rendered_value_calc_size_ext): Ditto.
5856         * src/gutils.c (gnm_mem_chunk_free): Debugging improvement.
5858         * src/mathfunc.c (qgamma): New implementation.
5860 2002-10-30  Jody Goldberg <jody@gnome.org>
5862         * src/complete-sheet.c (complete_sheet_search_iteration) : only kick
5863           the autofill in after 3 characters.
5865         * src/item-edit.c (item_edit_draw) : respect more of the style
5866           settings including v-alignment, underline, strikethrough, and
5867           colours.
5869 2002-10-29  Jody Goldberg <jody@gnome.org>
5871         * src/workbook-edit.c (workbook_edit_complete_notify) : force an
5872           update.  This is kinda ugly but the entire mechanism needs cleanup
5873           to make it less gtk specific.
5875         * src/item-edit.c (item_edit_draw) : create our own layout to handle
5876           autocomplete text.
5878         * src/cell.c (cell_cleanout) : don't crash on cell regions.
5880 2002-10-29  Morten Welinder  <terra@diku.dk>
5882         * src/dependent.c (dep_collection_release): New macro.
5883         (unlink_single_dep): Release the collection.
5884         (MICRO_HASH_hash): Be sane.
5886 2002-10-28  Jody Goldberg <jody@gnome.org>
5888         * src/dependent.c (link_expr_dep) : DEPENDENT_USES_NAME flag.
5889         (cb_name_invalidate) : no need to short circuit anything.  All the
5890           deps are already unlinked.
5891         (do_deps_destroy) : make sure to unlink things that use names from
5892           other sheets so that they don't have stale deps in their
5893           GnmNamedExpr::dependents hash.
5895 2002-10-28  Morten Welinder  <terra@diku.dk>
5897         * src/xml-io.c (xml_sheet_write): fix number of cells.
5899 2002-10-28  Jody Goldberg <jody@gnome.org>
5901         * src/ranges.c (global_range_parse) : don't create names.
5902         (global_range_list_parse) : ditto.
5904         * src/gnumeric.h : Bump the max size
5906         * src/cell.c (cell_cleanout) : mark the row for respan.
5908         * src/func.c (gnm_func_add_placeholder) : init ref_notify to NULL
5909           explicitly.
5910         (function_remove) : free the name if necessary.
5912         * src/print.c (print_job_info_set_one_time_defaults) : patch warning.
5914         * src/cellspan.c (row_calc_spans) : even merges need to be rendered.
5916         * src/cell-draw.c (cell_draw) : item-grid takes care of the
5917           render/span.
5918         * src/print-cell.c (print_cell) : ditto.
5920         * src/print-cell.c (print_cell_range) : check for render/span _before_
5921           merges.
5922         * src/item-grid.c (item_grid_draw) : ditto.
5924 2002-10-27  Jody Goldberg <jody@gnome.org>
5926         * src/dependent.c (dependents_link) : new.
5927         (cb_collect_deps_of_name) : new.
5928         (cb_collect_deps_of_names) : new.
5929         (cb_name_invalidate) : short circuit unlink/relink of name deps.
5930         (do_deps_destroy) : do it en-mass here.
5932 2002-10-27  Jody Goldberg <jody@gnome.org>
5934         * Release 1.1.10
5936 2002-10-26  Jody Goldberg <jody@gnome.org>
5938         * src/Makefile.am : Add input-msg.[ch]
5939         * src/input-msg.c : new.  Quick place holder.
5941 2002-10-26  Jody Goldberg <jody@gnome.org>
5943         * src/xml-io.c (copy_hash_table_to_ptr_array) : Add trivial test to
5944           keep blank cells out of the output.
5946         * src/sheet.c (sheet_regen_adjacent_spans) : Morten found a typo.
5948 2002-10-24  Jody Goldberg <jody@gnome.org>
5950         * src/dependent.c (link_cellrange_dep) : jonkare found a typo.
5951           Thanks that will make life easier when we start using this flag.
5953 2002-10-25  Morten Welinder  <terra@diku.dk>
5955         * src/sheet-object-image.c (sheet_object_image_new_view): Plug
5956         leak.
5958         * src/position.c (cellref_make_abs): Fix col/row confusion.
5960 2002-10-24  Morten Welinder  <terra@diku.dk>
5962         * src/print-info.c (render_opcode): Unconstify opcode arg since
5963         it is being changed.
5964         (hf_format_render): Simplify.
5966         * configure.in (with_long_double): Check for lgammal.
5968         * src/numbers.h (lgammagnum): define.
5970         * src/search.c (search_replace_string): Avoid matching the empty
5971         string at the end of the source after we have done a replacement.
5972         (Replace ".*" by "42" in "0.988" should not yield two copies
5973         of the replacement.)
5975         * src/xml-io.c (xml_cell_set_array_expr): Create place-holders for
5976         unknown functions (that were presumably known when we saved the
5977         file in question).
5978         (xml_read_cell): Ditto.
5979         (xml_read_cell_copy): Ditto.
5980         (xml_read_names): Ditto.
5981         (xml_read_style): Ditto.
5983         * src/expr-name.c (gnm_named_expr_collection_check): Compare in a
5984         different order so purify doesn't misunderstand gcc's smart code.
5986         * src/expr.c (gnm_expr_eval): Debug default cases.
5987         (do_gnm_expr_unref): Ditto.
5989         * src/dependent.c (unlink_expr_dep): Ditto.
5990         * src/summary.c: Ditto.
5991         * src/mstyle.c (mstyle_hash): Ditto.
5992         (summary_item_free): Ditto.
5993         (summary_item_as_text): Ditto.
5994         (summary_item_copy): Ditto.
5996 2002-10-23  Jody Goldberg <jody@gnome.org>
5998         * src/xml-io.c : disable GNM_EXPR_PARSE_UNKNOWN_NAMES_ARE_STRINGS
5999           All we really needed was simple value matching before
6000           stringification.
6002         * src/xml-io.c (cb_xml_write_name) : split out of.
6003         (xml_write_names) : here.  rewritten to handle the hashes.
6005 2002-10-23  Morten Welinder  <terra@diku.dk>
6007         * src/func.c (functions_shutdown): Get rid of the global symbol
6008         table.
6010         * src/style.c (style_font_new_simple): Don't create a layout until
6011         we know we have a font.  Get rid of pango context for negative
6012         hash entries.
6013         (style_shutdown): Complain if we leak style font refs.
6015 2002-10-23  Jody Goldberg <jody@gnome.org>
6017         * src/sheet-merge.c (sheet_merge_add) : improve warning.
6019         http://bugzilla.gnome.org/show_bug.cgi?id=96617
6020         * src/gnumeric-pane.c (cb_sheet_object_canvas_event) : Fully init
6021           object drag here too.
6023         * src/workbook.c (workbook_foreach_cell_in_range) : fix.
6025         * src/position.c (rangeref_normalize) : fix.
6027         * src/validation.c (validation_eval) : don't unref the val expr too
6028           early.
6030 2002-10-21  Jody Goldberg <jody@gnome.org>
6032         * src/gui-file.c (gui_file_read) : handle workbooks with no sheets.
6033         * src/workbook-control-gui.c (wbcg_focus_cur_scg) : ditto.
6034         (show_gui) : ditto.
6036 2002-10-21  Jody Goldberg <jody@gnome.org>
6038         * src/rendered-value.h : don't use short for width.
6040         * src/workbook.c (workbook_set_placeholder) : new.
6041         (workbook_is_placeholder) : ditto.
6043         * src/gui-util.c (cb_parent_mapped) : new utility.
6044         (gnumeric_set_transient) : handle the case where we are a transient
6045           child of an unmapped parent.
6047         * src/expr.c (gnm_expr_equal) : name comparison should take scoping
6048           into account too.
6049         (do_expr_as_string) : and here.
6050         (ets_hash) : use the name itself as a hash key.
6052         * src/expr-name.c (expr_name_add) : return a copy of the error
6053           message.  And ensure that all NULL returns generate errors.
6054         (expr_name_new) : make this static and internal.
6055         (name_print_area) : delete.
6057         * src/dependent.c (workbook_unlink_3d_dep) : during destruction the
6058           order hash may be gone.  This happens with names that contain 3d
6059           references.
6061 2002-10-17  Jody Goldberg <jody@gnome.org>
6063         * src/plugin-service.c (gnum_plugin_file_opener_open) : store the save
6064           info before we load so that the file name is valid.
6066 2002-10-20  Morten Welinder  <terra@diku.dk>
6068         * src/expr-name.c (expr_name_by_name): Sort case insensitively and
6069         take sheets into account.
6071         * src/gutils.c (gnumeric_utf8_collate_casefold): New function.
6073 2002-10-18  Morten Welinder  <terra@diku.dk>
6075         * src/auto-format.c (auto_format_init): Make table case sensitive.
6077         * src/gui-file.c (file_opener_description_cmp): Make UTF-8 safe.
6078         (file_saver_description_cmp): Ditto.
6079         * src/func.c (function_category_compare): Make UTF-8 safe.
6080         * src/value.c (value_diff): Make UTF-8 safe.
6082         * src/value.c (value_compare): Make UTF-8 safe.
6084         * src/plugin-service.c (gnum_plugin_file_opener_probe): Use
6085         g_utf8_strdown, not g_strdown.
6087         * src/format.c (format_month_before_day): Eliminate tolower and
6088         make UTF-8 safe.  Hopefully.
6089         (append_year): Ditto.
6090         (append_day): Ditto.
6091         (format_compile): Ditto.
6092         (format_number): Ditto.
6093         * src/number-match.c (format_create_regexp): Ditto.
6095 2002-10-18  Morten Welinder  <terra@diku.dk>
6097         * src/sheet.c (sheet_name_quote): Make this UTF-8 safe.
6098         * src/parse-util.c (cellref_a1_get): Eliminate use of toupper and
6099         isdigit.  Should be UTF-8 safe now.
6100         (cellpos_parse): Ditto.
6101         * src/parse-util.c (r1c1_get_item): Ditto for isdigit.
6103 2002-10-18  Morten Welinder  <terra@diku.dk>
6105         * src/expr.c (gnm_expr_get_constant): New function.
6107         * src/stf.c (stf_open_and_read): Seek to beginning of input, just
6108         in case.
6109         (stf_read_default_probe): Don't probe at file name level.
6111 2002-10-17  Morten Welinder  <terra@diku.dk>
6113         * src/sheet.c (sheet_rename): Make sure workbook's sheet name hash
6114         stays valid.
6116 2002-10-17  Morten Welinder  <terra@diku.dk>
6118         * src/expr-name.c (expr_name_by_name): New function.
6120 2002-10-17  Jody Goldberg <jody@gnome.org>
6122         * src/expr-name.c (name_print_area) : Print_Area is a command to the
6123           print system regarding what to print.  It does not return the area
6124           that would be printed.
6126 2002-10-17  Jody Goldberg <jody@gnome.org>
6128         * src/workbook-edit.c (wbcg_edit_finish) : adjust to changes in
6129           ParseError and tweak focus handling when user decides to re-edit so
6130           that we actually select what we want to.
6132         * src/parse-util.c (parse_error_init) : Use a GError for the error
6133           message to clarify life cycle.
6134         (parse_error_free) : ditto.
6136         * src/item-edit.c (item_edit_cursor_blink_start) : simple support for
6137           xsettings.
6139         * src/expr.c (do_expr_as_string) : sync the precedence with the parser.
6140         (do_expr_as_string) : Always qualify a sheet local name from another
6141           sheet.
6143 2002-10-16  Jody Goldberg <jody@gnome.org>
6145         * src/parser.y : Fix precedences and associativity
6146         Revamp error reporting to make sense.
6147         Tify up the code a bit.
6148         (sheetref) : remove the 3d productions.  We no longer need them
6149         (workbookref) : add a new production to simplify error reporting.
6152 2002-10-15  Jody Goldberg <jody@gnome.org>
6154         * src/value-sheet.c (value_area_foreach) : Add CellIterFlags
6156 2002-10-15 Christopher Benedict <cbenedic@csa.concordia.ab.ca>
6158         * src/sheet-object-widget.c (cb_frame_config_distroy): new
6159         (cb_frame_set_focus): new
6160         (cb_frame_config_ok_clicked): new
6161         (cb_frame_config_cancel_clicked): new
6162         (cb_frame_label_changed): new
6163         (sheet_widget_frame_user_config): new
6165 2002-10-14  Jody Goldberg <jody@gnome.org>
6167         * src/commands.c (update_after_action) : quick and dirty support for
6168           manual recalc.
6169         (cmd_paste_cut_update_origin) : ditto.
6171 2002-10-14  Morten Welinder  <terra@diku.dk>
6173         * src/regression.c (non_linear_regression): Use gnumabs.
6175         * src/mathfunc.c (random_logistic): Use loggnum.
6177         * src/regression.c (parameter_errors): Use sqrtgnum.
6179         * src/format.c (fmt_general_int): Handle -2^31 correctly.
6181         * src/datetime.c (datetime_serial_raw_to_serial): Use floorgnum,
6182         not floor.
6183         (datetime_serial_raw_to_seconds): Ditto.
6185 2002-10-14  Jody Goldberg <jody@gnome.org>
6187         * src/xml-io.c : Have the gnumeric-1.0 importer use that flag
6189         * src/parser.y (parser_simple_val_or_name) : optionally restore the
6190           old 'unknown names are strings' behavior.
6192 2002-10-14  Jody Goldberg <jody@gnome.org>
6194         * src/workbook.c (workbook_calc_spans) : delete.
6196         * src/stf.c (stf_read_workbook_auto_csvtab) : use the new delayed
6197           respan option.
6198         (stf_read_workbook) : ditto.
6200 2002-10-14  Jody Goldberg <jody@gnome.org>
6202         * src/workbook-control-gui.c : Add links for
6203             Data -> Text To Columns
6204             Data -> Import External -> From File
6205         Only partially implemented in the last hour, but these are just too
6206         easy to pass up.
6208         * src/stf.c (stf_store_results) : new, split out of.
6209         (stf_read_workbook) : here.
6210         (cb_get_content) : new utility.
6211         (stf_text_to_columns) : new.  Only partially done.
6212           We still need a way to get the target region.
6214         * src/stf-parse.c (stf_parse_sheet) : take a starting offset for the
6215           output, and return a boolean in place of the sheet that was passed in.
6217         * src/sheet.c (sheet_queue_respan) : new.
6219         * src/selection.c (selection_first_range) : start cleanup and take a
6220           CommandContext rather than a Control.
6222         * src/gui-util.c (gnumeric_notice) : Cheat and access the private
6223           label member to set it to accept markup.
6225         * src/commands.c (cmd_area_set_text_redo) : a nifty optimization.
6226           Just redraw all and queue respanning for the effected regions.
6228         * src/GNOME_Gnumeric.xml : Add entries for Text to columns and
6229           External Data -> Import from File
6231 2002-10-14  Jody Goldberg <jody@gnome.org>
6233         * src/workbook-control-gui.c (cb_view_freeze_panes) : only center if
6234           we are in the top left, else do H or V only.
6236         * src/sheet-view.c (sv_freeze_panes) : relax restrictions to allow for
6237           H or V only freezing.
6239         * src/gnumeric-pane.c (gnm_pane_init) : control configuration of col
6240           and row headers separately.
6241         * src/sheet-control-gui.c (scg_resize) : support H or V only freezing.
6242         (scg_set_panes) : ditto.
6243         (sheet_control_gui_new) : adjust to the new gnm_pane_init interface.
6244         (scg_set_left_col) : test for freezing distinctly from the existence
6245           of pane 3.
6246         (scg_set_top_row) : test for freezing distincly from the existence of
6247           pane 1.
6249 2002-10-13  Jon K Hellan  <hellan@acm.org>
6251         * src/func.c (tokenized_help_new): Fix check for empty help string.
6253 2002-10-12  Jody Goldberg <jody@gnome.org>
6255         * src/workbook-edit.c (wbcg_edit_finish) : clear the guru before
6256           destroying it in case the destruction tries to finish editing too.
6258 2002-10-12  Jody Goldberg <jody@gnome.org>
6260         * src/func-builtin.c (func_builtin_init) : jump to the new interface.
6262         * src/func.h : some renaming and api cleanup.
6263           The big one was
6264             s/ModulePluginFunctionInfo/GnmFuncDescriptor/
6265           Some extension of that structure to add additional fields (at the
6266           end) and api changes to use it pervasively.  This includes
6267           placeholders for function flags, and implementation and testing
6268           status.
6270           Some general cleanup with
6271             s/FunctionDefinition/GnmFunc/
6272             s/func_lookup_by_name/gnm_func_lookup/
6273             s/function_add_placeholder/gnm_func_add_placeholder/
6274             s/function_def_get_name/gnm_func_get_name/
6275             s/function_def_set_user_data/gnm_func_set_user_data/
6276             s/function_def_get_user_data/gnm_func_get_user_data/
6278           remove function_add_args vs function_add_nodes and replace them with
6279           a GnmFuncDescriptor based gnm_func_add
6281 2002-10-12  Jody Goldberg <jody@gnome.org>
6283         * src/cellspan.c (row_calc_spans) : some simple optimizations
6284           to prune the length we check based on col/row maxima and sparseness.
6285           This can be significantly faster when we add per row maxima.
6287         * src/symbol.c (symbol_install) : use g_warning and table_replace in
6288           case of a collison.
6290         * src/format.c (format_number) : Make UTF-8 clean
6292         * src/sheet-control-gui.c (scg_set_panes) : more initial work on
6293           supporting h/v only freezing.
6295 2002-10-11  Jody Goldberg <jody@gnome.org>
6297         * src/libgnumeric.c (gnm_dump_func_defs) : add a flag to indicate
6298           dumping def or status
6299         * src/func.c (function_dump_defs) : ditto.
6300         * src/main-application.c (main) : add --func-state-dump
6302 2002-10-11  Morten Welinder  <terra@diku.dk>
6304         * configure.in (have_ld): Check for fmodl.
6305         * src/numbers.h: Supply fmodgnum.
6306         * src/gutils.c (g_strsplit_to_list): Delete.
6308 2002-10-11  Jon K Hellan  <hellan@acm.org>
6310         * configure.in: Remove plugins/python/Makefile
6312 2002-10-11  Jon K Hellan  <hellan@acm.org>
6314         * plugins/Makefile.am: Remove old Python plugin
6316 2002-10-11  Morten Welinder  <terra@diku.dk>
6318         * src/numbers.h (gnum_int): Kill.  All users fixed.
6320         * src/numbers.h (finitegnum): Attempt a solution for the
6321         finite/isfinite/FINITE circus.  (All callers should just use
6322         finitegnum.)
6324         * src/mathfunc.c (gpow2): Use ldexpgnum when available.
6326 2002-10-10  Jody Goldberg <jody@gnome.org>
6328         * src/expr-sheet.c (value_intersection) : move here and privatize.
6330         * src/func.c (function_call_with_list) : fence post error.  The first
6331           missing arg can be empty.  While we're here fix the precedence error
6332           that was breaking missing default args.  Remove use of
6333           value_intersection.  gnm_expr_eval handles it (I hope)
6335         * src/expr.c (gnm_expr_eval) : support depends for constructed ranges too.
6337 2002-10-10  Jody Goldberg <jody@gnome.org>
6339         * src/value-sheet.c (value_intersection) : move here and rework to
6340           support singletons.
6342         * src/parser.y (parser_simple_val_or_name) : rename from
6343           parser_lookup_name and restore some of the value matching semantics
6344           so that we handle booleans again.  I'm not sure the error handling
6345           will kick in but it too is good.  the duble and int comparisons
6346           should be useless.  We can optimize things a bit by making a
6347           special case routine and removing those.
6349         * src/expr.c (gnm_expr_eval) : handle dynamic depends and intersection
6350           for the results.
6351         NOTE WARNING WARNING WARNING : change of semantics
6352           In the permit_non_scalar case we do _not_ ensure that the content of
6353           the range has been evaluated.  The user is required to.  We only
6354           handle that in the intersection case.
6355         For constant cellranges we now use value_intersection too.
6357         * src/dependent.c (dependent_types_init) : register DynamicDep
6358         (dependent_queue_recalc_list) : when we find a dynamic depend queue
6359           its container.
6360         (dependent_queue_recalc) : rename from cb_dependent_queue_recalc and
6361           remove the ignored argument the compiler can handle it.
6362         (dynamic_dep_debug_name) : new.
6363         (dependent_add_dynamic_dep) : new.
6364         (dynamic_dep_free) : new.
6365         (dependent_clear_dynamic_deps) : new.
6366         (dependent_unlink) : clear dynamic depends if they exist.
6367         (cell_eval_content) : clear dynamic depends before we start to
6368           evaluate.  They get regenerated by evaluation and we are already know
6369           that we need to recalc, so there is no need to keep them.
6370         (dependent_eval) : ditto.  duplicate the code to keep the semantics of
6371           cell_eval_content tidy.
6372         (do_deps_destroy) : drop the dynamic depend table.
6373         (gnm_dep_container_new) : initialize it here.
6375 2002-10-10  Morten Welinder  <terra@diku.dk>
6377         * src/rangefunc.c (product_helper): New function.
6378         (range_geometric_mean): Improve precision.
6379         (range_product): Improve precision.
6381 2002-10-10  Andreas J. Guelzow
6383         http://bugzilla.gnome.org/show_bug.cgi?id=95333
6384         * src/item-grid.c (item_grid_button_press): do not start editing if
6385           the second half of a double click is in a different cell.
6387 2002-10-09  Morten Welinder  <terra@diku.dk>
6389         * src/gnumeric-graph.c (struct _GnmGraphVector): Avoid "gboolean
6390         ... : 1".
6391         * src/item-bar.c (struct _ItemBar): Ditto.
6392         * src/item-cursor.c (struct _ItemCursor): Ditto.
6393         * src/formats.h (FormatCharacteristics): Ditto.
6394         * src/format-template.h (struct _FormatTemplate): Ditto.
6395         * src/sheet-private.h (struct _SheetPrivate): Ditto.
6396         * src/sheet-view.h (struct _SheetView): Ditto.
6397         * src/validation.h (struct _Validation): Ditto.
6398         * src/workbook-priv.h (struct _Workbook): Ditto.
6399         * src/expr-name.h (struct _GnmNamedExpr): Ditto.
6401 2002-10-09  Jody Goldberg <jody@gnome.org>
6403         * src/commands.c (cmd_define_name_redo) : fix ref counting.
6404         (cmd_define_name_undo) : and here.
6406 2002-10-08  Jody Goldberg <jody@gnome.org>
6408         * src/format.c (do_render_number) : Use the scale factor.
6409         (format_number) : init the scale factor when a fmt ends a section with
6410           a comma.
6412 2002-10-08  Morten Welinder  <terra@diku.dk>
6414         * src/workbook-view.c (wb_view_new_from_file): Catch invalid file
6415         names.
6417         * src/gutils.c (gnumeric_valid_filename): New function.
6419 2002-10-08  Jody Goldberg <jody@gnome.org>
6421         Patch from peninguy.nicolas@wanadoo.fr (Nicolas Peninguy)
6422         * src/formats.c : regexp for accounting too.
6424 2002-10-08  Jody Goldberg <jody@gnome.org>
6426         * src/parse-util.c (rangeref_parse) : handle relative full col/row
6427           references.
6429 2002-10-08  Jody Goldberg <jody@gnome.org>
6431         * src/parser.y (parser_lookup_name) : default the placeholder to be at
6432           workbook scope.
6434         * src/cellspan.c (row_calc_spans) : new.
6436         * src/dependent.c (cell_eval_content) : flag the row as needing
6437           respan.  I'll probably want to distinguish between span and render
6438           somehow.
6440         * src/sheet.c (sheet_update_only_grid) : test a new idea for doing
6441           just in time spanning.  It does not support a true model view split
6442           of the rendering.  However, it does delay the render & span until
6443           the row is visible, and as a result it is feasible to support
6444           spanning expressions.  The key is to flag the row as needing
6445           respanning then doing the entire row in the redraw loop.
6446         * src/item-grid.c (item_grid_draw) : do a span recalc if necessary
6447         * src/print-cell.c (print_cell_range) : ditto.
6449         * src/workbook.c (workbook_init) : fix warning.
6451         * src/parser.y (parser_lookup_name) : remove implicit conversion of
6452           unquoted strings that are not names into string values.  Replace it
6453           with the creation of a placeholder name.  This is useful for parsing
6454           expressions before a name has been declared.
6456         * src/cell.c (cell_set_value) : fix docs.
6458         * src/parse-util.c (col_parse) : don't get confused when parsing an
6459           absolute _row_ (yes I mean row) ref.  $3 would see the dollar then
6460           fail, but would return a col of -1.
6461         (check_quoted) : fix stupidity.  Return the char after the last quote.
6463 2002-10-07  Morten Welinder  <terra@diku.dk>
6465         * src/value.c (value_zero): New variable.
6466         * src/value-sheet.c (value_area_fetch_x_y): Use global value_zero.
6468 2002-10-06  Jody Goldberg <jody@gnome.org>
6470         Patch from peninguy.nicolas@wanadoo.fr (Nicolas Peninguy)
6471         * src/formats.c : replace the currency format classification engines
6472           with a cleaner, more accurate regexp based approach.
6474 2002-10-04  Jody Goldberg <jody@gnome.org>
6476         * src/workbook.c (workbook_metadata) : new.
6478 2002-10-04  Jody Goldberg <jody@gnome.org>
6480         * src/gutils.c (gnumeric_strcase_hash) : Mark for fixing.
6482         * src/dependent.c (workbook_link_3d_dep) : disable unlinking during
6483           reordering.
6484         (workbook_unlink_3d_dep) : disable unlinking during reordering.
6486         * src/commands.c (cmd_rename_sheet) : use workbook_sheet_by_name.
6488         * src/sheet.c (sheet_rename) : store a case insensitive key.
6489         (sheet_new) : ditto.
6490         (sheet_destroy) : clear the name.
6492         * src/workbook.c (workbook_sheet_reorder) : add missing call to
6493           pre_sheet_index_change.
6494         (workbook_init) : No need for case insensitive hashing the callers
6495           will do the conversions.
6496         (pre_sheet_index_change) : flag the reorder so that we do not remove
6497           the list of things we're reordering when they get unlinked.
6498         (post_sheet_index_change) : ditto.
6499         (workbook_sheet_by_name) : convert the target_name to casefolded form.
6500         (workbook_sheet_attach) : use the case folded form of the name as key
6501           to the hash.
6502         (workbook_sheet_detach) : ditto.
6503         (workbook_sheet_reorganize) : ditto.
6505 2002-10-04  Morten Welinder  <terra@diku.dk>
6507         * src/workbook-control-gui.c (show_gui): Adapt --geometry handling
6508         to gtk2.
6510 2002-10-04  Jody Goldberg <jody@gnome.org>
6512         * src/parser.y (yylex) : reinstate optionally forcing abs references
6513         (yylex) : applix scatters random spaces throughout its
6514           expressions but ignores them.
6515         (yylex) : extend handling of xml quoting and opencalc quoting of
6516           strings in expressions.
6518 2002-10-04  Jody Goldberg <jody@gnome.org>
6520         * src/workbook-control.c (wb_control_parse_and_jump) : use the new
6521           undo support and handle assigning to a placeholder.
6523         * src/gnumeric-canvas.h : Clean up the naming convention to use
6524           GnmCanvas in all locations.
6526         * src/expr-name.c (expr_name_add) : its ok if the expr is NULL create
6527           a placeholder.
6528         (expr_name_is_placeholder) : new.
6530         * src/commands.c (CmdChangeSummary) : this has no business being
6531           control specific.
6532         (CmdPrintSetup) : ditto.
6533         (CmdDefineName) : new.
6535         * src/command-context.c (gnumeric_error_calc) : new.
6536         (gnm_error_calc) : new.
6538 2002-10-03  Jody Goldberg <jody@gnome.org>
6540         * src/format.c (format_get_currency) : convert locale's currency
6541           symbol to UTF-8.
6542         (gnumeric_setlocale) : clear the cache currency symbol.
6544 2002-10-03  Jody Goldberg <jody@gnome.org>
6546         * src/expr.c (gnm_expr_is_err) : new util.
6548 2002-10-03  Morten Welinder  <terra@diku.dk>
6550         * src/parse-util.c (col_name_internal): Handle larger number of
6551         columns.
6553         * src/sheet-style.c (sheet_style_init): Warn if we have a conflict
6554         between column name TRUE and constant TRUE.
6556 2002-10-03  Morten Welinder  <terra@diku.dk>
6558         * src/sheet-style.c (TILE_SIZE_COL, TILE_SIZE_ROW): Auto-size.
6560 2002-10-02  Jody Goldberg <jody@gnome.org>
6562         * src/commands.c (cmd_reorganize_sheets) : DO NOT STORE CONTROL.
6563           The command context of the inititing action should never be stored.
6564           Undo should use the context from the control that initiated the
6565           undo.
6567         * src/io-context-priv.h : Inherit from CommandContext and make our
6568           lives easier.  Also avoid the pointless duplication.
6570         * src/command-context-priv.h : remove the plethora of err types in
6571           favour of GError with a tag and ErrorInfo.
6572           Protect cmd_context_progress_set, cmd_context_progress_message_set.
6573         * src/command-context-stderr.c : Adjust to the changes.
6575         * src/bonobo-io.c : IOContext inherits from CommandContext now use the
6576           error handlers there.
6577         * src/plugin-util.c : ditto.
6578         * src/sheet-object-bonobo.c : ditto.
6579         * src/stf.c : ditto.
6580         * src/workbook-control-gui.c : ditto.
6581         * src/workbook-view.c : ditto.
6582         * src/xml-io.c : ditto.
6584 2002-10-01  Jody Goldberg <jody@gnome.org>
6586         * src/pixmaps/Makefile.am : add the rest of the new artwork.
6588 2002-10-01  Jody Goldberg <jody@gnome.org>
6590         * src/workbook.c (workbook_sheet_reorder) : take a workbook not a
6591           control.
6593 2002-10-01  Jody Goldberg <jody@gnome.org>
6595         * src/workbook-control-gui.c (cb_insert_hyperlink) : hook up the
6596           hyperlink dialog.
6598         * src/sheet-control-gui.c (context_menu_handler) : adjust to new
6599           calling convention for dialog_hyperlink.
6601 2002-09-30  Jody Goldberg <jody@gnome.org>
6603         * src/application.c (gnumeric_application_setup_icons) : add the new
6604           icons.
6605         * src/pixmaps/Makefile.am : add the new protection icons
6607 2002-09-30  Jody Goldberg <jody@gnome.org>
6609         Patch from : dorami@bu.iij4u.or.jp
6610         * src/gnumeric-canvas.c : re-enable IM support.
6612 2002-09-30  Jody Goldberg <jody@gnome.org>
6614         * src/workbook-control-gui.c (cb_editline_focus_in) : give the entry a
6615           chance to handle the focus-in too.
6617 2002-09-30  Morten Welinder  <terra@diku.dk>
6619         * src/GNOME_Gnumeric.xml: Fix case of Hyperlink.
6621 2002-09-30  Jody Goldberg <jody@gnome.org>
6623         * configure.in : post release bump
6625 2002-09-30  Jody Goldberg <jody@gnome.org>
6627         * Release 1.1.9
6629 2002-09-29  Jody Goldberg <jody@gnome.org>
6631         * src/parse-util.c (gnm_1_0_rangeref_parse) : fix handling of error in
6632           3d ref.
6633         (rangeref_parse) : ditto.
6635 2002-09-29  Jody Goldberg <jody@gnome.org>
6637         * src/parse-util.c (gnm_1_0_rangeref_parse) : fix.
6638         (wbref_parse) : implement.
6640 2002-09-29  Jody Goldberg <jody@gnome.org>
6642         * src/parse-util.c (wbref_parse) : document and fix a bit.  still
6643           untested.
6644         (rangeref_parse) : touch up a bit.
6645         (gnm_1_0_rangeref_parse) : new, untested.
6647         * src/parser.y (gnm_expr_parse_str) : add
6648           GNM_EXPR_PARSE_USE_OPENCALC_CONVENTIONS.  To hard code the
6649           separators rather than extracting them from the locale.  Its quick
6650           and dirty, but will do the job for now.  Later it would be nice to
6651           abstract the parse state a bit more so that we don't need to
6652           re-initialize every time.
6653         (yylex) : handle xml escaping for opencalc.
6655         * src/parse-util.c (row_parse) : fix.
6657 2002-09-27  Jody Goldberg <jody@gnome.org>
6659         * src/expr-name.c (expr_name_create) : delete because it was hard
6660           coding which rangeref parser to use.
6662 2002-09-27  Jody Goldberg <jody@gnome.org>
6664         * src/parser.y : remove bogus error message and fix the other message
6665           to be correct when faced with the wrong type of array separator.
6667 2002-09-27  Jody Goldberg <jody@gnome.org>
6669         * src/value.c (value_coerce_to_number) : new.
6671 2002-09-26  Lutz Müller <lutz@users.sourceforge.net>
6673         * src/workbook.[c,h]: New signals: "sheet_added" and "sheet_deleted".
6675 2002-09-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
6677         * src/workbook.c (workbook_sheet_reorder): new
6678         (workbook_sheet_reorganize): extract reorder code into
6679           workbook_sheet_reorder
6680         * src/workbook.h (workbook_sheet_reorder): new
6682 2002-09-26  Jody Goldberg <jody@gnome.org>
6684         * src/workbook-control-gui.c (cb_realize) : ok, the fix for
6685           loading multisheet workbooks breaks if you load them directly.
6686           Fix that.
6688         * src/parser.y (build_set) : remove unnecessary deallocation.
6690 2002-09-26  Jody Goldberg <jody@gnome.org>
6692         * src/parser.y : Make the error handling more consistent.
6694         * src/expr.c (gnm_expr_list_as_string) : optimize.
6696         * src/dependent.c (link_expr_dep) : place holder for intersection.  I
6697           think it is ok to palm all of this off until eval time (asusming we get
6698           eval time depends working)
6700 2002-09-26  Jody Goldberg <jody@gnome.org>
6702         * configure.in : add openoffice
6703         * plugins/Makefile.am (SUBDIRS) : add openoffice
6705 2002-09-26  Jody Goldberg <jody@gnome.org>
6707         * src/workbook-control-gui.c (cb_realize) : grab focus for current
6708         sheet.
6710 2002-09-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
6712         * src/workbook.c (workbook_sheet_reorganize): add missing call
6713           to post_sheet_index_change
6715 2002-09-25  Jody Goldberg <jody@gnome.org>
6717         * src/expr.c (gnm_expr_is_rangeref) : new.
6719         * src/parser.y (yylex) : support space as the intersection operator.
6721 2002-09-25  Jody Goldberg <jody@gnome.org>
6723         * src/parser.y : begin support for intersection and sets, still needs
6724           lots of work, but I don't want to get too out of sync.
6726         * src/expr.c : handle intersection and sets.
6727         * src/expr-name.c (name_refer_circular) : ditto.
6729         * src/workbook.c (post_sheet_index_change) : don't emit the signal
6730           during destruction.
6732 2002-09-24  Lutz Müller <lutz@users.sourceforge.net>
6734         * src/dialogs/dialog-sheet-order.c: Be aware of changes in the
6735           sheet order.
6736         * src/workbook.[c,h]: Provide a "sheet_order_changed" signal.
6737         * src/workbook-control-gui.c: Remove debugging messages. Allow
6738           dropping the sheet anywhere in the workbook - reordering will still
6739           be done.
6741 2002-09-24  Morten Welinder  <terra@diku.dk>
6743         * src/parser.y (yylex): Handle error constants.  (And fix UTF-8
6744         strings.)
6746 2002-09-24  Jody Goldberg <jody@gnome.org>
6748         * src/commands.c (cmd_area_set_text) : we can test for as_array here.
6749           rather than in _redo.  Then make sure that array formulas are parsed
6750           relative to the top left of the target region rather than the
6751           edit_pos.
6753         * src/parser.y (build_range_ctor) : finish error message so that
6754           things compile again.
6756 2002-09-24  Jody Goldberg <jody@gnome.org>
6758         * src/parser.y : remove the rest of the CELLREF based productions.
6760         * src/parse-util.h : do a bit of tidying
6761         (col_parse) : make public.
6762         (row_parse) : make public.
6763         (cellpos_as_string) : rename from cell_pos_name.
6764         (cellpos_parse) : renamed from parse_cell_name
6765         (cellref_as_string) : rename from cellref_name
6766         (cellref_parse) : rename from cellref_get
6767         (parse_col_name) : delete duplicate
6768         (gnm_expr_char_start_p) : renamed from gnumeric_char_start_expr_p.
6770         * src/parse-util.c (rangeref_parse) : fix handling of non-3d
6771           inter-sheet refs.
6772         (col_parse) : check for overflow.
6774         * src/parser.y : remove sheet_ref RANGEREF production. RANGEREF
6775           already handles sheet references internally.
6777 2002-09-23  Jody Goldberg <jody@gnome.org>
6779         * src/expr.c (gnm_expr_eval) : handle empties when implicit
6780           intersection is valid but accesses an empty cell.
6782 2002-09-23  Lutz Müller <lutz@users.sourceforge.net>
6784         * src/workbook-control-gui.c: Implement reordering of sheets via
6785           drag & drop within workbooks.
6787 2002-09-23  Jody Goldberg <jody@gnome.org>
6789         * src/sheet-view.c (sv_update) : see if there is a named expression that
6790           matches the selection.
6791         * src/workbook-view.c (wb_view_selection_desc) : ditto.
6792         * src/expr-name.c (sheet_names_check) : new.
6794         * src/parse-util.c (cellref_a1_get) : add bound check for columns too.
6796         * src/func.c (function_call_with_list) : silence some pointless
6797           warnings.
6798         * src/workbook-control-gui.c (workbook_menu_edit) : fix cut-n-paste-o.
6799         (cb_statusbox_focus) : Clear selection on focus out.  I'd like to
6800           select everything on focus in, but gtkentry is not thrilled with
6801           that.
6802         * src/workbook-control-gui.c (workbook_setup_edit_area) : connect
6803           cb_status_box_focus.
6805 2002-09-22  Jon K Hellan  <hellan@acm.org>
6807         * src/func.c (function_dump_defs): Re-enable function doc dumping.
6809 2002-09-22  Jody Goldberg <jody@gnome.org>
6811         * src/parse-util.c (col_parse) : doh!
6813 2002-09-20  Jody Goldberg <jody@gnome.org>
6815         * src/sheet-control-gui.c (context_menu_handler) : support clearing a
6816           link and contect to the link editor dialog to add or edit one.
6818 2002-09-20  Jody Goldberg <jody@gnome.org>
6820         * configure.in : extend the tests for graphing libraries.
6821           Enable the corba plugin if the tools are in place.
6823 2002-09-20  Jody Goldberg <jody@gnome.org>
6825         * src/GNOME_Gnumeric.xml : Use the stock jump-to icon
6826         * src/workbook-control-gui.c : ditto
6828 2002-09-20  Jody Goldberg <jody@gnome.org>
6830         * src/plugin-util.c (gnumeric_mmap_error_info) : delete.
6832         * src/plugin-service.c (plugin_service_general_activate) : init error.
6833         (plugin_service_general_deactivate) : ditto.
6834         (gnum_plugin_file_opener_probe) : ditto.
6836 2002-09-20  Jody Goldberg <jody@gnome.org>
6838         * src/workbook-control-gui.c : Add entries for insert hyperlink to
6839           toolbar and insert menu.
6840         * src/GNOME_Gnumeric.xml : ditto.
6841         * src/sheet-control-gui.c (scg_context_menu) : Use the new link icons.
6843 2002-09-20  Jody Goldberg <jody@gnome.org>
6845         * src/print.c : revert to gnome-2-0 versions of gnome-print
6847         * src/application.c (gnumeric_application_setup_icons) : Add jimmac's
6848           new hyperlink icons.
6849         * src/pixmaps/Makefile.am : ditto.
6851         * src/Makefile.am : remove the extra BONOBO libs that is now handled
6852           correctly in configure.
6854         * configure.in : Prep for graphs
6855             --with-graphs defaults to guppi, but can also be gtkextra-2
6856             tidy up the compile/link line by being smarter, and merging in
6857             the bonobo specific libs earlier
6858             Enforce a gnome-2-0 limit on the printing libraries
6860 2002-09-19  Morten Welinder  <terra@diku.dk>
6862         * src/dependent.c (micro_hash_remove): Plug leak.
6864 2002-09-17  Zbigniew Chyla  <cyba@gnome.pl>
6866         * src/plugin-loader-module.c
6867         (gnumeric_plugin_loader_module_unload_service_function_group,
6868         gnumeric_plugin_loader_module_unload_service_ui): Removed.
6869         (gnumeric_plugin_loader_module_load_service_*):
6870         Set loader_data using g_object_set_data_full() so it gets destroyed
6871         together with service.
6873 2002-09-17  Jody Goldberg <jody@gnome.org>
6875         * configure.in : remove idl dir as it starts to move to a plugin
6877         * src/application.c (application_workbook_list_remove) : fix typo.
6879 2002-09-17  Jody Goldberg <jody@gnome.org>
6881         * src/application.c (gnumeric_application_class_init) : use
6882           NONE__POINTER rather than NONE_OBJECT so that we can remove the
6883           workbook during finalization.
6885 2002-09-17  Jody Goldberg <jody@gnome.org>
6887         * configure.in : conditionally enable guppi
6889 2002-09-17  Jody Goldberg <jody@gnome.org>
6891         * src/workbook.c (workbook_init) : no need to handle bonobo ness here.
6892           we have signals now so things can be moved elsewhere.
6894         * src/gnm-marshalers.list : add NONE:OBJECT
6896         * src/bonobo-io.c : copy over remnants from workbook-private.
6897         * src/workbook-private.[ch] : delete
6899         * src/application.c (application_workbook_list_add) : emit signal.
6900         (application_workbook_list_remove) : emit signal.
6901         (application_workbook_list) : move workbook list into Application.
6902         (application_workbook_foreach) : ditto.
6903         (gnumeric_application_class_init) : add signals.
6905 2002-09-17  Jody Goldberg <jody@gnome.org>
6907         * src/print.c (sheet_print) : tweak so that things compile again.
6909 2002-09-16  Morten Welinder  <terra@diku.dk>
6911         * src/workbook.c (workbook_sheet_name_strip_number): Make UTF-8
6912         safe.
6914         * src/parse-util.c (check_quoted): Fix traversal right after
6915         backquote.
6916         (unquote): Make terminal \\ case match check_quoted.
6918 2002-09-16  Morten Welinder  <terra@diku.dk>
6920         * src/parse-util.c (sheet_parse): Off by one bug.
6922 2002-09-16  Morten Welinder  <terra@diku.dk>
6924         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream): "Fix"
6925         warnings.
6927 2002-09-16  Christian Neumair  <chris@gnome-de.org>
6929         * src/dialogs/*.glade: Made most dialogs HIG compliant.
6931 2002-09-13  Jody Goldberg <jody@gnome.org>
6933         * src/workbook-view.c (wb_view_finalize) : detach the controls first.
6934           before we start destruction.
6936         * src/sheet-control-gui.c (sheet_control_gui_new) : use connect_object
6937           so that we only handle the destruction of the table while the
6938           control exists.
6940         * src/workbook.c (workbook_detach_view) : remove the sheetviews
6941           associated with this workbookview.
6943         * src/sheet-object.c (cb_sheet_object_remove) : don't unref,
6944           cmd_object_delete handles that.
6946 2002-09-13  Jody Goldberg <jody@gnome.org>
6948         * src/func.c (function_call_with_list) : support implicit iteration.
6950         * src/value-sheet.c (value_area_fetch_x_y) : catch value_empty too.
6952         * src/parse-util.c (col_parse) : don't change accept the column unless
6953           at least 1 char was read.
6954         (row_parse) : ditto.
6955         (rangeref_parse) : off by 1 error when handling full ranges.
6957         * src/dependent.h (cell_eval) : make this a macro.
6959         * src/plugin-service.c (gnum_plugin_file_opener_probe) : silence a
6960           warning.
6962         * src/expr.c (gnm_expr_eval) : rename from expr_eval_real and move the
6963           empty handling into.
6964         (handle_empty) : here.
6965         (gnm_expr_array_intersection) : delete.
6967 2002-09-11  Jody Goldberg <jody@gnome.org>
6969         * src/gnumeric-graph.c (gnm_graph_new_view) : stub so that sheets with
6970           graphs don't crash.
6971         (gnm_graph_update_bounds) : ditto.
6973 2002-09-11  Jody Goldberg <jody@gnome.org>
6975         * src/expr.c (gnm_expr_eval) : move support for implicit intersection
6976           here.
6978         * src/func.c (function_call_with_list) : merge the marshalling into
6979           here in preparation for supporting implicit iteration.  Fix handling
6980           of optional arguments.
6982 2002-09-11  Jody Goldberg <jody@gnome.org>
6984         Patch from Jiri Jirat <Jiri.Jirat@systinet.com>
6985         * gnumeric.xsd  : fix schema errors
6987 2002-09-11  Morten Welinder  <terra@diku.dk>
6989         * src/plugin-service.c (plugin_service_ui_activate): Plug leak.
6991         * src/workbook-control-gui.c (wbcg_finalize): Plug leak.
6993         * src/main-application.c (main): Shut down bonoboui for leak
6994         hunting.
6996 2002-09-10  Jody Goldberg <jody@gnome.org>
6998         * src/parser.y (yylex) : parse full col/row references.
6999           eg 2:2 or B:C
7001         * src/gui-clipboard.c (x_claim_clipboard) : offer content on both
7002           primary and clipboard.
7004 2002-09-10  Morten Welinder  <terra@diku.dk>
7006         * src/commands.c (cmd_set_text): Make UTF-8 safe.
7007         (cmd_area_set_text): Ditto.
7009 2002-09-10  Morten Welinder  <terra@diku.dk>
7011         * src/sheet-object-image.c: Delete duplicate macros.
7013 2002-09-10  Morten Welinder  <terra@diku.dk>
7015         * src/expr.c: Avoid trailing comma in enum.
7016         * src/gnumeric-canvas.h (gnm_canvas_handle_motion): Ditto.
7017         * src/item-cursor.c: Ditto.
7018         * src/item-edit.c: Ditto.
7019         * src/item-grid.c: Ditto.
7020         * src/preview-grid.c: Ditto.
7021         * src/print.c: Ditto.
7022         * src/sheet-object-graphic.c: Ditto.
7023         * src/sheet.h (enum SheetClearFlags): Ditto.
7025         * src/dialogs/dialog-search-replace.c (set_checked): Fix 92911.
7027 2002-09-09  Jody Goldberg <jody@gnome.org>
7029         * src/gnumeric-gconf.c : slim things down and cache the results
7030           locally.
7032         * src/gutils.c (g_unichar_strchr) : new.
7033         (g_unichar_strstr_utf8) : new.
7034         (g_unichar_strlen) : new.
7035         (g_unichar_strncmp) : new.
7037 2002-09-09  Morten Welinder  <terra@diku.dk>
7039         * src/item-edit.c (item_edit_destroy): Plug leak.
7041 2002-09-06  Jon K Hellan  <hellan@acm.org>
7043         * src/workbook-control-component.c
7044         (workbook_control_component_init): wbcg no longer has editing,
7045         editing_sheet or editing_cell members, so don't initialize them.
7047 2002-09-06  Jody Goldberg <jody@gnome.org>
7049         * src/style.c (style_font_new_simple) : provide smarter defaults in case
7050           of a screw up.
7052         * src/gnumeric-gconf.c (gnm_gconf_get_zoom) : supply a smarter default
7053           for out of range values.
7055 2002-09-06  Jody Goldberg <jody@gnome.org>
7057         * src/sheet-control-gui.c (scg_colrow_select) : don't do a start and a
7058           change.  Do a start or a change.  do not sheet_update for rangesel.
7060         * src/parser.y : some UTF-8 fixes for escaped characters
7062         * src/expr.c (do_expr_as_string) : rangeref_name -> rangeref_as_string
7063         * src/parse-util.c (rangeref_parse) : new.
7064         (parse_surrounding_ranges) : delete.
7066 2002-09-06  Morten Welinder  <terra@diku.dk>
7068         * src/workbook-control-gui.c (setup_progress_bar): Use
7069         gnumeric_inject_widget_into_bonoboui, thus plugging leak.
7071         * src/gui-util.c (gnumeric_inject_widget_into_bonoboui): Plug
7072         leak.
7074 2002-09-05  Jody Goldberg <jody@gnome.org>
7076         * src/xml-io.c (xml_write_style) : fix writing styles now that links
7077           are always defined.
7079 2002-09-05  Jody Goldberg <jody@gnome.org>
7081         * src/parser.y (yylex) : support 1/2 absolute row only refs.
7083 2002-09-04  Jody Goldberg <jody@gnome.org>
7085         * src/item-edit.c (item_edit_draw) : fix leak.
7087 2002-09-04  Jody Goldberg <jody@gnome.org>
7089         * schemas/Makefile.am : get the schemas translated
7091 2002-09-04  Jody Goldberg <jody@gnome.org>
7093         * *.c : remove a pile of deprecated glib functions.
7095         * src/xml-io.c (xml_probe) : fix test for extension .xml.gz  We only
7096           check the last extension.  So foo.xml.gz has extension .gz.
7097           Don't rip out quite so much of the sax handler.
7099 2002-09-04  Jody Goldberg <jody@gnome.org>
7101         * src/cell-draw.c (cell_draw) : fix handling of multiline text.
7102         * src/item-edit.c (item_edit_draw) : fix position of cursor line.
7104 2002-09-03  Jody Goldberg <jody@gnome.org>
7106         * src/position.c (rangeref_name) : new.
7108         * src/expr.c (do_expr_as_string) : Use rangeref_name.
7110         * src/parser.y (sheetref) : support XL style 3d references
7111         (cellref) : accept XL style 3d references in addition to applix format.
7112           Produce an error if an invalid combination is used.
7113             eg sheet1:sheet2!a1:sheet3!a1
7114           Prepare to support row only or col only references (A:C or 1:5)
7116 2002-09-02  Jody Goldberg <jody@gnome.org>
7118         * src/sheet.c (sheet_range_bounding_box) : doh!
7120         * src/mstyle.c (mstyle_new_default) : init the hyperlink to NULL.
7121         (mstyle_set_hlink) : relax restrictions.
7123         * src/sheet-control-gui.c (scg_context_menu) : implement the
7124           conditions on the hyperlink context menu items.
7126         * src/sheet-style.c (sheet_style_region_contains_link) : new.
7127         (cb_find_link) : new.
7129 2002-09-02  Jody Goldberg <jody@gnome.org>
7131         * src/gui-util.c (gnumeric_load_pixbuf) : new.
7133 2002-09-01  Jody Goldberg <jody@gnome.org>
7135         * src/gnumeric-graph.c :  disable enough stuff so that it builds
7136           without bonobo.
7138 2002-08-31  Jody Goldberg <jody@gnome.org>
7140         * src/workbook-control-gui.c (wbcg_add_custom_ui) : copy the domain.
7142 2002-08-30  Jody Goldberg <jody@gnome.org>
7144         * src/gnumeric-graph.c : fix some warnings.
7146 2002-08-30  Morten Welinder  <terra@diku.dk>
7148         * src/collect.c (string_range_function): Don't copy string.
7150         * src/expr.c (expr_eval_real): Speed up concat operator a bit.
7152 2002-08-29  Morten Welinder  <terra@diku.dk>
7154         * src/plugin-service.c (plugin_service_ui_activate): Plug leak.
7156 2002-08-29  Morten Welinder  <terra@diku.dk>
7158         * src/gutils.c (gnm_mem_chunk_free): Plug a minor leak.
7160 2002-08-29  Morten Welinder  <terra@diku.dk>
7162         * src/plugin.c (plugins_init): Plug leak.  Careful with
7163         g_slist_reverse.
7164         (plugins_shutdown): Ditto.
7166 2002-08-29  Jody Goldberg <jody@gnome.org>
7168         * configure.in : bump gal version req
7169         * README : ditto.
7171 2002-08-28  Jody Goldberg <jody@gnome.org>
7173         * src/print.c (print_range_down_then_right) : fix fence post error.
7174           repeated cols/rows are part of the region if they start _on_ the
7175           coordinate, not just before.
7177 2002-08-28  Jody Goldberg <jody@gnome.org>
7179         * src/xml-io.c (xml_check_version) : fix failure test.
7180         (xml_probe) : ensure we are at the start of the stream.
7182 2002-08-28  Jody Goldberg <jody@gnome.org>
7184         * src/func.c (function_marshal_arg) : begin work to support implicit
7185           iteration.
7187 2002-08-28  Jody Goldberg <jody@gnome.org>
7189         * src/gnumeric-canvas.c : begin tighening the include requirements.
7190         * src/gui-file.c : ditto.
7191         * src/sheet-object-graphic.c : ditto.
7192         * src/sheet-object-widget.c : ditto.
7193         * src/xml-io.c : ditto.
7195         * src/gutils.c (gnm_extension_pointer) : move to libgsf.
7196         (gnm_iconv_close) : ditto.
7198 2002-08-28  Jody Goldberg <jody@gnome.org>
7200         * configure.in : prep for inclusion of libegg code
7201           bump libgsf version req.
7202         * src/Makefile.am : ditto.
7204         * README : update.
7206 2002-08-25  Jody Goldberg <jody@gnome.org>
7208         * Release 1.1.8
7210 2002-08-25  Jody Goldberg <jody@gnome.org>
7212         * src/workbook-control-gui.c : tweak page setup label to match bonobo.
7214         * src/sheet-object-image.c (sheet_object_image_print) : slight tweak
7215           to get thing spartially working.  placement is still off.
7217         * configure.in : bump the gal req to get the new cursor.
7219 2002-08-23  Jon K Hellan  <hellan@acm.org>
7221         * src/bonobo-io.c: Include gsf-input-bonobo.h from gsf-gnome dir
7222         rather than gsf.
7224 2002-08-21  Zbigniew Chyla  <cyba@gnome.pl>
7226         * module-plugin-defs.h:
7227         Define PLUGIN_CLASS only if PLUGIN_ID is defined
7229 2002-08-20  Jody Goldberg <jody@gnome.org>
7231         * configure.in : add config message about python
7233 2002-08-20  Zbigniew Chyla  <cyba@gnome.pl>
7235         * src/plugin-loader.[ch]: Inherit from GObject, not GtkObject.
7236         (gnumeric_plugin_loader_unload_service): Removed FIXME - unload plugin
7237         after unloading all services.
7239         * src/plugin-loader-module.h: Moved all typedefs with plugin
7240         structures...
7242         * src/module-plugin-defs.h: ... here, added some comments and
7243           PLUGIN_CLASS macro
7245         * src/plugin-loader-module.c: Adjusted to plugin-loader.h
7247         * src/plugin.c:
7248         Inherit GnmPlugin from GModuleType, not GObject.
7249         (gnm_plugin_type_module_load, gnm_plugin_type_module_unload):
7250         New, GTypeModule methods.
7251         (gnm_plugin_deactivate): Destroy loader after deactivating plugin
7252         (GnmPlugin): Removed is_base_loaded,
7253         use gnumeric_plugin_loader_is_base_loaded to check this.
7254         (gnm_plugin_use_ref, gnm_plugin_use_unref):
7255         Added assertions (plugin must be active).
7257 2002-08-19  Jon K Hellan  <hellan@acm.org>
7259         * src/stf.c (stf_read_default_probe): Use glib's seek enum instead
7260         of the enum which used to be in libgsf.
7262 2002-08-19  Jody Goldberg <jody@gnome.org>
7264         * src/value.c (value_new_float) : return #NUM rather than #VALUE
7266 2002-08-19  Jon K Hellan  <hellan@acm.org>
7268         * src/file-priv.h: include <bonobo/bonobo-storage.h>
7270 2002-08-18  Jody Goldberg <jody@gnome.org>
7272         * A pile of header cleanups.
7274         * src/gui-clipboard.c (x_claim_clipboard) : fix warnings.
7276 2002-08-18  Jon K Hellan  <hellan@acm.org>
7278         * src/print.c: Fix typo.
7280 2002-08-18  Morten Welinder  <terra@diku.dk>
7282         * src/hlink.c (gnm_hlink_url_activate, ...): Use "lnk", not "link"
7283         as identifier.
7285 2002-08-15  Zbigniew Chyla  <cyba@gnome.pl>
7287         * src/gnumeric-i18n.[ch]: New
7289         * src/Makefile.am: Added gnumeric-i18n.[ch]
7291         * src/gutils.[ch]
7292         (g_lang_score_in_lang_list, g_lang_score_is_better): Removed
7294         * src/format-template.h
7295         (FormatTemplateCategoryGroup, FormatTemplateCategory): Removed lang_score
7297         * src/xml-io-autoft.c (gnumeric_xml_read_format_template_category):
7298         Don't assign category->lang_score
7300         * src/file-autoft.c
7301         (category_compare_orig_name): Renamed to
7302         category_compare_orig_name_and_dir, compare by both name and directory
7303         (category_group_list_get): Don't use lang_score, get translation from
7304         the first category in a group. Sorting by name and directory guarantees
7305         deterministic results
7307         * plugins/applix/applix-read.c, plugins/derivatives/options.c,
7308         plugins/dif/dif.c, plugins/excel/boot.c, plugins/excel/ms-excel-read.c,
7309         plugins/excel/ms-excel-write.c, plugins/excel/ms-formula-read.c,
7310         plugins/excel/ms-formula-write.c, plugins/fn-complex/functions.c,
7311         plugins/fn-complex/gsl-complex.c, plugins/fn-database/functions.c,
7312         plugins/fn-date/functions.c, plugins/fn-eng/functions.c,
7313         plugins/fn-financial/functions.c, plugins/fn-info/functions.c,
7314         plugins/fn-logical/functions.c, plugins/fn-lookup/functions.c,
7315         plugins/fn-math/functions.c, plugins/fn-random/functions.c,
7316         plugins/fn-stat/functions.c, plugins/fn-string/functions.c
7317         plugins/gb/plugin.c, plugins/gda/plugin-gda.c, plugins/guile/plugin.c,
7318         plugins/guile/smob-value.c, plugins/html/html_read.c,
7319         plugins/html/roff.c, plugins/lotus-123/lotus.c, plugins/mps/mps.c,
7320         plugins/mps/parser.c, plugins/numtheory/numtheory.c,
7321         plugins/oleo/oleo.c, plugins/plan-perfect/pln.c,
7322         plugins/psiconv/psiconv-read.c, plugins/python/python.c,
7323         plugins/python-loader/py-gnumeric.c,
7324         plugins/python-loader/python-loader.c, plugins/qpro/qpro-read.c,
7325         plugins/sample_datasource/sample_datasource.c, plugins/sc/sc.c,
7326         plugins/sylk/sylk.c, plugins/uihello/uihello.c, plugins/xbase/boot.c,
7327         plugins/xml_sax/xml-sax-read.c, src/bonobo-io.c, src/clipboard.c,
7328         src/cmd-edit.c, src/command-context-stderr.c, src/command-context.c,
7329         src/commands.c, src/corba-args.c, src/dates.c,
7330         src/dialogs/dao-gui-utils.c, src/dialogs/dialog-about.c,
7331         src/dialogs/dialog-advanced-filter.c,
7332         src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
7333         src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
7334         src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
7335         src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-col-width.c,
7336         src/dialogs/dialog-consolidate.c, src/dialogs/dialog-define-names.c,
7337         src/dialogs/dialog-delete-cells.c, src/dialogs/dialog-formula-guru.c,
7338         src/dialogs/dialog-function-select.c, src/dialogs/dialog-goal-seek.c,
7339         src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
7340         src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-merge.c,
7341         src/dialogs/dialog-paste-special.c, src/dialogs/dialog-plugin-manager.c,
7342         src/dialogs/dialog-preferences.c, src/dialogs/dialog-printer-setup.c,
7343         src/dialogs/dialog-random-generator.c, src/dialogs/dialog-row-height.c,
7344         src/dialogs/dialog-search-replace.c, src/dialogs/dialog-search.c,
7345         src/dialogs/dialog-sheet-order.c, src/dialogs/dialog-simulation.c,
7346         src/dialogs/dialog-solver.c, src/dialogs/dialog-stf-export-sheet-page.c,
7347         src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-fixed-page.c,
7348         src/dialogs/dialog-stf-format-page.c,
7349         src/dialogs/dialog-stf-main-page.c, src/dialogs/dialog-stf-preview.c,
7350         src/dialogs/dialog-stf.c, src/dialogs/dialog-summary.c,
7351         src/dialogs/dialog-tabulate.c, src/dialogs/dialog-workbook-attr.c,
7352         src/dialogs/dialog-zoom.c, src/expr-name.c, src/expr.c,
7353         src/file.c, src/format-template.c, src/format.c, src/formats.c,
7354         src/func-builtin.c, src/func.c, src/gnumeric-canvas.c,
7355         src/gnumeric-graph.c, src/gui-clipboard.c, src/gui-file.c,
7356         src/gui-util.c, src/history.c, src/hlink.c, src/item-bar.c,
7357         src/item-cursor.c, src/item-edit.c, src/libgnumeric.c,
7358         src/main-application.c, src/number-match.c, src/parser.y,
7359         src/plugin-loader-module.c, src/plugin-loader.c, src/plugin-service.c,
7360         src/plugin-util.c, src/plugin.c, src/print-info.c, src/print.c,
7361         src/search.c, src/selection.c, src/sheet-autofill.c,
7362         src/sheet-control-gui.c, src/sheet-merge.c, src/sheet-object-bonobo.c,
7363         src/sheet-object-container.c, src/sheet-object-graphic.c,
7364         src/sheet-object-widget.c, src/sheet-object.c, src/sheet-view.c,
7365         src/sheet.c, src/stf-parse.c, src/stf-parse.h, src/stf.c, src/style.c,
7366         src/tools/analysis-tools.c, src/tools/auto-correct.c, src/tools/dao.c,
7367         src/tools/filter.c, src/tools/random-generator.c,
7368         src/tools/simulation.c, src/tools/solver/api.c,
7369         src/tools/solver/reports-write.c, src/tools/solver/reports.c,
7370         src/tools/solver/solver.c, src/validation.c, src/value-sheet.c,
7371         src/value.c, src/widgets/gnumeric-expr-entry.c,
7372         src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
7373         src/workbook-control-gui.c, src/workbook-control.c, src/workbook-edit.c,
7374         src/workbook-format-toolbar.c, src/workbook-object-toolbar.c,
7375         src/workbook-view.c, src/workbook.c, src/xml-io.c:
7376         Use <gnumeric-i18n.h> everywhere
7378 2002-08-18  Jody Goldberg <jody@gnome.org>
7380         * src/item-grid.c (item_grid_draw) : hmm, we didn't notice the typo
7381           because it did not matter.  Simplify the code.
7382         * src/print-cell.c (print_cell_range) : ditto.
7384 2002-08-17  Jon K Hellan  <hellan@acm.org>
7386         * src/workbook-control-gui.c (custom_uic_destroy): #ifdef
7387         WITH_BONOBO.
7389         * src/item-grid.c (item_grid_draw): Fix typo.
7391         * src/print-cell.c (print_cell_range): Ditto.
7393 2002-08-17  Jon K Hellan  <hellan@acm.org>
7395         * configure.in: Make bonobo version link with libgsf-gnome-1.
7397         * src/Makefile.am (gnumeric_LDADD): Ditto.
7399 2002-08-17  Jon K Hellan  <hellan@acm.org>
7401         * configure.in: Reintroduce stuff accidentaly clobbered by my
7402         commit 2002-08-15.
7404 2002-08-17  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
7406         * src/position.[ch]: Added cellref_set.
7408 2002-08-17  Jody Goldberg <jody@gnome.org>
7410         * src/xml-io.c (xml_probe) : clear the sax routines so that it is
7411           actually quiet.
7413 2002-08-16  Jody Goldberg <jody@gnome.org>
7415         * src/gui-clipboard.c (x_clipboard_received) : tidy up a bit and
7416           prepare to receive UTF-8.
7418 2002-08-16  Jon K Hellan  <hellan@acm.org>
7420         * src/xml-io.h (gnumeric_xml_read_workbook): Declare.
7422         * src/mathfunc.c (random_gaussian_pdf): Make static.
7424         * src/hlink.h (gnm_hlink_get_type, gnm_hlink_cur_wb_get_type,
7425         gnm_hlink_url_get_type): s/foo bar ()/foo bar (void)/
7427         * src/file.c (gnum_file_saver_save_to_stream_real): ifdef out
7428         currently unused code.
7430 2002-08-15  Jon K Hellan  <hellan@acm.org>
7432         * configure.in: Require libgsf 1.3.
7434         * src/xml-io.c (gnumeric_xml_read_workbook): Check for
7435         overflow from gsf_input_remaining.
7437         * src/stf.c (stf_open_and_read, stf_read_default_probe): Check for
7438         overflow from gsf_input_size.
7440 2002-08-14  Jody Goldberg <jody@gnome.org>
7442         * gnumeric.keys.in (application) : convert to use gnumeric_icondir
7444         * src/workbook-control-gui.c (workbook_control_gui_ctor_class) : move
7445           the default icon init here.
7446         * src/libgnumeric.c (gnm_common_init) : from here.  I'd like to make
7447           this non-gui.  That will take a fair amount of cleanup, but it
7448           should be doable.
7450 2002-08-14  Jody Goldberg <jody@gnome.org>
7452         * src/gui-util.c (gnumeric_load_image) : Use gtk_image_new_from_file
7453           directly.
7455         * src/xml-io.c (xml_read_cell) : make the warning more informative.
7457         * src/workbook-control-component.c (wbcc_set_sensitive) : fix warning.
7459         * src/rendered-value.c (rendered_value_calc_size_ext) : some UTF-8
7460           cleanliness.  Should probably use pango layout directly ?
7462         * src/cell-draw.c (draw_overflow) : Use the cached measurement of '#'
7463           and draw the entire string in 1 go.
7464         (draw_text) : use the cached layout.
7465         (cell_split_text) : same as rendered_value_calc_size_ext.
7467         * src/print-cell.c (print_overflow) : use the same method as
7468           draw_overflow.
7470 2002-08-14  Jody Goldberg <jody@gnome.org>
7472         http://bugzilla.gnome.org/show_bug.cgi?id=87833
7473         Patch from dorami@bu.iij4u.or.jp to do an initial pass at supporting
7474         pango in cells.
7476         * src/cell-draw.c : first pass at using pango.
7477         * src/rendered-value.c : ditto.
7478         * src/style.c : ditto.
7479         * src/item-edit.c : ditto.
7481 2002-08-14  Christian Meyer  <chrisime@gnome.org>
7483         * src/workgroup-control-component.c: Renamed to Page Setup accordingly.
7484         * src/workgroup-control-gui.c: ditto.
7485         * src/commands.c: ditto.
7486         * src/GNOME_Gnumeric.xml: Set mnemonic to Page Set_up (as proposed by
7487         HIG)
7488         * src/GNOME_Gnumeric.xml: ditto.
7489         * doc/C/menus.xml: Renamed Print Setup to Page Setup in the whole file.
7490         * doc/C/printing.xml: ditto.
7491         * doc/C/toolbars.xml: ditto.
7493 2002-08-14  Christian Meyer  <chrisime@gnome.org>
7495         * src/GNOME_Gnumeric.xml: Renamed Print Setup to Page Setup.
7496         * src/GNOME_Gnumeric_Componente.xml: ditto.
7498 2002-08-13  Zbigniew Chyla  <cyba@gnome.pl>
7500         * src/sheet.h (struct _Sheet): Added name_unquoted_collate_key.
7502         * src/sheet.c
7503         (sheet_rename, sheet_new): Generate collation key for unquoted name
7504         (sheet_destroy): g_free it here
7506         * src/search.c (cb_order_sheet_row_col, cb_order_sheet_col_row):
7507         Compare sheet names using strcmp() on collation keys
7509 2002-08-13  Peteris Krisjanis <peteris.krisjanis@os.lv>
7511         * configure.in: (ALL_LINGUAS) Latvian (lv) language support.
7513 2002-08-13  Morten Welinder  <terra@diku.dk>
7515         * src/regutf8.h (REG_EPAREN, REG_EBRACE, REG_EESCAPE, REG_OK):
7516         Move macros here.
7518 2002-08-13  Jody Goldberg <jody@gnome.org>
7520         * src/regutf8.c : Add REG_OK
7522 2002-08-12  Jody Goldberg <jody@gnome.org>
7524         * configure.in : post release version bump
7526 2002-08-12  Jody Goldberg <jody@gnome.org>
7528         * Release 1.1.7
7530 2002-08-12  Jody Goldberg <jody@gnome.org>
7532         * src/formats.c : remove the 8 bit characters until the gettext
7533           infrasructure accepts them as UTF-8 without warning.
7535 2002-08-12  Jody Goldberg <jody@gnome.org>
7537         * src/style-border.c (style_border_none_set_color) : Morten found the
7538           colour leak.  While we're here lets fix the GC warnings.
7540         * src/sheet-style.c (sheet_style_update_grid_color) : fix the leak
7541           here too.
7543         * src/sheet-object-graphic.c : Add a quicky line based polygon object.
7545 2002-08-11  Jody Goldberg <jody@gnome.org>
7547         * src/workbook-view.c (wb_view_save_as) : Doh! order these correctly.
7549         * src/sheet-object-cell-comment.c (cell_set_comment) : fix ref leak
7550           when adding a comment.
7552         * src/expr-name.c (expr_name_remove) : tidy old cruft.
7553         (expr_name_shutdown) : Use expr_name_list_destroy.
7554         (expr_name_list_destroy) : make checking more anal.
7556 2002-08-11  Jody Goldberg <jody@gnome.org>
7558         * configure.in : Add the planperfect plugin
7560         * src/mstyle.c : Add shrink to fit.
7561         * src/xml-io.c (xml_write_style) : and here.
7562         (xml_read_style) : And here.
7564 2002-08-09  Morten Welinder  <terra@diku.dk>
7566         * src/search.c (match_is_word): Make UTF-8 safe.
7567         (calculate_replacement): Ditto.
7568         (search_match_string): Ditto.
7569         (search_replace_string): Ditto.
7571 2002-08-09  Zbigniew Chyla  <cyba@gnome.pl>
7573         * src/plugin-service.[ch]
7574         (PluginServiceClass::get_description): New method
7575         (PluginService): Added saved_description field
7576         (plugin_service_general_get_description,
7577         plugin_service_file_opener_get_description,
7578         plugin_service_file_saver_get_description,
7579         plugin_service_function_group_get_description,
7580         plugin_service_plugin_loader_get_description,
7581         plugin_service_ui_get_description):
7582         Implementations of the new method
7583         (plugin_service_get_description):
7584         New, store generated strings in service->saved_description
7586         * src/plugin.[ch]
7587         (gnm_plugin_get_extra_info_list): Removed
7588         (gnm_plugin_get_services): New
7590         * src/plugin-loader.[ch]
7591         (gnumeric_plugin_loader_get_extra_info_list,
7592         GnumericPluginLoaderClass::get_extra_info_list): Removed
7594         * src/plugin-loader-module.c
7595         (gnumeric_plugin_loader_module_info_get_extra_info_list): Removed
7597 2002-08-09  Jody Goldberg <jody@gnome.org>
7599         * src/expr-name.c (expr_name_list_destroy) : fix.
7601 2002-08-07  Zbigniew Chyla  <cyba@gnome.pl>
7603         * src/module-plugin-defs.h
7604         (PLUGIN): New convenience macro for accessing the plugin object.
7605         Define only if PLUGIN_ID is defined.
7606         (GNUMERIC_MODULE_PLUGIN_GET_INFO): Removed
7608 2002-08-09  Jody Goldberg <jody@gnome.org>
7610         * configure.in (int) : enable plan perfect.
7612 2002-08-09  Jody Goldberg <jody@gnome.org>
7614         * src/workbook-control-component.c
7615         (workbook_control_component_ctor_class) : set_sensitive is now in
7616         command context.
7618 2002-08-09  Jody Goldberg <jody@gnome.org>
7620         * src/dependent.c (sheet_deps_destroy) : clean names before deps
7621           so that we don't end up with stale deps in a name dep list.
7622         (workbook_deps_destroy) : clear sheet names too.
7624         * src/expr-name.c (expr_name_shutdown) : deactivate the builtins
7625           before freeing them.
7627 2002-06-28  J.H.M. Dassen (Ray) <jdassen@debian.org>
7629         MIME consistency improvements
7630         * icons/gnome-application-vnd.lotus-1-2-3.png,
7631           icons/gnome-application-x-applix-spreadsheet.png,
7632           icons/gnome-application-x-generic-spreadsheet.png,
7633           icons/gnome-application-x-generic-spreadsheet.png: New (from mc and
7634           gnome-mime-data).
7635         * icons/Makefile.am: Updated for new icons.
7636         * gnumeric.keys.in: Added application/vnd.lotus-1-2-3,
7637           application/x-applix-spreadsheet, application/x-oleo,
7638           application/x-xbase
7639         * gnumeric.mime: Changed application/x-applix to
7640           application/x-applix-spreadsheet to be consistent with the type
7641           elsewhere; added application/vnd.lotus-1-2-3 with extensions as per
7642           http://www.iana.org/assignments/media-types/application/vnd.lotus-1-2-3
7644 2002-06-02  J.H.M. Dassen (Ray) <jdassen@debian.org>
7646         * debian/*: updated.
7647         * src/cell.h: made declaration of cell_new a prototype.
7648         * src/plugin.h: declare printf format attribute for plugin_message.
7649         * src/print.c: removed duplicate declaration of print_debugging (which
7650           is already declared via libgnumeric.h .
7652 2002-08-08  Jody Goldberg <jody@gnome.org>
7654         * src/expr-name.c (expr_name_shutdown) : fix
7656 2002-08-08  Jody Goldberg <jody@gnome.org>
7658         * src/workbook-view.c (wb_view_new_from_input) : its ok to have 0 sheets,
7659           this is not the place to display the error messages.
7661         * src/expr-name.c (expr_name_init) : activate the builtins to help
7662           catch someone trying to unref them.
7664         * gnumeric.desktop.in (Categories) : add encoding
7666         * src/value.c (value_get_as_string) : quote strings in arrays
7668 2002-08-07  Jody Goldberg <jody@gnome.org>
7670         * src/command-context.c (cmd_context_set_sensitive) : move here from
7671           workbook_control_set_sensitive.
7673         * src/workbook-view.c (wb_view_save_as) : use it here.
7675         * src/gui-file.c (gui_file_read) : rename it here.
7677         * src/command-context-stderr.c (ccs_get_password) : new.
7678         (ccs_set_sensitive) : new.
7679         (ccs_class_init) : register them.
7681 2002-08-09  Hasbullah Bin Pit <sebol@ikhlas.com>
7683         * configure.in: (ALL_LINGUAS) Added Malay (ms).
7685 2002-08-07  Zbigniew Chyla  <cyba@gnome.pl>
7687         * src/plugin-service.c
7688         s/g_strcasecmp/g_ascii_strcasecmp/
7690 2002-08-04  Zbigniew Chyla  <cyba@gnome.pl>
7692         * src/func.[ch]
7693         (struct _FunctionDefinition): Added ref_notify
7694         (fn_def_new): Get extra (optional) argument and copy it to ref_notify
7695         (function_add_args, function_add_nodes, function_add_name_only):
7696         Get extra arg and pass it to fn_def_new.
7697         (func_ref): Call ->ref_notify on every change of refcount from 0 to 1
7698         (func_unref): ... and from 1 to 0
7700         * src/plugin-service.c:
7701         (plugin_service_function_group_func_ref_notify): New,
7702         call gnm_plugin_use_(un)ref when provided function is (de)referenced.
7703         (plugin_service_function_group_activate): Removed FIXME, pass
7704         extra argument to function_add_name_only.
7706         * func-builtin.c
7707         (func_builtin_init): Adjusted to function_add_* signature changes.
7709 2002-08-05  Zbigniew Chyla  <cyba@gnome.pl>
7711         * configure.in (AC_OUTPUT): added plugins/uihello/Makefile
7713         * plugins/Makefile.am (SUBDIRS_EXAMPLES):
7714         moved $(GNOME_GLOSSARY_DIR) and $(PYFUNC_DIR) here, added uihello
7716 2002-08-05  Zbigniew Chyla  <cyba@gnome.pl>
7718         * src/plugin-service.h
7719         (PluginServiceUICallbacks, GNM_PLUGIN_SERVICE_UI_TYPE,
7720         GNM_PLUGIN_SERVICE_UI, GNM_IS_PLUGIN_SERVICE_UI): New
7722         * src/plugin-service.c
7723         (PluginServiceUIClass, struct _PluginServiceUI, plugin_service_ui_init,
7724         plugin_service_ui_finalize, plugin_service_ui_read_xml, ui_verb_fn,
7725         plugin_service_ui_activate, plugin_service_ui_deactivate,
7726         plugin_service_ui_class_init): Implementation of the "ui" service.
7727         (service_types): Added "ui".
7729         * src/plugin-loader.h
7730         (struct _GnumericPluginLoaderClass):
7731         Added load_service_ui and load_service_ui methods.
7733         * src/plugin-loader.c
7734         (gnumeric_plugin_loader_unload_service_ui_real,
7735         gnumeric_plugin_loader_class_init,
7736         gnumeric_plugin_loader_load_service,
7737         gnumeric_plugin_loader_unload_service): Added support for ui service
7739         * plugin-loader-module.h
7740         (ModulePluginUIVerbInfo): New
7742         * src/plugin-loader-module.c
7743         gnumeric_plugin_loader_module_class_init
7744         ServiceLoaderDataUI
7745         gnumeric_plugin_loader_module_func_exec_verb
7746         gnumeric_plugin_loader_module_load_service_ui
7747         gnumeric_plugin_loader_module_unload_service_ui
7749         * src/workbook-control-gui-priv.h
7750         (struct _WorkbookControlGUI): Added custom_ui_components field
7752         * src/workbook-control-gui.h
7753         (register_xml_ui, unregister_xml_ui): New
7755         * src/workbook-control-gui.c
7756         (struct _CustomXmlUI, registered_xml_uis,
7757         wbcg_add_custom_ui, wbcg_remove_custom_ui,
7758         add_ui_to_workbook_controls, remove_ui_from_workbook_controls,
7759         register_xml_ui, unregister_xml_ui): New
7760         (workbook_control_gui_init): Initialize wbcg->custom_ui_components
7761         hash table, add all registered uis to the workbook control.
7762         (wbcg_finalize): Destroy wbcg->custom_ui_components
7764 2002-08-06  Morten Welinder  <terra@diku.dk>
7766         * src/gutils.c (gnumeric_strcase_equal): Make UTF-8 safe.
7767         (gnumeric_strescape): Make UTF-8 safe.
7769 2002-08-06  Jody Goldberg <jody@gnome.org>
7771         * src/GNOME_Gnumeric.xml (</) : make control-p the print accelerator.
7773         * src/item-edit.c (item_edit_destroy) : reset the cursor here.
7774         (item_edit_event) : set the cursor to something clearer on entry.
7776         * src/item-grid.c (item_grid_button_press) : Its crufty but given that
7777           we do a grab on button down we need to recognize the double click
7778           ourselves.
7779         (cb_cursor_come_to_rest) : remove some debugging cruft.
7781 2002-08-06  Zbigniew Chyla  <cyba@gnome.pl>
7783         * src/plugin.h: Put information about PLUGIN_ALWAYS_LOAD in the comment.
7785         * src/plugin-service.c (plugin_service_activate):
7786         Load before activating if PLUGIN_ALWAYS_LOAD is defined.
7788         * src/plugin-loader.c
7789         (gnumeric_plugin_loader_load_base, gnumeric_plugin_loader_unload_base):
7790         Pass sensible level value to plugin_message().
7792         * src/plugin.c
7793         (plugin_info_read, plugins_init, plugins_shutdown): ditto
7795 2002-08-05  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
7797         * samples/fn-random.gnumeric: A sample file containing 10,000
7798         random numbers of each distribution.
7800 2002-08-04  Jody Goldberg <jody@gnome.org>
7802         * src/workbook-control-gui.c (workbook_setup_edit_area) : no need to
7803           handle activate.  That is too late to do the cursor movement
7804           correctly.
7806         * src/libgnumeric.c (gnm_shutdown) : don't leak the clipboard on exit.
7808         * src/cell.c (cb_cell_pool_leak) : new.
7809         (cell_shutdown) : use it.
7811         http://bugzilla.gnome.org/show_bug.cgi?id=88057
7812         * src/dependent.c (dependent_unlink) : unlink from the correct
7813           position if we are unlinking a cell but the caller passed in a NULL
7814           position.
7816 2002-08-04  Jody Goldberg <jody@gnome.org>
7818         * src/expr-name.c (expr_name_new) : init as inactive.
7819         (expr_name_add) : activate when the name is added.
7820         (expr_name_create) : clarify the life cycle of the expression.
7821         (expr_name_unref) : it should not be possible to destroy a name that
7822           is still in the lists.
7823         (expr_name_unlink) : delete and merge into expr_name_remove.
7824         (expr_name_list_destroy) : use remove.
7826         * src/dependent.c (sheet_deps_destroy) : remove the names in the sheet.
7827         (workbook_deps_destroy) : ditto.
7829 2002-08-04  Jon K Hellan  <hellan@acm.org>
7831         * src/search.c: Include gutils.h.
7833 2002-08-04  Zbigniew Chyla  <cyba@gnome.pl>
7835         * src/plugin.[ch]
7836         (plugin_db_activate_plugin_list, plugin_db_deactivate_plugin_list):
7837         Made public (for use by plugin manager).
7839 2002-08-03  Zbigniew Chyla  <cyba@gnome.pl>
7841         * src/plugin.c
7842         (gnm_plugin_force_mark_inactive, ghf_plugin_mark_inactive): Removed
7843         (plugins_shutdown): Proper way of handling plugins marked for
7844         deactivation.
7846 2002-07-31  Zbigniew Chyla  <cyba@gnome.pl>
7848         * src/gnumeric-gconf-priv.h: removed PLUGIN_GCONF_KNOWN
7850         * src/gnumeric-gconf.[ch]
7851         (gnm_gconf_get_known_plugins, gnm_gconf_set_known_plugins): removed
7853         * src/gutils.h
7854         (g_string_s]list_copy): added cast to GnmMapFunc
7855         (GNM_[S]LIST_APPEND): new
7856         (GNM_SIZEOF_ARRAY): cast to int, unsigned ints are evil
7858         * src/plugin-loader.c
7859         (gnumeric_plugin_loader_unload_service_general_real,
7860         gnumeric_plugin_loader_unload_service_file_opener_real,
7861         gnumeric_plugin_loader_unload_service_file_saver_real,
7862         gnumeric_plugin_loader_unload_service_function_group_real,
7863         gnumeric_plugin_loader_unload_service_plugin_loader_real):
7864         made static
7866         * src/plugin.[ch]
7867         (struct _GnmPlugin): added saved_textdomain
7868         (gnm_plugin_init): set saved_textdomain to NULL
7869         (gnm_plugin_finalize): g_free it here
7870         (gnm_plugin_get_config_prefix): removed
7871         (gnm_plugin_get_textdomain): new
7873 2002-07-27  Zbigniew Chyla  <cyba@gnome.pl>
7875         * src/gutils.c:
7876         Converted g_string_[s]list_copy to more general functions,
7877         g_[s]list_map.
7879         * src/gutils.h:
7880         (g_[s]list_map): New
7881         (g_[s]tring_list_copy): Converted to macro (using g_[s]list_map)
7882         (g_list_to_vector, g_list_to_vector_custom, g_vector_free_custom,
7883         g_slist_to_vector):
7884         Removed
7885         (GNM_[S]LIST_SORT): New members of GNM_[S]LIST_* family.
7886         (GNM_SIZEOF_ARRAY): New macro
7888         * src/error-info.h:
7889         (GNM_INIT_RET_ERROR_INFO):
7890         New macro, I plan to add some extra code here.
7892         * src/plugin-service.[ch]
7893         PluginService and PluginService* are GObjects now
7894         (with three virtual methods: read_xml, activate, deactivate).
7895         All implementation details are hidden. Every PluginService* exposes
7896         only service-specific PluginService*Callbacks struct (returned by
7897         plugin_service_get_cbs function) for use by plugin loaders.
7898         Placed "id" attribute in PluginService struct instead of
7899         duplicating it in other structs.
7900         (plugin_service_{get,set,clear}_loader_data): Removed
7901         s/plugin_service_read/plugin_service_new/
7903         * src/plugin.c
7904         Adjusted to plugin-service.h changes
7905         (struct _GnmPlugin): Replace vectors with SLists.
7906         (plugins_shutdown): Destroy all plugins (g_object_unref).
7907         Use GNM_INIT_RET_ERROR_INFO everywhere.
7909         * src/plugin-loader.c
7910         (gnumeric_plugin_loader_unload_service_general_real,
7911         gnumeric_plugin_loader_unload_service_file_opener_real,
7912         gnumeric_plugin_loader_unload_service_file_saver_real,
7913         gnumeric_plugin_loader_unload_service_function_group_real,
7914         gnumeric_plugin_loader_unload_service_plugin_loader_real):
7915         Set callbacks using plugin_service_get_cbs and PluginService*Callbacks
7916         structs, instead of settings PluginService* fields directly (they are
7917         private now).
7918         (gnumeric_plugin_loader_load_service,
7919         gnumeric_plugin_loader_unload_service)
7920         Use RTTI to select (un)loading method.
7921         (gnumeric_plugin_loader_set_attributes,
7922         gnumeric_plugin_loader_load_base,
7923         gnumeric_plugin_loader_unload_base):
7924         Use GNM_INIT_RET_ERROR_INFO macro everywhere.
7926         * src/plugin-loader-module.c
7927         (gnumeric_plugin_loader_module_set_attributes,
7928         gnumeric_plugin_loader_module_load_base,
7929         gnumeric_plugin_loader_module_unload_base,
7930         gnumeric_plugin_loader_module_info_get_extra_info_list,
7931         gnumeric_plugin_loader_module_destroy,
7932         gnumeric_plugin_loader_module_func_init,
7933         gnumeric_plugin_loader_module_func_clean,
7934         gnumeric_plugin_loader_module_load_service_general,
7935         gnumeric_plugin_loader_module_func_file_probe,
7936         gnumeric_plugin_loader_module_func_file_open,
7937         gnumeric_plugin_loader_module_load_service_file_opener,
7938         gnumeric_plugin_loader_module_func_file_save,
7939         gnumeric_plugin_loader_module_load_service_file_saver,
7940         gnumeric_plugin_loader_module_func_get_full_function_info,
7941         gnumeric_plugin_loader_module_load_service_function_group,
7942         gnumeric_plugin_loader_module_unload_service_function_group,
7943         gnumeric_plugin_loader_module_func_get_loader_type,
7944         gnumeric_plugin_loader_module_load_service_plugin_loader):
7945         Use g_object data instead of plugin_service_[gs]et_loader_data.
7946         Set callbacks using plugin_service_get_cbs and PluginService*Callbacks
7947         structs, instead of settings PluginService* fields directly (they are
7948         private now).
7949         "has_probe" field has been removed, always get a pointer to
7950     *_file_probe pointer function if it's available.
7951         Less assertions, use GNM_INIT_RET_ERROR_INFO macro everywhere.
7953 2002-07-22  Zbigniew Chyla  <cyba@gnome.pl>
7955         * src/gnumeric.h:
7956         Added typedefs: GnmPlugin, PluginService, GnumericPluginLoader.
7958         * src/gutils.h: New macros: GNM_LIST_FOREACH, GNM_LIST_PREPEND,
7959         GNM_LIST_REMOVE, GNM_LIST_CONCAT, GNM_LIST_REVERSE,
7960         GNM_SLIST_FOREACH, GNM_SLIST_PREPEND,
7961         GNM_SLIST_REMOVE, GNM_SLIST_CONCAT, GNM_SLIST_REVERSE.
7963         * src/gutils.c: Fixed typo in comment.
7965         * src/plugin-loader-module.h: s/PluginInfo/GnmPlugin/
7967         * src/plugin-loader-module.c:
7968         (ServiceLoaderDataGeneral): Removed module_func_can_deactivate.
7969         (gnumeric_plugin_loader_module_func_can_deactivate): Removed
7970         (gnumeric_plugin_loader_module_set_attributes):
7971         Adjusted to plugin-loader.c (read attributes from GHashTable).
7972         s/..._load/..._load_base/
7973         s/..._unload/..._unload_base/
7974         Use new macros from gutils.h.
7976         * src/plugin-loader.[ch]
7977         s/..._load/..._load_base/
7978         s/..._unload/..._unload_base/
7979         s/is_loaded/is_base_loaded/
7980         s/PluginInfo/GnmPlugin/
7981         (GnumericPluginLoaderClass::set_attributes,
7982         gnumeric_plugin_loader_set_attributes: Changed signature, read
7983         attributes from GHashTable, not from two lists.
7984         (gnumeric_plugin_loader_load_base): Ignore dependencies, now
7985         GnmPlugin object is responsible for this.
7986         (gnumeric_plugin_loader_unload_base): Ditto
7987         (gnumeric_plugin_loader_load_service): Don't load base part of the
7988         plugin, plugin takes care of this.
7990         * src/plugin-service.[ch]:
7991         s/PluginInfo/GnmPlugin/
7992         (PluginServiceGeneral::plugin_func_can_deactivate,
7993         plugin_service_can_deactivate,
7994         plugin_service_*_can_deactivate,
7995         plugin_services_data_new, plugin_services_data_free,
7996         PluginServicesData, plugin_service_can_deactivate): Removed.
7997         (plugin_service_plugin_loader_initialize): Use plugins_register_loader,
7998         passing loader id as "plugin-id:loader-service-id".
7999         (plugin_service_plugin_loader_cleanup): Ditto, plugins_unregister_loader.
8000         Use new macros from gutils.h.
8002         * src/plugin.[ch]
8003         Cut down the number of public functions by 20.
8004         Documented most public functions.
8005         Made PluginInfo a GObject, renamed to GnmPlugin.
8006         GnmPlugin sends signals on state change (active, loaded,
8007         can_deactivate).
8008         Removed _peek functions, no need for two types of getters.
8009         Remember "plugin file state" only for plugins from previous Gnumeric
8010         session (so that the list doesn't get bigger with every Gnumeric
8011         version installing .../gnumeric/version/plugins/... directories).
8012         Don't save known plugins separately, use the above list.
8013         Store available plugins in hash table for faster lookups by id.
8014         Ditto for loaders.
8015         Removed strange *_init, *_shutdown functions, now everything is in
8016         plugins_init and plugins_shutdown.
8017         Automatically add plugin containing loader to the list of plugin
8018         dependencies (it's easy because loader id is now:
8019         plugin_id + ":" + service_id).
8020         Detect cyclic dependencies during activation/deactivation.
8021         Very simple method for determining whether plugin can be deactivated
8022         - use "plugin usage counter" (increased by dependent plugins or plugin
8023         services if something keeps references to plugin structures).
8024         Validate plugin id, it may include only letters, digits and underscore.
8025         Removed ugly enums/structs (PluginDependencyType,
8026         PluginLoaderStaticInfo, PluginLoaderTypeInfo).
8027         Other simplifications.
8028         No new features.
8029         Use new macros from gutils.h (it looks so much better).
8031 2002-08-04  Jody Goldberg <jody@gnome.org>
8033         * src/expr-name.c (expr_name_set_scope) : handle the wb -> sheet
8034           transition too.
8035         (expr_name_set_expr) : tweak the expr ref counting semantics to be
8036           more useful.  Just absorb it.
8038         * src/dependent.c (cb_name_invalidate) : don't NULL the name's
8039           expression, rewrite it if necessary.
8041 2002-08-03  Jody Goldberg <jody@gnome.org>
8043         * src/workbook-view.c (wb_view_auto_expr_recalc) : support NULL views.
8045         * src/sheet.c (sheet_get_view) : support NULL.
8047         * src/workbook-control-gui.c (wbcg_sheet_to_page_index) : allow
8048           unfocused controls.
8050         * src/workbook.c (workbook_sheet_delete) : make sure nothing is
8051           focused on the deleted sheet.
8053 2002-08-03  Jon K Hellan  <hellan@acm.org>
8055         * src/GNOME_Gnumeric.xml: Add Edit/Fill/Merge.
8056         Change SheetReorder label to "Manage Sheets".
8058         * src/workbook-control-gui.c (verbs): s/ToolsMERGE/ToolsMerge/
8060 2002-08-03  Jon K Hellan  <hellan@acm.org>
8062         * src/workbook-control-gui.c (verbs, wbcg_menu_state_update):
8063         Added Data/Filter/Show All.
8065         * src/GNOME_Gnumeric.xml: Added `Risk simulation' tool.
8066         Added Data/Filter/Show All.
8068 2002-08-02  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8070         * samples/simulation.gnumeric: Sample file of simulation.
8072         * src/workbook-control-gui.c: Added `Risk simulation' tool.
8074         * src/sheet.h: Added a round variable for risk simulation tool.
8076 2002-08-02  Jody Goldberg <jody@gnome.org>
8078         * src/io-context.c (gnm_io_warning) : a simple placeholder.
8080         http://bugzilla.gnome.org/show_bug.cgi?id=88933
8081         * src/sheet-view.c (sv_attach_control) : no need to manually
8082           initialize things.  Use sv_init_sc.
8084 2002-08-01  Zbigniew Chyla  <cyba@gnome.pl>
8086         * src/stf.c
8087         (stf_open_and_read): Use g_try_malloc
8088         (stf_preparse, stf_read_workbook, stf_read_workbook_auto_csvtab):
8089         s/free/g_free/
8091 2002-08-01  Jody Goldberg <jody@gnome.org>
8093         * src/sheet-style.c (sheet_style_foreach) : new.
8095         * src/mstyle.c (mstyle_equal_XL) : new.
8097         * src/item-grid.c (item_grid_draw) : partially fix drawing for merged
8098           regions that have some cols/rows hidden.  It is impossible to do
8099           that from the gnumeric ui, but it can happen with importers, and
8100           will potentially happen with filters.
8102         * src/item-cursor.c (item_cursor_selection_event) : bring up context
8103           menus on right button.
8105 2002-07-30  Morten Welinder  <terra@diku.dk>
8107         * src/mathfunc.c (random_01): Fix path of random device!
8109 2002-07-30  Morten Welinder  <terra@diku.dk>
8111         * src/mathfunc.c (ran_gamma_int): Fix incorrect underflow
8112         assumptions.
8114 2002-07-28  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8116         * src/func-buildin.c: Function description clean up.
8118 2002-07-26  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8120         * src/sheet.h, src/workbook-control-gui-priv.h,
8121         src/workbook-control-gui.c, src/tools/filter.c: Hide the
8122         sensitivity of `Show All' if there are no filtered rows.
8124         * src/workbook-control-gui.c: Added `Filter->Show All'.
8126 2002-07-25  Morten Welinder  <terra@diku.dk>
8128         * src/mathfunc.c (dgeom, pgeom): Properly import using
8129         tools/import-R.
8131 2002-07-22  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8133         * src/mathfunc.[ch] (dgeom, pgeom): Added.
8135 2002-07-21  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8137         * src/mathfunc.[ch] (random_gaussian_tail): Added.
8139 2002-07-21  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8141         * src/mathfunc.[ch] (random_landau): Added.
8143 2002-07-21  Jody Goldberg <jody@gnome.org>
8145         * Release 1.1.6
8147 2002-07-21  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8149         * src/mathfunc.[ch] (random_rayleigh_tail): Added.
8151 2002-07-21  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8153         * src/mathfunc.[ch] (random_exppow_pdf, random_exppow,
8154         random_gaussian, random_gaussian_pdf, random_laplace_pdf): Added.
8156 2002-07-21  Jody Goldberg <jody@gnome.org>
8158         * src/workbook-control-gui.c (cb_sheet_label_button_press) : be
8159           consistent and select before bringing up the context menu given
8160           that the menu is being applied to the tab.
8162 2002-07-20  Jon K Hellan  <hellan@acm.org>
8164         * configure.in: Test for BROKEN_PY_INITIALIZE feature (before
8165         Python 2.0, Python would write to the environment, and we had to
8166         work around it.)
8168         * acconfig.h: Add BROKEN_PY_INITIALIZE
8170 2002-07-20  Jody Goldberg <jody@gnome.org>
8172         * src/item-grid.c (item_grid_button_press) : tidy the interface
8173           handle all types button presses, not just button1.
8174           Button 3 is not consistent in selecting and bringing up context menu
8175           rather than just the menu (Thanks to the OpenOffice folk for noticing)
8176         (item_grid_event) : move the press logic into item_grid_press_event.
8178 2002-07-20  Jody Goldberg <jody@gnome.org>
8180         * src/item-grid.c (item_grid_init) : init the cursor timer.
8181         (item_grid_event) : handle hlink cursor transitions and tips.
8182         (ig_clear_hlink_tip) : new.
8183         (item_grid_destroy) : clear the cursor timer and any visible tips.
8184         (cb_cursor_come_to_rest) : new.
8185         (cb_cursor_motion) : new.
8187         * src/sheet-control-gui.c (scg_set_display_cursor) : in the non-object
8188           case use the pane's current cursor.
8190 2002-07-18  Jody Goldberg <jody@gnome.org>
8192         * src/expr.c (gnm_expr_extract_ref) : take some eval flags to see if
8193           we can support implicit iteration.
8194         * src/func.c (function_call_with_list) : ditto.
8196 2002-07-18  Jody Goldberg <jody@gnome.org>
8198         * src/hlink.c : write url and internal link support.
8200 2002-07-16  Jody Goldberg <jody@gnome.org>
8202         * src/cellspan.c (cell_calc_span) : center across selection can force
8203           a span for something that would wrap.
8205         * src/workbook-control-gui.c (wbcg_error_error_info) : add 150% as a
8206           std zoom level.
8208 2002-07-15  Jody Goldberg <jody@gnome.org>
8210         * src/func.h : add status info to the func def for easy update
8212 2002-07-18  Morten Welinder  <terra@diku.dk>
8214         * src/search.c (calculate_replacement): Make UTF-8 safe at last.
8215         (inspect_case): New function split out from calculate_replacement.
8217         * src/gutils.c (gnumeric_utf8_strcapital): New function (that
8218         should really be in glib).
8220         * src/mathfunc.c (random_01): Use unsigned char array, not
8221         unsigned int.
8222         (random_cauchy, etc.): Make gnum_float safe.
8224 2002-07-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8226         * src/mathfunc.[ch]: Added random_levy, random_levy_skew,
8227         random_gumbel1 and random_gumbel2.
8229 2002-07-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8231         * src/mathfunc.[ch]: Added random_tdist.
8233 2002-07-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8235         * src/mathfunc.[ch]: Added random_beta, random_chisq, random_fdist,
8236         random_geometric, random_hypergeometric, random_logarithmic, and
8237         random_logistic.
8239 2002-07-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8241         * src/mathfunc.[ch]: Added random_gamma, random_pareto, random_laplace,
8242         and random_weibull.
8244 2002-07-18  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>
8246         * src/mathfunc.[ch]: Added random_cauchy and random_lognormal.
8248 2002-07-16  Yanko Kaneti <yaneti@declera.com>
8250         * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
8252 2002-07-16  Morten Welinder  <terra@diku.dk>
8254         * configure.in (long double): Move to later when LIBS is in better
8255         shape.
8256         * src/gutils.c: Fix includes.
8258 2002-07-13  Jody Goldberg <jody@gnome.org>
8260         * src/workbook.c (workbook_foreach_cell_in_range) : fix 3d handling,
8261           and convert.
8263         * src/sheet.c (sheet_foreach_cell_in_range) : convert from boolean to
8264           bit flags and support only_visible in addition to only existing.
8265         (sheet_col_size_fit_pixels) : Only fit visible cells.
8266         (sheet_row_size_fit_pixels) : ditto.
8268 2002-07-12  Jody Goldberg <jody@gnome.org>
8270         * src/sheet.c (cb_max_cell_width) : leave merged cells out of the
8271           running.
8273         http://bugzilla.gnome.org/show_bug.cgi?id=87987
8274         (sheet_range_bounding_box) : nice catch, thankfully it is a new bug.
8276 2002-07-12  Jody Goldberg <jody@gnome.org>
8278         * src/plugin-service.c (gnum_plugin_file_opener_probe) : remove
8279           pretend feature that supported regexp.  Only shell paterns are
8280           supported now.
8281         (plugin_service_file_opener_read) : ditto.
8283         * src/io-context.c (file_io_progress_set) : delete.
8284         (file_io_progress_update) : ditto.
8285         (memory_io_progress_set) : ditto.
8286         (memory_io_progress_update) : ditto.
8288         * src/gnumeric-gconf.c (gnm_gconf_get_horizontal_dpi) : dummy out for
8289           now until we add a cache.
8290         (gnm_gconf_get_vertical_dpi) : ditto.
8292 2002-07-10  Jody Goldberg <jody@gnome.org>
8294         * src/stf.c (stf_preparse) : stf_parse_convert_to_unix now returns the
8295           length.
8296         * src/stf.c (stf_read_default_probe) : handle short files.
8298 2002-07-10  Jody Goldberg <jody@gnome.org>
8300         * src/gui-clipboard.c (x_clipboard_to_cell_region) :
8301           stf_parse_is_valid_data now takes a length.
8302         * src/stf.c (stf_read_default_probe) : ditto.
8303         (stf_preparse) : ditto.
8304         * src/stf-parse.c (stf_parse_is_valid_data) : Use the supplied buffer
8305           length, not a 0 terminator.
8307 2002-07-10  Jody Goldberg <jody@gnome.org>
8309         * configure.in : enable quatro pro plugin
8310         * plugins/Makefile.am : ditto
8312 2002-07-11  Morten Welinder  <terra@diku.dk>
8314         * src/search.c (calculate_replacement): Initial work towards UTF-8
8315         safety.
8316         (search_replace_compile, search_replace_verify): Make UTF-8 safe,
8317         except for the fact that our regexp routines are not.
8319 2002-07-10  Jon K Hellan  <hellan@acm.org>
8321         * src/workbook-control-component.c (cb_help_about): Remove
8322         debugging output.
8323         (workbook_control_component_activate): Plug leak.
8325 2002-07-10  Morten Welinder  <terra@diku.dk>
8327         * src/search.c (search_replace_string): Use glib 2's
8328         g_string_append_len.
8329         (calculate_replacement): Ditto.
8330         (cb_order_sheet_col_row, cb_order_sheet_row_col): Make UTF-8 safe.
8332 2002-07-09  Morten Welinder  <terra@diku.dk>
8334         * src/mathfunc.c (random_poisson): Fix loop (by switching method).
8336 2002-07-09  Jody Goldberg <jody@gnome.org>
8338         * plugins/Makefile.am : excel is no longer conditional
8340 2002-07-09  Jody Goldberg <jody@gnome.org>
8342         * README : add libgsf and remove libole
8343         * configure.in : remove libole
8345 2002-07-08  Jon K Hellan  <hellan@acm.org>
8347         * src/gnumeric-graph.c: modernize a little bit more.
8349 2002-07-08  Jody Goldberg <jody@gnome.org>
8351         * src/gnumeric-graph.c : modernize.
8353 2002-07-07  Jody Goldberg <jody@gnome.org>
8355         * src/gnumeric.h : Add GnmHLink.
8357         * src/item-grid.c : include hlink.h
8358         (item_grid_event) : a button release on an h-link activates it.
8360         * src/Makefile.am : Add hlink.[ch]
8362         * src/sheet.h : Lets take a break from architecture and add something
8363           simple like hyper-links.
8365 2002-07-07  Jon K Hellan  <hellan@acm.org>
8367         * src/datetime.c (date_init, datetime_g_to_serial,
8368         datetime_g_days_between, datetime_g_months_between,
8369         datetime_isoweeknum, datetime_weeknum,
8370         days_between_BASIS_MSRB_30_360, days_between_BASIS_30E_360,
8371         days_between_BASIS_30Ep_360, days_between_basis, coup_cd):
8372         Replaced deprecated g_date_xxx with g_data_get_xxx.
8374         * src/sheet-autofill.c (autofill_compute_delta): Ditto.
8376 2002-07-01  Morten Welinder  <terra@diku.dk>
8378         * src/mathfunc.c (fact): Use table and avoid recursion.
8379         (permut): New function.
8380         (combin): Improve precision.
8382 2002-06-27  Jody Goldberg <jody@gnome.org>
8384         * src/sheet-view.c : move frozen panes here.
8385         * src/sheet.c : from here.
8387         * src/sheet-control-gui.c (scg_resize) : freezing in view now.
8388         (scg_scrollbar_config) : ditto.
8389         (gnm_canvas_update_inital_top_left) : ditto.
8390         (scg_set_left_col) : ditto.
8391         (scg_set_top_row) : ditto.
8392         (scg_make_cell_visible) : ditto.
8393         (scg_set_panes) : ditto.
8394         * src/workbook-control-gui.c (wbcg_menu_state_update) : ditto.
8395         (cb_view_freeze_panes) : ditto.
8396         * src/xml-io.c (xml_read_sheet_layout) : ditto.
8397         (xml_write_sheet_layout) : ditto.
8399 2002-06-27  Jody Goldberg <jody@gnome.org>
8401         * src/main-application.c : include gui-file.h
8403         * src/mathfunc.c : silence some warnings.
8405         * src/gui-util.c : add missing include.
8407 2002-06-26  Jody Goldberg <jody@gnome.org>
8409         * configure.in : bump the gsf version req
8411 2002-06-26  Jody Goldberg <jody@gnome.org>
8413         * src/expr.c (do_gnm_expr_unref) : add missing break.
8415 2002-06-26  Jody Goldberg <jody@gnome.org>
8417         * src/gui-util.c (gui_file_open) : move the magic directory selector
8418           for here.
8419         (gnumeric_dialog_file_selection) : to here, so that it works for other
8420           situations too.
8422 2002-06-26  Jon K Hellan  <hellan@acm.org>
8424         * GNOME_Gnumeric.server.in.in: Add mime types for lotus, applix,
8425         oleo & xbase.
8427 2002-06-25  Jon K Hellan  <hellan@acm.org>
8429         * src/bonobo-io.c (get_raw_bytes_from_stream)
8430         (get_bytes_from_compressed_stream, get_bytes_from_stream)
8431         (cleanup_stream, check_gzip_header, init_for_inflate)
8432         (hack_xmlSAXParseFile, deserialize_wb_from_xml_stream)
8433         (read_from_stream): Remove.
8434         (gnumeric_bonobo_read_from_stream): GsfInput-ize. Probe for file
8435         type.
8437 2002-06-24  Morten Welinder  <terra@diku.dk>
8439         * src/regression.c: Include Daniel Carrera's experimental
8440         non-linear regression code (still unreachable).  Fix the most
8441         obvious porting mistakes and leaks.
8443 2002-06-24  Jody Goldberg <jody@gnome.org>
8445         http://bugzilla.gnome.org/show_bug.cgi?id=86338
8446         * src/formats.c (cell_format_time) : reorder to keep hour major
8447           formats before minute major.
8449         * src/number-match.c (MatchType) : add cummulative types.
8450         (compute_value) : support cummulative time.
8452 2002-06-24  Jody Goldberg <jody@gnome.org>
8454         * src/func-builtin.c : finish cleaning out the 'selection' function
8455         and silence the warnings.
8457 2002-06-23  Jody Goldberg <jody@gnome.org>
8459         * src/sheet-control-gui-priv.h (SCG_FOREACH_PANE) : respect the
8460           GnumericPane::is_active flag to begin support for h/v only freezing.
8461         * src/sheet-control-gui.c (scg_redraw_headers) : ditto.
8462         (scg_make_cell_visible) : ditto.
8464         * src/sheet-view.c (sv_attach_control) : position the cursors for the
8465           newly attached control.
8467         * src/func-builtin.c (func_builtin_init) : delete the 'selection'
8468           function.  It is no longer possible with a sheetview.
8470         * src/workbook-control-gui.c (cb_select_auto_expr) : remove
8471           'selection(0)' argument and just pass function name.  The conversion
8472           to SheetView forces a different methodology.
8473         * src/workbook-view.c (workbook_view_new) : ditto.
8474         (wb_view_auto_expr_recalc) : Make the call manually.
8476 2002-06-22  Jody Goldberg <jody@gnome.org>
8478         * src/expr.h : support constructed ranges.
8479         * src/parser.y (parser_sheet_by_name) : ditto.
8480         * src/expr-name.c (name_refer_circular) : ditto.
8482         * src/expr.c (do_gnm_expr_unref) : support range_ctor and reorder to
8483           produce a better jump table.
8484         (gnm_expr_equal) : ditto.
8485         (do_expr_as_string) : ditto.
8486         (gnm_expr_rewrite) : ditto.
8487         (ets_hash) : ditto.
8488         (ets_equal) : ditto.
8489         (expr_tree_sharer_share) : ditto.
8490         (expr_eval_real) : ditto and use gnm_expr_extract_ref.
8491         (gnm_expr_extract_ref) : new.
8493 2002-06-21  Jody Goldberg <jody@gnome.org>
8495         * src/workbook-view.c (workbook_view_new) : add views of all existing
8496           sheets.
8498         * src/workbook-control-component.c (wbcc_sheet_focus) : move to new
8499         signature.
8501         * src/application.c (gnumeric_application_finalize) : do not free the
8502           clipboard here.  It is too late.
8504 2002-06-21  Jody Goldberg <jody@gnome.org>
8506         * src/parse-util.c (parse_cell_name) : take a cellpos *
8508         * src/func-builtin.c (gnumeric_selection) : dummy out for now until a
8509           different approach is available.
8511         * src/commands.c : convert to sheetview.
8512           s/parent/cmd/ to make things more readable
8513         (cmd_selection_clear) : rename from cmd_clear_selection so that we can
8514           start to group the operations that currently operate on selections.
8515         (cmd_selection_format) : rename from cmd_format.
8516         (cmd_selection_colrow_hide) : rename from cmd_colrow_hide_selection.
8517         (cmd_selection_outline_change) : rename from cmd_colrow_outline_change.
8518         (cmd_selection_group) : rename from cmd_group.
8519         (cmd_selection_autoformat) : rename from cmd_autoformat.
8520         (cmd_colrow_hide_correct_selection) : take a control.
8522         * src/colrow.c (cb_colrow_visibility) : selections are now part of
8523           sheetview.
8524         (colrow_get_visibility_toggle) : ditto.
8526         * src/cmd-edit.c (cmd_select_cur_row) : convert to sheetview.
8527         (cmd_select_cur_col) : ditto.
8528         (cmd_select_cur_array) : ditto.
8529         (cmd_select_cur_depends) : ditto.
8530         (cmd_select_cur_inputs) : ditto.
8531         (cmd_paste_to_selection) : ditto.
8533         * src/bonobo-io.c (deserialize_wb_from_xml_stream) : pass the wbv into
8534           the context directly.
8535         (gnumeric_bonobo_write_workbook) : ditto.
8536         (gnumeric_bonobo_read_workbook) : ditto.
8538         * src/consolidate.c (redraw_respan_and_select) : set selection only
8539           for the calling view.
8540         (row_consolidate) : pass in the view.
8541         (col_consolidate) : ditto.
8542         (colrow_consolidate) : ditto.
8543         (consolidate_apply) : Take a control so that we can extract the view.
8545         * src/commands.c (cmd_consolidate_redo) : Pass the control.
8547 2002-06-20  Jody Goldberg <jody@gnome.org>
8549         * src/sheet-view.c (sheet_view_init) : init the selection.
8551         * src/workbook-view.c (workbook_view_new) : init current_sheet_view.
8552         (wb_view_format_feedback) : operate on the sheetview.
8553         (wb_view_selection_desc) : ditto.
8554         (wb_view_edit_line_set) : ditto.
8556 2002-06-20  Jody Goldberg <jody@gnome.org>
8558         * src/workbook-view.c (wb_view_sheet_add) : Use sheet_get_view.
8559         (wb_view_sheet_focus) : ditto.
8560         * src/xml-io.c (xml_write_selection_info) : ditto.
8561         (xml_read_selection_info): ditto.
8562         (xml_workbook_write) : now that the view is in the context don't
8563           bother passing it.
8564         (xml_write_wbv_attributes) : ditto.
8565         (xml_read_wbv_attributes) : ditto.
8567 2002-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
8569         * src/application.h (gnumeric_application_get_app) : new
8570         * src/application.c (gnumeric_application_get_app) : new
8571         (application_clipboard_clear) : emit "clipboard_modified" rather than
8572           calling wb_control_menu_state_update on each control
8573         (application_clipboard_cut_copy) : ditto
8574         * src/libgnumeric.c (gnm_common_init) : remove debug spew, no need
8575           to keep an app pointer
8576         (gnm_shutdown) : use gnumeric_application_get_app rather than a static
8577           app pointer
8578         * src/workbook-control-priv.h : new clipboard_changed_signal field in
8579           WorkbookControl
8580         * src/workbook-control.c (cb_wbc_clipboard_modified) : new
8581         (wbc_finalize) : disconnect signal handler
8582         (workbook_control_init) : new
8584 2002-06-21  Morten Welinder  <terra@diku.dk>
8586         * configure.in: When checking for 2.96, use $CC.
8588 2002-06-20  Jon K Hellan  <hellan@acm.org>
8590         * configure.in (have_pygtk): Add test for Pygtk.
8592         * acconfig.h: Add WITH_PYGTK
8594 2002-06-19  Jody Goldberg <jody@gnome.org>
8596         * src/application.c (application_clipboard_cut_copy) : Use sv_weak_ref.
8597         (application_clipboard_clear) : Use sv_weak_unref.
8599         * src/workbook-view.c (wb_view_sheet_add) : create the view before
8600           potentially looking for it.
8602         * src/workbook-edit.c (wbcg_edit_finish) : Accept text with only a
8603           leading expr char as strings, we know they can not be expressions.
8605         * src/parse-util.c (gnumeric_char_start_expr_p) : be more lenient
8606           about accepting leading '+' as the start of an expression.
8608         * src/application.c (application_set_selected_sheet) : merge into.
8609         (application_clipboard_cut_copy) : here.
8611 2002-06-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
8613         * src/application.h : gobjectify
8614         * src/application.c : gobjectify; replace app. with app-> throughout
8615         (application_init) : deleted
8616         (gnumeric_application_init) : new
8617         (gnumeric_application_class_init) : new
8618         (application_display_dpi_set) : deleted
8619         (application_use_auto_complete) : use gconf
8620         (application_live_scrolling) : ditto
8621         (application_auto_expr_recalc_lag) : ditto
8622         (gnumeric_application_setup_icons) : new
8623         (gnumeric_application_finalize) : finalize
8624         * src/libgnumeric.c (gnm_common_init) : use new application object
8625         (gnm_shutdown) : ditto
8626         * src/commands.c (cmd_cell_range_is_locked_effective) : use range type
8627         (cmd_dao_is_locked_effective) : new
8628         (cmd_sort_redo) : check for locks
8630 2002-06-19  Morten Welinder  <terra@diku.dk>
8632         * src/mathfunc.c: Update to R 1.5.1.
8633         (pexp, pweibull): Use R's version.  All callers
8634         changed to match new prototype.
8636 2002-06-19  Jody Goldberg <jody@gnome.org>
8638         * src/sheet.c (sheet_destroy) : no need to unant, that is a view
8639           responsibility.
8641         * src/sheet-view.c (sv_weakref_notify) : new.
8642         (sv_weak_ref) : new.
8643         (sv_weak_unref) : new.
8644         (sv_unant) : move here from sheet.
8645         (sv_ant) : move here from sheet.
8646         (sv_selection_copy): from selection.c
8647         (sv_selection_cut) : from selection.c
8649         * src/sheet-control.c (sc_view) : new.
8651         * src/sheet-control-gui.c (scg_ant) : the animated cursors are now
8652           stored in the view not the sheet.
8653         (context_menu_handler) : sync with the workbook control criteria for
8654           enabling paste special.
8656         * src/selection.c (sheet_selection_copy) : start the process of
8657           migrating to SheetView and move this there.
8658         (sheet_selection_cut) : ditto.
8660         * src/item-cursor.c (item_cursor_do_action) : pass a SheetView.
8662         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : pass a
8663           SheetView.
8665         * src/corba-sheet.c : untested patch to handle views.
8667         * src/commands.c (cmd_ins_del_colrow_undo) : use the sheetview.
8668         (cmd_ins_del_colrow_redo) : ditto.
8669         (cmd_ins_del_colrow_finalize) : remove weakref on the view.
8670         (cmd_ins_del_colrow) : add a weak ref to the view.
8672         * src/application.c (application_init) : we store a view now, not just
8673           a sheet.
8674         (application_clipboard_clear) : update all workbooks, not just this
8675           one, and store the view.
8676         (application_clipboard_unant) : use the view.
8677         (application_set_selected_sheet) : the selection is now view based.
8678         (application_clipboard_cut_copy) : take a view and remove the crufy
8679           enable_paste_special flag.  That is handled locally.
8680         (application_clipboard_is_empty) : handle SheetView.
8681         (application_clipboard_is_cut) : ditto.
8682         (application_clipboard_sheet_get) : ditto.
8683         (application_clipboard_sheet_view_get) : ditto.
8685         * src/workbook-control-gui.c (wbcg_menu_state_update) : Use the
8686           current sheet not some magic sheet.
8688         * src/sheet.c (sheet_new) : delete enable_paste_special.
8690         * src/workbook-control-gui.c (wbcg_menu_state_update) : paste special
8691           is for local copies, use the application data rather than a sheet
8692           local flag.
8694 2002-06-19  Jody Goldberg <jody@gnome.org>
8696         * src/sheet.c (sheet_attach_view) : renamed from sheet_attach_control.
8697         (sheet_detach_view) : renamed from sheet_detach_control.
8699         * src/sheet-view.c : new.
8701         * src/sheet-control.c (sc_sheet_set) : delete bogus.
8702         (sc_view) : new.
8704         * src/sheet-control-gui.c (sheet_control_gui_new) : A control now takes a
8705           view in place of a model.
8707         * src/selection.c (sheet_selection_redraw) : adjustment to
8708           SHEET_FOREACH_CONTROL.
8710         * src/gnumeric.h : Add SheetView
8711         * src/Makefile.am : Add sheet-view.[ch]
8713 2002-06-18  Jody Goldberg <jody@gnome.org>
8715         * src/workbook-control-gui.c (cb_insert_current_date) : check for
8716           failure to start editing.
8717         (cb_insert_current_time) : ditto.
8719 2002-06-18  Jody Goldberg <jody@gnome.org>
8721         * src/gnumeric-graph.c (gnm_graph_vector_seq_scalar) : forward port a
8722           patch for keelyn.
8724         * src/file.c (gnum_file_saver_save_to_stream_real) : forward port a
8725           warning suppression.
8727         * src/clipboard.c (clipboard_paste_region) : restore the expr_relocate
8728           code in preparation for supporting the XL style heuristic.
8730         * src/GNOME_Gnumeric.xml : forward port some fixes.
8731         * src/sheet-object-widget.c (cb_scrollbar_value_changed) : ditto.
8732         (sheet_widget_scrollbar_set_sheet) : ditto.
8734 2002-06-17  Jody Goldberg <jody@gnome.org>
8736         * src/dependent.c (cb_name_invalidate) : renamed from
8737           cb_name_invalidate_sheet.  Just set the expression to NULL.
8738           no need to be polite.  It just confuses things during workbook
8739           destruction when the name references another sheet which has already
8740           been destroyed.
8742 2002-06-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
8744         * src/commands.c (cmd_cell_range_is_locked_effective) : use
8745           gnumeric_error_invalid rather than gnumeric_notice,
8746           change arguments to cmd_cell_range_is_locked_effective
8747           throughout.
8748         (cmd_selection_is_locked_effective) : change arguments
8749         (cmd_clear_redo) : check for locked cells
8750         (cmd_format_redo) : check for locked cells
8752 2002-06-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
8754         * src/commands.c (cmd_selection_is_locked_effective) : new
8755         (cmd_area_set_text_redo) : check for locked cells
8756         (cmd_ins_del_colrow_redo) : check for locked cells and split arrays
8758 2002-06-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
8760         * src/application.c : add pixmaps
8761         * src/commands.c (cmd_reorganize_sheets_undo) : change call to
8762           cmd_reorganize_sheets
8763         (cmd_reorganize_sheets_redo) : ditto
8764         (cmd_reorganize_sheets_finalize) : handle lock lists
8765         (cmd_reorganize_sheets) : handle lock lists
8766         * src/commands.h (cmd_reorganize_sheets) : change arguments
8767         * src/workbook-control-gui.c : change calls to cmd_reorganize_sheets
8768         * src/workbook.c (workbook_sheet_reorganize) : handle changed locks
8769         * src/workbook.h (workbook_sheet_reorganize) : add arguments
8770         * src/pixmaps/Makefile.am : add padlock_no.xpm and padlock.xpm
8771         * src/pixmaps/padlock_no.xpm : new
8772         * src/pixmaps/padlock.xpm : new
8774 2002-06-14  Jody Goldberg <jody@gnome.org>
8776         * src/workbook.c (workbook_sheet_detach) : add comment that we should
8777           not do the check if it is during destruction.
8778         (workbook_finalize) : Its too late to destroy the 3d depends here.
8779         * src/dependent.c (workbook_deps_destroy) : do it here.
8781         * src/parser.y (parser_sheet_by_name) : new utility function to
8782           support applix style absolute sheet references.
8783         (sheetref) : parser_sheet_by_name.
8785 2002-06-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
8787         * src/commands.c (cmd_cell_range_is_locked_effective) : new
8788         (cmd_analysis_tool_redo) : check whether output region is locked.
8790 2002-06-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
8792         * src/workbook-control-gui.c (workbook_close_if_user_permits) :
8793         show "All" buttons only if multiple workbooks are open.
8795 2002-06-13  Jody Goldberg <jody@gnome.org>
8797         http://bugzilla.gnome.org/show_bug.cgi?id=85181
8798         * src/workbook-edit.c (wbcg_edit_start) : protect against recursion
8799           before testing for protection, we may already have a dialog up.
8801 2002-06-12  Rodrigo Moya <rodrigo@gnome-db.org>
8803         * src/file.c:
8804         * src/plugin-service.c: s/IS_GSF/GSF_IS
8806 2002-06-11  Jon K Hellan  <hellan@acm.org>
8808         * src/file.c: Include unistd.h to declare unlink, close and read.
8810         * src/main-application.c: Inlude bonobo-main.h to declare
8811         bonobo_activate.
8813 2002-06-10  Jon K Hellan  <hellan@acm.org>
8815         * src/file.c: Fix up includes to make the bonobo version build.
8817         * src/plugin-service.c: Ditto.
8819         * src/gui-file.c (ask_for_file_saver, gui_file_save_to_stream):
8820         Disable for now to make the bonobo version build.
8822         * src/workbook-control-gui.c (cb_file_send): Ditto.
8824 2002-06-07  Jody Goldberg <jody@gnome.org>
8826         * src/workbook-view.c (wb_view_open) : convert to libgsf.
8828         * src/stf.c (stf_open_and_read) : convert to libgsf.
8829         (stf_preparse) : ditto.
8830         (stf_read_workbook) : ditto.
8831         (stf_read_workbook_auto_csvtab) : ditto.
8832         (stf_read_default_probe) : ditto.
8834         * src/stf-parse.c (stf_parse_is_valid_data) : actually disable the
8835           wide char support if it is not available.
8837         * src/gutils.c (gnm_extension_pointer) : copied from libgnome to
8838           decrease our dependence on it.
8840         * src/gui-util.c (gnumeric_editable_enters) : modernize a bit.
8842         * src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : suppress
8843           warning.
8845         * src/file.c (gnum_file_opener_probe_real) : Use libgsf.
8846         (gnum_file_opener_open_real) : ditto.
8847         (gnum_file_opener_probe) : ditto.
8848         (gnum_file_opener_open) : ditto.
8849         (gnum_file_saver_save_to_stream_real) : disable, we can move this out
8850           of here when GsfOutput comes online.
8852         * src/collect.c (string_range_function) : suppress warning.
8854         * src/cell.c (cell_set_array_formula) : Adjust to the signature change
8855           for gnm_expr_new_array.
8856         * src/sheet-autofill.c (autofill_cell) : ditto.
8858 2002-06-07  Jody Goldberg <jody@gnome.org>
8860         * configure.in : require libgsf.
8862         * src/xml-io.c (xml_check_version) : move the sanity checking here.
8863         (gnumeric_xml_read_workbook) : rather than here.  Support GsfInput.
8864         (xml_probe) : and here.
8865         (gnumeric_xml_write_workbook_to_stream) : delete.
8867 2002-05-31  Jody Goldberg <jody@gnome.org>
8869         * src/gnumeric-simple-canvas.c (gnm_simple_canvas_grab) : actually
8870           return the result.
8872 2002-06-01  Jody Goldberg <jody@gnome.org>
8874         http://bugzilla.gnome.org/show_bug.cgi?id=83794
8875         * src/stf.c (stf_read_workbook_auto_csvtab) : simple autodetection of
8876           tab delimited vs csv
8878         http://bugzilla.gnome.org/show_bug.cgi?id=82847
8879         * src/value.c (parse_criteria_range) : Check for null in both cases.
8880           Clean up a touch while we are in here.
8882 2002-05-29  Jody Goldberg <jody@gnome.org>
8884         * src/Makefile.am (EXTRA_DIST) : include main-component.c
8886 2002-05-29  Jody Goldberg <jody@gnome.org>
8888         * configure.in : post release version bump
8890 2002-05-29  Jody Goldberg <jody@gnome.org>
8892         * Release 1.1.4
8894 2002-05-29  Jody Goldberg <jody@gnome.org>
8896         * src/Makefile.am : tweak to make automake happy
8898 2002-05-27  Jody Goldberg <jody@gnome.org>
8900         * configure.in : up the gnome-print req.
8902 2002-05-29  Jody Goldberg <jody@gnome.org>
8904         * src/parse-util.h : Add PERR_SINGLE_RANGE.
8906 2002-05-29  Jon KÃ¥re Hellan  <hellan@acm.org>
8908         * configure.in (try_python): Fix typo
8910 2002-05-22  Jody Goldberg <jody@gnome.org>
8912         * src/clipboard.c (clipboard_paste_region) : remove
8913           PASTE_EXPR_RELOCATE.  It was added so that sorting cells with
8914           relative references would change, but it was not well considered and
8915           causes breakage.
8917 2002-05-21  Morten Welinder  <terra@diku.dk>
8919         * src/func-builtin.c (func_builtin_init, shutdown_cat): Use plain
8920         function_get_category.
8922         * src/func.c (function_get_category): Don't use NULL as translated
8923         name -- translate!
8924         (function_add_placeholder): Use plain function_get_category.
8926 2002-05-21  Morten Welinder  <terra@diku.dk>
8928         * src/func.c (function_def_get_arg_name): Fix char/string type
8929         mismatch.  Bad Andreas!
8930         (functions_shutdown): Remove stubs for unknown functions.
8931         (function_add_placeholder): Keep track of unknown functions.
8933         * configure.in: Refuse to compile with gcc 2.96.
8935 2002-05-20  Andreas J. Guelzow <aguelzow@taliesin.ca>
8937         * schemas/gnumeric-dialogs.schemas : add 2 printer schemas
8938         * src/gnumeric-gconf-priv.h : add printer keys
8939         * src/gnumeric-gconf.c : add printer get/set methods
8940         * src/gnumeric-gconf.h : ditto
8941         * src/print.c (print_job_info_set_one_time_defaults) : add 2 settings
8942         (print_job_info_save_one_time_defaults) : ditto
8944 2002-05-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
8946         * src/commands.c (cmd_print_setup_redo) : dirty all sheets if
8947           parent.sheet == NULL
8949 2002-05-16  Jon K Hellan  <hellan@acm.org>
8951         * src/workbook-control-component.c (wbcc_set_sensitive): New
8952         (wbcc_menu_state_sensitivity): Remove
8953         (workbook_control_component_ctor_class): Register
8954         wbcc_set_sensitive and remove wbcc_menu_state_sensitivity.
8956 2002-05-16  Jody Goldberg <jody@gnome.org>
8958         * src/workbook-view.c (wb_view_open) : Use wb_control_set_sensitive.
8960         * src/workbook-control-priv.h :
8961           remove menu.set_sensitivity
8962           add set_sensitive
8963         * src/workbook-control.[ch] : ditto.
8965         * src/workbook-control-gui.c (cb_thaw_ui_toolbar) : call
8966           wbcg_menu_state_sensitivity directly.
8967         (wbcg_edit_set_sensitive) : ditto.
8968         (wbcg_set_sensitive) : new.
8969         (workbook_control_gui_ctor_class) : register wbcg_set_sensitive and
8970           remove wbcg_menu_state_sensitivity.
8972 2002-05-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
8973         * src/print-info.c (print_info_set_margin_right) : remove some
8974           debugging code
8976 2002-05-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
8978         * configure.in : bump lignomeprintui req to 0.115.0
8979         * src/print-info.c (print_info_new) : margins are now in print_config
8980         (print_info_save) : ditto
8981         (print_info_dup) : ditto
8982         (print_info_get_margins) : new
8983         (print_info_set_margin_header) : new
8984         (print_info_set_margin_footer) : new
8985         (print_info_set_margin_left) : new
8986         (print_info_set_margin_right) : new
8987         (print_info_set_margins) : new
8988         * src/print-info.h (print_info_get_margins) : new
8989         (print_info_set_margin_header) : new
8990         (print_info_set_margin_footer) : new
8991         (print_info_set_margin_left) : new
8992         (print_info_set_margin_right) : new
8993         (print_info_set_margins) : new
8994         * src/print.c (print_hf_element) : margins are now in print_config
8995         (print_headers) : ditto
8996         (print_footers) : ditto
8997         (print_page) : ditto
8998         (print_job_info_get) : ditto
8999         * src/xml-io.c (xml_node_set_print_margins) : new
9000         (xml_node_get_print_margin) : new
9001         (xml_write_print_info) : margins are now in print_config
9002         (xml_print_info_fix_margins) : ditto
9003         (xml_read_print_margins) : ditto
9005 2002-05-15  Morten Welinder  <terra@diku.dk>
9007         * src/main-application.c (warn_about_ancient_gnumerics): Don't
9008         complain unless the file name has a slash in it.
9010 2002-05-14  Jon K Hellan  <hellan@acm.org>
9012         * src/main-component.c (control_activated_cb): Don't call
9013         bonobo_ui_component_rm. We got a warning from bonobo when the
9014         containing shell was deleted.
9016 2002-05-14  Jon K Hellan  <hellan@acm.org>
9018         * src/GNOME_Gnumeric_Component.xml: Add File/Print setup,
9019         File/Print, File/Print preview.
9021         * src/workbook-control-component.c (cb_file_print_setup)
9022         (cb_file_print, cb_file_print_preview): New functions. Invoke
9023         File/Print setup, File/Print, File/Print preview.
9024         (verbs): Add File/Print setup, File/Print, File/Print preview.
9026         * src/main-component.c (gnumeric_component_factory): Initialize
9027         plugins. Yet another bpb.
9029 2002-05-14  Morten Welinder  <terra@diku.dk>
9031         * configure.in (GNUMERIC_LOCALE_DIR): Deduce.
9032         * src/libgnumeric.c (init_init): Use GNUMERIC_LOCALE_DIR.
9034 2002-05-14  Jon K Hellan  <hellan@acm.org>
9036         * src/bonobo-io.c (read_from_stream): Brown paper bag.
9038 2002-05-14  Jon K Hellan  <hellan@acm.org>
9040         * src/bonobo-io.c (init_for_inflate): Use size of buffer, not size
9041         of pointer to buffer.
9043 2002-05-13  Jon K Hellan  <hellan@acm.org>
9045         * src/cmd-edit.[ch] (cmd_paste): Remove 'time' parameter.
9047         * src/cmd-edit.c (cmd_paste): Call wb_control_paste_from_selection
9048         without 'time' parameter.
9049         (cmd_paste_to_selection): Call cmd_paste without 'time' parameter.
9051         * src/item-cursor.c (item_cursor_do_action): Remove 'time'
9052         parameter. Call cmd_paste without 'time' argument.
9053         (context_menu_hander, item_cursor_do_drop): Call
9054         item_cursor_do_action without 'time' argument.
9056         * src/gui-clipboard.[ch]: Switched to GtkClipboard API.
9057         (x_request_clipboard): Remove 'time' parameter.
9058         (x_clipboard_bind_workbook): Remove.
9059         (x_claim_clipboard): New function. Claims ownership of primary and
9060         clipboard.
9062         * src/gui-clipboard.c
9063         (x_clipboard_to_cell_region): Renamed from
9064         x_selection_to_cell_region.
9065         (x_clipboard_received): Renamed from
9066         x_selection_received. 'widget' parameter replaced with
9067         'clipboard', and 'time' parameter dropped. Call
9068         gtk_clipboard_request_contents instead of gtk_selection_convert.
9069         (x_clipboard_get_cb): Renamed from x_selection_handler. 'widget'
9070         parameter replaced with 'clipboard', and 'time' parameter dropped.
9071         Don't trust 'info' parameter. Gtk bug?
9072         (x_clipboard_clear_cb): New function. Replaces x_selection_clear,
9073         but even simpler.
9074         (x_request_clipboard): Call gtk_clipboard_request_contents instead
9075         of gtk_selection_convert.
9077         * src/workbook-control.[ch], src/workbook-control-priv.h: Remove
9078         'time' parameter from paste_from_selection method.
9080         * src/workbook-control-component.c (wbcc_claim_selection): Remove.
9081         (workbook_control_component_ctor_class): Inherit claim_selection
9082         from superclass.
9084         * src/workbook-control-gui.c (wbcg_paste_from_selection): Remove
9085         'time' parameter and call x_request_clipboard without 'time'
9086         parameter.
9087         (wbcg_claim_selection): Replace old implementation with call to
9088         new function x_claim_clipboard.
9089         (workbook_control_gui_init): Remove call to
9090         x_clipboard_bind_workbook.
9092 2002-05-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
9094         * src/plugin.c (gnumeric_extra_plugin_dirs) : don't memorize the
9095           answer
9096         (plugin_db_rescan) : new
9097         * src/plugin.h (plugin_db_rescan) : new
9099 2002-05-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
9101         * src/workbook-control-gui.c (workbook_close_if_user_permits) : add
9102           arguments and add discard-all and save-all buttons when exiting.
9103         (cb_file_quit) : handle discard-all and save-all
9105 2002-05-11  Jon K Hellan  <hellan@acm.org>
9107         * src/workbook-control-component.c (wbcc_set_transient_for):
9108         Enable bonobo_control_set_transient_for. It's fixed in libbonoboui
9109         now.
9111 2002-05-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
9113         * src/gnumeric-gconf.c (gnm_gconf_rm_notification_autocorrect) :
9114           renamed to gnm_gconf_rm_notification
9115         (nm_gconf_add_notification_plugin_directories) : new
9116         * src/gnumeric-gconf.h : ditto
9117         * src/gui-util.c (fsel_dir_handle_ok) : new
9118         (gnumeric_dialog_dir_selection) : new
9119         * src/gui-util.h (gnumeric_dialog_dir_selection) : new
9121 2002-05-10  Jon K Hellan  <hellan@acm.org>
9123         * src/workbook-control-gui.c (cb_file_preferences): Add wbcg
9124         argument to dialog_preferences.
9125         (cb_format_preferences): Ditto.
9127 2002-05-10  Morten Welinder  <terra@diku.dk>
9129         * src/value.c (value_new_string_nocopy): New function.
9130         (value_new_string): Simplify.
9132 2002-05-10  Jon K Hellan  <hellan@acm.org>
9134         * src/workbook-control-gui.c (workbook_setup_sheets): Really
9135         revert kluge.
9137 2002-05-10  Jon K Hellan  <hellan@acm.org>
9139         * src/gnumeric-canvas.c: oops. Committed this file by mistake, and
9140         have to revert.
9142 2002-05-10  Jon K Hellan  <hellan@acm.org>
9144         * src/workbook-control-gui.c (workbook_setup_sheets): Remove
9145         resize kluge. It broke things on Solaris.
9147 2002-05-09  Andreas J. Guelzow <aguelzow@taliesin.ca>
9149         * schemas/gnumeric-general.schemas : add 3 printer schemax
9150         * src/gnumeric-gconf-priv.h : add printer keys
9151         * src/gnumeric-gconf.c : add printer get/set methods
9152         * src/gnumeric-gconf.h : ditto
9153         * src/print.c (print_job_info_set_one_time_defaults) : new
9154         (print_job_info_save_one_time_defaults) : new
9155         (print_job_info_get) : call print_job_info_set_one_time_defaults
9156         (sheet_print) : call print_job_info_save_one_time_defaults
9158 2002-05-08  Jon K Hellan  <hellan@acm.org>
9160         * src/gui-util.c (gnumeric_dialog_run): Silence warnings.
9162 2002-05-08  Jon K Hellan  <hellan@acm.org>
9164         * src/workbook-control-gui.c, src/workbook-control-gui-priv.h
9165         (wbcg_scroll_wheel_support_cb): Rename from
9166         cb_scroll_wheel_support and export protected.
9168         * src/workbook-control-component.c: Add more missing includes:
9169         commands.h, selection.h, sheet-control-gui.h, workbook-edit.h.
9170         (wbcc_validation_msg): Return a dummy 0 to satisfy prototype.
9171         (workbook_control_component_init): Remve unused drag_types
9172         variable. Add signal handler for mouse wheel scrolling.
9174 2002-05-08  Jon K Hellan  <hellan@acm.org>
9176         * src/workbook-control-component.c: Include "dialogs.h" to get
9177         prototype for dialog_search.
9179         * src/bonobo-io.c (cleanup_stream): Return status.
9181 2002-05-08  Jon K Hellan  <hellan@acm.org>
9183         * src/workbook-control.[ch], src/workbook-control-priv.h
9184         (wb_control_edit_set_sensitive): New virtual, replacing
9185         workbook_edit_set_sensitive in workbook-edit. Made parameter names
9186         descriptive because it's now used far away from where it is
9187         defined.
9189         * src/workbook-control-component.c (wbcc_edit_set_sensitive): Null
9190         implementation of new virtual.
9191         (workbook_control_component_init): Construct, but don't show, the
9192         edit area, to avoid warnings when range selecting.
9193         (workbook_control_component_ctor_class): Register
9194         edit_set_sensitive implementation.
9196         * src/workbook-control-gui.[ch] (wbcg_toolbar_timer_clear): Moved
9197         from workbook-edit, renamed and exported.
9199         * src/workbook-control-gui.h (cb_thaw_ui_toolbar): Moved from
9200         workbook-edit.
9201         (wbcg_edit_set_sensitive): Implementation of new virtual
9202         wb_control_edit_set_sensitive, moved from workbook-edit and
9203         renamed from workbook_edit_set_sensitive.
9204         (workbook_control_gui_ctor_class): Register edit_set_sensitive
9205         implementation.
9207         * src/workbook-edit.c (toolbar_timer_clear, cb_thaw_ui_toolbar,
9208         workbook_edit_set_sensitive): Move to workbook-control-gui.
9209         (wbcg_edit_finish, (wbcg_edit_start, wbcg_edit_attach_guru,
9210         wbcg_edit_detach_guru):
9211         s/workbook_edit_set_sensitive/wb_control_edit_set_sensitive/
9213 2002-05-08  Andreas J. Guelzow <aguelzow@taliesin.ca>
9215         * src/workbook-edit.c : include gnumeric-gconf.h
9216         * src/workbook-edit.h : declare wbcg_edit_attach_guru_with_unfocused_rs
9218 2002-05-08  Andreas J. Guelzow <aguelzow@taliesin.ca>
9220         * schemas/gnumeric-general.schemas : add unfocused-rs schema
9221         * src/gnumeric-gconf-priv.h : add unfocused-rs key and fix
9222           print-setup-all-sheets key
9223         * src/gnumeric-gconf.c : add unfocused-rs get/set methods
9224         * src/gnumeric-gconf.h : ditto
9225         * src/workbook-edit.c (wbcg_edit_attach_guru_main) : new
9226         (wbcg_edit_attach_guru) : split off wbcg_edit_attach_guru_main
9227         (wbcg_edit_attach_guru_with_unfocused_rs) : new
9229 2002-05-06  Jon K Hellan  <hellan@acm.org>
9231         * src/bonobo-io.c (deserialize_wb_from_xml_stream)
9232         (gnumeric_bonobo_read_from_stream): Display message on error.
9234         * src/workbook-control-component.c
9235         (workbook_control_component_ctor_class): Inherit io context
9236         methods from wbcg.
9237         (wbcc_error_system, wbcc_error_read, wbcc_error_read)
9238         (wbcc_error_read, wbcc_error_save, wbcc_error_invalid)
9239         (wbcc_error_error_info): Remove.
9241         * src/gui-util.c (gnumeric_dialog_run): Use wbcg_set_transient
9242         instead of gtk_window_set_transient_for.
9244 2002-05-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
9246         * src/print.c (print_job_info_get) : duplicate print_info
9247         (print_job_info_destroy) : destroy print_info
9248         (sheet_print) : use range info from print dialog
9250 2002-05-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
9252         * schemas/gnumeric-general.schemas : add print-setup-all-sheets schema
9253         * src/gnumeric-gconf-priv.h : add print-setup-all-sheets key
9254         * src/gnumeric-gconf.c : add print-setup-all-sheets get/set methods
9255         * src/gnumeric-gconf.h : ditto
9256         * src/commands.c (cmd_print_set_up) : allow sheet == NULL (ie. all sheets)
9257         (cmd_print_set_up_redo) : handle sheet == NULL
9258         (cmd_print_set_up_undo) : handle sheet == NULL
9260 2002-05-05  Jon K Hellan  <hellan@acm.org>
9262         * GNOME_Gnumeric.server.in.in: Add Bonobo Zoomable interface.
9264         * src/main-component.c (control_activated_cb): Don't set
9265         wbcc->bcontrol here.
9266         (zoom_level_from_index, zoomable_set_zoom_level_cb,
9267         zoomable_zoom_in_cb, zoomable_zoom_out_cb,
9268         zoomable_zoom_to_fit_cb, zoomable_zoom_to_default_cb): New
9269         functions to support zoomable interface.
9270         (add_interfaces): Add zoomable interface.
9271         (gnumeric_component_factory): Call wbcc_set_bcontrol.
9273         * src/workbook-control-component.[ch]
9274         wbcc_get_zoom_factor): New function. Return zoom factor of current
9275         sheet.
9276         (wbcc_set_zoom_factor): New function. Set zoom factor for current
9277         sheet.
9278         (wbcc_sheet_focus): Report zoom level.
9279         (wbcc_set_bcontrol): New function. Setter for private 'bcontrol'
9280         attribute.
9281         (wbcc_set_zoomable): New function. Setter for private 'zoomable'
9282         attribute.
9283         (workbook_control_component_activate): Remove 'control' from
9284         signature. Use wbcc->bcontrol instead.
9286         * src/workbook-control-component.c (wbcc_zoom_feedback): Implement
9287         method.
9289         * src/workbook-control-component-priv.h (struct
9290         _WorkbookControlComponent): Add 'zoomable' attribute.
9292 2002-05-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
9294         * schemas/gnumeric-general.schemas : add zoom-factor schema
9295         * src/gnumeric-gconf-priv.h : add zoom-factor key
9296         * src/gnumeric-gconf.c : add zoom-factor get/set methods
9297         * src/gnumeric-gconf.h : ditto
9298         * configure.in : update libgnomeprint/libgnomeprintui req.
9299         * src/sheet.c (sheet_new) : use zoom factor from preferences
9301 2002-05-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
9303         * src/commands.c : add cmd_print_set_up and friends
9304         * src/commands.h : add cmd_print_set_up
9305         * src/print-info.c (save_margin) : constify second argument
9306         (save_range) : ditto
9307         (print_info_margin_copy) : constify first argument and fix
9308           silly typo
9309         (print_info_dup) : fix leak
9311 2002-05-05  Jon K Hellan  <hellan@acm.org>
9313         * src/Makefile.am: Fix typo in GNOME_Gnumeric_Component.xml
9315 2002-05-05  Pablo Saratxaga  <pablo@mandrakesoft.com>
9317         * configure.in: Added Vietnamese (vi) to ALL_LINGUAS
9319 2002-05-05  Jon K Hellan  <hellan@acm.org>
9321         * src/GNOME_Gnumeric_Component.xml: Add UI for the viewer component.
9323         * src/Makefile.am: Add UI file for the viewer component.
9325         * src/gui-util.c (gnumeric_keyed_dialog): Use
9326         wbcg_set_transient instead of gnumeric_set_transient.
9328         * src/main-component.c (control_activated_cb): New signal handler
9329         to handle component activation/deactivation.
9330         (gnumeric_component_factory): Register activation/deactivation
9331         signal handler
9333         * src/workbook-control-component.[ch]
9334         (workbook_control_component_activate): New function. Merge in our
9335         UI.
9337         * src/workbook-control-component-priv.h
9338         (struct _WorkbookControlComponent): Add bcontrol member for the
9339         BonoboControl.
9341         * src/workbook-control-component.c (wbcc_set_transient_for): New
9342         function. Set a dialog transient for the bonobo shell which
9343         contains us.
9344         (bcontrol_get_wbcg): New function. Get the WorkbookControl from
9345         the BonoboControl. This is implemented by means of object data on
9346         the BonoboControl.
9347         (cb_file_summary): New function. Pop up the Properties dialog.
9348         (cb_edit_copy): New function. Copy the selection.
9349         (cb_edit_search): New function. Pop up the search dialog.
9350         (cb_help_about): New function. Pop up the "About Gnumeric" dialog.
9351         (verbs): Add them.
9352         (workbook_control_component_init): Zero the bcontrol field.
9353         (workbook_control_component_ctor_class): Override the wbcg
9354         set_transient method.
9356         * src/workbook-control-gui.[ch] (wbcg_set_transient): New virtual
9357         method to set a dialog transient for the toplevel.
9359         * src/workbook-control-gui-priv.h (WorkbookControlGUIClass): Add
9360         set_transient virtual method.
9362         * src/workbook-control-gui.c (WBCG_CLASS, WBCG_VIRTUAL_FULL,
9363         WBGC_VIRTUAL): Define macros, analogous to macros in
9364         workbook-control.c.
9365         (wbcg_set_transient_for): New function. set_transient
9366         implementation for wbcg.
9367         (workbook_setup_sheets): Resize notebook from an idle handler to
9368         work around a display problem in the component. Explain why we had
9369         to do this.
9370         (workbook_control_gui_ctor_class): Add set_transient virtual method.
9372 2002-05-04  Jody Goldberg <jody@gnome.org>
9374         * src/sheet.c (sheet_colrow_get_default) : new.
9375         * src/commands.c (cmd_ins_del_colrow_redo) : Use it.
9377 2002-05-04  Jukka-Pekka Iivonen  <jiivonen@cs144028.pp.htv.fi>
9379         * configure.in : Removed src/functions/Makefile.
9381 2002-05-03  Andreas J. Guelzow <aguelzow@taliesin.ca>
9383         * src/func-builtin.c : mark argument names for translation and adjust
9384           them for use by the formula guru.
9385         * src/func.c (function_def_get_arg_name) : translate argument name
9387 2002-05-03  Morten Welinder  <terra@diku.dk>
9389         * src/workbook-control-gui.c (cb_select_auto_expr): Filter out
9390         expressions that don't parse.  (Probably because some plugin
9391         wasn't loaded.)
9393 2002-05-03  Andreas J. Guelzow <aguelzow@taliesin.ca>
9395         * schemas/gnumeric-general.schemas : add max-initial-clauses schema
9396         * src/gnumeric-gconf-priv.h : add max-initial-clauses key
9397         * src/gnumeric-gconf.c : add max-initial-clauses get/set methods
9398         * src/gnumeric-gconf.h : ditto
9400 2002-05-03  Morten Welinder  <terra@diku.dk>
9402         * src/rangefunc.c (range_count): New function.
9403         * src/func-util.h: Remove.
9405 2002-05-02  Andreas J. Guelzow <aguelzow@taliesin.ca>
9407         * src/print-info.c (print_info_free) : add print-config
9408         (print_info_new) : ditto
9409         (print_info_save) : ditto
9410         (print_info_dup) : ditto
9411         * src/print-info.h : add print-config to PrintInformation
9412         * src/print.c (print_job_info_get) : use
9413           gnome_print_master_get_page_size_from_config
9414         (sheet_print) : use print_config included in PrintInformation
9415         * src/xml-io.c (xml_write_print_info) : use print_config included
9416           in PrintInformation
9417         (xml_read_print_info) : ditto
9419 2002-05-02  Jody Goldberg <jody@gnome.org>
9421         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : shift has noting
9422           to do with this any more.
9424 2002-05-02  Jody Goldberg <jody@gnome.org>
9426         http://bugzilla.gnome.org/show_bug.cgi?id=79925
9427         * src/sheet-control-gui.c (scg_colrow_select) : flag failures to
9428           initiate a selection
9429         * src/item-bar.c (item_bar_event) : only grab if the selection is
9430           successful.
9432 2002-05-02  Andreas J. Guelzow <aguelzow@taliesin.ca>
9434         * src/print.c (sheet_print) : pass updated print-config to print-dialog
9436 2002-05-01  Christophe Merlet  <christophe@merlet.net>
9438         * schemas/gnumeric-dialogs.schemas : Replaced // with /.
9439         * src/Makefile.am : Added main-application.c to $EXTRA_DIST.
9441 2002-04-30  Jody Goldberg <jody@gnome.org>
9443         * src/dependent.c (cb_range_contained_collect) : begin support for
9444           GnmRenderedRegion by adding support for non relocatable dependents.
9445         (cb_single_contained_collect) : ditto.
9447 2002-04-29  Jody Goldberg <jody@gnome.org>
9449         * src/gnumeric-pane.c (gnumeric_pane_header_init) : set a
9450           non-constraining scrollregion here in case something scrolls before we
9451           are realized and a real region is assigned.
9453         * src/sheet-object.c (sheet_object_clone_sheet) : range == NULL is legal
9455         * src/sheet.c (sheet_clone_colrow_info_item) : Use colrow_copy.
9456           While we're here use sheet_colrow_fetch too.
9457         (sheet_dup) : rename from sheet_duplicate to be consistent.
9459 2002-04-29  Jody Goldberg <jody@gnome.org>
9461         * configure.in : post release version bump
9463 2002-04-29  Jody Goldberg <jody@gnome.org>
9465         * Release 1.1.3
9467 2002-04-28  Jody Goldberg <jody@gnome.org>
9469         * src/item-cursor.c : no need to do the gdk_flushes here.
9470           the grab/ungrab wrappers handle it.
9472 2002-04-29  Jon K Hellan  <hellan@acm.org>
9474         * src/bonobo-io.c (deserialize_wb_from_xml_stream): New
9475         function. Factored out of gnumeric_bonobo_read_from_stream.
9476         Deserializes a Workbook from an XML stream.
9477         (read_from_stream): New function. Factored out of
9478         gnumeric_bonobo_read_from_stream. Handles bonobo stream oriented
9479         aspect of stream deserialization task.
9480         (gnumeric_bonobo_read_from_stream): Refactor so that only Workbook
9481         / WorkbookView / WorkbookControl aspects of deserialization are
9482         handled here. The stream and XML concerns are factored out into
9483         separate functions. Also, fix reload bugs by making code more
9484         similar to wb_view_open. Still not perfect, but better.
9486 2002-04-28  Jody Goldberg <jody@gnome.org>
9488         * src/sheet-control-gui.c : no longer needs item-debug support.
9490         * src/sheet-object.c (sheet_object_view_key) : ARRGGGHHHH.
9491           cut-n-paste error.
9493         * src/gnumeric-simple-canvas.c (gnm_simple_canvas_ungrab) : be anal
9494           and gdk_flush.
9495         (gnm_simple_canvas_grab) : ditto.  We periodically do some processing
9496           after an ungrab which might delay flushing the event queue.  Which
9497           could result in the grab remaining for the duration of the event.
9499 2002-04-28  Jon K Hellan  <hellan@acm.org>
9501         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream): Initialize
9502         wb, drop dirty test. This fixes component display bug.
9504 2002-04-28  Jon K Hellan  <hellan@acm.org>
9506         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream): Drop
9507         workbook_is_pristine test. In the viewer, we know we shouldn't
9508         save, but the test gives suprising results.
9510 2002-04-27  Jody Goldberg <jody@gnome.org>
9512         * src/item-acetate.c (item_acetate_point) : remember that the far
9513           point is not included.
9515         * src/bonobo-io.c (gnumeric_bonobo_read_from_stream) : similar to
9516           wb_view_open we need to recalc as necessary and do a sheet_update.
9518         * src/workbook-control-gui.c (cb_insert_image) : no need to recalc or
9519           update.
9521 2002-04-27  Jon K Hellan  <hellan@acm.org>
9523         * configure.in: Check for bonobo libraries when --with-bonobo is
9524         selected.
9526 2002-04-27  Jody Goldberg <jody@gnome.org>
9528         * src/sheet-control-gui.c (scg_finalize) : destroy the views
9529           before we destroy the control.
9531         * src/sheet-object.c (cb_sheet_object_view_finalized) : renamed from
9532           sheet_object_view_destroyed and simplified to use weakrefs.  At this
9533           point all we can do is remove the view from the list.
9534         (sheet_object_new_view) : using weakrefs we are more constrained.
9535           object data is already done so there is no need to add refs to the
9536           control.
9538 2002-04-26  Jody Goldberg <jody@gnome.org>
9540         * src/workbook-control-gui.c (wbcg_sheet_add) : Use
9541           sc_object_create_view.
9543         * src/sheet-control-gui-priv.h (SCG_FOREACH_PANE) : new.
9544         * src/sheet-control-gui.c (scg_redraw_all) : use SCG_FOREACH_PANE.
9545         (scg_redraw_region) : ditto.
9546         (scg_resize) : ditto.
9547         (scg_set_zoom_factor) : ditto.
9548         (cb_table_destroy) : ditto.
9549         (sheet_control_gui_new) : ditto.
9550         (scg_unant) : ditto.
9551         (scg_ant) : ditto.
9552         (scg_adjust_preferences) : ditto.
9553         (scg_cursor_visible) : ditto.
9554         (scg_compute_visible_region) : ditto.
9555         (scg_edit_start) : ditto.
9556         (scg_edit_stop) : ditto.
9557         (scg_rangesel_changed) : ditto.
9558         (scg_rangesel_start) : ditto.
9559         (scg_rangesel_stop) : ditto.
9560         (scg_set_display_cursor) : ditto.
9561         (scg_colrow_resize_stop) : ditto.
9562         (scg_colrow_resize_start) : ditto.
9563         (scg_colrow_resize_move) : ditto.
9564         (scg_special_cursor_start) : ditto.
9565         (scg_special_cursor_stop) : ditto.
9566         (scg_special_cursor_bound_set) : ditto.
9567         (scg_object_stop_editing) : clear the control points in the panes.
9568         (scg_mode_edit_object) : ditto.
9569         (scg_object_update_bbox) : ditto.
9571         * src/gnumeric-pane.c (gnm_pane_init) : init anted_cursors and the
9572           control points.  Optionally create views of all the objects if we
9573           already have a sheet.
9574         (gnm_pane_object_stop_editing) : transfered from scg.
9575         (gnm_pane_object_move) : ditto.
9576         (cb_slide_handler) : ditto.
9577         (display_object_menu) : ditto.
9578         (cb_control_point_event) : ditto.
9579         (new_control_point) : ditto.
9580         (set_item_x_y) : ditto.
9581         (set_acetate_coords) : ditto.
9582         (gnm_pane_object_set_bounds) : ditto.
9583         (cb_sheet_object_canvas_event) : ditto.
9584         (cb_sheet_object_view_destroy) : ditto.
9585         (cb_sheet_object_widget_canvas_event) : ditto.
9586         (gnm_pane_object_register) : ditto.
9587         (gnm_pane_widget_register) : ditto.
9589         * src/sheet-control-gui.c (scg_object_destroy_view) : new.
9590         (scg_object_create_view) : new.
9591         (scg_class_init) : register the new functions.
9593         * src/sheet-object*.c
9594         (*update_bounds) : update signature.
9595         (*new_view) : update signature.
9597 2002-04-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
9599         * src/print.c (compute_sheet_pages) : don't overwrite number of
9600           pages from previous sheets.
9602 2002-04-26  Jon K Hellan  <hellan@acm.org>
9604         * src/bonobo-io.c (get_bytes_from_compressed_stream): Fix typo
9606 2002-04-26  Jon K Hellan  <hellan@acm.org>
9608         * src/bonobo-io.c (struct StreamIOCtxt): Context data structure
9609         for reading a PersistStream.
9610         (get_raw_bytes_from_stream): New function. Read raw bytes from the
9611         stream.
9612         (get_bytes_from_compressed_stream): New function. Uncompress bytes
9613         from the stream and copy wanted number of bytes into buffer.
9614         (get_bytes_from_stream): New function. Read bytes from the stream,
9615         having uncompressed them if necessary.
9616         (cleanup_stream): New function. Clean up zlib when closing stream.
9617         (check_gzip_header): New function. Check if stream is gzipped.
9618         (init_for_inflate): New function. Initialize data structures for
9619         uncompressing.
9620         (hack_xmlSAXParseFile): Drop the non HAVE_LIBXML_2 branch. Rename
9621         context variables: We now have both an xml context and a stream
9622         context.
9623         (gnumeric_bonobo_read_from_stream): Set up handling of compressed
9624         streams. Propagate CORBA exceptions where allowed by the
9625         PersistStream interface.
9627 2002-04-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
9629         * schemas/gnumeric-general.schemas : add sort schemas
9630         * src/gnumeric-gconf-priv.h : add sort related keys
9631         * src/gnumeric-gconf.[ch] : add sort-related get/set methods
9632         * src/sort.[ch] : use preferences, add preserve formats flags
9633         * src/workbook-control-gui.c (sort_by_rows) : use preferences
9635 2002-04-25  Jody Goldberg <jody@gnome.org>
9637         * src/sheet-control-gui.c (set_acetate_coords) : work around some
9638           strange code in the canvas-shape that was blowing out the borders.
9640 2002-04-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
9642         * src/gnumeric-canvas.[ch] : add sheet_object_group
9643         * src/commands.c : add selector to cmd_object_raise
9644         * src/commands.h : ditto
9645         * src/sheet-object-container.c : use sheet_object_group
9646         * src/sheet-object-graphic.c : ditto
9647         * src/sheet-object-image.c : ditto
9648         * src/sheet-object-item.c : ditto
9649         * src/sheet-object.c (cb_sheet_object_raise_to_top) : new
9650         (cb_sheet_object_lower_to_bottom) : new
9651         (sheet_object_populate_menu) : add raise to top/lower to bottom
9652           menu items
9654 2002-04-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
9656         * src/item-grid.c (ig_obj_create_finish) : don't unref the sheet
9657           object, the ref has already been absorbed elsewhere.
9658           http://bugzilla.gnome.org/show_bug.cgi?id=79809
9660 2002-04-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
9662         * src/commands.[ch] (cmd_object_raise) : new command
9663         * src/sheet-object.h (sheet_object_raise) : new
9664         * src/sheet-object.c (sheet_object_raise) : new
9665         (cb_sheet_object_raise) : new
9666         (cb_sheet_object_lower) : new
9667         (sheet_object_populate_menu) : add raise/lower menu items
9669 2002-04-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
9671         * src/print.c (setup_rotation) : deleted
9672         (print_page) : remove call to setup_rotation
9673         (sheet_print) : no need to hide landscape printing
9675 2002-04-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
9677         * src/print.c (sheet_print) : work around some gnome-print bug and hide
9678           landscape printing temporarily.
9680 2002-04-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
9682         * src/application.c (application_clipboard_clear) : also clear CLIPBOARD
9683         * src/gui-clipboard.c (x_selection_clear) : clear selection only if PRIMARY
9684           is asserted elsewhere
9685         (x_clipboard_bind_workbook) : set CLIPBOARD targets
9686         * src/workbook-control-gui.c (wbcg_claim_selection) : claim PRIMARY and
9687           CLIPBOARD
9689 2002-04-23  Andreas J. Guelzow <aguelzow@taliesin.ca>
9691         * src/commands.c (cmd_analysis_tool_undo) : reset column widths and
9692           row heights
9693         (cmd_analysis_tool_redo) : save column widths and row heights
9694         (cmd_analysis_tool) : initialize column widths and row heights save lists
9695         (cmd_analysis_tool_finalize) : delete column widths and row heights save lists
9697 2002-04-21  J.H.M. Dassen (Ray) <jdassen@debian.org>
9699         * idl/Makefile.am: introduce EVOLUTION_IDL_DIR to support building
9700         with Evolution-Composer.idl in a non-standard location.
9702 2001-11-04  J.H.M. Dassen (Ray) <jdassen@debian.org>
9704         * configure.in: added gdk_pixbuf to the libs considered for
9705         GNUMERIC_CFLAGS and GNUMERIC_LIBS.
9707 2001-10-27  J.H.M. Dassen (Ray) <jdassen@debian.org>
9709         * configure.in : Support --with-python=prog consistently: never call
9710         `python', always call $python_prog.
9712 2001-10-21  J.H.M. Dassen (Ray) <jdassen@debian.org>
9714         * idl/Makefile.am : Introduced EVOLUTION_IDL_DIR to make it possible
9715           to use Evolution-Composer.idl from a non-standard location.
9717 2001-11-04  J.H.M. Dassen (Ray) <jdassen@debian.org>
9719         * configure.in: added gdk_pixbuf to the libs considered for
9720         GNUMERIC_CFLAGS and GNUMERIC_LIBS.
9722 2002-04-22  Morten Welinder  <terra@diku.dk>
9724         * src/value.c (criteria_test_equal, criteria_test_unequal,
9725         criteria_test_less, criteria_test_less_or_equal,
9726         criteria_test_greater, criteria_test_greater_or_equal,
9727         parse_criteria, parse_criteria_range, free_criterias,
9728         find_rows_that_match, parse_database_criteria,
9729         find_column_of_field): Move from fn-database.
9731 2002-04-22  Morten Welinder  <terra@diku.dk>
9733         * src/expr-name.c (expr_name_shutdown): New function.
9735         * src/libgnumeric.c (gnm_common_init, gnm_shutdown): Fix
9736         prototype.
9737         (gnm_shutdown): Shut down expr_name.
9739 2002-04-19  Morten Welinder  <terra@diku.dk>
9741         * src/expr.c (gnm_expr_new_error): Remove.
9743         * src/func-builtin.c (gnumeric_selection, gnumeric_version): Moved
9744         from fn-sheet.
9746 2002-04-19  Jon K Hellan  <hellan@acm.org>
9748         * src/bonobo-io.[ch] (gnumeric_bonobo_read_from_stream): New
9749         function. Reads a workbook from a Bonobo PersistStream.
9751         * src/bonobo-io.c (hack_xmlSAXParseFile): Re-enable
9753         * src/main-component.c: No longer a dummy. Remove DUMMY compile
9754         flag.
9755         (load_workbook_from_stream): Remove.
9756         (dummy_add_interfaces): Rename to add_interfaces. Pass control to
9757         bonobo_persist_stream_new.
9758         (gnumeric_component_factory): Make a real gnumeric component.
9760         * src/sheet-control-gui.c (scg_take_focus): Test if wbcg_toplevel
9761         != NULL.
9763         * src/workbook-control.[ch] (wb_control_menu_state_sheet_count):
9764         New virtual.
9766         * src/workbook-control-priv.h: Virtualize menu_state.sheet_count.
9768         * src/workbook-control-component.c (wbcc_get_password,
9769         wbcc_progress_set, wbcc_progress_message_set, wbcc_init_state,
9770         wbcc_title_set, wbcc_format_feedback, wbcc_zoom_feedback,
9771         wbcc_edit_line_set, wbcc_edit_selection_descr_set,
9772         wbcc_auto_expr_value, wbcc_undo_redo_clear,
9773         wbcc_undo_redo_truncate, wbcc_undo_redo_pop, wbcc_undo_redo_push,
9774         wbcc_undo_redo_labels, wbcc_menu_state_update,
9775         wbcc_menu_state_sheet_prefs, wbcc_menu_state_sheet_count,
9776         wbcc_menu_state_sensitivity, wbcc_validation_msg): New no-op
9777         methods.
9778         (wbcc_error_system, wbcc_error_plugin, wbcc_error_read,
9779         wbcc_error_save, wbcc_error_invalid, wbcc_error_error_info,
9780         wbcc_control_new, wbcc_sheet_focus, wbcc_claim_selection): New
9781         methods.
9782         (workbook_control_component_init): New function.
9783         (workbook_control_component_ctor_class): Flesh out.
9784         (workbook_control_component_new): New function.
9786         * src/workbook-control-gui.[ch] (wbcg_sheet_to_page_index): Rename
9787         from sheet_to_page_index and make public.
9789         * src/workbook-control-gui.c (wbcg_cur_scg, wbcg_sheet_remove,
9790         wbcg_sheet_rename, wbcg_sheet_focus, wbcg_sheet_move, cb_edit_cut,
9791         cb_sheet_remove): Use new name of from sheet_to_page_index and
9792         make public.
9793         (wbcg_sheet_add): Use virtualized menu_sheet_count.
9794         (workbook_control_gui_ctor_class): Virtualize menu_sheet_count.
9796 2002-04-18  Morten Welinder  <terra@diku.dk>
9798         * src/expr-name.c (expr_name_add): Plug leaks.
9800         * src/gnumeric-graph.c: Resurrect enough so that the excel plugin
9801         will load.  This doens't mean things will work!
9803         * src/func-builtin.c (func_builtin_init): New file.  Some stuff
9804         from src/functions/fn-math.c imported.
9806         * src/libgnumeric.c (gnm_shutdown): Shutdown functions also.
9808         * src/func.c (functions_init): Init builtins.
9809         (functions_shutdown): New function.
9811 2002-04-18  Andreas J. Guelzow <aguelzow@taliesin.ca>
9813         * src/gui-util.c (gnumeric_error_info_dialog_show) : hide cursor
9815 2002-04-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
9817         * src/gui-file.c : replace gnome-config with get/set methods from
9818           src/gnumeric-gconf.h
9819         * schemas/gnumeric-general.schemas : new schemas
9820         * src/gnumeric-gconf-priv.h : new keys
9821         * src/gnumeric-gconf.[ch] : new get/set methods
9823 2002-04-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
9825         * src/gui-util.[ch] (gnumeric_dialog_show) : deleted
9826         * src/gui-file.c (ask_for_file_saver) : change GnomeDialog to GtkDialog
9827           NOTE: untested change!
9828         * src/sheet-object-container.c (sheet_object_container_new_file) :
9829           change GnomeDialog to GtkDialog.  NOTE: untested change!
9831 2002-04-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
9833         * src/gui-util.c (gnumeric_error_info_dialog_show_full) : renamed to
9834           gnumeric_error_info_dialog_show and rewritten
9835         (gnumeric_error_info_dialog_show) : deleted
9836         (ctree_insert_error_info) : deleted
9837         (insert_error_info) : new
9839 2002-04-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
9841         * src/gui-util.c (gnumeric_error_info_dialog_show_full) : converted from
9842           GnomeDialog to GtkDialog
9844 2002-04-17  Andreas J. Guelzow <aguelzow@taliesin.ca>
9846         * schemas/gnumeric-general.schemas : add xml-compression schema
9847         * src/gnumeric-gconf-priv.h : new xml-compression-level key
9848         * src/gnumeric-gconf.[ch] : new xml-compression-level get/set functions
9849         * src/xml-io.c : use get/set methods from src/gnumeric-gconf.h rather
9850           than gnome-config directly
9852 2002-04-16  Jody Goldberg <jody@gnome.org>
9854         * src/workbook-view.c (wb_view_open) : merge with wb_view_open_custom
9855           and remove the useless view argument.
9857         * src/libgnumeric.c : move the application specific code from here.
9858         * src/main-application.c : to here.
9860         * configure.in : Addd gobject & gmodule
9862 2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
9864         * schemas/gnumeric-general.schemas : add window size schemas
9865         * src/gnumeric-gconf-priv.h : add window size keys
9866         * src/gnumeric-gconf.[ch] : add window size set/get methods
9867         * src/workbook-control-gui.c : use gconf for all preferences
9869 2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
9871         * schemas/gnumeric-dialogs.schemas : add more schemas
9872         * src/commands.c : use get/set methods from src/gnumeric-gconf.h
9873         * src/file-autoft.[ch] : switch from gnome-config to gconf
9874         * src/gnumeric-gconf-priv.h : more keys
9875         * src/gnumeric-gconf.[ch] : more get/set methods
9876         * src/gutils.[ch] (gnumeric_config_get_string_list) : deleted
9878 2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
9880         * schemas/gnumeric-dialogs.schemas : new plugin schemas
9881         * src/Makefile.am : add src/gnumeric-gconf.c and src/gnumeric-gconf-priv.h
9882         * src/application.c : use get/set methods from src/gnumeric-gconf.h
9883         * src/commands.c : change include
9884         * src/error-info.c : switch to GSLists from GLists
9885         * src/error-info.h : switch to GSLists from GLists
9886         * src/gnumeric-gconf.h : new get/set methods
9887         * src/gnumeric-gconf.c : new
9888         * src/gnumeric-gconf-priv.h : formerly src/gnumeric-gconf.h
9889         * src/gui-util.c : switch to GSLists from GLists
9890         * src/gutils.h : some new g_slist functions
9891         * src/gutils.c : some new g_slist functions
9892         * src/libgnumeric.c : use get/set methods from src/gnumeric-gconf.h
9893         * src/plugin-loader-module.c : switch to GSLists from GLists
9894         * src/plugin-loader.c : switch to GSLists from GLists
9895         * src/plugin-loader.h : switch to GSLists from GLists
9896         * src/plugin-service.c : switch to GSLists from GLists
9897         * src/plugin.c : switch to GSLists from GLists and use gconf
9898         * src/plugin.h : switch to GSLists from GLists
9899         * src/workbook-control-gui.c : use get/set methods from src/gnumeric-gconf.h
9901 2002-04-15  Jon K Hellan  <hellan@acm.org>
9903         * src/.cvsignore: Ingore gnumeric-component
9905 2002-04-15  Jon K Hellan  <hellan@acm.org>
9907         * src/main-component.c (gnumeric_component_factory): And another one.
9909 2002-04-15  Jon K Hellan  <hellan@acm.org>
9911         * src/main-component.c (gnumeric_component_factory): Silence
9912         warning.
9914 2002-04-15  Jon K Hellan  <hellan@acm.org>
9916         * src/main.[ch]: Remove from CVS.
9918         * src/libgnumeric.c: Really don't include main.h
9920 2002-04-15  Jody Goldberg <jody@gnome.org>
9922         * src/libgnumeric.c : delete some stale code that is no longer needed
9923           in gtk2.
9925 2002-04-15  Jon K Hellan  <hellan@acm.org>
9927         * src/libgnumeric.h: Rename header guards after file rename.
9929         * src/main.[ch]: Add notes that the files are obsolete
9931 2002-04-15  Jon K Hellan  <hellan@acm.org>
9933         * src/libgnumeric.c: Copied from src/main.c. Don't include main.h
9935         * src/libgnumeric.h: Copied from src/main.h
9937         * src/corba-args.c: s/main.h/libgnumeric.h/
9939         * src/main-application.c: s/main.h/libgnumeric.h/
9941         * src/main-component.c: s/main.h/libgnumeric.h/
9943         * src/normal-args.c: s/main.h/libgnumeric.h/
9945         * src/print.c: s/main.h/libgnumeric.h/
9947         * src/workbook.c: s/main.h/libgnumeric.h/
9949         * src/workbook-control-gui.c: s/main.h/libgnumeric.h/
9951 2002-04-15  Jon K Hellan  <hellan@acm.org>
9953         * src/main.[ch]: Restructure.
9955         * src/gui-gnumeric.h: Declare WorkbookControlComponent and
9956         WorkbookControlStandalone.
9958         * GNOME_Gnumeric.server.in.in: Add gnumeric-component /
9959         OAFIID:GNOME_Gnumeric_Factory
9961         * src/Makefile.am: Add gnumeric-component to build, and new files.
9963         * src/workbook-control-gui.h (WORKBOOK_CONTROL_GUI_CLASS): Fix typo.
9965         * src/workbook-control-standalone.h: New file. wbcg class for
9966         standalone app - public header file. Dummy for now.
9968         * src/workbook-control-standalone.c: New file. wbcg class for
9969         standalone app - source file. Dummy for now.
9971         * src/workbook-control-standalone-priv.h: New file. wbcg class for
9972         standalone app - private header file. Dummy for now.
9974         * src/workbook-control-component.h: New file. Bonobo component
9975         class - public header file. Dummy for now.
9977         * src/workbook-control-component.c: New file. Bonobo component
9978         class - source file. Dummy for now.
9980         * src/workbook-control-component-priv.h: New file. Bonobo
9981         component class - private header file. Dummy for now.
9983         * src/main-component.c: New file. Main entry point for Bonobo
9984         component.
9986         * src/main-application.c: New file: Main entry point for
9987         standalone application.
9989 2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
9991         * schemas/gnumeric-dialogs.schemas : add more preferences
9992         * src/application.c : move autocorrect_init into src/main.c
9993         * src/gnumeric-gconf.h : added defines and comments
9994         * src/main.c : add autocorrect_init and autocorrect_shutdown
9996 2002-04-15  Morten Welinder  <terra@diku.dk>
9998         * src/sheet.c (sheet_cell_add_to_hash): Plug leak.
10000 2002-04-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
10002         * schemas/gnumeric-general.schemas : add various new preferences
10003         * schemas/gnumeric-dialogs.schemas : fix capitalization
10004         * src/application.c : switch gnome_config to gconf
10005         * src/gnumeric-gconf.h : new preferences
10007 2002-04-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
10009         * src/rangefunc-strings.c : fix warning
10010         * src/history.c : fis argument type in non-bonobo build
10012 2002-04-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
10014         * schemas/gnumeric-general.schemas : add max number of undo items pref
10015         * src/commands.c (truncate_undo_info) : also truncate if max number
10016           of items is exceeded.
10017         * src/gnumeric-gconf.h : add max number of undo items pref
10019 2002-04-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
10021         * src/GNOME_Gnumeric.xml : Change menu text for Sheet Reorder/Manage
10022         * src/workbook-control-gui.c : Change tooltip for Sheet Manage
10024 2002-04-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
10026         * schemas/gnumeric-general.schemas : add history and n of sheets
10027           preferences
10028         * src/Makefile.am : add src/rangefunc-strings.[ch]
10029         * src/application.c : change file history handling to gconf,
10030           change app.history_list to GSList from GList
10031         * src/application.h : change app.history_list to GSList from GList
10032         * src/collect.c : add string functions
10033         * src/collect.h :add string functions
10034         * src/gnumeric-gconf.h : add history and n of sheets preferences
10035         * src/history.c : change history_list to GSList from GList
10036         * src/history.h : change history_list to GSList from GList
10037         * src/main.c : add user-specified number of sheets to first workbook
10038         * src/workbook-control-gui.c : add user-specified number of sheets
10039           to new workbooks
10040         * src/workbook.c : change history_list to GSList from GList
10041         * src/rangefunc-strings.h : new
10042         * src/rangefunc-strings.c : new
10044 2002-04-14  Jon K Hellan  <hellan@acm.org>
10046         * src/main.h (has_gnumeric_been_compiled_with_guile_support):
10047         This function disappeared long ago. Remove.
10049 2002-04-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
10051         * src/collect.c (callback_function_collect) : keep missing data info
10052         (collect_floats) : afdd missing data info handling
10053         (collect_floats_value_with_info) : new
10054         (cb_insert_diff_elements) : new
10055         (cb_int_descending) : new
10056         (union_of_int_sets) : new
10057         (cb_remove_missing_el) : new
10058         (strip_missing) : new
10059         (float_range_function2) : use flags
10060         * src/collect.h (CollectFlags) : 2 new flags
10061         * src/commands.c (max_descriptor_width) : fix sense of test.
10063 2002-04-13  Jody Goldberg <jody@gnome.org>
10065         * src/commands.c (max_descriptor_width) : add some protection.
10067 2002-04-13  Jody Goldberg <jody@gnome.org>
10069         * src/xml-io.c (xml_cellregion_write) : Patch massive leak introduced
10070           in the transition to libxml2.  Thanks Andreas.
10072 2002-04-13  Morten Welinder  <terra@diku.dk>
10074         * */*: Make fn-financial a plugin.
10076         * src/commands.c (cmd_range_list_to_string_utility): Try not to
10077         allocate gigabytes of memory for no reason.
10079 2002-04-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
10081         * src/commands.c (cmd_range_to_str_utility) : new
10082         * src/commands.h (cmd_range_to_str_utility) : new
10084 2002-04-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
10086         * src/value.c (value_get_as_string) : handle VALUE_ARRAY more reasonably
10087         (value_peek_string) : initialize all fields of cache
10089 2002-04-13  Jon K Hellan  <hellan@acm.org>
10091         * src/gui-file.c: s/ENABLE_BONOBO/WITH_BONOBO/
10093         * src/gui-util.c: Ditto.
10095         * src/history.c: Ditto.
10097         * src/main.c: Ditto.
10099         * src/sheet.c: Ditto.
10101         * src/sheet-object.c: Ditto.
10103         * src/workbook-control-gui.c: Ditto.
10105         * src/workbook-format-toolbar.c: Ditto.
10107         * src/workbook-object-toolbar.c:
10109         * src/workbook.c: Ditto.
10111         * src/workbook-private.c: Ditto.
10113         * src/xml-io.c: Ditto.
10115 2002-04-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
10117         * schemas/gnumeric-general.schemas : add 2 undo preference settings
10118         * src/commands.c : add sheet name to descriptors depending on
10119           preference setting
10120         * src/commands.h : add cmd_range_list_to_string_utility and
10121           cmd_cell_pos_name_utility
10122         * src/gnumeric-gconf.h : new file, gather gconf paths in a single
10123           includable place
10125 2002-04-12  Jody Goldberg <jody@gnome.org>
10127         * src/workbook-private.c :  move the really broken bonobo stuff here.
10129         * src/sheet-control-gui.c (scg_object_update_bbox) : Use fabs to
10130           handle inversion.
10131         (scg_mode_edit_object) : Be a touch more anal.
10133         * src/style.c (get_substitute_font) : add more font mappings.
10135         * src/item-grid.c (ig_obj_create_finish) : no need to moneky with the
10136           internals of scg.  Setting the mode clears the new object.  Setting
10137           the sheet adds a ref, so there are no worries that it will go away.
10139         * src/gnumeric-canvas.c : rip out the drag and drop support.
10140         * src/workbook-control-gui.c : move it here.
10141         (cb_insert_image) : silence a warning.
10142         (cb_edit_cut) : at least make the object deletetion undoable.
10143         (workbook_close_if_user_permits) : reorder to conform to HIG.
10145 2002-04-08  Jody Goldberg <jody@gnome.org>
10147         * src/sheet-control-gui.c (scg_object_stop_editing) : unref the
10148           current object.
10149         (scg_mode_edit_object) : ref the current object.
10151         * src/item-grid.c (ig_obj_create_finish) : Use
10152           scg_mode_edit_object.
10153         * src/gnumeric-canvas.c (gnm_canvas_key_mode_object) : Use
10154           sc_mode_edit to handle objects that are still being created.
10156 2002-04-06  Jody Goldberg <jody@gnome.org>
10158         * src/sheet-control-gui.c (scg_object_update_bbox) : abs the dif when
10159           checking for middle ctrl points.
10161 2002-04-01  Jody Goldberg <jody@gnome.org>
10163         * src/gui-util.c (gnumeric_toolbar_new) : minor clean up.
10164           one init is sufficient.
10166 2002-04-12  Jon K Hellan  <hellan@acm.org>
10168         * src/GNOME_Gnumeric.xml (FilePrintSetup): Add back "print" stock icon.
10169         (FilePreferences): Add as menu item.
10170         (InsertGraph, InsertComponent, InsertShapedComponent): Comment out
10171         both from menu and toolbar.
10172         (InsertImage, InsertFormula): Add to "Insert" menu.
10173         (List, Combo): Re-enable in object toolbar.
10175 2002-04-12  Morten Welinder  <terra@diku.dk>
10177         * src/auto-format.c (auto_format_init): Install a key destroyer.
10178         (auto_format_shutdown): Simplify.
10179         (auto_format_function_result_by_name): New function.
10180         (auto_format_function_result): Use
10181         auto_format_function_result_by_name.
10182         (auto_format_function_result_remove): New function.
10184 2002-04-12  Jon K Hellan  <hellan@acm.org>
10186         * src/workbook-format-toolbar.c: Replace Gnome stock pixmap names
10187         with gtk synonym.
10189         * src/item-cursor.c (item_cursor_popup_menu): Replace Gnome stock
10190         copy pixmap name with gtk synonym.
10192 2002-04-12  Jon K Hellan  <hellan@acm.org>
10194         * src/GNOME_Gnumeric.xml: Update to current pixmap names. Add
10195         'preferences' command.
10197 2002-04-12  Jon K Hellan  <hellan@acm.org>
10199         * plugins/Makefile.am (SUBDIRS_FILE_FORMATS): Plan Perfect plugin
10200           got installed, but not built. Don't do either.
10202 2002-04-12  Jon K Hellan  <hellan@acm.org>
10204         * configure.in (bonobo_msg): (re)introduce ENABLE_BONOBO variable
10205         and bonobo_suffix.
10207         * src/Makefile.am (uidir): Update to gnome-2 conventions.
10209         * idl/GNOME_Gnumeric.idl
10210         (GNOME::Gnumeric::Application.new_workbook): Fix syntax error.
10212         * src/bonobo-io.c: #ifdef out the lot for now.
10214         * src/gnumeric-graph.c: ditto.
10216         * src/sheet-object-bonobo.c: ditto.
10218         * src/sheet-object-container.c: ditto.
10220         * src/sheet-object-item.c: ditto.
10222         * src/main.c (main): #ifdef out gnumeric_bonobo_io_init for now.
10223         (main): #ifdef out EmbeddableGridFactory_init.
10225         * src/print.c: Remove bonobo-print-client.h include.
10227         * src/sheet-object.c (sheet_object_register): #ifdef out bonobo
10228         object registration.
10230         * src/workbook.c (workbook_is_pristine, workbook_init,
10231         workbook_new): #ifdef bonobo case to be the same as non bonobo for
10232         now.
10233         (workbook_persist_file_load, workbook_persist_file_save,
10234         workbook_bonobo_setup): #ifdef out for now.
10236         * src/workbook-control-gui.c (cb_launch_graph_guru,
10237         insert_bonobo_object, cb_insert_component,
10238         cb_insert_shaped_component): #ifdef out for now.
10239         (verbs): #ifdef out GraphGuru, InsertComponent and
10240         InsertShapedComponent for now.
10242         * src/workbook-private.[ch]: #ifdef bonobo case to be the same as non
10243         bonobo for now.
10245 2002-04-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
10247         * src/dependent.c (dependent_set_expr) : fix leak
10248         (invalidate_refs) : fix leak
10249         (cb_name_invalidate_sheet) : fix leak
10250         * src/expr-name.c (expr_name_create) : fix leak
10252 2002-04-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
10254         * src/sheet-object-graphic.c (cb_dialog_graphic_config_apply_clicked) :
10255           removed
10256         (cb_dialog_graphic_config_ok_clicked) : don't call
10257           cb_dialog_graphic_config_apply_clicked
10258         (cb_adjustment_value_changed) : also change real sheet object
10259         (cb_color_changed) : ditto
10260         (cb_dialog_filled_config_apply_clicked) : removed
10261         (cb_dialog_filled_adjustment_value_changed) : new
10262         (cb_dialog_filled_color_changed) : new
10263         (cb_dialog_filled_config_ok_clicked) : don't call
10264           cb_dialog_filled_config_apply_clicked
10265         (sheet_object_filled_user_config) : hook-up cb_dialog_filled_*_changed
10266         * src/sheet-object-widget.c (cb_scrollbar_config_ok_clicked) : save
10267           all data
10268         (cb_checkbox_config_destroy) : delete old_label
10269         (cb_checkbox_config_cancel_clicked) : reset all data
10270         (sheet_widget_checkbox_user_config) : save old label
10272 2002-04-11  Morten Welinder  <terra@diku.dk>
10274         * */*: Make new plugins fn-eng from src/functions/fn-eng.c
10276         * src/parser.y (gnumeric_parse_error): Plug leak.
10278         * src/item-edit.c (item_edit_destroy): Fix memory corruption on
10279         double destroys.
10281 2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
10283         * src/sheet-object-graphic.c (sheet_object_filled_user_config) : don't
10284           use GnomeDialog. Use Glade.
10285         (cb_dialog_filled_config_destroy) : replaces cb_dialog_filled_close
10286         (cb_dialog_filled_config_apply_clicked) : replaces cb_dialog_filled_clicked
10287         (cb_dialog_filled_config_ok_clicked) : new
10288         (cb_dialog_filled_config_cancel_clicked) : new
10290 2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
10292         * src/sheet-object-graphic.c (sheet_object_graphic_user_config) : add line
10293           preview
10295 2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
10297         * src/sheet-object-graphic.c (sheet_object_graphic_user_config) : don't
10298           use GnomeDialog. Use Glade.
10299         (cb_dialog_graphic_config_destroy) : replaces cb_dialog_graphic_close
10300         (cb_dialog_graphic_config_apply_clicked) : replaces cb_dialog_graphic_clicked
10301         (cb_dialog_graphic_config_ok_clicked) : new
10302         (cb_dialog_graphic_config_cancel_clicked) : new
10303         (cb_adjustment_value_changed) : use changed DialogGraphicData
10305 2002-04-10  Morten Welinder  <terra@diku.dk>
10307         * src/clipboard.c (paste_cell_with_operation): Plug leak.
10308         (paste_link): Ditto.
10310 2002-04-10  Morten Welinder  <terra@diku.dk>
10312         * src/parse-util.c (cellref_a1_get): Fix toupper usage.  Make this
10313         work for non-English.  Check for overflow in row number.
10315 2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
10317         * sheet-object-widget.c (cb_checkbox_config_ok_clicked) : plug
10318         expr leak
10319         (cb_scrollbar_config_ok_clicked) : plug expr leak
10321 2002-04-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
10323         * sheet-object-widget.c (cb_checkbox_config_cancel_clicked) : new
10324         (cb_checkbox_config_ok_clicked) replaces cb_scrollbar_config_clicked
10325         (sheet_widget_checkbox_user_config) : don't use GnomeDialog
10327 2002-04-09  Morten Welinder  <terra@diku.dk>
10329         * src/rendered-value.c (rendered_value_new,
10330         rendered_value_destroy, rendered_value_init,
10331         rendered_value_shutdown): Yet another pool allocator.
10333 2002-04-09  Andreas J. Guelzow <aguelzow@taliesin.ca>
10335         * gnumeric-canvas.c (gnm_canvas_key_mode_object) : Sheet objects
10336           are GObjects
10337         * src/item-grid.c (ig_obj_create_finish) : unref the object since
10338           scg_mode_edit_object might not pick up the reference
10339         * src/sheet-control-gui.c (scg_object_stop_editing) : unref the
10340           sheet object
10341         (scg_mode_edit_object) : ref the object if we store a reference
10342         * src/workbook-control-gui.c (cb_edit_cut) :  Sheet objects
10343           are GObjects
10345 2002-04-09  Andreas J. Guelzow <aguelzow@taliesin.ca>
10347         * sheet-object-widget.c (cb_scrollbar_config_cancel_clicked) : new
10348         (cb_scrollbar_config_ok_clicked) replaces cb_scrollbar_config_clicked
10349         (sheet_widget_scrollbar_user_config) : don't use GnomeDialog
10351 2002-04-09  Morten Welinder  <terra@diku.dk>
10353         * configure.in (bind_textdomain_codeset): Add -lintl when needed.
10355         * src/workbook-control-gui.c: s/E_qual/_Equal/.
10357 2002-04-08  Andreas J. Guelzow <aguelzow@taliesin.ca>
10359         * src/workbook-control-gui.c (hide_show_detail_real) : new
10360         (group_ungroup_colrow_real) : new
10361         (hide_show_detail) : use dialog_col_row
10362         (group_ungroup_colrow) : use dialog_col_row
10364 2002-04-08  Morten Welinder  <terra@diku.dk>
10366         * src/expr.c (cb_expression_pool_leak): New function.
10367         (expr_shutdown): Show leaking expressions.
10369         * src/validation.c (validation_eval): Plug leaks.
10371 2002-04-08  Jon K Hellan  <hellan@acm.org>
10373         * configure.in: Test for <wctype.h>
10375         * src/stf-parse.c: Include <wctype.h> only if present.
10377 2002-04-08  Andreas J. Guelzow <aguelzow@taliesin.ca>
10379         * src/colrow.c (colrow_set_sizes) : set to default if size is 0
10380         * src/commands.c (cmd_resize_colrow) : size == 0 means default size
10381         * src/summary.c : avoid warnings
10382         * src/workbook-cmd-format.c (sheet_dialog_set_column_width) : just
10383           call dialog_col_width
10384         (workbook_cmd_format_column_std_width) : ditto
10385         (sheet_dialog_set_row_height) : just call dialog_row_height
10386         (workbook_cmd_format_row_std_height) : ditto
10388 2002-04-07  Jon K Hellan  <hellan@acm.org>
10390         * configure.in: Test for isfinite as a macro.
10391         * acconfig.h: Ditto.
10393 2002-04-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
10395         * src/item-edit.c : link to the expr-entry changed signal rather than its
10396           gtkentry changed signal.
10398 2002-04-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
10400         * src/item-edit.c (point_is_inside_range) : rather than parsing
10401           using parse_surrounding_ranges, ask the expression entry
10402           widget for the already parsed info.
10403         * src/parse-util.c (parse_surrounding_ranges) : fix formatting and
10404           add some debug switches
10406 2002-04-05  Morten Welinder  <terra@diku.dk>
10408         * src/gutils.c (gnm_mem_chunk_foreach_leak): New function.
10410         * src/str.c (string_get, string_get_nocopy, string_unref):
10411         Optionally use string pool.
10412         (string_shutdown): New function.
10413         * src/main.c (main): Call string_shutdown.
10415 2002-04-05  Jody Goldberg <jody@gnome.org>
10417         * src/workbook-control-gui.c (cb_insert_image) : add insert image.
10419         * src/sheet-object.c (sheet_object_default_size) : add a default_size
10420           handler that can generate default sizes per instance rather than
10421           class.
10423         * src/sheet-object-image.c (sheet_object_image_default_size) :
10424           implement.
10425         (sheet_object_image_class_init) : register the deafult size handler.
10426         * src/application.c  : add insert image.
10427         * src/pixmaps/Makefile.am : add insert image.
10429 2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
10431         * src/gnumeric-pane.c (gnm_pane_reposition_cursors) : also
10432           reposition item-edit cursor
10433           http://bugzilla.gnome.org/show_bug.cgi?id=77321
10435 2002-04-04  Morten Welinder  <terra@diku.dk>
10437         * src/main.c (main): Initialize and shutdown expr class.
10439         * src/expr.c (gnm_expr_new_constant, gnm_expr_new_funcall)
10440         (gnm_expr_new_unary, gnm_expr_new_binary, gnm_expr_new_name)
10441         (gnm_expr_new_cellref, gnm_expr_new_array, gnm_expr_new_set)
10442         (do_gnm_expr_unref): Conditionally use expression pool.
10443         (expr_init, expr_shutdown): Setup new expression pool.
10445 2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
10447         * src/item-edit.h (point_is_inside_range) : don't call
10448           gnumeric_char_start_expr_p since it changes the cursor position
10449         (entry_cursor_event) : new
10450         (item_edit_set_arg) : use notify::cursor-position rather than
10451           button-press-event
10453 2002-04-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
10455         * src/parse-util.c (parse_surrounding_ranges) : new, code extracted
10456           from src/widgets/gnumeric-expr-entry.c
10457         * src/parse-util.h (parse_surrounding_ranges) : new
10458         * src/item-edit.c (scan_at) : deleted
10459         (point_is_inside_range) : use arse_surrounding_ranges
10460         * src/position.c (value_to_rangeref) : new
10461         (rangeref_normalize) : new
10462         * src/position.h (value_to_rangeref, rangeref_normalize) : new
10463         * src/ranges.c (setup_range_from_value) : use setup_range_from_range_ref
10464         (setup_range_from_range_ref) : new
10465         * src/ranges.h (setup_range_from_range_ref) : new
10466         * src/value-sheet.c (value_cellrange_normalize) : use rangeref_normalize
10468 2002-04-03  Andreas J. Guelzow <aguelzow@taliesin.ca>
10470         * src/ranges.h (setup_range_from_value) : new
10471         (value_to_global_range) : new
10472         * src/ranges.c : ditto
10473         * src/consolidate.c : use setup_range_from_value
10474         * src/corba-sheet.c : ditto
10475         * src/item-edit.c : ditto
10476         * src/value.c : ditto
10478 2002-04-03  Andreas J. Guelzow <aguelzow@taliesin.ca>
10480         * schemas/gnumeric-general.schemas : Fix long description formatting.
10482 2002-04-02  Jon K Hellan  <hellan@acm.org>
10484         * src/func.c (function_def_get_arg_name): Don't crash if arguments
10485         aren't named.
10487 2002-04-01  Morten Welinder  <terra@diku.dk>
10489         * src/value.c (USE_VALUE_POOLS): Make pools conditional.
10491         * src/parser.y (line, opt_exp): Plug gigantic leak.  Now why does
10492         the expression widget call the parser thousands of times?
10494         * src/expr.c (expr_eval_real): Simplify.
10496 2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>
10498         * src/item-cursor.c (item_cursor_target_region_ok) : fix message dialog
10500 2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>
10502         * src/mstyle.c (mstyle_new_default) : protect against faulty
10503           schema installation
10504         * src/style.c (font_init) : protect against faulty
10505           schema installation and also configure bold and italic default fonts.
10507 2002-04-01  Andreas J. Guelzow <aguelzow@taliesin.ca>
10509         * schemas/gnumeric-general.schemas : add default font schemas
10510         * src/application.[ch] : add central preferences dialog
10511         * src/main.c : dispose of preference dialog on exit
10512         * src/mstyle.c : use gconf data to initialize default style
10513         * src/style.[ch] : use gconf data to initialize default style
10514         * src/workbook-control-gui.c : add preference menu items
10516 2002-04-01  Morten Welinder  <terra@diku.dk>
10518         * src/expr.c (expr_eval_real): Fix overflow for EXP case.  (Twice.)
10520         * src/mathfunc.c (gnumeric_fake_trunc): Fix for negative valus.
10522 2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
10524         * src/commands.c : use workbook signals
10525         * src/commands.h : include tools/tools.h rather than dialogs/tools.h
10526         * src/summary.c (summary_info_add) : return boolean
10527         * src/summary.h (summary_info_add) : return boolean
10528         * src/workbook.c : new workbook signals
10529         (workbook_add_summary_info) : new, emit signal
10530         (workbook_set_filename) : emit signal
10531         * src/workbook.h : new workbook signals
10533 2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
10535         * src/commands.c (cmd_analysis_tools_undo) : clear region
10536           before pasting (to avoid leaving cell comments behind)
10538 2002-03-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
10540         * src/commands.c : cmd_analysis_tools allow the engines
10541           to carry info from TOOL_ENGINE_LAST_VALIDITY_CHECK to
10542           TOOL_ENGINE_PERFORM_CALC
10543         * src/commands.h : include dialogs/tools.h rather than
10544           tools/analysis-tools.h
10546 2002-03-31  Jody Goldberg <jody@gnome.org>
10548         * src/gui-util.c (gnumeric_toolbar_new) : respect ui preferences.
10550 2002-03-30  Andreas J. Guelzow <aguelzow@taliesin.ca>
10552         * src/commands.c (cmd_analysis_tool_redo) : TOOL_ENGINE_PERFORM_CALC
10553           should never return TRUE since we already cleared the target.
10555 2002-03-29  Andreas J. Guelzow <aguelzow@taliesin.ca>
10557         * schemas/gnumeric-general.schemas : new schema file
10558         * schemas/Makefile.am : added gnumeric-general.schemas
10559         * src/application.h (application_release_gconf_client) : new
10560         (application_get_gconf_client) : new
10561         * src/application.c (application_release_gconf_client) : new
10562         (application_get_gconf_client) : new
10563         (app_init) : initialize new app.gconf_client
10564         * src/commands.c (truncate_undo_info) : read size_left from gconf
10565         * src/main.c : destroy app.gconf_client on exit
10567 2002-03-29  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
10569         * src/sheet.c (sheet_delete_rows, sheet_delete_cols) : Fixed the
10570         adjustments for Solver's parameters.
10572         * src/sheet.c (sheet_insert_rows, sheet_insert_cols) : Fixed the
10573         adjustments for Solver's parameters.
10575 2002-03-29  Morten Welinder  <terra@diku.dk>
10577         * src/value.c (value_new_cellrange_unsafe, value_new_cellrange,
10578         value_new_cellrange_r, value_new_array_non_init, value_release):
10579         Use chunk allocator for ranges and arrays.
10580         (value_init): Initialise range and array pools.
10581         (value_shutdown): Free range and array pools.
10583 2002-03-29  Morten Welinder  <terra@diku.dk>
10585         * src/gutils.c (gnm_mem_chunk_new, gnm_mem_chunk_destroy,
10586         gnm_mem_chunk_alloc, gnm_mem_chunk_free): Keep per-block
10587         freelists.
10588         (gnm_mem_chunk_free): g_free chunks that are completely empty.
10590         * src/value.c (value_get_as_float): Improve precision.
10591         (value_get_as_int): Take sign into account when (fake-)truncating
10592         floating point numbers.
10593         (value_new_error, value_new_error_str, value_new_string,
10594         value_new_string_str, value_release): Use chunk allocator for
10595         strings and errors.
10596         (value_init): Initialise error and string pools.
10597         (value_shutdown): Free error and string pools.
10599 2002-03-29  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
10601         * samples/solver/regression-test-suite.gnumeric: Solver's
10602         regression test suite added.
10604 2002-03-28  Jody Goldberg <jody@gnome.org>
10606         * src/sheet-object.c (sheet_object_set_sheet) : ref the object when we
10607           add it to the sheet.
10608         (sheet_object_clear_sheet) : unref here.
10609         (sheet_object_set_sheet) : move the content of new_view here.
10611         * src/print-cell.c (print_cell) : seems like the sign of the descenty
10612           is reversed.
10613         * src/print.c (print_footers) : ditto.
10615         * src/sheet.c (sheet_move_range) : long list onto short list not
10616           vice versa.
10617         (sheet_delete_cols) : ditto.
10618         (sheet_delete_rows) : ditto.
10619         * src/dependent.c (micro_hash_resize) : ditto.
10621         * src/style.c (style_font_new_simple) : init the print_font.
10622         (style_font_unref) : unref the print_font.
10624         * src/print-cell.c (print_cell) : use the print_font.
10626         * src/print.c (print_job_info_destroy) : GnomeFont is a GObject.
10628 2002-03-27  Jody Goldberg <jody@gnome.org>
10630         * gnumeric.desktop.in (Exec) : Add %F
10632 2002-03-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
10634         * src/commands.c (cmd_analysis_tool_redo) : add dao_autofit_columns
10636 2002-03-28  Morten Welinder  <terra@diku.dk>
10638         * */*.c: Fix g_warning calls to not have terminating n.
10640 2002-03-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
10642         * src/print.c (sheet_print) : gpm is not a GtkObject
10644 2002-03-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
10646         * src/print.c : port to gnome2
10648 2002-03-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
10650         * src/gui-util.c (gnumeric_destroy_dialog) : replaced by call to
10651           gtk_widget_destroyed
10653 2002-03-27  Jody Goldberg <jody@gnome.org>
10655         * configure.in : Include the necessary gconf setup to install schemas.
10657 2002-03-27  Jody Goldberg <jody@gnome.org>
10659         * src/io-context.c (gnm_io_get_password) : new.
10660         * src/command-context.c (cmd_context_get_password) : new.
10661         * src/workbook-control-gui.c (wbcg_get_password) : new.
10663 2002-03-26  Jody Goldberg <jody@gnome.org>
10665         * src/parser.y (yylex) : make UTF-8 clean.
10666         (find_char) : ditto.
10667         (find_matching_close) : ditto.
10669 2002-03-26  Jody Goldberg <jody@gnome.org>
10671         * configure.in : add schemas dir.
10673         * src/gnumeric-canvas.c (gnumeric_canvas_new) : disable auto-center.
10675 2002-03-27  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
10677         * src/xml-io.c: Added saving and loading of Solver's options.
10679 2002-03-25  Jody Goldberg <jody@gnome.org>
10681         * Release 1.1.2
10683 2002-03-26  Morten Welinder  <terra@diku.dk>
10685         * src/rendered-value.c (rendered_value_new): Just peek directly
10686         into the approx_width structure -- everyone else does that.  Take
10687         worst case of "e", signs, and decimal points into account.
10689         * src/style.h (StyleFont): Change floats to doubles.  Add more
10690         approx_width fields.
10692         * src/style.c (style_font_get_width_pts): Remove.
10694 2002-03-26  Morten Welinder  <terra@diku.dk>
10696         * src/style.c (style_font_new_simple): Translate pixels to points
10697         properly.
10699         * src/style.c (style_font_new_simple): Fix misplaced #endif.
10701         * src/format.c (format_value): Fix general display of floats.
10702         Oops.
10704         * src/value.c (value_release): Use the fact that VALUE_TERMINATE
10705         is an error value.
10707 2002-03-26  Morten Welinder  <terra@diku.dk>
10709         * src/value.c (value_new_bool, value_new_int, value_release): Use
10710         int/bool pool.
10711         (value_init): Initialise int/bool pool.
10712         (value_shutdown): Free int/bool pool.
10714         * src/gutils.c (gnm_mem_chunk_new): Use smaller alignment when
10715         known to be possible.
10717 2002-03-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
10719         * src/workbook-control-gui.c : added insert-function menu item
10721 2002-03-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
10723         * schemas/ : new directory for schema files
10724         * schemas/gnumeric-dialogs.schemas : file for gconf configuration
10725           variables used by the gnumeric dialogs
10727 2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
10729         * gui-util.[ch] (focus_on_entry) : new
10730         * src/workbook-control-gui.c (cb_file_summary) : delete unused
10731           variable
10733 2002-03-25  Morten Welinder  <terra@diku.dk>
10735         * src/format.c (format_value): Strip signs when conditional
10736         formats are in use.
10738 2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
10740         * src/commands.[hc] : implement cmd_change_summary
10741         * src/summary.[hc] : constify arguments
10742         (summary_item_free) : make public, handle NULL argument
10743         (summary_item_copy) : new
10744         (summary_item_by_name) : new
10745         (summary_item_as_text_by_name) : new
10746         * src/workbook-control-gui.c (cb_file_summary) : delete unused
10747           variable, add argument to dialog_summary_update
10748         * src/workbook.c (workbook_set_filename) : update summary dialog
10750 2002-03-25  Morten Welinder  <terra@diku.dk>
10752         * src/format.c (StyleFormatEntry): Make the value field a
10753         gnum_float at intended.
10755         * src/main.c (main): Call g_set_prgname.
10756         (main): Call value_init and value_shutdown appropriately.
10758         * src/value.c (value_terminate_err): New value.
10759         (value_terminate): Replace this function by the value
10760         VALUE_TERMINATE.  All callers changed.
10761         (value_hash): Be smarter about arrays.
10762         (value_new_float): Use chunk allocator.
10763         (value_release): Release floats properly.
10764         (value_init, value_shutdown): New functions.
10766         * src/gutils.c (gnm_mem_chunk_destroy): Add new argument for leak
10767         tracking.
10769 2002-03-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
10771         * workbook-control-gui.c : change arguments in call of
10772           dialog_summary_update
10774 2002-03-24  Morten Welinder  <terra@diku.dk>
10776         * src/gutils.c (gnm_mem_chunk_new, gnm_mem_chunk_destroy,
10777         gnm_mem_chunk_alloc, gnm_mem_chunk_alloc0, gnm_mem_chunk_free):
10778         New functions implementing a sane and fast chunk allocated.
10779         (Maybe use Evolution's later.)
10781         * src/dependent.h (struct _GnmDepContainer): add members
10782         range_pool and single_pool for allocation.
10784         * src/dependent.c (link_single_dep): Allocate from pool.
10785         (unlink_single_dep): Free using pool.
10786         (link_range_dep): Allocate from pool.
10787         (unlink_range_dep): Free using pool.
10788         (do_deps_destroy): Destroy pools.
10789         (gnm_dep_container_new): Allocate pools.
10790         (cb_dep_hash_invalidate): Don't free at all -- we're about to dump
10791         both pools anyway.
10793         * src/cell.c (cell_new): New function.  (About time.)
10794         (cell_copy): Use cell_new.
10795         (cell_destroy): Free from pool if we allocated that way.
10796         (cell_init, cell_shutdown): New functions.
10798         * src/xml-io.c (cell_copy_new): Use cell_new.
10799         * src/sheet.c (sheet_cell_new): Use cell_new.
10800         * src/main.c (main): Initialise and shutdown cells.
10802 2002-03-22  Jody Goldberg <jody@gnome.org>
10804         * src/sheet.c (sheet_cell_insert) : delete.
10805         (cb_sheet_cell_copy) : use sheet_cell_new instead of
10806           cell_copy + sheet_cell_insert.
10808         * src/gnumeric.h (CellList) : delete.
10810 2002-03-22  Almer S. Tigelaar  <almer@gnome.org>
10812         * src/format-template.h: Extend FormatTemplate struct with
10813         edge related flags.
10815         * src/format-template.c (formate_template_new): Initialize
10816         new edge related members.
10817         (format_template_clone): Clone new edge related members and
10818         constify.
10819         (format_template_transform_edges): Transforms the templates
10820         by removing edges if so desired.
10821         (format_template_calculate): Use format_template_transform_edges.
10823 2002-03-21  Jody Goldberg <jody@gnome.org>
10825         * Massive rename
10826         ExprTree -> GnmExpr
10827         eval.[ch] -> dependent.[ch]
10828         DependentContainer -> GnmDepContainer
10830         * src/print-info.c (load_formats) : suppress some warnings.
10832         * src/func.c (function_def_call_with_values) : use g_alloca.
10834 2002-03-21  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
10836         * AUTHORS: Added the authors of the LP Solve algorithm.
10838 2002-03-20  Jody Goldberg <jody@gnome.org>
10840         * src/sheet-style.c (cell_tile_apply_pos) : a simple optimization.
10841           Don't split a tile to apply the existing style.
10843         * src/cellspan.c (cell_calc_span) : Fix span calc when spanning
10844           through hidden columns with content there was a typo, and a logic
10845           error.  No need to change the margin for an invisible column.
10847 2002-03-19  Jody Goldberg <jody@gnome.org>
10849         * src/eval.c (cell_eval_content) : move here from cell.c and
10850           privatize.
10851         (dependent_changed) : remove useless argument.
10853 2002-03-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
10855         * src/func.[ch] (function_def_get_arg_type_string) : new
10856         (function_def_get_arg_name) : new
10857         * src/gui-util.[ch] (gnumeric_dialog_raise_if_exists) :
10858           change return type from gboolean to gpointer
10859         * src/workbook-control-gui.c : add argument to call to
10860           dialog_formula_guru
10862 2002-03-19  Morten Welinder  <terra@diku.dk>
10864         * src/position.c (cellref_equal): Change the order of comparisons
10865         a bit.  This works around a purify problem.  (I.e., a problem with
10866         purify, not with the gnumeric code.)
10868         * src/style.c (style_font_new_simple): Work harder at getting widest character.
10870         * src/format.c (format_number): Fix format breakage.  (Extra "E".)
10872         * src/parser.y (parse_string_as_value): Clean up.
10874 2002-03-19  Juan Pablo Mendoza <jpablo@gnome.org>
10876         * src/Makefile.am: Changue subdirs order to build pixmaps before
10877           dialogs. This fix the cvs build.
10879 2002-03-18  Morten Welinder  <terra@diku.dk>
10881         * src/rangefunc.c (float_hash): Fix for long double case (which
10882         has six padding bytes on gcc/ix86).  Also be smarter.
10884         * src/value.c (value_hash): Scale by a power of two for speed.
10886 2002-03-18  Morten Welinder  <terra@diku.dk>
10888         * src/workbook-control-gui.c (cb_workbook_debug_info): Add code to
10889         share cells in workbook.
10891         * src/main.c: Add --debug_share=1 option.
10893         * src/expr.c (expr_list_eq): New function.
10894         (expr_tree_sharer_new, expr_tree_sharer_destroy)
10895         (expr_tree_sharer_share): New functions.
10897         * src/position.c (cellref_hash): New function.
10899         * src/value.c (value_hash): New function.
10901 2002-03-18  Andreas J. Guelzow <aguelzow@taliesin.ca>
10903         * src/commands.c (cmd_analysis_tool) : set me->parent.size
10905 2002-03-18  Jody Goldberg <jody@gnome.org>
10907         * src/workbook-control-gui.c : typo. (Thanks frob)
10909 2002-03-18  Jody Goldberg <jody@gnome.org>
10911         * configure.in : bump canvas req to pull in the canvas fixes
10912         changes.
10914         * src/xml-io.c (xml_sheet_read) : look for sheet names in the right
10915           place.
10917 2002-03-17  Jody Goldberg <jody@gnome.org>
10919         * src/style.c (style_font_get_height) : add some additional
10920           protection.
10921         (style_font_new_simple) : be really really anal.
10923 2002-03-17  Jon K Hellan  <hellan@acm.org>
10925         * src/workbook-format-toolbar.c (cb_fore_color_changed): Handle
10926         autocolors.
10927         (cb_border_changed): Ditto.
10928         (workbook_create_format_toolbar): Ditto.
10930 2002-03-16  Jody Goldberg <jody@gnome.org>
10932         * src/workbook.c (workbook_foreach_cell_in_range) : support 3d
10933           references.
10934         (workbook_finalize) : free the 3d dep list if necessary.
10935         (workbook_init) : initialize the list.
10936         (cb_dep_unlink) : new.
10937         (pre_sheet_index_change) : new.
10938         (cb_dep_link) : new.
10939         (post_sheet_index_change) : new.
10940         (workbook_sheet_index_update) : privatize.
10941         (workbook_sheet_attach) : add pre/post handling for 3d references.
10942         (workbook_sheet_detach) : ditto.
10944         * src/eval.c (link_cellrange_dep) : add support for 3d deps.
10945         (unlink_cellrange_dep) : add support for 3d deps.
10946         (workbook_link_3d_dep) : new.
10947         (workbook_unlink_3d_dep) : new.
10948         (dependent_link) : called here.
10949         (dependent_unlink) : and here.
10951         * configure.in : bump libcanvas req to getthe no auto-center patch.
10953 2002-03-16  Jody Goldberg <jody@gnome.org>
10955         * src/sheet.c (sheet_{insert,delete}_{cols,rows}) : don't recalc the
10956           entire sheet.  We'll queue what we need when relocating.
10958         * src/cell.c (cell_set_expr_unsafe) : don't relink.
10960         * src/eval.c (micro_hash_resize) : minor optimization.
10961         (dependents_unrelocate_free) : moved here and renamed from
10962         (workbook_unrelocate_free) : moved here and renamed from
10963           workbook_expr_unrelocate_free.
10964         (workbook_unrelocate) : moved here and renamed from
10965           workbook_expr_unrelocate.
10966         (cb_range_contained_collect) : new.
10967         (cb_single_contained_collect) : new.
10968         (dependents_relocate) : moved here and renamed from
10969           workbook_expr_relocate.  Then changed to operate on the actual
10970           depenents of the region rather than everything, clarified the
10971           handling of linking/unlinking.
10972         (dependents_unrelocate) : relink deps and queue them for recalc.
10974         * src/cell.c (cell_relocate) : clean out a bit now that we are not
10975           using it without reloc info.
10977         * src/expr.c (cellref_relocate) : don't use the ultra safe reference
10978           checks here, we WANT to know if things are out of bounds.
10979         (cellref_shift) : ditto.
10981 2002-03-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
10983         * src/sheet-control-gui-priv.h : added label field
10984         * src/workbook-control-gui.c (cb_sheet_name) : call
10985           editable_label_start_editing rather than dialog_sheet_name
10986         (sheet_action_rename_sheet) : ditto
10987         (wbcg_sheet_add) : store editable label ref for future ref
10989 2002-03-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
10991         * src/commands.c : support tab color changes in cmd_reorganize_sheets
10992         * src/commands.h (cmd_reorganize_sheets) : add arguments
10993         * src/sheet.c (sheet_set_tab_color) : add third argument
10994         (sheet_new) : initialize tab_text_color
10995         (sheet_destroy) : free tab_text_color
10996         * src/sheet.h : add tab_text_color to _Sheet
10997         (sheet_set_tab_color) : add third argument
10998         * src/workbook-control-gui.c (wbcg_sheet_add) : also set tab_text_color
10999         (wbcg_sheet_rename) : add arguments to call of cmd_reorganize_sheets
11000         (cb_insert_sheet) : ditto
11001         * src/workbook.c (workbook_sheet_reorganize) : support changing of tab
11002           colors
11003         * src/workbook.h (workbook_sheet_reorganize) : add arguments
11004         * src/xml-io.c : read and write TabTextColor
11006 2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
11008         * src/commands.c (cmd_merge_data_redo) : use cell_assign_value rather
11009           than copy/paste to preserve merged target fields.
11010         * src/commands.c (cmd_merge_data_redo) : don't create unnecessary cells
11011         * src/sheet-object.[ch] (sheet_object_clone_sheet) : delete
11012         * src/sheet-object.[ch] (sheet_object_clone_sheet_in_range) : rename
11013           sheet_object_clone_sheet
11014         * src/sheet.c : change sheet_object_clone_sheet calls
11016 2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
11018         * src/commands.c : use cell_assign_value rather than copy/paste to
11019           preserve merged target fields.
11021 2002-03-14  Andreas J. Guelzow <aguelzow@taliesin.ca>
11023         * src/sheet-object-widget.[ch] (sheet_widget_checkbox_switch_link_sheet) :
11024           delete again (unnecessary after Jody's fix of the root problem)
11025         * src/colrow.c (colrow_set_states) : preserve the
11026           ColRowStateList, it possibly should also be applied to other sheets
11027         (colrow_restore_state_group) : ditto.
11028         * src/sheet.c : delete the ColRowStateList after colrow_set_states
11029         * src/commands.c : delete the ColRowStateList after colrow_set_states
11030         (cmd_merge_data_redo) : preserve column and row widths, etc.
11032 2002-03-13  Jody Goldberg <jody@gnome.org>
11034         * src/gnumeric-canvas.c (gnm_canvas_key_press) : disable object
11035           movement while guru is up.
11037         * src/sheet-object-widget.c (sheet_widget_scrollbar_get_ref) : Add a
11038           force_sheet parameter.
11039         (sheet_widget_checkbox_get_ref) : ditto.
11040         (sheet_widget_scrollbar_clone) : do not force a fully qualified ref here.
11041           It would incorrectly cause the new object to link to the old sheet.
11042         (sheet_widget_checkbox_clone) : ditto.
11044         * src/parser.y : support the applix #AND# #OR# #NOT# operators.
11046 2002-03-13  Andreas J. Guelzow <aguelzow@taliesin.ca>
11048         * src/commands.c (cmd_merge_data_redo) : handle sheet objects
11049           and change ref in checkboxes
11050         * src/sheet-object-widget.c (sheet_widget_checkbox_switch_link_sheet) :
11051           new
11052         * src/sheet-object-widget.h (sheet_widget_checkbox_switch_link_sheet) :
11053           new
11054         * src/sheet-object.c (sheet_object_clone_sheet_in_range) : new
11055         * src/sheet-object.h (sheet_object_clone_sheet_in_range) : new
11056         * src/workbook-control-gui.c (cb_tools_merge) : remove unused var
11058 2002-03-12  Jody Goldberg <jody@gnome.org>
11060         * src/workbook-control-gui.c (cb_sheet_label_edit_finished) : renamed
11061           from cb_sheet_label_changed and handle NULL text as cancel.
11062         (cb_sheet_label_edit_stopped) : deleted.
11064         * configure.in : Generate GNOME_Gnumeric.server.in
11065         * Generate GNOME_Gnumeric.server : start to think about this.
11067         * src/expr-name.c (expr_name_unlink_deps) : handle delayed hash
11068           creation.
11069         (expr_name_new) : dont init the hash table.
11070         (expr_name_add_dep) : until here.
11072         * src/sheet.c (sheet_destroy_contents) : free the primary array too.
11074         * src/xml-io.c (cell_copy_new) : set comment to NULL.
11075         * src/gui-clipboard.c (x_selection_to_cell_region) : ditto.
11076         * src/stf-parse.c (stf_parse_region) : ditto.
11078 2002-03-12  Andreas J. Guelzow <aguelzow@taliesin.ca>
11080         * workbook-control-gui.c : add Merge to the Edit/Fill menu
11081         (cb_tools_merge) : new
11082         * commands.h (cmd_merge_data) : new
11083         * commands.c : implement the cmd_merge_data command
11084         (cmd_set_comment_finalize) : simplify
11086 2002-03-12  Morten Welinder  <terra@diku.dk>
11088         * src/sheet.c (sheet_destroy_contents): Plug leak.
11089         * src/workbook.c (workbook_finalize): Free the sheets member.
11090         * src/sheet-control-gui.c (scg_finalize): Plug leak.
11092 2002-03-11  Jody Goldberg <jody@gnome.org>
11094         * src/expr-name.c (expr_name_new) : make public.
11096 2002-03-11  Jon K Hellan  <hellan@acm.org>
11098         * src/format.c: silence warning.
11100 2002-03-11  Morten Welinder  <terra@diku.dk>
11102         * configure.in (ynl, erfl, erfcl): Check that these actually work.
11103         (glibc defines these, they just don't work.)
11105 2002-03-11  Andreas J. Guelzow <aguelzow@taliesin.ca>
11107         * src/commands.c (delete_pristine_sheets) : rename to
11108           cmd_reorganize_sheets_delete_sheets and use command_undo_sheet_delete
11109           rather than workbook_sheet_delete.
11110         (cmd_analysis_tool_finalize) : shorten code.
11112 2002-03-11  Jody Goldberg <jody@gnome.org>
11114         * src/gui-util.c (color_combo_get_style_color) : changes to color combo.
11115         * src/sheet-object-graphic.c (cb_fill_color_changed) : ditto.
11116         * src/workbook-format-toolbar.c (cb_fore_color_changed) : ditto.
11117         (cb_back_color_changed) : ditto.
11118         (workbook_create_format_toolbar) : ditto.
11120 2002-03-10  Jody Goldberg <jody@gnome.org>
11122         * configure.in : bump gal req to pull in the colour combo changes.
11124 2002-03-10  Jody Goldberg <jody@gnome.org>
11126         * configure.in : post release bump
11128 2002-03-10  Jody Goldberg <jody@gnome.org>
11130         * Release 1.1.1
11132 2002-03-10  Andreas J. Guelzow <aguelzow@taliesin.ca>
11134         * src/commands.c (command_undo_sheet_delete) new utility function (for
11135           CMD_ANALYSIS_TOOL_TYPE and CMD_SHEET_REORGANIZE_TYPE)
11136         (CMD_ANALYSIS_TOOL) : undo/redo command for data analysis tools.
11137         * src/commands.h (cmd_analysis_tool) : new
11139 2002-03-10  Jody Goldberg <jody@gnome.org>
11141         * src/tools/solver/reports.c : warning suppression
11142         * src/tools/solver/solver.c (lp_solver_init) : ditto.
11144         * configure.in : bump gal version req.
11146 2002-03-09  Andreas J. Guelzow <aguelzow@taliesin.ca>
11148         * src/gnm-marshalers.list : add NONE:STRING
11150 2002-03-10  Jon K Hellan  <hellan@acm.org>
11152         * src/func.c (copy_hash_table_to_ptr_array): Check if function is
11153         FUNCTION_NAMEONLY here.
11154         (function_dump_defs): So that we can use the earlier version of this.
11156 2002-03-09  Jon K Hellan  <hellan@acm.org>
11158         Dump function definitions from plugins, this time the easy way
11159         which even works.
11161         * src/func.c (copy_hash_table_to_ptr_array): Copy also when fd->help
11162         is NULL.
11163         (function_dump_defs): Load function definition before dumping name
11164         only function.
11166         * src/main.c (main): Drop force load argument to plugins_init.
11168         * src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
11169         plugin_db_activate_saved_active_plugins, plugins_init): Revert to
11170         pre 2002-03-08 version. We apologize for the inconvenience.
11171         However, error reporting by means of gnumeric_error_error_info
11172         remains.
11174         * src/plugin-service.[ch]
11175         (plugin_service_function_group_initialize): Revert to pre
11176         2002-03-08 version.
11177         (plugin_service_activate): Ditto. Except that we don't reinstate
11178         #ifdef PLUGIN_ALWAYS_LOAD. That branch is hopelessly bitrotted.
11180         * src/plugin.h: Drop #undef PLUGIN_ALWAYS_LOAD.
11182 2002-03-09  Jody Goldberg <jody@gnome.org>
11184         * src/func.c (func_def_load) : rename from function_def_get_full_info_if_needed
11185           and remove the condition.
11187         * src/eval.c (link_expr_dep) : Call func_def_load if necessary to
11188           check for a link function.
11190 2002-03-09  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
11192         * samples/solver/blend.mps: Added another Netlib demo.  The
11193         results seem to be correct now, so we are finally getting close..
11195 2002-03-09  Jody Goldberg <jody@gnome.org>
11197         * src/workbook-control-gui.c (cb_editline_focus_in) : if editing fails
11198         restore focus to the sheet.
11200         * src/workbook-edit.c (wbcg_edit_start) : fix typo and swapping of the
11201           warnings.
11203 2002-03-09  Andreas J. Guelzow <aguelzow@taliesin.ca>
11205         * workbook-control-gui.c : change menu items "Re-order sheets"
11206           to "Manage Sheets" and enable these items even for single sheet
11207           workbooks.
11208         * commands.h : add deleted_sheets argument to cmd_reorganize_sheets
11209         * commands.c : ditto
11211 2002-03-08  Jody Goldberg <jody@gnome.org>
11213         * src/GNOME_Gnumeric.xml : switch Format->Workbook with
11214           Format->AutoFormat
11215         * src/workbook-control-gui.c (workbook_menu_format) : ditto.
11217         * src/workbook-view.c (wb_view_is_protected) : new.
11219         * src/workbook-edit.c (wbcg_edit_start) : load style directly
11220           don't use cell_get_style.  This enables support for protection of
11221           blank cells.  Use wb_view_is_protected, and command_context_invalid.
11223 2002-03-08  C. Scott Ananian <cananian@lesser-magoo.lcs.mit.edu>
11225         * src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet): don't put us in
11226           edit mode if wbcg_edit_start indicates the cell is locked.
11227         * src/workbook-control-gui.c (cb_autosum, cb_autofunction): handle
11228           case where wbcg_edit_start returns FALSE indicating that cell is
11229           locked.
11230         * src/workbook-edit.c (wbcg_edit_start): this function now returns a
11231            boolean which indicates whether the 'edit_start' attempt succeeded.
11232            Check cell properties to return FALSE if the cell is locked.
11233         * src/workbook-edit.h (wbcg_edit_start): modify the prototype as per above.
11234         * src/workbook-view.c (wb_view_set_attribute, workbook_view_init):
11235           Remove ARG_VIEW_* enumeration, which isn't used after Gnome2 port.
11236           Add WorkbookView::is_protected attribute, and initialize it to
11237           FALSE.  The update to wb_view_set_attribute is enough to get
11238           xml_sax import working properly (yay, modular code!).
11239         * src/workbook-view.h: add 'is_protected' field to WorkbookView struct.
11240           This is TRUE iff the workbook is locked.
11241         * src/xml-io.c (xml_write_wbv_attributes):
11242           Write the new 'protected' workbook view attribute.  Two lines are
11243           enough to get read/write from xml_io working.  Score one for
11244           xml_sax: zero should have been sufficient.
11245         * src/dialogs/cell-format.glade: The 'worksheet protected' checkbox
11246           shouldn't be greyed-out anymore.
11247         * src/dialogs/dialog-cell-format.c (cb_protection_sheet_protected_toggle,
11248         fmt_dialog_init_protection_page, cb_fmt_dialog_dialog_buttons):
11249           connect up the 'worksheet protected' button in the
11250           Format->Cells->Protection dialog.  Update worksheet object when
11251           toggled and mark that the dialog's changed.
11252         * src/dialogs/dialog-workbook-attr.c src/dialogs/workbook-attr.glade:
11253           Add Format->Worksheet->Protection dialog.
11255 2002-03-08  Jon K Hellan  <hellan@acm.org>
11257         * src/command-context-stderr.c (ccs_class_init): Make gmorten happy.
11259         * src/command-context.h (COMMAND_CONTEXT): Fix typo.
11261         * src/command-context-stderr.c
11262         (command_context_stderr_get_status): Fix typo.
11264         * src/command-context-stderr.[ch]: Add.
11266         * src/Makefile.am: Add command-context-stderr.[ch]
11268         * src/main.c (main): Force load plugins before dumping function
11269         definitions.
11271         * src/plugin.[ch] (activate_plugin, plugin_db_activate_plugin_list,
11272         plugin_db_activate_saved_active_plugins, plugins_init): Add
11273         force_load parameter.
11274         (plugins_init): Use virtual function gnumeric_error_error_info to
11275         report error.
11277         * src/plugin-service.[ch]
11278         (plugin_service_function_group_initialize): Add force_load
11279         parameter. Get function info if force loaded.
11280         (plugin_service_activate): Propagate force_load parameter.
11282         * src/gnumeric.h: Declare CommandContextStderr.
11284         * src/func.[ch] (function_def_get_full_info_if_needed): Make
11285         public so that it's available when force-loading plugins.
11287         * src/error-info.c (error_info_print_with_offset): Print to stderr
11288         instead of stdout.
11290 2002-03-08  Morten Welinder  <terra@diku.dk>
11292         * src/validation.c (validation_eval): Minor cleanup.
11293         * src/value.c (value_peek_string): Be smarter about errors.
11295 2002-03-08  Jakub Steiner <jimmac@ximian.com>
11297         * src/pixmaps/Makefile.am:
11298         * src/pixmaps/format_money_24.png:
11299         * src/pixmaps/format_percent_24.png:
11300         * src/pixmaps/object_list_24.png:
11301         * src/pixmaps/object_combo_24.png: fix the filenames
11303 2002-03-08  Jakub Steiner <jimmac@ximian.com>
11305         * icons/down-right.png, icons/right-down.png: pretty gnome2 icons
11306         * src/pixmaps/percent.png:
11307         * src/pixmaps/money.png:
11308         * src/pixmaps/list.png:
11309         * src/pixmaps/combo.png, src/pixmaps/Makefile.am: replace xpm
11310           with a PNG (removed combo.xpm)
11312 2002-03-08  Jody Goldberg <jody@gnome.org>
11314         * configure.in : add sample_datasource
11316         * src/validation.c (validation_eval) : cleanup handling of 'int'
11317         and fix handling of between.
11319 2002-03-08  Jody Goldberg <jody@gnome.org>
11321         * src/eval.h : Add DEPENDENT_ALWAYS_UNLINK.
11322           and the as yet unused DEPENDENT_HAS_3D.
11324         * src/io-context.c (gnm_io_warning) : new stub.
11325         (gnm_io_warning_unknown_font) : ditto.
11326         (gnm_io_warning_unknown_function) : ditto.
11327         (gnm_io_warning_unsupported_feature) : ditto.
11329         * src/func.c (function_def_get_full_info_if_needed) :  add
11330           link/unlink.
11332         * src/plugin-service.c
11333         (plugin_service_function_group_get_full_info_callback) : add
11334           link/unlink.  This is a terrible interface.  Why not just make the
11335           thing into the FunctionDescriptor.
11336         * src/plugin-loader-module.c
11337         (gnumeric_plugin_loader_module_func_get_full_function_info) : ditto.
11339 2002-03-08  Jody Goldberg <jody@gnome.org>
11341         * src/xml-io.c (xml_write_print_info) : handle missing paper so that
11342           we can save again.
11344         * templates/autoformat/autoformat.3D.button.xml : fix.
11346         * plugins/Makefile.am (SUBDIRS) : add sample_datasource.
11348 2002-03-07  Jody Goldberg <jody@gnome.org>
11350         * src/plugin-loader-module.h (ModulePluginFunctionInfo) : add
11351           'link' and 'unlink'.
11353 2002-03-07  Jody Goldberg <jody@gnome.org>
11355         * src/position.c (eval_pos_init*) : handle the optional dependent.
11357         * src/eval.c (link_expr_dep) : support the adjustment to EvalPos.
11358         (unlink_expr_dep) : support the adjustment to EvalPos.
11360         * *.c : directly include gnome-i18n.h, value.h and expr.h
11361           where necessary now that they are no longer included.
11362         * src/func.h : here.
11364         * src/position.h (EvalPos) : Pass in an optional Dependent.
11366         * src/expr.h (FunctionEvalInfo) : remove the func_def.  Send in the
11367           ExprFunc wrapper instead.  That contains the func-def if desired.
11369         * src/func.c (function_set_link_handlers) : differentiate signatures
11370           for link & unlink.
11372 2002-03-07  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
11374         * src/analysis-tools.[ch]: Moved into src/tools.
11375         src/auto-correct.[ch]: Ditto.
11376         src/goal-seek.[ch]: Ditto.
11378         * src/solver.h (SolverResults): Added a few more fields to improve
11379         reporting.
11381 2002-03-07  Andreas J. Guelzow <aguelzow@taliesin.ca>
11383         * workbook.c (workbook_sheet_reorganize) : implement adding of
11384           multiple sheets
11386 2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
11388         * src/sheet.c (sheet_new) : initialize sheet->index_in_wb
11389         * src/sheet.h : new field sheet::index_in_wb
11390         * src/workbook-control-gui.c (wbcg_sheet_add) : replace
11391           workbook_sheet_index_get with sheet->index_in_wb
11392         * src/workbook-view.c (wb_view_sheet_focus) : ditto
11393         * src/workbook.c (workbook_sheet_index_get) : deleted
11394         (workbook_sheet_index_update) : new
11395         (workbook_sheet_attach) : replace workbook_sheet_index_get
11396           with sheet->index_in_wb, call workbook_sheet_index_update
11397         (workbook_sheet_detach) : ditto
11398         (workbook_sheet_move) : ditto
11399         (workbook_sheet_reorganize) : ditto
11401 2002-03-06  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
11403         * src/tools: New directory created for tools.
11405         * src/tools/solver: Moved src/solver-lp.c into here and split it
11406         into two files: src/tools/solver/solver.c and
11407         src/tools/solver/reports.c.  A _major_ rewrite.
11409         * src/tools/solver/lp_solve: Integrated key parts of an LGPLed
11410         linear programming toolkit called LP Solve 3.2.  (The whole
11411         package can be found from ftp://ftp.ics.ele.tue.nl/pub/lp_solve).
11412         Major clean up for making it to look like GNOME code.  LP Solve is
11413         written by Michel Berkelaar and others.  Thanks for the great
11414         work!
11416         * configure.in: Added src/tools/Makefile, src/tools/solver/Makefile,
11417         and src/tools/solver/lp_solve/Makefile.
11419         * src/Makefile.am: Added tools subdirectory.
11421         * src/mathfunc.[ch]: Removed all solver related functions.
11423         * src/solver.h, src/sheet.c: solver_lp_new renamed as
11424         solver_param_new.  solver_lp_destroy renamed as
11425         solver_param_destroy.
11427         * src/xml-io.c: Solver related changes.
11429         * samples/solver/production-plan.gnumeric: A Solver sample file.
11431 2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
11433         * src/gui-util.c (gnumeric_error_info_dialog_show) : remove
11434           forced placement by mouse
11435         (gnumeric_set_transient) : remove unused code, set dialog
11436           placement to GTK_WIN_POS_CENTER_ON_PARENT
11438 2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
11440         * src/eval.c (link_expr_dep) : fix typo
11442 2002-03-06  Andreas J. Guelzow <aguelzow@taliesin.ca>
11444         * src/commands.c (delete_pristine_sheets) : new
11445         (cmd_reorganize_sheets_undo) : delete new sheets, change calling
11446           sequence of workbook_sheet_reorganize
11447         (cmd_reorganize_sheets_redo) : change calling
11448           sequence of workbook_sheet_reorganize
11449         (cmd_reorganize_sheets_finalize) : clear new_sheets
11450         (cmd_reorganize_sheets) : handle adding of sheets, streamline
11451           selection of cmd descriptor
11452         * src/workbook-control-gui.c (cb_insert_sheet) : use
11453           cmd_reorganize_sheets
11454         * src/workbook.c (workbook_sheet_reorganize) : handle adding of sheets
11455         * src/workbook.h (workbook_sheet_reorganize) : add argument
11457 2002-03-05  Jody Goldberg <jody@gnome.org>
11459         * src/eval.c (link_single_dep) : flag inter-{sheet,book} references.
11460         (link_cellrange_dep) : ditto.
11461         (link_expr_dep) : collect the flags.
11462         (dependent_link) : and assign them here.
11463         (dependent_unlink_sheet) : delete and merge into.
11464         (do_deps_destroy) : here.  And use the new inter-{sheet,book} flags to
11465           avoid removing internal links.
11467         * src/sheet.c (sheet_destroy_contents) : depends are now handled
11468           outside this routine add a precondition.
11470         * src/main.c : delete style_debugging.
11472         * src/clipboard.c (clipboard_copy_range) : suppress warning.
11474 2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
11476         * src/workbook-control-gui.c (workbook_close_if_user_permits) :
11477           use gtk_message_dialog_new/gnumeric_dialog_run
11479 2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
11481         * src/sheet-control-gui.c (scg_comment_display) : put
11482           a frame around the pop-up
11484 2002-03-05  Morten Welinder  <terra@diku.dk>
11486         * src/expr.c (expr_eval_real): Improve precision of %.
11488 2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
11490         * src/sheet-control-gui.c (scg_comment_display) : use
11491           textview widget
11493 2002-03-05  Morten Welinder  <terra@diku.dk>
11495         * src/workbook-edit.c (auto_complete_matches): Plug leak.
11497         * src/gutils.c (erfgnum, erfcgnum, yngnum): Ground work for later.
11499         * src/mathfunc.c (gpow10): Fix precision for large negative
11500         exponents.
11501         (gpow2): Fix for negative exponents.
11503 2002-03-05  Jody Goldberg <jody@gnome.org>
11505         * src/eval.c : split add/drop into distinct functions and use
11506           link/unlink consistently.
11508 2002-03-05  Morten Welinder  <terra@diku.dk>
11510         * src/validation.c (validation_eval): Make int-check saner.
11511         Fix translated string.
11513         * src/analysis-tools.c (fourier_fft_inv, fourier_fft): Improve
11514         precision.
11516         * src/mathfunc.h (M_LN2gnum, M_LN10gnum, M_PIgnum, M_PI_2gnum,
11517         M_LN2gnum, M_LN10gnum, M_SQRT2gnum): Provide high-precision
11518         constants.
11520 2002-03-05  Andreas J. Guelzow <aguelzow@taliesin.ca>
11522         * src/clipboard.c (clipboard_paste_region) : preserve comments
11523           when pasting content
11524         * src/clipboard.h : exclude comments from PASTE_DEFAULT
11525         * src/sheet-control-gui.c : Add `Add/modify comments' item to
11526           cell context menu
11527         * src/sheet.h : CLEAR_COMMENTS and CLEAR_MERGES should be distinct.
11528         * src/workbook-control-gui.c : correct spelling
11530 2002-03-05  Jody Goldberg <jody@gnome.org>
11532         * src/sheet.c (sheet_cell_remove_from_hash) : only unlink if it is
11533           linked.
11534         (sheet_cell_destroy) : simplify slightly.
11535         (cb_remove_allcells) : just destroy them, no need to remove from hash.
11536         (sheet_destroy_contents) : ditto.
11538         * src/eval.c (UNLINK_DEP) : delete.
11539         (dependent_unlink) : simplify.
11540         (dependent_unlink_sheet) : clean up and don't bother to unlink from
11541           deps list.
11543         * src/cell.c : s/CELL_BEING_ITERATED/DEPENDENT_BEING_ITERATED/
11545 2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
11547         * src/clipboard.c (clipboard_copy_range, clipboard_prepend_cell
11548           clipboard_prepend_comment) : check existing cells and all
11549           comments.
11550         * sheet-object-cell-comment.c (cell_comment_event) : handle
11551           double click by opening dialog (slightly modified patch by
11552           Wayne Schuster)
11554 2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
11556         * src/clipboard.h : PASTE_ALL_TYPES should include comments
11558 2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
11560         * src/clipboard.c (paste_cell) : paste comment
11561         (clipboard_prepend_cell) : store comment info
11562         (clipboard_copy_range) : check all cells
11563         * src/clipboard.h : add comment field to CellCopy
11564         * src/commands.c (cmd_clear_undo) : handle comments
11565         (cmd_clear_selection) : ditto
11567 2002-03-04  Andreas J. Guelzow <aguelzow@taliesin.ca>
11569         * commands.h (cmd_set_comment) : new
11570         * commands.c (cmd_set_comment_apply, set_comment_undo,
11571           cmd_set_comment_redo, cmd_set_comment_finalize, cmd_set_comment) :
11572           new
11574 2002-03-04  Morten Welinder  <terra@diku.dk>
11576         * src/mathfunc.c (dexp): Add give_log arg and use R's version.
11577         All callers changed.
11579         * src/analysis-tools.c (destroy_data_set_list): Plug leak.
11581 2002-03-04  Jody Goldberg <jody@gnome.org>
11583         * src/sheet.c (sheet_cell_insert) : make it clear that this routine
11584           does not link the expression or register the dependencies.
11585         (sheet_cell_remove_from_hash) : document state changes and use
11586           dependend_unlink.
11587         (cb_remove_allcells) : cell_destroy will unlink.
11588         (cb_collect_cell) : be clear that the results are unlinked.
11589         (colrow_move) : some docs.
11590         (sheet_move_range) : simplify now that the collected cells are
11591           unlinked rather than just having their depends dropped.
11593         * src/eval.c (cell_add_dependencies) : delete.
11594         (cell_drop_dependencies) : delete.
11596         * src/style.c (style_font_new_simple) : If we can't find a font check
11597           a map to see if we know of something similar.
11598         (get_substitute_font) : moved here from the XL importer.
11600 2002-03-03  Andreas J. Guelzow <aguelzow@taliesin.ca>
11602         * src/commands.c (cmd_rename_sheet,...) : now a wrapper around
11603           cmd_reorganize_sheets.
11604         (cmd_reorganize_sheets_apply) : moved into workbook.c as
11605           workbook_sheet_reorganize
11606         (cmd_reorganize_sheets,...) : implement sheet renaming
11607         * src/commands.h : add an argument to cmd_rename_sheet
11608         * src/workbook-control-gui.c (cb_sheet_label_changed) :
11609           change invocation of cmd_rename_sheet
11610         * src/workbook.c (workbook_sheet_rename) replaced by
11611           workbook_sheet_reorganize
11612         * src/workbook.h: ditto
11614 2002-03-02  Jody Goldberg <jody@gnome.org>
11616         * src/eval.c (handle_tree_deps) : Use hooks for per dependent
11617           link/unlink for each function.
11619 2002-03-02  Jody Goldberg <jody@gnome.org>
11621         * src/global-gnome-font.c : Use string chunk.
11623         * src/sheet-object-cell-comment.c :  This is a GObject now.
11624         (comment_get_points) : fix x offset.
11626 2002-03-01  Morten Welinder  <terra@diku.dk>
11628         * src/workbook-control-gui.c: Add dots to "Sort" entry.
11630         * src/complex.h (complex_scale_real): New function.
11632         * src/analysis-tools.c (fourier_fft, fourier_fft_inv): Clean using
11633         existing complex math routines.
11635 2002-03-01  Andreas J. Guelzow <aguelzow@taliesin.ca>
11637         * src/commands.c (cmd_reorganize_sheets_finalize) : fix typo
11639 2002-03-01  Morten Welinder  <terra@diku.dk>
11641         * src/commands.c (cmd_reorganize_free_names): Remove.
11642         (cmd_reorganize_sheets_finalize): Simplify.
11644         * src/analysis-tools.c (regression_tool): Fix P values.
11646         * src/regression.c (general_linear_regression): Fix ->var in the
11647         trivial n==xdim case.
11649 2002-02-29  Andreas J. Guelzow <aguelzow@taliesin.ca>
11651         * commands.h (cmd_reorganize_sheets) : new
11652         * commands.c : implement cmd_reorganize_sheets
11654 2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
11656         * src/workbook-control-gui.c (wbcg_validation_msg) : delete
11657           dialog and fix sense of test
11659 2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
11661         * src/gui-util.[hc] (entry_to_float_with_format_default) : new
11663 2002-02-28  Morten Welinder  <terra@diku.dk>
11665         * src/regression.c (linear_solve): Move rescaling from here...
11666         (LUPDecomp): ...to here so we save a copy.
11667         (general_linear_regression): Allocate the permutation matrix with
11668         the proper size.  (The old size was too big, so no-one really got
11669         hurt.)
11671         * src/rangefunc.c (range_minabs, range_maxabs): New functions.
11673         * src/regression.c (rescale): Don't include "b" in determining the
11674         scale.  Use range_maxabs.
11676 2002-02-28  Morten Welinder  <terra@diku.dk>
11678         * src/regression.c (general_linear_regression): If the inverse has
11679         negative elements in the diagonal, assume near singularity.
11680         (linear_solve): Rescale matrix and target.  Rip out the error
11681         correction attempt.
11682         (rescale): New function.
11683         (LUPDecomp, backsolve): Remove col/row confusion.
11685 2002-02-28  Jody Goldberg <jody@gnome.org>
11687         * src/workbook-control-gui.c (workbook_control_gui_init) : fix
11688           reordering of ins col/row in non-bonobo case.
11690 2002-02-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
11692         * src/workbook-control-gui.c (delete_sheet_if_possible) :
11693           use gnumeric_dialog_question_yes_no
11695 2002-02-28  Jody Goldberg <jody@gnome.org>
11697         * src/expr-name.c (expr_name_set_expr) : always relink.
11699         * src/eval.c (handle_tree_deps) : ignore inactive names.
11701 2002-02-27  Jody Goldberg <jody@gnome.org>
11703         * src/global-gnome-font.c (global_gnome_font_init) : fix leak.
11705         * src/style.c (style_font_new_simple) : fix leak.
11707 2002-02-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
11709         * src/gui-util.h (entry_to_float_with_format) : new
11710         * src/gui-util.c (entry_to_float_with_format) : add format to
11711           entry_to_float
11712         (entry_to_float) : wrapper around entry_to_float_with_format
11714 2002-02-27  Morten Welinder  <terra@diku.dk>
11716         * src/analysis-tools.c: Use new lower-tail flag for R's q*
11717         routines.
11718         (new_data_set): Plug leak.
11720 2002-02-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
11722         * src/value.c (value_get_as_string) : case VALUE_CELLRANGE can be
11723           for absolute and A1-rel references. Use global_range_name.
11725 2002-02-27  Morten Welinder  <terra@diku.dk>
11727         * src/analysis-tools.c (ztest_tool): Fix problem from R upgrade.
11728         (regression_tool): Simplify.
11730         * src/regression.c (linear_solve): Attempt error correction in the
11731         near-singular case.
11732         (linear_regression, exponential_regression): Change return type to
11733         an enum.  All callers changed.
11734         (LUPDecomp): Attempt to detect near-singularity.
11736 2002-02-26  Morten Welinder  <terra@diku.dk>
11738         * src/regression.c (linear_regression, exponential_regression):
11739         Add safety check.
11741         * plugins/*/*.xml.in: just use the .la file for module_file.
11743         * plugins/*/Makefile.am: don't hack the .xml file any more.
11745         * src/mathfunc.c: Make various helper functions static.
11747         * src/format-template.h: prototype the template member functions.
11749 2002-02-26  Jody Goldberg <jody@gnome.org>
11751         * src/xml-io.c (xml_read_cell) : xmlNodeGetContent always returns a
11752           value now.  That simplifies comments and complicates content.
11753         (xml_cellregion_read) : ditto.
11755 2002-02-25  Jody Goldberg <jody@gnome.org>
11757         * src/workbook-control-gui.c (wbcg_progress_message_set) : port to
11758           gnome2.
11760         * src/print-cell.c (print_show_iso8859_1) : delete.
11762         * src/gui-file.c (gui_file_open) : someportability tweaks.
11764         * icons/Makefile.am : move the icons here.
11766         * src/history.c (history_menu_item_create) : constness.
11767         * src/formats.c (currency_date_format_init) : constness.
11768         * src/solver.h : some constness.
11769         * src/workbook-control-gui.c (cb_select_auto_expr) : constness.
11770         (workbook_control_gui_init) : some fixes for the bonobo build.
11772 2002-02-25  Morten Welinder  <terra@diku.dk>
11774         * src/format-template.h: prototype the template member functions.
11776         * src/mathfunc.c: Switch to R-1.4.0 sources.  Deal with signature
11777         changes everywhere.
11779 2002-02-25  Morten Welinder  <terra@diku.dk>
11781         * configure.in: Test if we must prototype strtold.  Test for
11782         log1pl.
11784 2002-02-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
11786         * src/sheet-object-widget.c (cb_scrollbar_set_focus) : remove code
11787           now held in wbcg_edit_attach_guru
11788         (cb_checkbox_set_focus) : ditto
11789         (sheet_widget_scrollbar_user_config) : rearrange signal callbacks
11790         (sheet_widget_checkbox_user_config) : ditto
11792 2002-02-25  Morten Welinder  <terra@diku.dk>
11794         * src/xml-io.c (xml_cellregion_write) : specify the encoding, and
11795           enable formatting.
11796         (gnumeric_xml_write_workbook) : ditto.
11798 2002-02-25  Morten Welinder  <terra@diku.dk>
11800         * src/mathfunc.c (random_01): Reduce the number of system calls
11801         and get more precision for the general gnum_float case.
11803         * src/mathfunc.c (random_*): use gnum_float, not double.  (Since
11804         many underlying functions are still double-based, not all these
11805         will have precision beyond double.)
11807         * src/solver-lp.c: Constify.  Plug a few leaks.
11809         * src/sheet.h (struct _Sheet): Make solver_parameters a pointer.
11810         Deal with this everywhere.
11812 2002-02-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
11814         * src/analysis-tools.h : delete tool_set_focus
11815         * src/workbook-edit.c (guru_set_focus) : new, formerly tool_set_focus
11816           in src/dialogs/dialog-analysis-tools.c
11817         (wbcg_edit_attach_guru) : attach guru_set_focus to set_focus widget
11819 2002-02-25  Morten Welinder  <terra@diku.dk>
11821         * configure.in (atan2l, sinhl, coshl, tanhl, asinhl, acoshl,
11822         atanhl, erfl, erfcl, ynl, isnanl, finitel, hypotl): Add checks for these.
11823         * src/numbers.h: supply right version of above.  Use everywhere.
11825 2002-02-25  Jon K Hellan  <hellan@acm.org>
11827         * src/sheet-object-image.h: Declare typedef ObjectImage.
11829         * src/sheet-object-image.c (struct _SheetObjectImage): Add
11830         cropping parameters.
11831         (sheet_object_image_new): Initialize cropping parameters.
11832         (sheet_object_image_set_crop): New function. Set cropping
11833         parameters.
11834         (soi_get_cropped_pixbuf): New function. Get the cropped image from
11835         pixbuf.
11836         (soi_get_pixbuf): Do cropping by calling soi_get_cropped_pixbuf.
11837         (sheet_object_image_init): Initialize cropping parameters.
11839 2002-02-24  Almer S. Tigelaar  <almer@gnome.org>
11841         http://bugzilla.gnome.org/show_bug.cgi?id=72416
11842         http://bugzilla.gnome.org/show_bug.cgi?id=71783
11843         * src/stf-export.c (stf_export_cell):
11844         Honor the 'never' quote setting and fix a subtle
11845         bug that caused the quoting character always be "
11847 2002-02-22  Morten Welinder  <terra@diku.dk>
11849         * src/numbers.h (floorgnum, ceilgnum, powgnum, expgnum, loggnum,
11850         log10gnum, singnum, cosgnum, tangnum, asingnum, acosgnum,
11851         atangnum): Supply these.  Use everywhere.
11853         * configure.in: Check for the above.
11855 2002-02-22  Morten Welinder  <terra@diku.dk>
11857         * configure.in: Check for ldexpl and frexpl.
11859         * src/mathfunc.c (gpow2): New function.
11860         (gnumeric_add_epsilon, gnumeric_sub_epsilon, gnumeric_fake_floor,
11861         gnumeric_fake_ceil, gnumeric_fake_round, gnumeric_fake_trunc):
11862         Make these gnum_float typed.
11864         * src/numbers.h (frexpgnum, ldexpgnum): New stuff.
11866 2002-02-21  Morten Welinder  <terra@diku.dk>
11868         * src/numbers.h: Define prototypes for strtognum, modfgnum, and
11869         gnumabs here when needed.
11871         * src/workbook-control-gui.c (wbcg_validation_msg): Constify.
11873         * src/cell.c (cell_is_zero): Use gnum_float.
11875         * src/regression.c (LUPDecomp): Use gnumabs.
11876         * src/solver-lp.c (solver_answer_report): Ditto.
11877         * src/value.c (value_diff): Ditto.
11878         * src/goal-seek.c: Ditto.
11879         * src/rangefunc.c (range_avedev): Ditto.
11881         * src/validation.c (validation_eval): Use gnum_float, modfgnum,
11882         and gnumabs.
11884         * src/numbers.h (GNUM_MANT_DIG, GNUM_MAX_EXP, gnumabs): New stuff.
11886 2002-02-21  Morten Welinder <terra@diku.dk>
11888         * src/solver-lp.c (callback): Fix formats.
11890         * src/plugin-loader-module.h (ModulePluginFunctionInfo): Constify.
11891         * src/plugin-loader-module.c (gnumeric_plugin_loader_module_func_get_full_function_info): Constify.
11892         * src/func.c (function_def_get_full_info_if_needed): Constify.
11894 2002-02-20  Jody Goldberg <jody@gnome.org>
11896         * src/workbook.h : some house cleaning.
11898         * src/workbook.c (workbook_is_pristine) : remove stuf for
11899           external_dependents.  No use having fogotten stubs hanging around.
11901         * src/workbook-control-gui.c (cb_insert_component) : look for
11902           ControlFactories.
11903         (cb_insert_shaped_component) : look for CanvasComponentFactories.
11905         * src/commands.h : remove include for gtkobject.
11907         * idl/GNOME_Gnumeric_Graph.idl : We a ControlFactory now, not an
11908           Embeddable.
11910 2002-02-20  Morten Welinder  <terra@diku.dk>
11912         * src/mathfunc.c (display): Fix format.
11913         * src/analysis-tools.c (confidence_level): Ditto.
11914         (regression_tool): Ditto.
11915         * src/format.c (fmt_general_int): Ditto.
11917         * configure.in (set_mode_warnings): Add -Wformat also.
11919 2002-02-20  Morten Welinder  <terra@diku.dk>
11921         * src/func.c (fn_def_new, function_add_args, function_add_nodes):
11922         Constify.
11924 2002-02-20  Morten Welinder  <terra@diku.dk>
11926         * src/parser.y (yyerror): Constify.
11928         * src/xml-io.c (xml_node_set_print_unit): Constify.
11929         (xml_read_print_repeat_range): Constify.
11931         * src/summary.c (summary_item_name): Constify.
11933         * src/print-info.c (predefined_formats, render_ops): Constify.
11935 2002-02-20  Andreas J. Guelzow <aguelzow@taliesin.ca>
11937         * src/expr-name.c (builtins): Constify.
11939         * src/complex.c (complex_to_string): Constify.
11941         * src/commands.c (cmd_set_text): Constify.
11942         (cmd_area_set_text): Constify.
11944         * src/mstyle.c (mstyle_to_string): Missing g_strdup added for
11945         sanity check, just in case.
11946         * src/summary.c (summary_item_as_text): Ditto.
11947         * src/value.c (value_get_as_string): Ditto.
11949         * configure.in (CFLAGS): Add -Wwrite-strings, if possible.
11951         * src/gui-util.c (gnumeric_dialog_raise_if_exists): Constify.
11953 2002-02-20  Andreas J. Guelzow <aguelzow@taliesin.ca>
11955         * src/analysis-tools.c (regression_tool) : use only values
11956           from extra_stat (renamed to regression_stat)
11957         * src/regression.c (general_linear_regression) : calculate more
11958           regression_stat
11959         (regression_stat_new) : new
11960         (regression_stat_destroy) : new
11961         * src/regression.h : add fields to regression_stat_t and add
11962           declarations of regression_stat_new and regression_stat_destroy
11964 2002-02-20  Morten Welinder  <terra@diku.dk>
11966         * src/format.c (format_value): Missing g_strdup added for sanity
11967         check, just in case.
11969         * src/datetime.c (coup_cd): Cleanup using
11970         g_date_get_days_in_month.
11972 2002-02-19  Morten Welinder  <terra@diku.dk>
11974         * src/numbers.h (modfgnum, strtgnum, GNUM_FORMAT_[eEfg],
11975         GNUM_DIG): New stuff.
11977         * .../*.[cy]: All relevant strtod changed to strtognum; modf to
11978         modfgnum; DBL_DIG to GNUM_DIG; formats changed to use
11979         GNUM_FORMAT_...
11981         * src/gutils.c (strtognum): If needed, define a version here.
11983         * src/complex.c (complex_to_string): Use right format for
11984         imaginary part.
11986         * configure.in: Add support for --with-long-double.
11988         * acconfig.h: Add WITH_LONG_DOUBLE.
11990 2002-02-19  Jody Goldberg <jody@gnome.org>
11992         http://bugzilla.gnome.org/show_bug.cgi?id=69362
11993         * src/auto-correct.c (autocorrect_tool) : only upper case things if
11994           they are at the start of a word.
11996 2002-02-19  Morten Welinder  <terra@diku.dk>
11998         * src/format.c: Use gnum_float instead of double.
12000         * src/mathfunc.c (random_01): Use /dev/urandom when available.
12002         * src/sheet-autofill.c (autofill_cell): Use gnum_float instead of
12003         double.
12004         * src/expr.c (expr_eval_real): Ditto.
12005         * src/datetime.c (datetime_timet_to_serial_raw): Ditto.
12007         * src/format.c (format_compile): Fix isdigit usage.
12009         * src/value.c (value_diff): Return a gnum_float, not a double.
12011 2002-02-19  Jody Goldberg <jody@gnome.org>
12013         * src/global-gnome-font.c (global_gnome_font_init) : get font list
12014           from pango.
12015         (global_gnome_font_shutdown) : and free it here.
12017 2002-02-18  Jody Goldberg <jody@gnome.org>
12019         * configure.in  : post release bump.
12021 2002-02-18  Jody Goldberg <jody@gnome.org>
12023         * Release 1.1.0
12025 2002-02-18  Jody Goldberg <jody@gnome.org>
12027         * src/workbook-control-gui.c (cb_scroll_wheel_support) : fix
12028           scrollwheel support.
12029         (workbook_control_gui_init) : use the new 'scroll-event' handler.
12031 2002-02-17  Jody Goldberg <jody@gnome.org>
12033         * plugins/excel/ms-escher.c (ms_escher_read_OPT) : add support for
12034           blip cropping.
12036 2002-02-16  Jody Goldberg <jody@gnome.org>
12038         * src/sheet-object-image.c (soi_get_pixbuf) : move things here.
12039         (sheet_object_image_new_view) : and use it here.
12040         (sheet_object_image_print) : and here.
12042 2002-02-15  Jody Goldberg <jody@gnome.org>
12044         * src/sheet-object-image.{ch} : new.
12046         * src/sheet-object.c (sheet_object_new_view) : use a weak_ref.
12048         * src/sheet-control-gui.c (scg_object_register) : more safety
12049           and use a weak_ref.
12051         * src/sheet-object-graphic.c : More GObject-ification.
12053 2002-02-15  Morten Welinder  <terra@diku.dk>
12055         * src/regression.c (LUPDecomp): Use fabs, not abs.
12056         * src/validation.c (validation_eval): Ditto.
12058 2002-02-15  Morten Welinder  <terra@diku.dk>
12060         * src/regression.c (general_linear_regression): Cleanup using
12061         range functions.
12063 2002-02-15  Jody Goldberg <jody@gnome.org>
12065         * src/widgets/gnumeric-combo-text.c (gnm_combo_text_destroy) : more
12066           g_signal-ification.  g_signal_handlers_disconnect_by_func just hides
12067           the problem.  The real issue is that we are disconnecting twice.
12069         * src/workbook.c (workbook_set_saveinfo) : use a weak_ref.
12071 2002-02-15  Jody Goldberg <jody@gnome.org>
12073         * src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
12074           canvas bug is fixed.
12076         * src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
12077         (cb_vscrollbar_adjust_bounds) : new.
12079         * src/gui-util.c (gtk_button_stock_alignment_set) : new.
12080         (gnumeric_init_help_button) : new.
12082         * src/gnumeric-canvas.h : Move declaration of
12083           GnumericCanvasSlideHandler here.
12085         * src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
12086           not the GnumericExprEntry wrapper.
12087         (gnm_canvas_key_mode_sheet) : ditto.
12089         * src/formats.c (cell_format_classify) : handle general.
12091         * src/file-priv.h : Inherit from GObject.
12093         * src/complete-sheet.c (complete_sheet_finalize) : call class_peek
12094           here to avoid potential reference problems.
12096         * src/commands.c (cmd_set_text) : doh!  fix multi-line text.
12097         (cmd_autoformat) : const.
12099         * src/cell.c (cell_relocate) : const.
12100         * src/clipboard.c (paste_cell_with_operation) : const.
12101         (paste_cell) : ditto.
12103         * src/application.c (application_init) : add jimmac's expr-entry icon.
12105         * src/Makefile.am : distribute the marshaller.list
12107         s/GtkType/GType/
12108         s/GtkSignalFunc/GCallback/
12109         s/gtk_signal_connect/g_signal_connect/  + reformating.
12110         s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
12111         s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
12112         s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
12113         s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
12115 2002-02-11  Jody Goldberg <jody@gnome.org>
12117         * src/stf.c (stf_init) : Make the names of the text import/export
12118           clearer.
12120 2002-02-12  Morten Welinder  <terra@diku.dk>
12122         * src/io-context.c (value_io_progress_update): Correct assertion.
12124         * src/io-context.c (file_io_progress_update,
12125         memory_io_progress_update, value_io_progress_update,
12126         count_io_progress_update, workbook_io_progress_update): Use test,
12127         not assignment.
12129         * src/stf-parse.c (trim_spaces_inplace): Fix isspace usage.
12130         (stf_parse_is_valid_data): Ditto.
12131         * src/sheet.c (sheet_name_quote): Ditto.
12133 2002-02-11  Jon K Hellan  <hellan@acm.org>
12135         Support per-sheet grid color. Needed for correct XL import.
12137         * src/style-color.[ch] (color_equal): Rename to style_color_equal
12138         and export.
12140         * src/style-border.[ch] (style_border_none_set_color): New
12141         function. Update the grid color (color of style border none) to
12142         the given color.
12144         * src/sheet-style.[ch] (sheet_style_update_grid_color): New
12145         function. Update the grid color to fit the given sheet.
12147         * src/item-grid.c (item_grid_draw): Call
12148         sheet_style_update_grid_color before rendering.
12150         * src/print-cell.c (print_cell_range): Ditto
12152         * src/preview-grid.c (preview_grid_draw): Call
12153         style_border_none_update_color before rendering.
12155 2002-02-11  Jody Goldberg <jody@gnome.org>
12157         * src/item-bar.c (item_bar_realize) : Use the standard cursor.
12159 2002-02-08  Jody Goldberg <jody@gnome.org>
12161         * src/workbook-edit.c (wbcg_get_entry) : Use
12162           gnumeric_expr_entry_get_entry.
12163         (wbcg_edit_attach_guru) : wbcg_get_entry.
12164         (wbcg_edit_detach_guru) : ditto.
12166         * src/workbook-control-gui.c : include datetime.h
12167         (workbook_setup_edit_area) : pack the ecpr-entry, not the contained
12168         entry.
12169         (wbcg_validation_msg) : warning suppression.
12171         * src/validation.c (validation_eval) : suppress warning.
12173         * src/sheet-autofill.c (str_contains) : delete.
12175         * src/number-match.c (format_match) : remove unused variable.
12177         * src/item-edit.c (item_edit_set_arg) : wbcg_get_entry signature change.
12179         * src/format-template.c (format_template_member_set_row_info) : delete.
12180         (format_template_member_set_col_info) : ditto.
12182         * src/commands.c (cmd_autoformat) : revert previous attempt at
12183           constness.  It seems the templates are also used as acumulators
12184           during application.  I don't think it is a great design choice,
12185           but we'll live with it.
12187         * src/application.c (application_init) : add Jacub's expr entry.
12189 2002-02-10  Chema Celorio  <chema@celorio.com>
12191         * configure.in: remove GNOME_COMMON_INIT
12192         [http://developer.gnome.org/dotplan/porting/ar01s05.html]
12194 2002-02-08  Jon K Hellan  <hellan@acm.org>
12196         * src/mstyle.c (link_border_colors): Return from the right place.
12198         * src/style-color.c (style_color_new_uninterned): Create with
12199         refcount 1.
12200         (style_color_new): Only increment refcount if using cached color.
12202         * src/sheet.c (sheet_duplicate): Clone auto pattern color
12204         * src/sheet-style.c (sheet_style_init): Move auto_pattern_color
12205         initialization forward. sheet_style_get_auto_pattern_color is
12206         called from sheet_style_find below.
12207         (sheet_style_set_auto_pattern_color): Tag it as an auto
12208         color. Unref the input color.
12210         * src/sheet-style.[ch]: (sheet_style_get_auto_pattern_color): constify.
12212         * src/mstyle.c (link_pattern_color): New function.  Replace auto
12213         pattern color in style with sheet's auto pattern color.
12214         (link_border_colors): New function. Replace auto border colors in
12215         style with sheet's auto pattern color.
12216         (mstyle_link_sheet): Use target sheet's auto pattern color by
12217         calling link_xxxx_color functions.
12218         (mstyle_set_border): Fix typo.
12220 2002-02-07  Andreas J. Guelzow <aguelzow@taliesin.ca>
12222         * src/analysis-tools.c (anova_single_factor_tool) : be more
12223           careful with precision.
12225 2002-02-07  Andreas J. Guelzow <aguelzow@taliesin.ca>
12227         * src/rangefunc.c (range_sum) : improve precision through 2 pass
12228           algorithm
12229         (range_sumsq) : ditto
12231 2002-02-06  Jody Goldberg <jody@gnome.org>
12233         * src/auto-format.c (auto_style_format_suggest) : it is now the
12234           primitive.
12236 2002-02-06  Michael Meeks  <michael@ximian.com>
12238         * src/workbook.c (workbook_bonobo_setup): don't
12239         setup the item container.
12241         * src/gnumeric-graph.c: porting action.
12242         (bonobo_activation_exception_id): kill.
12244         * src/corba-args.c (gnumeric_arg_parse): upd.
12246         * src/bonobo-io.c: porting action.
12248         * src/sheet-object-bonobo.c: porting action.
12250 2002-02-06  Jody Goldberg <jody@gnome.org>
12252         * src/sheet-autofill.c (autofill_create_fill_items) : changes to the
12253         classification interface.  It will continue to evolve.
12255         * src/formats.c (cell_format_classify) : change the signature.  In the
12256           future this should really be split.  This routine is
12257           1) stupid
12258           2) wrong
12259           It is really only useful in the context of the format dialog.
12260           however, our desire to call it elsewhere indicates what the new
12261           format engine should make easiliy accessible.
12263         * src/expr.c (expr_eval_real) : quick and easy support for autoformat
12264           style formating for percent operator.  Just a quick test to see how
12265           hard it would be, and it wasn't.
12267         * src/auto-format.c : Convert to StyleFormat.  Nothing actually uses
12268           this anymore but I have not merged its logic into the eval structure
12269           yet.
12271         * src/format-template.c (format_template_check_valid) : warning
12272           suppression.
12274         * src/format.c (style_format_general) : new.
12275         (style_format_default_date) : new.
12276         (style_format_default_time) : new.
12277         (style_format_default_percentage) : new.
12278         (style_format_default_money) : new.
12280         * src/cell.c (cell_get_format) : finish the conversion.
12282 2002-02-05  Jon K Hellan  <hellan@acm.org>
12284         * src/style-color.c (style_color_new_uninterned): New
12285         function. Factored out of style_color_new. Creates color
12286         unconditionally, without using the hash table.
12287         (style_color_new): Factor out style_color_new_uninterned.
12288         (style_color_new_i8): New function. Create a style color from 8
12289         bit rgb values by cloning to 16 bits.
12290         (style_color_auto_font): New function. Returns an uninterned black
12291         to represent Excel auto font color.
12292         (style_color_auto_back): New function. Returns an uninterned white
12293         to represent Excel auto background color.
12294         (style_color_auto_pattern): New function. Returns an uninterned black
12295         to represent Excel auto pattern color.
12296         (color_equal): Include is_auto flag in comparison.
12297         (color_hash): Include is_auto flag in hash function.
12299         * src/style-color.h (style_color_new_i8, style_color_auto_font,
12300         style_color_auto_back, style_color_auto_pattern): Declare
12302         * src/sheet-style.c (struct _SheetStyleData): Add
12303         auto_pattern_color.
12304         (sheet_style_init): Initialize auto_pattern_color.
12305         (sheet_style_shutdown): Unref auto_pattern_color.
12306         (sheet_style_set_auto_pattern_color): New function. Set the auto
12307         pattern color for this sheet.
12308         (sheet_style_get_auto_pattern_color): New function. Get the auto
12309         pattern color for this sheet.
12311         * src/sheet-style.h (sheet_style_set_auto_pattern_color,
12312         sheet_style_get_auto_pattern_color): Declare.
12314 2002-02-03  Jody Goldberg <jody@gnome.org>
12316         * src/workbook-control-gui.c (cb_insert_current_date) : don't actually
12317           store the value, just start editing with it.
12318         (cb_insert_current_time) : ditto.
12320 2002-02-03  Jody Goldberg <jody@gnome.org>
12322         * src/value.c (value_new_*) : init Value*::fmt
12323         (value_duplicate) : ref the fmt too.
12324         (value_set_fmt) : new.
12326         * src/cell.c (cell_cleanout) : no more format.
12327         (cell_copy) : ditto.
12328         (cell_set_text) : ditto.
12329         (cell_set_expr_internal) : ditto.
12330         (cell_set_expr_unsafe) : ditto.
12331         (cell_get_format) : ditto.
12333         Change all callers.
12334         * src/sheet.c (sheet_cell_set_value) : remove format assingment.
12335         * src/cell.c (cell_set_expr_and_value) : remove format assignment.
12336         (cell_assign_value) : ditto.
12337         (cell_set_value) : ditto.
12338         (cell_set_expr) : ditto.
12339         * src/parser.y (expr_parse_str) : remove arg to return the suggested
12340           format.  That will be handled at run time.
12341         * src/number-match.c (format_match) : remove arg to return the parse
12342           formula.  Store it in the value instead.
12344 2002-02-02  Jody Goldberg <jody@gnome.org>
12346         * src/main.c (main) : disable the removal of Shift as an accelerator
12347           fixes the double movement in treeviews strangeness.
12349         * src/workbook-control-gui.c : reorganize the insert menu.
12350         * src/GNOME_Gnumeric.xml : ditto.
12352 2002-02-01  Jody Goldberg <jody@gnome.org>
12354         * src/xml-io-autoft.c : port to libxml2 and begin merging into
12355         * src/format-template.c : here.
12357 2002-01-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
12359         * src/gui-util.c (gnumeric_dialog_question_yes_no) : port to gnome2
12361 2002-02-01  Jody Goldberg <jody@gnome.org>
12363         * configure.in : cleanup the includes a bit and make the libole2
12364           requirement specific to the XL plugin.  Tidy up the gda, and gb
12365           tests to be consistent and more informative.
12367         * src/main.c : remove ole debug flag.
12369         * src/gnumeric-graph.c (gnm_graph_new) : return a GObject
12370           makes it easier to handle NULL.
12372 2002-01-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
12374         * src/analysis-tools.h : add `warning' to GENERIC_TOOL_STATE
12375           and some clean-up
12377 2002-01-31  Jody Goldberg <jody@gnome.org>
12379         * src/workbook-control-gui.c (wbcg_focus_cur_scg) : warning
12380           suppression.
12381         (sheet_control_gui_new) : enable partial scrollbar support.
12383         * src/workbook-control.c (wb_control_parse_and_jump) : make defined
12384           names absolute.
12386 2002-01-30  Jody Goldberg <jody@gnome.org>
12388         * src/dialogs/dialog-autoformat.c (templates_load) : changes to
12389           category_group_get_templates_list.
12391         * src/xml-io-autoft.c (gnumeric_xml_write_format_template) : take a
12392           context not a control to clarify things.
12393         (gnumeric_xml_read_format_template) : ditto.
12395         * src/workbook.c (workbook_persist_file_save) : changes to
12396           wb_view_save_as.
12398         * src/io-context.c (io_context_destroy) : impl is a command context now.
12399         (gnumeric_io_context_new) : weaken requirements so that all we need is
12400           a command context.  Not strictly necessary, but makes it less likely
12401           that people will get confused.
12403         * src/workbook-view.c (wb_view_save_as) : Take a command context not a
12404           workbook control to avoid confusing what we are saving.
12405         (wb_view_save) : ditto.
12406         (wb_view_selection_desc) : Implement using an explicit control.
12407         (wb_view_open_custom) : add a missing precondition.
12408         * src/gui-file.c (do_save_as) : changes to wb_view_save_as.
12409         (gui_file_save_to_stream) :  changes to gnumeric_io_context_new.
12411         * src/file-autoft.c (category_get_templates_list) : take a command
12412         context, not a workbookcontrol.
12413         (category_group_get_templates_list) : ditto.
12414         * src/format-template.c (format_template_new) : ditto.
12415         (format_template_new_from_file) : ditto.
12417 2002-01-31  Andreas J. Guelzow <aguelzow@taliesin.ca>
12419         * src/analysis-tools.h : include type definitions and function
12420           prototypes previously in src/dialogs/dialog-analysis-tools.c
12421         * src/analysis-tools.c (autofit_columns) : make non-static
12422         * src/func-util.h (parse_database_criteria) : new
12424 2002-01-30  Jody Goldberg <jody@gnome.org>
12426         * src/application.c : merge in the new object icons from jimmac.
12427         * src/pixmaps/Makefile.am : ditto.
12428         * src/workbook-control-gui.c : ditto.
12429         * src/GNOME_Gnumeric.xml : ditto.
12430         s/^/Object/
12431         s/Rect/Rectangle/
12432         s/Oval/Ellipse/
12433         s/Checkbutton/Checkbox/
12435         * src/gui-util.c (gnumeric_error_info_dialog_show) : center error
12436           dialog on the mouse.
12438 2002-01-29  Jody Goldberg <jody@gnome.org>
12440         * src/workbook-control-gui.c (cb_notebook_switch_page) : fix changing
12441           sheets.
12443 2002-01-29  Jody Goldberg <jody@gnome.org>
12445         * src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
12446           hard code relief.
12447         * src/workbook-control-gui.c (workbook_create_standard_toolbar) :
12448           ditto.
12450 2002-01-29  Andreas J. Guelzow <aguelzow@taliesin.ca>
12452         * src/workbook-control-gui.c (sheet_action_rename_sheet) : move most
12453           code into dialog_sheet_name and friends
12454         (cb_sheet_change_name) : ditto, also rename to cb_sheet_name
12456 2002-01-28 Joshua R. Odom <jrodom@stic.net>
12458         * src/application.c : clean up the file names to match the code.
12459         * src/pixmaps/Makefile.am : ditto.
12461 2002-01-28  Jody Goldberg <jody@gnome.org>
12463         * src/workbook.c (workbook_sheet_move) : flag if the move did
12464           anything.
12466         * src/workbook-object-toolbar.c :  adjust to the new creation format.
12468         * src/workbook-edit.c (wbcg_edit_has_guru) : return the actual guru.
12470         * src/workbook-control-gui.c : Explicitly use the STOCK items rather
12471           than just the stock icon names.  This enables the accelerators too.
12473         * src/sheet-object-widget.c : cleanup.
12474           Use _init functions, no need to create a silly _new wrapper that calls
12475           construct.  Remove unused Sheet arguments.
12477         * src/gnumeric-canvas.c (gnm_canvas_guru_key) : new.
12478         (gnm_canvas_key_mode_sheet) : be more careful about what how to handle
12479           keys when there is a guru up.
12481         * src/sheet-object-widget.c (sheet_widget_checkbox_user_config) :
12482           create the table.
12484 2002-01-27  Jody Goldberg <jody@gnome.org>
12486         * src/Makefile.am : cleanup the generated files.
12488 2002-01-28  Andreas J. Guelzow <aguelzow@taliesin.ca>
12490         * src/consolidate.c (consolidate_set_destination) : accept
12491           value instead of range
12492         (consolidate_add_source) : ditto
12493         * src/consolidate.h (consolidate_set_destination) : change
12494           parameters
12495         (consolidate_add_source) : ditto
12497 2002-01-27  Seth Nickell  <snickell@stanford.edu>
12499         * Makefile.am:
12501         Install .desktop file into prefix/share/applications,
12502         the new location for .desktop files in GNOME 2.
12504         * gnumeric.desktop.in:
12506         Add appropriate categories fields.
12508         Add a functional description to match the GNOME 2
12509         HIG.
12511 2002-01-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
12513         * src/gui_util.c (gnumeric_destroy_dialog) : new callback
12514         (gnumeric_notice_nonmodal) : save dialog ptr in reference
12515         * src/gui_util.h (gnumeric_notice_nonmodal) : change
12516           parameters and return value
12518 2002-01-27  Jody Goldberg <jody@gnome.org>
12520         * src/workbook-control-gui.c :
12521           remove Menu_ prefix from pixmap names.
12523 2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
12525         * src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
12526           gnumeric_notice
12527         (gnumeric_dialog_run) : remove warning
12528         * src/gui-util.h (gnumeric_notice_nonmodal) : new
12530 2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
12532         * src/gui-util.c (entry_to_float) :
12533           moved here from dialogs/dialog-analysis-tools.c
12534         (entry_to_int) : ditto
12535         (float_to_entry) : ditto
12536         (int_to_entry) : ditto
12538         * src/gui-util.h (entry_to_float) new function (used to be static)
12539         (entry_to_int) : ditto
12540         (float_to_entry) : ditto
12541         (int_to_entry) : ditto
12543 2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
12545         * item-grid.c (item_grid_event) : don't scroll at end of formula
12546           range selection (http://bugzilla.gnome.org/show_bug.cgi?id=63485)
12548 2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
12550         * src/gui-util.c (gnumeric_dialog_run) : use GTK functions
12551         (gnumeric_notice) : create GTK_Message_Dialog
12552         * src/gui-util.h (gnumeric_notice) : change type of second argument
12553         * src/gui-file.c : fix all calls to gnumeric_notice
12554         * src/print.c : ditto
12555         * src/style.c : ditto
12556         * src/workbook-cmd-format.c : ditto
12557         * src/workbook-control-gui.c : ditto
12559 2002-01-25  Jody Goldberg <jody@gnome.org>
12561         * src/sheet-control-gui.c (scg_context_menu) : fix the icon names.
12563         * src/gui-util.c (gnumeric_popup_menu) : sink the menus.
12565         * src/main.c (main) : lock the encoding to be UTF-8.
12567         * src/eval.c : enable the micro hash by default.
12569         * src/expr.c (cellref_relocate) : simplify and remove the force
12570           arguments.  Flag invalidations from inside vs to inside. From takes
12571           precendence.
12572         (cellref_shift) : new.
12573         (cellrange_relocate) : simplfy and try a different tack on how to
12574           handle corners with different sets of relocation needs.
12576         * src/commands.c (cmd_paste_cut_undo) : pass NULL for the
12577           reloc_storage to disable invalidation.
12579         * src/sheet.c (sheet_move_range) : document.
12580           Make the reloc_storage optional.  If it is not specified do NOT
12581           invalidate references to the dst region that are being
12582           invalidated.  Since this routine is only used for cut redo/undo
12583           and undo really should not be invalidating we use that as a flag.
12585 2002-01-25  Jody Goldberg <jody@gnome.org>
12587         * src/Makefile.am : register the marshaller as BUILT sources.
12589 2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
12591         * src/cell.h (cell_get_render_color) : new
12592         * src/rendered-value.c (cell_get_render_color) : new
12594 2002-01-24  Andreas J. Guelzow <aguelzow@taliesin.ca>
12596         * src/ranges.h (global_range_name) : new
12597         * src/ranges.c (global_range_name) : new
12599 2002-01-24  Jody Goldberg <jody@gnome.org>
12601         * configure.in : explicitly disable guile, psiconv, and bonobo for now.
12602         Add a warning.
12604         * src/Makefile.am : Apparently the sources list is order dependent.
12605           Put the built sources at the top.
12607 2002-01-24  Rodrigo Moya <rodrigo@gnome-db.org>
12609         * configure.in: fixed libgda detection for GNOME 2.
12611 2002-01-23  Jody Goldberg <jody@gnome.org>
12613         * src/gui-util.c (gnumeric_textview_get_text) : new utility.
12614         (gnumeric_textview_set_text) : ditto.
12616         * src/history.c : tidy up a mite.
12618         * src/gui-util.c : Some initial conversions to gnome2.  Needs work.
12620         * src/gui-file.c (can_try_save_to) : Use the new glib2 file utilities.
12622         * src/gnumeric.h : remove the gnome-1.4 compatibility shims.
12624         * src/gnumeric-pane.c (gnumeric_pane_realized) : renamed to be
12625           consistent.
12627         * src/gnumeric-graph.c (bonobo_activation_exception_id) : renamed from
12628           oaf_exception_id.
12629         (gnm_graph_setup) : begin conversion to bonobo-activation.
12631         * src/gnumeric-canvas.c : disable the IM support for now.
12633         * src/formats.c (currency_symbols) : pound, yen, euro -> UTF-8.
12635         * src/format.c : no need for portability.h
12636         * src/func.c : ditto.
12638         * src/file.c (gnum_file_saver_setup) : disable mime for now.
12640         * src/command-context.c : Inherit directly from GObject.
12641         * src/commands.c : ditto.
12642         * src/complete-sheet.c : ditto.
12643         * src/complete.c : ditto.
12645         * src/application.c : convert to new stock icon management.
12647         * src/Makefile.am : remove portability.h.
12648           Add pixmaps subdir.
12649           Build marshallers.
12651         * Makefile.am : Convert to intltool.
12652         * acconfig.h : Convert to gnome2 gettext format.
12653         * .cvsignore : Convert to intltool, and remove the Conf file.
12654         * src/.cvsignore : Update.
12655         * autogen.sh : Convert to gnome2.
12656         * configure.in : Rough conversion to gnome2.  We'll need to re-enable
12657           the plugins.
12659         * idl/GNOME_Gnumeric.idl : Delete an unused interface.
12660         * idl/Makefile.am (dist) : update.
12662         * plugins/Makefile.am :  Use WITH_GUILE rather than just GUILE to be
12663           consistent.
12664         * plugins/*/Makefile.am : Convert to intltool.
12666 2002-01-22  Jody Goldberg <jody@gnome.org>
12668         * src/sheet-autofill.c (autofill_create_fill_items) : Use
12669           list_prepend, and reverse in palce of append.
12671 2001-01-22  Kevin Breit <mrproper@ximian.com>
12673         * Makefile.am: Added omf-install/
12674         * omf-install: Added directory for OMF stuff
12675         * omf-install/Makefile.am: Copied that in
12677 2002-01-22  Rodrigo Moya <rodrigo@gnome-db.org>
12679         * README:
12680         * configure.in: increased minimum libgda versions