[gnumeric] connect xlsx_axis_crosses_at stub
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] connect xlsx_axis_crosses_at stub
- Date: Wed, 23 Feb 2011 03:19:25 +0000 (UTC)
commit 0ce5ded298a0df062027569239c74715269de213
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Feb 22 20:24:13 2011 -0700
connect xlsx_axis_crosses_at stub
2011-02-22 Andreas J. Guelzow <aguelzow pyrshep ca>
* xlsx-write.c (xlsx_axis_crosses_at): new
(xlsx_chart_dtd): connect xlsx_axis_crosses_at
plugins/excel/ChangeLog | 5 +++++
plugins/excel/xlsx-read.c | 21 ++++++++++++++++++++-
2 files changed, 25 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 411ce3c..edda322 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-22 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * xlsx-write.c (xlsx_axis_crosses_at): new
+ (xlsx_chart_dtd): connect xlsx_axis_crosses_at
+
2011-02-21 Andreas J. Guelzow <aguelzow pyrshep ca>
* xlsx-write.c (xlsx_write_comments): skip NULL author
diff --git a/plugins/excel/xlsx-read.c b/plugins/excel/xlsx-read.c
index 3da96b3..46747b8 100644
--- a/plugins/excel/xlsx-read.c
+++ b/plugins/excel/xlsx-read.c
@@ -1109,6 +1109,25 @@ xlsx_axis_start (GsfXMLIn *xin, xmlChar const **attrs)
state->axis.info = NULL;
xlsx_chart_push_obj (state, GOG_OBJECT (state->axis.obj));
}
+
+static void
+xlsx_axis_crosses_at (GsfXMLIn *xin, xmlChar const **attrs)
+{
+ /* This element specifies where on the axis the perpendicular axis crosses.
+ The units are dependent on the type of axis.
+ When specified as a child element of valAx, the value is a decimal number on the value axis. When specified as a
+ child element of dateAx, the date is defined as a integer number of days relative to the base date of the current
+ date base. When specified as a child element of catAx, the value is an integer category number, starting with 1
+ as the first category.
+ */
+/* XLSXReadState *state = (XLSXReadState *)xin->user_state; */
+ gnm_float res;
+
+ if (simple_float (xin, attrs, &res)) {
+
+ }
+}
+
static void
xlsx_axis_id (GsfXMLIn *xin, xmlChar const **attrs)
{
@@ -1750,7 +1769,7 @@ GSF_XML_IN_NODE_FULL (START, CHART_SPACE, XL_NS_CHART, "chartSpace", GSF_XML_NO_
GSF_XML_IN_NODE (PLOTAREA, SHAPE_PR, XL_NS_CHART, "spPr", GSF_XML_NO_CONTENT, NULL, NULL), /* 2nd Def */
GSF_XML_IN_NODE_FULL (PLOTAREA, CAT_AXIS, XL_NS_CHART, "catAx", GSF_XML_NO_CONTENT, FALSE, TRUE,
&xlsx_axis_start, &xlsx_axis_end, XLSX_AXIS_CAT),
- GSF_XML_IN_NODE (CAT_AXIS, AXIS_CROSSES_AT, XL_NS_CHART, "crossesAt", GSF_XML_NO_CONTENT, NULL, NULL),
+ GSF_XML_IN_NODE (CAT_AXIS, AXIS_CROSSES_AT, XL_NS_CHART, "crossesAt", GSF_XML_NO_CONTENT, &xlsx_axis_crosses_at, NULL),
GSF_XML_IN_NODE (CAT_AXIS, AXIS_AXID, XL_NS_CHART, "axId", GSF_XML_NO_CONTENT, &xlsx_axis_id, NULL),
GSF_XML_IN_NODE (CAT_AXIS, AXIS_DELETE, XL_NS_CHART, "delete", GSF_XML_NO_CONTENT, &xlsx_axis_delete, NULL),
GSF_XML_IN_NODE (CAT_AXIS, SHAPE_PR, XL_NS_CHART, "spPr", GSF_XML_NO_CONTENT, NULL, NULL), /* 2nd Def */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]