office-gobmx/xmloff/dtd/drawing.mod

305 lines
15 KiB
Modula-2
Raw Normal View History

2000-09-29 10:16:04 -05:00
<!--
2000-10-19 04:16:12 -05:00
$Id: drawing.mod,v 1.3 2000-10-19 10:13:54 dr Exp $
2000-09-29 10:16:04 -05:00
The Contents of this file are made available subject to the terms of
either of the following licenses
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
- GNU Lesser General Public License Version 2.1
- Sun Industry Standards Source License Version 1.1
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
Sun Microsystems Inc., October, 2000
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
GNU Lesser General Public License Version 2.1
=============================================
Copyright 2000 by Sun Microsystems, Inc.
901 San Antonio Road, Palo Alto, CA 94303, USA
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
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.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
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.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
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
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
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.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
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.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
The Initial Developer of the Original Code is: Sun Microsystems, Inc..
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
Copyright: 2000 by Sun Microsystems, Inc.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
All Rights Reserved.
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
Contributor(s): _______________________________________
2000-10-19 04:16:12 -05:00
2000-09-29 10:16:04 -05:00
-->
<!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; #IMPLIED presentation:style-name %styleName; #IMPLIED">
<!-- 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" -->
<!ENTITY % presentation-class "presentation:class %presentation-classes; #IMPLIED presentation:placeholder (true|false) #IMPLIED">
2000-09-29 10:16:04 -05:00
<!-- 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; >
<!ELEMENT draw:page-thumbnail EMPTY>
<!ATTLIST draw:page-thumbnail %draw-position; >
<!ATTLIST draw:page-thumbnail %draw-size; >
<!ATTLIST draw:page-thumbnail %draw-style-name; >
<!ATTLIST draw:page-thumbnail %presentation-class; >
2000-09-29 10:16:04 -05:00
<!ELEMENT text:text-box (text:p)*>
<!ATTLIST text:text-box %draw-position; >
<!ATTLIST text:text-box %draw-size; >
<!ATTLIST text:text-box %draw-style-name; >
<!ATTLIST text:text-box %presentation-class; >
<!ATTLIST text:text-box %draw-transform; >
2000-09-29 10:16:04 -05:00
<!-- 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 %styleName; #IMPLIED>
<!ATTLIST style:properties draw:marker-end %styleName; #IMPLIED>
2000-09-29 10:16:04 -05:00
<!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-offset-x %length; #IMPLIED>
<!ATTLIST style:properties draw:shadow-offset-y %length; #IMPLIED>
2000-09-29 10:16:04 -05:00
<!ATTLIST style:properties draw:shadow-color %color; #IMPLIED>
<!ATTLIST style:properties draw:shadow-transparency CDATA #IMPLIED>
2000-09-29 10:16:04 -05:00
<!-- 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">