[gnumeric] .gnumeric: update schema.



commit 687ccf8bced36c4b79b4d5a591ee5ea0cf891989
Author: Morten Welinder <terra gnome org>
Date:   Mon Mar 30 11:51:37 2015 -0400

    .gnumeric: update schema.

 gnumeric.xsd       |    9 +++++++++
 src/xml-sax-read.c |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gnumeric.xsd b/gnumeric.xsd
index 4b54fc9..18be247 100644
--- a/gnumeric.xsd
+++ b/gnumeric.xsd
@@ -787,6 +787,7 @@
     </xs:complexType>
     
     <xs:attributeGroup name="ObjectAnchor">
+        <xs:attribute name="AnchorMode"       type="gnm:anchor_mode" use="optional"/>
        <xs:attribute name="ObjectBound"      type="xs:string"  use="required"/>
        <xs:attribute name="ObjectOffset"     type="gnm:offsets"        use="required"/>
        <xs:attribute name="ObjectAnchorType" type="gnm:anchor_type"    use="optional"/>
@@ -1079,6 +1080,14 @@
         </xs:restriction>
     </xs:simpleType>
 
+    <xs:simpleType name="anchor_mode">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="absolute"/>
+            <xs:enumeration value="one cell"/>
+            <xs:enumeration value="two cells"/>
+        </xs:restriction>
+    </xs:simpleType>
+
     <xs:simpleType name="direction">
         <xs:restriction base="xs:string">
             <xs:enumeration value="-1"/>       <!-- unknown    -->
diff --git a/src/xml-sax-read.c b/src/xml-sax-read.c
index 8f334b7..bc79d94 100644
--- a/src/xml-sax-read.c
+++ b/src/xml-sax-read.c
@@ -2401,6 +2401,8 @@ xml_sax_read_obj (GsfXMLIn *xin, gboolean needs_cleanup,
                else if (!strcmp (attrs[i], "AnchorMode")) {
                        if (!strcmp (attrs[i+1], "one cell"))
                                anchor_mode = GNM_SO_ANCHOR_ONE_CELL;
+                       else if (!strcmp (attrs[i+1], "two cells"))
+                               anchor_mode = GNM_SO_ANCHOR_TWO_CELLS;
                        else if (!strcmp (attrs[i+1], "absolute") )
                                anchor_mode = GNM_SO_ANCHOR_ABSOLUTE;
                        else {


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