79a3571fa961d7e8c51e4c4e796e119922c29265
[dana/openbox.git] / data / rc.xsd
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2
3 <!-- XML Schema for the Openbox window manager configuration file -->
4
5 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN"
6                                 "http://www.w3.org/2001/XMLSchema.dtd" [
7 <!ATTLIST schema xmlns:ob CDATA #IMPLIED>
8 <!ENTITY % p "xsd:">
9 <!ENTITY % s ":xsd">
10 ]>
11
12 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
13     targetNamespace="http://openbox.org/4.0/rc"
14     xmlns:ob="http://openbox.org/4.0/rc"
15     elementFormDefault="qualified"
16     attributeFormDefault="unqualified">
17     <!--
18          root node
19       -->
20     <xsd:element name="openbox_config">
21         <xsd:annotation>
22             <xsd:documentation>all these elements are expected in a openbox config file</xsd:documentation>
23         </xsd:annotation>
24         <xsd:complexType>
25             <xsd:all>
26                 <xsd:element name="resistance" type="ob:resistance"/>
27                 <xsd:element name="focus" type="ob:focus"/>
28                 <xsd:element name="placement" type="ob:placement"/>
29                 <xsd:element name="theme" type="ob:theme"/>
30                 <xsd:element name="desktops" type="ob:desktops"/>
31                 <xsd:element name="resize" type="ob:resize"/>
32                 <xsd:element minOccurs="0" name="margins" type="ob:margins"/>
33                 <xsd:element name="dock" type="ob:dock"/>
34                 <xsd:element name="keyboard" type="ob:keyboard"/>
35                 <xsd:element name="mouse" type="ob:mouse"/>
36                 <xsd:element name="menu" type="ob:menu"/>
37                 <xsd:element name="applications" type="ob:applications"/>
38             </xsd:all>
39         </xsd:complexType>
40     </xsd:element>
41     <!--
42          complex types
43       -->
44     <xsd:complexType name="resistance">
45         <xsd:annotation>
46             <xsd:documentation>defines behaviour of windows when close to each other or the screen edge</xsd:documentation>
47         </xsd:annotation>
48         <xsd:all>
49             <xsd:element minOccurs="0" name="strength" type="xsd:integer"/>
50             <xsd:element minOccurs="0" name="screen_edge_strength" type="xsd:integer"/>
51         </xsd:all>
52     </xsd:complexType>
53     <xsd:complexType name="focus">
54         <xsd:annotation>
55             <xsd:documentation>defines aspects of window focus</xsd:documentation>
56         </xsd:annotation>
57         <xsd:all>
58             <xsd:element minOccurs="0" name="focusNew" type="ob:bool"/>
59             <xsd:element minOccurs="0" name="focusLast" type="ob:bool"/>
60             <xsd:element minOccurs="0" name="followMouse" type="ob:bool"/>
61             <xsd:element minOccurs="0" name="underMouse" type="ob:bool"/>
62             <xsd:element minOccurs="0" name="focusDelay" type="xsd:integer"/>
63             <xsd:element minOccurs="0" name="raiseOnFocus" type="ob:bool"/>
64             <xsd:element minOccurs="0" name="unfocusOnLeave" type="ob:bool"/>
65         </xsd:all>
66     </xsd:complexType>
67     <xsd:complexType name="placement">
68         <xsd:annotation>
69             <xsd:documentation>defines how new windows are placed</xsd:documentation>
70         </xsd:annotation>
71         <xsd:sequence>
72             <xsd:element minOccurs="0" name="policy" type="ob:placementpolicy"/>
73             <xsd:element minOccurs="0" name="monitor" type="ob:placementmonitor"/>
74             <xsd:element minOccurs="0" name="primaryMonitor" type="ob:primarymonitor"/>
75         </xsd:sequence>
76     </xsd:complexType>
77     <xsd:complexType name="margins">
78         <xsd:annotation>
79             <xsd:documentation>defines desktop margins</xsd:documentation>
80         </xsd:annotation>
81         <xsd:all>
82             <xsd:element minOccurs="0" name="top" type="xsd:integer"/>
83             <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
84             <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
85             <xsd:element minOccurs="0" name="bottom" type="xsd:integer"/>
86         </xsd:all>
87     </xsd:complexType>              
88     <xsd:complexType name="theme">
89         <xsd:sequence>
90             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
91             <xsd:element minOccurs="0" name="titleLayout" type="xsd:string"/>
92             <xsd:element minOccurs="0" name="keepBorder" type="ob:bool"/>
93             <xsd:element minOccurs="0" name="animateIconify" type="ob:bool"/>
94             <xsd:element minOccurs="0" maxOccurs="unbounded" name="font" type="ob:font"/>
95         </xsd:sequence>
96     </xsd:complexType>
97     <xsd:complexType name="font">
98         <xsd:all>
99             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
100             <xsd:element minOccurs="0" name="size" type="xsd:integer"/>
101             <xsd:element minOccurs="0" name="weight" type="ob:fontweight"/>
102             <xsd:element minOccurs="0" name="slant" type="ob:fontslant"/>
103         </xsd:all>
104         <xsd:attribute name="place" type="ob:fontplace" use="required"/>
105     </xsd:complexType>
106     <xsd:complexType name="desktops">
107         <xsd:annotation>
108             <xsd:documentation>defines the number and names of desktops</xsd:documentation>
109         </xsd:annotation>
110         <xsd:all>
111             <xsd:element minOccurs="0" name="number" type="xsd:integer"/>
112             <xsd:element minOccurs="0" name="firstdesk" type="xsd:integer"/>
113             <xsd:element minOccurs="0" name="names">
114                 <xsd:complexType>
115                     <xsd:sequence>
116                         <xsd:element minOccurs="0" maxOccurs="unbounded" name="name" type="xsd:string"/>
117                     </xsd:sequence>
118                 </xsd:complexType>
119             </xsd:element>
120             <xsd:element minOccurs="0" name="popupTime" type="xsd:integer"/>
121         </xsd:all>
122     </xsd:complexType>
123     <xsd:complexType name="resize">
124         <xsd:all>
125             <xsd:element minOccurs="0" name="drawContents" type="ob:bool"/>
126             <xsd:element minOccurs="0" name="popupShow" type="ob:popupshow"/>
127             <xsd:element minOccurs="0" name="popupPosition" type="ob:popupposition"/>
128             <xsd:element minOccurs="0" name="popupFixedPosition" type="ob:popupfixedposition"/>
129         </xsd:all>
130     </xsd:complexType>
131     <xsd:complexType name="popupfixedposition">
132         <xsd:all>
133             <xsd:element minOccurs="0" name="x" type="ob:center_or_int"/>
134             <xsd:element minOccurs="0" name="y" type="ob:center_or_int"/>
135         </xsd:all>
136     </xsd:complexType>
137     <xsd:complexType name="dock">
138         <xsd:all>
139             <xsd:element minOccurs="0" name="position" type="ob:dock_position"/>
140             <xsd:element minOccurs="0" name="floatingX" type="xsd:integer"/>
141             <xsd:element minOccurs="0" name="floatingY" type="xsd:integer"/>
142             <xsd:element minOccurs="0" name="noStrut" type="ob:bool"/>
143             <xsd:element minOccurs="0" name="stacking" type="ob:layer"/>
144             <xsd:element minOccurs="0" name="direction" type="ob:direction"/>
145             <xsd:element minOccurs="0" name="autoHide" type="ob:bool"/>
146             <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
147             <xsd:element minOccurs="0" name="showDelay" type="xsd:integer"/>
148             <xsd:element minOccurs="0" name="moveButton" type="ob:button"/>
149         </xsd:all>
150     </xsd:complexType>
151     <xsd:complexType name="action">
152         <xsd:all>
153             <xsd:element minOccurs="0" name="execute" type="xsd:string"/>
154             <xsd:element minOccurs="0" name="startupnotify" type="ob:notify"/>
155             <xsd:element minOccurs="0" name="command" type="xsd:string"/>
156             <xsd:element minOccurs="0" name="allDesktops" type="ob:bool"/>
157             <xsd:element minOccurs="0" name="menu" type="xsd:string"/>
158             <xsd:element minOccurs="0" name="delta" type="xsd:integer"/>
159             <xsd:element minOccurs="0" name="x" type="xsd:integer"/>
160             <xsd:element minOccurs="0" name="y" type="xsd:integer"/>
161             <xsd:element minOccurs="0" name="left" type="xsd:integer"/>
162             <xsd:element minOccurs="0" name="right" type="xsd:integer"/>
163             <xsd:element minOccurs="0" name="up" type="xsd:integer"/>
164             <xsd:element minOccurs="0" name="down" type="xsd:integer"/>
165             <xsd:element minOccurs="0" name="desktop">
166                 <xsd:simpleType>
167                     <xsd:union memberTypes="xsd:integer ob:bool"/>
168                 </xsd:simpleType>
169             </xsd:element>
170             <xsd:element minOccurs="0" name="edge" type="xsd:string"/>
171             <xsd:element minOccurs="0" name="wrap" type="ob:bool"/>
172             <xsd:element minOccurs="0" name="follow" type="ob:bool"/>
173             <xsd:element minOccurs="0" name="dialog" type="ob:dialogtype"/>
174             <xsd:element minOccurs="0" name="panels" type="ob:bool"/>
175             <xsd:element minOccurs="0" name="here" type="ob:bool"/>
176             <xsd:element minOccurs="0" name="linear" type="ob:bool"/>
177             <xsd:element minOccurs="0" name="group" type="ob:bool"/>
178         </xsd:all>
179         <xsd:attribute name="name" type="ob:actionname" use="required"/>
180     </xsd:complexType>
181     <xsd:complexType name="keybind">
182         <xsd:choice>
183             <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
184             <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
185         </xsd:choice>
186         <xsd:attribute name="chroot" type="ob:bool"/>
187         <xsd:attribute name="key" type="ob:keyname" use="required"/>
188     </xsd:complexType>
189     <xsd:complexType name="keyboard">
190         <xsd:sequence>
191             <xsd:element minOccurs="0" name="chainQuitKey" type="ob:keyname"/>
192             <xsd:element maxOccurs="unbounded" name="keybind" type="ob:keybind"/>
193         </xsd:sequence>
194     </xsd:complexType>
195     <xsd:complexType name="mousebind">
196         <xsd:sequence>
197             <xsd:element maxOccurs="unbounded" name="action" type="ob:action"/>
198         </xsd:sequence>
199         <xsd:attribute name="action" type="ob:mouseaction" use="required"/>
200         <xsd:attribute name="button" type="ob:button" use="required"/>
201     </xsd:complexType>
202     <xsd:complexType name="context">
203         <xsd:sequence>
204             <xsd:element maxOccurs="unbounded" name="mousebind" type="ob:mousebind"/>
205         </xsd:sequence>
206         <xsd:attribute name="name" type="ob:contextname" use="required"/>
207     </xsd:complexType>
208     <xsd:complexType name="mouse">
209         <xsd:sequence>
210             <xsd:element minOccurs="0" name="dragThreshold" type="xsd:integer"/>
211             <xsd:element minOccurs="0" name="doubleClickTime" type="xsd:integer"/>
212             <xsd:element minOccurs="0" name="screenEdgeWarpTime" type="xsd:integer"/>
213             <xsd:element minOccurs="0" name="screenEdgeWarpMouse" type="ob:bool"/>
214             <xsd:element maxOccurs="unbounded" name="context" type="ob:context"/>
215         </xsd:sequence>
216     </xsd:complexType>
217     <xsd:complexType name="menu">
218         <xsd:sequence>
219             <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
220             <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
221             <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
222             <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
223             <xsd:element minOccurs="0" name="showIcons" type="ob:bool"/>
224             <xsd:element minOccurs="0" name="manageDesktops" type="ob:bool"/>
225         </xsd:sequence>
226     </xsd:complexType>
227     <xsd:complexType name="window_position">
228         <xsd:all>
229             <xsd:element name="x" type="ob:center_or_int"/>
230             <xsd:element name="y" type="ob:center_or_int"/>
231             <xsd:element minOccurs="0" name="monitor" type="ob:mouse_or_int"/>    
232             <xsd:element minOccurs="0" name="head" type="xsd:string"/>
233         </xsd:all>
234         <xsd:attribute name="force" type="ob:bool"/>
235     </xsd:complexType>
236     <xsd:complexType name="application">
237         <xsd:all>
238             <xsd:element minOccurs="0" name="decor" type="ob:bool"/>
239             <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
240             <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
241             <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
242             <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
243             <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
244             <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
245             <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
246             <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
247             <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
248             <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
249         </xsd:all>
250         <!-- at least one of these must be present -->
251         <xsd:attribute name="role" type="xsd:string"/>
252         <xsd:attribute name="title" type="xsd:string"/>
253         <xsd:attribute name="type" type="ob:clienttype"/>
254         <xsd:attribute name="name" type="xsd:string"/>
255         <xsd:attribute name="class" type="xsd:string"/>
256     </xsd:complexType>
257     <xsd:complexType name="applications">
258         <xsd:sequence>
259             <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
260         </xsd:sequence>
261     </xsd:complexType>
262     <xsd:complexType name="notify">
263         <xsd:all>
264             <xsd:element minOccurs="0" name="enabled" type="ob:bool"/>
265             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
266             <xsd:element minOccurs="0" name="icon" type="xsd:string"/>
267         </xsd:all>
268     </xsd:complexType>
269     <!--
270          simple types / restrictions
271       -->
272     <xsd:simpleType name="actionname">
273         <xsd:restriction base="xsd:string">
274             <xsd:pattern value="[Ii][Ff]"/>
275             <xsd:pattern value="[Aa][Cc][Tt][Ii][Vv][Aa][Tt][Ee]"/>
276             <xsd:pattern value="[Bb][Rr][Ee][Aa][Kk][Cc][Hh][Rr][Oo][Oo][Tt]"/>
277             <xsd:pattern value="[Cc][Ll][Oo][Ss][Ee]"/>
278             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
279             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
280             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Aa][Ss][Tt]"/>
281             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
282             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
283             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
284             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
285             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
286             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ee][Aa][Ss][Tt]"/>
287             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh]"/>
288             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh][Ee][Aa][Ss][Tt]"/>
289             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh][Ww][Ee][Ss][Tt]"/>
290             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh]"/>
291             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh][Ee][Aa][Ss][Tt]"/>
292             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh][Ww][Ee][Ss][Tt]"/>
293             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ww][Ee][Ss][Tt]"/>
294             <xsd:pattern value="[Ee][Xx][Ee][Cc][Uu][Tt][Ee]"/>
295             <xsd:pattern value="[Ee][Xx][Ii][Tt]"/>
296             <xsd:pattern value="[Ss][Ee][Ss][Ss][Ii][Oo][Nn][Ll][Oo][Gg][Oo][Uu][Tt]"/>
297             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss]"/>
298             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm]"/>
299             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
300             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
301             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
302             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
303             <xsd:pattern value="[Ii][Cc][Oo][Nn][Ii][Ff][Yy]"/>
304             <xsd:pattern value="[Kk][Ii][Ll][Ll]"/>
305             <xsd:pattern value="[Ll][Oo][Ww][Ee][Rr]"/>
306             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
307             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
308             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
309             <xsd:pattern value="[Mm][Oo][Vv][Ee]"/>
310             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
311             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
312             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
313             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Cc][Ee][Nn][Tt][Ee][Rr]"/>
314             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
315             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
316             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
317             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
318             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
319             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
320             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
321             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
322             <xsd:pattern value="[Nn][Ee][Xx][Tt][Ww][Ii][Nn][Dd][Oo][Ww]"/>
323             <xsd:pattern value="[Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss][Ww][Ii][Nn][Dd][Oo][Ww]"/>
324             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee]"/>
325             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee][Ll][Oo][Ww][Ee][Rr]"/>
326             <xsd:pattern value="[Rr][Ee][Cc][Oo][Nn][Ff][Ii][Gg][Uu][Rr][Ee]"/>
327             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee]"/>
328             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
329             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
330             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
331             <xsd:pattern value="[Rr][Ee][Ss][Tt][Aa][Rr][Tt]"/>
332             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm][Ll][Aa][Yy][Ee][Rr]"/>
333             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
334             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
335             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
336             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
337             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
338             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
339             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
340             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Nn][Oo][Rr][Mm][Aa][Ll][Ll][Aa][Yy][Ee][Rr]"/>
341             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Tt][Oo][Pp][Ll][Aa][Yy][Ee][Rr]"/>
342             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee]"/>
343             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee][Ll][Oo][Ww][Ee][Rr]"/>
344             <xsd:pattern value="[Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
345             <xsd:pattern value="[Ss][Hh][Oo][Ww][Mm][Ee][Nn][Uu]"/>
346             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Bb][Oo][Tt][Tt][Oo][Mm]"/>
347             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Tt][Oo][Pp]"/>
348             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Ee][Cc][Oo][Rr][Aa][Tt][Ii][Oo][Nn][Ss]"/>
349             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Oo][Cc][Kk][Aa][Uu][Tt][Oo][Hh][Ii][Dd][Ee]"/>
350             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ff][Uu][Ll][Ll][Ss][Cc][Rr][Ee][Ee][Nn]"/>
351             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
352             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
353             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
354             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Oo][Mm][Nn][Ii][Pp][Rr][Ee][Ss][Ee][Nn][Tt]"/>
355             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Aa][Dd][Ee]"/>
356             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
357             <xsd:pattern value="[Uu][Nn][Ff][Oo][Cc][Uu][Ss]"/>
358             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
359             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
360             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
361             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee]"/>
362             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee][Rr][Aa][Ii][Ss][Ee]"/>
363             <xsd:pattern value="[Uu][Nn][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
364         </xsd:restriction>
365     </xsd:simpleType>
366     <xsd:simpleType name="clienttype">
367         <xsd:restriction base="xsd:string">
368             <xsd:enumeration value="desktop"/>
369             <xsd:enumeration value="dock"/>
370             <xsd:enumeration value="toolbar"/>
371             <xsd:enumeration value="menu"/>
372             <xsd:enumeration value="splash"/>
373             <xsd:enumeration value="utility"/>
374             <xsd:enumeration value="dialog"/>
375             <xsd:enumeration value="normal"/>
376         </xsd:restriction>
377     </xsd:simpleType>
378     <xsd:simpleType name="bool">
379         <!-- this is copied to maximization.  Keep that in sync. -->
380         <xsd:restriction base="xsd:string">
381             <xsd:enumeration value="yes"/>
382             <xsd:enumeration value="no"/>
383             <xsd:enumeration value="true"/>
384             <xsd:enumeration value="false"/>
385             <xsd:enumeration value="on"/>
386             <xsd:enumeration value="off"/>
387         </xsd:restriction>
388     </xsd:simpleType>
389     <xsd:simpleType name="fontplace">
390         <xsd:restriction base="xsd:string">
391             <xsd:enumeration value="ActiveWindow"/>
392             <xsd:enumeration value="InactiveWindow"/>
393             <xsd:enumeration value="MenuHeader"/>
394             <xsd:enumeration value="MenuItem"/>
395             <xsd:enumeration value="ActiveOnScreenDisplay"/>
396             <xsd:enumeration value="InactiveOnScreenDisplay"/>
397         </xsd:restriction>
398     </xsd:simpleType>
399     <xsd:simpleType name="fontweight">
400         <xsd:restriction base="xsd:string">
401             <xsd:enumeration value="normal"/>
402             <xsd:enumeration value="bold"/>
403         </xsd:restriction>
404     </xsd:simpleType>
405     <xsd:simpleType name="fontslant">
406         <xsd:restriction base="xsd:string">
407             <xsd:enumeration value="normal"/>
408             <xsd:enumeration value="italic"/>
409             <xsd:enumeration value="opaque"/>
410         </xsd:restriction>
411     </xsd:simpleType>
412     <xsd:simpleType name="button">
413         <xsd:restriction base="xsd:string">
414             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}(Left|Middle|Right|Up|Down|Button[0-9]+)"/>
415         </xsd:restriction>
416     </xsd:simpleType>
417     <xsd:simpleType name="center_or_int">
418         <xsd:restriction base="xsd:string">
419             <!-- ob: atoi($_) unless $_ eq 'center'; -->
420             <!-- I think the regexp DTRT WRT atoi. -->
421             <xsd:pattern value="center|-?(0|[1-9][0-9]*)"/>
422         </xsd:restriction>
423     </xsd:simpleType>
424     <xsd:simpleType name="mouse_or_int">
425         <xsd:restriction base="xsd:string">
426             <!-- ob: atoi($_) unless $_ eq 'center'; -->
427             <!-- I think the regexp DTRT WRT atoi. -->
428             <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
429         </xsd:restriction>
430     </xsd:simpleType>
431     <xsd:simpleType name="contextname">
432         <xsd:restriction base="xsd:string">
433             <xsd:enumeration value="Desktop"/>
434             <xsd:enumeration value="Root"/>
435             <xsd:enumeration value="Client"/>
436             <xsd:enumeration value="Titlebar"/>
437             <xsd:enumeration value="Frame"/>
438             <xsd:enumeration value="TLCorner"/>
439             <xsd:enumeration value="TRCorner"/>
440             <xsd:enumeration value="BLCorner"/>
441             <xsd:enumeration value="BRCorner"/>
442             <xsd:enumeration value="Top"/>
443             <xsd:enumeration value="Left"/>
444             <xsd:enumeration value="Right"/>
445             <xsd:enumeration value="Bottom"/>
446             <xsd:enumeration value="Maximize"/>
447             <xsd:enumeration value="AllDesktops"/>
448             <xsd:enumeration value="Shade"/>
449             <xsd:enumeration value="Iconify"/>
450             <xsd:enumeration value="Icon"/>
451             <xsd:enumeration value="Close"/>
452             <xsd:enumeration value="MoveResize"/>
453         </xsd:restriction>
454     </xsd:simpleType>
455     <xsd:simpleType name="direction">
456         <xsd:restriction base="xsd:string">
457             <xsd:enumeration value="Horizontal"/>
458             <xsd:enumeration value="Vertical"/>
459         </xsd:restriction>
460     </xsd:simpleType>
461     <xsd:simpleType name="dock_position">
462         <xsd:restriction base="xsd:string">
463             <xsd:enumeration value="TopLeft"/>
464             <xsd:enumeration value="Top"/>
465             <xsd:enumeration value="TopRight"/>
466             <xsd:enumeration value="Right"/>
467             <xsd:enumeration value="BottomRight"/>
468             <xsd:enumeration value="Bottom"/>
469             <xsd:enumeration value="BottomLeft"/>
470             <xsd:enumeration value="Left"/>
471             <xsd:enumeration value="Floating"/>
472         </xsd:restriction>
473     </xsd:simpleType>
474     <xsd:simpleType name="keyname">
475         <xsd:restriction base="xsd:string">
476             <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
477             <!-- how do we do all substrings and permutations? -->
478             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}[a-zA-Z0-9]*"/>
479         </xsd:restriction>
480     </xsd:simpleType>
481     <xsd:simpleType name="layer">
482         <xsd:restriction base="xsd:string">
483             <xsd:pattern value="[Aa][Bb][Oo][Vv][Ee]"/>
484             <xsd:pattern value="[Nn][Oo][Rr][Mm][Aa][Ll]"/>
485             <xsd:pattern value="[Bb][Ee][Ll][Oo][Ww]"/>
486         </xsd:restriction>
487     </xsd:simpleType>
488     <xsd:simpleType name="maximization">
489         <xsd:restriction base="xsd:string">
490             <xsd:enumeration value="Horizontal"/>
491             <xsd:enumeration value="Vertical"/>
492             <!-- this is a copy of ob:bool.  Keep it in sync. -->
493             <xsd:enumeration value="yes"/>
494             <xsd:enumeration value="no"/>
495             <xsd:enumeration value="true"/>
496             <xsd:enumeration value="false"/>
497             <xsd:enumeration value="on"/>
498             <xsd:enumeration value="off"/>
499         </xsd:restriction>
500     </xsd:simpleType>
501     <xsd:simpleType name="mouseaction">
502         <xsd:restriction base="xsd:string">
503             <xsd:enumeration value="Click"/>
504             <xsd:enumeration value="DoubleClick"/>
505             <xsd:enumeration value="Drag"/>
506             <xsd:enumeration value="Press"/>
507             <xsd:enumeration value="Release"/>
508         </xsd:restriction>
509     </xsd:simpleType>
510     <xsd:simpleType name="placementpolicy">
511         <xsd:restriction base="xsd:string">
512             <xsd:enumeration value="Smart"/>
513             <xsd:enumeration value="UnderMouse"/>
514         </xsd:restriction>
515     </xsd:simpleType>
516     <xsd:simpleType name="placementmonitor">
517         <xsd:restriction base="xsd:string">
518             <xsd:enumeration value="Any"/>
519             <xsd:enumeration value="Mouse"/>
520             <xsd:enumeration value="Active"/>
521             <xsd:enumeration value="Primary"/>
522         </xsd:restriction>
523     </xsd:simpleType>
524     <xsd:simpleType name="primarymonitor">
525         <xsd:restriction base="xsd:string">
526             <xsd:enumeration value="Mouse"/>
527             <xsd:enumeration value="Active"/>
528             <xsd:pattern value="[0-9][0-9][0-9][0-9][0-9]"/>
529         </xsd:restriction>
530     </xsd:simpleType>
531     <xsd:simpleType name="popupposition">
532         <xsd:restriction base="xsd:string">
533             <xsd:enumeration value="Top"/>
534             <xsd:enumeration value="Center"/>
535         </xsd:restriction>
536     </xsd:simpleType>
537     <xsd:simpleType name="popupshow">
538         <xsd:restriction base="xsd:string">
539             <xsd:enumeration value="Always"/>
540             <xsd:enumeration value="Never"/>
541             <xsd:enumeration value="Nonpixel"/>
542         </xsd:restriction>
543     </xsd:simpleType>
544     <xsd:simpleType name="dialogtype">
545         <xsd:restriction base="xsd:string">
546             <xsd:enumeration value="None"/>
547             <xsd:enumeration value="Icons"/>
548             <xsd:enumeration value="List"/>
549         </xsd:restriction>
550     </xsd:simpleType>
551 </xsd:schema>