[gnumeric] read forced-exponent-sign foreign element in ODF import



commit ed32d56cc4cbfc4d001835e53822a0138f332aed
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sat Nov 10 00:27:09 2012 -0700

    read forced-exponent-sign foreign element in ODF import
    
    2012-11-10  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* openoffice-read.c (odf_scientific): read forced-exponent-sign foreign
    	element

 plugins/openoffice/ChangeLog         |    5 +++++
 plugins/openoffice/openoffice-read.c |    5 ++++-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index a7dddee..3b36784 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-10  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* openoffice-read.c (odf_scientific): read forced-exponent-sign foreign
+	element
+
 2012-11-07  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* openoffice-write.c (odf_write_cell): use
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 8f83749..c67c872 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -5034,13 +5034,16 @@ odf_scientific (GsfXMLIn *xin, xmlChar const **attrs)
 		else if (oo_attr_int_range (xin, attrs, OO_NS_NUMBER, "min-exponent-digits",
 					      &details->exponent_digits, 0, 30))
 			;
+		else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "forced-exponent-sign",
+				       &(details->exponent_sign_forced)))
+			;
 		else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "engineering",
 				       &engineering))
 			;
 		else if (oo_attr_bool (xin, attrs, OO_GNUM_NS_EXT, "literal-E",
 				       &use_literal_E));
 	if (engineering)
-		details->exponent_step = 3;
+		details->exponent_step = 3;	
 	details->use_markup = !use_literal_E;
 	go_format_generate_str (state->cur_format.accum, details);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]