2011-11-24 Morten Welinder * Release 0.9.0 2011-11-23 Morten Welinder * goffice/math/go-accumulator.c: New file. * goffice/math/go-rangefunc.c (go_range_devsq, go_range_sumsq) (go_range_sum, go_range_average): Base on GOAccumulator. (go_range_constant): New function. 2011-10-27 Andreas J. Guelzow * goffice/gtk/goffice-gtk.c (recent_func_log_func): new (go_gtk_file_sel_dialog): avoid gtk bug #664587 2011-11-21 Morten Welinder * goffice/utils/go-glib-extras.c (go_guess_encoding): Plug leak. 2011-11-19 Jean Brefort * goffice/graph/gog-trend-line.c (gog_trend_line_populate_editor): fixed editor build. * goffice/graph/gog-smoothed-curve.c (gog_smoothed_curve_parent_changed), (gog_smoothed_curve_class_init), (gog_smoothed_curve_init), (gog_smoothed_curve_dataset_dims), (gog_smoothed_curve_dataset_get_elem), (gog_smoothed_curve_dataset_dim_changed): fixed data management in exponential smoothing. * goffice/graph/gog-smoothed-curve.h: ditto. * plugins/smoothing/gog-exp-smooth.c (gog_exp_smooth_update), (gog_exp_smooth_class_init), (gog_exp_smooth_init): ditto. * plugins/smoothing/gog-exp-smooth.h: ditto. 2011-11-19 Jean Brefort * goffice/graph/gog-guru.ui: fixed a Gtk warning. 2011-11-16 Jody Goldberg * goffice/canvas/goc-widget.c (goc_widget_set_widget) : clear the ofbox after unref. Fixes slicer view combo. 2011-11-14 Jean Brefort * goffice/canvas/goc-component.c (goc_component_set_property): don't change the size when not needed. * goffice/component/go-component.c (go_component_get_mime_type), (editor_destroy_cb), (go_component_edit), (go_component_stop_editing): add new functions. * goffice/component/go-component.h: ditto. * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_get_bounds): ensure that 0 is in the default values axis range. [#663717] 2011-11-10 Morten Welinder * goffice/app/go-conf.h (go_conf_node_get_key_type) (go_conf_get_value_as_str, go_conf_set_value_from_str) (go_conf_get_long_desc, go_conf_get_short_desc): Delete. 2011-11-09 Jean Brefort * goffice/graph/gog-plot-impl.h: fixed macro name. * goffice/graph/gog-series-impl.h: removed the get_percent_value member. * goffice/graph/gog-series-labels.c (gog_data_label_update), (gog_series_labels_update): really implement percent as label. * goffice/graph/gog-series.c (role_series_labels_post_add), (gog_series_get_interpolation_params): remove gog_series_get_data_as_percent. * goffice/graph/gog-series.h: ditto. * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update), (_gog_plot1_5d_get_percent_value): implement percent as labels for bar/col plots. * plugins/plot_barcol/gog-1.5d.h: ditto. * plugins/plot_barcol/gog-barcol.c (gog_barcol_plot_class_init): ditto. 2011-11-09 Jean Brefort * goffice/component/go-component.c (go_component_set_font): new function. * goffice/component/go-component.h: ditto. * goffice/utils/go-image.c (go_image_finalize), (go_image_get_pixbuf): cache the pixbuf. * goffice/utils/go-image.h: ditto. 2011-11-06 Jean Brefort * configure.in: drop gconf support. * goffice/app/go-conf.c: ditto. * goffice/app/go-conf-gconf.c: ditto. 2011-11-05 Jean Brefort * goffice/utils/go-emf.c (go_emf_get_canvas): new function, (go_emf_new_from_file): fixed several issues. * goffice/utils/go-emf.h: added a new prototype. * tests/mf-demo.c (open_file), (main): use GOEmf to load the images. 2011-11-05 Jean Brefort * goffice/canvas/goc-item.c (goc_item_bounds_changed): invalidate new position (and force a bound update). [#662393] 2011-11-05 Jean Brefort * goffice/canvas/goc-polyline.c (goc_polyline_finalize), (goc_polyline_class_init): fix memory leak. [#663355] 2011-11-04 Jean Brefort * goffice/gtk/go-image-sel.ui: make the icon selector larger. * goffice/utils/go-image.c (go_image_new_from_data): add support for pixbuf, (go_image_new_for_format), (go_image_type_for_format): new functions. * goffice/utils/go-image.h: ditto. 2011-11-04 Jean Brefort * configure.in: add a test for libspectre presence. * goffice/component/go-component.c (go_component_write_xml_sax), (_go_component_start): remove obsolete GOC_PARAM_PERSISTENT. * goffice/component/go-component.h: ditto. * goffice/goffice.c (libgoffice_init): add GO_TYPE_SPECTRE. * goffice/utils/Makefile.am: add go-spectre.[c,h] * goffice/utils/go-image.c (go_image_new_from_file), (go_image_new_from_data): create images form eps if libspectre is present. * goffice/utils/go-svg.c (go_svg_get_pixbuf), (go_svg_get_scaled_pixbuf): fixed memory leak. * goffice/utils/goffice-utils.h: add GOSpectre. 2011-11-03 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_builder_new): Plug leak. * goffice/utils/go-glib-extras.c (go_hash_values): Remove. 2011-11-03 Jean Brefort * goffice/graph/gog-series.c (gog_series_populate_editor): fix interpolation widgets visibility. [#663283] * goffice/utils/go-style.c (outline_init), (line_init), (fill_init), (go_style_populate_editor): enhanced layout. 2011-11-03 Morten Welinder * goffice/utils/go-string.c (go_string_new_rich_nocopy): New function. (go_string_new_rich): Drop "copy" argument. All callers changed. * goffice/graph/gog-axis.c (map_discrete_calc_ticks): Plug leak. * goffice/utils/go-string.c (go_string_new_rich): Plug leak. 2011-10-31 Jean Brefort * goffice/graph/gog-object.c (cb_size_changed), (cb_manual_size_changed), (gog_object_populate_editor): made the manual size UI consistent. * goffice/gtk/goffice-gtk.c (go_gui_get_image_save_info): don't ask for the extension when file type is unknown. * goffice/utils/go-image.c (go_image_get_format_from_name), (go_image_new_from_data): fixed behavior with unknown format. 2011-10-30 Jean Brefort * goffice/canvas/goc-item.c (goc_item_set_operator), (goc_item_get_operator): add a cairo_operator_t member for future use. * goffice/canvas/goc-item.h: ditto. * goffice/utils/go-emf.c (go_dib_read_header), (go_dib_create_pixbuf_from_data), (go_emf_header), (go_emf_stretchdibits): import a simple image. [#653667] 2011-10-29 Jean Brefort * goffice/Makefile.am: allow the canvas in the without gtk build. * goffice/canvas/Makefile.am: ditto. * goffice/canvas/goc-arc.h: add placeholders for extensions. * goffice/canvas/goc-canvas.c: ditto. * goffice/canvas/goc-canvas.h: ditto. * goffice/canvas/goc-circle.h: ditto. * goffice/canvas/goc-component.c: ditto. * goffice/canvas/goc-ellipse.h: ditto. * goffice/canvas/goc-graph.c: ditto. * goffice/canvas/goc-graph.h: ditto. * goffice/canvas/goc-group.h: ditto. * goffice/canvas/goc-image.h: ditto. * goffice/canvas/goc-item.c: ditto. * goffice/canvas/goc-item.h: ditto. * goffice/canvas/goc-line.h: ditto. * goffice/canvas/goc-path.h: ditto. * goffice/canvas/goc-pixbuf.h: ditto. * goffice/canvas/goc-polygon.h: ditto. * goffice/canvas/goc-polyline.h: ditto. * goffice/canvas/goc-rectangle.h: ditto. * goffice/canvas/goc-styled-item.h: ditto. * goffice/canvas/goc-text.c: ditto. * goffice/canvas/goc-text.h: ditto. * goffice/canvas/goc-widget.h: ditto. * goffice/canvas/goffice-canvas.h: ditto. * goffice/component/go-component.c: remove support for windowed components. * goffice/component/go-component.h: ditto. * goffice/goffice.h: fix the without gtk build. * goffice/graph/gog-object.c: ditto. * goffice/gtk/goffice-gtk.c: ditto. * goffice/utils/go-emf.c: imported Valek's WMF parser and started an EMF parser. * goffice/utils/go-image.h: fix the without gtk build. * goffice/utils/go-pango-extras.c: ditto. * goffice/utils/go-pango-extras.h: ditto. * plugins/plot_radar/gog-radar.c: ditto. 2011-10-28 Jean Brefort * goffice/graph/goffice-graph.h: some work on manual labels size. * goffice/graph/gog-chart.c (gog_chart_get_manual_size_mode), (gog_chart_class_init): ditto. * goffice/graph/gog-label.c (gog_text_set_property), (gog_text_get_property), (gog_text_get_manual_size_mode), (gog_text_class_init), (wrap_cb), (gog_label_populate_editor): * goffice/graph/gog-label.h: ditto. * goffice/graph/gog-object-prefs.ui: ditto. * goffice/graph/gog-object.c (cb_manual_size_changed), (gog_object_populate_editor), (gog_object_class_init), (gog_object_get_manual_allocation), (gog_object_document_changed), (gog_object_get_manual_size_mode): * goffice/graph/gog-object.h: ditto. * goffice/graph/gog-view.c (gog_tool_resize_object_point), (gog_tool_resize_object_render): ditto. * goffice/utils/go-style-prefs.ui: redesigned the style prefs widget. * goffice/utils/go-style.c (go_style_set_image_preview), (outline_init), (line_init), (fill_image_init), (fill_update_visibilies), (fill_init), (go_style_populate_editor): ditto. 2011-10-28 Jean Brefort * goffice/canvas/goc-canvas.c (goc_canvas_get_bounds): fixed arguments type. * goffice/canvas/goc-canvas.h: ditto. * goffice/canvas/goc-pixbuf.c (goc_pixbuf_draw): cleaned. * goffice/graph/gog-3d-box-prefs.ui: fixed GtkGrid spacing. * goffice/graph/gog-axis-prefs.ui: ditto. * goffice/graph/gog-guru-type-selector.ui: ditto. * goffice/utils/go-emf.c (go_emf_new_from_file), (go_emf_new_from_data): return GOImage*. * goffice/utils/go-emf.h: ditto. * goffice/utils/go-image.c (go_image_new_from_data): add an argument to retrieve the type. * goffice/utils/go-image.h: ditto. * goffice/utils/go-pixbuf.c (go_pixbuf_new_from_pixbuf): return GOImage*. * goffice/utils/go-pixbuf.h: ditto. * goffice/utils/go-svg.c (go_svg_new_from_file), (go_svg_new_from_data): ditto. * goffice/utils/go-svg.h: ditto. * plugins/plot_surface/gog-xyz-prefs.ui: fixed GtkGrid spacing. 2011-10-27 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): add arg to call of go_pango_attr_superscript_new (cb_attrs_as_string): write value of sub- and superscript attributes * goffice/utils/go-pango-extras.h: publish GOPangoAttr* struct (go_pango_attr_*_new): add argument * goffice/utils/go-pango-extras.c (go_pango_translate_here): check attribute values (go_pango_attr_subscript_copy): copy attribute value (go_pango_attr_superscript_copy): copy attribute value (go_pango_attr_compare): replace with go_pango_attr_*_compare (go_pango_attr_*_new): add argument 2011-10-27 Andreas J. Guelzow * goffice/utils/go-format.c (cb_attrs_as_string): handle super and subscripts (go_format_parse_markup): ditto * goffice/utils/go-pango-extras.h (go_pango_attr_subscript_get_type): new (go_pango_attr_superscript_get_type): new * goffice/utils/go-pango-extras.c (go_pango_attr_subscript_get_type): new (go_pango_attr_superscript_get_type): new (filter_func): use the above (go_pango_attr_subscript_new): ditto (go_pango_attr_superscript_new): ditto 2011-10-27 Jean Brefort * goffice/utils/go-emf.c: fixed a compilation warning. * goffice/utils/go-image.c (go_image_get_height), (go_image_set_default_dpi), (go_image_get_default_dpi): fixed svg image size. [#628472] * goffice/utils/go-image.h: ditto. * goffice/utils/go-svg.c (go_svg_load_data), (go_svg_new_from_file), (go_svg_new_from_data): ditto. 2011-10-27 Jean Brefort * goffice/canvas/goc-canvas.c: new helper functions. * goffice/canvas/goc-canvas.h: ditto. * goffice/canvas/goc-image.c: add crop. * goffice/canvas/goc-image.h: ditto. * goffice/goffice.c: initialize new type. * goffice/graph/gog-plot-impl.h: add get_percent method. * goffice/graph/gog-plot.c: ditto. * goffice/graph/gog-plot.h: ditto. * goffice/utils/Makefile.am: new files. * goffice/utils/go-emf.c: added for a future support of WMF images. * goffice/utils/go-emf.h: ditto. * goffice/utils/go-image.c: add go_image_from_data(). * goffice/utils/go-image.h: ditto. * goffice/utils/go-svg.c: ditto. * goffice/utils/go-svg.h: ditto. * goffice/utils/goffice-utils.h: add GOEmf. * tests/mf-demo.c: fixed GOImage usage. 2011-10-26 Andreas J. Guelzow * goffice/utils/go-pango-extras.c (go_pango_translate_here): allow for multiple overlapping subscript/superscript attributes (go_pango_translate_attributes): allow for multiple overlapping subscript/superscript attributes (go_pango_attr_compare): return FALSE 2011-10-26 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): use GO's new superscript andd subscript attributes * goffice/utils/go-pango-extras.h (go_pango_translate_layout): new (go_pango_translate_attributes): new (go_pango_attr_subscript_new): new (go_pango_attr_superscript_new): new * goffice/utils/go-pango-extras.c (go_pango_translate_layout): new (go_pango_translate_attributes): new (go_pango_attr_subscript_new): new (go_pango_attr_superscript_new): new (filter_func): new (go_pango_translate_here): new (go_pango_attr_subscript_copy): new (go_pango_attr_superscript_copy): new (go_pango_attr_destroy): new (go_pango_attr_compare): new 2011-10-26 Jean Brefort * goffice/canvas/goc-image.c (goc_image_set_property), (goc_image_get_property), (goc_image_finalize), (goc_image_update_bounds), (goc_image_distance), (goc_image_draw), (goc_image_class_init): new canvas item displaying a GOImage. * goffice/canvas/goc-image.h: ditto. * goffice/canvas/goffice-canvas.h: ditto. * goffice/canvas/Makefile.am: ditto. * goffice/utils/go-style.c: fixed loading of image without type. 2011-10-26 Jean Brefort * all files: add support for svg images using librsvg. 2011-10-25 Morten Welinder * goffice/gtk/goffice-gtk.c (apply_ui_from_file): Add filename argument and use it to partially work around bug #662679. 2011-10-25 Jean Brefort * goffice/gtk/go-pixbuf.c: moved to utils. * goffice/gtk/go-pixbuf.h: ditto. * goffice/utils/go-pixbuf.c (go_gdk_pixbuf_intelligent_scale), (go_gdk_pixbuf_new_from_file), (go_gdk_pixbuf_get_from_cache), (go_gdk_pixbuf_tile):rename the functions to prepare for GOPixbuf (GOImage split). * goffice/utils/go-pixbuf.h: ditto. 2011-10-24 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): fix sense of at_end test 2011-10-22 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): consider the existing attributes 2011-10-22 Andreas J. Guelzow * goffice/utils/go-format.h: add format defines * goffice/utils/go-format.c (go_format_execute): use these defines 2011-10-22 Jean Brefort * goffice/gtk/go-image-sel.c (cb_entry_focus_out), (cb_file_image_select), (delete_event_cb), (cancel_button_clicked_cb): more fixes, see #660917. 2011-10-21 Morten Welinder * goffice/app/go-conf-gsettings.c (go_conf_get_node): Add precondition. 2011-10-21 Jean Brefort * configure.in: make GSettings the default configuration backend. * goffice/graph/gog-renderer.c (gog_renderer_export_image): use GdkPixbuf even in the no gtk build. * goffice/gtk/go-image-sel.c: redesigned. * goffice/gtk/go-image-sel.ui: ditto. * goffice/gtk/goffice-gtk.c (go_gtk_select_image), (go_gtk_select_image_with_extra_widget): new function. * goffice/gtk/goffice-gtk.h: ditto. 2011-10-18 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_builder_new): Handle compressed ui data (regardless of source). 2011-10-17 Morten Welinder * goffice/utils/go-rsm.c: New file. * goffice/gtk/goffice-gtk.c (go_gtk_builder_new) (go_gtk_builder_new_internal): Handle resources. 2011-10-17 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_builder_new): Move default-directory code from here... (go_gtk_builder_new_internal): ...to here. * */*.c: change to use go_gtk_builder_new_internal as appropriate. 2011-10-13 Jean Brefort * goffice/app/go-plugin.c: removed deprecated go_plugins_add(). * goffice/app/go-plugin.h: ditto. * goffice/graph/gog-object-xml.c (gog_object_new_from_input): new function to remlace gog_object_new_from_xml. * goffice/graph/gog-object-xml.h: ditto. * goffice/graph/gog-plot-impl.h: removed deprecated declaration. 2011-10-09 Gerald Niel * configure.in: fixed plugins load from a Mac OSX bundle. [#661264] * goffice.mk: ditto. * goffice/Makefile.am: ditto. * goffice/goffice.c (libgoffice_init): ditto. 2011-10-05 Jean Brefort * goffice/gtk8go-image-sel.c: make the dialog work again. [#660917] * goffice/utils/go-style-prefs.ui: fix a widget size. 2011-10-01 Jean Brefort * goffice/graph/gog-series-labels.c (gog_series_labels_dataset_dim_changed): update series labels when needed. [658527] 2011-09-30 Morten Welinder * goffice/math/go-rangefunc.c (sum_helper): Improve precision in the all-constant case. See #660564. * goffice/utils/go-file.c (go_dirname_from_uri): Plug leak. 2011-09-26 Jean Brefort * plugins/plot_barcol/gog-barcol.c (gog_barcol_plot_set_property), (gog_barcol_plot_init): draw columns/bars plots before the axes so that axis labels are always visible. 2011-09-25 Jean Brefort * goffice/canvas/goc-item.c (goc_item_reordered), (goc_item_raise), (goc_item_lower), (goc_item_lower_to_bottom), (goc_item_raise_to_top), (_goc_item_unrealize), (goc_item_get_parent), (goc_item_get_window): fixed widgets stacking order. * goffice/canvas/goc-item.h: ditto. * goffice/canvas/goc-widget.c (goc_widget_get_window), (goc_widget_class_init): ditto. 2011-09-24 Jean Brefort * goffice/gtk/go-color-palette.c (draw_color_cb), (go_color_palette_button_new): ensure that the colors are always displayed, even with the most stupid theme. 2011-09-13 Andreas J. Guelzow * goffice/utils/go-file.c (go_file_get_owner_name): adjust call to go_guess_encoding (go_file_get_group_name): ditto * goffice/utils/go-glib-extras.h (go_guess_encoding): change arguments * goffice/utils/go-glib-extras.c (go_guess_encoding): change arguments and change all callers 2011-09-08 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_refcount_cb): deleted (go_format_foreach): just wrap the GHFunc (go_format_unref): don't keep GOFormats that are just in the hash 2011-09-08 Andreas J. Guelzow * goffice/utils/go-format.h (go_format_set_build_in): deleted again (go_format_is_build_in): deleted again * goffice/utils/go-format.c (go_format_set_build_in): deleted again (go_format_is_build_in): deleted again * goffice/gtk/go-format-sel.c (fmt_dialog_init_fmt_list): add argument and store seen formats in hash (fmt_dialog_load_true_custom_cb): check hash not, built_in flag 2011-09-08 Morten Welinder * configure.in: Switch to AM_MAINTAINER_MODE([enable]) 2011-09-08 Jean Brefort * goffice/graph/gog-axis.c (gog_axis_view_size_allocate): fixed axis title automatic position by taking actual axis span into account. * plugins/plot_barcol/gog-line.c (gog_line_view_render): fixed are filling. 2011-09-07 Andreas J. Guelzow * goffice/utils/go-format.h (go_format_set_build_in): new (go_format_is_build_in): new (go_format_foreach): new * goffice/utils/go-format.c (go_format_set_build_in): new (go_format_is_build_in): new (go_format_foreach): new (go_format_refcount_cb): new * goffice/gtk/go-format-sel.c (fmt_dialog_load_true_custom_cb): new (fmt_dialog_enable_widgets): call fmt_dialog_load_true_custom_cb 2011-09-07 Andreas J. Guelzow * goffice/utils/go-format.c (handle_common_token): try harder to find the locale, Ubuntu, for example, does not understand fi_FI but fi_FI.utf-8. 2011-09-06 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_fraction): make denominator simplification slightly less eager (go_format_execute): ditto 2011-09-06 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_E): make sure to fail on '00E00' and '00E +00' (go_format_execute): keep the leading whitespace 2011-09-06 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): conditionalize denominator simplification (and disable) (go_format_parse_number_fraction): ditto 2011-09-06 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_output_fraction_to_odf): fix int_digits and don't force a 0 into the denominator 2011-09-05 Jean Brefort * goffice/canvas/goc-widget.c (goc_widget_set_widget): fixed signals target, (goc_widget_draw): create a new path before exiting to avoid unwanted lines. 2011-09-05 Jean Brefort * goffice/canvas/goc-widget.c (goc_offscreen_box_realize), (goc_offscreen_box_class_init), (goc_widget_draw), (goc_widget_class_init): reimplement widget transparency. 2011-09-05 Jean Brefort * goffice/canvas/goc-widget.c (goc_offscreen_box_draw): enhance widget rendering. 2011-09-04 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_output_fraction_to_odf): handle pi-fraction 2011-09-04 Jean Brefort * goffice/canvas/goc-widget.c: make sheet widgets scalable. [#605434] * goffice/canvas/goc-widget.h: ditto. 2011-09-03 Andreas J. Guelzow * goffice/gtk/go-format-sel.ui: new widgets * goffice/gtk/go-format-sel.c (_GOFormatSel): new fields (load_si_combo): new (cb_si_toggle): enable/disable new widgets (cb_si_unit_toggle): new (cb_si_combo_changed): new (fmt_dialog_enable_widgets): handle new widgets (nfs_init): ditto (go_format_sel_finalize): finalize details * goffice/utils/go-format.h (go_format_details_finalize): new and add new fields * goffice/utils/go-format.c (go_format_generate_scientific_str): use new fields (go_format_details_finalize): new (go_format_details_free): use go_format_details_finalize (go_format_get_details): consider new fields 2011-09-02 Jean Brefort * goffice/graph/gog-axis.c: use data format for discrete axis. [#641901] 2011-09-02 Andreas J. Guelzow * goffice/utils/go-format.c (si_reduction): use -24 for smaller exponents 2011-09-01 Jean Brefort * goffice/canvas/goc-text.c (goc_text_prepare_draw): always initialize dx and dy variables. 2011-09-01 Jean Brefort * goffice/graph/gog-series-impl.h: add support for values as percent in data labels. * goffice/graph/gog-series-labels.c: ditto. * goffice/graph/gog-series-labels.h: ditto. * goffice/graph/gog-series.c: ditto. * goffice/graph/gog-series.h: ditto. 2011-09-01 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_E): use OP_NUM_SIMPLIFY_MANTISSA_SI instead of OP_NUM_SIMPLIFY_MANTISSA if appropriate (go_format_execute): handle OP_NUM_SIMPLIFY_MANTISSA_SI (go_format_dump_program): ditto 2011-09-01 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_new_1): mark the end of the number (go_format_dump_program): support new op (go_format_execute): watch for stuff following the E 2011-09-01 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (cb_si_toggle): new (fmt_dialog_enable_widgets): handle si_button (format_entry_set_text): check for null text (nfs_init): connect cb_si_toggle * goffice/gtk/go-format-sel.ui: add si_button * goffice/utils/go-format.h: move defs here from the .c file * goffice/utils/go-format.c: move defs to .h file (go_format_token2): split E token into separate tokens (go_format_preparse): handle new tokens (go_format_parse_number_new_1): new ' scale (go_format_parse_number_E): support SI prefixes (si_reduction): new (go_format_execute): support SI prefixes (go_format_generate_scientific_str): appens SI marker (go_format_get_details): store SI info 2011-08-31 Jean Brefort * goffice/graph/gog-renderer.c (gog_renderer_draw_data_label): center multiline label, (gog_renderer_get_scale): new function. * goffice/graph/gog-renderer.h: ditto. * plugins/plot_xy/gog-xy.c (gog_xy_view_render): support data labels. 2011-08-30 Andreas J. Guelzow * goffice/graph/gog-axis.c (axis_format_value): trim label. [#657670] * goffice/utils/go-string.c (find_shape_attr): new (go_string_trim): new * goffice/utils/go-string.h (go_string_trim): new 2011-08-30 Jean Brefort * goffice/canvas/goc-graph.c (goc_graph_do_tooltip), (goc_graph_motion): appropriately scale the position. [#657694] * goffice/graph/gog-axis.c (map_linear_calc_ticks): always display the correct minor axis ticks. [#657670] * plugins/plot_surface/gog-contour.c (gog_contour_plot_foreach_elem): don't crash when pseudo3d axis has too largemanula ticks spacing. [#657695] * plugins/plot_surface/gog-xyz-surface.c (gog_xyz_surface_plot_build_matrix): ditto. 2011-08-30 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_get_logical_rect): change to go_format_get_width and change all callers (blank_characters): rewrite * goffice/gtk/go-format-sel.ui: fix spelling 2011-08-29 Jean Brefort * goffice/graph/gog-series-labels-prefs.ui: add a separator for labels. * goffice/graph/gog-series-labels.c: ditto. * goffice/graph/gog-series-labels.h: ditto. * goffice/utils/go-pango-extras.c (go_pango_attr_list_erase): fix a critical. 2011-08-28 Jean Brefort * goffice/canvas/goc-widget.c (goc_widget_draw): draw using gtk_widget_draw. * goffice/goffice.c (libgoffice_init): new GogDataLabel type. * goffice/graph/goffice-graph.h: ditto. * goffice/graph/gog-renderer.c (gog_renderer_draw_data_label): use overriden style if given. * goffice/graph/gog-series-labels.c: new GogDataLabel type. * goffice/graph/gog-series-labels.h: ditto. * goffice/graph/gog-series.c (role_series_labels_post_add): set a default format, (gog_series_map_XL_dim), (gog_series_set_XL_dim): new functions. * goffice/graph/gog-series.h: new functions. * goffice/graph/gog-theme.c (build_predefined_themes): new GogDataLabel type * goffice/utils/go-style.c (go_style_is_auto): new function. * goffice/utils/go-style.h: ditto. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): allow for points in data labels. * plugins/plot_xy/gog-xy.c (gog_xy_series_init): set a default label position. 2011-08-27 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_desired_width): check for fontmap (go_format_get_logical_rect): ditto 2011-08-27 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_get_logical_rect): handle NULL layout (go_format_desired_width): ditto 2011-08-27 Andreas J. Guelzow * goffice/utils/formats.c (_go_currency_date_format_init): ISO 8601 should be with the other date-time formats 2011-08-27 Andreas J. Guelzow * goffice/utils/go-format.c (GOFormatOp): add ops (go_format_parse_number_fraction): create more program steps for fractions (go_format_dump_program): handle new ops (go_format_execute): ditto * goffice/gtk/go-format-sel.ui: change spin button bounds * goffice/gtk/go-format-sel.c (cb_max_denom_digits_changed): permit 0 denominator digits 2011-08-26 Andreas J. Guelzow * goffice/utils/go-format.c (GOFormatOp): add ops (go_format_parse_number_fraction): create more program steps for fractions (go_format_dump_program): handle new ops (go_format_execute): ditto (go_format_get_details): be more careful to take the right tokens 2011-08-26 Andreas J. Guelzow * goffice/gtk/go-format-sel.ui: fix tooltips 2011-08-26 Andreas J. Guelzow * goffice/gtk/go-format-sel.ui: add as-multiple-of-pi checkbox and sep. * goffice/gtk/go-format-sel.c (FormatWidget): add new widgets (cb_pi_scale_toggle): new (fmt_dialog_enable_widgets): handle new widgets (nfs_init): handle new widgets * goffice/utils/go-format.h (GOFormatDetails): add new field * goffice/utils/go-format.c (go_format_generate_fraction_str): handle pi-slash (go_format_details_init): adjust initialisation (go_format_get_details): handle pi-slash 2011-08-26 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_fraction): write OP_NUM_VAL_SIGN (go_format_execute): keep the sign attached to val 2011-08-26 Andreas J. Guelzow * goffice/utils/go-format.c (blank_characters): also remove the characters themselves (go_format_execute): move code to blank_characters; erase rather than overwrite for OP_NUM_FRACTION_BLANK_WHOLE; consider alignment for OP_NUM_FRACTION_SIMPLIFY_PI 2011-08-25 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_fraction): don't use both OP_NUM_FRACTION_SIMPLIFY_PI and OP_NUM_FRACTION_BLANK 2011-08-25 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_parse_number_fraction): use OP_NUM_FRACTION_SLASH and OP_NUM_FRACTION_ALIGN (UNICODE_PI): use "mathematical small italic pi" (go_format_get_logical_rect): new (go_format_dump_program): add OP_NUM_FRACTION_SLASH and OP_NUM_FRACTION_ALIGN (go_format_desired_width): new (blank_characters): use go_format_get_logical_rect (go_format_execute): support OP_NUM_FRACTION_SLASH and OP_NUM_FRACTION_ALIGN 2011-08-24 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (study_format): scientific number formatting with min_digits =0 and =1 are effectively indistinguishable (fmt_dialog_enable_widgets): set the range of the F_EXP_DIGITS widget depending on format_type * goffice/utils/go-format.c (go_format_parse_number_new_1): add argument and change all callers (go_format_parse_number_fraction): write OP_NUM_FRACTION_BLANK_WHOLE if appropriate (blank_characters): new (go_format_execute): use blank_characters and handle OP_NUM_FRACTION_BLANK_WHOLE (go_format_generate_fraction_str): write full numerator (cnt_digits): new 2011-08-24 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (study_format): the fraction selector interface handles min_digits. 2011-08-24 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_get_details): handle fractions 2011-08-24 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (FormatWidget): add widgets for fraction formatting (cb_denominator_changed): new (cb_max_denom_digits_changed): new (cb_min_integer_digits_changed): new (cb_min_denom_digits_changed): new (cb_exp_digits_changed): check for active type (cb_split_fraction_toggle): new (cb_fraction_automatic_toggle): new (fmt_dialog_enable_widgets): increase maximum number of widgets per format type, add widgets for fraction formatting (nfs_init): connect new callbacks * goffice/gtk/go-format-sel.ui: add widgets for fraction formatting * goffice/utils/go-format.c (go_format_generate_fraction_str): new (go_format_generate_str): call go_format_generate_fraction_str (go_format_details_init): initialize new fields * goffice/utils/go-format.h (GOFormatDetails): add fields to support fractions 2011-08-23 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (cb_exp_digits_changed): new (fmt_dialog_enable_widgets): add widgets (nfs_init): connect above callback * goffice/gtk/go-format-sel.ui: add widgets and format others better 2011-08-23 Andreas J. Guelzow * goffice/gtk/go-format-sel.ui: use unicode chanracter for "times" instead of x 2011-08-23 Andreas J. Guelzow * goffice/gtk/go-format-sel.c (study_format): in scientific formatting the selector also handles details->min_digits == 0 * goffice/utils/go-format.c (go_format_get_details): EE+ can also occur in scientific formatting 2011-08-21 Jean Brefort * goffice/canvas/goc-widget.c (goc_widget_notify_scrolled): fix widgets position inside an RTL canvas. * goffice/graph/gog-renderer.c (gog_renderer_draw_data_label): enhance scale use. 2011-08-20 Jean Brefort * goffice/graph/goffice-graph.h: fix include order. * goffice/graph/gog-renderer.c (gog_renderer_draw_data_label): new function. * goffice/graph/gog-renderer.h: ditto. * goffice/graph/gog-series-labels.c (gog_series_labels_update): make legend entry in label work. * goffice/graph/gog-series-labels.h: ditto. * goffice/graph/gog-view.c (gog_view_get_natural_size): new function (see #629794) * goffice/graph/gog-view.h: ditto. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): use gog_renderer_draw_data_label. 2011-08-18 Andreas J. Guelzow * goffice/app/go-cmd-context-impl.h (go_cmd_context_progress_set): remove (go_cmd_context_progress_message_set): remove * goffice/app/go-cmd-context.h (go_cmd_context_progress_set): add (go_cmd_context_progress_message_set): add 2011-08-15 Jean Brefort * goffice/canvas/goc-canvas.c (goc_canvas_invalidate): add a one pixel wide margin to the invalidated region to avoid pixels dust. * goffice/canvas/goc-text.c (goc_text_prepare_draw), (goc_text_draw): ensure that the rotation is around the anchor point. * goffice/graph/gog-series-labels.c (used_selection_changed_cb), (raise_cb), (lower_cb), (position_changed_cb), (gog_series_labels_changed), (gog_series_labels_update): ensure that all changes instant apply in the preview. * goffice/gtk/go-rotation-sel.c (cb_rotate_changed), (cb_rotate_canvas_realize): replaced the GtkLabel by a GocText item. 2011-08-14 Andreas J. Guelzow * goffice/app/go-plugin-loader-module.c (go_plugin_loader_module_func_file_open): add argument and adjust call to loader_data->module_func_file_open * goffice/app/go-plugin-service.h (plugin_func_file_open): add argument * goffice/app/go-plugin-service.c (_GOPluginServiceFileOpener): add field (go_plugin_service_file_opener_read_xml): load "encoding_dependent" (go_plugin_file_opener_open): adjust call to plugin_func_file_open (go_plugin_file_opener_new): use service_file_opener->encoding_dependent 2011-08-14 Jean Brefort * goffice/data/go-data-impl.h: add new is_valid method. * goffice/data/go-data.c (go_data_is_valid): ditto. * goffice/data/go-data.h: ditto. * goffice/graph/gog-label.c (gog_text_view_size_request): don't unref a GOString twice. * goffice/graph/gog-series-labels.c: more work on data labels. * goffice/graph/gog-series-labels.h: ditto. * goffice/graph/gog-series.c (role_series_labels_can_add), (gog_series_update): ditto. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): ditto. 2011-08-12 Morten Welinder * goffice/utils/go-format.c (go_format_value_gstring): Avoid changing attribute list we don't own. Fixes problem with sticky format colours. 2011-08-09 Jean Brefort * goffice/graph/gog-smoothed-curve.c (gog_smoothed_curve_populate_editor), (gog_smoothed_curve_finalize), (gog_smoothed_curve_class_init), (gog_smoothed_curve_init), (gog_smoothed_curve_dataset_dims), (gog_smoothed_curve_dataset_get_elem), (gog_smoothed_curve_dataset_dim_changed), (gog_smoothed_curve_dataset_init): add support for smoothed curve renaming. [#656148]. * goffice/graph/gog-smoothed-curve.h: 2011-08-08 Andreas J. Guelzow * goffice/utils/go-locale.c (go_locale_month_before_day): in MSWindows also consider where the year is. 2011-08-08 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): n digits means atmast 10^n -1 (go_format_generate_scientific_str): use number of exponent digits even if markup is used 2011-08-07 Jean Brefort * goffice/canvas/goc-graph.c (goc_graph_do_tooltip): fix when an axis does not use all the available space. * goffice/graph/gog-axis-prefs.ui: allows an axis to use only part of available space. [#654392] * goffice/graph/gog-axis.c (gog_axis_map_new), (gog_axis_map_get_extents), (gog_axis_map_get_bounds), (gog_axis_set_property), (gog_axis_get_property), (cb_start_changed), (cb_end_changed), (gog_axis_populate_editor), (gog_axis_class_init), (gog_axis_init), (gog_axis_set_bounds), (gog_axis_get_effective_span): ditto. * goffice/graph/gog-axis.h: ditto. 2011-08-06 Jean Brefort * goffice/graph/gog-label.c (gog_text_set_property), (gog_text_get_property), (gog_text_class_init), (rotate_frame_cb), (rotate_bg_cb), (allow_markup_cb), (gog_label_populate_editor), (gog_label_class_init), (gog_text_view_size_request), (gog_text_view_render): allow rotation of the frame along with the text. [#647147] * goffice/graph/gog-label.h: * goffice/graph/gog-renderer.c (_draw_rotated_shape), (gog_renderer_fill_rectangle), (_draw_rotated_rectangle), (gog_renderer_draw_rotated_rectangle): * goffice/graph/gog-renderer.h: * goffice/utils/go-style-prefs.ui: 2011-08-05 Jean Brefort * goffice/graph/goffice-graph.h: add support for rich text in legends. * goffice/graph/gog-legend.c (cb_size_elements), (cb_swatch_scale), (cb_render_elements): ditto. * goffice/graph/gog-plot.c (gog_plot_foreach_elem): ditto. * goffice/utils/go-string.c (replace_rich_base_with_plain): don't leak a string. * plugins/plot_surface/gog-contour.c (gog_contour_plot_foreach_elem): add support for rich text in legends. 2011-08-05 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_output_scientific_number_element_to_odf): add arguments re literal_E and change caller (go_format_output_scientific_number_to_odf): handle EE or ee 2011-08-05 Morten Welinder * goffice/utils/go-format.c (go_format_get_details): Deduce exponent_digits. (go_format_generate_scientific_str): Add right number of exponent digits. (go_format_details_init): Reset exponent_digits. * goffice/data/go-data.c (go_data_preferred_fmt): Constify. Fixes #635072. All callers adjusted. 2011-08-05 Jean Brefort * goffice/utils/go-string.c (replace_rich_base_with_plain): don't loose the ancient base if not destroyed. 2011-08-05 Jean Brefort * goffice/data/go-data-impl.h: sanitize the get_markup API. * goffice/data/go-data.c (_data_scalar_get_markup): ditto. * goffice/data/go-data.h: ditto. * goffice/graph/gog-axis.c (gog_axis_ticks_set_markup), (map_discrete_calc_ticks): use markup for discrete axis tip labels. * goffice/utils/go-string.c (replace_rich_base_with_plain), (go_string_new_rich), (go_string_unref): fix GOString lifetime. 2011-08-04 Jean Brefort * goffice/canvas/goc-group.c (goc_group_update_bounds), (goc_group_draw_region), (goc_group_distance), (goc_group_cairo_transform), (goc_group_set_clip_path): start support for clipping at the GocGroup level. * goffice/canvas/goc-group.h: * goffice/gtk/go-optionmenu.c (handle_menu_signals), (go_option_menu_set_menu): don't use an unexisting sgnal. 2011-08-04 Jean Brefort * goffice/data/go-data-impl.h: fix get_markup method declaration. * goffice/graph/gog-renderer.c (gog_renderer_draw_text), (gog_renderer_get_text_OBR): removed obsolete variables. 2011-08-03 Jean Brefort * goffice/canvas/goc-polygon.c (goc_polygon_set_property): make it compile again. * goffice/graph/gog-label.c (gog_text_get_markup), (gog_label_get_markup), (gog_label_class_init), (gog_text_view_render): add support for rich text labels. * goffice/graph/gog-label.h: ditto. * goffice/graph/gog-renderer.c (gog_renderer_get_text_AABR), (gog_renderer_get_gostring_AABR): ditto. * goffice/graph/gog-renderer.h: ditto. 2011-08-03 Jean Brefort * goffice/canvas/goc-polygon.c (goc_polygon_finalize), (goc_polygon_set_property), (goc_polygon_get_property), (goc_polygon_prepare_path): replaced private structures by public data. * goffice/canvas/goc-polygon.h: ditto. * goffice/canvas/goc-rectangle.c (goc_rectangle_set_property), (goc_rectangle_get_property), (goc_rectangle_prepare_draw): ditto. * goffice/canvas/goc-rectangle.h: ditto. 2011-08-02 Jean Brefort * configure.in: needs librsvg. * goffice/canvas/Makefile.am: add component support to the canvas. * goffice/canvas/goc-component.c: ditto. * goffice/canvas/goc-component.h: ditto. * goffice/canvas/goffice-canvas.h: ditto. * goffice/component/Makefile.am: revisited the component API. * goffice/component/go-component-factory.c: ditto. * goffice/component/go-component-factory.h: ditto. * goffice/component/go-component-mime-dialog.c: ditto. * goffice/component/go-component-mime-dialog.h: ditto. * goffice/component/go-component.c: ditto. * goffice/component/go-component.h: ditto. * goffice/component/goffice-component.h: ditto. * goffice/graph/gog-axis-line.c: cleaned out extra spaces. * goffice/graph/gog-axis.c: ditto. * goffice/graph/gog-renderer.c: ditto. * goffice/graph/gog-renderer.h: ditto. * goffice/graph/gog-series-labels.c: ditto. * goffice/gtk/go-format-sel.c: ditto. * goffice/utils/go-format.c: ditto. * goffice/utils/go-pango-extras.h: ditto. * plugins/plot_barcol/gog-barcol.c: ditto. 2011-08-02 Jean Brefort * goffice/data/go-data-impl.h: add markup support. * goffice/data/go-data.c: ditto. * goffice/data/go-data.h: ditto. * goffice/goffice.c: add initial support for data labels. * goffice/graph/Makefile.am: ditto. * goffice/graph/goffice-graph.h: ditto. * goffice/graph/gog-series-impl.h: ditto. * goffice/graph/gog-series-labels-prefs.ui: ditto. * goffice/graph/gog-series-labels.c: ditto. * goffice/graph/gog-series-labels.h: ditto. * goffice/graph/gog-theme.c: ditto. * plugins/plot_barcol/gog-1.5d.c: add support for d ata labels in bar/col plots. * plugins/plot_barcol/gog-barcol.c: ditto. 2011-08-02 Andreas J. Guelzow * goffice/app/go-cmd-context-impl.h (GOCmdContextClass): move error_info_list field to the error substruct * goffice/app/go-cmd-context.c (go_cmd_context_error_info_list): adjust for the move of the error_info_list field (go_cmd_context_error_info_list_default): ditto 2011-08-02 Andreas J. Guelzow * goffice/utils/go-format.c (go_format_execute): insert space in case of short nominators 2011-08-01 Andreas J. Guelzow * configure.in: disable gtk depreciation check * goffice/graph/gog-axis-line.c: replace ticks.labels with ticks.str throughout; gog_renderer_get_text_OBR with gog_renderer_get_gostring_OBR, and gog_renderer_draw_text with gog_renderer_draw_gostring as required byt he ticks change * goffice/graph/gog-axis.c replace ticks.labels with ticks.str throughout and use gog_axis_ticks_set_text to initialize (gog_get_layout): new (gog_axis_ticks_set_text): new (axis_format_value): add GOString argument and change all callers * goffice/graph/gog-axis.h: replace ticks.labels with ticks.str * goffice/graph/gog-renderer.c (gog_renderer_draw_gostring): new (gog_renderer_draw_text): use gog_renderer_draw_gostring (gog_renderer_get_gostring_OBR): new (gog_renderer_get_text_OBR): use gog_renderer_get_gostring_OBR (gog_renderer_get_gostring_OBR): new * goffice/graph/gog-renderer.h (gog_renderer_draw_gostring): new * goffice/gtk/go-format-sel.c (generate_preview): use PangoAttrList (draw_format_preview): ditto (nfs_init): create buffer tags * goffice/utils/go-format.c (go_format_parse_number_E): use attributes (go_format_execute): use attributes (go_format_value_gstring): use attributes instead of passing colour * goffice/utils/go-pango-extras.c (go_load_pango_attributes_into_buffer_filter): new (go_load_pango_attributes_into_buffer_named_filter): new (go_create_std_tags_for_buffer): new (go_load_pango_byte_to_char): new (go_load_pango_attributes_into_buffer): new * goffice/utils/go-pango-extras.h (go_create_std_tags_for_buffer): new (go_load_pango_attributes_into_buffer): new * goffice/utils/go-string.c (go_string_new_rich): ensure we have determined the byte_len (if it was negative or zero) 2011-08-01 Jean Brefort * all files: port to gtk+-3.0. 2011-08-01 Morten Welinder * configure.in: Branch to 0.9.0. 2011-07-31 Morten Welinder * configure.in: Post-release bump.