[gnumeric] also write "xlink:type" attribute in ODF 1.2 when writing "xlink:href"
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] also write "xlink:type" attribute in ODF 1.2 when writing "xlink:href"
- Date: Mon, 13 Jun 2011 18:22:29 +0000 (UTC)
commit 208d288e7d787092bece1b75fff74adfe45ab409
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Mon Jun 13 12:21:13 2011 -0600
also write "xlink:type" attribute in ODF 1.2 when writing "xlink:href"
2011-06-13 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_write_plot): also write "xlink:type"
attribute in ODF 1.2
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-write.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index ab0cad3..6f24a1c 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2011-06-13 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-write.c (odf_write_plot): also write "xlink:type"
+ attribute in ODF 1.2
+
+2011-06-13 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (od_series_regression): fix spelling of
gnm:exponential-smoothed
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 08d0b67..32224e7 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -6271,8 +6271,10 @@ odf_write_plot (GnmOOExport *state, SheetObject *so, GogObject const *chart, Gog
odf_add_pt (state->xml, SVG "width", res_pts[2] - res_pts[0] - 2 * this_plot->pad);
odf_add_pt (state->xml, SVG "height", res_pts[3] - res_pts[1] - 2 * this_plot->pad);
- if (get_gsf_odf_version () > 101)
+ if (get_gsf_odf_version () > 101) {
+ gsf_xml_out_add_cstr (state->xml, XLINK "type", "simple");
gsf_xml_out_add_cstr (state->xml, XLINK "href", "..");
+ }
gsf_xml_out_add_cstr (state->xml, CHART "class", this_plot->odf_plot_type);
gsf_xml_out_add_cstr (state->xml, CHART "style-name", "plotstyle");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]