home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2002 October / VPR0210A.ISO / OPENOFFICE / f_0260 / chart.mod
Text File  |  2001-12-17  |  10KB  |  282 lines

  1. <!--
  2.     $Id: chart.mod,v 1.28 2001/12/17 10:22:10 bm 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:column-mapping %string; #IMPLIED
  73.           chart:row-mapping %string; #IMPLIED
  74.           chart:style-name %styleName; #IMPLIED>
  75.  
  76. <!ATTLIST chart:chart %presentation-class; >
  77. <!ATTLIST chart:chart %zindex;>
  78. <!ATTLIST chart:chart %draw-end-position; >
  79. <!ATTLIST chart:chart draw:id %draw-shape-id; >
  80. <!ATTLIST chart:chart draw:layer %layerName; #IMPLIED>
  81.  
  82. <!ATTLIST style:properties
  83.           chart:scale-text %boolean; "true"
  84.           chart:stock-updown-bars %boolean; "false"
  85.           chart:stock-with-volume %boolean; "false"
  86.           chart:three-dimensional %boolean; "false"
  87.           chart:deep %boolean; "false"
  88.           chart:lines %boolean; "false"
  89.           chart:percentage %boolean; "false"
  90.           chart:solid-type %chart-solid-type; "cuboid"
  91.           chart:splines %nonNegativeInteger; "0"
  92.           chart:stacked %boolean; "false"
  93.           chart:symbol %integer; "-1"
  94.           chart:vertical %boolean; "false"
  95.           chart:lines-used %nonNegativeInteger; "0"
  96.           chart:connect-bars %boolean; "false"
  97.           chart:spline-order %nonNegativeInteger; "2"
  98.           chart:spline-resolution %nonNegativeInteger; "20"
  99.           chart:pie-offset %nonNegativeInteger; "0">
  100.  
  101. <!-- Main/Sub Title -->
  102. <!-- the cell-address attribute is currently not supported for titles -->
  103. <!ELEMENT chart:title (text:p)?>
  104. <!ATTLIST chart:title
  105.           table:cell-range %cell-address; #IMPLIED
  106.           svg:x %coordinate; #IMPLIED
  107.           svg:y %coordinate; #IMPLIED
  108.           chart:style-name %styleName; #IMPLIED >
  109.  
  110. <!ELEMENT chart:subtitle (text:p)?>
  111. <!ATTLIST chart:subtitle
  112.           table:cell-range %cell-address; #IMPLIED
  113.           svg:x %coordinate; #IMPLIED
  114.           svg:y %coordinate; #IMPLIED
  115.           chart:style-name %styleName; #IMPLIED >
  116.  
  117. <!-- you must specify either a legend-position or both, x and y coordinates -->
  118. <!ELEMENT chart:legend EMPTY>
  119. <!ATTLIST chart:legend
  120.           chart:legend-position (top|left|bottom|right) "right"
  121.           svg:x %coordinate; #IMPLIED
  122.           svg:y %coordinate; #IMPLIED
  123.           chart:style-name %styleName; #IMPLIED >
  124.  
  125. <!-- Plot-Area specification -->
  126.  
  127. <!ELEMENT chart:plot-area (dr3d:light*,
  128.                            chart:axis*,
  129.                            chart:categories?,
  130.                            chart:series*,
  131.                            chart:stock-gain-marker?,
  132.                            chart:stock-loss-marker?,
  133.                            chart:stock-range-line?,
  134.                            chart:wall?,
  135.                            chart:floor?) >
  136.  
  137. <!ATTLIST chart:plot-area
  138.           svg:x %coordinate; #IMPLIED
  139.           svg:y %coordinate; #IMPLIED
  140.           svg:width %length; #IMPLIED
  141.           svg:height %length; #IMPLIED
  142.           chart:style-name %styleName; #IMPLIED
  143.           table:cell-range-address %cell-range-address; #IMPLIED
  144.           chart:table-number-list %string; #IMPLIED
  145.           chart:data-source-has-labels (none|row|column|both) "none" >
  146.  
  147. <!-- 3d scene attributes on plot-area -->
  148. <!ATTLIST chart:plot-area
  149.           dr3d:vrp %vector3D; #IMPLIED
  150.           dr3d:vpn %vector3D; #IMPLIED
  151.           dr3d:vup %vector3D; #IMPLIED
  152.           dr3d:projection (parallel|perspective) #IMPLIED
  153.           dr3d:transform CDATA #IMPLIED
  154.           dr3d:distance %length; #IMPLIED
  155.           dr3d:focal-length %length; #IMPLIED
  156.           dr3d:shadow-slant %nonNegativeInteger; #IMPLIED
  157.           dr3d:shade-mode (flat|phong|gouraud|draft) #IMPLIED
  158.           dr3d:ambient-color %color; #IMPLIED
  159.           dr3d:lighting-mode %boolean; #IMPLIED >
  160.  
  161. <!ATTLIST style:properties
  162.           chart:series-source (columns|rows) "columns" >
  163.  
  164. <!ELEMENT chart:wall EMPTY>
  165. <!ATTLIST chart:wall
  166.           svg:width %length; #IMPLIED
  167.           chart:style-name %styleName; #IMPLIED >
  168.  
  169. <!ELEMENT chart:floor EMPTY>
  170. <!ATTLIST chart:floor
  171.           svg:width %length; #IMPLIED
  172.           chart:style-name %styleName; #IMPLIED >
  173.  
  174. <!-- Stock chart elements -->
  175.  
  176. <!ELEMENT chart:stock-gain-marker EMPTY>
  177. <!ATTLIST chart:stock-gain-marker
  178.           chart:style-name %styleName; #IMPLIED >
  179.  
  180. <!ELEMENT chart:stock-loss-marker EMPTY>
  181. <!ATTLIST chart:stock-loss-marker
  182.           chart:style-name %styleName; #IMPLIED >
  183.  
  184. <!ELEMENT chart:stock-range-line EMPTY>
  185. <!ATTLIST chart:stock-range-line
  186.           chart:style-name %styleName; #IMPLIED >
  187.  
  188. <!-- Axis -->
  189.  
  190. <!ELEMENT chart:axis (chart:title?, chart:grid*)>
  191. <!ATTLIST chart:axis
  192.           chart:class (category|value|series|domain) #REQUIRED
  193.           chart:name %string; #IMPLIED
  194.           chart:style-name %styleName; #IMPLIED >
  195.  
  196. <!ATTLIST style:properties
  197.           chart:tick-marks-major-inner %boolean; "false"
  198.           chart:tick-marks-major-outer %boolean; "true"
  199.           chart:tick-marks-minor-inner %boolean; "false"
  200.           chart:tick-marks-minor-outer %boolean; "false"
  201.           chart:logarithmic %boolean; "false"
  202.           chart:maximum %float; #IMPLIED
  203.           chart:minimum %float; #IMPLIED
  204.           chart:origin %float; #IMPLIED
  205.           chart:interval-major %float; #IMPLIED
  206.           chart:interval-minor %float; #IMPLIED
  207.           chart:gap-width %integer; #IMPLIED
  208.           chart:overlap %integer; #IMPLIED
  209.           text:line-break %boolean; "true"
  210.           chart:display-label %boolean; "true"
  211.           chart:label-arrangement (side-by-side|stagger-even|stagger-odd) "side-by-side"
  212.           chart:text-overlap %boolean; "false"
  213.           chart:visible %boolean; "true" 
  214.           chart:link-data-style-to-source %boolean; "true" >
  215.  
  216. <!ELEMENT chart:grid EMPTY>
  217. <!ATTLIST chart:grid
  218.           chart:class (major|minor) "major"
  219.           chart:style-name %styleName; #IMPLIED >
  220.  
  221.  
  222. <!ELEMENT chart:categories EMPTY>
  223. <!ATTLIST chart:categories
  224.           table:cell-range-address %cell-range-address; #IMPLIED >
  225.  
  226. <!--
  227.     each series element must have an cell-range-address element that points
  228.     to the underlying table data.
  229.     Impl. Note: Internally all href elements are merged to one table range
  230.     that represents the data for the whole chart
  231. -->
  232. <!ELEMENT chart:series ( chart:domain*,
  233.                          chart:data-point* )>
  234. <!ATTLIST chart:series
  235.           chart:values-cell-range-address %cell-range-address; #IMPLIED
  236.           chart:label-cell-address %cell-address; #IMPLIED
  237.           chart:class %chart-class; #IMPLIED
  238.           chart:attached-axis %string; #IMPLIED
  239.           chart:style-name %styleName; #IMPLIED >
  240.  
  241. <!ELEMENT chart:domain EMPTY>
  242. <!ATTLIST chart:domain
  243.           table:cell-range-address %cell-range-address; #IMPLIED >
  244.  
  245. <!ELEMENT chart:data-point EMPTY>
  246. <!ATTLIST chart:data-point
  247.           chart:repeated %nonNegativeInteger; #IMPLIED
  248.           chart:style-name %styleName; #IMPLIED >
  249.  
  250. <!-- statistical properties -->
  251.  
  252. <!ATTLIST style:properties
  253.           chart:mean-value %boolean; #IMPLIED
  254.           chart:error-category (none|variance|standard-deviation|percentage|error-margin|constant) "none"
  255.           chart:error-percentage %float; #IMPLIED
  256.           chart:error-margin %float; #IMPLIED
  257.           chart:error-lower-limit %float; #IMPLIED
  258.           chart:error-upper-limit %float; #IMPLIED
  259.           chart:error-upper-indicator %boolean; #IMPLIED
  260.           chart:error-lower-indicator %boolean; #IMPLIED
  261.           chart:regression-type (none|linear|logarithmic|exponential|power) "none" >
  262.  
  263. <!-- data label properties -->
  264.  
  265. <!ATTLIST style:properties
  266.           chart:data-label-number (none|value|percentage) "none"
  267.           chart:data-label-text %boolean; "false"
  268.           chart:data-label-symbol %boolean; "false" >
  269.  
  270. <!-- general text properties -->
  271.  
  272. <!ATTLIST style:properties 
  273.           text:rotation-angle %integer; "0" 
  274.           fo:direction (ltr|ttb) #IMPLIED >
  275.  
  276. <!-- symbol properties -->
  277.  
  278. <!ATTLIST style:properties
  279.           chart:symbol-width %nonNegativeLength; #IMPLIED
  280.           chart:symbol-height %nonNegativeLength; #IMPLIED
  281.           chart:symbol-image-name %string; #IMPLIED >
  282.