diff options
author | Martin Hollmichel <mh@openoffice.org> | 2000-09-29 15:16:04 +0000 |
---|---|---|
committer | Martin Hollmichel <mh@openoffice.org> | 2000-09-29 15:16:04 +0000 |
commit | b011a32f60633ced379efb623b6a963f58efc159 (patch) | |
tree | e6319357d33a342fc1b8498b4cd19344c6756171 /xmloff/dtd/drawing.mod | |
parent | b089ecf809a78e396d94b371eb1cd87ec9c726d2 (diff) |
initial import
Diffstat (limited to 'xmloff/dtd/drawing.mod')
-rw-r--r-- | xmloff/dtd/drawing.mod | 297 |
1 files changed, 297 insertions, 0 deletions
diff --git a/xmloff/dtd/drawing.mod b/xmloff/dtd/drawing.mod new file mode 100644 index 000000000000..ff1d53e12178 --- /dev/null +++ b/xmloff/dtd/drawing.mod @@ -0,0 +1,297 @@ +<!-- + $Id: drawing.mod,v 1.1 2000-09-29 16:16:03 mh Exp $ + + The Contents of this file are made available subject to the terms of + either of the following licenses + + - GNU Lesser General Public License Version 2.1 + - Sun Industry Standards Source License Version 1.1 + + Sun Microsystems Inc., October, 2000 + + GNU Lesser General Public License Version 2.1 + ============================================= + Copyright 2000 by Sun Microsystems, Inc. + 901 San Antonio Road, Palo Alto, CA 94303, USA + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License version 2.1, as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, + MA 02111-1307 USA + + + Sun Industry Standards Source License Version 1.1 + ================================================= + The contents of this file are subject to the Sun Industry Standards + Source License Version 1.1 (the "License"); You may not use this file + except in compliance with the License. You may obtain a copy of the + License at http://www.openoffice.org/license.html. + + Software provided under this License is provided on an "AS IS" basis, + WITHOUT WARRUNTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, + WITHOUT LIMITATION, WARRUNTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + See the License for the specific provisions governing your rights and + obligations concerning the Software. + + The Initial Developer of the Original Code is: Sun Microsystems, Inc.. + + Copyright: 2000 by Sun Microsystems, Inc. + + All Rights Reserved. + + Contributor(s): _______________________________________ + +--> + +<!ENTITY % points "CDATA" > +<!ENTITY % pathData "CDATA" > +<!ENTITY % gradient-style "(linear|axial|radial|ellipsoid|square|rectangular)" > +<!ENTITY % draw-position "svg:x %coordinate; #IMPLIED svg:y %coordinate; #IMPLIED"> +<!ENTITY % draw-size "svg:width %coordinate; #IMPLIED svg:height %coordinate; #IMPLIED"> +<!ENTITY % draw-transform "svg:transform CDATA #IMPLIED"> +<!ENTITY % draw-viewbox "svg:viewbox CDATA #REQUIRED"> +<!ENTITY % draw-style-name "draw:style-name %styleName; #REQUIRED"> + +<!-- Drawing shapes --> +<!ELEMENT draw:rect (text:p)*> +<!ATTLIST draw:rect %draw-position; > +<!ATTLIST draw:rect %draw-size; > +<!ATTLIST draw:rect %draw-style-name; > +<!ATTLIST draw:rect %draw-transform; > +<!ATTLIST draw:rect draw:corner-radius %nonNegativeLength; #IMPLIED> + +<!ELEMENT draw:line (text:p)*> +<!ATTLIST draw:line svg:x1 %length; #REQUIRED> +<!ATTLIST draw:line svg:y1 %length; #REQUIRED> +<!ATTLIST draw:line svg:x2 %length; #REQUIRED> +<!ATTLIST draw:line svg:y2 %length; #REQUIRED> +<!ATTLIST draw:line %draw-style-name; > +<!ATTLIST draw:line %draw-transform; > + +<!ELEMENT draw:polyline (text:p)* > +<!ATTLIST draw:polyline %draw-position; > +<!ATTLIST draw:polyline %draw-size; > +<!ATTLIST draw:polyline %draw-viewbox; > +<!ATTLIST draw:polyline draw:points %points; #REQUIRED> +<!ATTLIST draw:polyline %draw-style-name; > +<!ATTLIST draw:polyline %draw-transform; > + +<!ELEMENT draw:polygon (text:p*) > +<!ATTLIST draw:polygon %draw-position; > +<!ATTLIST draw:polygon %draw-size; > +<!ATTLIST draw:polygon draw:points %points; #REQUIRED > +<!ATTLIST draw:polygon %draw-style-name; > +<!ATTLIST draw:polygon %draw-transform; > + +<!ELEMENT draw:polygonpath (text:p)* > +<!ATTLIST draw:polygonpath %draw-position;> +<!ATTLIST draw:polygonpath %draw-viewbox; > +<!ATTLIST draw:polygonpath svg:d %pathData; #REQUIRED > +<!ATTLIST draw:polygonpath %draw-style-name; > +<!ATTLIST draw:polygonpath %draw-transform; > + +<!ELEMENT draw:circle (text:p)* > +<!ATTLIST draw:circle svg:cx %length; #REQUIRED > +<!ATTLIST draw:circle svg:cy %length; #REQUIRED > +<!ATTLIST draw:circle svg:r %nonNegativeLength; #REQUIRED > +<!ATTLIST draw:circle %draw-style-name; > +<!ATTLIST draw:circle %draw-transform; > + +<!ELEMENT draw:ellipse (text:p)* > +<!ATTLIST draw:ellipse svg:cx %length; #REQUIRED > +<!ATTLIST draw:ellipse svg:cy %length; #REQUIRED > +<!ATTLIST draw:ellipse svg:rx %length; #REQUIRED > +<!ATTLIST draw:ellipse svg:ry %length; #REQUIRED > +<!ATTLIST draw:ellipse %draw-style-name; > +<!ATTLIST draw:ellipse %draw-transform; > + +<!ELEMENT draw:g (%shapes;)* > +<!ATTLIST draw:g %draw-transform; > + +<!-- commont presentation shape attributes --> +<!ENTITY % presentation-style-name "presentation:style-name %styleName; #IMPLIED"> +<!ENTITY % presentation-classes "title|outline|subtitle|text|graphic|object|chart|table|orgchart|page|notes" > +<!ENTITY % presentation-class "presentation:class %presentation-classes; #IMPLIED"> + + +<!-- graphic style elements --> +<!ELEMENT draw:gradient EMPTY > +<!ATTLIST draw:gradient draw:name %styleName; #REQUIRED> +<!ATTLIST draw:gradient draw:style %gradient-style; #REQUIRED> +<!ATTLIST draw:gradient svg:cx %coordinate; #IMPLIED> +<!ATTLIST draw:gradient svg:cy %coordinate; #IMPLIED> +<!ATTLIST draw:gradient draw:start-color %color; #IMPLIED> +<!ATTLIST draw:gradient draw:end-color %color; #IMPLIED> +<!ATTLIST draw:gradient draw:start-intensity %percentage; #IMPLIED> +<!ATTLIST draw:gradient draw:end-intensity %percentage; #IMPLIED> +<!ATTLIST draw:gradient draw:angle %integer; #IMPLIED> +<!ATTLIST draw:gradient draw:border %percentage; #IMPLIED> + +<!ELEMENT draw:hatch EMPTY > +<!ATTLIST draw:hatch draw:name %styleName; #REQUIRED> +<!ATTLIST draw:hatch draw:style (single|double|triple) #REQUIRED > +<!ATTLIST draw:hatch draw:color %color; #IMPLIED> +<!ATTLIST draw:hatch draw:distance %length; #IMPLIED> +<!ATTLIST draw:hatch draw:rotation %integer; #IMPLIED> + +<!ELEMENT draw:fill-image EMPTY > +<!ATTLIST draw:fill-image draw:name %styleName; #REQUIRED> +<!ATTLIST draw:fill-image xlink:href %uriReference; #REQUIRED> +<!ATTLIST draw:fill-image xlink:type (simple) #IMPLIED> +<!ATTLIST draw:fill-image xlink:show (embed) #IMPLIED> +<!ATTLIST draw:fill-image xlink:actuate (onLoad) #IMPLIED> +<!ATTLIST draw:fill-image svg:width %length; #IMPLIED> +<!ATTLIST draw:fill-image svg:height %length; #IMPLIED> + +<!ELEMENT draw:transparency EMPTY> +<!ATTLIST draw:transparency draw:name %styleName; #REQUIRED> +<!ATTLIST draw:transparency draw:style %gradient-style; #REQUIRED> +<!ATTLIST draw:transparency svg:cx %coordinate; #IMPLIED> +<!ATTLIST draw:transparency svg:cy %coordinate; #IMPLIED> +<!ATTLIST draw:transparency draw:start %percentage; #IMPLIED> +<!ATTLIST draw:transparency draw:end %percentage; #IMPLIED> +<!ATTLIST draw:transparency draw:angle %integer; #IMPLIED> +<!ATTLIST draw:transparency draw:border %percentage; #IMPLIED> + +<!ELEMENT draw:marker EMPTY> +<!ATTLIST draw:marker draw:name %styleName; #IMPLIED> +<!ATTLIST draw:marker %draw-viewbox; > +<!ATTLIST draw:marker svg:d %pathData; #REQUIRED> + +<!-- stroke attributes --> +<!ATTLIST style:properties draw:stroke (none|dash|solid) #IMPLIED> +<!ATTLIST style:properties svg:stroke-dasharray CDATA #IMPLIED> +<!ATTLIST style:properties svg:stroke-width %length; #IMPLIED> +<!ATTLIST style:properties svg:stroke-color %color; #IMPLIED> +<!ATTLIST style:properties draw:marker-start (none|%uriReference;) #IMPLIED> +<!ATTLIST style:properties draw:marker-end (none|%uriReference;) #IMPLIED> +<!ATTLIST style:properties draw:marker-start-width %length; #IMPLIED> +<!ATTLIST style:properties draw:marker-end-width %length; #IMPLIED> +<!ATTLIST style:properties draw:marker-start-center %boolean; #IMPLIED> +<!ATTLIST style:properties draw:marker-end-center %boolean; #IMPLIED> +<!ATTLIST style:properties svg:stroke-opacity (%float;|%percentage;) #IMPLIED> +<!ATTLIST style:properties svg:stroke-linejoin (miter|round|bevel|middle|none|inherit) #IMPLIED> + +<!-- fill attributes --> +<!ATTLIST style:properties draw:fill (none|solid|bitmap|gradient|hatch) #IMPLIED> +<!ATTLIST style:properties draw:fill-color %color; #IMPLIED> +<!ATTLIST style:properties draw:fill-gradient-name %styleName; #IMPLIED> +<!ATTLIST style:properties draw:gradient-step-count (auto|%integer;) #IMPLIED> +<!ATTLIST style:properties draw:fill-hatch-name %styleName; #IMPLIED> +<!ATTLIST style:properties draw:fill-image-name %styleName; #IMPLIED> +<!ATTLIST style:properties style:repeat (no-repeat|repeat|stretch) #IMPLIED> +<!ATTLIST style:properties draw:fill-image-width %length; #IMPLIED> +<!ATTLIST style:properties draw:fill-image-height %length; #IMPLIED> +<!ATTLIST style:properties draw:refX %percentage; #IMPLIED> +<!ATTLIST style:properties draw:refY %percentage; #IMPLIED> +<!ATTLIST style:properties draw:tile-repeat-offset CDATA #IMPLIED> +<!ATTLIST style:properties draw:transparency (none|%float;|%percentage;) #IMPLIED> +<!ATTLIST style:properties draw:transparency-name %styleName; #IMPLIED> + +<!-- graphic attributes --> +<!ATTLIST style:properties draw:color-mode (greyscale|mono|watermark|standard) #IMPLIED> +<!ATTLIST style:properties draw:luminance %percentage; #IMPLIED> +<!ATTLIST style:properties draw:contrast %percentage; #IMPLIED> +<!ATTLIST style:properties draw:gamme %percentage; #IMPLIED> +<!ATTLIST style:properties draw:red %percentage; #IMPLIED> +<!ATTLIST style:properties draw:green %percentage; #IMPLIED> +<!ATTLIST style:properties draw:blue %percentage; #IMPLIED> + +<!-- shadow attributes --> +<!ATTLIST style:properties draw:shadow (visible|hidden) #IMPLIED> +<!ATTLIST style:properties draw:shadow-distance-x %length; #IMPLIED> +<!ATTLIST style:properties draw:shadow-distance-y %length; #IMPLIED> +<!ATTLIST style:properties draw:shadow-color %color; #IMPLIED> +<!ATTLIST style:properties draw:shadow-transparency (%float;|%percentage;) #IMPLIED> + +<!-- Master page --> +<!ELEMENT style:master-page (style:style*,(%shapes;)*,presentation:notes?) > +<!ATTLIST style:master-page style:name %styleName; #REQUIRED> +<!ATTLIST style:master-page style:page-master-name %styleName; #REQUIRED> +<!ATTLIST style:master-page draw:style-name %styleName; #IMPLIED> + +<!-- Drawing page --> +<!ELEMENT draw:page ((%shapes;)*,presentation:notes?)> +<!ATTLIST draw:page draw:name %string; #IMPLIED> +<!ATTLIST draw:page draw:style-name %styleName; #IMPLIED> +<!ATTLIST draw:page draw:master-page-name %styleName; #REQUIRED> +<!ATTLIST draw:page presentation:presentation-page-layout-name %styleName; #IMPLIED> + +<!-- Presentation notes --> +<!ELEMENT presentation:notes (%shapes;)*> + + +<!-- presentation page layouts --> +<!ELEMENT style:presentation-page-layout (presentation:placeholder)* > +<!ATTLIST style:presentation-page-layout style:name %styleName; #REQUIRED> +<!ELEMENT presentation:placeholder EMPTY > +<!ATTLIST presentation:placeholder presentation:object (title|outline|subtitle|text|graphic|object|chart|orgchart|page|notes|handout) #REQUIRED> +<!ATTLIST presentation:placeholder svg:x (%coordinate;|%percentage;) #REQUIRED> +<!ATTLIST presentation:placeholder svg:y (%coordinate;|%percentage;) #REQUIRED> +<!ATTLIST presentation:placeholder svg:width (%length;|%percentage;) #REQUIRED> +<!ATTLIST presentation:placeholder svg:height (%length;|%percentage;) #REQUIRED> + +<!-- presentation page attributes --> +<!ATTLIST style:properties presentation:transition-type (manual|automatic|semi-automatic) #IMPLIED > +<!ATTLIST style:properties presentation:transition-style (none|fade-from-left|fade-from-top|fade-from-right|fade-from-bottom|fade-to-center|fade-from-center|move-from-left|move-from-top|move-from-right|move-from-bottom|roll-from-left|roll-from-right|roll-from-bottom|vertical-stripes|horizontal-stripes|clockwise|counterclockwise|fade-from-upperleft|fade-from-upperright|fade-from-lowerleft|fade-from-lowerright|close-vertical|close-horizontal|open-vertical|open-horizontal|spiralin-left|spiralin-right|spiralout-left|spiralout-right|dissolve|wavyline-from-left|wavyline-from-top|wavyline-from-right|wavyline-from-bottom|random|stretch-from-left|stretch-from-top|stretch-from-right|stretch-from-bottom|vertical-lines|horizontal-lines) #IMPLIED > +<!ATTLIST style:properties presentation:transition-speed (slow|medium|fast) #IMPLIED > +<!ATTLIST style:properties presentation:duration %timeDuration; #IMPLIED> +<!ATTLIST style:properties presentation:visibility (visible|hidden) #IMPLIED> + +<!ELEMENT presentation:sound EMPTY> +<!ATTLIST presentation:sound xlink:href %uriReference; #REQUIRED> +<!ATTLIST presentation:sound xlink:type (simple) #IMPLIED> +<!ATTLIST presentation:sound xlink:show (embed) #IMPLIED> +<!ATTLIST presentation:sound xlink:actuate (onLoad) #IMPLIED> + +<!-- text boxes --> +<!ELEMENT draw:text-box (text:h|text:p|text:ordered-list| + text:unordered-list|table:table|chart:chart| + draw:a|draw:text-box|draw:image)*> +<!ATTLIST draw:text-box draw:style-name %styleName; #IMPLIED> +<!ATTLIST draw:text-box draw:name %string; #IMPLIED> +<!ATTLIST draw:text-box draw:chain-next-name %string; #IMPLIED> + +<!ATTLIST draw:text-box text:anchor-type %anchorType; #IMPLIED> +<!ATTLIST draw:text-box text:anchor-page-number %positiveInteger; #IMPLIED> +<!ATTLIST draw:text-box %draw-position;> +<!ATTLIST draw:text-box svg:width %lengthOrPercentage; #IMPLIED> +<!ATTLIST draw:text-box svg:height %lengthOrPercentage; #IMPLIED> +<!ATTLIST draw:text-box fo:min-height %lengthOrPercentage; #IMPLIED> + +<!-- image --> +<!ELEMENT draw:image (svg:desc?)> +<!ATTLIST draw:image draw:style-name %styleName; #IMPLIED> +<!ATTLIST draw:image draw:name %string; #IMPLIED> +<!ATTLIST draw:image xlink:href %uriReference; #REQUIRED> +<!ATTLIST draw:image xlink:type (simple) #FIXED "simple"> +<!ATTLIST draw:image xlink:show (embed) "embed"> +<!ATTLIST draw:image xlink:actuate (onLoad) "onLoad"> +<!ATTLIST draw:image draw:filter-name %string; #IMPLIED> +<!ATTLIST draw:image text:anchor-type %anchorType; #IMPLIED> +<!ATTLIST draw:image text:anchor-page-number %positiveInteger; #IMPLIED> +<!ATTLIST draw:image %draw-position;> +<!ATTLIST draw:image svg:width %lengthOrPercentage; #IMPLIED> +<!ATTLIST draw:image svg:height %lengthOrPercentage; #IMPLIED> + +<!ELEMENT svg:desc (#PCDATA)> + +<!-- hyperlink --> +<!ELEMENT draw:a (draw:image|draw:text-box)> +<!ATTLIST draw:a xlink:href %uriReference; #REQUIRED> +<!ATTLIST draw:a xlink:type (simple) #FIXED "simple"> +<!ATTLIST draw:a xlink:show (new|replace) #IMPLIED> +<!ATTLIST draw:a xlink:actuate (onRequest) "onRequest"> +<!ATTLIST draw:a office:name %string; #IMPLIED> +<!ATTLIST draw:a office:target-frame-name %string; #IMPLIED> +<!ATTLIST draw:a office:server-map %boolean; "false"> |