[gnumeric] ODF: write gnm settings to indicate when to read OOo settings
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ODF: write gnm settings to indicate when to read OOo settings
- Date: Mon, 6 Sep 2010 01:47:18 +0000 (UTC)
commit 260ce8fc02bd613c7ee2e85286ac19ac3d813e69
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Sun Sep 5 19:44:37 2010 -0600
ODF: write gnm settings to indicate when to read OOo settings
2010-09-05 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c (odf_write_gnm_settings): new
(odf_write_settings): call odf_write_gnm_settings
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-write.c | 14 ++++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 64db442..330dc26 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2010-09-05 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-write.c (odf_write_gnm_settings): new
+ (odf_write_settings): call odf_write_gnm_settings
+
+2010-09-05 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (unset_gvalue): new
(destroy_gvalue): new
(odf_config_item_end): new
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 4d92cfe..7610b08 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -3673,6 +3673,19 @@ odf_write_graph_styles (GnmOOExport *state, GsfOutput *child)
/*****************************************************************************/
static void
+odf_write_gnm_settings (GnmOOExport *state)
+{
+ gsf_xml_out_start_element (state->xml, CONFIG "config-item-set");
+ gsf_xml_out_add_cstr_unchecked (state->xml, CONFIG "name", GNMSTYLE "settings");
+ gsf_xml_out_start_element (state->xml, CONFIG "config-item");
+ gsf_xml_out_add_cstr_unchecked (state->xml, CONFIG "name", GNMSTYLE "has_foreign");
+ gsf_xml_out_add_cstr_unchecked (state->xml, CONFIG "type", "boolean");
+ gsf_xml_out_add_cstr_unchecked (state->xml, NULL, state->with_extension ? "true" : "false");
+ gsf_xml_out_end_element (state->xml); /* </config:config-item> */
+ gsf_xml_out_end_element (state->xml); /* </config:config-item-set> */
+}
+
+static void
odf_write_ooo_settings (GnmOOExport *state)
{
GSList *l;
@@ -3732,6 +3745,7 @@ odf_write_settings (GnmOOExport *state, GsfOutput *child)
gsf_xml_out_start_element (state->xml, OFFICE "settings");
+ odf_write_gnm_settings (state);
odf_write_ooo_settings (state);
gsf_xml_out_end_element (state->xml); /* </office:settings> */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]