xref: /aoo4110/main/framework/dtd/image.dtd (revision b1cdbd2c)
1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22
23
24
25<!ENTITY % url "CDATA">
26
27<!-- URI reference -->
28<!ENTITY % uriReference "CDATA">
29
30<!-- a color value having the format #rrggbb -->
31<!ENTITY % color				"CDATA">
32
33<!-- determine the mask mode of the image bitmap -->
34<!ENTITY % maskMode "(maskcolor|maskbitmap)">
35
36<!ELEMENT image:entry EMPTY>
37<!ATTLIST image:entry
38	image:command %url; #REQUIRED
39	image:bitmap-index CDATA #REQUIRED
40>
41
42<!ELEMENT image:externalentry EMPTY>
43<!ATTLIST image:externalentry
44	image:command %url; #REQUIRED
45	xlink:href %uriReference; #REQUIRED
46	xlink:type CDATA #FIXED "simple"
47>
48
49<!ELEMENT image:externalimages (image:externalentry*)>
50<!ELEMENT image:images (image:entry*)>
51<!ATTLIST image:images
52	xlink:href %uriReference; #REQUIRED
53	xlink:type CDATA #FIXED "simple"
54	image:maskmode %maskMode; "maskcolor"
55	image:maskcolor %color; "#000000"
56	image:maskurl %url; #IMPLIED
57>
58
59<!ELEMENT image:imagescontainer (image:images*, image:externalimages?)>
60<!ATTLIST image:imagescontainer
61	xmlns:image CDATA #FIXED "http://openoffice.org/2001/image"
62	xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"
63>
64