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