5a7ff145a1d3b81fb431d6df3f1ab01b7276c6be
[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         x           CDATA   "0"
96         y           CDATA   "0"
97     >
98 <!ELEMENT Panel (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
99                  Anchor|Video|Playtree|Panel)+>
100     <!ATTLIST Panel
101         x           CDATA   "0"
102         y           CDATA   "0"
103         lefttop     CDATA   "lefttop"
104         rightbottom CDATA   "lefttop"
105         xkeepratio  CDATA   "false"
106         ykeepratio  CDATA   "false"
107         width       CDATA   #REQUIRED
108         height      CDATA   #REQUIRED
109     >
110
111 <!-- Anchors -->
112 <!ELEMENT Anchor EMPTY>
113     <!ATTLIST Anchor
114         x           CDATA   "0"
115         y           CDATA   "0"
116         lefttop     CDATA   "lefttop"
117         priority    CDATA   #REQUIRED
118         points      CDATA   "(0,0)"
119         range       CDATA   "10"
120     >
121
122 <!-- Controls -->
123 <!ELEMENT Image EMPTY>
124     <!ATTLIST Image
125         id          CDATA   "none"
126         visible     CDATA   "true"
127         x           CDATA   "0"
128         y           CDATA   "0"
129         lefttop     CDATA   "lefttop"
130         rightbottom CDATA   "lefttop"
131         xkeepratio  CDATA   "false"
132         ykeepratio  CDATA   "false"
133         image       CDATA   #REQUIRED
134         action      CDATA   "none"
135         action2     CDATA   "none"
136         resize      CDATA   "mosaic"
137         help        CDATA   ""
138     >
139 <!ELEMENT Button EMPTY>
140     <!ATTLIST Button
141         id          CDATA   "none"
142         visible     CDATA   "true"
143         x           CDATA   "0"
144         y           CDATA   "0"
145         lefttop     CDATA   "lefttop"
146         rightbottom CDATA   "lefttop"
147         xkeepratio  CDATA   "false"
148         ykeepratio  CDATA   "false"
149         up          CDATA   #REQUIRED
150         down        CDATA   "none"
151         over        CDATA   "none"
152         action      CDATA   "none"
153         tooltiptext CDATA   ""
154         help        CDATA   ""
155     >
156 <!ELEMENT Checkbox EMPTY>
157     <!ATTLIST Checkbox
158         id           CDATA   "none"
159         visible      CDATA   "true"
160         x            CDATA   "0"
161         y            CDATA   "0"
162         lefttop      CDATA   "lefttop"
163         rightbottom  CDATA   "lefttop"
164         xkeepratio  CDATA   "false"
165         ykeepratio  CDATA   "false"
166         up1          CDATA   #REQUIRED
167         down1        CDATA   "none"
168         over1        CDATA   "none"
169         up2          CDATA   #REQUIRED
170         down2        CDATA   "none"
171         over2        CDATA   "none"
172         state        CDATA   #REQUIRED
173         action1      CDATA   "none"
174         action2      CDATA   "none"
175         tooltiptext1 CDATA   ""
176         tooltiptext2 CDATA   ""
177         help         CDATA   ""
178     >
179 <!ELEMENT Slider (SliderBackground)?>
180     <!ATTLIST Slider
181         id          CDATA   "none"
182         visible     CDATA   "true"
183         x           CDATA   "0"
184         y           CDATA   "0"
185         lefttop     CDATA   "lefttop"
186         rightbottom CDATA   "lefttop"
187         xkeepratio  CDATA   "false"
188         ykeepratio  CDATA   "false"
189         up          CDATA   #REQUIRED
190         down        CDATA   "none"
191         over        CDATA   "none"
192         points      CDATA   #REQUIRED
193         thickness   CDATA   "10"
194         value       CDATA   "none"
195         background  CDATA   "none"
196         tooltiptext CDATA   ""
197         help        CDATA   ""
198     >
199 <!ELEMENT SliderBackground EMPTY>
200     <!ATTLIST SliderBackground
201         id          CDATA   "none"
202         image       CDATA   #REQUIRED
203         nbhoriz     CDATA   "1"
204         nbvert      CDATA   "1"
205         padhoriz    CDATA   "0"
206         padvert     CDATA   "0"
207     >
208 <!ELEMENT RadialSlider EMPTY>
209     <!ATTLIST RadialSlider
210         id          CDATA   "none"
211         visible     CDATA   "true"
212         x           CDATA   "0"
213         y           CDATA   "0"
214         lefttop     CDATA   "lefttop"
215         rightbottom CDATA   "lefttop"
216         xkeepratio  CDATA   "false"
217         ykeepratio  CDATA   "false"
218         sequence    CDATA   #REQUIRED
219         nbimages    CDATA   #REQUIRED
220         minangle    CDATA   "0"
221         maxangle    CDATA   "360"
222         value       CDATA   "none"
223         tooltiptext CDATA   ""
224         help        CDATA   ""
225     >
226 <!ELEMENT Text EMPTY>
227     <!ATTLIST Text
228         id          CDATA   "none"
229         visible     CDATA   "true"
230         x           CDATA   "0"
231         y           CDATA   "0"
232         width       CDATA   "0"
233         lefttop     CDATA   "lefttop"
234         rightbottom CDATA   "lefttop"
235         xkeepratio  CDATA   "false"
236         ykeepratio  CDATA   "false"
237         text        CDATA   ""
238         font        CDATA   #REQUIRED
239         color       CDATA   "#000000"
240         scrolling   CDATA   "auto"
241         alignment   CDATA   "left"
242         help        CDATA   ""
243     >
244 <!ELEMENT Playlist (Slider)?>
245     <!ATTLIST Playlist
246         id          CDATA   #REQUIRED
247         visible     CDATA   "true"
248         x           CDATA   "0"
249         y           CDATA   "0"
250         width       CDATA   "0"
251         height      CDATA   "0"
252         lefttop     CDATA   "lefttop"
253         rightbottom CDATA   "lefttop"
254         xkeepratio  CDATA   "false"
255         ykeepratio  CDATA   "false"
256         font        CDATA   #REQUIRED
257         bgimage     CDATA   "none"
258         fgcolor     CDATA   "#000000"
259         playcolor   CDATA   "#FF0000"
260         bgcolor1    CDATA   "#FFFFFF"
261         bgcolor2    CDATA   "#FFFFFF"
262         selcolor    CDATA   "#0000FF"
263         help        CDATA   ""
264     >
265 <!ELEMENT Playtree (Slider)?>
266     <!ATTLIST Playtree
267         id          CDATA   #REQUIRED
268         visible     CDATA   "true"
269         x           CDATA   "0"
270         y           CDATA   "0"
271         width       CDATA   "0"
272         height      CDATA   "0"
273         lefttop     CDATA   "lefttop"
274         rightbottom CDATA   "lefttop"
275         xkeepratio  CDATA   "false"
276         ykeepratio  CDATA   "false"
277         font        CDATA   #REQUIRED
278         bgimage     CDATA   "none"
279         itemimage   CDATA   "none"
280         openimage   CDATA   "none"
281         closedimage CDATA   "none"
282         fgcolor     CDATA   "#000000"
283         playcolor   CDATA   "#FF0000"
284         bgcolor1    CDATA   "#FFFFFF"
285         bgcolor2    CDATA   "#FFFFFF"
286         selcolor    CDATA   "#0000FF"
287         help        CDATA   ""
288         flat        CDATA   "false"
289     >
290 <!ELEMENT Video EMPTY>
291     <!ATTLIST Video
292         id          CDATA   "none"
293         visible     CDATA   "true"
294         x           CDATA   "0"
295         y           CDATA   "0"
296         width       CDATA   "0"
297         height      CDATA   "0"
298         lefttop     CDATA   "lefttop"
299         rightbottom CDATA   "lefttop"
300         xkeepratio  CDATA   "false"
301         ykeepratio  CDATA   "false"
302         autoresize  CDATA   "true"
303         help        CDATA   ""
304     >