install the obt/ddfile.h header
[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="center" type="ob:bool"/>
74             <xsd:element minOccurs="0" name="monitor" type="ob:placementmonitor"/>
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:bool"/>
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 maxOccurs="unbounded" name="context" type="ob:context"/>
214         </xsd:sequence>
215     </xsd:complexType>
216     <xsd:complexType name="menu">
217         <xsd:sequence>
218             <xsd:element maxOccurs="unbounded" name="file" type="xsd:string"/>
219             <xsd:element minOccurs="0" name="hideDelay" type="xsd:integer"/>
220             <xsd:element minOccurs="0" name="middle" type="ob:bool"/>
221             <xsd:element minOccurs="0" name="submenuShowDelay" type="xsd:integer"/>
222             <xsd:element minOccurs="0" name="showIcons" type="ob:bool"/>
223             <xsd:element minOccurs="0" name="manageDesktops" type="ob:bool"/>
224         </xsd:sequence>
225     </xsd:complexType>
226     <xsd:complexType name="window_position">
227         <xsd:all>
228             <xsd:element name="x" type="ob:center_or_int"/>
229             <xsd:element name="y" type="ob:center_or_int"/>
230             <xsd:element minOccurs="0" name="monitor" type="ob:mouse_or_int"/>    
231             <xsd:element minOccurs="0" name="head" type="xsd:string"/>
232         </xsd:all>
233         <xsd:attribute name="force" type="ob:bool"/>
234     </xsd:complexType>
235     <xsd:complexType name="application">
236         <xsd:all>
237             <xsd:element minOccurs="0" name="decor" type="ob:bool"/>
238             <xsd:element minOccurs="0" name="shade" type="ob:bool"/>
239             <xsd:element minOccurs="0" name="position" type="ob:window_position"/>
240             <xsd:element minOccurs="0" name="focus" type="xsd:string"/>
241             <xsd:element minOccurs="0" name="desktop" type="xsd:integer"/>
242             <xsd:element minOccurs="0" name="layer" type="ob:layer"/>
243             <xsd:element minOccurs="0" name="iconic" type="ob:bool"/>
244             <xsd:element minOccurs="0" name="skip_pager" type="ob:bool"/>
245             <xsd:element minOccurs="0" name="skip_taskbar" type="ob:bool"/>
246             <xsd:element minOccurs="0" name="fullscreen" type="ob:bool"/>
247             <xsd:element minOccurs="0" name="maximized" type="ob:maximization"/>
248         </xsd:all>
249         <!-- at least one of these must be present -->
250         <xsd:attribute name="role" type="xsd:string"/>
251         <xsd:attribute name="title" type="xsd:string"/>
252         <xsd:attribute name="type" type="ob:clienttype"/>
253         <xsd:attribute name="name" type="xsd:string"/>
254         <xsd:attribute name="class" type="xsd:string"/>
255     </xsd:complexType>
256     <xsd:complexType name="applications">
257         <xsd:sequence>
258             <xsd:element minOccurs="0" maxOccurs="unbounded" name="application" type="ob:application"/>
259         </xsd:sequence>
260     </xsd:complexType>
261     <xsd:complexType name="notify">
262         <xsd:all>
263             <xsd:element minOccurs="0" name="enabled" type="ob:bool"/>
264             <xsd:element minOccurs="0" name="name" type="xsd:string"/>
265             <xsd:element minOccurs="0" name="icon" type="xsd:string"/>
266         </xsd:all>
267     </xsd:complexType>
268     <!--
269          simple types / restrictions
270       -->
271     <xsd:simpleType name="actionname">
272         <xsd:restriction base="xsd:string">
273             <xsd:pattern value="[Ii][Ff]"/>
274             <xsd:pattern value="[Aa][Cc][Tt][Ii][Vv][Aa][Tt][Ee]"/>
275             <xsd:pattern value="[Bb][Rr][Ee][Aa][Kk][Cc][Hh][Rr][Oo][Oo][Tt]"/>
276             <xsd:pattern value="[Cc][Ll][Oo][Ss][Ee]"/>
277             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
278             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
279             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Aa][Ss][Tt]"/>
280             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
281             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
282             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
283             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
284             <xsd:pattern value="[Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
285             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ee][Aa][Ss][Tt]"/>
286             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Nn][Oo][Rr][Tt][Hh]"/>
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][Ee][Aa][Ss][Tt]"/>
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][Ww][Ee][Ss][Tt]"/>
289             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ss][Oo][Uu][Tt][Hh]"/>
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][Ee][Aa][Ss][Tt]"/>
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][Ww][Ee][Ss][Tt]"/>
292             <xsd:pattern value="[Dd][Ii][Rr][Ee][Cc][Tt][Ii][Oo][Nn][Aa][Ll][Ff][Oo][Cc][Uu][Ss][Ww][Ee][Ss][Tt]"/>
293             <xsd:pattern value="[Ee][Xx][Ee][Cc][Uu][Tt][Ee]"/>
294             <xsd:pattern value="[Ee][Xx][Ii][Tt]"/>
295             <xsd:pattern value="[Ss][Ee][Ss][Ss][Ii][Oo][Nn][Ll][Oo][Gg][Oo][Uu][Tt]"/>
296             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss]"/>
297             <xsd:pattern value="[Ff][Oo][Cc][Uu][Ss][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm]"/>
298             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
299             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
300             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
301             <xsd:pattern value="[Gg][Rr][Oo][Ww][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
302             <xsd:pattern value="[Ii][Cc][Oo][Nn][Ii][Ff][Yy]"/>
303             <xsd:pattern value="[Kk][Ii][Ll][Ll]"/>
304             <xsd:pattern value="[Ll][Oo][Ww][Ee][Rr]"/>
305             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
306             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
307             <xsd:pattern value="[Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
308             <xsd:pattern value="[Mm][Oo][Vv][Ee]"/>
309             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
310             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
311             <xsd:pattern value="[Mm][Oo][Vv][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
312             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Cc][Ee][Nn][Tt][Ee][Rr]"/>
313             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
314             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
315             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
316             <xsd:pattern value="[Mm][Oo][Vv][Ee][Ff][Rr][Oo][Mm][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
317             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ee][Aa][Ss][Tt]"/>
318             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Nn][Oo][Rr][Tt][Hh]"/>
319             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ss][Oo][Uu][Tt][Hh]"/>
320             <xsd:pattern value="[Mm][Oo][Vv][Ee][Tt][Oo][Ee][Dd][Gg][Ee][Ww][Ee][Ss][Tt]"/>
321             <xsd:pattern value="[Nn][Ee][Xx][Tt][Ww][Ii][Nn][Dd][Oo][Ww]"/>
322             <xsd:pattern value="[Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss][Ww][Ii][Nn][Dd][Oo][Ww]"/>
323             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee]"/>
324             <xsd:pattern value="[Rr][Aa][Ii][Ss][Ee][Ll][Oo][Ww][Ee][Rr]"/>
325             <xsd:pattern value="[Rr][Ee][Cc][Oo][Nn][Ff][Ii][Gg][Uu][Rr][Ee]"/>
326             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee]"/>
327             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee]"/>
328             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Hh][Oo][Rr][Zz]"/>
329             <xsd:pattern value="[Rr][Ee][Ss][Ii][Zz][Ee][Rr][Ee][Ll][Aa][Tt][Ii][Vv][Ee][Vv][Ee][Rr][Tt]"/>
330             <xsd:pattern value="[Rr][Ee][Ss][Tt][Aa][Rr][Tt]"/>
331             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Bb][Oo][Tt][Tt][Oo][Mm][Ll][Aa][Yy][Ee][Rr]"/>
332             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
333             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Dd][Oo][Ww][Nn]"/>
334             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Ll][Ee][Ff][Tt]"/>
335             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Nn][Ee][Xx][Tt]"/>
336             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Pp][Rr][Ee][Vv][Ii][Oo][Uu][Ss]"/>
337             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Rr][Ii][Gg][Hh][Tt]"/>
338             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Dd][Ee][Ss][Kk][Tt][Oo][Pp][Uu][Pp]"/>
339             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Nn][Oo][Rr][Mm][Aa][Ll][Ll][Aa][Yy][Ee][Rr]"/>
340             <xsd:pattern value="[Ss][Ee][Nn][Dd][Tt][Oo][Tt][Oo][Pp][Ll][Aa][Yy][Ee][Rr]"/>
341             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee]"/>
342             <xsd:pattern value="[Ss][Hh][Aa][Dd][Ee][Ll][Oo][Ww][Ee][Rr]"/>
343             <xsd:pattern value="[Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
344             <xsd:pattern value="[Ss][Hh][Oo][Ww][Mm][Ee][Nn][Uu]"/>
345             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Bb][Oo][Tt][Tt][Oo][Mm]"/>
346             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Aa][Ll][Ww][Aa][Yy][Ss][Oo][Nn][Tt][Oo][Pp]"/>
347             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Ee][Cc][Oo][Rr][Aa][Tt][Ii][Oo][Nn][Ss]"/>
348             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Dd][Oo][Cc][Kk][Aa][Uu][Tt][Oo][Hh][Ii][Dd][Ee]"/>
349             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ff][Uu][Ll][Ll][Ss][Cc][Rr][Ee][Ee][Nn]"/>
350             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
351             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
352             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
353             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Oo][Mm][Nn][Ii][Pp][Rr][Ee][Ss][Ee][Nn][Tt]"/>
354             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Aa][Dd][Ee]"/>
355             <xsd:pattern value="[Tt][Oo][Gg][Gg][Ll][Ee][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
356             <xsd:pattern value="[Uu][Nn][Ff][Oo][Cc][Uu][Ss]"/>
357             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Ff][Uu][Ll][Ll]"/>
358             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Hh][Oo][Rr][Zz]"/>
359             <xsd:pattern value="[Uu][Nn][Mm][Aa][Xx][Ii][Mm][Ii][Zz][Ee][Vv][Ee][Rr][Tt]"/>
360             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee]"/>
361             <xsd:pattern value="[Uu][Nn][Ss][Hh][Aa][Dd][Ee][Rr][Aa][Ii][Ss][Ee]"/>
362             <xsd:pattern value="[Uu][Nn][Ss][Hh][Oo][Ww][Dd][Ee][Ss][Kk][Tt][Oo][Pp]"/>
363         </xsd:restriction>
364     </xsd:simpleType>
365     <xsd:simpleType name="clienttype">
366         <xsd:restriction base="xsd:string">
367             <xsd:enumeration value="desktop"/>
368             <xsd:enumeration value="dock"/>
369             <xsd:enumeration value="toolbar"/>
370             <xsd:enumeration value="menu"/>
371             <xsd:enumeration value="splash"/>
372             <xsd:enumeration value="utility"/>
373             <xsd:enumeration value="dialog"/>
374             <xsd:enumeration value="normal"/>
375         </xsd:restriction>
376     </xsd:simpleType>
377     <xsd:simpleType name="bool">
378         <!-- this is copied to maximization.  Keep that in sync. -->
379         <xsd:restriction base="xsd:string">
380             <xsd:enumeration value="yes"/>
381             <xsd:enumeration value="no"/>
382             <xsd:enumeration value="true"/>
383             <xsd:enumeration value="false"/>
384             <xsd:enumeration value="on"/>
385             <xsd:enumeration value="off"/>
386         </xsd:restriction>
387     </xsd:simpleType>
388     <xsd:simpleType name="fontplace">
389         <xsd:restriction base="xsd:string">
390             <xsd:enumeration value="ActiveWindow"/>
391             <xsd:enumeration value="InactiveWindow"/>
392             <xsd:enumeration value="MenuHeader"/>
393             <xsd:enumeration value="MenuItem"/>
394             <xsd:enumeration value="OnScreenDisplay"/>
395         </xsd:restriction>
396     </xsd:simpleType>
397     <xsd:simpleType name="fontweight">
398         <xsd:restriction base="xsd:string">
399             <xsd:enumeration value="normal"/>
400             <xsd:enumeration value="bold"/>
401         </xsd:restriction>
402     </xsd:simpleType>
403     <xsd:simpleType name="fontslant">
404         <xsd:restriction base="xsd:string">
405             <xsd:enumeration value="normal"/>
406             <xsd:enumeration value="italic"/>
407             <xsd:enumeration value="opaque"/>
408         </xsd:restriction>
409     </xsd:simpleType>
410     <xsd:simpleType name="button">
411         <xsd:restriction base="xsd:string">
412             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}(Left|Middle|Right|Up|Down|Button[0-9]+)"/>
413         </xsd:restriction>
414     </xsd:simpleType>
415     <xsd:simpleType name="center_or_int">
416         <xsd:restriction base="xsd:string">
417             <!-- ob: atoi($_) unless $_ eq 'center'; -->
418             <!-- I think the regexp DTRT WRT atoi. -->
419             <xsd:pattern value="center|-?(0|[1-9][0-9]*)"/>
420         </xsd:restriction>
421     </xsd:simpleType>
422     <xsd:simpleType name="mouse_or_int">
423         <xsd:restriction base="xsd:string">
424             <!-- ob: atoi($_) unless $_ eq 'center'; -->
425             <!-- I think the regexp DTRT WRT atoi. -->
426             <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
427         </xsd:restriction>
428     </xsd:simpleType>
429     <xsd:simpleType name="contextname">
430         <xsd:restriction base="xsd:string">
431             <xsd:enumeration value="Desktop"/>
432             <xsd:enumeration value="Root"/>
433             <xsd:enumeration value="Client"/>
434             <xsd:enumeration value="Titlebar"/>
435             <xsd:enumeration value="Frame"/>
436             <xsd:enumeration value="TLCorner"/>
437             <xsd:enumeration value="TRCorner"/>
438             <xsd:enumeration value="BLCorner"/>
439             <xsd:enumeration value="BRCorner"/>
440             <xsd:enumeration value="Top"/>
441             <xsd:enumeration value="Left"/>
442             <xsd:enumeration value="Right"/>
443             <xsd:enumeration value="Bottom"/>
444             <xsd:enumeration value="Maximize"/>
445             <xsd:enumeration value="AllDesktops"/>
446             <xsd:enumeration value="Shade"/>
447             <xsd:enumeration value="Iconify"/>
448             <xsd:enumeration value="Icon"/>
449             <xsd:enumeration value="Close"/>
450             <xsd:enumeration value="MoveResize"/>
451         </xsd:restriction>
452     </xsd:simpleType>
453     <xsd:simpleType name="direction">
454         <xsd:restriction base="xsd:string">
455             <xsd:enumeration value="Horizontal"/>
456             <xsd:enumeration value="Vertical"/>
457         </xsd:restriction>
458     </xsd:simpleType>
459     <xsd:simpleType name="dock_position">
460         <xsd:restriction base="xsd:string">
461             <xsd:enumeration value="TopLeft"/>
462             <xsd:enumeration value="Top"/>
463             <xsd:enumeration value="TopRight"/>
464             <xsd:enumeration value="Right"/>
465             <xsd:enumeration value="BottomRight"/>
466             <xsd:enumeration value="Bottom"/>
467             <xsd:enumeration value="BottomLeft"/>
468             <xsd:enumeration value="Left"/>
469             <xsd:enumeration value="Floating"/>
470         </xsd:restriction>
471     </xsd:simpleType>
472     <xsd:simpleType name="keyname">
473         <xsd:restriction base="xsd:string">
474             <!-- FIXME: M, Mod2, Mod5 in addition to S, A, C -->
475             <!-- how do we do all substrings and permutations? -->
476             <xsd:pattern value="(([ACMSW]|Mod[1-5])-){,5}[a-zA-Z0-9]*"/>
477         </xsd:restriction>
478     </xsd:simpleType>
479     <xsd:simpleType name="layer">
480         <xsd:restriction base="xsd:string">
481             <xsd:pattern value="[Aa][Bb][Oo][Vv][Ee]"/>
482             <xsd:pattern value="[Nn][Oo][Rr][Mm][Aa][Ll]"/>
483             <xsd:pattern value="[Bb][Ee][Ll][Oo][Ww]"/>
484         </xsd:restriction>
485     </xsd:simpleType>
486     <xsd:simpleType name="maximization">
487         <xsd:restriction base="xsd:string">
488             <xsd:enumeration value="Horizontal"/>
489             <xsd:enumeration value="Vertical"/>
490             <!-- this is a copy of ob:bool.  Keep it in sync. -->
491             <xsd:enumeration value="yes"/>
492             <xsd:enumeration value="no"/>
493             <xsd:enumeration value="true"/>
494             <xsd:enumeration value="false"/>
495             <xsd:enumeration value="on"/>
496             <xsd:enumeration value="off"/>
497         </xsd:restriction>
498     </xsd:simpleType>
499     <xsd:simpleType name="mouseaction">
500         <xsd:restriction base="xsd:string">
501             <xsd:enumeration value="Click"/>
502             <xsd:enumeration value="DoubleClick"/>
503             <xsd:enumeration value="Drag"/>
504             <xsd:enumeration value="Press"/>
505             <xsd:enumeration value="Release"/>
506         </xsd:restriction>
507     </xsd:simpleType>
508     <xsd:simpleType name="placementpolicy">
509         <xsd:restriction base="xsd:string">
510             <xsd:enumeration value="Smart"/>
511             <xsd:enumeration value="UnderMouse"/>
512         </xsd:restriction>
513     </xsd:simpleType>
514     <xsd:simpleType name="placementmonitor">
515         <xsd:restriction base="xsd:string">
516             <xsd:enumeration value="Any"/>
517             <xsd:enumeration value="Mouse"/>
518             <xsd:enumeration value="Active"/>
519         </xsd:restriction>
520     </xsd:simpleType>
521     <xsd:simpleType name="popupposition">
522         <xsd:restriction base="xsd:string">
523             <xsd:enumeration value="Top"/>
524             <xsd:enumeration value="Center"/>
525         </xsd:restriction>
526     </xsd:simpleType>
527     <xsd:simpleType name="popupshow">
528         <xsd:restriction base="xsd:string">
529             <xsd:enumeration value="Always"/>
530             <xsd:enumeration value="Never"/>
531             <xsd:enumeration value="Nonpixel"/>
532         </xsd:restriction>
533     </xsd:simpleType>
534 </xsd:schema>