[gnumeric] schema: handle validation
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] schema: handle validation
- Date: Mon, 10 Mar 2014 20:39:11 +0000 (UTC)
commit 8ca13a92b0319508aeeb17f422bb4baf78ad10bc
Author: Morten Welinder <terra gnome org>
Date: Mon Mar 10 16:38:55 2014 -0400
schema: handle validation
gnumeric.xsd | 43 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 40 insertions(+), 3 deletions(-)
---
diff --git a/gnumeric.xsd b/gnumeric.xsd
index 2164ca9..92669b9 100644
--- a/gnumeric.xsd
+++ b/gnumeric.xsd
@@ -535,9 +535,9 @@
<xs:element name="Expression0" type="xs:string" minOccurs="0"
maxOccurs="1"/>
<xs:element name="Expression1" type="xs:string" minOccurs="0"
maxOccurs="1"/>
</xs:sequence>
- <xs:attribute name="Style" type="xs:integer" use="required"/>
- <xs:attribute name="Type" type="xs:integer" use="required"/>
- <xs:attribute name="Operator" type="xs:integer" use="optional"/>
+ <xs:attribute name="Style" type="gnm:ValidationStyle" use="required"/>
+ <xs:attribute name="Type" type="gnm:ValidationType" use="required"/>
+ <xs:attribute name="Operator" type="gnm:ValidationOperator" use="optional"/>
<xs:attribute name="AllowBlank" type="xs:boolean" use="optional"/>
<xs:attribute name="UseDropdown" type="xs:boolean" use="optional"/>
<xs:attribute name="Title" type="xs:string" use="optional"/>
@@ -614,6 +614,43 @@
</xs:restriction>
</xs:simpleType>
+ <xs:simpleType name="ValidationStyle">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="GNM_VALIDATION_STYLE_NONE"/>
+ <xs:enumeration value="GNM_VALIDATION_STYLE_STOP"/>
+ <xs:enumeration value="GNM_VALIDATION_STYLE_WARNING"/>
+ <xs:enumeration value="GNM_VALIDATION_STYLE_INFO"/>
+ <xs:enumeration value="GNM_VALIDATION_STYLE_PARSE_ERROR"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="ValidationType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="GNM_VALIDATION_TYPE_ANY"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_AS_INT"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_AS_NUMBER"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_IN_LIST"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_AS_DATE"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_AS_TIME"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_TEXT_LENGTH"/>
+ <xs:enumeration value="GNM_VALIDATION_TYPE_CUSTOM"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="ValidationOperator">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="GNM_VALIDATION_OP_NONE"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_BETWEEN"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_NOT_BETWEEN"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_EQUAL"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_NOT_EQUAL"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_GT"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_LT"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_GTE"/>
+ <xs:enumeration value="GNM_VALIDATION_OP_LTE"/>
+ </xs:restriction>
+ </xs:simpleType>
+
<xs:simpleType name="underline">
<xs:restriction base="xs:integer">
<!-- 0 = NONE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]