[gnumeric] fix script import from ODF
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] fix script import from ODF
- Date: Wed, 12 Mar 2014 08:17:31 +0000 (UTC)
commit 8634b10fff13ef7f8da1280827aff7e779a33cdf
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Wed Mar 12 02:16:47 2014 -0600
fix script import from ODF
2014-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (oo_style_prop_cell): read script info
plugins/openoffice/ChangeLog | 4 ++++
plugins/openoffice/openoffice-read.c | 8 ++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 34e721e..7d826cf 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,9 @@
2014-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-read.c (oo_style_prop_cell): read script info
+
+2014-03-12 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (odf_style_set_align_h): repeat_content and
gnm_halign take precedence
* openoffice-write.c (odf_write_style_cell_properties): write LO's
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index 8530bdf..038e6bf 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -6352,6 +6352,14 @@ oo_style_prop_cell (GsfXMLIn *xin, xmlChar const **attrs)
text_line_through_styles, &strike_through_style));
else if (oo_attr_enum (xin, attrs, OO_NS_STYLE, "text-line-through-type",
text_line_through_types, &strike_through_type));
+ else if (gsf_xml_in_namecmp (xin, CXML2C (attrs[0]),
+ OO_NS_STYLE, "text-position")) {
+ if (g_str_has_prefix (attrs[1],"super"))
+ gnm_style_set_font_script (style, GO_FONT_SCRIPT_SUPER);
+ else if (g_str_has_prefix (attrs[1], "sub"))
+ gnm_style_set_font_script (style, GO_FONT_SCRIPT_SUB);
+ }
+
gnm_style_set_font_strike (style, strike_through_style > 0 ||
(strike_through_type > 0 && strike_through_style == -1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]