skin.dtd 9.35 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
<!-- version 2.0
-->


<!ELEMENT Theme (ThemeInfo,(Include|IniFile|Bitmap|BitmapFont|Font|PopupMenu|Window)*)>
    <!ATTLIST Theme
        version     CDATA   #REQUIRED
        tooltipfont CDATA   "defaultfont"
        magnet      CDATA   "15"
        alpha       CDATA   "255"
        movealpha   CDATA   "255"
    >

<!-- main elements -->
<!ELEMENT IniFile EMPTY>
    <!ATTLIST IniFile
        id          CDATA   #REQUIRED
        file        CDATA   #REQUIRED
    >
<!ELEMENT Include EMPTY>
    <!ATTLIST Include
        file        CDATA   #REQUIRED
    >
<!ELEMENT Bitmap (SubBitmap)*>
    <!ATTLIST Bitmap
        id          CDATA   #REQUIRED
        file        CDATA   #REQUIRED
        alphacolor  CDATA   #REQUIRED
        nbframes    CDATA   "1"
        fps         CDATA   "0"
    >
<!ELEMENT SubBitmap EMPTY>
    <!ATTLIST SubBitmap
        id          CDATA   #REQUIRED
        x           CDATA   #REQUIRED
        y           CDATA   #REQUIRED
        width       CDATA   #REQUIRED
        height      CDATA   #REQUIRED
        nbframes    CDATA   "1"
        fps         CDATA   "0"
    >
<!ELEMENT Font EMPTY>
    <!ATTLIST Font
        id          CDATA   #REQUIRED
        file        CDATA   #REQUIRED
        size        CDATA   "12"
    >
<!ELEMENT BitmapFont EMPTY>
    <!ATTLIST BitmapFont
        id          CDATA   #REQUIRED
        file        CDATA   #REQUIRED
        type        CDATA   "digits"
    >
<!ELEMENT PopupMenu (MenuItem|MenuSeparator)+>
    <!ATTLIST PopupMenu
        id          CDATA   #REQUIRED
    >
<!ELEMENT MenuItem EMPTY>
    <!ATTLIST MenuItem
        label       CDATA   #REQUIRED
        action      CDATA   "none"
    >
<!ELEMENT MenuSeparator EMPTY>
<!ELEMENT ThemeInfo EMPTY>
    <!ATTLIST ThemeInfo
        name        CDATA   #IMPLIED
        author      CDATA   #IMPLIED
        email       CDATA   #IMPLIED
        webpage     CDATA   #IMPLIED
    >
<!ELEMENT Window (Layout)+>
    <!ATTLIST Window
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        dragdrop    CDATA   "true"
        playondrop  CDATA   "true"
    >
<!ELEMENT Layout (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
                  Anchor|Video|Playtree|Panel)+>
    <!ATTLIST Layout
        id          CDATA   "none"
        width       CDATA   #REQUIRED
        height      CDATA   #REQUIRED
        minwidth    CDATA   "-1"
        maxwidth    CDATA   "-1"
        minheight   CDATA   "-1"
        maxheight   CDATA   "-1"
    >
<!-- Grouping elements -->
<!ELEMENT Group (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
                 Anchor|Video|Playtree|Panel)+>
Daniel Dreibrodt's avatar
Daniel Dreibrodt committed
94 95
    <!ATTLIST Group
        id          CDATA   "none"
96 97 98 99 100
        x           CDATA   "0"
        y           CDATA   "0"
    >
<!ELEMENT Panel (Group|Image|Button|Playlist|Slider|RadialSlider|Text|Checkbox|
                 Anchor|Video|Playtree|Panel)+>
Daniel Dreibrodt's avatar
Daniel Dreibrodt committed
101 102
    <!ATTLIST Panel
        id          CDATA   "none"
103 104 105 106 107 108 109 110 111 112 113 114
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        width       CDATA   #REQUIRED
        height      CDATA   #REQUIRED
    >

<!-- Anchors -->
<!ELEMENT Anchor EMPTY>
Daniel Dreibrodt's avatar
Daniel Dreibrodt committed
115 116
    <!ATTLIST Anchor
        id          CDATA   "none"
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        priority    CDATA   #REQUIRED
        points      CDATA   "(0,0)"
        range       CDATA   "10"
    >

