[gnumeric] Export style information attached to grids to ODF. Part of [#671461]
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Export style information attached to grids to ODF. Part of [#671461]
- Date: Mon, 12 Mar 2012 15:24:13 +0000 (UTC)
commit 1687e7bbb8a3025a19ea58f0117874c29182fc93
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Mon Mar 12 09:23:17 2012 -0600
Export style information attached to grids to ODF. Part of [#671461]
2012-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_write_one_axis_grid): write style name
NEWS | 3 ++-
plugins/openoffice/ChangeLog | 6 +++++-
plugins/openoffice/openoffice-write.c | 5 +++++
3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/NEWS b/NEWS
index ffb03bd..93e37c9 100644
--- a/NEWS
+++ b/NEWS
@@ -7,7 +7,8 @@ Andreas:
interpolation. [#671508]
* Handle unusual styles created in xls import. [#671745]
* Do not show an icon for the range entry in the search dialog. [#671494]
- * Import style information attached to grids from ODF. part of [#671461]
+ * Import/Export style information attached to grids from/to ODF.
+ Part of [#671461]
Jean:
* Fixed crash with sheet object. [#671617]
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index d08830a..7b2403f 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,6 +1,10 @@
2012-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
- * openoffice-write.c (oo_chart_grid): use style name
+ * openoffice-write.c (odf_write_one_axis_grid): write style name
+
+2012-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * openoffice-read.c (oo_chart_grid): use style name
2012-03-10 Andreas J. Guelzow <aguelzow pyrshep ca>
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 71865ae..6473160 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -6412,9 +6412,14 @@ odf_write_one_axis_grid (GnmOOExport *state, GogObject const *axis,
grid = gog_object_get_child_by_name (axis, role);
if (grid) {
+ char *style = odf_get_gog_style_name_from_obj (GOG_OBJECT (grid));
+
gsf_xml_out_start_element (state->xml, CHART "grid");
+ gsf_xml_out_add_cstr (state->xml, CHART "style-name", style);
gsf_xml_out_add_cstr (state->xml, CHART "class", class);
gsf_xml_out_end_element (state->xml); /* </chart:grid> */
+
+ g_free (style);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]