|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
--- abiword-plugins/tools/abigochart/plugin.m4.goffice04 2006-10-31 16:25:11.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+++ abiword-plugins/tools/abigochart/plugin.m4 2008-01-29 01:24:13.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
@@ -21,9 +21,9 @@
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
# Checks for GOfficeCharts
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
-LIBGOffice_REQUIRED_VERSION=0.2.1
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+LIBGOffice_REQUIRED_VERSION=0.4.0
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
-PKG_CHECK_MODULES(GOFFICE, [libgoffice-1 >= $LIBGOffice_REQUIRED_VERSION],[
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+PKG_CHECK_MODULES(GOFFICE, [libgoffice-0.4 >= $LIBGOffice_REQUIRED_VERSION],[
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
ABI_PLUGIN_REPORT([abigochart: okay])
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
],[ ABI_PLUGIN_REPORT([abigochart: error libgoffice >= $LIBGOffice_REQUIRED_VERSION required])
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
abi_plugin_disable=yes
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
--- abiword-plugins/tools/abigochart/unix/AbiGOChart.cpp.goffice04 2006-10-31 16:25:12.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+++ abiword-plugins/tools/abigochart/unix/AbiGOChart.cpp 2008-01-29 01:48:06.000000000 -0500
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
@@ -72,12 +72,13 @@
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-data-allocator.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-series.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-guru.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
-#include <goffice/graph/gog-renderer-pixbuf.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+#include <goffice/graph/gog-renderer-cairo.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-data-set.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-object-xml.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/data/go-data-simple.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/graph/gog-renderer-gnome-print.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <goffice/utils/go-format.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+#include <goffice/utils/go-locale.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <gsf/gsf-impl-utils.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <gsf/gsf-output-memory.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
#include <gsf/gsf-libxml.h>
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
@@ -190,8 +191,8 @@
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
GOData *data = NULL;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
double val;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
char sep[2], col_sep[2], *end;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
- sep[0] = format_get_arg_sep ();
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
- col_sep[0] = format_get_col_sep ();
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+ sep[0] = go_locale_get_arg_sep ();
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+ col_sep[0] = go_locale_get_col_sep ();
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
sep[1] = col_sep[1]= 0;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
char const* str = gtk_entry_get_text (gee);
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
if (str == NULL)
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
@@ -1119,7 +1120,7 @@
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
{
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
m_Graph = NULL;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
m_Image = NULL;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
- m_Renderer = GOG_RENDERER (g_object_new (GOG_RENDERER_PIXBUF_TYPE, NULL));
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+ m_Renderer = GOG_RENDERER (g_object_new (GOG_RENDERER_CAIRO_TYPE, NULL));
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
pix_width = pix_height = 0;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
width = height = 0;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
m_Guru = NULL;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
@@ -1189,10 +1190,10 @@
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
GdkPixbuf *pixbuf;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
pix_width = _width;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
pix_height = _height;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
- gog_renderer_pixbuf_update (GOG_RENDERER_PIXBUF (m_Renderer), _width, _height, 1.0);
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+ gog_renderer_cairo_update (GOG_RENDERER_CAIRO (m_Renderer), _width, _height, 1.0);
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
if (m_Image)
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
delete m_Image;
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
- pixbuf = gog_renderer_pixbuf_get (GOG_RENDERER_PIXBUF (m_Renderer));
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
+ pixbuf = gog_renderer_cairo_get_pixbuf (GOG_RENDERER_CAIRO (m_Renderer));
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
m_Image = new GR_UnixImage(NULL, pixbuf);
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
g_object_ref(pixbuf);
|
|
![](https://seccdn.libravatar.org/avatar/59c516847341a5432f49865e333294fe3837718b990bddff04cb982b7bbf0e60?s=16&d=retro) |
405572b |
m_Image->scaleImageTo(m_pGOMan->getGraphics(),rec);
|