home *** CD-ROM | disk | FTP | other *** search
/ Kompuutteri Kaikille K-CD 2002 #3 / K-CD_2002-03.iso / OpenOffice / f_0247 / chart.mod
Text File  |  2001-07-24  |  9KB  |  257 lines

  1. <!--
  2.     $Id: chart.mod,v 1.24 2001/07/24 11:23:13 cl Exp $
  3.  
  4.    The Contents of this file are made available subject to the terms of
  5.    either of the following licenses
  6.  
  7.           - GNU Lesser General Public License Version 2.1
  8.           - Sun Industry Standards Source License Version 1.1
  9.  
  10.    Sun Microsystems Inc., October, 2000
  11.  
  12.    GNU Lesser General Public License Version 2.1
  13.    =============================================
  14.    Copyright 2000 by Sun Microsystems, Inc.
  15.    901 San Antonio Road, Palo Alto, CA 94303, USA
  16.  
  17.    This library is free software; you can redistribute it and/or
  18.    modify it under the terms of the GNU Lesser General Public
  19.    License version 2.1, as published by the Free Software Foundation.
  20.  
  21.    This library is distributed in the hope that it will be useful,
  22.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  24.    Lesser General Public License for more details.
  25.  
  26.    You should have received a copy of the GNU Lesser General Public
  27.    License along with this library; if not, write to the Free Software
  28.    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29.    MA  02111-1307  USA
  30.  
  31.  
  32.    Sun Industry Standards Source License Version 1.1
  33.    =================================================
  34.    The contents of this file are subject to the Sun Industry Standards
  35.    Source License Version 1.1 (the "License"); You may not use this file
  36.    except in compliance with the License. You may obtain a copy of the
  37.    License at http://www.openoffice.org/license.html.
  38.  
  39.    Software provided under this License is provided on an "AS IS" basis,
  40.    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
  41.    WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  42.    MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  43.    See the License for the specific provisions governing your rights and
  44.    obligations concerning the Software.
  45.  
  46.    The Initial Developer of the Original Code is: Sun Microsystems, Inc.
  47.  
  48.    Copyright: 2000 by Sun Microsystems, Inc.
  49.  
  50.    All Rights Reserved.
  51.  
  52.    Contributor(s): _______________________________________
  53.  
  54. -->
  55.  
  56.  
  57. <!ENTITY % chart-class "(line|area|circle|ring|scatter|radar|bar|stock|add-in)">
  58. <!ENTITY % chart-solid-type "(cuboid|cylinder|cone|pyramid)">
  59.  
  60. <!-- Chart element -->
  61. <!ELEMENT chart:chart ( chart:title?, chart:subtitle?, chart:legend?,
  62.                         chart:plot-area,
  63.                         table:table? )>
  64. <!ATTLIST chart:chart
  65.           chart:class %chart-class; #REQUIRED
  66.           chart:add-in-name %string; #IMPLIED
  67.           chart:table-number-list %string; #IMPLIED
  68.           draw:name %string; #IMPLIED
  69.           %draw-position;
  70.           %draw-size;
  71.           %draw-style-name;
  72.           chart:style-name %styleName; #IMPLIED>
  73.  
  74. <!ATTLIST chart:chart %presentation-class; >
  75. <!ATTLIST chart:chart %zindex;>
  76. <!ATTLIST chart:chart %draw-end-position; >
  77. <!ATTLIST chart:chart draw:id %draw-shape-id; >
  78. <!ATTLIST chart:chart draw:layer %layerName; #IMPLIED>
  79.  
  80. <!ATTLIST style:properties
  81.           chart:scale-text %boolean; "true"
  82.           chart:stock-updown-bars %boolean; "false"
  83.           chart:stock-with-volume %boolean; "false"
  84.           chart:three-dimensional %boolean; "false"
  85.           chart:deep %boolean; "false"
  86.           chart:lines %boolean; "false"
  87.           chart:percentage %boolean; "false"
  88.           chart:solid-type %chart-solid-type; "cuboid"
  89.           chart:splines %nonNegativeInteger; "0"
  90.           chart:stacked %boolean; "false"
  91.           chart:symbol %integer; "-1"
  92.           chart:vertical %boolean; "false"
  93.           chart:lines-used %nonNegativeInteger; "0"
  94.           chart:connect-bars %boolean; "false">
  95.  
  96. <!-- Main/Sub Title -->
  97. <!-- the cell-address attribute is currently not supported for titles -->
  98. <!ELEMENT chart:title (text:p)?>
  99. <!ATTLIST chart:title
  100.           table:cell-range %cell-address; #IMPLIED
  101.           svg:x %coordinate; #IMPLIED
  102.           svg:y %coordinate; #IMPLIED
  103.           chart:style-name %styleName; #IMPLIED >
  104.  
  105. <!ELEMENT chart:subtitle (text:p)?>
  106. <!ATTLIST chart:subtitle
  107.           table:cell-range %cell-address; #IMPLIED
  108.           svg:x %coordinate; #IMPLIED
  109.           svg:y %coordinate; #IMPLIED
  110.           chart:style-name %styleName; #IMPLIED >
  111.  
  112. <!-- you must specify either a legend-position or both, x and y coordinates -->
  113. <!ELEMENT chart:legend EMPTY>
  114. <!ATTLIST chart:legend
  115.           chart:legend-position (top|left|bottom|right) "right"
  116.           svg:x %coordinate; #IMPLIED
  117.           svg:y %coordinate; #IMPLIED
  118.           chart:style-name %styleName; #IMPLIED >
  119.  
  120. <!-- Plot-Area specification -->
  121.  
  122. <!ELEMENT chart:plot-area (dr3d:light*,
  123.                            chart:axis*,
  124.                            chart:categories?,
  125.                            chart:series*,
  126.                            chart:wall?,
  127.                            chart:floor?) >
  128.  
  129. <!ATTLIST chart:plot-area
  130.           svg:x %coordinate; #IMPLIED
  131.           svg:y %coordinate; #IMPLIED
  132.           svg:width %length; #IMPLIED
  133.           svg:height %length; #IMPLIED
  134.           chart:style-name %styleName; #IMPLIED
  135.           table:cell-range-address %cell-range-address; #IMPLIED
  136.           chart:table-number-list %string; #IMPLIED
  137.           chart:data-source-has-labels (none|row|column|both) "none" >
  138.  
  139. <!-- 3d scene attributes on plot-area -->
  140. <!ATTLIST chart:plot-area
  141.           dr3d:vrp %vector3D; #IMPLIED
  142.           dr3d:vpn %vector3D; #IMPLIED
  143.           dr3d:vup %vector3D; #IMPLIED
  144.           dr3d:projection (parallel|perspective) #IMPLIED
  145.           dr3d:transform CDATA #IMPLIED
  146.           dr3d:distance %length; #IMPLIED
  147.           dr3d:focal-length %length; #IMPLIED
  148.           dr3d:shadow-slant %nonNegativeInteger; #IMPLIED
  149.           dr3d:shade-mode (flat|phong|gouraud|draft) #IMPLIED
  150.           dr3d:ambient-color %color; #IMPLIED
  151.           dr3d:lighting-mode %boolean; #IMPLIED >
  152.  
  153. <!ATTLIST style:properties
  154.           chart:series-source (columns|rows) "columns" >
  155.  
  156. <!ELEMENT chart:wall EMPTY>
  157. <!ATTLIST chart:wall
  158.           svg:width %length; #IMPLIED
  159.           chart:style-name %styleName; #IMPLIED >
  160.  
  161. <!ELEMENT chart:floor EMPTY>
  162. <!ATTLIST chart:floor
  163.           svg:width %length; #IMPLIED
  164.           chart:style-name %styleName; #IMPLIED >
  165.  
  166. <!-- Axis -->
  167.  
  168. <!ELEMENT chart:axis (chart:title?, chart:grid*)>
  169. <!ATTLIST chart:axis
  170.           chart:class (category|value|series|domain) #REQUIRED
  171.           chart:name %string; #IMPLIED
  172.           chart:style-name %styleName; #IMPLIED >
  173.  
  174. <!ATTLIST style:properties
  175.           chart:tick-marks-major-inner %boolean; "false"
  176.           chart:tick-marks-major-outer %boolean; "true"
  177.           chart:tick-marks-minor-inner %boolean; "false"
  178.           chart:tick-marks-minor-outer %boolean; "false"
  179.           chart:logarithmic %boolean; "false"
  180.           chart:maximum %float; #IMPLIED
  181.           chart:minimum %float; #IMPLIED
  182.           chart:origin %float; #IMPLIED
  183.           chart:interval-major %float; #IMPLIED
  184.           chart:interval-minor %float; #IMPLIED
  185.           chart:gap-width %integer; #IMPLIED
  186.           chart:overlap %integer; #IMPLIED
  187.           text:line-break %boolean; "true"
  188.           chart:display-label %boolean; "true"
  189.           chart:label-arrangement (side-by-side|stagger-even|stagger-odd) "side-by-side" 
  190.           chart:visible %boolean; "true" 
  191.           chart:link-data-style-to-source %boolean; "true" >
  192.  
  193. <!ELEMENT chart:grid EMPTY>
  194. <!ATTLIST chart:grid
  195.           chart:class (major|minor) "major"
  196.           chart:style-name %styleName; #IMPLIED >
  197.  
  198.  
  199. <!ELEMENT chart:categories EMPTY>
  200. <!ATTLIST chart:categories
  201.           table:cell-range-address %cell-range-address; #REQUIRED >
  202.  
  203. <!--
  204.     each series element must have an cell-range-address element that points
  205.     to the underlying table data.
  206.     Impl. Note: Internally all href elements are merged to one table range
  207.     that represents the data for the whole chart
  208. -->
  209. <!ELEMENT chart:series ( chart:domain*,
  210.                          chart:data-point* )>
  211. <!ATTLIST chart:series
  212.           chart:values-cell-range-address %cell-range-address; #IMPLIED
  213.           chart:label-cell-address %cell-address; #IMPLIED
  214.           chart:class %chart-class; #IMPLIED
  215.           chart:attached-axis %string; #IMPLIED
  216.           chart:style-name %styleName; #IMPLIED >
  217.  
  218. <!ELEMENT chart:domain EMPTY>
  219. <!ATTLIST chart:domain
  220.           table:cell-range-address %cell-range-address; #IMPLIED >
  221.  
  222. <!ELEMENT chart:data-point EMPTY>
  223. <!ATTLIST chart:data-point
  224.           chart:repeated %nonNegativeInteger; #IMPLIED
  225.           chart:style-name %styleName; #IMPLIED >
  226.  
  227. <!-- statistical properties -->
  228.  
  229. <!ATTLIST style:properties
  230.           chart:mean-value %boolean; #IMPLIED
  231.           chart:error-category (none|variance|standard-deviation|percentage|error-margin|constant) "none"
  232.           chart:error-percentage %float; #IMPLIED
  233.           chart:error-margin %float; #IMPLIED
  234.           chart:error-lower-limit %float; #IMPLIED
  235.           chart:error-upper-limit %float; #IMPLIED
  236.           chart:error-upper-indicator %boolean; #IMPLIED
  237.           chart:error-lower-indicator %boolean; #IMPLIED
  238.           chart:regression-type (none|linear|logarithmic|exponential|power) "none" >
  239.  
  240. <!-- data label properties -->
  241.  
  242. <!ATTLIST style:properties
  243.           chart:data-label-number (none|value|percentage) "none"
  244.           chart:data-label-text %boolean; "false"
  245.           chart:data-label-symbol %boolean; "false" >
  246.  
  247. <!-- general text properties -->
  248.  
  249. <!ATTLIST style:properties text:rotation-angle %integer; "0" >
  250.  
  251. <!-- symbol properties -->
  252.  
  253. <!ATTLIST style:properties
  254.           chart:symbol-width %nonNegativeLength; #IMPLIED
  255.           chart:symbol-height %nonNegativeLength; #IMPLIED
  256.           chart:symbol-image-name %string; #IMPLIED >
  257.