[gnumeric] Write series labels to ODF files.
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] Write series labels to ODF files.
- Date: Thu, 24 Dec 2009 04:33:23 +0000 (UTC)
commit 2e7896761c9fb85e5daa9c629a10a75ca463f26e
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Wed Dec 23 21:32:54 2009 -0700
Write series labels to ODF files.
2009-12-23 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_write_standard_series): also write
series label
NEWS | 9 +++++----
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-write.c | 10 ++++++++++
3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index aabdf0d..ae29726 100644
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,12 @@
Gnumeric 1.9.18
Andreas:
- * Add paste special flip horizontally and vertically [#393367]
+ * Add paste special flip horizontally and vertically. [#393367]
* Add EIGEN function to calculate eigenvalues and eigenvectors
- of real symmetric matrices
- * Add principal components analysis
- * Load graph series labels and categories from ODF files [#379220]
+ of real symmetric matrices.
+ * Add principal components analysis.
+ * Load graph series labels and categories from ODF files. [#379220]
+ * Write series labels to ODF files.
Jean
* Fix import export of line type in scatter plots. [#605043]
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 435bf01..08dd446 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2009-12-23 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-write.c (odf_write_standard_series): also write
+ series label
+
+2009-12-23 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (oo_plot_assign_dim): also set default labels
(oo_plot_area): store info on labels that are part of
cell-range-address
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 910f964..7ce1e0f 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3238,6 +3238,16 @@ odf_write_standard_series (GnmOOExport *state, GSList const *series)
str = g_strdup_printf ("series%i", i);
gsf_xml_out_add_cstr (state->xml, CHART "style-name", str);
g_free (str);
+ dat = gog_series_get_name (GOG_SERIES (series->data));
+ if (NULL != dat) {
+ texpr = gnm_go_data_get_expr (dat);
+ if (NULL != texpr) {
+ str = gnm_expr_top_as_string (texpr, &pp, state->conv);
+ gsf_xml_out_add_cstr (state->xml, CHART "label-cell-address",
+ odf_strip_brackets (str));
+ g_free (str);
+ }
+ }
if (NULL != cat) {
texpr = gnm_go_data_get_expr (cat);
if (NULL != texpr) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]