Skins2: change DTD to add possibility to store ID for Anchors, Panels and Groups.
[vlc.git] / share / skins2 / skin.dtd
1 <!-- version 2.0
2 -->
3
4
5 <!ELEMENT Theme (ThemeInfo,(Include|IniFile|Bitmap|BitmapFont|Font|PopupMenu|Window)*)>
6     <!ATTLIST Theme
7         version     CDATA   #REQUIRED
8         tooltipfont CDATA   "defaultfont"
9         magnet      CDATA   "15"
10         alpha       CDATA   "255"
11         movealpha   CDATA   "255"
12     >
13
14 <!-- main elements -->
15 <!ELEMENT IniFile EMPTY>
16     <!ATTLIST IniFile
17         id          CDATA   #REQUIRED
18         file        CDATA   #REQUIRED
19     >
20 <!ELEMENT Include EMPTY>
21     <!ATTLIST Include
22         file        CDATA   #REQUIRED
23     >
24 <!ELEMENT Bitmap (SubBitmap)*>
25     <!ATTLIST Bitmap
26         id          CDATA   #REQUIRED
27         file        CDATA   #REQUIRED
28         alphacolor  CDATA   #REQUIRED
29         nbframes    CDATA   "1"
30         fps         CDATA   "0"
31     >
32 <!ELEMENT SubBitmap EMPTY>
33     <!ATTLIST SubBitmap
34         id          CDATA   #REQUIRED
35         x           CDATA   #REQUIRED
36         y           CDATA   #REQUIRED
37         width       CDATA   #REQUIRED
38         height      CDATA   #REQUIRED
39         nbframes    CDATA   "1"
40         fps         CDATA   "0"
41     >
42 <!ELEMENT Font EMPTY>
43     <!ATTLIST Font
44         id          CDATA   #REQUIRED
45         file        CDATA   #REQUIRED
46         size        CDATA   "12"
47     >
48 <!ELEMENT BitmapFont EMPTY>
49     <!ATTLIST BitmapFont
50         id          CDATA   #REQUIRED
51         file        CDATA   #REQUIRED
52         type        CDATA   "digits"
53     >
54 <!ELEMENT PopupMenu (MenuItem|MenuSeparator)+>
55     <!ATTLIST PopupMenu
56         id          CDATA   #REQUIRED
57     >
58 <!ELEMENT MenuItem EMPTY>
59     <!ATTLIST MenuItem
60         label       CDATA   #REQUIRED
61         action      CDATA   "none"
62     >
63 <!ELEMENT MenuSeparator EMPTY>
64 <!ELEMENT ThemeInfo EMPTY>
65     <!ATTLIST ThemeInfo
66         name        CDATA   #IMPLIED
67         author      CDATA   #IMPLIED
68         email       CDATA   #IMPLIED
69         webpage     CDATA   #IMPLIED
70     >
71 <!ELEMENT Window (Layout)+>
72     <!ATTLIST Window
73         id          CDATA   "none"
74         visible     CDATA   "true"
75         x           CDATA   "0"
76         y           CDATA   "0"
77         dragdrop    CDATA   "true"
78         playondrop  CDATA   "true"
79     >
80 <!ELEMENT Layout (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
81                   Anchor|Video|Playtree|Panel)+>
82     <!ATTLIST Layout
83         id          CDATA   "none"
84         width       CDATA   #REQUIRED
85         height      CDATA   #REQUIRED
86         minwidth    CDATA   "-1"
87         maxwidth    CDATA   "-1"
88         minheight   CDATA   "-1"
89         maxheight   CDATA   "-1"
90     >
91 <!-- Grouping elements -->
92 <!ELEMENT Group (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
93                  Anchor|Video|Playtree|Panel)+>
94     <!ATTLIST Group
95         id          CDATA   "none"
96         x           CDATA   "0"
97         y           CDATA   "0"
98     >
99 <!ELEMENT Panel (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
100                  Anchor|Video|Playtree|Panel)+>
101     <!ATTLIST Panel
102         id          CDATA   "none"
103         x           CDATA   "0"
104         y           CDATA   "0"
105         lefttop     CDATA   "lefttop"
106         rightbottom CDATA   "lefttop"
107         xkeepratio  CDATA   "false"
108         ykeepratio  CDATA   "false"
109         width       CDATA   #REQUIRED
110         height      CDATA   #REQUIRED
111     >
112
113 <!-- Anchors -->
114 <!ELEMENT Anchor EMPTY>
115     <!ATTLIST Anchor
116         id          CDATA   "none"
117         x           CDATA   "0"
118         y           CDATA   "0"
119         lefttop     CDATA   "lefttop"
120         priority    CDATA   #REQUIRED
121         points      CDATA   "(0,0)"
122         range       CDATA   "10"
123     >
124
125 <!-- Controls -->
126 <!ELEMENT Image EMPTY>
127     <!ATTLIST Image
128         id          CDATA   "none"
129         visible     CDATA   "true"
130         x           CDATA   "0"
131         y           CDATA   "0"
132         lefttop     CDATA   "lefttop"
133         rightbottom CDATA   "lefttop"
134         xkeepratio  CDATA   "false"
135         ykeepratio  CDATA   "false"
136         image       CDATA   #REQUIRED
137         action      CDATA   "none"
138         action2     CDATA   "none"
139         resize      CDATA   "mosaic"
140         help        CDATA   ""
141     >
142 <!ELEMENT Button EMPTY>
143     <!ATTLIST Button
144         id          CDATA   "none"
145         visible     CDATA   "true"
146         x           CDATA   "0"
147         y           CDATA   "0"
148         lefttop     CDATA   "lefttop"
149         rightbottom CDATA   "lefttop"
150         xkeepratio  CDATA   "false"
151         ykeepratio  CDATA   "false"
152         up          CDATA   #REQUIRED
153         down        CDATA   "none"
154         over        CDATA   "none"
155         action      CDATA   "none"
156         tooltiptext CDATA   ""
157         help        CDATA   ""
158     >
159 <!ELEMENT Checkbox EMPTY>
160     <!ATTLIST Checkbox
161         id           CDATA   "none"
162         visible      CDATA   "true"
163         x            CDATA   "0"
164         y            CDATA   "0"
165         lefttop      CDATA   "lefttop"
166         rightbottom  CDATA   "lefttop"
167         xkeepratio  CDATA   "false"
168         ykeepratio  CDATA   "false"
169         up1          CDATA   #REQUIRED
170         down1        CDATA   "none"
171         over1        CDATA   "none"
172         up2          CDATA   #REQUIRED
173         down2        CDATA   "none"
174         over2        CDATA   "none"
175         state        CDATA   #REQUIRED
176         action1      CDATA   "none"
177         action2      CDATA   "none"
178         tooltiptext1 CDATA   ""
179         tooltiptext2 CDATA   ""
180         help         CDATA   ""
181     >
182 <!ELEMENT Slider (SliderBackground)?>
183     <!ATTLIST Slider
184         id          CDATA   "none"
185         visible     CDATA   "true"
186         x           CDATA   "0"
187         y           CDATA   "0"
188         lefttop     CDATA   "lefttop"
189         rightbottom CDATA   "lefttop"
190         xkeepratio  CDATA   "false"
191         ykeepratio  CDATA   "false"
192         up          CDATA   #REQUIRED
193         down        CDATA   "none"
194         over        CDATA   "none"
195         points      CDATA   #REQUIRED
196         thickness   CDATA   "10"
197         value       CDATA   "none"
198         background  CDATA   "none"
199         tooltiptext CDATA   ""
200         help        CDATA   ""
201     >
202 <!ELEMENT SliderBackground EMPTY>
203     <!ATTLIST SliderBackground
204         id          CDATA   "none"
205         image       CDATA   #REQUIRED
206         nbhoriz     CDATA   "1"
207         nbvert      CDATA   "1"
208         padhoriz    CDATA   "0"
209         padvert     CDATA   "0"
210     >
211 <!ELEMENT RadialSlider EMPTY>
212     <!ATTLIST RadialSlider
213         id          CDATA   "none"
214         visible     CDATA   "true"
215         x           CDATA   "0"
216         y           CDATA   "0"
217         lefttop     CDATA   "lefttop"
218         rightbottom CDATA   "lefttop"
219         xkeepratio  CDATA   "false"
220         ykeepratio  CDATA   "false"
221         sequence    CDATA   #REQUIRED
222         nbimages    CDATA   #REQUIRED
223         minangle    CDATA   "0"
224         maxangle    CDATA   "360"
225         value       CDATA   "none"
226         tooltiptext CDATA   ""
227         help        CDATA   ""
228     >
229 <!ELEMENT Text EMPTY>
230     <!ATTLIST Text
231         id          CDATA   "none"
232         visible     CDATA   "true"
233         x           CDATA   "0"
234         y           CDATA   "0"
235         width       CDATA   "0"
236         lefttop     CDATA   "lefttop"
237         rightbottom CDATA   "lefttop"
238         xkeepratio  CDATA   "false"
239         ykeepratio  CDATA   "false"
240         text        CDATA   ""
241         font        CDATA   #REQUIRED
242         color       CDATA   "#000000"
243         scrolling   CDATA   "auto"
244         alignment   CDATA   "left"
245         help        CDATA   ""
246     >
247 <!ELEMENT Playlist (Slider)?>
248     <!ATTLIST Playlist
249         id          CDATA   #REQUIRED
250         visible     CDATA   "true"
251         x           CDATA   "0"
252         y           CDATA   "0"
253         width       CDATA   "0"
254         height      CDATA   "0"
255         lefttop     CDATA   "lefttop"
256         rightbottom CDATA   "lefttop"
257         xkeepratio  CDATA   "false"
258         ykeepratio  CDATA   "false"
259         font        CDATA   #REQUIRED
260         bgimage     CDATA   "none"
261         fgcolor     CDATA   "#000000"
262         playcolor   CDATA   "#FF0000"
263         bgcolor1    CDATA   "#FFFFFF"
264         bgcolor2    CDATA   "#FFFFFF"
265         selcolor    CDATA   "#0000FF"
266         help        CDATA   ""
267     >
268 <!ELEMENT Playtree (Slider)?>
269     <!ATTLIST Playtree
270         id          CDATA   #REQUIRED
271         visible     CDATA   "true"
272         x           CDATA   "0"
273         y           CDATA   "0"
274         width       CDATA   "0"
275         height      CDATA   "0"
276         lefttop     CDATA   "lefttop"
277         rightbottom CDATA   "lefttop"
278         xkeepratio  CDATA   "false"
279         ykeepratio  CDATA   "false"
280         font        CDATA   #REQUIRED
281         bgimage     CDATA   "none"
282         itemimage   CDATA   "none"
283         openimage   CDATA   "none"
284         closedimage CDATA   "none"
285         fgcolor     CDATA   "#000000"
286         playcolor   CDATA   "#FF0000"
287         bgcolor1    CDATA   "#FFFFFF"
288         bgcolor2    CDATA   "#FFFFFF"
289         selcolor    CDATA   "#0000FF"
290         help        CDATA   ""
291         flat        CDATA   "false"
292     >
293 <!ELEMENT Video EMPTY>
294     <!ATTLIST Video
295         id          CDATA   "none"
296         visible     CDATA   "true"
297         x           CDATA   "0"
298         y           CDATA   "0"
299         width       CDATA   "0"
300         height      CDATA   "0"
301         lefttop     CDATA   "lefttop"
302         rightbottom CDATA   "lefttop"
303         xkeepratio  CDATA   "false"
304         ykeepratio  CDATA   "false"
305         autoresize  CDATA   "true"
306         help        CDATA   ""
307     >