Commit 687ccf8b authored by Morten Welinder's avatar Morten Welinder

.gnumeric: update schema.

parent 422f5e4f
......@@ -787,6 +787,7 @@
<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:simpleType name="anchor_mode">
<xs:restriction base="xs:string">
<xs:enumeration value="absolute"/>
<xs:enumeration value="one cell"/>
<xs:enumeration value="two cells"/>
<xs:simpleType name="direction">
<xs:restriction base="xs:string">
<xs:enumeration value="-1"/> <!-- unknown -->
......@@ -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") )
else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment