office-gobmx/chart2/NOTES
Björn Milcke 3fe1d17a07 drafts namespace of API removed
public API moved to offapi
Calc as DataEditor - first integration
2004-01-26 08:13:31 +00:00

144 lines
4.7 KiB
Text

#*************************************************************************
#
# $RCSfile: NOTES,v $
#
# $Revision: 1.3 $
#
# last change: $Author: bm $ $Date: 2004-01-26 09:11:43 $
#
# 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 WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES 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: 2002 by Sun Microsystems, Inc.
#
# All Rights Reserved.
#
# Contributor(s): _______________________________________
#
#*************************************************************************
NOTES
=====
Activate the New Chart
----------------------
After installation of an Office, you will still get the old chart
implementation. In order to get the new implementation you have to activate it
via the configuration.
Set the boolean Config-Item Office.Common/Internal:DevelopmentChart to true.
HOW-TO:
* Open the file Common.xcu of the Registry.
Location on Unix:
$HOME/StarOffice7/user/registry/data/org/openoffice/Office/Common.xcu
Location on Windows:
"%UserProfile%\Application Data\StarOffice7\user\registry\data\org\openoffice\Office\Common.xcu"
* Under the configuration-node "Internal" (see <node oor:name="Internal"> tag)
you have to add the property "DevelopmentChart" and set this to "true":
* Add the following after the "Internal"-node:
<prop oor:name="DevelopmentChart" oor:type="xs:boolean">
<value>true</value>
</prop>
After that, your Common.xcu may look like this:
,----[ Common.xcu example ]
| <?xml version="1.0" encoding="UTF-8"?>
| <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Common" oor:package="org.openoffice.Office">
| <node oor:name="Internal">
| <prop oor:name="DevelopmentChart" oor:type="xs:boolean">
| <value>true</value>
| </prop>
| <prop oor:name="CurrentTempURL" oor:type="xs:string">
| <value/>
| </prop>
| </node>
| <node oor:name="Help">
| <node oor:name="Registration">
| <prop oor:name="ReminderDate" oor:type="xs:string">
| <value xsi:nil="true"/>
| </prop>
| <prop oor:name="RequestDialog" oor:type="xs:int">
| <value>0</value>
| </prop>
| </node>
| </node>
| <node oor:name="Misc">
| <prop oor:name="FirstRun" oor:type="xs:boolean">
| <value>false</value>
| </prop>
| </node>
| </oor:component-data>
`----
* To switch back, you can either replace the "true" by a "false", or you can
delete the complete "DevelopmentChart" property (the three lines) you
inserted.
FileDataSource
--------------
For testing the FileDataSource: Currently the following files are read (hard-coded)
* Win: D:\files\data.chd
* Unix: /work/data/data.chd
You can find sample data in workbench/sampledata
Testing
-------
* To create a chart using the abovementioned file for data, Call the menu item
'File/Save all'. To rebuild the chart call 'File/Save'.
* You can also create a chart from spreadsheet data.
* To run a test for the old API run "dmake" in the qa subdirectory.