<!-- Controls -->
<!ELEMENT Image EMPTY>
    <!ATTLIST Image
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        image       CDATA   #REQUIRED
        action      CDATA   "none"
        action2     CDATA   "none"
        resize      CDATA   "mosaic"
        help        CDATA   ""
    >
<!ELEMENT Button EMPTY>
    <!ATTLIST Button
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        up          CDATA   #REQUIRED
        down        CDATA   "none"
        over        CDATA   "none"
        action      CDATA   "none"
        tooltiptext CDATA   ""
        help        CDATA   ""
    >
<!ELEMENT Checkbox EMPTY>
    <!ATTLIST Checkbox
        id           CDATA   "none"
        visible      CDATA   "true"
        x            CDATA   "0"
        y            CDATA   "0"
        lefttop      CDATA   "lefttop"
        rightbottom  CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        up1          CDATA   #REQUIRED
        down1        CDATA   "none"
        over1        CDATA   "none"
        up2          CDATA   #REQUIRED
        down2        CDATA   "none"
        over2        CDATA   "none"
        state        CDATA   #REQUIRED
        action1      CDATA   "none"
        action2      CDATA   "none"
        tooltiptext1 CDATA   ""
        tooltiptext2 CDATA   ""
        help         CDATA   ""
    >
<!ELEMENT Slider (SliderBackground)?>
    <!ATTLIST Slider
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        up          CDATA   #REQUIRED
        down        CDATA   "none"
        over        CDATA   "none"
        points      CDATA   #REQUIRED
        thickness   CDATA   "10"
        value       CDATA   "none"
        background  CDATA   "none"
        tooltiptext CDATA   ""
        help        CDATA   ""
    >
<!ELEMENT SliderBackground EMPTY>
    <!ATTLIST SliderBackground
        id          CDATA   "none"
        image       CDATA   #REQUIRED
        nbhoriz     CDATA   "1"
        nbvert      CDATA   "1"
        padhoriz    CDATA   "0"
        padvert     CDATA   "0"
    >
<!ELEMENT RadialSlider EMPTY>
    <!ATTLIST RadialSlider
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        sequence    CDATA   #REQUIRED
        nbimages    CDATA   #REQUIRED
        minangle    CDATA   "0"
        maxangle    CDATA   "360"
        value       CDATA   "none"
        tooltiptext CDATA   ""
        help        CDATA   ""
    >
<!ELEMENT Text EMPTY>
    <!ATTLIST Text
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        width       CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        text        CDATA   ""
        font        CDATA   #REQUIRED
        color       CDATA   "#000000"
        scrolling   CDATA   "auto"
        alignment   CDATA   "left"
        help        CDATA   ""
    >
<!ELEMENT Playlist (Slider)?>
    <!ATTLIST Playlist
        id          CDATA   #REQUIRED
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        width       CDATA   "0"
        height      CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        font        CDATA   #REQUIRED
        bgimage     CDATA   "none"
        fgcolor     CDATA   "#000000"
        playcolor   CDATA   "#FF0000"
        bgcolor1    CDATA   "#FFFFFF"
        bgcolor2    CDATA   "#FFFFFF"
        selcolor    CDATA   "#0000FF"
        help        CDATA   ""
    >
<!ELEMENT Playtree (Slider)?>
    <!ATTLIST Playtree
        id          CDATA   #REQUIRED
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        width       CDATA   "0"
        height      CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        font        CDATA   #REQUIRED
        bgimage     CDATA   "none"
        itemimage   CDATA   "none"
        openimage   CDATA   "none"
        closedimage CDATA   "none"
        fgcolor     CDATA   "#000000"
        playcolor   CDATA   "#FF0000"
        bgcolor1    CDATA   "#FFFFFF"
        bgcolor2    CDATA   "#FFFFFF"
        selcolor    CDATA   "#0000FF"
        help        CDATA   ""
        flat        CDATA   "false"
    >
<!ELEMENT Video EMPTY>
    <!ATTLIST Video
        id          CDATA   "none"
        visible     CDATA   "true"
        x           CDATA   "0"
        y           CDATA   "0"
        width       CDATA   "0"
        height      CDATA   "0"
        lefttop     CDATA   "lefttop"
        rightbottom CDATA   "lefttop"
        xkeepratio  CDATA   "false"
        ykeepratio  CDATA   "false"
        autoresize  CDATA   "true"
        help        CDATA   ""
    >