2006-09-10 Emmanuel Pacaud Add drag and drop support to color selector. Postpone palette content creation to widget realization. * goffice/gtk/go-color-selector.c (cb_color_dialog_response): use go_color_selector_set_color. (go_color_selector_drag_data_received), (go_color_selector_drag_data_get), (go_color_selector_drag_fill_icon): new. (go_color_selector_new): setup drag and drop. (go_color_selector_set_color): return TRUE if color actually changed. * goffice/gtk/go-palette.c (go_palette_realize): fill menu here. That makes dialog with lot of selectors appear faster. (go_palette_new): don't fill menu. (go_palette_show_automatic): ditto. (go_palette_show_custom): ditto. * goffice/gtk/go-selector.c (go_selector_drag_data_received), (go_selector_drag_data_get), (go_selector_drag_begin): new. We should make drag_begin smarter and don't require a custom implementation. (go_selector_setup_dnd): new. 2006-09-10 Jean Brefort * goffice/component/go-component-factory.c: (goc_plugin_services_shutdown): clean hash tables, (go_components_set_mime_suffix), (go_components_get_mime_suffix): new utilities. * goffice/component/go-component-factory.h: add two utilities. 2006-09-07 Jean Brefort * plugins/plot_boxes/gog-histogram.c: (gog_histogram_plot_view_render): check if a series is present before using it (fixes #354705). 2006-09-07 Ivan, Wong Yat Cheung * .cvsignore: * goffice/.cvsignore: * goffice/app/.cvsignore: * goffice/component/.cvsignore: * goffice/data/.cvsignore: * goffice/drawing/.cvsignore: * goffice/graph/.cvsignore: * goffice/gtk/.cvsignore: * goffice/ms-compat/.cvsignore: * goffice/utils/.cvsignore: added *.def * configure.in: distinguishs between native Win32 and Cygwin. The later one is actually a kind of Unix whose share object shares the properties of a DLL. * goffice.mk: * goffice/goffice.h: defines GO_VAR_DECL * goffice-win32.mk: * dumpdef.pl: recognizes GO_VAR_DECL (dllexport) for global variables. * goffice/Makefile.am: * goffice/app/Makefile.am: * goffice/component/Makefile.am: fixed Win32 build * goffice/app/go-plugin.c: * goffice/gtk/goffice-gtk.c: * goffice/utils/go-file.[ch]: added go_file_access(). * goffice/app/file.c: * goffice/app/go-doc-control-impl.h: * goffice/app/go-doc.[ch]: * goffice/component/go-component-factory.c: * goffice/component/go-component.h: * goffice/cut-n-paste/foocanvas/foo-canvas-line.c: * goffice/cut-n-paste/foocanvas/foo-canvas-polygon.c: * goffice/drawing/god-drawing-renderer-gdk.c: * goffice/graph/gog-axis.c: * goffice/graph/gog-guru.c: * goffice/graph/gog-renderer-cairo.h: * goffice/graph/gog-renderer-svg.c: * goffice/graph/gog-style.c: * goffice/graph/gog-theme.c: * goffice/gtk/go-action-combo-color.c: * goffice/gtk/go-action-combo-pixmaps.c: * goffice/gtk/go-color-palette.c: * goffice/gtk/go-combo-box.c: * goffice/gtk/go-combo-color.c: * goffice/gtk/go-combo-pixmaps.c: * goffice/gtk/go-font-sel.c: * goffice/gtk/go-graph-widget.h: * goffice/utils/format.c: * goffice/utils/formats.c: * goffice/utils/go-color.h: * goffice/utils/go-font.h: * goffice/utils/go-format.[ch]: * goffice/utils/go-geometry.c: * goffice/utils/go-glib-extras.[ch]: * goffice/utils/go-marker.c: * goffice/utils/go-math.h: * goffice/utils/go-pattern.c: replaced all #warning with /* FIXME ...*/ replaced all calls to rint() with go_rint(), uses GO_VAR_DECL for all public global variables, replaced ssize_t with gssize, etc. 2006-09-04 Emmanuel Pacaud * goffice/gtk/go-gradient-selector.[ch]: new. * goffice/gtk/go-color-selector.c (go_color_selector_set_color): new. * goffice/gtk/go-marker-selector.c (go_marker_palette_render_func): use marker colors. (go_marker_selector_new): ditto. (go_marker_selector_set_colors): new. * goffice/gtk/go-palette.c (cb_swatch_expose): don't leak cairo_t. 2006-09-03 Emmanuel Pacaud * goffice/gtk/go-color-group.c (go_color_group_add_color): fix history. 2006-09-03 Emmanuel Pacaud New GOPalette and GOSelector widgets for unification and beautification of goffice selectors. They depend on cairo, so I'm not using them for now, until we change gtk version requirement. * goffice/gtk/go-line-selector.[ch], * goffice/gtk/go-marker-selector.[ch], * goffice/gtk/go-pattern-selector.[ch], * goffice/gtk/go-color-selector.[ch], * goffice/gtk/go-selector.[ch], * goffice/gtk/go-palette.[ch]: new. 2006-08-21 Jean Brefort * goffice/graph/gog-guru.c: (graph_guru_init_format_page): explicitly create the FooCanvas widget instead of using the custom widget mechanism from libglade, because when called from the Abiword plugin, the foo_canvas_new might be unresolved and lead to a crash (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=190579). * goffice/graph/gog-guru.glade: ditto. 2006-08-20 Emmanuel Pacaud Add a graph theme selector. * goffice/graph/gog-graph.c (cb_theme_changed): new. (cb_force_theme): new. (gog_graph_populate_editor): new. (gog_graph_class_init): install graph property editor. (apply_theme): new. * goffice/graph/gog-plot-engine.c (gog_theme_service_read_xml): adapt to GogTheme API changes. * goffice/graph/gog-theme.c: remove theme hash caches. They were broken. I didn't see a good way to fix them. (gog_theme_register): renamed to gog_theme_registry_add. Change theme list order. (gog_theme_new_from_file): new. Don't register theme to be consistent with got_theme_new. (gog_theme_register_file): removed. (gog_theme_lookup): renamed to gog_theme_registry_lookup. (gog_theme_registry_get_theme_names): new. (gog_themes_init): Theme for chart titles. Tweak Guppi theme. 2006-08-18 Jean Brefort * goffice/graph/gog-style.c: (str_as_image_type), (image_type_as_str), (gog_style_fill_sax_save), (gog_style_image_load), (gog_style_fill_load), (gog_style_sax_load_fill_image), (gog_style_persist_prep_sax): save image fill options. * goffice/utils/go-image.c: (go_image_get_pixbuf): don't crash if image is NULL [#348780]. 2006-08-17 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (gog_axis_base_set_property): handle new padding property. (gog_axis_base_get_property): ditto. (gog_axis_base_class_init): ditto. (cb_position_toggled): make padding spinbutton insensitive when padding setting is not relevent. (cb_padding_changed): new. (gog_axis_base_populate_editor): handle padding spinbutton. (gog_axis_base_get_padding): new. (axis_line_point): take padding setting into account. (axis_line_get_bbox): ditto. (axis_line_render): ditto. Store axis position here for use by axis tools... (x_process): ... instead of here. Adapt to new axis_line_render and axis_line_point signature. (xy_process): ditto. (radar_process): ditto. * goffice/graph/gog-axis-prefs.glade: add new padding spinbutton. 2006-08-11 Emmanuel Pacaud * goffice/graph/gog-object.c (gog_editor_get_notebook): always show notebook tabs. Makes thing more consistent. * plugins/plot_xy/gog-xy.c (gog_xy_series_populate_editor): don't display details on first page. 2006-08-06 Emmanuel Pacaud * configure.in: bump cairo req to 1.2.0 for cairo_surface_set_fallback_resolution. * goffice/graph/gog-renderer-cairo.c (gog_renderer_cairo_export_image): call cairo_surface_set_fallback_resolution. * goffice/gtk/goffice-gtk.c (cb_format_combo_changed): new. (gui_get_image_save_info): disable resolution spinbutton for formats that don't require a resolution setting. * goffice/utils/go-image.c: set is_dpi_useful to FALSE for PDF format. * goffice/app/go-plugin.c (plugin_get_loader_if_needed): fix compiler warning. (go_plugin_list_read_for_subdirs_of_dir): ditto. 2006-08-06 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_calc_ticks): use go_fake_ceil and go_fake_floor variants preventively. (map_linear_calc_ticks): ditto. (Not preventively in this case, I've really seen an issue on my laptop, where lower bound tick was not displayed for minimum < 0.0). (map_log_auto_bounds): ditto. (map_log_calc_ticks): ditto. 2006-07-30 Emmanuel Pacaud * plugins/plot_radar/gog-radar.c (gog_rt_view_render): fix a crash where clip path == NULL (#349238). 2006-07-28 Emmanuel Pacaud * goffice/graph/gog-theme.c (gog_themes_init): set serie default fill style to GOG_FILL_STYLE_PATTERN. * plugins/plot_boxes/gog-histogram.c (gog_histogram_plot_view_render): make histogram plots sharp. 2006-07-28 Emmanuel Pacaud * plugins/plot_xy/gog-axy.c (gog_xy_view_render): make step interpolation sharp. 2006-07-28 Emmanuel Pacaud * plugins/plot_barcol/gog-barcol.c (barcol_draw_rect): make barcol plot log scale safe. 2006-07-21 Morten Welinder * goffice/utils/go-file.c (go_url_resolve_relative): Add preconditions. 2006-06-30 Emmanuel Pacaud * plugins/plot_radar/gog-radar.c (gog_rt_view_class_init): disable default clipping. 2006-06-29 Emmanuel Pacaud Add support for polar plot units (degrees, radians, grads). * goffice/graph/gog-axis.c (map_linear_auto_bound): handle radian and grad case. (gog_axis_set_format): request an object update. (gog_axis_set_property): handle new circular_rotation and polar_unit properties. (gog_axis_get_property): ditto. (gog_axis_class_init): ditto. (gog_axis_pref_state_free): new. (gog_axis_populate_polar_unit_combo): new. (cb_polar_unit_changed): new. (cb_rotation_changed): new. (gog_axis_populate_editor): handle circular_rotation and polar_unit properties. (gog_axis_set_polar_unit): new. (gog_axis_get_polar_unit): new. (gog_axis_get_polar_perimeter): new. (gog_axis_get_circular_rotation): new. * goffice/graph/gog-chart.c (calc_circle_parameters): fix wrong calculations. (gog_chart_map_new): handle other polar units. * goffice/utils/format.c (go_format_number): handle new ?pi/? format. * plugins/plot_radar/gog-radar.c (gog_polar_plot_axis_get_bounds): don't limit bounds to 0 / 360 °. 2006-06-28 Jody Goldberg * goffice/graph/gog-style.h : include rather than * goffice/utils/go-image.h : ditto. 2006-06-16 Emmanuel Pacaud Add support for background stripes. * goffice/graph/gog-chart.c (grid_line_render): render stripes, then lines. Add a kludge layer on top of the initial kludge, since we don't use GogView::render, but specialized render functions. * goffice/graph/gog-grid-line.c (gog_grid_line_init_style): enable fill property. (fill_rectangle): new. (gog_grid_line_xy_render): new. (gog_grid_line_radial_render): new. (gog_grid_line_circular_render): new. (gog_grid_line_view_render): not called directly by GogView::render. Now has a stripes parameter. (gog_grid_line_view_render_lines): new. (gog_grid_line_view_render_stripes): new. * goffice/graph/gog-renderer.c (gog_renderer_get_ring_wedge_vpath): automatically swap in and out radii. Fix fill decision. Fix ring wedges. * goffice/graph/gog-style.c (gog_style_init): set fill to none by default. That'll be overriden by theme settings. * goffice/graph/gog-theme (gog_themes_init): init fill property of GogGridLine objects. 2006-06-15 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=344747 * goffice/graph/gog-axis.c (gog_axis_get_format) : new. (gog_axis_set_format) : make public. 2006-06-14 Jody Goldberg * goffice/utils/go-marker.c : constify * goffice/utils/go-cairo.c : tweak comments to make gtk-doc happy. 2006-06-05 Jean Brefort * goffice/graph/gog-renderer-cairo.c: (grc_draw_polygon): GogStyle now use GOImage instead of GdkPixbuf. * goffice/graph/gog-renderer-gnome-print.c: (gog_renderer_gnome_print_draw_polygon): ditto. * goffice/graph/gog-renderer-pixbuf.c: (gog_renderer_pixbuf_draw_polygon): ditto. * goffice/graph/gog-style.c: (gog_style_set_image_preview), (gog_style_set_fill_image_filename), (gog_style_create_cairo_pattern): ditto. * goffice/graph/gog-style.h: ditto. * goffice/utils/go-cairo.c: (go_cairo_fill): ditto. * goffice/utils/go-image.c: (go_image_set_property), (go_image_class_init), (go_image_get_pixbuf), (go_image_new_from_file), (go_image_get_pixels), (go_image_get_rowstride), (go_image_fill): add new functions and fixed some issues. * goffice/utils/go-image.h: new functions. 2006-06-05 Jean Brefort * goffice/utils/go-marker.c: (marker_update_pixbuf): free old pixbuf if any, (go_marker_assign): unref destination pixbuf, not source. 2006-06-02 Jean Brefort * goffice/goffice.c: (libgoffice_init): set initialized to TRUE after initialization. 2006-05-31 Jean Brefort * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_view_render): fixed discrete axis origin. * plugins/plot_barcol/gog-minmax.c: (gog_minmax_view_render): ditto. 2006-05-30 Emmanuel Pacaud * pixmaps/chart_scatter_*: simplification. 2006-05-30 Jean Brefort * goffice/gtk/go-graph-widget.c: modifying the graph secured. 2006-05-29 Emmanuel Pacaud * goffice/utils/go-path.c: new. * goffice/utils/go-path.h: new. * goffice/utils/go-path-impl.h: new. * goffice/utils/go-cairo.c: new. * goffice/utils/go-cairo.h: new. These files are just commited, not used yet. 2006-05-26 Jean Brefort * plugins/plot_xy/gog-xy.c: add four types of stepped plots. * plugins/plot_xy/gog-xy.h: ditto. * plugins/plot_xy/plot-types.xml.in: ditto. 2006-05-25 Jean Brefort * goffice/utils/go-image.c: Fix preprocessor conditionals. 2006-05-25 Jean Brefort * goffice/graph/gog-renderer-cairo.c: (grc_draw_polygon), (gog_renderer_cairo_update): use GOImage. * goffice/graph/gog-style.c: (gog_style_create_cairo_pattern): ditto. * goffice/graph/gog-style.h: ditto. * goffice/utils/go-image.c: new GOImage object. * goffice/utils/go-image.h: ditto. * goffice/utils/goffice-utils.h: ditto. 2006-05-25 Jean Brefort * plugins/plot_barcol/gog-barcol.c: (gog_barcol_view_render): fixed rendering of series lines in bar plots. 2006-05-25 Jean Brefort * pixmaps/Makefile.am: add new pixmaps for step plots. * pixmaps/chart_scatter_3_1.svg: new icon. * pixmaps/chart_scatter_4_1.png: ditto. * pixmaps/chart_scatter_4_1.svg: ditto. * pixmaps/chart_scatter_4_2.png: ditto. * pixmaps/chart_scatter_4_2.svg: ditto. * pixmaps/chart_scatter_4_3.png: ditto. * pixmaps/chart_scatter_4_3.svg: ditto. * pixmaps/chart_scatter_4_4.png: ditto. * pixmaps/chart_scatter_4_4.svg: ditto. 2006-05-24 Emmanuel Pacaud * goffice/graph/gog-axis.c (get_adjusted_tick_array): removed. (map_log_calc_ticks): use g_renew instead of get_adjusted_tick_array. 2006-05-22 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_log_calc_ticks): fix major start tick. (get_adjusted_tick_array): obviously, I'm not reliable when it comes to calculate memory allocation sizes, so emit a critical when something's wrong. 2006-05-22 Emmanuel Pacaud * goffice/utils/go-image.c (go_image_build_pixbuf_format_infos): default alpha_support to FALSE. * goffice/graph/gog-renderer-cairo.c (gog_renderer_cairo_export_image): extend image export to all format with pixbuf savers. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_export_image): ditto. * goffice/graph/gog-renderer.c (gog_renderer_new_for_format): ditto. 2006-05-22 Emmanuel Pacaud * goffice/utils/go-format.c: new alpha_support property for GOImageFormatInfo. Tells wether export format support alpha channel. * goffice/graph/gog-renderer-cairo.c (gog_renderer_cairo_export_image): for image formats that don't support alpha channel, composite onto white background. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_export_image): ditto. 2006-05-19 Morten Welinder * goffice/graph/gog-renderer.c (gog_renderer_new_for_format): Fix preprocessor conditionals. 2006-05-16 Jean Brefort * goffice/gtk/go-graph-widget.c: removed unused GOGraphWidget::chart, and reimplemented helper function go_graph_widget_get_chart for compatibility. 2006-05-14 Jean Brefort * goffice/graph/gog-graph.c: (gog_graph_render_to_cairo): new function. * goffice/graph/gog-graph.h: ditto. * goffice/graph/gog-renderer-cairo.c: added "cairo" and "is-vector" properties to allow rendering to an external cairo_t structure. 2006-05-14 Jean Brefort * configure.in: use Cairo if present. * goffice/goffice-features.h.in: export GOFFICE_WITH_CAIRO. * goffice/graph/gog-style.c: compile even without cairo. * goffice/graph/gog-style.h: ditto. 2006-05-13 Jody Goldberg * goffice/graph/gog-style.c (gog_style_create_cairo_pattern) : constify and fix some warnings. 2006-05-13 Jean Brefort * goffice/app/go-plugin.c: (go_plugins_add): new function. * goffice/app/go-plugin.h: ditto. 2006-05-12 Morten Welinder * goffice/utils/format.c (split_time): Handle invalid dates sanely. 2006-05-12 Jean Brefort * goffice/utils/go-color.h: define GO_COLOR_TO_CAIRO. 2006-05-12 Jean Brefort * goffice/graph/gog-style.c: (pixbuf_to_cairo), (gog_style_create_cairo_pattern): new cairo support functions. * goffice/graph/gog-style.h: ditto. 2006-05-12 Christian Neumair * goffice/gtk/go-graph-widget.c: * goffice/gtk/go-graph-widget.h: Add multiple size modes, modify go_graph_widget_new to take a GogGraph *. * tests/pie-demo.c: (main): Pass NULL to go_graph_widget_new. 2006-05-08 Jean Brefort * goffice/component/go-component.c: change api. * goffice/component/go-component.h: ditto. 2006-05-08 Morten Welinder * goffice/utils/format.c (go_render_general): Extracted from gnumeric. (go_fmt_general_float, go_fmt_general_int): Remove. All callers fixed. (go_render_number_scientific, go_format_number): Handle unicode_minus. * goffice/utils/go-format.c (go_format_value_gstring): Add unicode_minus flag. All callers changed. * goffice/utils/go-font.c (go_font_metrics_new, go_font_metrics_free, go_font_metrics_unit): New, moved from Gnumeric. 2006-05-06 Emmanuel Pacaud * goffice/graph/gog-style.c (text_layout_init): Add border around rotation selector widget. 2006-05-06 Emmanuel Pacaud * goffice/graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): Use markup when compiled with cairo support. (gog_renderer_gnome_print_get_text_OBR): ditto. 2006-05-02 Jean Brefort * plugins/plot_pie/gog-pie.c: (gog_pie_view_render): fixed max angle for partial ring plots (which are not implemented). 2006-05-01 Jean Brefort * plugins/plot_pie/gog-pie.c: (gog_pie_plot_class_init), (gog_pie_plot_init), (find_element), (gog_pie_view_render): use percentage for span instead of degrees. * plugins/plot_pie/plot-types.xml.in: ditto. 2006-05-01 Jean Brefort * pixmaps/Makefile.am: add new pixmaps for half pies. * pixmaps/chart_pie_3_1.png: ditto. * pixmaps/chart_pie_3_1.svg: ditto. * pixmaps/chart_pie_3_2.png: ditto. * pixmaps/chart_pie_3_2.svg: ditto. * plugins/plot_pie/gog-pie.c: (gog_pie_plot_set_property), (gog_pie_plot_get_property), (gog_pie_plot_class_init), (gog_pie_plot_init), (find_element), (gog_pie_view_render): add support for half pies. * plugins/plot_pie/gog-pie.h: ditto. * plugins/plot_pie/plot-types.xml.in: ditto. 2006-04-27 Morten Welinder * goffice/gtk/go-action-combo-text.c (go_action_combo_text_create_menu_item): New function. Fixes #157901. (go_action_combo_text_finalize): Plug leak. 2006-04-25 Jody Goldberg * configure.in : post release bump to 0.3.1 2006-04-23 Jody Goldberg * Release 0.3.0 2006-04-22 Morten Welinder * goffice/gtk/go-optionmenu.c (cb_select): Send "changed" signal here. 2006-04-20 Morten Welinder * goffice/gtk/go-optionmenu.c: Simplify. * goffice/gtk/go-action-combo-text.c (go_tool_combo_text_set_tooltip): Implement. 2006-04-19 Emmanuel Pacaud * goffice/gtk/go-image-save-dialog-extra.glade: new. * goffice/gtk/goffice-gtk.c (go_gtk_select_image): use glade file above for widgets in extra area. Displays a spin box for selecting output resolution. 2006-04-18 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_dialog_run): Hold a ref to the dialog until we're done with it. Don't install an [Esc] handler since gtk_dialog_run does that now. 2006-04-17 Emmanuel Pacaud * goffice/utils/format.c (go_render_number_scientific): fix for #338554 (1-epsilon was displayed 10.00E-01 instead of 1.00E-00). Also fix handling of optional right digits. 2006-04-17 Kjartan Maraas * configure.in: Remove obsolete entry for no_NO * po/no.po: And the translation. 2006-04-16 Jody Goldberg * *.[ch] : Clear the easy bit for --without-gtk Leaving us with a library that lack GdkPixbuf and needs a replacement for GtkAnchorType. Still not exactly turn-key but it makes the primary elements clear. 2006-04-10 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_log_baseline): inverted or not, baseline is always min. * plugins/plot_boxes/gog-histogram.c (gog_histogram_plot_view_render): fix in case of log y axis. 2006-04-10 Morten Welinder * goffice/utils/format.c (format_compile): Fix handling of [$curr]. Fixes #337796. (format_compile): Fix ABR. 2006-04-08 Jean Brefort * goffice/graph/gog-object-xml.c: (gogo_start): use gog_trend_line_new_by_name instead of obsolete gog_reg_curve_new_by_name. 2006-04-08 Jean Brefort * configure.in: add new plugin (smoothed curves). * goffice/graph/Makefile.am: add new files. * goffice/graph/goffice-graph.h: add GogTrendLine and GogSmoothedCurve types. * goffice/graph/gog-chart.c: fixed typo. * goffice/graph/gog-guru.c: replace GogRegCurve by GogTrendLine. * goffice/graph/gog-object-xml.c: ditto. * goffice/graph/gog-plot-engine.c: ditto. * goffice/graph/gog-plot-engine.h: ditto. * goffice/graph/gog-reg-curve.c: make GogRegCurve derive from GogTrendLine. * goffice/graph/gog-reg-curve.h: ditto. * goffice/graph/gog-series-impl.h: replace regression curves by trend lines. * goffice/graph/gog-series.c: ditto. * goffice/graph/gog-smoothed-curve.c: new smoothed curves: * goffice/graph/gog-smoothed-curve.h: ditto. * goffice/graph/gog-theme.c: added tredn lines and removed regression curves. * goffice/graph/gog-trend-line.c: new parent object for regression curves and trend lines. * goffice/graph/gog-trend-line.h: ditto. * plugins/Makefile.am: add smoothing plugin. * plugins/plot_barcol/gog-line.c: accept trend lines. * plugins/plot_boxes/gog-histogram.c: ditto. * plugins/plot_xy/gog-xy.c: ditto. * plugins/reg_linear/plugin.xml.in: changed service name. * plugins/reg_logfit/plugin.xml.in: ditto. * plugins/smoothing/Makefile.am: new moving average curves. * plugins/smoothing/gog-exp-smooth.c: ditto. * plugins/smoothing/gog-exp-smooth.glade: ditto. * plugins/smoothing/gog-exp-smooth.h: ditto. * plugins/smoothing/gog-moving-avg.c: ditto. * plugins/smoothing/gog-moving-avg.glade: ditto. * plugins/smoothing/gog-moving-avg.h: ditto. * plugins/smoothing/plugin.c: ditto. * plugins/smoothing/plugin.xml.in: ditto. * plugins/smoothing/types.xml.in: ditto. 2006-04-06 Morten Welinder * goffice/gtk/goffice-gtk.c (go_dialog_guess_alternative_button_order): New function. 2006-04-06 Morten Welinder * goffice/gtk/goffice-gtk.c (go_access): Replace by g_access, if present, and by access otherwise. * goffice/app/go-plugin.c (go_plugin_deactivate): Only unload base if it is actually loaded. * goffice/utils/format.c (go_format_number): Show 0/x also when whole==0, even if we rendered it (blank). * goffice/utils/formats.c (go_currency_date_format_init): Match more fraction formats. (cell_format_is_fraction): Adjust accordingly. 2006-04-05 Jean Brefort * plugins/plot_xy/Makefile.am: add new glade file. * plugins/plot_xy/gog-xy-series-prefs.glade: new glade file. * plugins/plot_xy/gog-xy.c: (gog_xy_view_render), (gog_xy_series_set_property), (gog_xy_series_get_property), (invalid_toggled_cb), (gog_xy_series_populate_editor), (gog_xy_series_class_init): use zero instead of invalid data or skip them [#334697]. * plugins/plot_xy/gog-xy.h: ditto. 2006-04-04 Emmanuel Pacaud Fix engineering format: http://bugzilla.gnome.org/show_bug.cgi?id=129706 Adds a special format using pango markup for superscripted exponents, currently only enabled in format selector in graph guru when using cairo renderer. * goffice/graph/gog-axis.c (gog_axis_populate_editor): enable format with markup when using cairo. * goffice/gtk/go-format-sel.c (generate_format): handle new format settings. (go_format_sel_set_style_format): ditto. (cb_engineering_toggle): new. (cb_superscript_toggle): new. (cb_superscript_hide_1_toggle): new. (fmt_dialog_enable_widgets): handle new scientific format widgets. (nfs_init): ditto. (go_format_sel_new_full): new. Provides a way to enable format with markup. (go_format_sel_new): creates a new format selector with pango markup disabled. * goffice/gtk/go-format-sel.glade: add new widgets for scientific format. * goffice/utils/format.c (go_render_number_scientific): new. (do_render_number): call go_render_number_scientific when needed. (go_format_as_scientific): handle exponent step, use of marlup and simplification of mantissa. (go_format_number): fix handling of scientific/engineering format. * goffice/utils/formats.c (go_currency_date_format_init): expand science/percentage format. (cell_format_is_number): handle simplification of mantissa, use of markup and exponent step for scientific format. 2006-04-04 Morten Welinder * goffice/app/go-plugin.c (go_plugin_deactivate): Unload the plugin so the shutdown hook gets called. (go_plugin_read_service_list): Ditto. 2006-03-29 Morten Welinder * goffice/utils/format.c (append_day): Use go_date_weekday_name. (append_month): Use go_date_month_name. Fix UTF-8 problem. (day_short, day_long, month_short, month_long): Remove. (format_entry_ctor): Don't setup regexps. (format_entry_set_fmt): Ditto. (format_entry_dtor): Don't destroy regexps. * goffice/utils/Makefile.am (libgoffice_utils_la_HEADERS): Kill go-format-match.h 2006-03-29 Eduardo Lima * configure.in: Fixed check for g_chmod(). 2006-03-28 Morten Welinder * goffice/utils/datetime.c (go_date_weekday_name, go_date_month_name): New function. This should allow for a cleaner interface. 2006-03-28 Eduardo Lima * configure.in: Borrowed code from libgsf to check for g_chmod(), avoiding dependency on glib 2.8. * goffice/utils/go-file.c (go_set_file_permissions): Call chmod() instead of g_chmod() if not defined HAVE_G_CHMOD. 2006-03-23 Morten Welinder * goffice/utils/datetime.c (datetime_serial_to_g): Don't go beyond year 9999. 2006-03-21 Morten Welinder * goffice/utils/go-file.c (go_url_make_relative): New function. 2006-03-20 Morten Welinder * goffice/utils/go-file.c (go_filename_simplify): New function. (go_filename_to_uri): Extracted from here. (go_url_simplify): New function. (go_url_resolve_relative): Extracted from here. (go_shell_arg_to_uri): Use go_url_simplify. 2006-03-19 Morten Welinder * goffice/utils/datetime.c (datetime_g_days_between): Remove. glib has g_date_days_between. 2006-03-18 Jody Goldberg * goffice/app/go-doc.c : actually implement some basics 2006-03-18 Morten Welinder * goffice/utils/go-file.c (go_url_resolve_relative): New function. (go_url_encode): Take extra argument to determine what needs quoting. All Gnumeric callers changed. 2006-03-16 Morten Welinder * plugins/plot_surface/gog-surface.c (gog_contour_view_render): Use NULL, not 0. * plugins/plot_barcol/gog-1.5d.h: Bitfields need to be explicitly signed or unsigned. 2006-03-15 Jean Brefort * goffice/app/module-plugin-defs.h: add a comment for go_plugin_init and go_plugin_shutdown declaration. 2006-03-15 J.H.M. Dassen (Ray) * goffice/utils/go-file.h: #include for time_t. 2006-03-14 Morten Welinder * goffice/utils/go-file.c (go_file_get_owner_name, go_file_get_group_name): Ensure that result is UTF-8 encoded. Let the caller free the result. Handle remote files sanely. Plug leaks. (go_file_get_date, go_file_get_date_changed, go_file_get_date_modified, go_file_get_date_accessed): return a time_t, not a [const] char *. That makes it possible to localize properly. Plug leak. (go_set_file_permissions): Plug leaks and avoid dumping non-UTF8 error messages. (go_get_file_permissions): Plug leak. 2006-03-11 Jean Brefort * goffice/app/module-plugin-defs.h: add prototypes for go_plugin_init and go_plugin_shutdown. * goffice/graph/gog-theme.c: (gog_theme_find_element): initialized klass = NULL to avoid a warning. 2006-03-11 Jody Goldberg * goffice/gtk/go-combo-box.c : * goffice/gtk/go-color-palette.c : * goffice/gtk/go-combo-pixmaps.c : use g_object_ref_sink for newer versions of glib. * goffice/cut-n-paste/foocanvas : update * plugins/gnome_extensions/egg-recent-* : update 2006-03-06 Jean Brefort * goffice/app/io-context-priv.h: added a exec_main_loop flag to IOContext * goffice/app/io-context.c: (io_context_init), (io_context_set_property), (io_context_get_property), (io_context_class_init), (io_progress_update): ditto, and implement it as a GObject property. 2006-03-03 Eduardo Lima * goffice/utils/go-file.[ch] (go_file_get_owner_name): new (go_file_get_group_name): new (go_get_file_permissions): new (go_set_file_permissions): new (go_file_get_date_accessed): new (go_file_get_date_modified): new (go_file_get_date_changed): new 2006-03-03 Emmanuel Pacaud * goffice/graph/gog-renderer-cairo.c (grc_draw_polygon): implement stretched image. 2006-03-02 Emmanuel Pacaud * goffice/graph/gog-axis.c (gog_axis_view_size_allocate): fix axis label allocation. 2006-03-01 Jean Brefort * goffice/graph/gog-reg-curve.c: (gog_reg_curve_view_render): don't render segments outside the bounding box [#332990]. 2006-02-28 Emmanuel Pacaud * goffice/graph/gog-legend.c (cb_size_elements): don't push legend style here. Pass GogLegendView pointer directly. (cb_render_elements): don't push legend style here. Keep marker size to sane values. (cb_swatch_scale): calculate maximum and minimum marker size. (gog_legend_view_size_request): make swatch size a function of legend font size. (gog_legend_view_render): ditto. Keep marker size to sane values. * goffice/graph/gog-plot.c (gog_tool_move_plot_area_double_click): set position to automatic on double click. * goffice/graph/gog-object.c (gog_tool_move_object_double_click): ditto. * goffice/graph/gog-style.c (gog_style_get_marker): new. 2006-02-25 Jean Brefort * goffice/utils/go-file.c: (go_mime_type_get_description): use GOFFICE_WITH_GNOME instead of WITH_GNOME. 2006-02-25 Emmanuel Pacaud * goffice/graph/gog-object-prefs.glade: Use a combo_box for manual/automatic position selection. * goffice/graph/gog-plot-prefs.glade: ditto. * goffice/graph/gog-object.c (cb_manuel_position_changed): ditto. (gog_object_populate_editor): ditto. * goffice/graph/gog-plot.c (cb_manual_position_changed): ditto. Was cb_manual_toggle_changed. (cb_update_editor): ditto. (gog_plot_populate_editor): ditto. 2006-02-21 Emmanuel Pacaud Move plot area property editor to GogPlot. * goffice/graph/gog-axis-line.c (gog_tool_select_axis_point), (gog_tool_select_axis_render), (gog_tool_move_stop_bound_point), (gog_tool_move_stop_bound_render): check for axis type. * goffice/graph/gog-chart-prefs.glade: move to gog-plot-prefs.glade. * goffice/graph/gog-chart.c (chart_pref_state_free), (cb_plot_area_changed), (cb_manual_toggle_changed), (gog_chart_populate_editor): remove plot area property editor. * goffice/graph/gog-plot.c (plot_pref_state_free), (cb_plot_area_changed), (cb_manual_toggle_changed): new. (cb_axis_changed): axis type stored as object data. (cb_update_editor): new. (gog_plot_populate_editor): add plot area property editor. * plugins/plot_pie/gog-pie.c (gog_pie_plot_populate_editor): show plot area editor. (gog_pie_view_build_toolkit): and enable edition by mouse. * plugins/plot_surface/gog-surface.c (gog_contour_plot_populate_editor): show plot area editor. * goffice/graph/gog-renderer-cairo.c (grc_pixbuf_to_cairo): probably fix pixbuf to cairo data conversion for big endian in a renamed grc_invert_pixbuf_RB. * goffice/graph/gog-view.c (gog_tool_select_object_render): fix object outline. 2006-02-19 Ivan, Wong Yat Cheung * goffice/Makefile.am: use the right library version when making .lib file. 2006-02-18 Ivan, Wong Yat Cheung * configure.in: * dumpdef.pl: NEW * goffice.mk: * goffice-win32.mk: NEW * goffice/Makefile.am: * goffice/app/Makefile.am: * goffice/cut-n-paste/foocanvas/Makefile.am: * goffice/data/Makefile.am: * goffice/drawing/Makefile.am: * goffice/graph/Makefile.am: * goffice/gtk/Makefile.am: * goffice/ms-compat/Makefile.am: * goffice/utils/Makefile.am: [Win32] 1.) For every source directory of a library, pass all the public headers (with all #include removed) to the C preprocessor. 2.) Pass the result from 1. to a perl script which extracts names of all the public functions and variables. 3.) Concat all from step 2. to produce a single .def file at the top directory of the library. No --export-all-symbols anymore. * goffice/gtk/goffice-gtk.c: * goffice/utils/Makefile.am: * goffice/utils/go-file.c: win32-stub is no longer needed. * goffice/app/module-plugin-defs.h: * goffice/data/go-data.h: * goffice/graph/gog-axis-line-impl.h: * goffice/graph/gog-object-xml.h: * goffice/graph/gog-series-lines.h: * goffice/graph/gog-view.h: * goffice/gtk/go-combo-color.h: * goffice/utils/go-glib-extras.h: * goffice/utils/go-marker.h: * goffice/utils/regutf8.h: Remove non-exist public function declarations. 2006-02-16 Morten Welinder * goffice/utils/format.c (go_format_number): Fix handling of decimals. 2006-02-16 Morten Welinder * goffice/utils/format.c (go_format_number): Fix handling of decimals. 2006-02-13 Morten Welinder * goffice/utils/format.c (go_number_format_init): Renamed from number_format_init. All callers changed. (go_number_format_shutdown): Renamed from number_format_shutdown. All callers changed. * goffice/utils/formats.c (go_currency_date_format_init): Renamed from currency_date_format_init. All callers changed. (go_currency_date_format_shutdown): Renamed from currency_date_format_shutdown. All callers changed. * goffice/goffice.c (libgoffice_init): Call go_currency_date_format_init. (libgoffice_shutdown): Call go_currency_date_format_shutdown. 2006-02-10 Jean Brefort * goffice/component/go-component.h: add GOC_PARAM_PERSISTENT flag. 2006-02-08 Morten Welinder * plugins/reg_linear/gog-polynom-reg.c (append_number): New subroutine to get minuses right. 2006-02-06 Morten Welinder * plugins/reg_linear/gog-polynom-reg.c (gog_polynom_reg_curve_get_equation): Simplify. Handle exponents >= 10 again. Include highest terms. Drop "1" factors. Handle degenerate case of "y = 0". 2006-02-06 Morten Welinder * plugins/reg_linear/gog-polynom-reg.c: Constify. 2006-02-06 Jean Brefort * goffice/graph/gog-series-impl.h: add get_xy_data to GogSeriesClass (needed by regrerssion curves in histograms and line plots. * goffice/graph/gog-series.c: (gog_series_get_xy_data): new function. * goffice/graph/gog-series.h: ditto. * goffice/utils/go-regression.c: (go_power_regression): new regression method, (go_non_linear_regression): fix params updates. * goffice/utils/go-regression.h: new power regressions. * plugins/plot_barcol/gog-1.5d.c: (go_plugin_init): add a view to GogLinePlot to support regression curves [#328236]. * plugins/plot_barcol/gog-line.c: (gog_line_series_view_render), (gog_line_series_view_size_allocate), (gog_line_series_view_class_init), (gog_line_series_init_style), (gog_line_series_update), (gog_line_series_get_xy_data), (gog_line_series_finalize), (gog_line_series_class_init), (child_added_cb), (gog_line_plot_init), (gog_line_view_render), (gog_line_view_size_allocate), (gog_line_view_class_init): ditto. * plugins/plot_barcol/gog-line.h: ditto. * plugins/plot_boxes/gog-histogram.c: (gog_histogram_plot_update), (gog_histogram_plot_view_size_allocate), (gog_histogram_plot_view_class_init), (drop_lines_post_add), (gog_histogram_plot_series_update), (gog_histogram_plot_series_finalize), (gog_histogram_plot_series_get_xy_data), (gog_histogram_plot_series_class_init), (gog_histogram_plot_series_init): support regression curves. * plugins/reg_linear/Makefile.am: add new power regression. * plugins/reg_linear/gog-exp-reg.c: (gog_exp_reg_curve_get_equation): fixed equation [#328236]. * plugins/reg_linear/gog-lin-reg.c: (gog_lin_reg_curve_update), (gog_lin_reg_curve_get_equation), (gog_lin_reg_curve_populate_editor), (go_plugin_init): * plugins/reg_linear/gog-log-reg.c: (gog_log_reg_curve_get_equation): ditto. * plugins/reg_linear/gog-polynom-reg.c: (gog_polynom_reg_curve_get_equation): ditto. * plugins/reg_linear/gog-power.c: new power regression curves. * plugins/reg_linear/gog-power.h: ditto. * plugins/reg_linear/plugin.xml.in: ditto. * plugins/reg_linear/reg-types.xml.in: ditto. * plugins/reg_logfit/gog-logfit.c: (gog_log_fit_curve_update), (gog_log_fit_curve_get_equation): fixed equation [#328236]. 2006-01-29 Emmanuel Pacaud * goffice/graph/gog-graph.c (gog_graph_view_handle_event): correct use of GDK_POINTER_MOTION_HINT_MASK, according to gtk tutorial. There's still a problem with foocanvas which seems to eat a GDK_BUTTON_PRESS event. 2006-01-26 Morten Welinder * goffice/utils/go-math.c (go_math_init): Prevent compilation with -ffast-math. 2006-01-23 Jean Brefort * goffice/gtk/go-action-combo-color.c: (make_icon), (go_action_combo_color_connect_proxy): fixed warnings when using a combo action in a menu. * goffice/gtk/go-action-combo-pixmaps.c: (make_icon), (go_action_combo_pixmaps_connect_proxy): ditto. 2006-01-21 J.H.M. Dassen (Ray) * configure.in: Versioned the pixmap files and the translations to make complete parallel installability of packages easier. * docs/reference/Makefile.am, goffice/goffice.c, tests/Makefile.am: follow version change. 2006-01-05 Jody Goldberg * goffice.mk (goffice_include_dir) : version the include files to avoid conflict between stable and unstable. 2006-01-05 Jean Brefort * goffice/graph/goffice-graph.h: change GogSeriesLines definition. * goffice/graph/gog-series-lines.c: Change the way markers are managed. * goffice/graph/gog-series-lines.h: ditto. * goffice/utils/go-libxml-extras.c: (e_xml_get_child_by_name_by_lang): fix an internaionalization bug. * pixmaps/Makefile.am: add new histograms pixmaps. * pixmaps/chart_histogram_1_1.png: ditto. * pixmaps/chart_histogram_1_1.svg: ditto. * pixmaps/hist.xpm: ditto. * plugins/plot_barcol/gog-1.5d.c: (lines_post_add): add markers for lines in DropBar plots. * plugins/plot_boxes/Makefile.am: add histograms. * plugins/plot_boxes/gog-boxplot.c: (go_plugin_init): ditto. * plugins/plot_boxes/gog-histogram.c: ditto. * plugins/plot_boxes/gog-histogram.h: ditto. * plugins/plot_boxes/plot-types.xml.in: ditto. * plugins/plot_boxes/plugin.xml.in: ditto. 2006-01-01 Jean Brefort * plugins/plot_barcol/gog-minmax.c: fixed a marker display problem. 2006-01-03 Stepan Kasal * goffice/graph/gog-error-bar.h: #include * goffice/gtk/go-font-sel.c: #include for strcmp() 2006-01-02 Stepan Kasal * Makefile.am: Add DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc * docs/reference/Makefile.am (EXTRA_DIST): Add version.xml, to work around #314105. 2006-01-01 Stepan Kasal * docs/reference/Makefile.am (INCLUDES): Remove, it's redundant. (GTKDOC_CFLAGS): Add -I$(top_builddir). * docs/reference/goffice.types: #include 2006-01-01 Jean Brefort * goffice/utils/go-file.c: (go_mime_type_get_description): new gnome-vfs wrapper. * goffice/utils/go-file.h: ditto. * goffice/utils/go-font.c: moved inclusion of pango-context.h to header. * goffice/utils/go-font.h: ditto, removed unused panfo_fc header. 2005-12-30 Emmanuel Pacaud * goffice/graph/gog-renderer-cairo.c (grc_free_marker_data): new. (gog_renderer_cairo_finalize): call grc_free_marker_data. (grc_draw_path): don't draw a line if dash_type = GO_LINE_NONE. (grc_get_marker_surface): use cairo_surface_create_similar and draw marker here instead of use pixbuf given by go_marker_get_pixbuf. (gog_renderer_cairo_draw_marker): don't draw marker here for vector case, just paint a similar surface. (gog_renderer_cairo_push_style): free marker data. (gog_renderer_cairo_pop_style): ditto. 2005-12-30 Stepan Kasal * goffice/.cvsignore: Remove goffice-paths.sh. 2005-12-28 Emmanuel Pacaud * goffice/graph/gog-renderer-cairo.c (grc_draw_path): invalidate cairo dash setting when line is not dashed. (grc_draw_polygon): ditto. Fix a typo. (gog_renderer_cairo_draw_text): use pango_cairo API instead of toy cairo text API. (gog_renderer_cairo_get_text_OBR): ditto. 2005-12-22 Stepan Kasal * docs/reference/goffice-overrides.txt: New file, fixes "make dist". 2005-12-17 J.H.M. Dassen (Ray) * goffice/graph/gog-style.h: #include for GdkPixbuf; #include for PangoFontDescription. 2005-12-16 Jean Brefort * goffice/goffice-features.h.in: add GOFFICE_WITH_GTK and GOFFICE_WITH_GNOME. * configure.in: rename WITH_GTK and WITH_GNOME to GOFFICE_WITH_GTK and GOFFICE_WITH_GNOME. * goffice/graph/gog-error-bar.c: ditto. * goffice/graph/gog-error-bar.h: ditto. * goffice/gtk/goffice-gtk.c: (go_help_display): ditto. * goffice/utils/go-color.c: ditto. * goffice/utils/go-color.h: ditto (and include goffice-features.h). * goffice/utils/go-file.c: (go_filename_from_uri), (go_filename_to_uri), (go_shell_arg_to_uri), (go_basename_from_uri), (go_dirname_from_uri), (go_file_open), (go_file_create), (go_url_show), (go_get_mime_type), (go_get_mime_type_for_data): ditto. * goffice/utils/go-gradient.c: ditto. * goffice/utils/go-gradient.h: ditto (and include goffice-features.h). * goffice/utils/go-image.c: (go_image_format_to_mime), (go_image_build_pixbuf_format_infos), (go_image_get_formats_with_pixbuf_saver): ditto. * goffice/utils/go-line.c: ditto. * goffice/utils/go-marker.c: (go_marker_init), (go_marker_assign): ditto. * goffice/utils/go-marker.h: ditto (and include goffice-features.h). * goffice/utils/go-pattern.c: ditto. * goffice/utils/go-pattern.h: ditto (and include goffice-features.h). 2005-12-16 Jean Brefort * goffice/component/go-component-factory.c: remove go_components_set_screen_resolution * goffice/component/go-component-factory.h: ditto. * goffice/component/go-component.c: (go_component_set_size): do not set size if not resizable, (go_component_draw): draw to correct size whatever the zoom and the screen resolution. * goffice/component/go-component.h: changed signature of go_component_draw. 2005-12-16 Stepan Kasal * configure.in (PKG_PROG_PKG_CONFIG): Add an explanation. * autogen.sh: Add an explanation about REQUIRED_PKG_CONFIG_VERSION. 2005-12-13 Morten Welinder * configure.in: Undo change to PKG_PROG_PKG_CONFIG. 2005-12-13 Stepan Kasal * goffice/gtk/goffice-gtk.h, goffice/gtk/goffice-gtk.c: Move GOImageFormat, GOImageFormatInfo and related functions to ... * goffice/utils/go-image.h, goffice/utils/go-image.c: ... a new file. * goffice/utils/Makefile.am: Add them. * docs/reference/TODO: Update. 2005-12-13 Morten Welinder * goffice/utils/go-file.c (go_filename_to_uri): Resolve some ".." cases, namely those where no symlinks are involved. 2005-12-13 Stepan Kasal * goffice/component/go-component.c (go_component_export_to_svg): Do not use return without a value. 2005-12-12 Morten Welinder * goffice/graph/gog-object-xml.c (gog_object_write_xml_sax): Add precondition. See #323608. 2005-12-12 Emmanuel Pacaud * configure.in: bump cairo version requisition to 1.0.0. * goffice/graph/gog-graph.c (gog_graph_get_supported_image_formats): new. (gog_graph_export_image): new. * goffice/graph/gog-renderer-cairo.c (grc_line_size): handle case of vector rendering (for SVG, PDF, PS output). (gog_renderer_cairo_clip_push): ditto. (gog_renderer_cairo_line_size): ditto. (gog_renderer_cairo_sharp_path): ditto. (gog_renderer_cairo_draw_marker): ditto. (gog_renderer_cairo_draw_text): don't restrict text position to positive values. (gcr_gsf_gdk_pixbuf_save): new. (grc_cairo_write_func): new. (grc_cairo_setup): remove and move code... (gog_renderer_cairo_update): ...here. * goffice/graph/gog-renderer-impl.h (GogRenderer::export_image): new. * goffice/graph/gog-renderer-pixbuf.c (grp_gsf_gdk_pixbuf_save): new. (gog_renderer_pixbuf_export_image): new. * goffice/graph/gog-renderer-svg.c (gog_graph_export_to_svg): removed. (gog_graph_export_image): new. * goffice/graph/gog-renderer.c (gog_renderer_new_for_format): new. (gog_renderer_export_image): new. * goffice/gtk/goffice-gtk.c (gui_get_image_save_info): format is an enum now. (go_image_build_pixbuf_format_infos): new. (go_image_get_format_info): new. (go_image_get_format_from_name): new. (go_image_get_formats_with_pixbuf_saver): new. 2005-12-11 J.H.M. Dassen (Ray) * configure.in: Require pkg-config version that understands about private libraries. * libgoffice-1.pc.in: Moved @EXTRA_LIBS@ into Libs.private . 2005-12-07 Morten Welinder * goffice/gtk/go-format-sel.c (format_entry_set_text): Constify. (cb_format_list_select): Plug leak. 2005-12-06 Christian Neumair * goffice/graph/gog-object.c: * goffice/graph/gog-object.h: Add gog_object_get_child_by_name API. 2005-12-05 Jean Brefort * goffice/gtk/go-combo-box.c: undef GTK_DISABLE_DEPRECATED. [#323171] 2005-12-04 Emmanuel Pacaud * goffice/data/go-data-simple.c: doc fixes. 2005-12-04 Emmanuel Pacaud * goffice/graph/goffice-graph.h: declare GogSeriesLines here. * goffice/graph/gog-axis-line.h: make gtk-doc happy by creating a GogAxisTickTypes struct. * goffice/graph/gog-axis-line.c (gog_tool_move_stop_bound_move): don't access GogAxisMap::axis directly. * goffice/graph/gog-axis.c: make GogAxisMap and GogAxisMapDesc private. Doc fixes. * goffice/graph/gog-chart.c: make GogChartMap private. Documentation of GogChartMap API. * goffice/graph/gog-data-allocator.h: doc fixes. * goffice/graph/gog-data-allocator.c: ditto. * goffice/graph/gog-renderer-cairo.c: ditto. * goffice/graph/gog-renderer-pixbuf.c: doc fixes. * goffice/graph/gog-renderer-gnome-print.c: don't access GOMarker data directly. * goffice/graph/gog-renderer-svg.c: ditto. * goffice/graph/gog-series-lines.c: ditto. * goffice/gtk/go-combo-box.c: doc fixes. * goffice/gtk/go-combo-color.c: ditto. * goffice/gtk/go-combo-pixmaps.c: ditto. * goffice/gtk/go-combo-text.c: ditto. * goffice/gtk/go-dock-item.c: ditto. * goffice/utils/format.c: ditto. * goffice/utils/go-glib-extras: ditto. * goffice/utils/go-marker.c: make GOMarker struct private. 2005-12-03 Emmanuel Pacaud * goffice/graph/gog-axis: doc fixes. * goffice/graph/gog-chart.c: ditto. * goffice/graph/gog-error-bar.c: ditto. * goffice/graph/gog-object.c: ditto. * goffice/graph/gog-renderer.c: ditto. * goffice/graph/gog-series.c: ditto. * goffice/graph/gog-style.c: ditto. * goffice/graph/gog-view.c: ditto. * goffice/gtk/go-dock-item.c: ditto. * goffice/utils/format.c: ditto. * goffice/utils/go-geometry.c: ditto. * goffice/utils/go-pattern.c: ditto. * goffice/utils/go-regression.c: move doc from headers. 2005-12-03 Emmanuel Pacaud * goffice/graph/gog-styled-object.c: doc fixes. 2005-12-03 J.H.M. Dassen (Ray) * goffice/Makefile.am: Don't try to use pcre.la from cut-n-paste when using the system's pcre library. 2005-12-02 Morten Welinder * configure.in: Check for a system libpcre that supports UTF-8. * goffice/cut-n-paste/Makefile.am: Arrange to use system pcre when appropriate. * goffice/utils/Makefile.am: Ditto. * goffice/utils/regutf8.c: Ditto. 2005-12-02 Emmanuel Pacaud * configure.in: build docs/reference/version.xml 2005-12-02 Morten Welinder * goffice/utils/go-file.c (go_shell_arg_to_uri): Be more careful with filenames that contain colons. Fixed #322799. 2005-11-30 Morten Welinder * goffice/utils/go-file.c (go_filename_to_uri): Improve slightly for systems with more than one directory separator. 2005-12-01 Jon K Hellan * goffice/graph/gog-renderer.h: Fix typo. 2005-12-01 J.H.M. Dassen (Ray) * goffice/app/go-plugin.c, goffice/graph/gog-axis.c, goffice/graph/gog-chart.c, goffice/graph/gog-chart.h, goffice/graph/gog-data-set.c, goffice/graph/gog-graph.c, goffice/graph/gog-object.c, goffice/graph/gog-object.h, goffice/graph/gog-renderer.c, goffice/graph/gog-renderer.h, goffice/graph/gog-series.c, goffice/graph/gog-theme.c, goffice/graph/gog-theme.h, goffice/graph/gog-view.c, goffice/graph/gog-view.h, goffice/gtk/go-combo-color.c, goffice/gtk/go-combo-text.c, goffice/gtk/goffice-gtk.c, goffice/utils/datetime.c, goffice/utils/go-geometry.c, goffice/utils/go-libxml-extras.c: Some gtk-doc fixes. 2005-12-01 Emmanuel Pacaud Enable gtk-doc. * Makefile.am: add docs to SUBDIRS. * configure.in: add GTK_DOC_CHECK. Add docs Makefile to AC_CONFIG_FILES. * docs/Makefile.am: new. * docs/reference/Makefile.am: new. * docs/reference/goffice-sections.txt: new. Only include Goffice Graph API for now. * docs/reference/goffice-docs.sgml: ditto. * docs/reference/TODO: new. Contains remaining API sections. * goffice/graph/gog-error-bar.c (gog_error_bar_prefs): fix a gtk-doc warning. 2005-11-27 Jean Brefort * configure.in: create goffice/component/Makefile. * goffice/Makefile.am: add component subdir. * goffice/component/Makefile.am: new component API. * goffice/component/go-component-factory.c: ditto. * goffice/component/go-component-factory.h: ditto. * goffice/component/go-component.c: ditto. * goffice/component/go-component.h: ditto. * goffice/component/goffice-component.h: ditto. * goffice/goffice.c: (libgoffice_init), (libgoffice_shutdown): init/shutdown component sustem. * goffice/utils/go-file.c: (go_get_mime_type_for_data): new function. * goffice/utils/go-file.h: ditto. * libgoffice-1.pc.in: add GOffice_plugins_dir variable. 2005-11-23 Morten Welinder * goffice/utils/format.c (go_format_number): Handle the separation of numbers into whole and fractional part such that numbers from 2^31 and up do not invoke undefined behaviour. * goffice/utils/go-math.c (go_continued_fraction): Don't go to int-space until we have checked the size. 2005-11-20 Emmanuel Pacaud * goffice/graph/Makefile.am: always compile gog-renderer-pixbuf.c. 2005-11-20 Emmanuel Pacaud Fix smoothness of object movements in guru. * goffice/graph/gog-graph.c (gog_graph_view_handle_event): force update processing, and call gdk_window_get_pointer in order to get next motion event. * goffice/graph/gog-guru.c (graph_guru_init_format_page): add GDK_POINTER_MOTION_HINT_MASK to graph window event mask. 2005-11-18 Emmanuel Pacaud * goffice/graph/Makefile.am: don't build pixbuf renderer when cairo is enabled. * goffice/graph/gog-control-foocanvas.c (gog_control_foocanvas_set_property): don't use conditionnal compilation, but helper functions from gog-renderer.c. (gog_control_foocanvas_draw): ditto. (gog_control_foocanvas_update): ditto. (gog_control_foocanvas_class_init): ditto. * goffice/graph/gog-renderer-cairo.c (gog_renderer_cairo_clip_push): set clip from arbitrary path instead of rectangle region. (gog_renderer_cairo_draw_text): use 72 dpi for screen resolution. (gog_renderer_cairo_get_text_OBR): ditto. * goffice/graph/gog-renderer.c (gog_renderer_new_for_pixbuf): new. (gog_renderer_update): new. (gog_renderer_get_pixbuf): new. * goffice/gtk/go-graph-widget.c (go_graph_widget_size_allocate): use new helper functions from gog-renderer instead of requesting explicitely a pixbuf renderer. (go_graph_widget_expose_event): ditto. (idle_handler): ditto. (go_graph_widget_init): ditto. 2005-11-17 Emmanuel Pacaud * pixmap/chart_dropbar_1_[12].[svg,png]: fix rendering and bitmap. [#321675] 2005-11-16 Morten Welinder * goffice/graph/gog-object.c (gog_object_add_by_name): Add pre-condition. * goffice/graph/*.c: Fix preconditions to use IS_ forms. 2005-11-15 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (gog_tool_select_axis_point), (gog_tool_select_axis_render), (gog_tool_bound_is_valid_axis), (gog_tool_move_start_bound_point), (gog_tool_move_start_bound_render), (gog_tool_move_stop_bound_point), (gog_tool_move_stop_bound_render), (gog_tool_move_bound_init), (gog_tool_move_bound_destroy), (gog_tool_move_start_bound_move), (gog_tool_move_stop_bound_move): new. (x_process): store axis position for use in tools. (xy_process): ditto. (gog_axis_base_view_info_at_point): renamed to gog_axis_base_view_point, for use in tools. (gog_axis_base_build_toolkit): new. * goffice/graph/gog-axis.c (elem_toggle_data_free): new. (cb_update_dim_editor): new. (make_dim_editor): don't use closure, since they're not destroyed on watched object finalization, just invalidated. (cb_axis_fmt_assignment_toggled): removed. (gog_axis_populate_editor): remove dead code. (gog_axis_set_bounds): new. (gog_axis_set_extents): new. * goffice/graph/gog-graph.c: new selection-changed signal for GogGraphView objects. This signal is emitted when visual selection is changed after a mouse action. (gog_graph_view_render): new. (gog_graph_view_finalize): new. (update_cursor), (update_action): new. (gog_graph_view_handle_event): new. (gog_graph_view_set_selection): new. (gog_graph_view_get_selection): new. * goffice/graph/gog-grid-line.c (gog_grid_line_info_at_point): removed. * goffice/graph/gog-guru.c: now also store graph view in guru state. (graph_guru_state_destroy): unref graph view. (cb_attr_tree_selection_change): update visual selection. (cb_canvas_select_item): forward event to gog_graph_view_handle_event. (cb_graph_selection_changed): new. Update object tree. (graph_guru_init_format_page): store graph view in state. * goffice/graph/gog-object.c: new update-editor signal, emitted when an object editor needs to be refreshed. (cb_update_editor): new. (gog_object_populate_editor): connect to update-editor signal. (gog_object_request_editor_update): new. * goffice/graph/gog-plot.c (gog_tool_move_plot_area_point), (gog_tool_move_plot_area_render), (gog_tool_move_plot_area_init), (gog_tool_move_plot_area_move), (gog_tool_resize_plot_area_point), (gog_tool_resize_plot_area_render), (gog_tool_resize_plot_area_move), (gog_plot_view_build_toolkit), (gog_plot_view_class_init): new. * goffice/graph/gog-renderer.c (gog_renderer_finalize): unref grip style. (gog_renderer_draw_grip), (gog_renderer_push_selection_style): new. * goffice/graph/gog-renderer.h (gog_renderer_in_grip): new. * goffice/graph/gog-view.c (gog_tool_select_object_point), (gog_tool_select_object_render), (gog_tool_move_object_point), (gog_tool_move_object_init), (gog_tool_move_object_move), (gog_tool_resize_object_point), (gog_tool_resize_object_render), (gog_tool_resize_object_move), (gog_tool_action_new), (gog_tool_action_move), (gog_tool_action_double_click), (gog_tool_action_free): new. (gog_view_finalize): free toolkit. (gog_view_build_toolkit): new. (gog_view_queue_resize): purge dead code. (gog_view_info_at_point): removed. (gog_view_find_child_view): don't emit warning if child view is not found, since all objects don't have an assciated view. (gog_view_render_toolkit), (gog_view_get_toolkit), (gog_view_get_tool_at_point), (gog_view_get_view_at_point): new. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_info_at_point): removed. * plugins/plot_barcol/gog-dropbar.c (gog_dropbar_view_info_at_point): removed. * plugins/plot_barcol/gog-line.c (gog_line_view_info_at_point): removed. * plugins/plot_barcol/gog-minmax.c (gog_minmax_view_info_at_point): removed. * plugins/plot_pie/gog-pie-prefs.c (pie_pref_state_free): new. (cb_update_editor): new. (gog_pie_plot_pref): connect to update-editor signal. (gog_ring_plot_pref): ditto. * plugins/plot_pie/gog-pie.c (gog_pie_plot_set_default_separation): new. (find_element): new. (gog_tool_move_pie_point), (gog_tool_move_pie_render), (gog_tool_move_pie_init), (gog_tool_move_pie_move), (gog_tool_move_pie_double_click), (gog_pie_view_build_toolkit): new. (gog_pie_view_info_at_point): removed. * plugins/plot_radar/gog-radar.c (fmin): removed. (gog_rt_view_info_at_point): removed. * plugins/plot_xy/gog-xy.c (gog_xy_view_info_at_point): ditto. 2005-11-14 Jody Goldberg * configure.in : post BRANCH bump 2005-11-14 Jody Goldberg * Release 0.1.2 2005-11-13 Morten Welinder * goffice/goffice.c: Call bind_textdomain_codeset. 2005-11-07 Jody Goldberg * configure.in : post release bump 2005-11-06 Jody Goldberg * Release 0.1.1 2005-11-06 Jody Goldberg * goffice/graph/gog-style.c (gog_style_persist_prep_sax) : differentiate between line and outline. (gog_style_sax_load_line) : typo s/auto-dash/auto-color/ 2005-11-05 Jody Goldberg * goffice/graph/gog-style.c (gog_style_line_dom_save) : delete. (gog_style_gradient_dom_save) : delete. (gog_style_fill_dom_save) : delete. (gog_style_marker_dom_save) : delete. (gog_style_font_dom_save) : delete. (gog_style_text_layout_dom_save) : delete. (gog_style_persist_dom_save) : delete. (gog_style_sax_load_line) : use the correct state. (gog_style_sax_load_fill_pattern) : use the correct state. (gog_style_sax_load_fill_gradient) : use the correct state. (gog_style_sax_load_fill) : use the correct state. (gog_style_sax_load_marker) : use the correct state. (gog_style_sax_load_font) : use the correct state. (gog_style_sax_load_text_layout) : use the correct state. (gog_style_persist_prep_sax) : new. * goffice/graph/gog-object-xml.c (gog_persist_dom_save) : delete (gog_object_write_property) : delete. (gog_dataset_dom_save) : delete. (gog_object_write_xml) : delete. (gog_persist_prep_sax) : new. (gog_dataset_sax_save) : use gsf_xml_out_add_int instead of rolling our own. First pass at a sax based importer. (gog_xml_read_state_get_obj) : new. (gogo_dim_start) : new. (gogo_dim_end) : new. (gogo_prop_start) : new. (gogo_prop_end) : new. (gogo_start) : new. (gogo_end) : new. (go_sax_parser_done) : new. (gog_object_sax_push_parser) : new. * goffice/graph/gog-error-bar.c (gog_error_bar_persist_prep_sax) : new. (gog_error_bar_persist_dom_save) : delete. (geb_start) : delete. (gog_error_bar_persist_init) : adapt to new sax_prep interface. * configure.in : bump gsf req to 1.13.3 to get the updated semantics for the sax extension api. * README : ditto. 2005-11-03 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_load_values): do not take non finite values into account while calculating maximum. 2005-10-30 Jody Goldberg * goffice/app/go-plugin-loader-module.c (go_plugin_loader_module_load_base) : Use G_MODULE_BIND_LAZY as per http://bugzilla.gnome.org/show_bug.cgi?id=319557 2005-11-01 J.H.M. Dassen (Ray) * README: Updated list archive URL. (Debian #336699) 2005-10-30 Morten Welinder * goffice/utils/go-math.c (go_math_init): Save the right old_locale. * goffice/graph/gog-chart.c (axis_set_desc): Make static. * goffice/ms-compat/go-ms-parser.c (unknown_type): Make static. * goffice/utils/go-line.c (line_dashes): Make static. 2005-10-26 Morten Welinder * goffice/gtk/go-charmap-sel.c (charset_order, lgroups_order): Use precomputed collate key. (cs_class_init): Pre-compute collate keys before sorting. 2005-10-26 Stepan Kasal * goffice/graph/gog-object-xml.c: Remove #include glade/glade-build.h the code no longer uses glade xml utils. 2005-10-20 Morten Welinder * goffice/graph/gog-view.c (gog_view_render): Survive NaN allocation. Fixes #319309. 2005-10-17 Emmanuel Pacaud * goffice/graph/gog-object.c (gog_object_populate_editor): hide manual settings when manual position is not allowed. 2005-10-10 Jody Goldberg * configure.in : bump gsf req to avoid the breakage in 1.13.1 2005-10-10 Jody Goldberg * configure.in : post release bump 2005-10-10 Jody Goldberg * Release 0.1.0 2005-10-10 Jody Goldberg * goffice/graph/gog-object-xml.h (GogPersistClass) : Add sax_doc as a hook to support GsfXMLIn sax based import. * goffice/graph/gog-style.c (gog_style_persist_init) : whip up a quick dtd but do not implement. (Leak the doc) * goffice/graph/gog-error-bar.c (gog_error_bar_persist_init) : whip up a dtd (leak the doc). (geb_start) : implement it. 2005-10-09 Emmanuel Pacaud * goffice/graph/gog-label.c (gog_reg_eqn_view_class_init): default for show-eq and show-r2 is TRUE [#318316]. 2005-10-07 Jean Brefort * goffice/gtk/go-action-combo-pixmaps.c: (go_action_combo_pixmaps_create_tool_item): translate non goffice strings [#318042]. * goffice/gtk/goffice-gtk.c: (gui_get_image_save_info): ditto [#318043]. 2005-10-07 Emmanuel Pacaud * goffice/graph/gog-renderer-svg.c (fill_properties): fix gradient start / stop colors [#318191]. 2005-10-07 Jean Brefort * plugins/plot_surface/xl-surface.c: (xl_contour_plot_update): do not use num_elements for first series to caculate comlumns number. 2005-10-06 Jean Brefort * plugins/plot_surface/plugin.xml.in: add TM mention to Excel name and remove the description from the translation strings as it never appears in the UI. 2005-10-06 Jean Brefort * plugins/plot_surface/xl-surface.c (xl_contour_plot_axis_get_bounds): fixed axis bounds. 2005-10-05 Jean Brefort * goffice/utils/go-pattern.c: add /* xgettext:no-c-format */ before "75% Grey" and analogs. 2005-10-05 Jean Brefort * goffice/graph/gog-plot.c: (gog_plot_class_init): fixed typo. * goffice/graph/gog-style-prefs.glade: fixed a duplicate shortcut. * goffice/utils/regutf8.c: (go_regerror): fixed typo. 2005-10-05 Jean Brefort * goffice/graph/gog-guru-type-selector.glade: remove an unused label text. 2005-10-05 Jean Brefort * goffice/app/file.c: fixed localization issues [#317925]. * goffice/app/go-cmd-context.c: (go_cmd_context_get_type): ditto. * goffice/app/go-object.c: ditto. * goffice/app/go-plugin-loader-module.c: ditto. * goffice/app/go-plugin-loader.c: (go_plugin_loader_get_type): ditto. * goffice/app/go-plugin-service.c: ditto. * goffice/app/go-plugin.c: ditto. * goffice/data/go-data-simple.c: ditto. * goffice/data/go-data.c: ditto. * goffice/drawing/god-default-attributes.c: ditto. * goffice/drawing/god-paragraph-attributes.c: ditto. * goffice/goffice.c: (libgoffice_init): ditto. * goffice/graph/gog-axis-line.c: (gog_axis_base_populate_editor): ditto. * goffice/graph/gog-axis.c: (gog_axis_populate_editor): ditto. * goffice/graph/gog-chart.c: (gog_chart_populate_editor): ditto. * goffice/graph/gog-control-foocanvas.c: ditto. * goffice/graph/gog-error-bar.c: (gog_error_bar_prefs): ditto. * goffice/graph/gog-graph.c: ditto. * goffice/graph/gog-grid-line.c: ditto. * goffice/graph/gog-grid.c: ditto. * goffice/graph/gog-guru.c: (graph_guru_type_selector_new), (graph_guru_init): ditto. * goffice/graph/gog-label.c: (gog_reg_eqn_populate_editor): ditto. * goffice/graph/gog-legend.c: ditto. * goffice/graph/gog-object.c: (gog_object_populate_editor): ditto. * goffice/graph/gog-outlined-object.c: ditto. * goffice/graph/gog-plot-engine.c: ditto. * goffice/graph/gog-plot.c: ditto. * goffice/graph/gog-reg-curve.c: (gog_reg_curve_populate_editor): ditto. * goffice/graph/gog-series.c: ditto. * goffice/graph/gog-style.c: (font_init), (gog_style_populate_editor): ditto. * goffice/graph/gog-styled-object.c: ditto. * goffice/graph/gog-theme.c: ditto. * goffice/graph/gog-view.c: ditto. * goffice/gtk/go-action-combo-color.c: ditto. * goffice/gtk/go-action-combo-pixmaps.c: ditto. * goffice/gtk/go-action-combo-stack.c: ditto. * goffice/gtk/go-action-combo-text.c: ditto. * goffice/gtk/go-charmap-sel.c: ditto. * goffice/gtk/go-color-palette.c: ditto. * goffice/gtk/go-combo-box.c: ditto. * goffice/gtk/go-combo-pixmaps.c: ditto. * goffice/gtk/go-dock-band.c: ditto. * goffice/gtk/go-dock-item-grip.c: ditto. * goffice/gtk/go-dock-item.c: (go_dock_item_get_grip): ditto. * goffice/gtk/go-dock-layout.c: ditto. * goffice/gtk/go-dock.c: ditto. * goffice/gtk/go-font-sel.c: (gfs_init): ditto. * goffice/gtk/go-format-sel.c: (nfs_init): ditto. * goffice/gtk/go-locale-sel.c: ditto. * goffice/gtk/go-optionmenu.c: (go_option_menu_scroll_event): ditto. * goffice/gtk/go-rotation-sel.c: (grs_init): ditto. * goffice/gtk/goffice-gtk.c: ditto. * goffice/utils/format.c: ditto. * goffice/utils/formats.c: ditto. * goffice/utils/go-format-match.c: (format_match_release): ditto. * goffice/utils/go-glib-extras.c: ditto. * goffice/utils/go-gradient.c: ditto. * goffice/utils/go-line.c: ditto. * goffice/utils/go-marker.c: ditto. * goffice/utils/go-pattern.c: ditto. * goffice/utils/regutf8.c: ditto. * plugins/plot_barcol/gog-1.5d.c: ditto. * plugins/plot_barcol/gog-barcol-prefs.c: (gog_barcol_plot_pref): ditto. * plugins/plot_barcol/gog-barcol.c: ditto. * plugins/plot_barcol/gog-dropbar.c: ditto. * plugins/plot_barcol/gog-line.c: ditto. * plugins/plot_barcol/gog-minmax.c: ditto. (gog_minmax_plot_populate_editor): ditto. * plugins/plot_boxes/gog-boxplot.c: (gog_box_plot_pref): ditto. * plugins/plot_pie/gog-pie-prefs.c: (gog_pie_series_element_pref), (gog_pie_plot_pref), (gog_ring_plot_pref), (gog_pie_series_pref): ditto. * plugins/plot_pie/gog-pie.c: ditto. * plugins/plot_radar/gog-radar.c: ditto. * plugins/plot_surface/gog-contour-prefs.c: ditto. (gog_contour_plot_pref): ditto. * plugins/plot_surface/gog-surface.c: ditto. * plugins/plot_surface/xl-surface.c: ditto. * plugins/plot_xy/gog-bubble-prefs.c: (gog_bubble_plot_pref): ditto. * plugins/plot_xy/gog-xy.c: ditto. * plugins/reg_linear/gog-exp-reg.c: ditto. * plugins/reg_linear/gog-lin-reg.c: ditto. * plugins/reg_linear/gog-log-reg.c: ditto. * plugins/reg_linear/gog-polynom-reg.c: ditto. * plugins/reg_logfit/gog-logfit.c: ditto. 2005-10-03 Jean Brefort * goffice/graph/gog-object-xml.c (gog_object_set_arg_full) : do not call g_value_init before gsf_xml_gvalue_from_str. 2005-10-03 Jean Brefort * plugins/plot_surface/gog-surface.c: (gog_contour_plot_axis_get_bounds), (gog_contour_view_render): start discrete axis scale from 1. (gog_contour_plot_set_property): update Y axis when transposing (add missing line). 2005-10-02 Jody Goldberg * configure.in : bump libgsf req. * goffice/graph/gog-object-xml.c (gog_object_set_arg_full) : the general stuff was split out and moved to the libgsf. Use the new gsf_xml_gvalue_from_str. 2005-10-02 Jody Goldberg * plugins/plot_surface/gog-surface.c (gog_contour_plot_set_property) : Don't signal the axis if they are not set yet. Don't do anything if things are not changing. 2005-10-01 Stepan Kasal * configure.in (GOFFICE_LIB_VERSION): Rename to ... (VERSION_INFO): ... and fix it, adding an explanation. * goffice/Makefile.am (GOFFICE_LIB_VERSION, VERSION_INFO): Likewise. 2005-09-30 Jean Brefort * goffice/graph/gog-error-bar.c: (cb_destroy), (cb_type_changed): unref the error bar when appropriate. 2005-09-26 Jody Goldberg * goffice/utils/format.c (go_format_unref) : merge in format_destroy there was no utility in keeping them distinct. Do not warn about the final unref of a markup style, they are not kept in the global cache. (go_format_new_markup) : do not put markup formats in the global cache. We do not really want to share them, and the old code would replace existing formats in the rare situation where some rich text formating happened to be used in the same way in two places eg C sub 1 vs C sub 2 (go_format_parse_markup) : support rise. (cb_attrs_as_string) : ditto. 2005-09-28 Jean Brefort * goffice/graph/gog-data-set.c: (gog_dataset_dup_to_simple): fixed an inverted test. 2005-09-25 Emmanuel Pacaud * goffice/graph/gog-graph.c (gog_graph_view_class_init): clip to graph area. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text): fix text clipping. 2005-09-23 Emmanuel Pacaud * goffice/graph/gog-axis.c (gog_axis_view_padding_request): axis title follows axis line now [#317009]. (gog_axis_view_size_allocate): ditto. 2005-09-22 Emmanuel Pacaud * goffice/graph/gog-theme.c (gog_themes_init): set regression equation fill color to white. 2005-09-21 Morten Welinder * goffice/utils/go-glib-extras.c (go_guess_encoding): Return explicit endianness for UTF-16 encodings. 2005-09-21 Emmanuel Pacaud * goffice/graph/gog-axis.c (gog_axis_view_padding_request): pass available to gog_view_size_request. (gog_axis_view_size_allocate): ditto. * goffice/graph/gog-label.c (gog_text_view_size_request): ditto. * goffice/graph/gog-legend.c (gog_legend_view_size_request): multicolumn/line and horizontal layout support. (cb_render_elements): ditto. (gog_legend_view_render): ditto. * goffice/graph/gog-view.c (gog_view_size_request_real): use different parameters for different meanings. (gog_view_size_request): ditto. (gog_view_size_allocate_real): pass available to gog_view_size_request. (gog_view_render): don't render when allocation is invalid, not residual. (gog_view_size_child_request): return additionnal requisition and minimum child requisition. 2005-09-17 Emmanuel Pacaud * goffice/utils/go-geometry.c: use hypot and atan2 functions. 2005-09-16 Morten Welinder * goffice/graph/gog-renderer.c (gog_renderer_get_text_OBR): Always set ->alpha. 2005-09-14 Jody Goldberg * goffice/graph/gog-style.c (text_layout_init) : use GORotationSel 2005-09-15 Morten Welinder * goffice/utils/regutf8.c (go_regcomp): Improve error handling. 2005-09-12 Jean Brefort * plugins/reg_logfit/gog-logfit.c: (gog_log_fit_curve_get_equation): fixed a sign in displayed equation. 2005-09-12 Jean Brefort * configure.in: add plugins/reg_logfit/Makefile * goffice/graph/gog-reg-curve.c: (gog_reg_curve_populate_editor), (gog_reg_curve_finalize), (gog_reg_curve_class_init), (gog_reg_curve_get_R2): changed api to support more regressions types. * goffice/graph/gog-reg-curve.h: ditto. * plugins/Makefile.am: added reg_logfit subdir. * plugins/reg_linear/Makefile.am: added exp, log and polynom regs. * plugins/reg_linear/gog-exp-reg.c: implement exponential regressions. * plugins/reg_linear/gog-exp-reg.h: ditto. * plugins/reg_linear/gog-lin-reg.c: updated to support other linear regression types: log, exp and polynom. * plugins/reg_linear/gog-lin-reg.h: ditto. * plugins/reg_linear/gog-log-reg.c: implement logarithmic regressions. * plugins/reg_linear/gog-log-reg.h: ditto. * plugins/reg_linear/gog-polynom-reg.c: implement polynomial regressions. * plugins/reg_linear/gog-polynom-reg.h: ditto. * plugins/reg_linear/plugin.xml.in: add the new types. * plugins/reg_linear/reg-types.xml.in: ditto. * plugins/reg_logfit/Makefile.am: new file. Implements log fits analog to the gnumeric LOGFIT function. * plugins/reg_logfit/gog-logfit.c: ditto. * plugins/reg_logfit/gog-logfit.h: ditto. * plugins/reg_logfit/plugin.xml.in: ditto. * plugins/reg_logfit/reg-types.xml.in: ditto. 2005-09-10 Stepan Kasal * goffice/utils/go-file.h (go_shell_argv_to_glib_encoding): Changed the return value to "gchar const **". (go_shell_argv_to_glib_encoding_free): New function, frees the args array created by go_shell_argv_to_glib_encoding. * goffice/utils/go-file.h (saved_args, saved_argc): New static variables. (go_shell_argv_to_glib_encoding): Store args and argc to saved_args and saved_argc; adapted to the changed type of return value. Moved to the end of the file. (go_shell_argv_to_glib_encoding_free): Implement. 2005-09-08 Morten Welinder * goffice/utils/format.c (split_time): Add precision argument. (guess_invprecision): Crude hack to guess precision. 2005-09-08 Jody Goldberg * goffice/utils/format.c (number_format_init) : add an unref when formats are removed from the cache. (cb_format_leak) : ignore the ref from the cache. (go_format_unref) : warn if final unref and format is still in cache. (number_format_shutdown) : work around the warning in _unref. (go_format_new_from_XL) : give a ref to the cache and the caller. (go_format_new_markup) : ditto. 2005-09-08 Jody Goldberg * configure.in : post release bump. jump to 0.1.0 in preparation for release 2005-09-08 Jody Goldberg * Release 0.0.4 2005-09-05 Jody Goldberg * goffice/utils/format.c (go_format_number) : Show 0/??? for fractions with no integer component. [#315018] 2005-09-05 Jody Goldberg * goffice/utils/go-format-match.c (format_create_regexp) : match correct number of digits in denominator. 2005-09-05 Stepan Kasal * goffice/graph/gog-reg-curve.c (skip_invalid_toggled_cb): Move this function next to gog_reg_curve_populate_editor, where it is used. (gog_reg_curve_set_property), (gog_reg_curve_class_init): Fix consts. 2005-09-05 Jean Brefort * goffice/graph/gog-reg-curve-prefs.glade: add a check box to allow invalid data skipping [#312788]. * goffice/graph/gog-reg-curve.c: (skip_invalid_toggled_cb), (gog_reg_curve_populate_editor), (gog_reg_curve_get_property), (gog_reg_curve_set_property), (gog_reg_curve_class_init): ditto. * goffice/graph/gog-reg-curve.h: add skip_invalid to GogRegCurve and remove obsolete members. * plugins/reg_linear/gog-lin-reg.c: (gog_lin_reg_curve_update): use GogRegCurve::skip_invalid [#312788] and use code in go-regression.c. 2005-09-04 Emmanuel Pacaud * goffice/graph/gog-renderer-svg.c (fill_properties): set fill pattern opacity. 2005-09-02 Jody Goldberg * goffice/app/io-context.c (gnm_io_context_processing_file) : people do not want to see escaped uri's in the progress bar. 2005-09-02 Jody Goldberg * goffice/utils/format.c : Add GOFormatElement::forces_text. (format_entry_ctor) : initialize it to FALSE. (format_compile) : '@' sets it to TRUE. 2005-08-31 Jean Brefort * goffice/utils/Makefile.am: add go-regression.* and go-rangefuncs.* * goffice/utils/go-rangefunc.c: imported various functions from gnumeric and build both double and long double versions if long double is available. * goffice/utils/go-rangefunc.h: ditto. * goffice/utils/go-regression.c: ditto. * goffice/utils/go-regression.h: ditto. 2005-08-29 Jody Goldberg * goffice/utils/format-impl.h : s/StyleFormatEntry/GOFormatElement/ Move the regexp into here from. * goffice/utils/go-format.h : here. s/StyleFormat/GOFormat/ 2005-08-26 Jody Goldberg * goffice/graph/gog-plot.c (gog_plot_new_series) : add some safety. * goffice/graph/gog-data-set.c (gog_dataset_set_dim) : add some safety for invalid datasets, being careful to avoid leaking the new val. 2005-08-24 Stepan Kasal The roles hash is now inherited by subclasses, with copy-on-write. * goffice/graph/gog-object.h (GogObject) : New flag, indicates whether this function is resposible to free the hash. (gog_object_unregister_role): Removed. * goffice/graph/gog-object.c (gog_object_unregister_role): Removed. (gog_object_base_finalize): Free the hash, if it's ours. (gog_object_base_init): Set roles_allocated to FALSE, indicating that the inherited hash is read-only. (gog_object_register_roles): When first used for a class, call ... (gog_object_allocate_roles): ... this new function, which creates a new hash and fill is with inherited values, if any, using... (cb_copy_hash_table): ... this new helper function. * goffice/graph/gog-series.c (gog_series_base_init): Nuke, moving the roles registration code ... (gog_series_class_init): ... here. * plugins/plot_barcol/gog-1.5d.c (gog_series1_5d_base_class_finalize): Nuke. * plugins/plot_xy/gog-xy.c (gog_xy_series_base_finalize): Nuke. 2005-08-24 Stepan Kasal * goffice/utils/go-math.c (go_math_init): Fix the bugzilla URL. 2005-08-18 Emmanuel Pacaud * goffice/graph/gog-reg-curve.c (gog_reg_curve_view_render): clip to residual area. * plugins/plot_xy/gog-xy.c (gog_xy_view_render): don't clip children, we want to be able to show equation outside of plot area. 2005-08-18 Stepan Kasal * goffice/utils/go-pattern.c (go_pattern_get_svg_path): Issue an error if the pattern is not found. * plugins/plot_xy/gog-xy.c (gog_xy_view_render): Silence the compiler. 2005-08-18 Emmanuel Pacaud Make GogRegEqn and GogLabel a derived class of GogText. * goffice/graph/gog-reg-eqn.[ch]: removed. * goffice/graph/Makefile.am: remove references to gog-reg-eqn.[ch]. * goffice/graph/gog-label.c: rename GogLabel class to GogText. Implement GogLabel as a derived class of GogText and a GogDataSet interface. (gog_text_get_str): new. Implement GogRegEqn as a derived class of GogText. (gog_reg_eqn_populate_editor): remove code related to position. (gog_reg_eqn_class_init): remove position properties. rename GogLabelView to GogTextView. (gog_text_view_render): get content from gog_text_get_str. * goffice/graph/gog-reg-eqn-prefs.glade: fix layout. Remove position widgets. * goffice/graph/gog-reg-curve-prefs.glade: fix layout. 2005-08-16 Emmanuel Pacaud Fix position constistency between discrete and linear axes. Enable user set bounds for discrete axes [#309468]. * goffice/graph/gog-chart.c (gog_chart_map_new): th1 = maximum now, not maximum + 1. (calc_polygon_parameters): ditto. take start theta (th0) into account. * goffice/graph/gog-axis-line.c (axis_circle_render): ditto. (radar_process): ditto. * goffice/graph/gog-grid-line.c (gog_grid_line_view_render): ditto. * goffice/graph/gog-grid.c (gog_grid_view_render): ditto. * goffice/utils/go-math.c (go_rint): new. * goffice/graph/gog-axis.c (map_discrete_calc_ticks): fix label when minimum != 1. (gog_axis_populate_editor): enable minimum et maximum editor for discrete axes. * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_get_bounds): minimum = 1.0 now. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): use GogChartMap facilities. minimum = 1.0 now. * plugins/plot_barcol/gog-line.c (gog_line_view_render): minimum = 1.0 now. * plugins/plot_radar/gog-radar.c (gog_rt_plot_update): ditto. (gog_rt_view_render): take start theta (th0) into account. 2005-08-17 Jean Brefort * plugins/plot_boxes/gog-boxplot.c: (gog_box_plot_update), (gog_box_plot_view_render), (float_compare), (gog_box_plot_series_update): use raw data instead of min, max, median and quartiles. Fixes #308136. * plugins/plot_boxes/plot-types.xml.in: removed obsolete comment. 2005-08-16 Emmanuel Pacaud * plugins/plot_xy/gog-xy.c (gog_xy_view_render): use GogChartMap facilities. * plugins/plot_barcol/gog-line.c (gog_line_view_render): ditto. be consistent with GogXYPlot. 2005-08-16 Stepan Kasal * goffice/graph/gog-axis.c (gog_axis_get_grid_line): Fix typo in the comment. 2005-08-15 Morten Welinder * configure.in: Post release bump 2005-08-15 Morten Welinder * Release 0.0.3 2005-08-15 Jean Brefort * goffice/graph/gog-object-xml.c: (gog_object_new_from_xml): return NULL if dynamic type is not available. 2005-08-15 Emmanuel Pacaud * goffice/graph/gog-guru.c (cb_graph_guru_add_plot): call gog_plot_guru_helper if plot is added from porerty editor page. 2005-08-15 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_bounds): minimum or maximum may be NULL. (map_log_bounds): ditto. * goffice/graph/gog-series-lines.c (gog_series_lines_render): draw sharp lines. * plugins/plot_xy/gog-xy.c (gog_xy_view_render): draw drop lines from point to axis start. 2005-08-15 Emmanuel Pacaud * goffice/graph/goffice-graph.h: new GOG_POSITION_IS_SPECIAL and GOG_POSITION_IS_PADDING macros for determining GogPosition type. Simple == test doesn't work. * goffice/graph/gog-axis.c (gog_axis_view_padding_request): use these macros. (gog_axis_view_size_allocate): ditto. * goffice/graph/gog-chart.c (gog_chart_view_size_allocate): ditto. * goffice/graph/gog-graph.c (gog_graph_view_size_allocate): ditto. * goffice/graph/gog-view.c (gog_view_padding_request_real): ditto. (gog_view_size_allocate_real): ditto. (gog_view_size_child_request): ditto. * goffice/graph/gog-object.c (gog_object_position_cmp): ditto. (gog_object_populate_editor): fix manual_toggle widget handling. (cb_anchor_changed): set position to manual if anchor changes. 2005-08-14 Emmanuel Pacaud Fix clipping of polar plots. Renamed all clip_push, clip_pop functions to push_clip, pop_clip for consistency with push_style, pop_style. * goffice/graph/gog-renderer-gnome-print.c (print_make_rectangle_path): removed. (gog_renderer_gnome_print_push_clip): clipping region is a path now. (gog_renderer_gnome_print_draw_path): clip dashed line to graph bbox. (gog_renderer_gnome_print_draw_polygon): ditto. (gog_graph_print_to_gnome_print): stire graph bbox. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_push_clip): handle clipping region as path, assuming nested region is included in parent one. (gog_renderer_pixbuf_pop_clip): free clip svp. (gog_renderer_pixbuf_do_clip): new. (gog_renderer_pixbuf_draw_path): call gog_renderer_pixbuf_do_clip. clip dashed line to graph bbox. (gog_renderer_pixbuf_draw_polygon): ditto. * goffice/graph/gog-renderer-svg.c (gog_renderer_svg_push_clip): clipping region is a path now. * goffice/graph/gog-renderer.c (gog_renderer_push_clip): ditto. (gog_renderer_pop_clip): ditto. Free clip_path. (gog_renderer_get_rectangle_vpath): new. * goffice/graph/gog-view.c (gog_view_render): clipping region is a path now. * plugins/plot_barcol/gog-line.c (gog_line_view_render): ditto. * plugins/plot_radar/gog-radar.c (gog_rt_plot_guru_helper): force auto_dash to FALSE. (gog_rt_view_render): add correct polar clipping. (gog_rt_series_init_style): don't disable marker theming. 2005-08-14 Jean Brefort * goffice/graph/gog-series.c: (gog_series_class_init), (gog_series_base_init): moved roles registering from class_init to base_init. 2005-08-13 Jean Brefort * goffice/graph/gog-chart.c: (calc_circle_parameters): fix a dangerous comparison and avoid resulting infinite loops. 2005-08-13 Emmanuel Pacaud * goffice/graph/gog-view.c (gog_view_info_at_point): walk the list in reverse order. 2005-08-12 Emmanuel Pacaud Add pattern support for SVG renderer [#310320]. * goffice/graph/gog-renderer-svg.c (fill_properties): add support for patterns. * goffice/utils/Makefile.am: install svg-patterns.xml in goffice_datadir/patterns. * goffice/utils/go-pattern.c: fix thin-rev-diag str in go_patterns. (go_pattern_get_svg_path): new. * goffice//utils/svg-patterns.xml: new. 2005-08-12 Jean Brefort * goffice/graph/gog-grid-line.c: (gog_grid_line_view_render): fix a memory leak * goffice/graph/gog-plot.c: (gog_plot_finalize): and one more. 2005-08-12 Jean Brefort * goffice/graph/gog-object.c: (gog_object_clear_parent), (gog_object_set_parent): do not set class before checking object validity. 2005-08-11 Morten Welinder * goffice/utils/go-format-match.c (format_create_regexp): Fix buffer overrun problem exibited while loading file from #313150. 2005-08-11 Jean Brefort * goffice/app/go-plugin-loader-module.c: updated to new GSF_CLASS_FULL signature. * goffice/app/io-context.c: ditto. * goffice/graph/gog-axis-line.c: ditto. * goffice/graph/gog-axis.c: ditto. * goffice/graph/gog-error-bar.c: ditto. * goffice/graph/gog-label.c: ditto. * goffice/graph/gog-reg-curve.c: ditto. * goffice/graph/gog-series.c: ditto. * goffice/graph/gog-style.c: ditto. * plugins/plot_barcol/gog-1.5d.c: updated to new GSF_DYNAMIC_CLASS_FULL signature. * plugins/plot_xy/gog-xy.c: ditto and use base_finalize instead of class_finalize. 2005-08-10 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (axis_circle_render): fix label overlap of 0° and 360° ticks. GogPlot::guru_helper implementation for automatic addition of objects when creating graphs in guru. * goffice/graph/gog-axis.c (role_grid_line_can_add): removed. (role_grid_line_major_can_add): use new gog_axis_get_grid_line function. (role_grid_line_minor_post_add): ditto. (gog_axis_get_grid_line): new. * goffice/graph/gog-chart.c (role_plot_pre_remove): remove GogChart::grid if new axis set is not compatible. (role_grid_can_add): add GOG_AXIS_SET_RADAR in list of axis sets compatible with GogGrid. (gog_chart_axis_set_assign): don't handle GogGrid object here. * goffice/graph/gog-guru.c (graph_typeselect_minor): remove current chart, not only plot. Call GogPlot::guru_helper for additionnal objects. * goffice/graph/gog-plot.c (gog_plot_set_property): add new guru-hints property, which is a semicolon separated list of hints for GogPlot::guru_helper. (gog_plot_get_property): ditto. (gog_plot_class_init): ditto. (gog_plot_guru_helper_add_grid_line): new. (gog_plot_guru_helper): new. * plugins/plot_barcol/plot_types.xml.in: add "backplane" hint for all plots. * plugins/plot_box_plot/plot_types.xml.in: ditto. * plugins/plot_radar/gog-radar.c (gog_rt_plot_guru_helper): new. Handle "circular-no-line" guru hint. * plugins/plot_radar/plot-types.xml.in: add "circular-no-line" hint to radar plots. add "major-grid" and "backplane" to polar plot. * plugins/plot_xy/plot-types.xml.in: add "backplane" to all plots. 2005-08-10 Jean Brefort * plugins/plot_barcol/gog-1.5d.c: (gog_series1_5d_register_type): use base_finalize instead of class_finalize since we have derived classes. 2005-08-08 J.H.M. Dassen (Ray) * *: Updated FSF's address. 2005-08-07 Stepan Kasal * goffice/graph/Makefile.am (goffice_gladedir): Rename to ... (gladedir): ..., to prevent conflicts--goffice_gladedir is AC_SUBSTed. * goffice/gtk/Makefile.am (goffice_gladedir, gladedir): Likewise. 2005-08-06 Jean Brefort * goffice/goffice.c: (libgoffice_init): add call to GOG_SERIES_LINES_TYPE. * goffice/graph/Makefile.am: add gog-series-lines.[c,h]. * goffice/graph/gog-object.c: (gog_object_unregister_role): new function. * goffice/graph/gog-object.h: ditto. * goffice/graph/gog-series-lines.c: moved from plugins/plot_barcol. * goffice/graph/gog-series-lines.h: ditto. * plugins/plot_barcol/Makefile.am: remove gog-series-lines.[c,h]. * plugins/plot_barcol/gog-1.5d.c: (gog_series1_5d_class_finalize), (gog_series1_5d_get_type), (gog_series1_5d_register_type), (go_plugin_init): unregister roles when class is destroyed. * plugins/plot_barcol/gog-barcol.c: update path to gog-series-lines.h. * plugins/plot_barcol/gog-dropbar.c: ditto. * plugins/plot_barcol/gog-line.c: ditto. * plugins/plot_barcol/gog-minmax.c: ditto. * plugins/plot_barcol/gog-series-lines.c: moved to goffice/graph/. * plugins/plot_barcol/gog-series-lines.h: ditto. * plugins/plot_xy/gog-xy.c: add horizontal and vertical droplines. * plugins/plot_xy/gog-xy.h: ditto. 2005-08-04 Jean Brefort * goffice/utils/go-line.c (go_line_build_bpath): do not access data outside of allocated arrays. 2005-08-04 Stepan Kasal * goffice/utils/go-file.c: #include unistd.h, for dup(). 2005-08-04 Emmanuel Pacaud Allow user to delete all plots of a chart and re-add new plots with different axis set. * goffice/graph/gog-axis-line.c (gog_axis_base_get_crossed_axis_type): handle GOG_AXIS_SET_UNKNOW. (gog_axis_base_view_info_at_point): ditto. Do nothing. (gog_axis_base_view_padding_request): ditto. (gog_axis_base_view_render): ditto. * goffice/graph/gog-chart.c (role_plot_pre_remove): if there's no plot left, reset axis_set to GOG_AXIS_SET_UNKNOW. (gog_chart_axis_set_assign): don't touch axes if axis_set == GOG_AXIS_SET_UNKNOW. * goffice/graph/gog-guru.c (cb_graph_guru_delete_item): select parent row after item is deleted, because if we do this before, parent->add submenu is sometimes incorrect. 2005-08-04 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (gog_axis_base_view_info_at_point): handle GOG_AXIS_SET_XY_pseudo_3d. * goffice/graph/gog-chart.c (gog_axis_set_from_str): new. * goffice/graph/gog-guru.c (cb_plot_family_menu_create): show only family with compatible axis set. * goffice/graph/gog-label.c (gog_label_init_style): only change text orientation if auto flag is TRUE. * goffice/graph/gog-plot-engine.c (cb_pending_plot_types_load): load axis_set from plot-types.xml. (gog_plot_family_register): set axis_set. * goffice/graph/gog-plot-impl.h: now store axis_set in GogPlotClass. No need for GogPlot::axis_set_pref, GogPlot::axis_set_is_valid and GogPlot::axis_set_assign. * goffice/graph/gog-plot.c (gog_plot_axis_set_pref): use GogPlot::axis_set. (gog_plot_axis_set_is_valid): ditto. (gog_plot_axis_set_assign): ditto. * goffice/graph/gog-style.c (gog_style_assign): assign GogStyle::text_layout.auto_angle too. (gog_style_force_auto): init GogStyle::text_layout.auto_angle. (gog_style_set_text_angle): force auto_angle to FALSE. * goffice/gtk/goffice-gtk.c (go_gtk_button_new_with_stock): fix compilation warning. * plugins/plot_*/gog*.c: remove axis_set_pref, axis_set_is_valid, axis_set_assign functions. Set GogPlotClass::axis_set value. * plugins/plot_*/plot-types.xml.in: Add axis_set property. 2005-08-04 J.H.M. Dassen (Ray) * README, configure.in: Bumped libgsf requirements as goffice/utils/go-file.c needs gsf_input_stdio_new_FILE which is only in libgsf HEAD. 2005-08-03 Jody Goldberg * goffice/gtk/goffice-gtk.c (go_gtk_button_new_with_stock) : Use gtk_button_set_image to avoid the kludgery that broken settings. (go_gtk_dialog_add_button) : merged from gnumeric. 2005-08-03 Morten Welinder * goffice/utils/go-file.c (go_file_open): Handle URIs like "fd://0". 2005-08-03 Stepan Kasal * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text): Fix a typo; add an initialization to silence a warning. 2005-08-03 Stepan Kasal In many Makefile.am's, use the "dist_" prefix instead of adding the variable to EXTRA_DIST. * goffice/graph/Makefile.am (cairo_sources, cairo_headers): Nuke; instead, append to the variables directly. 2005-08-03 Emmanuel Pacaud Cairo renderer build fixes. * goffice/graph/gog-renderer-cairo.c (gog_renderer_cairo_draw_text): fix size. (gog_renderer_cairo_get_text_OBR): ditto. (gog_renderer_cairo_update): graph size is a property of GogGraph now. 2005-07-28 Emmanuel Pacaud Who said text angle is not a style property ? * goffice/graph/gog-axis-line.c (gog_axis_base_set_property): remove label-angle property. (gog_axis_base_get_property): ditto. (gog_axis_base_class_init): ditto. (gog_axis_base_set_label_angle): removed. (cb_label_angle_changed): removed. (gog_axis_base_populate_editor): remove UI for label angle. * goffice/graph/gog-axis-prefs.glade: ditto. * goffice/graph/gog-axis.c (role_label_post_add): removed. (role_label_can_add): new. (gog_axis_init_style): if axis is GOG_AXIS_PSEUDO_3D, no style. * goffice/graph/gog-label.c (gog_label_set_angle): removed. (gog_label_set_property): remove angle property. (gog_label_get_property): ditto. (gog_label_class_init): ditto. (label_pref_state_free): removed. (cb_angle_changed): removed. (gog_label_populate_editor): remove UI for angle. (gog_label_init_style): set text angle to 90 if parent is an Y axis. * goffice/graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): text_angle is a style property. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_get_pango_layout): ditto. * goffice/graph/gog-renderer-svg.c (gog_renderer_svg_draw_text): ditto. * goffice/graph/gog-renderer.c (gog_renderer_get_text_OBR): ditto. (gog_renderer_push_style): no more angle property in renderer. (gog_renderer_pop_style): ditto. (gog_renderer_set_text_angle): removed. * goffice/graph/gog-style-prefs.glade: add a new UI for text layout group. * goffice/graph/gog-style (cb_angle_changed): new. (text_layout_init): new. (gog_style_assign): handle angle. (gog_style_init): ditto. (gog_style_text_layout_load): new. (gog_style_text_layout_dom_save): new. (gog_style_text_layout_sax_save): new. (gog_style_persist_dom_load): handle angle. (gog_style_persist_dom_save): ditto. (gog_style_persist_sax_save): ditto. (gog_style_is_different_size): ditto. (gog_style_set_text_angle): new. * goffice/graph/gog-styled-object.c (styled_object_populate_editor): don't display style editor if there isn't any interresting fields. 2005-07-27 Emmanuel Pacaud Code cleanup. Remove bbox parameter of GogRenderer:draw functions. It was a previous attempt to do clipping, which is handled by gog_renderer_clip_push and gog_renderer_clip_pop for quite a long time now. Modified Files: ChangeLog goffice/graph/gog-axis-line.c goffice/graph/gog-error-bar.c goffice/graph/gog-grid-line.c goffice/graph/gog-grid.c goffice/graph/gog-label.c goffice/graph/gog-legend.c goffice/graph/gog-outlined-object.c goffice/graph/gog-reg-curve.c goffice/graph/gog-reg-eqn.c goffice/graph/gog-renderer-cairo.c goffice/graph/gog-renderer-gnome-print.c goffice/graph/gog-renderer-impl.h goffice/graph/gog-renderer-pixbuf.c goffice/graph/gog-renderer-svg.c goffice/graph/gog-renderer.c goffice/graph/gog-renderer.h plugins/plot_barcol/gog-barcol.c plugins/plot_barcol/gog-dropbar.c plugins/plot_barcol/gog-line.c plugins/plot_barcol/gog-minmax.c plugins/plot_barcol/gog-series-lines.c plugins/plot_boxes/gog-boxplot.c plugins/plot_pie/gog-pie.c plugins/plot_radar/gog-radar.c plugins/plot_surface/gog-surface.c plugins/plot_xy/gog-xy.c 2005-07-27 Emmanuel Pacaud Text angle is not a font property. Set default angle to 90° for y axes (#301582). * goffice/graph/gog-axis-line.c (gog_axis_base_class_init): install label_angle property. (gog_axis_base_set_property): handle label_angle property. (gog_axis_base_get_property): ditto. (gog_axis_base_set_label_angle): new. (cb_label_angle_changed): new. (gog_axis_base_populate_editor): init UI for label_angle. (gog_axis_base_view_padding_request): set text angle. (gog_axis_base_view_render): ditto. * goffice/graph/gog-axis-prefs.glade: add UI for label angle. * goffice/graph/gog-axis.c (role_label_post_add): new. Sets label angle to 90° for y axis. (gog_axis_class_init): add role_label_post_add. * goffice/graph/gog-label-prefs.glade: new. * goffice/graph/gog-label.c (gog_label_set_angle): new. (gog_label_class_init): handle angle property. (gog_label_set_property): ditto. (gog_label_get_property): ditto. (label_pref_state_free): new. (cb_angle_changed): new. (gog_label_populate_editor): add layout page for angle setting. (gog_label_init): new. (gog_label_view_size_request): set text angle. (gog_label_view_render): ditto. * goffice/graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): text_angle is a property of renderer. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_get_pango_layout): ditto. * goffice/graph/gog-renderer-svg.c (gog_renderer_svg_draw_text): ditto. * goffice/graph/gog-renderer.c (gog_renderer_push_style): reset text angle. (gog_renderer_pop_style): ditto. (gog_renderer_set_text_angle): new. (gog_renderer_get_text_OBR): text_angle is a property of renderer. * goffice/graph/gog-style-prefs.glade: remove UI for angle. * goffice/graph/gog-style.c (cb_rotation_angle_changed): removed. (font_init): remove angle UI. (gog_style_font_load): remove rotation_angle setting. (gog_style_font_dom_save): ditto. (gog_style_font_sax_save): ditto. 2005-07-25 Emmanuel Pacaud * goffice/graph/gog-object-prefs.glade: remove chart preference dialog and move it to gog-chart-prefs.glade. * goffice/graph/gog-chart-prefs.glade: new. * goffice/graph/gog-chart.c (cb_plot_area_changed): actually use signal handlers. (gog_chart_populate_editor): ditto. 2005-07-25 Emmanuel Pacaud Implementation of manual position of graph objects. * goffice/graph/goffice-graph.h: new modifier flags in GogObjectPosition for manual position. * goffice/graph/gog-axis.c (gog_axis_class_init): Label can be positionned manually. (gog_axis_view_padding_request): GOG_POSITION_MANUAL supersedes GOG_POSITION_SPECIAL. (gog_axis_view_size_allocate): handle GOG_POSITION_MANUAL case. * goffice/graph/gog-chart-impl.h: plot_area stores plot area position in fraction of chart size. new is_plot_area_manual flag. * goffice/graph/gog-chart.c (gog_chart_set_property): new. (gog_chart_get_property): handles plot-area and is-plot-area-manual properties. (chart_pref_state_free): new. (cb_plot_area_changed): new. (cb_manual_toggle_changed): new. (gog_chart_populate_editor): new. (gog_chart_class_init): reorder childs. Still need some work for a nice display in object tree. Install plot-area and is-plot_area-manual properties. (gog_chart_get_plot_area): new. (gog_chart_set_plot_area): new. (gog_chart_view_get_plot_area): plot area extents are stored in GogChartView::plot_area now. (gog_chart_view_size_allocate): handle manual case. (gog_chart_view_class_init): don't clip to chart area. * graph/goffice/gog-control-foocanvas (gog_control_foocanvas_set_property): remove logical_width_pts and logical_height_pts properties. These are properties of GogGraph now. (gog_control_foocanvas_get_property): ditto. (gog_control_foocanvas_class_init): ditto. * goffice/graph/gog-graph.c (gog_graph_set_property): handle new width-pts and height-pts properties. (gog_graph_get_property): ditto. (gog_graph_class_init): ditto. Chart and Title object can be positionned manually. (gog_graph_get_size): new. (gog_graph_set_size): new. * goffice/graph/gog-guru.c (cb_typesel_sample_plot_resize): don't change graph logical size. (cb_sample_pressed): don't change canvas scale. (cb_canvas_select_item): center graph on canvas. (cb_sample_plot_resize): calculate graph size to make it fit in canvas area. (graph_guru_init_format_page): don't change canvas scale. * goffice/graph/gog-object.c (gog_object_set_property): handle new position, position-is-manual and anchor properties. (gog_object_get_property): ditto. (gog_object_class_init): ditto. (cb_position_changed): new. (cb_manual_position_changed): new. (cb_anchor_changed): new. (gog_object_populate_editor): new UI for manual position setting. (gog_role_cmp): test priority first, then compare allowable positions. (gog_object_set_position_flags): emit a warning in case of wrong flags. (gog_object_get_manual_position): new. (gog_object_set_manual_position): new. (gog_object_get_manual_allocation): new. * goffice/graph/gog-plot.c (gog_plot_populate_editor): always call parent populate_editor. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_get_text_OBR): use pango_layout_get_extents instead of pango_layout_get_pixel_extents for more accuracy. (gog_renderer_pixbuf_update): logical width and height of graph is a property of GogGraph now. * goffice/graph/gog-renderer.c (gog_renderer_set_property): remove logical_width_pts and logical_height_pts properties. (gog_renderer_get_property): ditto. (gog_renderer_class_init): ditto. * goffice/graph/gog-view.c (gog_view_size_allocate_real): handle manual case. 2005-07-22 Chris Lahey * goffice/drawing/god-drawing-renderer-gdk.c: Remove * .7 hack since it's been fixed in parsing code. 2005-07-21 Chris Lahey * goffice/drawing/god-drawing-renderer-gdk.c, goffice/drawing/god-paragraph-attributes.c, goffice/drawing/god-paragraph-attributes.h: Add support for setting whether the bullet is drawn for a particular paragraph. 2005-07-19 Emmanuel Pacaud * goffice/grah/gog-axis-line.c (gog_axis_base_get_crossed_axis_type): don't complain when axis_set = GOG_AXIS_SET_X. (axis_line_get_bbox): scale tick len with gog_renderer_pt2r instead of gog_renderer_pt2r_x. (axis_line_render): ditto. (axis_circle_get_bbox): ditto. (axis_circle_render): ditto. (x_process): use correct enum for label/tick side, which fixes a display bug. 2005-07-15 Dom Lachowicz * goffice/utils/go-file.c (go_get_mime_type): Free 'wuri' if mime lookup failed; have function return "application/octet-stream" instead of "octet-string"; g_strdup() the "application/octet-stream" so that we don't try to free .text data 2005-07-15 Emmanuel Pacaud * goffice/graph/gog-legend.c (cb_render_elements): fix swatch, line/marker position. 2005-07-11 Morten Welinder * configure.in (set_more_warnings): Check for fdopen. * goffice/utils/go-file.c (is_fd_uri): New function. (go_file_create): Support URIs like "fd://1". 2005-07-01 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_str_load_values): set vec->len (fixes a crash when pasting charts in abiword). * goffice/graph/goffice-graph.h: change GOG_MS_DIM_* enum. * goffice/graph/gog-data-set.c: (gog_dataset_dup_to_simple): fix export of scalar strings. * goffice/graph/gog-plot.c: (gog_plot_finalize), (gog_plot_set_property), (gog_plot_get_property), (gog_plot_class_init), (gog_plot_init): add "plot_group" property. * goffice/graph/gog-plot.h: * pixmaps/chart_dropbar_1_1.svg: * pixmaps/chart_minmax_2_2.svg: * plugins/plot_barcol/Makefile.am: * plugins/plot_barcol/gog-1.5d.c: (go_plugin_init): * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_plot_class_init): update GOG_MS_DIM_*. * plugins/plot_barcol/gog-minmax.c: (gog_minmax_axis_get_bounds): set center_on_ticks to FALSE, (gog_minmax_plot_class_init): update GOG_MS_DIM_*. 2005-06-26 Jean Brefort * goffice/graph/gog-theme.c: (gog_themes_init): add GogSeriesLines. * plugins/plot_barcol/Makefile.am: add gog-series-lines.[c,h]. * plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_init), (series_lines_can_add), (series_lines_post_add), (series_lines_pre_remove), (drop_lines_can_add), (drop_lines_post_add), (drop_lines_pre_remove), (lines_can_add), (lines_post_add), (lines_pre_remove), (gog_series1_5d_class_init), (gog_series1_5d_init), (go_plugin_init): add support for various lines. * plugins/plot_barcol/gog-1.5d.h: ditto. * plugins/plot_barcol/gog-barcol.c: (gog_barcol_plot_init), (gog_barcol_view_render): added series lines. * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_plot_init), (barcol_draw_rect), (gog_dropbar_view_render): added lines. * plugins/plot_barcol/gog-line.c: (gog_line_plot_init), (gog_area_plot_init), (gog_line_view_render): added drop lines. * plugins/plot_barcol/gog-minmax.c: (gog_minmax_plot_init), (gog_minmax_view_render): added lines. * plugins/plot_barcol/gog-series-lines.c: (gog_series_lines_init_style), (gog_series_lines_update), (gog_series_lines_changed), (gog_series_lines_class_init), (gog_series_lines_render): support for lines in various plots. * plugins/plot_barcol/gog-series-lines.h: ditto. 2005-06-24 Jean Brefort * goffice/graph/gog-legend.c: (cb_size_elements), (gog_legend_view_size_request): use legned style to calculate elements height. 2005-06-21 Emmanuel Pacaud * goffice/graph/gog-renderer-cairo.c (grc_invert_pixbuf_RB): new. (grc_draw_polygon): implement repeated image texture. (grc_get_marker_surface): use grc_invert_pixbuf_RB. (gog_renderer_cairo_update): ditto. 2005-06-21 Jon K Hellan * goffice/graph/gog-control-foocanvas.c (gog_control_foocanvas_update): Fix typo. 2005-06-21 Emmanuel Pacaud New cairo renderer. Option at compile time (--with-cairo). * configure.in: add optional cairo dependency. * goffice/graph/gog-control-foocanvas.c (gog_control_foocanvas_set_property): use cairo renderer if enabled. (gog_control_foocanvas_draw): ditto. (gog_control_foocanvas_update): ditto. (gog_control_foocanvas_class_init): ditto. * goffice/graph/gog-renderer-cairo.[ch]: new files. * goffice/utils/go-pattern.c (go_pattern_get_pattern): new. 2005-06-20 Jean Brefort * plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_update), (gog_series1_5d_finalize), (gog_series1_5d_class_init): fixed error bar leaks. 2005-06-20 Morten Welinder * goffice/utils/formats.c (find_currency): Special hack to accept a quoted euro character. (pattern_account): Remove stray "}". 2005-06-20 Jean Brefort * goffice/graph/gog-guru.c: (cb_canvas_select_item): fixed one more leak. 2005-06-20 Jean Brefort * goffice/graph/gog-guru.c: (cb_canvas_select_item): add missing g_object_unref call. * goffice/graph/gog-series.c: (regression_curve_can_add): fixed the test. * goffice/graph/gog-style.c: (gog_style_set_image_preview): return if pix == NULL (#308307). 2005-06-16 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (axis_line_render): remove kludge for ticks not centered on labels. * goffice/graph/gog-axis.c (map_discrete_calc_ticks): separate handling of ticks from handling of labels. (gog_axis_update): always set GogAxis::center_on_ticks from GogBounds. * plugins/plot_radar/gog-radar.c (gog_radar_plot_axis_get_bounds): set center_on_ticks=TRUE explicitely. 2005-06-13 Emmanuel Pacaud Support for rotated text and text color. * goffice/graph/gog-axis-line.c (get_point_to_segment_distance): moved to go-geometry.c. (update_bbox): ditto. (overlap): removed. (compute_angles): removed. (axis_line_point): use go_geometry_point_to_segment. (axis_line_get_bbox): handle rotated text case. Use go_geometry_cartesian_to_polar. side is an enum now. (axis_line_render): ditto. (axis_circle_get_bbox): ditto. (axis_circle_render): ditto. (xy_process): side is an enum. (radar_process): ditto. * goffice/graph/gog-label.c (gog_label_view_size_request): use gog_renderer_get_text_AABR. (gog_label_view_render): ditto. * goffice/graph/gog-legend.c (cb_size_elements): ditto. * goffice/graph/gog-reg-eqn.c (gog_reg_eqn_view_render): ditto. * goffice/graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): handle rotated text and color. (gog_renderer_gnome_print_get_text_OBR): new. * goffice/graph/gog-renderer-pixbuf.c (get_rotated_layout_bounds): new. (gog_renderer_pixbuf_get_pango_layout): handle rotation angle. (gog_renderer_pixbuf_draw_text): ditto. Handle special n * pi / 2 angles separately for performance. (gog_renderer_pixbuf_get_text_OBR): new. * goffice/graph/gog-renderer-svg.c (gog_renderer_svg_get_text_OBR): ditto. (gog_renderer_svg_draw_text): handle rotation angle and color. * goffice/graph/gog-renderer.c (gog_renderer_get_text_OBR): new. (gog_renderer_get_text_AABR): new. Replaces measure_text. * goffice/graph/gog-style-prefs.glade: add widgets for text rotation angle and text color. * goffice/graph/gog-style.c (cb_rotation_angle_changed): new. (cb_font_color_changed): new. (font_init): load widgets for text rotation and color. (gog_style_font_load): load rotation angle. (gog_style_font_save): save rotation angle. (gog_style_font_sax_save): ditto. (gog_style_is_different_size): different angles means different sizes. * goffice/utils/go-geometry.[ch]: new files. Collection of geometry related functions. 2005-06-12 Jody Goldberg * configure.in : post release bump 2005-06-12 Jody Goldberg * Release 0.0.2 2005-06-11 Ivan, Wong Yat Cheung * goffice/gtk/Makefile.am: Fix typos. 2005-06-09 Morten Welinder * goffice/utils/go-libxml-extras.c (xml_node_get_enum, xml_node_set_enum): New functions. (xml_node_get_int, xml_node_get_double): Improve error handling. 2005-06-08 Ivan, Wong Yat Cheung * goffice/gtk/htmlhelp-stub.c: * goffice/gtk/htmlhelp-stub.h: * goffice/gtk/libhtmlhelp-stub.def: Remove * goffice/gtk/Makefile.am: Remove libgoffice-html-help-stub.la it no longer belongs here. * goffice/Makefile.am: * goffice/gtk/goffice-gtk.c: * goffice/utils/Makefile.am: Now stubs for Win32 are placed in libgoffice-win32-stub.la * goffice/utils/goffice-win32-stub.def: * goffice/utils/win32-stub.c: * goffice/utils/win32-stub.h: New * goffice/utils/go-file.[ch] (go_get_mime_type): Use FindMimeFromData() on Win32. Fall back to "text/plain" if no mime type is matched. [#304074] 2005-06-06 Jody Goldberg * goffice/app/go-plugin.c : Don't inherit from GTypeModule contain one and use it as long as we are active. 2005-06-06 Morten Welinder * goffice/utils/go-math.c (log1p): Define if needed. 2005-06-05 Jean Brefort * goffice/graph/gog-data-set.c: (gog_dataset_dup_to_simple): add a helper function to convert data to simple data. * goffice/graph/gog-data-set.h: ditto. * goffice/graph/gog-object.c: (dataset_dup), (gog_object_dup): add an optional data converter to gog_object_dup and define a default one. * goffice/graph/gog-object.h: ditto. * goffice/graph/gog-graph.c: use new gog_object_dup syntax. 2005-06-05 Jody Goldberg * goffice/app/go-plugin.c (go_plugin_get_type_module) : new in preparation of change to GOPlugin. 2005-06-05 Jody Goldberg * goffice/app/go-plugin.c (go_plugin_activate) : add a g_type_module_use (go_plugin_deactivate) : and an unuse. Things are still broken on exit. 2005-06-04 Emmanuel Pacaud * goffice/graph/gog-object (gog_object_populate_editor): remove g_message call. 2005-06-04 Jody Goldberg * plugins/plot_xy/plot-types.xml.in : XY priority 100 * plugins/plot_barcol/plot-types.xml.in : COL priority 90 BAR priority 80 * goffice/graph/gog-guru.c (cb_plot_families_init) : select if the current item is a higher priority than anything we've seen. (graph_guru_type_selector_new) : don't connect to the signal handler until after we select the default type. Sort the list of families. We need to prune this list. * goffice/graph/gog-plot-engine.c (cb_pending_plot_types_load) : load a priority for each family to allow for a reasonable default. 2005-06-04 Jody Goldberg * goffice/gtk/go-format-sel.c (nfs_init) : suppress warning. (generate_preview) : put the args in the right order and remove the debug spew. 2005-06-04 Jean Brefort * plugins/plot_surface/gog-surface.c: (gog_contour_view_render): fixed appearance, libart warnings and a major bug. 2005-06-03 Stepan Kasal * configure.in: Require libgsf 1.12.1; GSF_DYNAMIC_CLASS has changed. 2005-06-02 Emmanuel Pacaud * goffice/graph/Makefile.am: add gog-object-prefs.glade * goffice/graph/gog-graph.c (gog_graph_class_init): position of chart and title can be manual. * goffice/graph/gog-object-prefs.glade: new. * goffice/graph/gog-object.c (gog_editor_get_notebook): first page is the default page. (gog_object_set_property): handle compass and alignment properties. (gog_object_get_property): ditto. (object_pref_state_free): new. (cb_compass_changed): new. (cb_alignment_changed): new. (gog_object_populate_editor): new. It handles only compass and alignment flags. (gog_object_class_init): install compass and alignment properties. (gog_object_get_pos): renamed to gog_object_get_position_flags. Add a mask parameter in order to get only a subset of position flags. (gog_object_set_pos): renamed to gog_object_set_position_flags. Add a mask parameter. * goffice/graph/gog-style-prefs.glade: move line widgets to the left. It improves consistency of widget position when navigating through object tree. * goffice/graph/gog-styled-object.c (styled_object_populate_editor): call parent method. 2005-06-01 Jody Goldberg * goffice/utils/go-format.c (go_format_value_gstring) : pull over from gnumeric with a simplified structure to handle only ints and doubles. (go_style_format_condition) : ditto. 2005-05-30 Jean Brefort * plugins/plot_surface/xl-surface.c: (xl_contour_plot_build_matrix): set num-elements of the first series, not the last one. 2005-05-29 Jean Brefort * goffice/graph/gog-object.c: (gog_object_dup), (gog_object_dup_with_values): rewrote to share identical code. 2005-05-28 Jean Brefort * goffice/graph/gog-object.h: added missing declaration (gog_object_dup_with_values). 2005-05-28 Jean Brefort * goffice/graph/gog-object.c: (gog_object_dup_with_values): new function aimed at export charts. 2005-05-27 Ivan, Wong Yat Cheung * goffice/utils/go-file.c (go_shell_arg_to_uri): revert changes made by me in yesterday. (go_shell_argv_to_glib_encoding): New. For Win32 we need to get argv[] in utf-16 and convert them to utf-8 under NT and use g_locale_to_utf() under Win9x. 2005-05-27 Jean Brefort * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_view_render): fixed bars width and position. * plugins/plot_barcol/plot-types.xml.in: ditto. 2005-05-27 Jean Brefort * goffice/gtk/go-format-sel.c: (nfs_init): make the shortcut for currency symbol selection work (#305635). 2005-05-27 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_as_str), (go_data_vector_val_from_str), (go_data_vector_str_finalize), (go_data_vector_str_dup), (go_data_vector_str_as_str), (go_data_vector_str_from_str), (go_data_vector_str_load_len), (go_data_vector_str_load_values), (go_data_vector_str_get_value), (go_data_matrix_val_as_str), (go_data_matrix_val_from_str): fixed various concerns related to the abigochart plugin. 2005-05-26 Emmanuel Pacaud [#305010] * goffice/graph/gog-error-bar-prefs.glade: remove gnome requirement. * plugins/plot_pie/gog-pie-series-prefs.glade: ditto. * plugins/plot_pie/gog-ring-prefs.glade: ditto. 2005-05-26 Ivan, Wong Yat Cheung * goffice/utils/go-file.c (go_shell_arg_to_uri): Convert file name from system codepage to utf8 (glib/win32 now uses utf8). [#304874] 2005-05-25 Stepan Kasal * configure.in (PKG_PROG_PKG_CONFIG): Rephrase the explanation. 2005-05-24 Morten Welinder * goffice/utils/format.c (format_remove_decimal): In the fallback code, remove a decimals from all subformats. (find_currency): Accept quotes around the currency. Fixes recognition of accounting formats. [#305314] [#305313] 2005-05-23 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_file_sel_dialog, go_gtk_select_image): Insist on getting a toplevel. (It determines, for one thing, what screen to use.) * goffice/graph/gog-style.c (cb_image_file_select): Provide a toplevel. Fixes #305009. 2005-05-22 Jean Brefort * plugins/plot_barcol/gog-1.5d.c: (gog_series1_5d_update): Fix a trivial bug. 2005-05-20 Morten Welinder * goffice/gtk/goffice-gtk.c (go_access): Fix return type to int as we return -1 sometimes. * configure.in (set_more_warnings): Don't use -Wcrazy. 2005-05-20 Stepan Kasal * plugins/plot_barcol/gog-dropbar.c (gog_dropbar_view_render): Remove unused variables. 2005-05-20 Jean Brefort * goffice/graph/goffice-graph.h: change GOG_MS_DIM_TYPES value and add new ones. * goffice/graph/gog-axis.c: (gog_axis_set_property): remove labels and ticks for GOG_AXIS_PSEUDO_3D (enhance export to excel). * pixmaps/Makefile.am: add icons for minmax and dropbar plots. * plugins/plot_barcol/Makefile.am: add minmx and dropbar support. * plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_update), (gog_series1_5d_update), (gog_series1_5d_populate_editor), (go_plugin_init): ditto. * plugins/plot_barcol/gog-barcol.c: ditto. (gog_barcol_plot_populate_editor): ditto. * plugins/plot_barcol/gog-dropbar.c: (gog_dropbar_plot_type_name), (gog_dropbar_plot_class_init), (barcol_draw_rect), (gog_dropbar_view_render), (gog_dropbar_view_info_at_point), (gog_dropbar_view_class_init): ditto. * plugins/plot_barcol/gog-dropbar.h: ditto. * plugins/plot_barcol/gog-minmax-prefs.glade: ditto. * plugins/plot_barcol/gog-minmax.c: (gog_minmax_series_init_style), (gog_minmax_series_class_init), (gog_minmax_plot_set_property), (gog_minmax_plot_get_property), (gog_minmax_plot_type_name), (gog_minmax_axis_get_bounds), (cb_gap_changed), (gog_minmax_plot_populate_editor), (gog_minmax_swap_x_and_y), (gog_minmax_plot_class_init), (gog_minmax_plot_init), (gog_minmax_view_render), (gog_minmax_view_info_at_point), (gog_minmax_view_class_init): ditto. * plugins/plot_barcol/gog-minmax.h: ditto. * plugins/plot_barcol/plot-types.xml.in: ditto. * plugins/plot_barcol/plugin.xml.in: ditto. 2005-05-19 Jody Goldberg * goffice/data/go-data-simple.c (go_data_vector_val_as_str) : use format_get_row_sep. 2005-05-19 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_calc_ticks): remove kludge by using center_on_ticks. * goffice/graph/gog-plot.c (gog_plot_get_axis_bounds): defaults center_on_ticks to TRUE. * plugins/plot_barcol/gog-barcol.c (gog_barcol_axis_get_bounds): center_on_ticks = FALSE. 2005-05-18 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_init): scale doesn't depend on center_on_ticks. (map_discrete): ditto. (map_discrete_to_view): ditto. (map_discrete_from_view): ditto. (map_discrete_calc_ticks): tick_nbr doesn't depend on center_on_ticks. * goffice/graph/gog-axis-line.c (gog_axis_base_populate_editor): don't show layout page for GOG_AXIS_PSEUDO_3D. Call inherited populate_editor if gui==NULL. * plugins/plot_surface/gog-surface.c (gog_contour_plot_axis_get_bounds): maxima = num_elements - 1.0 * plugins/plot_surface/xl-surface.c (xl_contour_plot_axis_get_bounds): ditto. 2005-05-17 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_get_value), (go_data_vector_val_get_str): check args to avoid a segfault. 2005-05-16 Stepan Kasal * goffice/graph/gog-reg-curve.c (gog_reg_curve_get_value_at): Make this function static, without any declaration at the top. * goffice/utils/go-file.h (go_get_mime_type): Change the return type to `const gchar *'. * goffice/utils/go-file.c: ditto. * goffice/utils/format.c (beyond_precision, beyond_precisionl): Move the declarations to the top, into an #ifdef DEFINE_COMMON. * plugins/plot_surface/xl-surface.c (xl_contour_plot_axis_get_bounds): Make this more readable by moving part of the body ... (get_y_vector): ... to this new function. * tests/pie-demo.c (main): Adapt to the changed type of arg 1 of go_data_vector_str_new. 2005-05-14 J.H.M. Dassen (Ray) * configure.in: Supply GOFFICE_PLUGIN_LIBADD on all platforms, not just win32, in order to get complete dependency information in the plugins. Use -no-undefined in GOFFICE_PLUGIN_LDFLAGS on all platforms to ensure complete dependency information at link time. Update the BUG-REPORT argument to AC_INIT now that bugzilla.gnome.org has a "libgoffice" product. Enable a number of additional warnings (when available) for which the current code base is already virtually clean. 2005-05-12 Stepan Kasal * goffice/data/go-data-simple.h (go_data_vector_str_new): Change the type of the first parameter from (char**) back to (char const*const*) * goffice/data/go-data-simple.c: Do the same and adapt the code. 2005-05-12 Morten Welinder * goffice/utils/go-marker.c (go_marker_selector): Plug leak. Avoid const for non-const parameter. * goffice/gtk/go-action-combo-pixmaps.c (go_action_combo_pixmaps_create_tool_item): Take toolbar settings into account. * goffice/gtk/go-action-combo-color.c (make_icon): Multihead fix. * goffice/gtk/goffice-gtk.c (update_preview_cb): Multihead fix. * goffice/gtk/go-action-combo-stack.c (go_action_combo_stack_create_tool_item): Take theme into account. 2005-05-12 Jean Brefort * goffice/data/go-data-simple.c: (go_data_matrix_val_as_str), (go_data_matrix_val_from_str): always use a semicolon as row separator. 2005-05-11 Jean Brefort * pixmaps/chart_dropbar_1_1.png: update icon. * pixmaps/chart_dropbar_1_1.svg: ditto. * pixmaps/chart_dropbar_1_2.png: ditto. * pixmaps/chart_dropbar_1_2.svg: ditto. * pixmaps/chart_minmax_1_1.png: ditto. * pixmaps/chart_minmax_1_1.svg: ditto. * pixmaps/chart_minmax_1_2.png: ditto. * pixmaps/chart_minmax_1_2.svg: ditto. * pixmaps/chart_minmax_2_1.png: new icon. * pixmaps/chart_minmax_2_1.svg: ditto. * pixmaps/chart_minmax_2_2.png: ditto. * pixmaps/chart_minmax_2_2.svg: ditto. 2005-05-11 Jean Brefort * pixmaps/chart_dropbar_1_1.png: New icon. * pixmaps/chart_dropbar_1_1.svg: ditto. * pixmaps/chart_dropbar_1_2.png: ditto. * pixmaps/chart_dropbar_1_2.svg: ditto. * pixmaps/chart_minmax_1_1.png: ditto. * pixmaps/chart_minmax_1_1.svg: ditto. * pixmaps/chart_minmax_1_2.png: ditto. * pixmaps/chart_minmax_1_2.svg: ditto. * pixmaps/dropbar.xpm: ditto. * pixmaps/minmax.xpm: ditto. 2005-05-11 Jean Brefort * plugins/plot_surface/gog-surface.c: (gog_contour_plot_class_init): limit series number to 1. 2005-05-10 Emmanuel Pacaud * goffice/graph/gog-chart.c (gog_chart_map_free): unref map::chart. 2005-05-10 Jean Brefort * configure.in: add linear regressions in scatter plots. * goffice/goffice.c: (libgoffice_init): ditto. * goffice/graph/Makefile.am: ditto. * goffice/graph/goffice-graph.h: ditto. * goffice/graph/gog-guru.c: (cb_graph_guru_add_reg_curve), (cb_reg_curve_type_menu_create), (reg_curve_type_menu_create), (cb_attr_tree_selection_change): ditto. * goffice/graph/gog-object-xml.c: (gog_object_new_from_xml): ditto. * goffice/graph/gog-plot-engine.c: ditto. (gog_reg_curve_engine_service_get_description), (gog_reg_curve_engine_service_class_init), (gog_reg_curve_new_by_name), (cb_pending_reg_curve_types_load), (pending_reg_curves_types_load), (gog_reg_curve_service_read_xml), (gog_reg_curve_service_get_description), (gog_reg_curve_service_init), (gog_reg_curve_service_class_init), (gog_plugin_services_init), (gog_reg_curve_type_free), (create_reg_curve_types), (gog_reg_curve_types): ditto. * goffice/graph/gog-plot-engine.h: ditto. * goffice/graph/gog-reg-curve-prefs.glade: ditto. * goffice/graph/gog-reg-curve.c: (gog_reg_curve_init_style), (gog_reg_curve_populate_editor), (gog_reg_curve_finalize), (gog_reg_curve_type_name), (gog_reg_curve_class_init), (gog_reg_curve_init), (gog_reg_curve_dataset_dims), (gog_reg_curve_dataset_get_elem), (gog_reg_curve_dataset_dim_changed), (gog_reg_curve_dataset_init), (gog_reg_curve_new_by_type), (gog_reg_curve_get_value_at), (gog_reg_curve_get_equation), (gog_reg_curve_get_R2), (gog_reg_curve_get_bounds), (gog_reg_curve_view_render), (gog_reg_curve_view_size_allocate), (gog_reg_curve_view_class_init): ditto. * goffice/graph/gog-reg-curve.h: ditto. * goffice/graph/gog-reg-eqn-prefs.glade: ditto. * goffice/graph/gog-reg-eqn.c: (cb_text_pos_changed), (cb_text_visibility_changed), (gog_reg_eqn_set_property), (gog_reg_eqn_get_property), (gog_reg_eqn_init_style), (gog_reg_eqn_populate_editor), (gog_reg_eqn_type_name), (gog_reg_eqn_class_init), (gog_reg_eqn_init), (gog_reg_eqn_view_render), (gog_reg_eqn_view_class_init): ditto. * goffice/graph/gog-reg-eqn.h: ditto. * goffice/graph/gog-series-impl.h: ditto. * goffice/graph/gog-series.c: (regression_curve_can_add), (regression_curve_post_add), (regression_curve_pre_remove), (gog_series_class_init), (gog_series_init): ditto. * goffice/graph/gog-theme.c: (gog_themes_init): ditto. * plugins/Makefile.am: ditto. * plugins/plot_xy/gog-xy.c: (gog_xy_view_render), (gog_xy_view_size_allocate), (gog_xy_view_class_init), (gog_xy_series_view_render), (gog_xy_series_view_size_allocate), (gog_xy_series_view_class_init), (gog_xy_series_update), (gog_xy_series_init), (gog_xy_series_class_init): ditto. * plugins/reg_linear/Makefile.am: ditto. * plugins/reg_linear/gog-lin-reg.c: (gog_lin_reg_curve_update), (gog_lin_reg_curve_get_value_at), (gog_lin_reg_curve_get_equation), (gog_lin_reg_curve_get_R2), (gog_lin_reg_curve_finalize), (gog_lin_reg_curve_class_init), (gog_lin_reg_curve_init), (go_plugin_init), (go_plugin_shutdown): ditto. * plugins/reg_linear/gog-lin-reg.h: ditto. * plugins/reg_linear/plugin.xml.in: ditto. * plugins/reg_linear/reg-types.xml.in: ditto. * po/POTFILES.in: ditto. * plugins/plot_surface/xl-surface.c: (xl_contour_plot_axis_get_bounds): fixed a compilation warning. 2005-05-10 Jody Goldberg * configure.in : post release version bump 2005-05-09 Jody Goldberg * Release 0.0.1 2005-05-09 Jody Goldberg * tests/pie-demo.c (main) : update 2005-05-09 Emmanuel Pacaud * plugins/plot_radar/gog-radar.c (gog_rt_view_render): warning fix. 2005-05-09 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (gog_axis_base_get_crossed_axis_type): handle GOG_AXIS_SET_XY_pseudo_3d case. (axis_line_get_bbox): fix label offset. (axis_line_render): ditto. (axis_circle_get_bbox): take ticks into account. Use GogChartMap. (axis_circle_render): if axis is polar, use bezier paths by calling gog_renderer_draw_arc. Draw ticks. Use GogChartMap. (x_process): new. (xy_process): use GogChartMap. (calc_polygon_parameters): removed. (radar_process): implement padding_request for radial axes. (gog_axis_base_view_info_at_point): handle GOG_AXIS_SET_X. (gog_axis_base_view_padding_request): ditto. (gog_axis_base_view_render): ditto. * goffice/graph/gog-axis.c (map_bounds): new. (map_linear_auto_bound): handle auto bounds for non discrete circular axis. (map_linear_calc_ticks): place major ticks to a multiple of major step. (map_log_bounds): new. (gog_axis_map_get_extents): new. (gog_axis_map_get_bounds): new. (role_grid_line_major_can_add): can be TRUE for non discrete GOG_AXIS_CIRCULAR. (role_grid_line_minor_post_add): ditto. (role_axis_line_can_add): can be TRUE for GOG_AXIS_RADIAL. (gog_axis_set_property): changing invert flag invalidates layout. (gog_axis_populate_editor): don't show map type selector for GOG_AXIS_CIRCULAR. (gog_axis_is_inverted): new. * goffice/graph/gog-chart.c (calc_polygon_parameters): new. (calc_circle_parameters): new. (null_map_2D): new. (x_map_2D_to_view): new. (xy_map_2D_to_view): new. (polar_map_2D_to_view): new. (gog_chart_map_get_polar_parms): new. (gog_chart_map_new): needs pointers to axes of the axis set now. handle GOG_AXIS_SET_X, GOG_AXIS_SET_RADAR and GOG_AXIS_SET_XY_pseudo_3d. (gog_chart_map_2D): removed. (gog_chart_map_2D_to_view): new. (gog_chart_map_get_axis_map): new. (gog_chart_map_is_valid): new. (gog_chart_axis_set_assign): handle GOG_AXIS_SET_RADAR. * goffice/graph/gog-grid-line.c (calc_polygon_parameters): removed. (gog_grid_line_view_render): handle polar plots. * goffice/graph/gog-grid.c (gog_grid_view_render): handle polar and radar plots. * goffice/graph/gog-renderer-gnome-print.c (draw_bezier_path): new. (gog_renderer_gnome_print_draw_bezier_path): use draw_bezier_path. (gog_renderer_gnome_print_draw_bezier_polygon): new. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon): fix transparency rendering. Idea stolen from gnome-print. (gog_renderer_pixbuf_draw_bezier_polygon): new. * goffice/graph/gog-renderer-svg.c (fill_properties): new. (gog_renderer_svg_draw_bezier_polygon): new. * goffice/graph/gog-renderer.c (gog_renderer_get_ring_wedge_vpath): new. (gog_renderer_draw_ring_wedge): new. (gog_renderer_draw_pie_wedge): new. (gog_renderer_draw_arc): new. * plugins/plot_radar/gog-radar.c: renamed GogRadarPlot to GogRTPlot, as base of GogRadarPlot and GogPolarPlot. New GogRadarPlot and GogPolarPlot classes. Renamed GogRadarView class to GogRTView class. (gog_rt_view_render): handle radar and polar plots. Renamed GogRadarSeries class to GogRTSeries. * plugins/plot_radar/plot-types.xml.in: add polar plots. * plugins/plot_radar/plugin.xml.in: ditto. 2005-05-09 Morten Welinder * goffice/graph/gog-style.c (cb_font_changed): C99, const, and type fixes. 2005-05-09 Jean Brefort * goffice/data/go-data-simple.c: (go_data_matrix_val_as_str), (go_data_matrix_val_from_str): made things work. * plugins/plot_surface/gog-surface.c: (gog_contour_plot_update), (gog_contour_view_render): avoid crashes and weird displays when there are no data for the axis. * plugins/plot_surface/xl-surface.c (xl_contour_plot_build_matrix): fix a vector length problem and replace nan by 0. to be xl compatible. 2005-05-08 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_str_from_str): fix an infinite loop condition. * plugins/gog-surface.c: fixed several critical bugs. 2005-05-07 Jean Brefort * goffice/graph/gog-legend.c: (cb_render_elements): use style for legend font. * goffice/graph/gog-style.c: (cb_font_changed): make things work, at least for now * goffice/gtk/go-font-sel.c: (style_selected): fixed it, (go_font_sel_set_style): added a warning. 2005-05-07 Morten Welinder * goffice/gtk/go-action-combo-color.c (go_action_combo_color_new): Don't set ->icon here, but make it when needed. Fixes #302880. (make_icon): New function. 2005-05-07 Jean Brefort * goffice/data/go-data-simple.c: (go_data_vector_val_finalize), (go_data_vector_val_dup), (go_data_vector_val_as_str), (go_data_vector_val_from_str), (go_data_vector_val_class_init), (go_data_vector_val_new), (cb_strings_destroy_notify), (go_data_vector_str_finalize), (go_data_vector_str_dup), (go_data_vector_str_as_str), (go_data_vector_str_from_str), (go_data_vector_str_class_init), (go_data_vector_str_init), (go_data_vector_str_new), (go_data_vector_str_set_translation_domain), (go_data_matrix_val_finalize), (go_data_matrix_val_dup), (go_data_matrix_val_eq), (go_data_matrix_val_load_size), (go_data_matrix_val_load_values), (go_data_matrix_val_get_value), (go_data_matrix_val_get_str), (go_data_matrix_val_as_str), (go_data_matrix_val_from_str), (go_data_matrix_val_class_init), (go_data_matrix_val_new): add GODataMatrixVal class and add serialization to GODataVectorVal and GODataVectorStr. * goffice/data/go-data-simple.h: add GODataMatrixVal class and enhanced vectors. * goffice/data/go-data.c: (go_data_matrix_get_value), (go_data_matrix_get_str): check if row and column are valid. * goffice/gtk/go-color-palette.c: (create_color_sel): set opacity (see #302387). * goffice/gtk/go-format-sel.c: use go_setlocale instead of gnm_setlocale. * goffice/utils/format.c: (go_setlocale), (go_set_untranslated_bools): renamed two gnm functions. * goffice/utils/format.h: ditto. * plugins/plot_surface/xl-surface.c: updated args to go_data_vector_str_new (xl_contour_plot_axis_get_bounds): updated args to go_data_vector_str_new. 2005-05-07 Jody Goldberg * goffice/graph/gog-object-xml.c (gog_dataset_sax_save) : use g_snprintf it is more portable. (gog_dataset_dom_save) : ditto. * goffice/utils/go-libxml-extras.c (xml_node_set_double) : ditto. 2005-05-06 Emmanuel Pacaud * goffice/graph/gog-chart.c (plot_render): new. (gog_chart_view_render): render plot marked with render_before_axes before axes, but after grid and background. * goffice/graph/gog-plot.c (gog_plot_init): default render_before_axes to FALSE. * plugings/plot_barcol/gog-line.c (gog_area_plot_init): render_before_axes = TRUE. * plugins/plot_radar/gog-radar.c (gog_radar_area_plot_init): ditto. * plugins/plot_surface/gog-surface.c (gog_contour_plot_init): ditto. 2005-05-05 Morten Welinder * goffice/utils/go-glib-extras.c (go_object_properties_free, go_object_properties_collect, go_object_properties_apply): New functions. 2005-05-04 Morten Welinder * goffice/gtk/go-combo-box.c (go_combo_box_style_set): New function. (go_combo_box_class_init): Hook up go_combo_box_style_set and define add-tearoffs widget style property. 2005-05-04 Jody Goldberg * goffice/app/go-plugin-service.c (plugin_service_new) : minor leak. 2005-05-01 Jon K Hellan * goffice/gtk/goffice-gtk.[ch] (go_mime_to_image_format): New. Get image format for mime type. (go_image_format_to_mime): New. Get mime types for image format. 2005-04-29 Jean Brefort * goffice/graph/gog-plot.c: added missing header. 2005-04-29 Morten Welinder * goffice/utils/go-glib-extras.c (go_object_toggle): New function. 2005-04-28 Stepan Kasal * configure.in (WITH_WIN32): Fix the case command for $host_os, add the "pw32*" pattern. (AC_CANONICAL_HOST): Call explicitly, we use $host_os. (WINDRES): Add an AC_ARG_VAR declaration. 2005-04-28 Ivan, Wong Yat Cheung * configure.in: Remove OS_WIN32 and combine PLATFORM_WIN32 and WITH_WIN32. * goffice/Makefile.am: Use WITH_WIN32 2005-04-28 Jean Brefort * goffice/graph/gog-plot.c: (cb_axis_changed): initialize value. 2005-04-21 Stepan Kasal * configure.in (GOFFICE_LIB_VERSON): Rename to ... (GOFFICE_LIB_VERSION): ... and compute statically, by m4_eval. * goffice/Makefile.am (goffice-paths.h): Also depends on Makefile. * plugins/plot_barcol/Makefile.am, plugins/plot_pie/Makefile.am: * plugins/plot_xy/Makefile.am: Don't list glade files in xml_DATA. 2005-04-20 Ivan, Wong Yat Cheung * goffice/gtk/go-action-combo-text.c: Add a new property "case-sensitive". 2005-04-19 Stepan Kasal * goffice/utils/Makefile.am (SUFFIXES): Remove, Automake deduces it (at least Automake >= 1.7). 2005-04-18 Stepan Kasal * plugins/plot_surface/xl-surface.c (xl_contour_plot_build_matrix): Don't initialize `ptr' twice; do initialize `series'. 2005-04-18 Stepan Kasal * goffice/utils/go-gradient.h (GOGradientDirection): Properly terminate with GO_GRADIENT_MAX. * goffice/utils/go-gradient.c (grad_dir_names): No need to include the enum number in the structure; code adapted. * goffice/utils/go-marker.c: Don't omit libart includes when !WITH_GTK; (marker_shape_names): Merge into marker_shapes; adapt code. (marker_shapes): Use macros to shorten the definition. (marker_update_pixbuf, go_marker_finalize, go_marker_set_shape): (go_marker_set_outline_color, go_marker_set_fill_color): (go_marker_set_size): Factor out common code ... (marker_free_pixbuf): ... to a new static function. (SELECTOR_PIXBUF_SIZE, SELECTOR_MARKER_SIZE): Remove unused defines. * goffice/utils/go-marker.h (pixbuf): If !WITH_GTK, rename this to ... (pixbuf_placeholder): ..., so that noone can actually use it. * goffice/utils/go-pattern.c (pattern_names): Merge into go_patterns; adapt code. * goffice/utils/go-pattern.h (go_pattern_selector): Omit if !WITH_GTK. 2005-04-18 Stepan Kasal * configure.in: Call PKG_PROG_PKG_CONFIG explicitly. 2005-04-15 Stepan Kasal * configure.in: Fix the appearance of help strings. 2005-04-12 Stepan Kasal * goffice/utils/go-file.c: #include libgnomevfs/gnome-vfs-mime-utils.h; this file comes via gsf-input-gnomevfs.h and gnome-vfs.h in current version, but not in my gnome-vfs 2.4.2. * goffice/graph/gog-plot.c (gog_plot_update_3d): Cosmetic fix. 2005-04-10 Jean Brefort * goffice/graph/goffice-graph.h: allow use of GOG_AXIS_PSEUDO_3D. * goffice/graph/gog-axis-line.c: add pseudo 3d axis support. (gog_axis_base_view_padding_request), (gog_axis_base_view_render): * goffice/graph/gog-axis.c: (gog_axis_calc_ticks): ditto. * goffice/graph/gog-chart.c: (gog_chart_map_new), (gog_chart_map_2D), (role_grid_can_add), (pseudo_3d_axis_can_add), (pseudo_3d_axis_post_add), (gog_chart_axis_set_assign): ditto. * goffice/graph/gog-plot-impl.h: ditto. * goffice/graph/gog-plot.c: (gog_plot_class_init), (gog_plot_foreach_elem), (gog_plot_get_axis), (gog_plot_update_3d): ditto. * goffice/graph/gog-plot.h: ditto. * plugins/plot_surface/Makefile.am: ass xl-surface.*. * plugins/plot_surface/gog-contour-prefs.c: removed deprecated code and added "transposed" property managing. * plugins/plot_surface/gog-contour-prefs.glade: ditto. * plugins/plot_surface/gog-surface.c: rewrote to use pseudo 3d axis. * plugins/plot_surface/gog-surface.h: ditto. * plugins/plot_surface/plugin.xml.in: added xl compatibility contours plots * plugins/plot_surface/xl-surface.c: ditto. * plugins/plot_surface/xl-surface.h: ditto. 2005-04-08 Ivan, Wong Yat Cheung * goffice/gtk/Makefile.am: use -export-symbols to link with libhtmlhelp-stub.def 2005-04-07 Emmanuel Pacaud * goffice/graph/gog-renderer-svg.c: avoid use of g_string_append_printf. 2005-04-07 Morten Welinder * goffice/gtk/goffice-gtk.c (go_gtk_url_is_writeable): Use go_access. No need to define G_IS_DIR_SEPARATOR anymore. (go_access): Copied from gsf while we're waiting for glib. 2005-04-07 Emmanuel Pacaud * goffice/graph/gog-renderer-svg.c: Avoid locale changes by using g_ascii_dtostr. Fixes 172726. 2005-04-07 Jean Brefort * goffice/graph/gog-guru.c: (cb_attr_tree_selection_change): don't scroll to selection if nothing is selected. 2005-04-06 Morten Welinder * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_set_property): Add missing "break;" * goffice/utils/datetime.c (datetime_isoweeknum): Replace by g_date_get_iso8601_week_of_year. * configure.in: Require glib 2.6.4. 2005-04-04 Morten Welinder * goffice/utils/format.c (go_format_number): Do at least a small attempt at getting fractional seconds right. 2005-04-02 Jean Brefort * goffice/goffice.c: (libgoffice_init), (libgoffice_shutdown): call number_format_init/shutdown. 2005-04-01 Jody Goldberg * goffice/utils/regutf8.c : include string.h to suppress warning about implicit decl of strlen 2005-04-01 Morten Welinder * goffice/utils/go-glib-extras.c (go_guess_encoding): Try exotic encodings guess by libxml. * goffice/drawing/god-property-table.h: Use canonical property names. * goffice/gtk/goffice-gtk.c (go_gtk_select_image): Moderately cheesy way of saving where we were last time. 2005-04-01 Stepan Kasal s/INCLUDES/AM_CPPFLAGS/ "automake -Wall" has told me this. * goffice/libgoffice-1.pc.in: Move ... * libgoffice-1.pc.in: ... here. * Makefile.am, goffice/Makefile.am, configure.in: Adapt to the move. * goffice/utils/Makefile.am (non-intermediate): New dummy rule; see http://bugzilla.gnome.org/show_bug.cgi?id=172211 and http://bugzilla.gnome.org/show_bug.cgi?id=172212 (.list.c, .list.h): Remove $(GLIB_GENMARSHAL); it didn't work anyway, the prerequisities of an implicit rule are ignored. * configure.in (GLIB_GENMARSHAL): Full path is not needed. (GOFFICE_CFLAGS): No need to amend this. 2005-03-31 Morten Welinder * goffice/app/go-plugin-service.c (go_plugin_file_saver_save): If we failed to load the plugin, set an error on the output. 2005-03-30 Ivan, Wong Yat Cheung * configure.in: * plugins/plot_*/Makefile.am: modify GOFFICE_PLUGIN_LDFLAGS and add add GOFFICE_PLUGIN_LIBADD. They help when host_os == win32. * goffice/Makefile.am: -export-all-symbols is not the final solution. Will remove it when we have GO_API or any other solution. * goffice/goffice-priv.h: * goffice/goffice.c: * goffice/app/go-plugin.c: use go_sys_lib_dir () * goffice/gtk/Makefile.am: libgoffice-html-help-stub.la 2005-03-30 Emmanuel Pacaud * goffice/graph/gog-object.c (gog_editor_free): free editor. 2005-03-30 Morten Welinder * goffice/utils/regutf8.c: Import Gnumeric's non-gui search stuff. Make it a gobject. (go_search_replace_set_search_text, go_search_replace_set_replace_text): Be paranoid. 2005-03-29 Emmanuel Pacaud * pixmaps/chart_polar_1_1.[png,svg]: new. * pixmaps/polar.[png,svg]: new. 2005-03-28 Morten Welinder * .../*.c: Use canonical property names. * goffice/utils/go-libxml-extras.c (e_xml_get_child_by_name_by_lang): Use g_get_language_names. * goffice/utils/Makefile.am (libgoffice_utils_la_HEADERS): Remove go-locale.[ch]. 2005-03-27 Morten Welinder * goffice/gtk/go-combo-box.c (go_combo_box_init): Use canonical property names. (go_combo_popup_tear_off): Ditto. * goffice/gtk/go-action-combo-text.c (go_action_combo_create_tool_item): Ditto. * goffice/gtk/go-action-combo-stack.c (go_action_combo_stack_create_tool_item): Ditto. * goffice/gtk/go-action-combo-color.c (go_action_combo_color_new): Ditto. 2005-03-27 Jean Brefort * goffice/app/error-info.h: add missing G_BEGIN_DECLS and G_END_DECLS. * goffice/app/file-priv.h: ditto. * goffice/app/file.h: ditto. * goffice/app/go-cmd-context-impl.h: ditto. * goffice/app/go-cmd-context.h: ditto. * goffice/app/go-error-stack.h: ditto. * goffice/app/go-object.h: ditto. * goffice/app/go-plugin-loader-module.h: ditto. * goffice/app/go-plugin-loader.h: ditto. * goffice/app/go-plugin-service.h: ditto. * goffice/app/go-plugin.h: ditto. * goffice/app/go-service.h: ditto. * goffice/app/io-context-priv.h: ditto. * goffice/app/io-context.h: ditto. * goffice/app/module-plugin-defs.h: ditto. * goffice/data/go-data-simple.h: ditto. * goffice/graph/gog-error-bar.h: ditto. * goffice/graph/gog-renderer.h: ditto. * goffice/ms-compat/go-ms-parser.h: ditto. * goffice/ms-compat/god-drawing-ms.h: ditto. * goffice/utils/datetime.h: ditto. * goffice/utils/go-math.h: ditto. 2005-03-25 Stepan Kasal * configure.in (GOFFICE_WITHOUT_GTK, GOFFICE_WITH_GNOME): Rename these defines back to WITH_GTK and WITH_GNOME. (GOFFICE_WITH_GTK, GOFFICE_WITH_GNOME): Rename the Automake conditionals back to WITH_GTK and WITH_GNOME, too. 2005-03-24 Stepan Kasal * goffice/app/module-plugin-defs.h (GOFFICE_MODULE_PLUGIN_INFO_DECL): Removed, it's not used. 2005-03-24 Stepan Kasal * goffice/Makefile.am (goffice-paths.h): Rewrite the rule, goffice-paths.sh* is no longer used. (EXTRA_DIST, noinst_HEADERS): No longer needed. * goffice/goffice-paths.sh.in: Removed. * configure.in: Don't generate goffice-paths.sh, rearrange the goffice_* AC_SUBSTs. * goffice/goffice.c (LIBGOFFICE_VERSION): Renamed to GOFFICE_VERSION. (libgoffice_lib_dir): Comment out in the WIN32 block, since the declaration is already commented out. 2005-03-23 Stepan Kasal * configure.in: Generate goffice-features.h as a header file, subset of goffice-config.h. * goffice/goffice-config.h.in: Adjust the template. 2005-03-22 Stepan Kasal * autogen.sh: REQUIRED_AUTOCONF_VERSION=2.54 We already required that indirectly, by asking for Automake >= 1.7.2. * configure.in: AC_PREREQ(2.54) - don't default to --without-gtk even if the reqs are not met; - don't generate stamp.h; the issue is solved by Automake 1.7.2; see info '(autoconf)Automatic Remaking' for details. * stamp.h.in: Nuke. * .cvsignore: Remove stamp*. * goffice/.cvsignore: Remove depcomp. * po/POTFILES.in: Remove goffice/cut-n-paste/pcre/printint.c. 2005-03-23 Emmanuel Pacaud * plugins/plot_radar/gog-radar.c (gog_radar_view_render): handle inverted circular axis. 2005-03-22 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (radar_process): fix padding request for circular axis. 2005-03-22 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (gog_axis_base_get_property): handle GOG_AXIS_AUTO. (gog_axis_base_set_position_auto): removed. (gog_axis_base_set_position): handle GOG_AXIS_AUTO. (xy_process): ditto. * goffice/graph/gog-axis-line.h: add GOG_AXIS_AUTO to GogAxisPosition. 2005-03-22 Emmanuel Pacaud Add support for axis selection. * goffice/graph/gog-axis-line.c (get_point_to_segment_distance): new. (axis_line_point): new. (axis_circle_point): new. (axis_cirlce_render): render as polygon if num_radii > 0.0 cos (x - pi/2) = sin (x) sin (x - pi/2) = -cos (x) (xy_process): handle point routine now. (radar_process) : ditto. (gog_axis_base_view_info_at_point): new. (gog_axis_base_view_padding_request): pass action parameter to process functions. (gog_axis_base_view_render): ditto. * goffice/graph/gog-grid-line.c (gog_grid_line_info_at_point): new. Just return FALSE for now. 2005-03-22 Emmanuel Pacaud * goffice/graph/gog-graph.c (gog_graph_force_update): replace if statement by a while loop, since an object update may trigger a update request for an other object. * goffice/graph/gog-renderer-gnome-print.c (gog_graph_print_to_gnome_print): force model update before rendering. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_update): ditto. * goffice/graph/gog-renderer-svg.c (gog_graph_export_to_svg): ditto. * plugins/plot_barcol/gog-line.c (gog_line_view_render): revert previous broken fix (2005-03-17). * tests/pie-demo.c (main): gog_chart_get_cardinality is not needed anymore. 2005-03-21 Emmanuel Pacaud * configure.in: change test/Makefile to tests/Makefile 2005-03-21 Christopher James Lahey * goffice/graph/gog-axis-line.c (gog_axis_base_set_position_auto): convenience function that places an axis line in the first free position. (cb_position_toggled): search all the axes with the same type, not just parent one. (axis_line_get_bbox): correct placement of axis labels. (axis_line_render): ditto. (axis_circle_get_bbox): ditto. (axis_circle_render): ditto. * goffice/graph/gog-axis.c (role_axis_line_post_add): use gog_axis_base_set_position_auto. (gog_axis_view_padding_request): restore padding hack. (gog_axis_view_size_allocate): ditto. * goffice/graph/gog-chart.c (axis_post_add): place axis in the first free position. 2005-03-21 Stepan Kasal * MAINTAINERS: New file, two beings selected as victims -- one human and one demi-god. * Makefile.am (EXTRA_DIST): Add README NEWS BUGS MAINTAINERS AUTHORS. * README: In the requirements, state that we require pango 1.8.1, and fix the Debian name of the pango package; delete intltool, it's distributed with the package. * configure.in: Delete the requirement for libgnomeprintui. 2005-03-20 Jody Goldberg * goffice/gtk/go-format-sel.c (fmt_dialog_enable_widgets) : make sure the current selection is visible. * goffice/goffice.c (libgoffice_init) : look in the right place. 2005-03-19 Jean Brefort * goffice/gtk/go-graph-widget.c: (go_graph_widget_size_allocate), (go_graph_widget_set_property), (go_graph_widget_get_property), (go_graph_widget_class_init), (go_graph_widget_init): add abd use aspect-ratio property. * test/pie-demo.c: (main): add a title and a lengend. 2005-03-18 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete): inverted is in GogAxisMap::axis->inverted. (map_discrete_to_view): ditto. (map_discrete_from_view): ditto. (map_linear_from_view) :ditto. (map_linear_to_view): ditto. (map_log_to_view): ditto. (map_log_from_view): ditto. (gog_axis_map_from_view): ditto. (gog_axis_map_to_view): ditto. (map_baseline): new. (map_log_finite): new. (map_log_baseline): new. (gog_axis_map_finite): new. Returns TRUE if value means something in this map. (gog_axis_map_get_baseline): new. Returns the baseline for the given map, in view coordinates, clipped to offset and offset+length, where offset and length are the parameters of gog_axis_map_new. * goffice/graph/gog-error-bar.c (gog_error_bar_render): do not try to render error bar if a part of it is not at a valid coordinate. * plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): replace go_finite tests by gog_axis_map_finite. * plugins/plot_radar/gog-radar.c (gog_radar_view_render): ditto. * plugins/plot_xy/gog-xy.c: ditto. * plugins/plot_barcol/gog-line.c (gog_line_view_render): ditto. Use gog_axis_map_get_baseline for y_zero. 2005-03-17 Emmanuel Pacaud * plugins/plot_barcol/gog-line.c (gog_line_view_render): Don't free memory with invalid pointers. 2005-03-16 Stepan Kasal * autogen.sh: Require intltool >= 0.27.2 and explain why; fix IFS handling; cosmetic changes. * configure.in: Cosmetics. * goffice/libgoffice-1.pc.in: Change the "Name:" to libGOffice, and put a command with a hint for anon cvs. 2005-03-16 Emmanuel Pacaud * goffice/graph/gog-axis.c (map_discrete_auto_bound): do not set auto cross point. 2005-03-16 Emmanuel Pacaud * goffice/utils/go-line.c (go_line_build_vpath), (go_line_build_bpath): fix new point test. 2005-03-16 Jean Brefort * test/pie-demo.c: fix compilation warnings and add some comments. 2005-03-15 Morten Welinder * goffice/cut-n-paste/pcre/pcre.c (pcre_exec): Backport another UMR fix. 2005-03-15 Emmanuel Pacaud * goffice/graph/gog-axis-line.c (axis_line_get_bbox): remove extra gog_axis_map_new. (gog_axis_base_view_padding_request): handle GOG_AXIS_SET_X like GOG_AXIS_SET_XY. (gog_axis_base_view_render): ditto. * goffice/graph/gog-chart.c (gog_chart_map_new): ditto. (gog_chart_map_2D): ditto. * goffice/graph/gog-axis.c (role_axis_line_can_add): adding an axis line is only relevant for GOG_AXIS_SET_XY for now. (gog_axis_class_init): add role_axis_line_can_add. * goffice/graph/gog-plot.c (gog_plot_populate_editor): axis selection is only relevant for GOG_AXIS_SET_XY. (gog_plot_set_axis_by_id): don't try to find an axis if id = 0, GogObject::id starts at 1. * plugins/plot_boxes/gog-xy.c (gog_bubble_plot_populate_editor): call parent::populate_editor. * plugins/plot_boxes/gog-boxplot.c (gog_box_plot_populate_editor): ditto. (gog_box_plot_view_render): free x_map. 2005-03-15 Stepan Kasal * goffice/graph/Makefile.am: Distribute gog-axis-line-impl.h. 2005-03-15 Jean Brefort * goffice/graph/gog-axis.c: (map_discrete_calc_ticks): limit ticks number to GOG_AXIS_MAX_TICK_NBR (fix a crash when importing xl log axis). 2005-03-15 Stepan Kasal Also undo the changes connected with the changes in configure.in, ... * plugins/plot_barcol/Makefile.am, plugins/plot_boxes/Makefile.am, plugins/plot_pie/Makefile.am, plugins/plot_radar/Makefile.am, plugins/plot_surface/Makefile.am, plugins/plot_xy/Makefile.am: ...here. 2005-03-14 Morten Welinder * configure.in: Undo last change. Test links with gcc, not $LD. * goffice/utils/format.c: Compile plain double version first as gdb sets breakpoints only for first copy. (go_format_number): Disable strange number scaling for ".". [#167274] 2005-03-14 Jean Brefort * goffice/graph/gog-axis.c: (gog_axis_get_entry): fixed test for GogAxisElemType arg (GOG_AXIS_ELEM_MAX_ENTRY instead of GOG_AXIS_ELEM_MAX). 2005-03-13 Emmanuel Pacaud * goffice/goffice.c (libgoffice_init): add GogAxisLine object. * goffice/graph/Makefile.am: add gog-axis-line.[ch] * goffice/graph/goffice-graph.h: add GogAxisLine object. Add new object position GOG_POSITION_PADDING. * goffice/graph/gog-axis-prefs.glade: Rework of axis property pages, now called Scale and Layout. * goffice/graph/gog-axis-line.[ch], gog-axis-line-impl.h: new. Contains an implementation of what is needed to actually draw an axis on screen, which was previously provided by GogAxis, in GogAxisBase and GogAxisBaseView. * goffice/graph/gog-axis.c: GogAxis is now derived from GogAxisBase. Tick settings and position are now property of GogAxisBase. (create_invalid_axis_ticks): always generate tick labels. (map_discrete_calc_ticks): ditto. (map_linear_calc_ticks): ditto. (map_log_calc_ticks): ditto. (role_label_post_add): removed. (role_axis_line_post_add): new. Set axis line position to an unused position. (gog_axis_set_property): removed tick and position settings. (gog_axis_get_property): ditto. (cb_pos_changed): removed. (gog_axis_editor): renamed to populate_editor. Use new GogEditor API. Removed everything related to tick and position settings. (gog_axis_class_init): Change position type of Label childs to GOG_POSITION_SPECIAL. Add AxisLine as possible child. Removed tick and position properties. (gog_axis_init): removed tick and position settings. (gog_axis_dataset_get_elem): cross location is a member of GogAxisBase. (gog_axis_get_pos): removed. (gog_axis_is_center_on_ticks): new. (gog_axis_view_padding_request): padding is now calculated in GogAxisBaseView. (gog_axis_view_size_request): removed. (gog_axis_view_size_allocate): new. handle axis titles. (draw_axis_from_a_to_b): removed. (gog_axis_view_render_children): removed. (gog_axis_view_render): rendering is now in GogAxisBaseView. * goffice/graph/gog-chart.c (gog_chart_map_new), (gog_chart_map_2D), (gog_chart_map_free): new. (gog_chart_class_init): Axis position type is GOG_POSITION_PADDING now. (gog_chart_axis_set): renamed to gog_chart_get_axis_set. (gog_chart_get_axis): renamed to gog_chart_get_axes. (gog_chart_view_get_plot_area): no need to store plot_area. It's in GogView::residual. (child_request): removed. (gog_chart_view_size_allocate): Do not handle axis padding request here. * goffice/graph/gog-grid-line.c (gog_grid_line_view_render): better placement of radar plots. * goffice/graph/gog-guru.c (cb_attr_tree_selection_change): no need to handle editor type since gog_object_get_editor always returns a notebook now. * goffice/graph/gog-label.c (gog_label_populate_editor): Use new GogEditor API. * goffice/graph/gog-legend.c (gog_legend_populate_editor): ditto. * goffice/graph/gog-series.c (gog_series_element_populate_editor): ditto. (gog_series_populate_editor): ditto. * goffice/graph/gog-style.c (font_init): ditto. (gog_style_populate_editor): ditto. (style_editor): ditto. (gog_style_editor): renamed to gog_style_get_editor. (gog_styled_object_editor): removed. (gog_style_handle_notebook): removed. * goffice/graph/gog-object.c (gog_editor_new), (gog_editor_add_page), (gog_editor_set_store_page), (gog_editor_get_notebook), (gog_editor_free): new. GogObject::id is an int now. This id is unique for a given object type and on the same level in the object tree. (gog_object_set_property): persist id now. (gog_object_get_property): ditto. (gog_object_class_init): ditto. (gog_object_is_same_type): new. (gog_object_generate_name): store auto_name and don't return anything. (gog_object_get_id): new. (gog_object_generate_id): new. (gog_object_set_id): new. (gog_object_get_name): return GogObject::auto_name. (gog_object_position_cmp): GOG_POSITION_PADDING and GOG_POSITION_SPECIAL are equivalent. (gog_object_get_editor): use new GogEditor API. (gog_object_set_parent): id is an int now. * goffice/graph/gog-plot.c (cb_axis_changed): new. (gog_plot_populate_editor): new. (gog_plot_set_property): store axis reference now. (gog_plot_get_property): ditto. (gog_plot_class_init): ditto. (gog_plot_set_axis_by_id): new. (gog_plot_get_axis_id): new. * goffice/graph/gog-styled-object.c (styled_object_populate_editor): use new GogEditor API. * goffice/graph/gog-theme.c (gog_themes_init): handle GogAxisLine objects. * goffice/graph/gog-view.c: GogView::padding_request : new. (gog_view_padding_request_real): new. (gog_view_padding_request): new. * plugins/plot_barcol/gog-1_5d.c (gog_series1_5d_populate_editor): use GogEditor API. * plugins/plot_barcol/gog-barcol.c (gog_barcol_plot_populate_editor): ditto. * plugins/plot_boxes/gog-boxplot.c (gog_box_plot_populate_editor): ditto. (gog_box_plot_view_render): draw sharp rectangles. * plugins/plot_pie/gog-pie-prefs.glade: layout fixes. * plugins/plot_pie/gog-pie-series.glade: ditto. * plugins/plot_pie/gog-pie.c (gog_pie_series_element_populate_editor): use GogEditor API. (gog_pie_plot_populate_editor): ditto. (gog_ring_plot_populate_editor): ditto. * plugins/plot_radar/gog-radar.c (gog_radar_plot_axis_get_bounds): maxima is num_elements - 1. (gog_radar_view_render): better radar plot placement. * plugins/plot_surface/gog-surface.c (gog_contour_plot_populate_editor): use GogEditor API. * plugins/plot_xy/gog-xy.c (gog_bubble_plot_populate_editor): ditto. (gog_xy_series_populate_editor): ditto. 2005-03-13 J.H.M. Dassen (Ray) * configure.in: Link -Wl,-O1 if the linker supports it; see http://people.redhat.com/drepper/dsohowto.pdf for background. * configure.in: Link -Wl,-z,defs if the linker supports it * plugins/plot_barcol/Makefile.am, plugins/plot_boxes/Makefile.am, plugins/plot_pie/Makefile.am, plugins/plot_radar/Makefile.am, plugins/plot_surface/Makefile.am, plugins/plot_xy/Makefile.am: except for the plugins. 2005-03-13 Jean Brefort * goffice/gtk/Makefile.am: add go-graph-widget.*. * goffice/gtk/go-font-sel.c: (canvas_size_changed): display sample text centered in the canvas. * goffice/gtk/go-graph-widget.c: new GOGraphWidget class. * goffice/gtk/go-graph-widget.h: ditto. * test/Makefile.am: add pie-demo sample program. * test/pie-demo.c: simple sample program. 2005-03-12 Morten Welinder * goffice/utils/format.c (go_render_number): Add epsilon early and permanently. Fix significant digit check. 2005-03-11 Morten Welinder * goffice/utils/format.c (go_render_number): Fix two trailing-zeros bugs. * goffice/utils/Makefile.am (.list.c): Add include of goffice/goffice-config.h when building this. * goffice/utils/go-libxml-extras.c (xml_node_set_gocolor): Don't go via GdkColor which we may not have. * goffice/utils/regutf8.c (go_regexp_quote): Renamed from gnumeric_regexp_quote. 2005-03-11 Stepan Kasal * configure.in: Propagate ACLOCAL_FLAGS, so that it's available in the Makefile for the aclocal.m4 rule. (goffice_reqs): Require pango 1.8.1; it is not good if we _slightly_ differ from gnumeric. 2005-03-09 Morten Welinder * goffice/utils/datetime.h (WEEKNUM_METHOD_SUNDAY): Define using enum. * goffice/utils/datetime.c (datetime_weeknum, datetime_g_days_between, datetime_g_months_between, datetime_g_years_between): Use g_return_val_if_fail, not g_assert. * goffice/utils/format.c: Fix long double compilation. 2005-03-08 Jody Goldberg The last of the code dependencies on gnumeric. Now I just need to move the icons. * goffice/gtk/go-action-combo-color.c (go_action_combo_color_new) : use gtk_icon_theme_load_icon in place of gnm_app_get_pixbuf. * goffice/gtk/goffice-gtk.c (update_preview_cb) : ditto. 2005-03-08 Stepan Kasal * configure.in (AC_OUTPUT, AC_CONFIG_FILES): Use AC_CONFIG_FILES and call AC_OUTPUT with no parameters; this was already available in autoconf 2.52. 2005-03-07 J.H.M. Dassen (Ray) * goffice/Makefile.am: Fixed inter-library dependencies; fix towards -Wl,-z,defs buildability. * goffice/graph/gog-grid-line.h, goffice/gtk/go-action-combo-stack.c, goffice/ms-compat/god-drawing-ms.c: Switch to traditional C comments, to be buildable by gcc -ansi. 2005-03-07 Morten Welinder * configure.in: Pare down long double support checks to what is needed. * goffice/goffice-config.h: Don't install this, ... * goffice/goffice-features.h: ... install this one instead. 2005-03-07 Stepan Kasal * configure.in: Don't default to --without-gtk if gtk libs are not found; remove checks for gconf, Corba and GNU make, as they are not used in goffice; improve quoting and make use of AC_SUBST/2. * goffice/app/Makefile.am (UNUSED): List the unused files lingering in the CVS, ... (EXTRA_DIST): ... and distribute them. * goffice/gtk/Makefile.am (UNUSED, EXTRA_DIST): Likewise. * goffice/cut-n-paste/pcre/Makefile.am: Refresh. 2005-03-07 Morten Welinder * configure.in: Use largefile apis. * goffice/utils/go-libxml-extras.c (go_xml_parse_file): New replacement for xmlParseFile. All users changed. * goffice/utils/go-math.c (go_math_init): Verify properties of go_nanl, go_pinfl, and go_ninfl. * goffice/utils/format.c (number_format_init): Fix initialization of beyond_precision and beyond_precisionl. 2005-03-06 Jean Brefort * goffice/graph/gog-axis.c: (map_discrete_to_view), (map_discrete_from_view), (map_linear_to_view), (map_linear_from_view), (map_log_to_view), (map_log_from_view), (gog_axis_map_from_view), (gog_axis_map_to_view), (draw_axis_from_a_to_b), (gog_axis_view_render): changed map_to_canvas to map_to_view and added gog_axis_map_from_canvas and support. * goffice/graph/gog-axis.h: ditto. * goffice/graph/gog-error-bar.c: (gog_error_bar_render): ditto. * goffice/graph/gog-grid-line.c: (gog_grid_line_view_render): ditto. * plugins/plot_barcol/gog-barcol.c: (barcol_draw_rect): ditto. * plugins/plot_barcol/gog-line.c: (gog_line_view_render): ditto. * plugins/plot_boxes/gog-boxplot.c: (gog_box_plot_view_render): ditto. * plugins/plot_radar/gog-radar.c: (gog_radar_view_render): ditto. * plugins/plot_surface/gog-surface.c: (gog_contour_view_render): ditto. * plugins/plot_xy/gog-xy.c: (gog_xy_view_render): ditto. 2005-03-06 Jon K Hellan * goffice/utils/go-file.c (go_get_mime_type): New. 2005-03-06 Emmanuel Pacaud * goffice/app/go-plugin.c (go_plugins_init): append goffice plugin directory to plugin_dirs list. (go_plugins_get_plugin_dir): new. 2005-03-04 Jody Goldberg * goffice/app/module-plugin-defs.h : remove the ugly go_get_current_plugin and the PLUGIN & PLUGIN_CLASS macras. 2005-03-04 Morten Welinder * goffice/utils/go-math.c (go_finite): Make this a function and add a fallback definition. * goffice/graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): No need to call go_pango_fc_font_map_cache_clear. (gog_renderer_pixbuf_get_pango_context): Use Gimp's leak work-around instead. * goffice/utils/go-font.c (go_fonts_list_families, go_fonts_list_sizes): New function. Rework all references to go_fonts_family_names, go_fonts_font_size_names, go_fonts_font_size_pts to use these. (This gets rid of one more direct -- and wrong -- reference to the ft2 pango backend.) (go_pango_fc_font_map_cache_clear): Remove. * goffice/utils/go-math.c (go_stern_brocot): Use double, not float. * goffice/utils/go-glib-extras.c (go_mem_chunk_new): Drop references to gnm_float. 2005-03-04 Stepan Kasal * goffice/cut-n-paste/foocanvas/foo-canvas.c: Refresh. 2005-03-02 Ivan, Wong Yat Cheung * goffice/gtk/goffice-gtk.c: Use gsf_input_textline_utf8_gets() to read .hhmap file which stores topic_string-context_id pairs. Become more verbose when topic is not found. go_gtk_notice_(nonmodal_)dialog/go_gtk_query_yes_no now accept va_arg. 2005-03-02 Stepan Kasal * configure.in: Add check for Xrender. * goffice-plugins.mk (INCLUDES): Fix. * goffice/cut-n-paste/foocanvas/*: Refresh. 2005-02-28 Jean Brefort * goffice/utils/go-glib-extras.c: replaced gnumeric-config.h by goffice-config.h * goffice/gtk/go-action-combo-pixmaps.h: updated gui-utils to gtk for includes paths. * goffice/gtk/go-font-sel.c: ditto. * goffice/gtk/go-format-sel.c: ditto. * goffice/utils/go-glib-extras.c: ditto. * goffice/utils/go-gradient.c: ditto. * goffice/utils/go-line.c: ditto. * goffice/utils/go-marker.c: ditto. * goffice/utils/go-pattern.c: ditto. * plugins/plot_barcol/gog-barcol-prefs.c: ditto. * plugins/plot_boxes/gog-boxplot.c: ditto. * plugins/plot_pie/gog-pie-prefs.c: ditto. * plugins/plot_surface/gog-contour-prefs.c: ditto. * plugins/plot_xy/gog-bubble-prefs.c: ditto. 2005-02-28 Christopher James Lahey * configure.in, goffice-plugins.mk: Changed gnumeric to goffice here. 2005-02-27 Christopher James Lahey * Makefile.am (pkgconfigdir), configure.in (AC_OUTPUT): Create and install libgoffice-1.pc. 2005-02-27 Christopher James Lahey * libgoffice-1.pc.in: New file. 2005-02-27 Jody Goldberg * configure.in : Quick and dirty subset of gnumeric 2005-02-26 Jody Goldberg * graph/Makefile.am : move the plugins into the root dir so that the plugins can link against libgoffice 2005-02-22 Morten Welinder * gui-utils/go-gui-utils.c (filter_images): If we have no mime-type, fall back to checking the extension against what gdk-pixbuf supports. Adapted from bug #164589. 2005-02-17 Stepan Kasal * Makefile.am (INCLUDES): Remove -I$(top_srcdir)/src/cut-n-paste-code/goffice. Fix the remaining includes. * goffice.c (go_sys_icon_dir): Fix typo. 2005-02-17 Emmanuel Pacaud * gui-utils/go-gui-utils.c: include errno.h (go_help_display): link is part of paths. 2005-02-16 Jean Brefort * graph/gog-renderer-pixbuf.c: (gog_renderer_pixbuf_draw_path): rewrite to use large paths at once and have better dashes support * graph/plugins/plot_xy/gog-xy.c: (gog_xy_view_render): render path at once and use ART_PATH_STROKE_CAP_ROUND for better rendering of large lines. * utils/go-line.c: (go_line_build_vpath): new function, builds a vpath from a set of points. * utils/go-line.h: ditto. 2005-02-16 Jody Goldberg * utils/go-file.c (go_url_check_extension) : pull down from gnumeric * gui-utils/go-gui-utils.c (go_gtk_button_new_with_stock) : renamed from go_gtk_button_new_with_stock_image. (go_libglade_new) : use go_sys_data_dir. (go_gtk_widget_disable_focus) : renamed from go_widget_disable_focus. (go_pango_measure_string) : renamed from go_measure_string. (go_gtk_window_set_transient) : renamed from go_window_set_transient. (go_gtk_nonmodal_dialog) : renamed from gnumeric_non_modal_dialog. (go_gtk_file_sel_dialog) : renamed from gnumeric_dialog_file_selection. (go_gtk_select_image) : renamed from gui_image_file_select. (gui_get_image_save_info) : pulled in from gnumeric. (go_atk_setup_label) : renamed from gnm_setup_label_atk. (go_help_display) : pulled down from gnumeric and made generic. (go_gtk_help_button_init) : ditto. (go_gtk_url_is_writeable) : ditto. (go_gtk_dialog_run) : pulled from gnumeric (go_gtk_notice_dialog) : ditto. (go_gtk_notice_nonmodal_dialog) : ditto. (go_gtk_query_yes_no) : ditto. * gui-utils/Makefile.am : Add libhtml_stub * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_init) : init the dpis. (gog_renderer_pixbuf_get_pango_context) : use the stored calculated dpi rather than gconf (gog_renderer_pixbuf_update) : store the dpi * goffice.c (libgoffice_init) : init the paths. We may want to expand this at some point to allow cmd-line or env-var override. (go_sys_data_dir) : new. (go_sys_icon_dir) : new. 2005-02-15 Stepan Kasal * gui-utils/go-marshalers.list: Remove, merge with ... * utils/go-marshalers.list: ... this one, adjust all callers. * gui-utils/Makefile.am: Nuke the rules for go-marshalers. * utils/Makefile.am: Typo. * goffice.mk (INCLUDES): Add $(builddir)/../cut-n-paste-code, for the generated header goffice/utils/go-marshalers.h. 2005-02-11 Morten Welinder * gui-utils/go-combo-text.c (cb_list_changed): Plug leak. * utils/go-font.c (go_fonts_init): Copy family names instead of relying on pango leak. Destroy fontmap only after we get the names out. * gui-utils/go-format-sel.c (generate_preview): Avoid crash in g_warning. 2005-02-09 Stepan Kasal * app/error-info.h: Change the guard to GO_ERROR_INFO_H. 2005-02-08 Jon K Hellan * utils/format.h: Include numbers.h. (render_number): Make declaration match definition. 2005-02-08 Morten Welinder * utils/go-font.c (go_fonts_init): Plug leak. 2005-02-08 Jody Goldberg * Release 1.5.0 2005-02-05 Morten Welinder * graph/gog-renderer-gnome-print.c (get_font): Return a PangoFontDescription, not a GnomeFont. All callers changed. 2005-02-04 Morten Welinder * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): Remove old #ifdef HAVE_foo stuff. * graph/gog-renderer-gnome-print.c: Ditto. 2005-02-03 Jean Brefort * graph/gog-axis.c: (map_linear_auto_bound): change < to >, fix #164593. 2005-01-25 Jody Goldberg * graph/plugins/plot_boxes/gog-boxplot.c (gog_box_plot_pref) : fix signature. 2005-01-24 Jean Brefort * graph/goffice-graph.h: add GOG_AXIS_SET_X. * graph/gog-chart.c: (role_grid_can_add), (gog_chart_axis_set_assign), (gog_chart_view_size_allocate): add grid when we have only an X axis. * graph/plugins/Makefile.am: add box-plots plugin * graph/plugins/plot_boxes/Makefile.am: new plugin. * graph/plugins/plot_boxes/gog-boxplot-prefs.glade: * graph/plugins/plot_boxes/gog-boxplot.c: ditto. * graph/plugins/plot_boxes/gog-boxplot.h: ditto. * graph/plugins/plot_boxes/plot-types.xml.in: ditto. * graph/plugins/plot_boxes/plugin.xml.in: ditto. * pixmaps/Makefile.am: add box-plots pixmaps. * pixmaps/boxplot.xpm: ditto. * pixmaps/chart_boxplot_1_1.png: ditto. * pixmaps/chart_boxplot_1_1.svg: ditto. 2005-01-22 Jean Brefort * graph/gog-renderer-gnome-print.c: (gog_renderer_gnome_print_draw_bezier_path), (gog_renderer_gnome_print_class_init): add Bezier paths support. * graph/gog-renderer-impl.h: ditto. * graph/gog-renderer-pixbuf.c: (gog_renderer_pixbuf_draw_bezier_path), (gog_renderer_pixbuf_class_init): ditto. * graph/gog-renderer-svg.c: (gog_renderer_svg_draw_bezier_path), (gog_renderer_svg_class_init): ditto. * graph/gog-renderer.c: (gog_renderer_draw_bezier_path): ditto. * graph/gog-renderer.h: ditto. * graph/plugins/plot_xy/gog-xy.c: (gog_xy_set_property), (gog_xy_get_property), (gog_xy_plot_class_init), (gog_xy_view_render): add spline interpolation support. * graph/plugins/plot_xy/gog-xy.h: ditto. * graph/plugins/plot_xy/plot-types.xml.in: ditto. * pixmaps/Makefile.am: install chart_scatter_3_3.png. * utils/go-line.c: (go_line_build_bpath): new function, builds a Bezier path from an array of points. * utils/go-line.h: add go_line_build_bpath. 2005-01-17 Jody Goldberg * Release 1.4.2 2005-01-14 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=163939 * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_update) : zero sized views are not relevent, and does not require any redrawing. 2005-01-11 Morten Welinder * gui-utils/go-combo-text.c (go_combo_text_init): Bind to the treeview's cursor_changed signal, not the selection's changed signal. [#163412]. 2005-01-06 Morten Welinder * utils/go-math.c (go_fake_floor, go_fake_ceil): Fix negative case. 2005-01-05 Jean Brefort * pixmaps/Makefile.am: add chart_contour_1_1.png. * pixmaps/chart_contour_1_1.png: new icon by Emmanuel Pacaud. * pixmaps/chart_contour_1_1.svg: ditto. * pixmaps/chart_contour_1_2.png: ditto. * pixmaps/chart_contour_1_2.svg: ditto. * pixmaps/chart_scatter_3_3.png: ditto. * pixmaps/chart_scatter_3_3.png: ditto. * graph/plugins/plot_surface/plot_types.xml.in: use chart_contour_1_1.png. 2005-01-05 Morten Welinder * graph/gog-series.c (gog_series_get_element): Fix NULL/FALSE confusion. 2004-12-17 Jody Goldberg From Ivan Wong : http://bugzilla.gnome.org/show_bug.cgi?id=159860 * utils/go-file.c (go_url_show) : Use ShellExecute on win32 2004-12-17 Emmanuel Pacaud * graph/plot-xy/gog-xy.c (gog_xy_series_init_style): don't disable theming. 2004-12-17 Emmanuel Pacaud * graph/gog-series.c (gog_series_dataset_dim_changed): resize for every label change. * graph/gog-axis.c (gog_axis_update): no need to force resize for discrete axis, it's handled by gog_series_dataset_dim_changed. 2004-12-15 Morten Welinder * gui-utils/go-action-combo-stack.c (get_key_at_path): Don't crash if we don't get an iter. (cb_motion_notify_event): Handle empty tree case. 2004-12-09 Jody Goldberg * Release 1.4.1 2004-12-09 Jody Goldberg * utils/go-file.c (go_url_show) : patch the problems morten pointed out and finish the '%1' subsitution. 2004-12-08 Jody Goldberg * utils/go-file.c (go_url_show) : new with a win32 and non-gnome wrapper 2004-12-01 Jody Goldberg * goffice.mk (INCLUDES) : remove GNUMERIC_ICON_DIR 2004-11-28 Jody Goldberg * Release 1.4.0 2004-11-19 Emmanuel Pacaud * graph/gog-style.c (gog_style_gradient_load): call gog_style_set_fill_brightness in order to correctly initialize start and end colors. 2004-11-18 Emmanuel Pacaud * graph/gog-axis.c (create_invalid_axis_ticks): add a flag to note create "##" labels. * graph/gog-guru.c (cb_attr_tree_selection_change): scroll to selected row. 2004-11-14 Emmanuel Pacaud * graph/gog-renderer-pixbuf.c (line_size): width <= 0. is hairline. * graph/gog-renderer.c (gog_render_line_size): ditto. * graph/gog-style.c (cb_outline_size_changed): round to 2 significant digits since sometimes adj->value returns 1E-17 instead of zero. (cb_line_size_changed): ditto. (gog_style_apply_theme): handle dash_type property. (gog_style_gradient_sax_save): fix brightness test to be consistent with dom_save. (gog_style_gradient_load): start-color and end-coilor were inverted. (gog_style_is_outline_visible): line is visible for all width values. (gog_style_is_line_visible): ditto. (gog_style_force_auto): handle auto_dash. * graph/plugins/plot_xyt/gog-xy.c (gog_xy_series_init_style): handle dash_type property. 2004-11-14 Andreas J. Guelzow http://bugzilla.gnome.org/show_bug.cgi?id=152514 * graph/gog-guru.c (graph_guru_init_ok_button): new (graph_guru_init): call graph_guru_init_ok_button (gog_guru): initialize state->editing 2004-11-07 Jody Goldberg * Release 1.3.93 2004-10-31 Jody Goldberg * Release 1.3.92 2004-11-01 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=157048 * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): fix leak. 2004-10-30 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152765 * graph/gog-guru.c (graph_guru_init_format_page): delete_button is really a button now, so connect "clicked" signal instead of "activate". * graph/gog-guru.glade: replace "Delete" menuitem by a button as a workaround of gtk+ bug #155336. 2004-10-29 Morten Welinder * cut-n-paste/pcre/pcre.c (ord2utf8): Fix ABR. (Fixed in PCRE 5.0, but I don't want to upgrade right now.) 2004-10-27 Morten Welinder * utils/go-line.c (go_line_clip_vpath): Make sure "reject" is initialized. (GOLineDashDesc): Do not rely on C99 features. 2004-10-27 Emmanuel Pacaud * graph/gog-style.c (gog_style_gradient_load): fix brightness case. 2004-10-26 Emmanuel Pacaud * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): fix marker for missing data. 2004-10-26 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152585 * grah/gog-axis.c (gog_axis_update): always emit changed signal for discrete axis, since labels may have changed. * plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update): call gog_axis_bound_changed if GogSeries1_5D->index_changed == TRUE. (gog_series1_5d_dim_changed): new. Used to set index_changed to TRUE when vector dim_i == 0 changed. 2004-10-25 Emmanuel Pacaud * graph/gog-axis.c (draw_axis_from_a_to_b): use gog_style_is_line_visible instead of checking line width. (gog_axis_view_render): ditto. * graph/gog-label.c (gog_label_view_render): draw sharp rectangle around label. * graph/gog-legend.c (cb_render_elements): draw sharp sample line and sharp rectangle around elements. (gog_legend_class_init): set clip to TRUE in order to avoid sample lines to extend beyond legend area. * graph/gog-outlined-object.c (gog_outlined_view_size_request): use gog_style_is_line_visible instead of checking for positive line width. (gog_outlined_view_size_allocate): ditto. (gog_outlined_view_render): draw sharp rectangle. * graph/gog-renderer-gnome-print.c (set_dash): new. (gog_renderer_gnome_print_draw_path): honor dash setting. Clip dashed path in order to avoid huge memory allocation and crash for very long lines. (gog_renderer_gnome_print_draw_polygon): ditto. * graph/gog-renderer-impl.h: add GogRenderer::line_dash and GogRenderer::outline_dash members. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_clip_push): fix clip area rounding. (line_size): new. Same as gog_renderer_line_size, but don't round width < 1.0 . (gog_renderer_pixbuf_line_size): use line_size. (gog_renderer_pixbuf_sharp_path): fix rounding. (gog_renderer_pixbuf_draw_path): honor dash setting. (gog_renderer_pixbuf_draw_polygon): ditto. * graph/gog-renderer-svg.c (gog_renderer_svg_clip_push): use C locale for double to string conversion. (stroke_dasharray): new. (gog_renderer_svg_draw_path): honor dash setting. (gog_renderer_svg_draw_polygon): ditto. * graph/gog-renderer.c: define a hair line width and set it to 0.24pt. (gog_renderer_finalize): free line_dash and outline_dash. (update_dash): new. (gog_renderer_push_style): call update_dash. (gog_renderer_pop_style): ditto. (gog_renderer_clip_push): keep a pointer to the current clip. (gog_renderer_clip_pop): ditto. (draw_rectangle): new. (gog_renderer_draw_sharp_rectangle): new. (gog_renderer_line_size): return GOG_RENDERER_HAIR_LINE_WIDTH instead of 1.0 for style->line.width == 0.0 . * graph/gog-style-prefs.glade: add dash type combos. * graph/gog-style.c (cb_outline_dash_type_changed): new. (cb_line_dash_type_changed): new. (outline_init): add dash selector. (line_init): ditto. (gog_style_line_load): load dash settings. (gog_style_line_dom_save): save dash settings. (gog_style_line_sax_save): ditto. (gog_style_is_different_size): check dash_type. (gog_style_is_outline_visible): new. (gog_style_is_line_visible): check dash_type. * graph/gog-theme.c (gog_themes_init): use dash_type. * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): don't draw sharp path. * utils/go-line.[ch]: new. 2004-10-13 Jean Brefort * graph/gog-axis.c: add center_on_ticks boolean to force centering labels on ticks for discree mapped axis. * graph/gog-plot.h: ditto. * graph/gog-plot.c: ditto. 2004-10-19 Morten Welinder * utils/go-file.c (go_dirname_from_uri): New function. 2004-10-13 Emmanuel Pacaud * graph/gog-axis.c (gog_axis_dim_changed): call gog_axis_update in order to refresh labels and ticks. 2004-10-13 Morten Welinder * graph/gog-axis.c (gog_axis_get_entry): Remove band-aid no longer needed. (Although files created in the past few days will have the vector type in the file.) 2004-10-13 Jean Brefort * graph/gog-axis.c: (make_dim_editor): replace TRUE by GO_DATA_SCALAR in the call to gog_data_allocator_editor. * graph/gog-label.c: (gog_label_editor): ditto. * graph/gog-series.c: (gog_series_editor): ditto. 2004-10-13 Jean Brefort * graph/gog-plot-impl.h: added a foreach_elem member in GogPlotClass * graph/gog-plot.c: (gog_plot_foreach_elem): calls Klass->foreach_elem when not NULL to override default legends management. * graph/gog-renderer-gnome-print.c: (draw_path): add ART_MOVETO_OPEN case, (gog_renderer_gnome_print_measure_text): fix a bad sign. * graph/gog-renderer-svg.c: (draw_path): add ART_MOVETO_OPEN case. 2004-10-12 Morten Welinder * graph/gog-axis.h (GogAxisTickTypes): Fix namespace. * graph/gog-axis.c (GogAxisElemType): Name this type. (gog_axis_get_entry): Use GogAxisElemType, not unsigned int, for the index argument. 2004-10-12 Morten Welinder * graph/gog-axis.c (map_linear_auto_bound): Fix gnm_float/double confusion. (gog_axis_get_entry): Temporary fix for user-defined axis limits. 2004-10-11 Morten Welinder * graph/gog-series.c (gog_series_finalize): Plug leak. 2004-10-11 Jody Goldberg * gui-utils/Makefile.am : drop the dock code we're not going to be using it before 1.4 2004-10-02 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=154664 * graph/gog-guru.glade: set width and height request for sample area and object list. 2004-10-09 Jean Brefort * graph/go-data.c: (go_data_matrix_emit_changed), (go_data_matrix_class_init), (go_data_matrix_get_size), (go_data_matrix_get_values), (go_data_matrix_get_value), (go_data_matrix_get_str), (go_data_matrix_get_minmax): new GOMatix class. * graph/go-data.h: ditto. * graph/go-data-impl.h: ditto. * graph/goffice-graph.h: ditto. Added GODataType enumerated type. * graph/gog-data-allocator.c: (gog_data_allocator_editor): Replaced "gboolean prefers_scalar" by "GODataType data_type". * graph/gog-data-allocator.h: ditto. * graph/gog-error-bar.c: (cb_type_changed), (gog_error_bar_prefs): * graph/gog-series.c: (gog_series_editor): ditto. * graph/plugins/plot_surface/Makefile.am: new contour plots. * graph/plugins/plot_surface/gog-contour-prefs.c: ditto. * graph/plugins/plot_surface/gog-contour-prefs.glade: ditto. * graph/plugins/plot_surface/gog-surface.c: ditto. * graph/plugins/plot_surface/gog-surface.h: ditto. * graph/plugins/plot_surface/plot-types.xml.in: ditto. * graph/plugins/plot_surface/plugin.xml.in: ditto. 2004-10-08 Jody Goldberg * graph/gog-object.c (gog_object_dup) : copy the position. 2004-10-06 Jody Goldberg * graph/gog-control-foocanvas.c (gog_control_foocanvas_update) : Fix redraw. There were two bugs. 1) foocanvas_group_update was wiping tbe bounds (things always look like they move) 2) We were not requesting a redraw for the old position before moving. 2004-10-05 Jody Goldberg * Release 1.3.91 2004-10-03 Jody Goldberg * graph/gog-control-foocanvas.c : Make the class definition public to make it easier to graft on an additional interface in the app. We may not need this later if SheetObject moves down into goffice 2004-10-02 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152672 * graph/gog-theme.c (gog_themes_init): set pattern background to white, even when automatic pattern style is NONE. * graph/gog-label.c (gog_label_editor): fix layout. (gog_label_view_render): add padding when outline > 0. or pattern != NONE. * graph/gog-outlined-object.c (gog_outlined_view_size_request): ditto. (gog_outlined_view_size_allocate): ditto. * graph/gog-style.c (gog_style_is_different_size): changing pattern type can change object size. 2004-09-29 Emmanuel Pacaud * graph/gog-guru-type-selector.glade: new. * graph/Makefile.am: add gog-guru-type-selector.glade. * graph/gog-axis-prefs.glade: fix layout. * graph/gog-axis.c (make_dim_editor): ditto. (gog_axis_editor): ditto. * graph/gog-guru.c (cb_attr_tree_selection_change): always use a notebook, but hide tabs when there's only one page. (graph_guru_type_selector_new): load layout from glade file. * graph/gog-guru-glade: remove scrollbar around property notebook. Make object menu unshrinkable. Fix layout. * graph/gog-series.c (gog_series_element_editor): fix layout. * graph/gog-style.c (font_int): ditto. * graph/plugins/plot_barcol/gog-barcol-prefs.glade: ditto. * graph/plugins/plot_pie/gog-pie-series.glade: ditto. * graph/plugins/plot_pie/gog-ring-prefs.glade: ditto. * graph/plugins/plot_xye/gog-xy-prefs.glade: ditto. 2004-09-29 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=153402 * graph/plugins/gog-radar-prefs.c: removed. * graph/plugins/gog-radar-prefs.glade: removed. * graph/plugins/gog-radar.c: removed reference to plot editor. * graph/plugins/Makefile.am: removed reference to gog-radar-prefs.[c,glade]. 2004-09-29 Morten Welinder * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): Conditionalise the use of pango_context_get_font_map. 2004-09-28 Morten Welinder * utils/go-font.c (go_pango_fc_font_map_cache_clear): New function, wrapping pango_fc_font_map_cache_clear (which isn't public). * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): Call go_pango_fc_font_map_cache_clear. * utils/go-color.c (go_color_to_pango): Add is_fore argument and export. 2004-09-28 Emmanuel Pacaud * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_info_at_point): disable automatic point creation for ring plot, since it doesn't work. For pie plot, don't create new point when it already exists, but select it. 2004-09-28 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=153401 * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render): fix special inner arc handling test (has_hole :) ). 2004-09-27 Morten Welinder * utils/go-math.c (go_fake_ceil): New function. * utils/go-file.c (go_url_encode): Make this half-way decent. (go_url_decode): Make this O(n) too. * libpresent/ppt-parsing-helper.h: Add header guard. 2004-09-27 Jon K Hellan * graph/gog-renderer-gnome-print.c (gog_graph_print_to_gnome_print): Conditionalize call to gnome_print_pango_create_layout. 2004-09-26 Jody Goldberg From : Yukihiro Nakai http://bugzilla.gnome.org/show_bug.cgi?id=148550 * utils/go-file.c (go_url_decode) : new (go_url_encode) : new. I'm not sure these belong in go vs gsf but lets keep them here for now until they get fleshed out. 2004-09-25 Emmanuel Pacaud * graph/gog-error-bar-prefs.glade: 12 px between label and control. * graph/gog-style-prefs.glade: 12 px padding. Use GtkAlignment for group layout. * graph/gog-style.c: use new layout. 2004-09-25 Emmanuel Pacaud * graph/gog-error-bar-prefs.glade: layout rework. * graph/gog-error-bar.c (cb_type_changed): use new layout. Hide styles when category is none. (gog_error_bar_prefs): ditto. 2004-09-23 Emmanuel Pacaud * graph/gog-axis.c (gog_axis_view_render): draw_minor and draw_major only if line_width > 0. * grapg/gog-theme.c (gog_themes_init): initialize GogGrid outline. 2004-09-23 Emmanuel Pacaud * graph/gog-axis.c (gog_axis_view_render): Calculate major_out even if line_width <= 0, because it's needed for label positionning. 2004-09-23 Emmanuel Pacaud * graph/gog-axis.c: make GogGridLine as child of GogAxis. (role_grid_line_can_add): new. (role_grid_line_major_can_add): new. (role_grid_line_minor_can_add): new. (role_grid_line_major_post_add): new. (role_grid_line_minor_post_add): new. (gog_axis_view_class_init): add grid line roles. (gog_axis_view_render_children): new. Don't render grid lines here. (gog_axis_view_render): call gog_axis_view_render_children. Free axis_list. * graph/gog-chart.c (gog_chart_view_class_init): set call_parent_render to FALSE. (grid_line_render): new. Render minor grid, then major. (gog_chart_view_render): new. Kludge for grid lines rendering before axis. * graph/gog-grid-line.c: add new is_minor property and remove type property. (gog_grid_line_is_minor): new. (gog_grid_line_view_render): implement radar grid. * graph/gog-grid.c: Remove grid line roles. (role_grid_line_can_add): removed. (role_grid_x_major_can_add): removed. (role_grid_x_minor_can_add): removed. (role_grid_y_major_can_add): removed. (role_grid_y_minor_can_add): removed. (role_grid_x_major_post_add): removed. (role_grid_x_minor_post_add): removed. (role_grid_y_major_post_add): removed. (role_grid_y_minor_post_add): removed. (gog_grid_view_render): sharpen polygon. (gog_grid_init_style): add OUTLINE property. * graph/gog-outlined-object.c: add a call_parent_render class property. Deafult to TRUE. * graph/gog-theme.c (gog_themes_init): add MajorGrid and MinorGrid themes. Remove X-MajorGrid, Y-MajorGrid, X-MinorGrid, Y-MinorGrid themes. 2004-09-23 Morten Welinder * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): Get the right kind of size. (gog_renderer_gnome_print_measure_text): Use layout method here too. 2004-09-22 Morten Welinder * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text): Print using pango layouts. Adapted from code by Yaacov Zamir . 2004-09-21 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=153289 * graph/gog-axis.c (gog_axis_editor): hide minor tick properties when editing discrete axis properties. * grah/gog-axis-prefs.glade: name minor tick frame. 2004-09-20 Emmanuel Pacaud * pixmaps: make color order consistent and rerender png from svg with inkscape instead of rsvg. 2004-09-20 Emmanuel Pacaud * goffice.c: new GogGridLine type. * graph/gog-axis.c (map_discrete_calc_ticks): always calc major and minor ticks. (map_linear_calc_ticks): ditto. (map_log_calc_ticks): ditto. (gog_axis_get_ticks): return tick list and tick number now. (gog_axis_view_render): since all ticks are in cache, only draw them if they are visibles. * graph/gog-grid-line.[ch]: new. * graph/gog-grid.c (gog_grid_init_style): use only fill property. (role_grid_line_can_add): new. (role_grid_x_major_can_add): new. (role_grid_x_minor_can_add): new. (role_grid_y_major_can_add): new. (role_grid_y_minor_can_add): new. (role_grid_x_major_post_add): new. (role_grid_x_minor_post_add): new. (role_grid_y_major_post_add): new. (role_grid_y_minor_post_add): new. (gog_grid_class_init): register new grid line roles. * graph/gog-theme.c: register theme for new grid line objects. 2004-09-20 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=153146 * graph/plugins/plot_radar/gog-radar.c (gog_radar_view_render): Check if series is valid before trying to render it. 2004-09-19 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152615 * pixmaps: new consistent charting icon set (based on a Jimmac work). 2004-09-16 Emmanuel Pacaud * graph/gog-error-bar.c (gog_error_bar_get_min_max): get values from outside of loop. (gog_error_bar_get_bounds): add assertions. Use go_data_vector_get_value. 2004-09-15 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152499 * graph/gog-error-bar.c (gog_error_bar_get_minmax): check whether associated GogSeries is valid. 2004-09-15 Emmanuel Pacaud * graph/gog-error-bar.c (gog_error_bar_get_minmax): add assertions. 2004-09-14 Emmanuel Pacaud * graph/gog-axis.c (gog_axis_map_is_valid): add assertion. 2004-09-09 Jody Goldberg * graph/gog-series.c (gog_series_element_set_index) : new to handle theming properly. (gog_series_element_set_property) : use it here. (gog_series_element_init_style) : and here. (role_series_element_allocate) : and here. 2004-09-10 Emmanuel Pacaud * graph/gog-renderer-pixbuf.c (gog_renderer_draw_text): remove remaining unref. 2004-09-10 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=152201 * graph/gog-axis.c (map_discrete_auto_bound): Set automatic maximum number of major and lables to 100. (gog_axis_view_render): don't draw axis + ticks in one path. * graph/gog-renderer-pixbuf.c: cache pango layout. (gog_renderer_pixbuf_get_pango_layout): new. (gog_renderer_pixbuf_get_pango_context): new. (gog_renderer_pixbuf_push_style): new. unref pango_layout. (gog_renderer_pixbuf_push_style): ditto. 2004-09-08 Jody Goldberg * Release 1.3.90 2004-09-07 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=151530 tick label truncated by chart outline http://bugzilla.gnome.org/show_bug.cgi?id=151527 pb when exporting to svg a chart without outline http://bugzilla.gnome.org/show_bug.cgi?id=127203 X axis labels centre on chart, not on axis * graph/goffice-graph.h: new GogViewPadding type. * graph/gog-axis.c (map_log_to_canvas): DBL_MIN is not -DBL_MAX. (gog_axis_view_padding_request): new. (gog_axis_view_size_request): just call gog_view_size_child_request. (gog_axis_view_size_allocate): remove. (gog_axis_view_render): stop libart path to third element in case of line_width <= 0. Fix label dropping. Use Chart->plot_area for axis drawing. * graph/gog-chart.c (gog_chart_view_get_plot_area): new. (child_request): new. (gog_chart_view_size_allocate): axis now request space around residual. Store residual in Chart->plot_area. * graph/gog-label.c (gog_label_view_render): draw rectangle here, since in gog_outlined_object, rectangle around label is clipped to view->allocation. * graph/gog-renderer-pixbuf.c (draw_text): don't clip text, to be consistent with svg and gnome-print renderer. 2004-09-06 Jody Goldberg * gui-utils/go-color-palette.c (go_color_palette_setup) : warning suppression 2004-09-05 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=151628 * graph/gog-guru.c (cb_typesel_sample_plot_resize) : hard code the zoom when recalculating the size. The sample graph is only zoomed when visible. 2004-09-05 Jody Goldberg * graph/gog-guru.c (graph_guru_type_selector_new) : Add a light bulb to the 'show sample' button to make it stand out a bit more * graph/gog-guru.c (graph_guru_type_selector_new) : Make the sample canvas the main resizeable element in the type selector. 2004-09-01 Jody Goldberg * utils/go-gradient.c : conditionalize selector on WITH_GTK * utils/go-pattern.c : ditto * utils/go-marker.c : conditionalize selector and the use of GdkPixbuf * utils/go-color.c : Remove unnecessary include of color-combo and conditionalize the gdk support routines in case we do not have gtk. 2004-09-03 Morten Welinder * graph/plugins/plot_barcol/gog-1.5d.c (gog_series1_5d_populate_editor): Terminate g_object_get call by NULL, not 0. 2004-09-02 Morten Welinder * graph/plugins/plot_radar/gog-radar-prefs.glade: Someone accidentally cut the guts of this. Add vary-style button that the code appears to want. 2004-08-31 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=151529 * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): set series to to right value for marker drawing. * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): use right index when walking through path for marker drawing. 2004-08-30 Morten Welinder * graph/gog-plot-engine.c (gog_plot_new_by_name): Ick. We need to keep a GObject ref in addition to the GnmPlugin ref. 2004-08-29 Jody Goldberg * Release 1.3.2 2004-08-26 Morten Welinder * goffice.c (libgoffice_shutdown): Showdown plugin services. * graph/gog-plot-engine.c (gog_plot_new_by_name): Handle inactive plugins. Mark plugins as used. (gog_plugin_services_shutdown): New function. 2004-08-25 Jody Goldberg * graph/gog-axis.c (gog_axis_view_render) : don't leak an axis map for discrete axes 2004-08-24 Morten Welinder * utils/go-file.c (go_file_split_uris): New function for text/uri-list parsing. 2004-08-23 Morten Welinder * graph/gog-plot-engine.c (create_plot_families): New function. (gog_plot_family_by_name, gog_plot_families): Ensure we have families. 2004-08-20 Morten Welinder * graph/gog-error-bar.c (gog_error_bar_prefs): Arrange for gui to be unref'd. 2004-08-18 Emmanuel Pacaud * graph/gog-axis.c (map_linear_calc_ticks): fix tick number calculation. (overlap): use already defined MAX / MIN. 2004-08-17 Morten Welinder * goffice.c (libgoffice_init): Call gsf_init. 2004-08-17 Emmanuel Pacaud * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): don't clip markers to plot area. 2004-08-17 Emmanuel Pacaud * graph/gog-axis.c (create_invalid_axis_ticks): new. (map_[log,discrete,linear]_init): when axis is not valid, init data for special invalid axis rendering. (map_[log,discrete,linear]_calc_ticks): when axis is not valid, return a special set of ticks/labels. (gog_axis_map_is_valid): new. (gog_axis_map_new): set the map->is_valid flag. Default to FALSE if there's no init function. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render): use gog_axis_map_is_valid. * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): idem. * graph/plugins/plot_radar/gog-radar.c (gog_radar_view_render): idem. Add support for mapping. * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): don't clip markers to plot area, but to chart area. 2004-08-17 Jon K Hellan * graph/gog-stisyle.c (cb_image_file_select): is_save parameter to gui_image_file_select no longer needed. 2004-08-13 Emmanuel Pacaud * graph/gog-axis.c (gog_axis_editor): don't show preferences for circular axis. (overlap): new. (draw_axis_from_a_to_b): use gog_axis_map and draw labels. (gog_axis_view_render): at least width of the '0' char between two labels for GOG_AXIS_X. * graph/gog-view.h: remove call_parent_render and add a clip flag. * graph/gog-chart.c (gog_chart_view_render): removed. (gog_chart_view_class_init): set clip to TRUE. * graph/gog-outlined-object.c: always call parent render. * graph/gog-renderer-gnome-print.c: change start/stop_clipping to clip_push/pop. * graph/gog-renderer-svg.c: change start/stop_clipping to clip_push/pop. (gog_renderer_draw_text): add xml child in current node instead of first doc child. * graph/gog-renderer-pixbuf: change start/stop_clipping to clip_push/pop. (gog_renderer_pixbuf_clip_push): add multilevel clipping capability. (gog_renderer_pixbuf_print_clip_pop): idem. * graph/gog-renderer.c: change start/stop_clipping to clip_push/pop and add a clip stack to handle mutilevel clipping. * graph/gog-view.c (gog_view_class_init): set default clip flag to FALSE. (gog_view_render): if klass->clip is TRUE, call to clip_push/pop functions. * graph/plugins/plot_barcol/gog-barcol.c: set klass->clip to TRUE. * graph/plugins/plot_barcol/gog-line.c: idem. * graph/plugins/plot_xy/gog-xy.c: idem. * graph/plugins/plot_radar/gog-radar.c: idem. 2004-08-09 Emmanuel Pacaud * graph/gog-axis.c (map_[log,linear,discrete]_init) : add arguments for direct mapping to canvas coordinates. (gog_axis_map_new) : idem. (map_[log,linear,discrete]_to_canvas : new. (gog_axis_map_to_canvas) : new. (map_discrete) : handle barcol / area,line correctly. (map_log_auto_bounds): be smarter in case of min <= 0. (gog_axis_render) : draw axis/ticks in one call. Drop labels when they overlap. * graph/gog-error-bar.c (gog_error_bar_get_bounds) : return relative values of errors instead of absolute values. (gog_error_bar_get_min_max) : adapt to new gog_error_bar_get_bounds. (gog_error_bar_render) : use gog_axis_map functions. * graph/gog-grid.c (gog_grid_render) : remove kludge. * grapg/gog-renderer-gnome-print.c (gog_graph_print_to_gnome_print) : add a workaround for a bug in libgnomeprint. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_start_clipping) : rendering fix. (gog_renderer_pixbuf_line_size) : new. (gog_renderer_pixbuf_sharp_path) : new. Tweak a path for sharp rendering with libart. (gog_renderer_pixbuf_draw_marker) : zoom support for markers. Fix marker position. * graph/gog-renderer.c (gog_renderer_draw_sharp_path) : new. (gog_renderer_draw_sharp_polygon) : new. (gog_renderer_line_size) : remove kludge. * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_get_bounds) : maxima = num_elements - 1. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_update_stacked_and_percentage) : adapt to new gog_error_bar_get_bounds. (gog_barcol_axis_get_bounds) : new. (barcol_draw_rest) : remove kludge. (gog_barcol_view_render) : use gog_axis_map functions. * graph/plugins/plot_barcol/gog-line.c (gog_line_update_stacked_and_percentage) : adapt to new gog_error_bar_get_bounds. (gog_line_view_render) : use gog_axis_map functions. * graph/plugins/plot_xy/gog-xy.c (gog_xy_plot_render) : use gog_axis_map_to_canvas and new gog_error_bar_get_bounds. * utils/go-marker.c (go_marker_get_pixbuf) : add a scale argument. 2004-07-29 Morten Welinder * gui-utils/go-action-combo-pixmaps.c (go_action_combo_pixmaps_create_menu_item): Let's initialize item before we use it. 2004-07-28 Emmanuel Pacaud * graph/gog-axis-prefs.glade: HIGification. * graph/gog-axis.c (get_adjusted_tick_array): new. (map_[discrete,linear,log]_init): new. Init for map functions. (map_[discrete,linear,log]): new. Map data to visible plot area. (map_[discrete,linear,log]_auto_bound): new. Calculate auto bounds and tick spacing. (map_[discrete,linear,log]_calc_ticks): new. Calculate position of major ticks,minor ticks and labels. (gog_axis_map_new), (gog_axis_map), (gog_axis_map_free): new. For use in plot view rendering functions. (gog_axis_set_ticks): new. Put tick and label positions in axis->ticks. (gog_axis_auto_bound), (gog_axis_calc_ticks): new. (gog_axis_set_property): check if update or calc_ticks is needed. (gog_axis_update): makes use of gog_axis_set_ticks and gog_axis_auto_bound. (gog_axis_editor): hide map combobox if axis is discrete. (gog_axis_view_render): use axis->ticks for rendering. * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): use new map functions. 2004-07-22 Christopher James Lahey * libpresent/Makefile.am (libgoffice_libpresent_la_SOURCES): Added ppt-parsing-helper.c and ppt-parsing-helper.h. * libpresent/god-drawing-ms-client-handler-ppt.c: Handle TextBytesAtom and StyleTextPropAtom. * libpresent/god-drawing-ms-client-handler-ppt.h: Added parameter fonts. * libpresent/load-ppt.c: Moved StyleTextPropAtom parsing to ppt-parsing-helper.c. * libpresent/ppt-parsing-helper.c, libpresent/ppt-parsing-helper.h: Moved StyleTextPropAtom parsing here. Improved StyleTextPropAtom parsing. * test/dump-ppt-records.c: Improved StyleTextPropAtom parsing. 2004-07-20 Christopher James Lahey * libpresent/load-ppt.c (handle_atom), test/dump-ppt-records.c (handle_atom): Improved StyleTextPropAtom parsing. 2004-07-20 Christopher James Lahey * libpresent/load-ppt.c (handle_atom): Missing NULL. 2004-07-20 Christopher James Lahey * drawing/god-drawing-renderer-gdk.c (draw_text), drawing/god-paragraph-attributes.c, drawing/god-paragraph-attributes.h, libpresent/load-ppt.c: Support default paragraph attributes and support bullets and alignment. * libpresent/present-view.c: Added space and backspace bindings (these don't work since the widget doesn't get focus.) * test/dump-ppt-records.c (handle_atom): Handle TxMasterStyleAtom better. * test/test-view-ppt.c: Added q and escape bindings. 2004-07-19 Jody Goldberg * Release 1.3.1 2004-07-19 Jody Goldberg * gui-utils/go-action-combo-pixmaps.c : switch from inline pixbufs to stock ids. * gui-utils/go-action-combo-color.c (go_action_combo_color_set_color): implement 2004-07-13 Christopher James Lahey * libpresent/load-ppt.c (handle_atom): Parse fonts. * test/dump-ppt-records.c (handle_atom): Print a bunch of info about default attributes. 2004-07-12 Jody Goldberg * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_info_at_point) : expand this to offer name and override creation. * graph/gog-view.c (gog_view_info_at_point) : expand this interface a bit. I'm still not happy with it. * graph/gog-series.c : keep a sorted list of overrides in place * graph/gog-plot.c (gog_plot_foreach_elem) : handle point overrides * graph/gog-object.c (gog_object_emit_changed) : handle updates for objects not yet connected to parents. 2004-07-11 Christopher James Lahey * drawing/Makefile.am (libgoffice_drawing_la_SOURCES): Added god-default-attributes.c and god-default-attributes.h. * drawing/god-default-attributes.c, drawing/god-default-attributes.h: Default pango and paragraph attributes per indent level. * drawing/god-drawing-renderer-gdk.c: Handle default attributes. Rework character attributes. * drawing/god-text-model.c, drawing/god-text-model.h: Added indent and default attributes concepts. * libpresent/load-ppt.c (handle_atom): Parse TxMasterStyleAtom. * libpresent/present-presentation.c, libpresent/present-presentation.h: Added a default default attributes object per text type. * libpresent/present-text.c: Added a property to store a pointer to the main presentation object. * test/dump-ppt-records.c: Parse TxMasterStyleAtom. 2004-07-08 Jody Goldberg * graph/gog-guru.c (cb_canvas_select_item) : handle the zoom * graph/gog-theme.c (gog_themes_init) : Add a global alias for GogSeriesElement -> GogSeries (gog_theme_find_element) : Look up theme local and global aliases for classes. (gog_theme_add_alias) : new. 2004-07-08 Jody Goldberg * goffice.c (libgoffice_init) : Add SeriesElement to be pedantic 2004-07-06 Jody Goldberg * graph/gog-graph.c (gog_graph_init) : apply theme style for graphs to do a full init. 2004-07-04 Jody Goldberg * graph/gog-styled-object.c (gog_styled_object_parent_changed) : initialize the style completely using the theme when we have a theme. 2004-07-04 Christopher James Lahey * drawing/god-drawing-renderer-gdk.c (draw_text): Handle char_attributes. * drawing/god-text-model.c, drawing/god-text-model.h (real_god_text_model_set_paragraph_attributes): Fixed up this function a bit. (real_god_text_model_set_pango_attributes): Implemented this function. Changed it to take GList instead of PangoAttrList. * libpresent/load-ppt.c (handle_atom): Implemented parsing character attributes. 2004-07-02 Jody Goldberg * graph/gog-theme.c (map_area_series_solid_default) : simplify now that we're just filling in the color no need to twiddle types * graph/gog-style.c : rework GogStyle::fill share pattern:fore/back and gradient:start/end. merge all the different auto flags. initialize the gradient brightness to -1 to avoid starting with black Change fill from union to struct to simplify changing fill types Allow themed gradient fills 2004-06-30 Christopher James Lahey * drawing/god-text-model.c (real_god_text_model_set_paragraph_attributes): Oh yeah, the character count should increase as you iterate through the paragraph. * libpresent/load-ppt.c (handle_atom): Pass in the position in the text instead of the position in the file. That might be a good idea. 2004-06-29 Christopher James Lahey * drawing/Makefile.am (libgoffice_drawing_la_SOURCES): Added god-paragraph-attributes.c and god-paragraph-attributes.h. * drawing/god-drawing-renderer-gdk.c (draw_text): Draw each paragraph separately with some paragraph formatting. * drawing/god-paragraph-attributes.c, drawing/god-paragraph-attributes.h: New file to handle attributes of a paragraph. * drawing/god-text-model.c, drawing/god-text-model.h: Store as a list of paragraphs. Store some formatting information. * libpresent/load-ppt.c: Load some of the paragraph formatting from ppt. * test/dump-ppt-records: Attempted to parse BaseTextPropAtom. * test/test-view-ppt.c (main): Fullscreen the window. 2004-06-23 Jean Brefort * Makefile.am: Added cut-n-paste subdir. * cut-n-paste/Makefile.am: New file. * cut-n-paste/pcre/Makefile.am: pcre tree moved from gnumeric. * cut-n-paste/pcre/get.c: (pcre_get_stringnumber), (pcre_copy_substring), (pcre_copy_named_substring), (pcre_get_substring_list), (pcre_free_substring_list), (pcre_get_substring), (pcre_get_named_substring), (pcre_free_substring): ditto, changed gnumeric_* to go_* * cut-n-paste/pcre/internal.h: ditto. * cut-n-paste/pcre/maketables.c: (pcre_maketables): ditto. * cut-n-paste/pcre/pcre.c: (make_pcre_default_tables), (ord2utf8), (pcre_version), (pcre_info), (pcre_fullinfo), (pcre_config), (pchars), (check_escape), (is_counted_repeat), (read_repeat_counts), (first_significant_code), (find_fixedlength), (find_bracket), (find_recurse), (could_be_empty_branch), (could_be_empty), (check_posix_syntax), (check_posix_name), (adjust_recurse), (compile_branch), (compile_regex), (is_anchored), (is_startline), (find_firstassertedchar), (valid_utf8), (pcre_compile), (match_ref), (match_xclass), (match), (pcre_exec): * cut-n-paste/pcre/pcre.h: ditto. * cut-n-paste/pcre/pcreposix.c: (pcre_posix_error_code), (go_regerror), (go_regfree), (go_regcomp), (go_regexec): * cut-n-paste/pcre/pcreposix.h: ditto. * cut-n-paste/pcre/printint.c: (print_char), (print_internals): ditto. * cut-n-paste/pcre/study.c: (set_bit), (set_start_bits), (pcre_study): ditto. * goffice.c: (libgoffice_init): Added call to go_math_init. * graph/go-data-simple.c: (go_data_scalar_str_get_value), (go_data_vector_str_get_value), (go_data_vector_str_set_translation_domain): use new go_nan and functions in utils/go-math.* * graph/go-data.c: (go_data_vector_get_value): ditto. * graph/gog-axis.c: (gog_axis_get_entry), (gog_axis_update), (cb_enable_dim), (cb_axis_bound_changed), (gog_axis_get_bounds), (gog_axis_num_markers), (gog_axis_view_render): ditto. * graph/gog-error-bar.c: (gog_error_bar_get_bounds): ditto. * graph/gog-plot.c: (gog_plot_get_axis_bounds): ditto. * graph/plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_axis_get_bounds): ditto. * graph/plugins/plot_barcol/gog-barcol.c: (gog_barcol_update_stacked_and_percentage), (gog_barcol_view_render): ditto. * graph/plugins/plot_barcol/gog-line.c: (gog_line_update_stacked_and_percentage), (gog_line_view_render): ditto. * graph/plugins/plot_pie/gog-pie.c: (gog_pie_view_render), (gog_pie_series_update): ditto. * graph/plugins/plot_radar/gog-radar.c: (gog_radar_plot_axis_get_bounds), (gog_radar_view_render): * graph/plugins/plot_xy/gog-xy.c: (gog_2d_plot_update), (gog_2d_plot_axis_get_bounds), (gog_xy_view_render): ditto. * utils/go-marker.c: ditto. * utils/Makefile.am: Added go_math.[c,h] * utils/go-math.c: (go_math_init), (go_add_epsilon), (go_sub_epsilon), (go_fake_floor), (go_fake_trunc): imported from gnumeric. * utils/go-math.h: ditto. 2004-06-20 Jody Goldberg * graph/gog-axis.c (gog_axis_view_render) : Ensure that the line extends out far enough for the first and last tick. * graph/gog-theme.c (map_area_series_solid_default) : honour the new disable_theming flag. * graph/gog-style.c (gog_style_is_completely_auto) : new. 2004-06-16 Morten Welinder * utils/go-file.c (go_filename_to_uri): Handle "//" and "/./" parts in filenames. * graph/gog-style.c (cb_image_file_select): Handle change in gui_image_file_select's signature. (Barely.) * utils/go-file.c (go_file_create): New function. 2004-06-15 Morten Welinder * utils/go-file.c (go_basename_from_uri): Better WITH_GNOME implementation that handles fragments and methods. 2004-06-13 Jody Goldberg * graph/plugins/plot_barcol/gog-1.5d.c : tack on a placeholder 'in_3d' attribute to simplify roundtripping for xls. 2004-06-11 Morten Welinder * utils/go-file.c: New file. 2004-06-11 Emmanuel Pacaud * graph/gog-axis-prefs.glade : add a combobox for map selection. * graph/gog-axis.c : add a map description structure. remove log_scale boolean property of GogAxis, and add a new named map property. (map_init_linear), (map_linear), (map_init_log), (map_log), (gog_axis_map_set_by_num), (gog_axis_map_populate_combo), (gog_axis_map_set), (gog_axis_map_init), (gog_axis_map), (gog_axis_map_destroy) : new. (gog_axis_editor) : handle map combobox. * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render) : use map functions. 2004-06-05 Jody Goldberg * graph/gog-axis.c (gog_axis_get_entry) : add some protection now that this is public. (gog_axis_is_discrete) : ditto. * graph/gog-style.c : add sax exporters * graph/gog-error-bar.c : ditto * graph/gog-object-xml.h : s/GogPersistDOM/GogPersist * graph/gog-object-xml.c : add sax exporters (go_xml_out_add_color) : new. * utils/go-font.c : Added some conditional leak debug tools 2004-06-01 Morten Welinder * gui-utils/go-combo-text.c (go_combo_text_set_text): Plug leak. 2004-05-31 Jody Goldberg * graph/gog-view.c (gog_view_find_child_view) : new 2004-05-31 Jody Goldberg * graph/gog-series.c (gog_series_get_plot) : new. * graph/gog-axis.c (gog_axis_get_entry) : rename from axis_get_entry and make public. 2004-05-24 Jody Goldberg * graph/go-data-simple.c (go_data_vector_str_get_str) : enable the translation mechanism 2004-05-26 Jean Brefort * gui-utils/Makefile.am: added go-combo-text.h * gui-utils/go-action-combo-text.c: (cb_entry_changed), (go_action_combo_create_tool_item), (go_action_combo_text_set_entry): * gui-utils/go-combo-text.h: was gnumeric-combo-text.h * gui-utils/go-combo-text.c: was gnumeric-combo-text.c, replaced GtkList by GtkTreeView * gui-utils/go-marshalers.list: added BOOLEAN:POINTER 2004-05-23 Emmanuel Pacaud * graph/gog-chart.c (gog_chart_view_class_init) : set call_parent_render to FALSE. * graph/gog-outlined-object.c (gog_outlined_view_render) : call parent render method only if call_parent_render is TRUE; (gog_outlined_view_class_init) : set call_parent_render to TRUE; * graph/gog-outlined-object.h : add a call_parent_render boolean. 2004-05-20 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=142212 * graph/plugins/plot-barcol/gog-line.c (gog_line_view_render) : don't use '0' if Y value is missing. 2004-05-13 Jody Goldberg * graph/gog-renderer-svg.c (gog_renderer_svg_measure_text) : use logical rather than ink extents. (gog_renderer_pixbuf_draw_text) : ditto. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : ditto. (gog_renderer_pixbuf_draw_text) : ditto. * graph/gog-axis.c (gog_axis_view_size_request) : tick labels for discrete axes are below the line not the major tick marks. (gog_axis_view_render) : ditto * graph/gog-renderer-svg.c (make_layout) : cache the context. (gog_renderer_pixbuf_finalize) : unref cached contexts. (gog_renderer_pixbuf_class_init) : connect the new finalize. * graph/gog-style.c (gog_style_is_different_size) : line width change for axis changes size. * graph/gog-axis.c (gog_axis_view_render) : don't allocate size for ticks if the lines are invisible. * graph/gog-plot.c (gog_plot_get_axis_bounds) : add some safety. This will be called for things like a pie when adding one while something with an still exists. * graph/gog-guru.c (cb_attr_tree_selection_change) : be more forgiving about when a user can go back to select a plot. If there is only one chart, or one plot things are unambiguous. * drawing/god-property-table.h : sync with the extensions in the xls importer to handle gradients and richtext. * drawing/god-property-table.c (god_property_table_get_markup) : new. (god_property_table_set_markup) : ditto. 2004-05-11 Jean Brefort * graph/gog-renderer-pixbuf.c: (make_layout), (gog_renderer_pixbuf_update): replaced deprecated pango_ft2_get_context. * graph/gog-renderer-svg.c: (make_layout): ditto. * graph/gog-style-prefs.glade: replaced GtkOptionMenu by GtkComboBox. * graph/gog-style.c: (cb_gradient_style_changed), (fill_gradient_init), (cb_image_style_changed), (fill_image_init), (cb_fill_type_changed), (fill_init): ditto. 2004-05-10 Jody Goldberg * graph/gog-plot.c (gog_plot_foreach_elem) : pass the index of the iteration, not the absolute for has-legend situations * graph/gog-series.c (gog_series_set_property) : update cardinality if has-legend changes. (gog_series_editor) : Add a quick 'show in legend' toggle 2004-05-07 Jody Goldberg * graph/gog-theme.c (gog_themes_init) : sync the default theme with XL's notion of things so that we do not theme away auto settings on import. Specificly Give chart's the background and make graph empty. * */Makefile.am : use goffice.mk for include paths 2004-05-03 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=136363 * graph/gog-style.c (gog_style_apply_theme) : Do not theme the fonts it over rides the user selection because there is no 'auto' flag. 2004-05-06 Morten Welinder * utils/go-gradient.c (go_gradient_dir_from_str, go_gradient_dir_as_str): Use G_N_ELEMENTS. (grad_dir_names[]): Constify. (go_gradient_selector): Eliminate elements table. 2004-04-29 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=141405 * drawing/god-drawing-renderer-gdk.c (god_drawing_renderer_gdk_render_shape) : explicitly set alignment for now. Set layout bounds so that we wrap. 2004-04-19 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=127411 * graph/gog-chart.c (gog_chart_view_render) : render the style. 2004-04-17 Jody Goldberg * graph/plugins/plot_xy/gog-xy.c (gog_bubble_plot_class_init) : Do not replicate ms dim types. That breaks xls import. (gog_xy_plot_class_init) : ditto. * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_class_init) : ditto 2004-04-15 Morten Welinder * graph/gog-error-bar.c (gog_error_bar_prefs): Look for pixmaps in the right directory. 2004-04-08 Jean Brefort * graph/plugins/plot_barcol/gog-1.5d.c: (gog_plot1_5d_update), (gog_plot1_5d_axis_get_bounds), (gog_plot1_5d_class_init), (gog_series1_5d_set_property), (gog_series1_5d_get_property), (gog_series1_5d_populate_editor), (gog_series1_5d_class_init), (gog_series1_5d_init): Add error bars support. * graph/plugins/plot_barcol/gog-1.5d.h: ditto. * graph/plugins/plot_barcol/gog-barcol.c: ditto. (gog_barcol_update_stacked_and_percentage), (gog_barcol_view_render): ditto. * graph/plugins/plot_barcol/gog-line.c: ditto. (gog_line_update_stacked_and_percentage), (gog_line_view_render): ditto. * graph/plugins/plot_xy/gog-xy.c: (gog_2d_plot_update): use gog_error_bar_is_visible instead of detailed tests. 2004-04-05 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=139205 * gui-utils/go-action-combo-stack.c (go_action_combo_stack_create_menu_item) : There's no reason to set a default label not only was it ugly, but it disabled the nice utility code in GtkAction::connect_proxy that would set 'use_underline' for us 2004-03-30 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=138532 * graph/plugins/plot_radar/gog-radar.c (gog_radar_plot_update) : don't use an invalid series for anything. 2004-03-28 Jody Goldberg * Release 1.3.0 2004-03-26 Christopher James Lahey * drawing/Makefile.am (libgoffice_drawing_la_SOURCES): Added god-drawing-renderer-gdk.c, god-drawing-renderer-gdk.h, god-drawing-view.c, and god-drawing-view.h. * drawing/god-drawing-renderer-gdk.c, drawing/god-drawing-renderer-gdk.h: New class. Renders a drawing to a gdk drawable. * drawing/god-drawing-view.c, god-drawing-view.h: New class. Widget to display a drawing. * drawing/god-drawing.c, drawing/god-drawing.h: Added a background shape. * drawing/god-image.c: Call gdk_pixbuf_loader_close. * drawing/god-property-table.c, drawing/god-property-table.h: Added length type and fixed up flag type. Added a bunch of types. * drawing/god-shape.c: Allow a NULL anchor. * libpresent/Makefile.am (libgoffice_libpresent_la_SOURCES): Added present-view.c and present-view.h. * libpresent/load-ppt.c: Handle the DocumentAtom. * libpresent/present-presentation.c, libpresent/present-presentation.h: Added extents and notes_extents fields. * libpresent/present-view.c, libpresent/present-view.h: New class. Widget to display a presentation. * ms-compat/god-image-ms.c: Added a bunch of EscherOPT fields. Handle the patriarch and background shapes more cleanly. * test/.cvsignore: Added test-view-ppt. * test/Makefile.am (test_view_ppt_SOURCES): Added test-view-ppt.c. * test/test-ppt.c: Handle the separate patriarch and background shapes. * test/test-view-ppt.c: New Class. Tests present-view.c. * utils/go-units.h: Added new unit EMU. (360000 EMUs per centimeter, 914400 EMUs per inch, 12700 EMUs per point.) 2004-03-22 Christopher James Lahey * drawing/Makefile.am (libgoffice_drawing_la_SOURCES): Added god-image.c, god-image.h, god-image-store.c, and god-image-store.h. * drawing/god-drawing-group.c, drawing/god-drawing-group.h: Added an image store to the drawing group. Implemented god_drawing_group_new. * drawing/god-drawing.c, drawing/god-drawing.h: Gave each drawing a link to its drawing group. * drawing/god-image-store.c, drawing/god-image-store.h: New class. An array of images. * drawing/god-image.c, drawing/god-image.h: An image or a placeholder for an image. Includes the original data as well as a loaded pixbuf. * libpresent/load-ppt.c: Actually store the drawings in the slides and the drawing groups in the presentations. Load the pictures into the drawing group. * libpresent/present-presentation.c, libpresent/present-presentation.h: Added a drawing group here. * libpresent/present-slide.c, libpresent/present-slide.h: Added a drawing here. * ms-compat/Makefile.am (libgoffice_ms_compat_la_SOURCES): Added god-image-ms.c and god-image-ms.h. * ms-compat/god-drawing-ms.c, ms-compat/god-drawing-ms.h: Actually do drawing group loads and load up the image store as we go. Added a function to handle parsing of images not in the main Escher stream. * ms-compat/god-image-ms.c, ms-compat/god-image-ms.h: New class. Just a god_image with a hash that's used at load time. * test/test-ppt.c: Moved dumping the Drawings here since they're included in the slides now so it makes more sense to dump them here than in load-ppt.c. 2004-03-22 Morten Welinder * libpresent/load-ppt.c (handle_atom): The usual fix. 2004-03-21 Christopher James Lahey * ms-compat/god-drawing-ms.c (handle_atom), test/dump-ppt-records.c (handle_atom): Moved some of the debugging stuff from god-drawing-ms to dump-ppt-records. 2004-03-20 Christopher James Lahey * drawing/god-anchor.c (god_anchor_finalize), ms-compat/god-drawing-ms-client-handler.c (god_drawing_ms_client_handler_finalize): Chain the finalize function. * libpresent/Makefile.am (libgoffice_libpresent_la_SOURCES): Added present-presentation.c, present-presentation.h, present-slide.c, present-slide.h, present-text.c, present-text.h. * libpresent/god-drawing-ms-client-handler-ppt.c, libpresent/god-drawing-ms-client-handler-ppt.h: Add a PresentSlide so that we can parse OutlineTextRefAtom and link it up to the outline. * libpresent/load-ppt.c, libpresent/load-ppt.h: Changed it to use PresentPresentation. Pass a PresentSlide into the client_handler if the PPDrawing is a child of a Slide. * libpresent/present-presentation.c, libpresent/present-presentation.h, libpresent/present-slide.c, libpresent/present-slide.h, libpresent/present-text.c, libpresent/present-text.h: New classes. A presentation, a slide, and a piece of text on a slide. * test/test-ppt.c: Changed this to use PresentPresentation. 2004-03-19 Christopher James Lahey * libpresent/god-drawing-ms-client-handler-ppt.c (god_drawing_ms_client_handler_ppt_handle_client_text): Handles simple cases with text inside of a shape in Escher. * libpresent/load-ppt.c (dump_shape): Print text if there is any. * ms-compat/go-ms-parser.c (go_ms_parser_read): Only read the data if there's a handler. * ms-compat/god-drawing-ms-client-handler.c, ms-compat/god-drawing-ms-client-handler.h: Make it so subclasses can specify whether they want the super class to read the data from the input stream. * ms-compat/god-drawing-ms.c (handle_atom): Handle EscherClientTextbox by calling the client handler. 2004-03-18 Christopher James Lahey * ms-compat/go-ms-parser.c, ms-compat/go-ms-parser.h (go_ms_parser_read): Included the record type as a field in the record structure. * test/.cvsignore, test/Makefile.am: Added dump-ppt-records. * test/dump-ppt-records.c: New test app to list all the records in a ppt file. 2004-03-18 Christopher James Lahey * drawing/god-shape.c, drawing/god-shape.h: Each shape has an anchor. Added functions to get the children of a shape. * graph/gog-legend.c (gog_legend_init), graph/gog-outlined-object.c (gog_outlined_object_init), graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_update), graph/gog-renderer-svg.c (make_layout), graph/gog-renderer.c (gog_renderer_init): Cast to double before calling GO_.._TO_.. unit conversion functions. * libpresent/Makefile.am (libgoffice_libpresent_la_SOURCES): Added god-drawing-ms-client-handler-ppt.c and god-drawing-ms-client-handler-ppt.h. * libpresent/god-drawing-ms-client-handler-ppt.c, libpresent/god-drawing-ms-client-handler-ppt.h: New class. Handles client functions for PPT. * libpresent/load-ppt.c: Added #include . Created a GodDrawingMsClientHandlerPpt for use in parsing. Added code to dump the Escher drawing for testing purposes. * ms-compat/Makefile.am (libgoffice_ms_compat_la_SOURCES): Added god-drawing-ms-client-handler.c and god-drawing-ms-client-handler.h. * ms-compat/god-drawing-ms-client-handler.c, ms-compat/god-drawing-ms-client-handler.h: New class. Allows Escher parser to let the host application handle Client records. * ms-compat/god-drawing-ms.c, ms-compat/god-drawing-ms.h: Use GodDrawingMsClientHandler to parse EscherClientAnchor records. * test/.cvsignore: Ignore test-ppt. * test/test-ppt.c: Fixed include here. Added #include * utils/go-unit.h: Changed these to use the math in whatever type the input is. If you pass a double, it uses double math. If you pass an integer type, it uses integer math. 2004-03-18 Morten Welinder * libpresent/*.h: Add header guards. 2004-03-16 Christopher James Lahey * Makefile.am (SUBDIRS): Added libpresent and test. * drawing/Makefile.am (libgoffice_drawing_la_SOURCES): Added god-anchor.c and god-anchor.h. * drawing/Makefile.am, drawing/god-drawing-group.c, drawing/god-drawing.c, drawing/god-drawing.h, drawing/god-property-table.c, drawing/god-shape.c, drawing/god-shape.h, drawing/god-text-model.c, ms-compat/Makefile.am, ms-compat/go-ms-parser.c, ms-compat/god-drawing-ms.c, ms-compat/god-drawing-ms.h: Standardized #include lines. * utils/go-units.h: Added an underlying unit and added a type for storing lengths. Added point and rect types. 2004-03-16 Morten Welinder * graph/gog-error-bar-prefs.glade: Don't start visible. 2004-03-16 Morten Welinder * graph/gog-error-bar.c (gog_error_bar_persist_dom_save): Constify and avoid errors. * graph/gog-graph.c (gog_graph_validate_chart_layout): Initialize graph. * drawing/god-property-table.c (god_property_table_finalize): Chain up. * drawing/god-shape.c (god_shape_dispose): Chain up. * drawing/god-text-model.c (god_text_model_finalize): Chain up. * drawing/god-drawing-group.c (god_drawing_group_finalize): Chain up. * gui-utils/go-action-combo-text.c (go_tool_combo_text_finalize): Add dummy chain. * graph/plugins/plot_xy/gog-xy.c (gog_2d_plot_update): Initialize series. (gog_xy_series_finalize, gog_2d_finalize): Skip pointless tests. 2004-03-16 Jean Brefort * Makefile.am: restore data subdir * data/Makefile.am: add error bars icons *data/bar-*.png: new icons for error bars editor. * goffice.c: (libgoffice_init): add GOD_ERROR_BAR_TYPE * graph/Makefile.am: add gog-error-bar.* * graph/goffice-graph.h: add GogErrorBar struct * graph/gog-object-xml.c: (gog_object_write_property): set success to FLASE when the object does not exist. * graph/gog-series-impl.h: add populate_editor in GogSeriesClass * graph/gog-series.c: (gog_series_editor): add pages for error bars. * graph/gog-error-bar-prefs.glade: * graph/gog-error-bar.[c,h]: new files. * graph/plugins/plot_xy/gog-xy.c: (gog_2d_plot_update), (gog_xy_plot_class_init), (gog_bubble_plot_class_init), (gog_xy_view_render), (gog_xy_series_init), (gog_xy_series_finalize), (gog_xy_series_set_property), (gog_xy_series_get_property), (gog_xy_series_populate_editor), (gog_xy_series_class_init): add support for error bars. 2004-03-15 Morten Welinder * gui-utils/go-combo-box.c (go_combo_box_destroy): Plug leaks. 2004-03-15 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=135621 * graph/gog-axis.c (gog_axis_render) : fix rounding issue. 2004-03-07 Jody Goldberg * graph/plugins/plot_radar/gog-radar.c (gog_radar_plot_type_name) : remove the starting angle pref. That is better handled by the axis. 2004-03-13 Jean Brefort * graph/plugins/plot_xy/gog-xy.c: (gog_xy_view_render), (gog_xy_series_update), (gog_xy_series_init_style): fixed tests about bubble plots. 2004-03-13 Christopher James Lahey * Makefile.am (SUBDIRS): Added drawing and ms-compat. (libgoffice_la_LIBADD): Added drawing/libgoffice-drawing.la and ms-compat/libgoffice/ms-compat.la. 2004-03-12 Morten Welinder * graph/gog-series.c (gog_series_element_class_init): Apply the usual fix. 2004-03-11 Emmanuel Pacaud * graph/plugins/plot_xy/gog-xy.c : draw markers when they are in plot area and a margin half marker size wide (partly fix 135621). 2004-03-09 Emmanuel Pacaud * graph/gog-object.c : make use_parent_as_proxy a class property instead of an instance one. * graph/gog-style.c : defines a new GogStyledObject derived GogSeriesElement object for storing of single element style overrides. (gog_series_class_init) : declares a new GogObjectRole for use of GogSeriesElement objects. Set use_parent_as_proxy as true. (gog_series_get_elements) : returns the GList of GogSeriesElement children of GogSeries. (gog_series_get_valid_element_index) : returns the next or previous index which is not already used by a GogSeriesElement children of GogSeries. * graph/gog-style.c : remove unused implementation of GogStyleExtension and old gog_series_element_style code. (gog_style_editor) : remove code related to GogStyleExtension. (gog_style_assing) : idem. (gog_style_persist_dom_load) : idem. (gog_style_persist_dom_save) : idem. * graph/gog-syled-object.c (gog_styled_object_set_property) : use of gog_styled_object_set_style. (gog_styled_object_set_style) : new. * graph/plugins/plot_pie/gog-pie-series-element-prefs.glade : new. * graph/plugins/plot_pie/gog-pie-prefs.c (gog_pie_series_element_pref) : new. * graph/plugins/plot_pie/gog-pie.c : define a new GogSeriesElement derived GogPieSeriesElement object for storage of separation and style of single elements. (gog_pie_view_render) : handle single element style overrides. * graph/plugins/plot_pie/gog-ring-prefs.glade : fix climb_rate, digits and adjustment properties of the separation spin_button. 2004-03-03 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=136088 * graph/gog-object-xml.c (gog_object_write_property) : Add a GOG_PARAM_FORCE_SAVE to save a parameter even if the value is the same as the default. * graph/gog-plot.c (gog_plot_class_init) : Use it here to always store the vary_style_by_element property. 2004-02-27 Jody Goldberg * graph/gog-theme.c (map_area_series_solid_default) : don't set colors for image fills. (map_area_series_solid_guppi) : ditto. 2004-02-23 Jody Goldberg * graph/plugins/plot_radar/gog-radar.c : use 'default-style-has-markers' rather than 'markers' to be consistent. (gog_radar_plot_update) : store the minima and maxima from all the series. (gog_radar_plot_axis_get_bounds) : renamed from gog_radar_plot_axis_bounds for consistency. Set the bounds for a radial axis more generally. We want the outbound to be hard (unscaled) and the inner rounded. 2004-02-22 Jody Goldberg * graph/gog-chart.c (gog_chart_view_size_allocate) : only position th axis, not all the children. * graph/plugins/plot_radar/gog-radar.c (gog_radar_view_render_series) : Just alloca the max numbr of points aka model::num_elements, and don't free alloca-ed memory. 2004-02-22 Emmanuel Pacaud * graph/plugins/plot_radar/gog-radar.c (gog_plot_radar_render_series) : use g_new instead of g_alloca for allocation of path. 2004-02-21 Jody Goldberg * utils/go-locale.c : Some cut-n-paste for the without_gnome case * gui-utils/go-action-combo-text.c : some initial implementation * graph/plugins/plot_pie/gog-pie.c (gog_pie_plot_foreach_elem) : handle mismatched numbers of elements and labels. (gog_pie_view_render) : take the outline into account when sizing. * graph/gog-style.h : add weak notion of centered image. This needs to be stronger to specify alignement. * graph/gog-style.c (gog_style_set_fill_image_filename) : new. (cb_image_file_select) : Use it. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon) : supported centered images. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon) : support centered images. * graph/gog-object.c (gog_object_get_children) : add a filter parm. (gog_object_get_child_by_role) : new utility routine. * graph/gog-legend.c (gog_legend_update) : set up the editor properly for fonts. * graph/gog-graph.c (gog_graph_view_size_allocate) : typo. Only effected manually created plots * graph/gog-control-foocanvas.c (gog_control_foocanvas_draw) : make more resistent to out of memory situations. * graph/go-data-simple.c : Add some quick and dirty constant vectors for double [], and char const *[]. These could certainly be more robust. From Michael Devine : * graph/goffice-graph.h : Add a first pass at 'radar' plots * graph/gog-axis.c : ditto. * goffice/graph/gog-chart.c : ditto 2004-02-13 Morten Welinder * graph/gog-style.c (gog_style_extension_editor): Fix declaration and check order. 2004-02-13 Emmanuel Pacaud * graph/gog-style.[ch] : new GogStyleExtension object. (gog_style_assign) : handle extension. (gog_style_editor) : shows extension editor if it exists. (gog_style_get_extension) : new. (gog_style_set_extension) : new. * graph/gog-series : add a new style_extension_type field in GogSeriesDesc, and use it in gog_series_init_style. 2004-02-09 Morten Welinder * graph/plugins/plot_xy/gog-bubble-prefs.glade: Do not start visible. 2004-02-09 Jean Brefort * graph/plugins/plot_xy/gog-xy.c: (gog_xy_view_render): replaced test series.num_dim == 3 by GOG_IS_BUBBLE_PLOT * graph/plugins/plot_xy/gog-xy.h: fixed GOG_IS_BUBBLE_PLOT 2004-02-04 Jody Goldberg * gui-utils/go-color-palette.c (cb_menu_custom_activate) : don't show until after the signal in case a handler is marking the dialog as a transient. (cb_combo_custom_clicked) : ditto. 2004-02-02 Jean Brefort * graph/plugins/plot_xy/gog-xy.c: fixed several warnings 2004-02-02 Jody Goldberg * gui-utils/go-combo-color.c (cb_preview_clicked) : return the real is_custom state. * gui-utils/go-color-palette.c (handle_color_sel) : simplify and just return the color caller can emit the signal, and store the new colour. (cb_combo_custom_response) : store results. (cb_menu_default_activate) : ditto. (cb_menu_color_activate) : ditto. (cb_menu_custom_response) : ditto. (set_color) : store when something is a custom of default. (go_color_palette_get_current_color) : return a flag indicating if this is custom. 2004-02-01 Jody Goldberg * gui-utils/go-color-palette.c (handle_color_sel) : destroy before we emit in case the custom dialog handler played with the wrapper actions (eg desensitized them) * gui-utils/go-combo-color.c (cb_proxy_custom_dialog) : pop the combo down when the custom dialog goes up. 2004-01-29 Jody Goldberg * graph/gog-style.c (cb_gradient_type_changed) : store the last selected type. (populate_gradient_combo) : default to that when changing fill type to gradient. * graph/gog-style-prefs.glade : fix mnemonics to not clash. * gui-utils/go-action-combo-stack.c (go_action_combo_stack_create_tool_item) : patch leak * utils/go-marker.c (go_marker_selector) : go_combo_pixmaps_add_element absorbs a ref to the pixbuf, don't lose control of it. Handle shape=none nicely too. 2004-01-29 Morten Welinder * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): Attempt fix. 2004-01-28 Andreas J. Guelzow * graph/plugins/plot_xy/gog-xy.c: fix 2 syntax errors to make it compile 2004-01-28 Jean Brefort * graph/plugins/plot_xy/Makefile.am: * graph/plugins/plot_xy/gog-bubble-prefs.glade: * graph/plugins/plot_xy/gog-bubble-prefs.c: * graph/plugins/plot_xy/gog-xy.c: * graph/plugins/plot_xy/gog-xy.h: added support for bubble plots options 2004-01-24 Jon K Hellan * gui-utils/go-dock.c (go_dock_class_init): Initialize parent_class. * gui-utils/go-dock-item.c (go_dock_item_class_init): Ditto. * gui-utils/go-dock-band.c (go_dock_band_class_init): Ditto. 2004-01-24 Jody Goldberg * graph/plugins/plot_xy/gog-xy.c : suppress warning * gui-utils/go-action-combo-text.c (go_action_combo_text_set_entry) : implement. * gui-utils/go-action-combo-stack.c (go_action_combo_stack_create_tool_item) : set the relief here too. We're close to having a GOActionCombo base for this. 2004-01-23 Jody Goldberg * gui-utils/go-action-combo-stack.c : tweak to make it sorta work. I do not like the kludgy approach required by our not supporting arguments to GtkAction::activate 2004-01-22 Jody Goldberg * gui-utils/go-action-combo-pixmaps.c : rewrite. 2004-01-17 Jody Goldberg * gui-utils/go-action-combo-color.c (cb_color_changed) : Use the supplied color directly. (go_action_combo_color_create_menu_item) : connect up the activate signal. 2004-01-22 Emmanuel Pacaud * graph/gog-style.c (gog_style_editor) : edit a GogStyle, not GogStyledObject. (gog_styled_object_editor) : new. * graph/gog-axis.c : use gog_styled_object_editor instead of gog_style_editor. * graph/gog-label.c : ditto. * graph/gog-series.c : ditto. * graph/gog-styled-object.c : ditto. rename gog_styled_object_editor to styled_object_editor. 2004-01-17 Jean Brefort * graph/plugins/plot_xy/* : add initial support for bubble plots 2004-01-16 Jody Goldberg * gui-utils/go-action-combo-stack.c (go_action_combo_stack_push) : operate on the combo, not the toolitem wrapper. (go_action_combo_stack_pop) : ditto. (go_action_combo_stack_truncate) : ditto. 2004-01-16 Jon K Hellan * gui-utils/go-action-combo-stack.c (go_action_combo_stack_push) (go_action_combo_stack_pop): Fix typos. 2004-01-14 Jody Goldberg * gui-utils/go-action-combo-color.c (go_action_combo_color_create_menu_item) : some initial work on producing a menu. Its not bad, but the combo needs alot of cleanup before it can migrate. 2003-12-23 Jody Goldberg * Release 1.2.3 2003-12-22 Jody Goldberg * graph/gog-axis.c (gog_axis_editor) : set the current format. 2003-12-19 Jody Goldberg * utils/go-format.c (go_format_eq) : new. (go_format_as_XL) : new (go_format_new_from_XL) : new * graph/gog-axis.c (gog_axis_editor) : add a format selection page for non-discrete axis. 2003-12-18 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=129445 * graph/gog-style.c (gog_style_assign) : transfer the needs_obj_defaults field. (gog_style_init) : init needs_obj_defaults field to TRUE. (gog_style_persist_dom_load) : persisted styles do not need object defaults. * graph/plugins/plot_barcol/gog-line.c (gog_line_series_init_style) : respect the needs_obj_defaults. * graph/plugins/plot_xy/gog-xy.c (gog_xy_series_init_style) : ditto. * graph/gog-axis.c (gog_axis_get_marker) : Use go_format to handle the markers. * utils/go-format.c : A quick cheesy wrapper to GnmFormat in preparation for sucking it down here. 2003-12-14 Jody Goldberg * utils/go-pattern.c (go_pattern_selector) : fix leak. * utils/go-gradient.c (go_gradient_selector) : fix leak. * utils/go-marker.c (go_marker_selector) : fix leak. 2003-12-14 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=128874 * graph/gog-axis.c (gog_axis_finalize) : unref labels. (gog_axis_update) : ref them here. 2003-11-26 Jody Goldberg * Release 1.2.2 2003-11-18 Jody Goldberg * graph/gog-styled-object.c (gog_styled_object_set_property) : dup the style to avoid themes stomping on shared styles. refcounting is not an ideal semantic for GogStyle. 2003-11-17 Morten Welinder * graph/gog-object-xml.c (gog_object_write_property): Plug leak. 2003-11-15 Jody Goldberg * graph/gog-axis.c (gog_axis_view_render) : support minor ticks and tune placement to work around anti-aliasing blur. * graph/gog-grid.c (gog_grid_view_render) : tune the cheat to work around anti-aliasing blur. 2003-11-14 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=126775 * graph/gog-axis.c (gog_axis_update) : be smarter when min == max. 2003-11-13 Jody Goldberg * graph/gog-guru.c (cb_obj_children_reordered) : implement. (cb_reordered_find) : new. * graph/gog-object.c (gog_object_can_reorder) : implement. 2003-11-13 Jody Goldberg * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render) : avoid the potential for trouble for a series with only zeros. 2003-11-12 Jody Goldberg * graph/gog-guru.c (graph_guru_init_format_page) : store the precedence widgets. (cb_attr_tree_selection_change) : adjust sensitivity of the precedence elements. 2003-11-11 Jody Goldberg * graph/gog-style.c (marker_init) : fix leak. * graph/gog-guru.c (cb_attr_tree_selection_change) : work around a probable bug in GtkViewport by adding an extra GtkFrame inside the viewport and using that. 2003-11-11 Morten Welinder * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render): Use finite consistently. 2003-11-11 Jody Goldberg * utils/go-pattern.c (go_pattern_selector) : add auto support. * utils/go-marker.c : move the default handling where it belongs. * utils/go-color.c (go_color_to_gdk) : new. * graph/plugins/plot_barcol/plot-types.xml.in : include non-marker variants. * graph/plugins/plot_xy/plot-types.xml.in : include non-marker, and barcol non-line variants. * graph/gog-theme.c : respect the auto flags here. * graph/gog-styled-object.c (gog_styled_object_apply_theme) : new. (gog_styled_object_set_property) : Use it here. (gog_styled_object_parent_changed) : and here. (gog_styled_object_editor) : provide a default impl. (gog_styled_object_get_auto_style) : new. * graph/gog-style.c : - Add support for auto* flags for the marker here, not GoMarker. - Support restoring auto for shapes and colours * graph/gog-series.c (gog_series_init_style) : new. Gives us finer control of what is themable. * graph/gog-guru.c : Simplify our lives and only have 1 prop sheet at any given time. No need to worry about updating when something changes externally (styles or dimensions) * graph/gog-chart.c : Use the default editor and init_style * graph/gog-graph.c : ditto * graph/gog-axis.c : convert from ::interesting_fields -> ::init_style * graph/gog-grid.c : ditto. * graph/gog-label.c : ditto. * graph/gog-legend.c : ditto. 2003-11-05 Jody Goldberg * utils/go-marker.h : I don't want GtkWidget in these headers 2003-11-04 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=125986 * graph/gog-style.c (gog_style_merge) : A cheesy solution to the current lack of clarity on the theming. We only have a colour.is_auto flag, so only assign the colour. This means that lines and outlines can only theme the colour, not the width or the pattern. Which seems reasonably until we have a plan for defining 'autoness' for those attributes. 2003-11-03 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=126056 * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render) : differentiate between missing and bad strings. X axis strings are indicies, Y axis strings are 0. 2003-11-02 Jody Goldberg * graph/gog-style.c (gog_style_editor) : Add a weakref so that we can disconnect the signal if the object is destroyed. * graph/gog-axis.c (make_dim_editor) : Use closures to avoid having a callback after a widget has been destroyed. 2003-11-02 Emmanuel Pacaud http://bugzilla.gnome.org/show_bug.cgi?id=125419 * graph/gog-renderer.[ch] (gog_renderer_start_clipping), (gog_renderer_stop_clipping) : new. Implement clipping of drawing. Only one level of clipping is allowed. * graph/gog-renderer[svg, pixbuf, gnome-print] (gog_renderer_.._start_clipping), (gog_renderer_.._stop_clipping) : new. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_path), (gog_renderer_pixbuf_draw_polygon), (gog_renderer_pixbuf_draw_text) : handle offset for drawing when clipping. * graph/gog-rendere-gnome-print.c (make_rectangle_path) : new; * graph/gog-chart.c (gog_chart_render) : new. Use the same clipping region for all plots. 2003-11-01 Jean Brefort * graph/gog-renderer-svg.c: added scale parameter to gog_graph_export_to_svg. * graph/gog-renderer-svg.c: implement gog_renderer_svg_measure_text and gog_renderer_svg_draw_text. 2003-11-01 Jody Goldberg * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_plot_class_init) : set the default to match the real default so that things persist properly. 2003-10-30 Jody Goldberg * graph/gog-plot.c (gog_plot_get_cardinality) : Set the index even if the series is invald. This makes like easier when adding a series. * graph/gog-style.c (gog_object_set_style) : block style change signals. (gog_style_pref_state_free) : disconnect the style change handler. (gog_style_editor) : monitor style changed signals. (cb_style_changed) : new. * graph/gog-series.c (gog_series_set_index) : signal when the style changes. * graph/gog-object.c (gog_object_get_editor) : force an update before creating an editor to avoid flicker later. * graph/gog-graph.c (gog_graph_force_update) : new. 2003-10-29 Jody Goldberg * graph/gog-axis.c (cb_axis_bound_changed) : update all the auto bounds when anything changes. 2003-10-28 Jody Goldberg * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render) : be lazy and do the clipping in the renderer rather than here. It will make life easier when we add splines. 2003-10-27 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=125619 * graph/gog-axis.c (gog_axis_editor) : init the high/low button * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render) : clip markers and lines. * graph/gog-renderer-pixbuf.c (clip_path) : new. (gog_renderer_pixbuf_draw_path) : support the new clipping argument. (gog_renderer_pixbuf_draw_polygon) : ditto. 2003-10-23 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=125045 * graph/gog-axis.c (gog_axis_view_render) : clip correctly and space the ticks based on the actual tick values, not just their index. (gog_axis_num_markers) : return a step fraction too. 2003-10-21 Jody Goldberg * graph/gog-renderer.c (gog_renderer_init) : init zoom to 1. * graph/gog-renderer-gnome-print.c (gog_graph_print_to_gnome_print) : ditto. 2003-10-14 Emmanuel Pacaud * graph/gog-axis.c (axis_get_entry) : Add a user_defined parameter in order to know if the returned value is defined by user or computed. (gog_axis_update) : Use user defined bound for the tick spacing calculation. (gog_axis_num_markers) : round to nearest value instead of the automatic double to int cast that removes the fractionnal part. 2003-10-18 Jody Goldberg * graph/gog-chart-impl.h : Inherit from GogOutlinedObject and use the padding there. * graph/gog-graph-impl.h : ditto. * graph/gog-label.c : ditto. * graph/gog-legend.c : ditto. * graph/gog-chart.c (gog_chart_get_property) : padding is in outlined object now. (gog_chart_set_property) : delete. (gog_chart_class_init) : delete set_prop method and padding_pts prop (gog_chart_init) : delete padding_pts. (gog_chart_view_size_allocate) : use outlined view. (gog_chart_view_render) : ditto. (gog_chart_view_class_init) : just use render in outlined view. * graph/gog-graph.c (gog_graph_set_property) : remove PADDING (gog_graph_get_property) : ditto. (gog_graph_class_init) : ditto. (gog_graph_init) : we don't inherit directly from StyledObject anymore (gog_graph_view_size_allocate) : use OutlinedView. (gog_graph_view_render) : ditto. (gog_graph_view_class_init) : ditto. * graph/Makefile.am : Add gog-outlined-object.[ch] 2003-10-13 Jody Goldberg http://bugzilla.gnome.org/show_bug.cgi?id=122546 * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update) : Update the index axis if our labels change. This problem does not apply to XY plots because their x bounds will change when a dim is set or cleared. 2003-10-08 Jody Goldberg * Release 1.2.1 2003-10-06 Jean Brefort * graph/gog-renderer-svg.c (gog_renderer_svg_draw_polygon) : use go_pattern_is_solid. (gog_renderer_svg_draw_marker) : implemented. 2003-10-08 Jody Goldberg * graph/gog-axis.c (role_label_post_add) : put y axis labels to the left or right not at the top. (gog_axis_class_init) : enable y axis labels 2003-10-07 Jody Goldberg * graph/gog-axis.c (gog_axis_dataset_dims) : enable setting the cross point. 2003-10-07 Morten Welinder * graph/gog-axis.c (gog_axis_update): Fake floor, not fake trunc. 2003-10-06 Morten Welinder * graph/gog-plot.c (gog_plot_get_axis_bounds): Return NULL, not FALSE. * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_point): Ditto. 2003-10-05 Jon K Hellan * utils/go-pattern.c (go_pattern_selector): gtk_combo_box renamed to gnm_combo_box. * utils/go-marker.c (go_marker_selector): Ditto. * utils/go-gradient.c (go_gradient_selector): Ditto. * graph/gog-style.c (create_color_combo): Ditto. 2003-10-05 J.H.M. Dassen (Ray) * graph/gog-guru.c: #include gtkliststore.h to fix build. 2003-09-30 Jody Goldberg * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render) : we already winnowed out the invalid series, no need to flag them. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render) : ditto. 2003-09-28 Jody Goldberg * graph/gog-style.c (gog_style_is_marker_visible) : Use the interesting field too. (gog_style_assign) : Assign the interesting flags too. * graph/gog-legend.c (cb_size_elements) : see if anything has a marker (gog_legend_view_size_request) : if any of the elements has a marker rather than a swatch we need 3x swatch width. (cb_render_elements) : If entry has a marker draw the line and marker (gog_legend_view_render) : Prep for drawing markers if any exist. 2003-09-29 Morten Welinder * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render): Survive getting a NULL vals, even though that might be a symptom of something else. * graph/gog-object.c (gog_object_dup): Plug leak. * graph/gog-object-xml.c (gog_object_new_from_xml): Plug leaks. 2003-09-23 Jody Goldberg * graph/gog-axis.h : delete unused enum GogAxisTickLevel. Publicize the data elements. (gog_axis_update) : Manually handle the epsilon shifts so that we can ignore sign. 2003-09-22 Jody Goldberg * graph/gog-view.c (cb_remove_child) : doh! 2003-09-21 Jody Goldberg * graph/gog-renderer-pixbuf.c (make_layout) : scale the font size manually to work around. http://bugzilla.gnome.org/show_bug.cgi?id=121543 2003-09-15 Jean Brefort * graph/gog-renderer-svg.c : added gradient support. * utils/go-gradient.c (go_gradient_setup): changed vector for oblique gradients. 2003-09-20 Jody Goldberg * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_bounds) : only valid series can contribute to an index dimension. * graph/plugins/plot_xy/gog-xy.c (gog_xy_plot_axis_bounds) : ditto. * graph/gog-renderer-gnome-print.c (get_font) : respect zoom. * graph/gog-style.c (font_init) : set the font _before_ connecting the signal. doh! 2003-09-16 Jody Goldberg * graph/gog-theme.c (gog_themes_init) : change the default theme for Adrian. 2003-09-16 Morten Welinder * graph/gog-renderer-pixbuf.c (make_layout): Change to way font description is set so that it will work both before and after the fix to http://bugzilla.gnome.org/show_bug.cgi?id=121543. 2003-09-15 Jody Goldberg * graph/gog-label.c (gog_label_view_size_request) : empty labels are of size 0,0 not 1,1 * graph/gog-view.c (gog_view_size_allocate_real) : don't pad if the child is 0 sized. (gog_view_size_child_request) : ditto. * graph/gog-axis.c (gog_axis_num_markers) : we can't use the max_val as a fallback if there is no data defining it. 2003-09-15 Morten Welinder * utils/go-marker.c (go_marker_selector): Terminate the array as it is shorter than we tell the pixbuf combo. 2003-09-15 Jody Goldberg * Release 1.2.0 2003-09-15 Jody Goldberg * graph/gog-renderer.c (gog_renderer_measure_text) : pango does not like measuring "" (gog_renderer_draw_text) : ditto. 2003-09-15 Jody Goldberg * graph/gog-axis.c (gog_axis_view_render) : clipping the label text in the iterating dimension is a bad idea, we want to clip whole labels, not the individual lines. * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render) : only draw the first series for a pie. Things can sneak in. * utils/go-font.c (go_font_init) : make default font smaller * graph/gog-object.c (gog_object_get_pos) : new. (gog_object_set_pos) : new. 2003-09-14 Jody Goldberg * graph/gog-axis.c (gog_axis_editor) : We ignore the bounds for a discrete axis. (gog_axis_update) : store information pertaining to axes with discrete enumerations. (gog_axis_editor) : discrete enumerations do not allow for manual boun changes. (gog_axis_num_markers) : handle discrete enumerations. (gog_axis_get_marker) : ditto. (gog_axis_view_size_request) : ditto. (gog_axis_view_render) : rework to support in and out ticks. Support discrete enumerations. (gog_axis_is_discrete) : new. (gog_axis_get_ticks) : new. * graph/gog-renderer.c (gog_renderer_draw_text) : revamp the interface yet again to make parameters clearer. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : adjsut to the new interface and imrpve clipping support. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_text) : adjust to the new interface, add support for anchors. 2003-09-14 Andreas J. Guelzow * gog-style-prefs.glade: `colour' should be `color' 2003-09-14 Andreas J. Guelzow * graph/gog-renderer-gnome-print.c: replace calls of gnome_font_find_closest_from_weight_slant with gnm_font_find_closest_from_weight_slant 2003-09-14 Jody Goldberg * graph/gog-axis.c (axis_get_entry) : new utility. (gog_axis_get_bounds) : use it here. (gog_axis_num_markers) : here. (gog_axis_get_marker) : and here. (role_label_can_add) : new. (gog_axis_class_init) : use it here to disable labels on the Y axis until we can get a smarter layout engine. 2003-09-14 Jody Goldberg * graph/gog-axis.c (gog_axis_update) : yet another layer of heuristic to handle -1 .. 1 better. (gog_axis_get_marker) : force to 0. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_view_render) : Get the bounds from the value axis. (fixes bar plots) 2003-09-13 Jody Goldberg * graph/gog-axis.c (cb_enable_dim) : get smarter and handle transitions to from auto state. 2003-09-13 Jon K Hellan * graph/gog-style.c (cb_fg_color_changed, cb_bg_color_changed, cb_fill_gradient_start_color, cb_fill_gradient_end_color): Update is_auto and pattern_fore_auto, pattern_back_auto, gradient_start_auto, gradient_end_auto flags. (gog_style_merge): Only merge color attributes for fill. (gog_style_init): Initialize attern_fore_auto, pattern_back_auto, gradient_start_auto, gradient_end_auto flags * graph/gog-style.h: Add non-persistent auto flags for each color element in fill. 2003-09-13 Jody Goldberg * graph/gog-axis.c (role_label_post_add) : be smarter about positioning. * graph/gog-view.c (gog_view_size_child_request) : hard code some inter-child padding. We can be more elegant in the future. (gog_view_size_allocate_real) : ditto. * graph/gog-axis.c (gog_axis_view_size_request) : request space for children too. 2003-09-13 Jon K Hellan * graph/gog-legend.c (cb_render_elements): Allow for floating point inaccuracies when deciding if there is room for an element. 2003-09-13 Jody Goldberg * graph/plugins/plot_xy/gog-xy.c (gog_xy_view_render) : support index axis for X. (gog_xy_series_update) : ditto. * graph/gog-axis.c (gog_axis_editor) : we want font too. Align the Auto header nicely. (make_dim_editor) : some initial work to give the Auto button's some feedback. * graph/gog-style.c (cb_line_color_changed) : set auto_color. (cb_outline_color_changed) : ditto. 2003-09-13 Jody Goldberg * graph/gog-chart.c (gog_chart_axis_set_assign) : clear_parent clears ::grid, store the pointer for a moment so that we can free it. * utils/go-color.c (color_combo_get_gocolor) : cheap hack to support alpha channel despite interface limitations. It only works for custom colours, but thats the most important case. (color_combo_set_gocolor) : init the custom picker too to ensure that alpha gets set correctly. * utils/go-gradient.c (go_gradient_selector) : no need to free images, have the combo absorb them. * utils/go-pattern.c (go_pattern_selector) : ditto. fix cut-n-paste-o the first 'Thin Diagonal Crosshatch' was actually 'Thin Diagonal Stripe' * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : leak. 2003-09-12 Jody Goldberg * graph/gog-axis.c (gog_axis_set_property) : fix typos. (gog_axis_view_render) : actually support some of the tick options. (gog_axis_editor) : hook up some of the controls. * graph/gog-chart.c (gog_chart_axis_set_assign) : add or remove a grid depending on the axis set. 2003-09-11 Jody Goldberg * graph/gog-object-xml.c (gog_object_write_property) : don't bother saving parameters with default values. * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render) : respect axis bounds. * graph/gog-axis.c (gog_axis_view_render) : invert alignment of text and support tick marks. (gog_axis_view_size_request) : Make axis labels optional, and allocate size for major and minor ticks. (gog_axis_class_init) : Lots of new options. (gog_axis_get_property) : ditto, not all of them are supported yet. (gog_axis_set_property) : ditto, not all of them are supported yet. (gog_axis_update) : Add pull to 0, and step doubling heuristics. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : Clip text trying to draw out of the physical bounds. * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_axis_bounds) : fix cut-n-paste-o. 2003-09-10 Jody Goldberg * Release 1.1.90 2003-09-09 Jody Goldberg * graph/gog-styled-object.c (gog_styled_object_parent_changed) : set the interesting fields when all the parents are in place. * graph/gog-renderer.h : Add an anchor parm to draw_text and clean up the semantics of size. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : handle the various anchor types. * graph/gog-axis.c : Some initial work at generating bounds, and drawing axis values. * graph/gog-view.c (gog_view_render) : filter objects with invalid size. eg a user makes the plot too small to be useful. 2003-09-09 Jody Goldberg * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update) : percentage charts logicly limit -1 .. 1 * graph/plugins/plot_xy/gog-xy.c (gog_xy_plot_update) : no logical min or max. 2003-09-08 Jody Goldberg * graph/plugins/plot_barcol/plot-types.xml.in : fix icons to match reality. All lines currently have markers by default. * graph/plugins/plot_barcol/gog-line.c (gog_line_update_stacked_and_percentage) : Generate the correct bounds. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_update_stacked_and_percentage) : Why special case 0..1 (gog_barcol_view_render) : handle bound clipping. 2003-09-08 Jon K Hellan * graph/gog-renderer-svg.c (gog_renderer_svg_draw_marker): New dummy implementation. (gog_renderer_svg_class_init): Use it. 2003-09-08 Jody Goldberg * graph/gog-style.c (cb_fill_gradient_end_color) : throw the update into a timer to decrease flicker. Works around a bug in older libarts. (gog_style_set_fill_brightness) : new. (cb_gradient_brightness_value_changed) : actually hide the brightness. (cb_gradient_style_changed) : ditto. (fill_gradient_init) : ditto. * graph/gog-renderer-svg.c (gog_graph_export_to_svg) : convert interface to use libgsf. 2003-09-07 Jean Brefort * utils/go-gradient.c (go_gradient_setup): added a small value to gradient->c for vertical gradients to avoid a line whith the bad color at the top of the area. * graph/gog-style.c: handle brightness in gradients. * graph/gog-renderer-svg.[c,h]: new files to handle svg export (not fully implemented). * graph/Makefile.am: added gog-renderer-svg.[c,h]. 2003-09-07 Jody Goldberg * utils/go-marker.c (go_marker_selector) : Add marker names. 2003-09-07 Emmanuel Pacaud * utils/go-marker.c : removed unused property and signal stuff. (go_marker_selector) : new. * graph/gog-style.c (populate_marker_combo) : new. (marker_init) : use the marker combo. * graph/gog-style-prefs.glade : removed marker option menu. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_marker): returns when one of the path is NULL (fix a crash). 2003-09-07 Jody Goldberg * graph/gog-styled-object.c (gog_styled_object_set_property) : set the interesting field for a style. (gog_styled_object_init) : ditto. (gog_styled_object_interesting_fields) : default to outline & fill. * graph/gog-style.c (gog_style_persist_dom_save) : only save interesting fields. * graph/gog-series.c (gog_series_interesting_fields) : new. (gog_series_class_init) : hook it up. * graph/gog-legend.c (gog_legend_interesting_fields) : new. (gog_legend_class_init) : hook it up. * graph/gog-label.c (gog_label_interesting_fields) : new. (gog_label_class_init) : hook it up. * graph/gog-axis.c (gog_axis_interesting_fields) : new. (gog_axis_class_init) : hook it up. 2003-09-07 Jody Goldberg * graph/gog-style.c (gog_style_line_load) : support auto_color flags. (gog_style_line_save) : ditto. (gog_style_fill_load) : handle is_auto. (gog_style_fill_save) : ditto. * graph/gog-legend.c (gog_legend_view_render) : tune the padding. (cb_render_elements) : ditto. 2003-09-06 Jon K Hellan * graph/gog-theme.c (gog_theme_init_style): Merge styles instead of assigning style from theme. (map_area_series_solid_default): Only change elements which hold auto values. * utils/go-marker.[ch] (go_marker_shape_from_str, go_marker_shape_as_str): Move from gog-style.c and rename. (go_marker_is_auto): New. Tests if marker is different from default. Should really test if user has chosen the marker explicitly. * graph/gog-style.c (gog_style_merge): Implement. (str_as_marker_shape, marker_shape_as_str):Move to utils/go-marker and rename. (gog_style_marker_load, gog_style_marker_save): Use renamed version of above functions. (gog_style_persist_dom_load): Mark style elements read from file as non-auto (for now). 2003-09-06 Jon K Hellan * utils/go-pattern.[ch] (go_pattern_as_str, go_pattern_as_str): Move from gog-style.c and rename. * utils/go-gradient.[ch] (go_gradient_dir_from_str) (go_gradient_dir_as_str): Ditto. * graph/gog-style.c (str_as_pattern, pattern_as_str, str_as_grad_dir, grad_dir_as_str): Move to utils/go-pattern / go-gradient and rename. (gog_style_gradient_load, gog_style_gradient_save, gog_style_fill_load, gog_style_fill_save): Use renamed version of above functions. 2003-09-05 Jon K Hellan * utils/go-color.[ch] (go_color_from_str, go_color_as_str): New. Convert color to/from string. * graph/gog-style.c (str_as_fill_style, fill_style_as_str): New. Convert fill style to/from string. (str_as_pattern, pattern_as_str): New. Convert pattern to/from string. (str_as_grad_dir, grad_dir_as_str): New. Convert gradient direction to/from string. (str_as_marker_shape, marker_shape_as_str): New. Convert marker shape to/from string. (gog_style_line_load, gog_style_line_save): New. Load/save a line/outline style. (gog_style_gradient_load, gog_style_gradient_save): New. Load/save a gradient. (gog_style_fill_load, gog_style_fill_save): New. Load/save a fill. (gog_style_marker_load, gog_style_marker_save): New. Load/save a marker. (gog_style_font_load, gog_style_font_save): New. Load/save a font. (gog_style_persist_dom_load, gog_style_persist_dom_save): Implement. * graph/gog-object-xml.c (gog_object_set_arg_full) : Don't expect GObject type name as entity content. (gog_object_write_property): Don't save GObject type name as entity content. 2003-09-04 Jody Goldberg * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update) : don't force 0. That will be handled at the axis level. * graph/gog-style.c : move the marker editor back into the main style editor rather than being distinct. 2003-09-03 Emmanuel Pacaud * utils/go-marker.[ch] : new. * graph/gog-pixbuf-renderer.c : add draw_marker method. * graph/gog-gnome-print-renderer.c : idem. * graph/gog-renderer.c : idem. * graph/gog-style-prefs.glade : update marker editor * graph/gog-style.c (cb_marker_changed) : new. (marker_init) : use editor in gog-marker.c. (gog_style_pref_state_free) : free marker pointer. (gog_style_assign) : handle marker pointer. (gog_style_finalize) : idem. (gog_style_init) : init marker pointer. * graph/gog-theme.c (map_area_series_solid_default) (map_area_series_solid_guppi) : initialize marker properties. * graph/plugins/plot_barcol/gog-line.c (gog_line_view_render) : draw markers. 2003-09-03 Jody Goldberg * graph/gog-legend.c (cb_render_elements) : clip before things overflow. 2003-09-03 Jody Goldberg * graph/gog-style.h : add GogStyle::font::color * graph/gog-style.c (gog_style_init) : init font::color * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_text) : composite manually cause libart was dog slow when using the approach in librsvg. 2003-09-03 Jody Goldberg * graph/gog-label.c (gog_label_view_size_request) : take outline into account. * graph/gog-legend.c (gog_legend_view_render) : don't over draw space allocated to children, and actually measure the text. (gog_legend_editor) : add. * graph/gog-view.c (gog_view_size_child_request) : new utility to build up a size requestfor the children around the request for the parent. * graph/plugins/plot_pie/gog-pie.c (gog_pie_plot_foreach_elem) : handle case with no series. 2003-09-03 Morten Welinder * graph/gog-object-xml.c (gog_object_set_arg_full): Plug leak. 2003-09-01 Jody Goldberg * graph/gog-renderer-pixbuf.c (make_layout) : kludge a patch for font scaling. 2003-09-01 Jody Goldberg * graph/plugins/plot_xy/gog-xy.c : An initial skeleton, because I accidentally deleted the last one. Useless. * graph/gog-style.c (gog_object_get_style) : fix leak. (fill_init) : do not assign the style as part of the initialization. * graph/gog-renderer-pixbuf.c (make_layout) : another failing attempt to get font sizes to change. * graph/gog-renderer-gnome-print.c : An initial pass at font support. Untested, and unlikely to work out of the box. 2003-08-29 Morten Welinder * graph/gog-axis.c (gog_axis_class_init): Plug leak. * utils/go-pattern.c (go_pattern_selector): Free the pixel data. * graph/gog-guru.c (graph_typeselect_minor): Handle ->plot changing underneath us. * utils/go-font.c (go_font_init): Since the key is a pango font description, not a go-font, use proper hash and equal functions. 2003-08-29 Jody Goldberg * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render) : go clockwise to avoid having ArtRender think the figure is inside out. 2003-08-28 Jody Goldberg * graph/gog-renderer-impl.h : Add font_removed. 2003-08-28 Jody Goldberg * graph/plugins/plot_pie/gog-pie.c (gog_pie_plot_class_init) : pie series need outlines and fills. * graph/gog-theme.c (gog_theme_element_free) : new. (gog_theme_element_hash) : ditto. (gog_theme_element_eq) : ditto. (gog_themes_shutdown) : new to avoid leaking. (gog_theme_finalize) : handle lookup by role. (gog_theme_init) : ditto. (gog_theme_add_element) : ditto. (gog_theme_init_style) : rework to clarify precedence. 1) :: 2) :: 3) object_type * graph/gog-style.c (gog_style_assign) : Use GOFont. (gog_style_finalize) : ditto. (gog_style_init) : ditto. (gog_style_set_font) : new, * goffice.c (libgoffice_init) : init fonts. (libgoffice_shutdown) : shutdown fonts and themes. * utils/go-font.c : new utility class to ref count fonts. 2003-08-28 Morten Welinder * utils/go-gradient.c (go_gradient_selector): Clean a bit. * graph/gog-style.c (gog_style_pref_state_free): Don't unref NULL images. (gog_style_set_image_preview): Handle setting the same picture, just in case. 2003-08-27 Andreas J. Guelzow * graph/gog-style.c (gog_style_set_image_preview): add argument to gnm_pixbuf_intelligent_scale call (cb_image_file_select) use preview_file_selection_set_filename rather than gtk_file_selection_set_filename (fill_image_init): set minimum preview size 2003-08-27 Andreas J. Guelzow * graph/gog-style.c (gog_style_set_image_preview): new (cb_image_file_select): use gtk_image_set_from_pixbuf (fill_image_init): initialize state->fill.image.image (cb_fill_type_changed): store original size image (gog_style_pref_state_free): free state->fill.image.image * graph/gog-style-prefs.glade: add size label to image-fill preview 2003-08-26 Andreas J. Guelzow * graph/gog-style.c (cb_image_file_select): use preview_file_selection_new and not gnumeric_dialog_image_file_selection 2003-08-26 Morten Welinder * utils/go-pattern.c (go_pattern_selector): Get the args to gdk_pixbuf_new right. Plug leak. * utils/go-gradient.c (go_gradient_setup): New function. (go_gradient_selector): Use go_gradient_setup. Make return type sane. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon): Use go_gradient_setup. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon): Use go_gradient_setup. 2003-08-25 Andreas J. Guelzow * graph/gog-style.c (cb_image_file_select): use gnumeric_dialog_image_file_selection 2003-08-25 Jody Goldberg * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon) : remove double gonme_print_grestore 2003-08-24 Jody Goldberg * graph/gog-guru.c (cb_graph_guru_clicked) :clear the tmp value that was refing the graph. 2003-08-24 Andreas J. Guelzow * graph/gog-guru.c (gog_guru): store and ref gclosure (graph_guru_state_destroy): unref closure (cb_graph_guru_clicked): invoke gclosure * graph/gog-guru.h (gog_guru): use gclosure 2003-08-23 Jody Goldberg * graph/plugins/plot_barcol/gog-1.5d.c (gog_plot1_5d_update) : doh! 2003-08-22 Jody Goldberg * graph/gog-object.c (gog_role_cmp) : use the new priority field to be smarter. (gog_object_dup) : Use the new go_data_dup. (gog_object_set_parent) : use gog_role_cmp instead of just using the position. 2003-08-21 Jody Goldberg * graph/gog-guru.c (gog_guru) : use gog_graph_dup now that styles work. * graph/gog-object.c (gog_object_dup) : doh! dst = src works better than src = src. 2003-08-21 Jody Goldberg * Release 1.1.20 2003-08-21 Jody Goldberg * graph/gog-object-xml.c (gog_object_new_from_xml) : don't mark newly reconstituted objects as explititly typed unless they really were. (gog_dataset_save) : patch leak. * graph/gog-object.c (gog_object_dup) : new. 2003-08-21 Jody Goldberg * graph/gog-axis-prefs.glade : Remove the ticks menu. I'll handle it via roles later. * graph/gog-axis.c (gog_axis_editor) : we're only interested in the line characteristics. * utils/go-units.h : fix arg names * graph/gog-chart.c (gog_chart_class_init) : add padding_pts. * graph/gog-graph.c (gog_graph_class_init) : typo. 2003-08-19 Jody Goldberg * graph/gog-renderer.c (gog_renderer_draw_rectangle) : handle outlines properly. 2003-08-14 Andreas J. Guelzow * graph/gog-style-prefs.glade: shuffle fill-image widgets again 2003-08-14 Morten Welinder * graph/gog-style.c (cb_fill_type_changed): Don't unref the old image if it is NULL. 2003-08-14 Jody Goldberg * graph/gog-chart.c (role_plot_post_add) : don't set the axis twice for the first plot. Add a post condition to keep us honest. 2003-08-12 Jody Goldberg * graph/gog-style.c (fill_image_init) : store the filename (cb_image_file_select) : ditto. (cb_fill_type_changed) : use it here to support restoring the image filaname even though all we have is the image. 2003-08-13 Andreas J. Guelzow * graph/gog-style-prefs.glade: shuffle fill-image widgets * graph/gog-guru.glade: increase default size and increase default style portion 2003-08-13 Andreas J. Guelzow * graph/gog-style-prefs.glade: align fill-image widgets 2003-08-12 Andreas J. Guelzow * graph/gog-style-prefs.glade: improve spacing, add scoll window 2003-08-12 Andreas J. Guelzow * graph/gog-style-prefs.glade: add some missed label names 2003-08-10 Jody Goldberg * graph/gog-style.c : re-enable image handling and cache the pixbuf. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon) : The style stores the pixbuf now, no need to reload the damn thing from disk every time we use it. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon) : Use a convenience routine (print_image) : new convenience routine. 2003-08-11 Andreas J. Guelzow * graph/plugins/plot_pie/gog-pie-prefs.c (cb_center_size_changed): scale between display and storage (gog_ring_plot_pref): ditto * graph/plugins/plot_pie/gog-ring-prefs.glade: center_size spin button should range from 0 to 95 in steps of 5 2003-08-09 Andreas J. Guelzow * graph/gog-guru.c: add correct helpfile address 2003-08-01 Morten Welinder * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_finalize): Plug leak. * graph/gog-style.c (gog_style_class_init): Plug leaks. 2003-08-01 Jody Goldberg * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_path) : use the line characteristics, not outline. * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_path) : ditto. * graph/gog-theme.c (gog_themes_init) : set the line width. (map_area_series_solid_default) : line colour seems to start at an offset to area colours. (map_area_series_solid_guppi) : set the line colour too. 2003-07-31 Jody Goldberg * graph/gog-series.c (gog_series_set_index) : always init the style, don't be cheap. When loading index is initialized to 0, so the first series would not get styled because it did not look like anything changed. * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render) : fix interpretation of the center_size parameter. Thanks tino. * graph/gog-plot.c (gog_plot_init) : copy the plot descriptor from the class to the plot here for use cases that use g_object_new. * graph/gog-plot-engine.c (gog_plot_new_by_name) : rather than here where it gets missed. * graph/gog-legend.c (gog_legend_parent_changed) : catch object name changes in the chart and trigger an update. * graph/gog-graph.c (cb_graph_idle) : clear the handler before doing the update so that a handler can queue an update for another object. 2003-07-30 Emmanuel Pacaud * graph/plugins/plot_barcol/gog-line.[ch]: new. Line and Area support. * graph/plugins/plot_barcol/gog-1.d.[ch]: new. Defines base class for gog-line and gog-barcol. * graph/plugins/plot_barcol/plot-types.xml.in: add support for are and line plots. * graph/plugins/plot_barcol/plugin.xml.in: add are and line engines. 2003-07-19 Jody Goldberg * graph/gog-chart.c (gog_chart_get_axis) : new. 2003-07-19 Jody Goldberg * graph/plugins/plot_barcol/plot-types.xml.in : for stacked and percentage set the overlap to 100. 2003-07-17 Jody Goldberg * graph/plugins/plot_barcol/gog-barcol.c : Request XY axis set. * graph/gog-data-set.c (gog_dataset_set_dim_internal) : always fire an update. 2003-07-09 Jody Goldberg * graph/gog-object-xml.h : fix guards 2003-07-07 Jody Goldberg * graph/gog-legend.c (gog_legend_parent_changed) : chain upwards. * graph/gog-series.c (gog_series_parent_changed) : ditto. 2003-07-06 Andreas J. Guelzow * graph/plugins/plot_pie/gog-ring-prefs.glade: colour -> color 2003-07-06 Andreas J. Guelzow * graph/plugins/plot_pie/gog-pie-prefs.glade: colour -> color 2003-07-03 Jon K Hellan * graph/gog-style.c (init_solid_page, init_gradient_page) (init_gradient_page, gog_style_editor): Turn off color combo tearoff behaviour in dialogs. 2003-07-02 Jody Goldberg * graph/gog-renderer.c (gog_renderer_init) : tweak the default size to produce a better proportion. * graph/plugins/plot_pie/gog-pie.c (gog_pie_view_render) : some minor cleanup. * graph/plugins/plot_pie/gog-pie-prefs.glade : fix units of separation spinner. 2003-06-29 Jody Goldberg For Emmanuel Pacaud * graph/plugins/plot_pie/gog-pie.c : Handle rings 2003-06-27 Jody Goldberg * graph/gog-plot.c (gog_plot_set_property) : don't allow setting vary_style_by_element if the plot does not permit it in the current state. (gog_plot_get_property) : be anal. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_supports_vary_style_by_element) : new. 2003-06-27 Jody Goldberg * graph/gog-plot-impl.h : Add GogPlotClass::supports_vary_by_element 2003-06-26 Morten Welinder * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon): Fix gradients. 2003-06-25 Jody Goldberg * graph/gog-plot-engine.c (gog_plot_type_service_finalize) : still incomplete, but the lists definitely need to be freed. 2003-06-25 Jody Goldberg * graph/gog-data-allocator.c (gog_dataset_get_type) : fix cut-n-paste-o. 2003-06-25 Jean Brefort * graph/gog-renderer-gnome-print.c: use alpha channel when printing gradients 2003-06-20 Jean Brefort * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon): unref the pixmaps 2003-06-22 Jody Goldberg * graph/plugins/plot_pie/gog-pie.c (gog_pie_plot_set_property) : vary style by element handled in plot now. (gog_pie_plot_get_property) : ditto. (gog_pie_plot_cardinality) : deleted. (gog_pie_plot_foreach_elem) : doh! USe the label we just calculated. (gog_pie_view_render) : implement general extracted slices. * graph/gog-theme.c (gog_theme_get_name) : new util. * graph/gog-style.c : Implement the hooks for serialization but have not actually written them yet. * graph/gog-series.c (gog_series_editor) : add a notebook wrapper to allow changing style and data. (gog_series_init) : set GogObject::use_parent_as_proxy flag. (gog_series_dataset_dims) new. * graph/gog-plot.c (gog_plot_set_property) : handle the 'vary_style_by_element' at this level. (gog_plot_get_cardinality) : ditto. * graph/gog-object.c (gog_object_emit_changed) : Add 'use_parent_as_proxy' utility to make life easier for things like series that will not have individual views. This will fire a changed signal from their plots. * graph/gog-legend.c (gog_legend_parent_changed) : new. ensure we get updated when chart cardinality changes. (gog_legend_update) : new. * graph/gog-label.c (gog_label_editor) : fix. (gog_label_class_init) : fix. (gog_label_dims) : added to handle the extension to dataset interface. * graph/gog-guru.glade : remove frame wrapping the prop notebook. * graph/gog-guru.c (prop_notebook_set_current_page) : new util. to cleanup the handling of prop pages. Only show the border if the prop page is not a notebook. This keeps the layout visually similar in both cases. (cb_select_prop_page) : use it here. (cb_attr_tree_selection_change) : and here. (graph_guru_type_selector_new) : remove the useless notebook wrapping the type selector. It gives us more space and forces an initial selection. * graph/gog-graph.c (gog_graph_set_property) : add a 'theme-name' property to facilitate serialization. * graph/gog-data-allocator.c (gog_dataset_dims) : extension to the dataset interface to facilitate serialization. * graph/gog-chart.c (gog_chart_get_property) : new. Needed a way to signal that the cardinality had changed, and a read only property with a notify handler seemed cleaner than a stand alone signal. Looking back at that decision, it seems ugly. Might revisit this later. * graph/gog-axis.c : hook up the dataset interface to prepare for serializing all the flags. * graph/go-data-impl.h (GOData) : extend interface to require a 'from_str' operation to allow serialization to xml. * graph/go-data.c (go_data_from_str) : wrapper. * graph/Makefile.am : Add gog-object-xml.[ch] 2003-06-14 Jean Brefort * graph/gog-style.c (gog_style_editor): move a bad placed g_signal_connect * graph/gog-style.c (gog_style_copy): duplicate filename if useful * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon): added missing white spaces (purely cosmetic) * graph/gog-renderer-pixbuf.c (go_color_to_artpix): removed static * graph/gog-renderer-gnome-print.c (gog_renderer_gnome_print_draw_polygon): added image and gradient support 2003-06-13 Jon K Hellan * graph/gog-style.c (gog_style_editor) : Use the new color_combo_set_instant_apply flag. 2003-06-12 Jody Goldberg * graph/goffice-graph.h : remove POSITION_FILL It does no good to have random thought experiments floating around. 2003-06-12 Jody Goldberg * graph/gog-guru.c (graph_guru_type_selector_new) : add an accelerator for the plot family selector. 2003-06-10 Jody Goldberg * graph/gog-view.c (gog_view_size_allocate) : Use the new debug macro. (cb_model_changed) : ditto. * graph/gog-object.c (gog_object_update) : and here. * graph/goffice-graph.h : Add trivial d() debugging macro so that normal folk don't get deluged with debug spew. * graph/lib.c : store goffice_graph_debug_level here. * graph/gog-renderer-gnome-print.c * (gog_renderer_gnome_print_draw_text) : implement trivial version. Need to decide how to handle fonts. 2003-06-10 Jody Goldberg * graph/plugins/plot_pie/gog-pie.c (gog_pie_series_update) : handle series before they are valid. * graph/plugins/plot_barcol/gog-barcol.c (gog_barcol_series_update) : ditto. * graph/gog-object.c (gog_object_set_parent) : call the role's post_add routine then objects parent_changed before signaling its addition. (gog_object_add_by_role) : set_parent calls the role functions, not us. 2003-06-07 Jean Brefort * graph/gog-style.c (gog_style_editor) : * graph/gog-style.h (struct _GogStyle) : * graph/gog-style-prefs.glade : * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_draw_polygon) : Start work on image 2003-06-07 Jody Goldberg * Release 1.1.19 2003-06-07 Jody Goldberg * Release 1.1.18 2003-06-07 Jody Goldberg * graph/gog-view.c (gog_view_queue_resize) : invalidate the allocation too if there is no parent. 2003-06-06 Jody Goldberg * graph/gog-chart.c (gog_chart_set_position) : simplify. * graph/gog-graph.c (gog_graph_validate_chart_layout) : new. * graph/gog-guru.c (cb_sample_pressed) : set the zoom here. (cb_sample_released) : and unset it here so that the icons don't get shrunk. 2003-06-04 J.H.M. Dassen (Ray) * graph/gog-style.h: Fixed include of command-context.h to make it work for builds outside the source dir. 2003-06-04 Jody Goldberg * graph/gog-object.c (gog_object_generate_name) : return NULL, not FALSE 2003-06-03 J.H.M. Dassen (Ray) * graph/gog-guru.h: Fixed include of command-context.h to make it work for builds outside the source dir. 2003-06-02 Jody Goldberg * graph/gog-legend.c (cb_render_elements) : quick and dirty draw the text. Still lots of work needed to measure things properly and do a more dynamic layout. * graph/gog-guru.c (cb_typesel_sample_plot_resize) : use the canvas zoom (cb_sample_plot_resize) : ditto. (graph_guru_init_format_page) : ditto. (graph_guru_type_selector_new) : ditto. * graph/gog-renderer-pixbuf.c (make_layout) : new. (gog_renderer_pixbuf_draw_text) : new. simple handler no rotation yet. (gog_renderer_pixbuf_measure_text) : new. (gog_art_renderer_new) : new utility. (gog_renderer_pixbuf_draw_polygon) : used here. * graph/gog-control-foocanvas.c (gog_control_foocanvas_draw) : another speed up by using regions rather tha nthe bounding rect of the expose. Thanks to AlexL for pointing out that this will help us when multiple exposes are compressed into 1 event and we do better to clip against the distinct sub regions, than the bounding box of all of them. (gog_control_foocanvas_update) : make life easier and pass the zoom to the renderer. 2003-06-02 Jody Goldberg * graph/gog-style.c : minor warning suppression and format style tidying. 2003-06-01 Jean Brefort * graph/gog-style.h : new gradient styles, fill type accessible only if GOG_STYLE_FILL is used * graph/gog-style.c : Enhanced gradient selector * graph/gog-renderer-pixbuf.c : Support for new gradient types * graph/gog-themes.c : Top to bottom gradient in Guppi theme 2003-05-31 Jody Goldberg For Jean Brefort * graph/gog-style.c (gog_style_editor) : Start work on gradient selector. 2003-05-31 Jody Goldberg * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_update) : fix canvas warnings about tryingto queue an update from an update handler. 2003-05-30 Jody Goldberg * graph/gog-theme.c (gog_themes_init) : make default them fill legend with white. * graph/plugins/plot_barcol/gog-barcol.c (barcol_draw_rect) : smooth the anti-aliasing fuzziness in the libart backend for hairline outlines. * graph/gog-chart.c (gog_chart_view_size_allocate) : support positions of NE, NW, SE, SW so that we can handle XL's 'corner' legends. * graph/gog-control-foocanvas.c (gog_control_foocanvas_draw) : big speed win. Only draw the piece of the chart that was exposed. * graph/gog-plot.c (gog_plot_request_cardinality_update) : we may add a series before assigning to a chart. * graph/gog-theme.c (gog_themes_init) : default and guppi themes were inverted for legends. * graph/gog-chart.c (gog_chart_class_init) : default to centering legends. 2003-05-30 Jody Goldberg * graph/gog-chart.c (gog_chart_view_render) : re-enable. * graph/gog-renderer-pixbuf.c (gog_renderer_pixbuf_update) : When the scale changes size requests are invalidated. * graph/gog-renderer.c (gog_renderer_invalidate_size_requests) : new. * graph/gog-view.c (gog_view_invalidate_sizes) : new. * graph/gog-legend.c (gog_legend_view_render) : typo. pad is in Y coordinates. * graph/gog-plot.c (role_series_post_add) : adding a series changes the cardinality. (role_series_pre_remove) : ditto. (gog_plot_update) : delete. Already handled at the chart level. (gog_plot_init) : Make sure cardinailty is initially valid so that we queue an an update request as necessary when it really does change. * graph/gog-chart.c (gog_chart_view_size_allocate) : support the alignment flags and enforce clipping. (role_plot_post_add) : adding a plot changes the cardinality. (role_plot_pre_remove) : ditto. (gog_chart_init) : Make sure cardinailty is initially valid so that we queue an an update request as necessary when it really does change. 2003-05-29 Jody Goldberg * graph/gog-renderer.c (gog_renderer_outline_size) : keep widths >= 1 * graph/plugins/plot_barcol/gog-barcol.c (barcol_draw_rect) : clip to integer sizes to decrease amount of bleed through due to antialiasing. 2003-05-27 Jody Goldberg * graph/gog-legend.c : make the swatch sizes properties. * graph/gog-guru.c (cb_typesel_sample_plot_resize) : fix sizing. (cb_sample_plot_resize) : ditto. * graph/gog-renderer.c (gog_renderer_set_property) : doh! set the values if they are _different_ not the same. 2003-05-26 Jody Goldberg * graph/gog-guru.c (graph_guru_set_page) : we can't run the typeselector without a chart selected. (cb_graph_guru_add_plot) : the child_added handler already populates things. (cb_find_child_added) : It may happen that something else will add an item while we're editing, and the change of focus may not be welcome, However, it is far more likely that we just added it. * graph/gog-object.c (gog_object_is_deletable) : don't let the guru delete the top level graph. * graph/gog-guru.glade : Add border to the menu bar to align it with the scrolled window. Add a 'Precedence' menu. 2003-05-25 Jody Goldberg The code is in CVS time to start keeping a changelog.