2003-10-06 03:58:36 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2005-09-07 17:36:31 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2005-09-07 17:36:31 -05:00
|
|
|
# $RCSfile: NOTES,v $
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2007-05-22 10:44:35 -05:00
|
|
|
# $Revision: 1.5 $
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2007-05-22 10:44:35 -05:00
|
|
|
# last change: $Author: vg $ $Date: 2007-05-22 16:44:35 $
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2005-09-07 17:36:31 -05:00
|
|
|
# The Contents of this file are made available subject to
|
|
|
|
# the terms of GNU Lesser General Public License Version 2.1.
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
|
|
|
#
|
2005-09-07 17:36:31 -05:00
|
|
|
# GNU Lesser General Public License Version 2.1
|
|
|
|
# =============================================
|
|
|
|
# Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
# 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2005-09-07 17:36:31 -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.
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2005-09-07 17:36:31 -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.
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
2005-09-07 17:36:31 -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
|
2003-10-06 03:58:36 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
NOTES
|
|
|
|
=====
|
|
|
|
|
2004-01-19 04:05:20 -06:00
|
|
|
Activate the New Chart
|
|
|
|
----------------------
|
2003-10-06 03:58:36 -05:00
|
|
|
|
2004-01-19 04:05:20 -06:00
|
|
|
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.
|
2003-10-06 03:58:36 -05:00
|
|
|
|
2004-01-19 04:05:20 -06:00
|
|
|
Set the boolean Config-Item Office.Common/Internal:DevelopmentChart to true.
|
2003-10-06 03:58:36 -05:00
|
|
|
|
2004-01-19 04:05:20 -06:00
|
|
|
HOW-TO:
|
|
|
|
|
|
|
|
* Open the file Common.xcu of the Registry.
|
|
|
|
|
|
|
|
Location on Unix:
|
2007-05-22 10:44:35 -05:00
|
|
|
$HOME/StarOffice8/user/registry/data/org/openoffice/Office/Common.xcu
|
2004-01-19 04:05:20 -06:00
|
|
|
|
|
|
|
Location on Windows:
|
2007-05-22 10:44:35 -05:00
|
|
|
"%UserProfile%\Application Data\StarOffice8\user\registry\data\org\openoffice\Office\Common.xcu"
|
2004-01-19 04:05:20 -06:00
|
|
|
|
|
|
|
* 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.
|
2003-10-06 03:58:36 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
-------
|
|
|
|
|
2004-01-19 04:05:20 -06:00
|
|
|
* 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.
|
2003-10-06 03:58:36 -05:00
|
|
|
|
2007-05-22 10:44:35 -05:00
|
|
|
* To run a test for the old API run "dmake" in the qa subdirectory. Note that
|
|
|
|
you have to deliver the private chart2.rdb (just type "deliver") and call the
|
|
|
|
workbench/officeintegration/install.pl script for registering the private
|
|
|
|
Chart API at the global registry in order to run the test. Currently the test
|
|
|
|
has to use new API, but in the future this will of course no longer be
|
|
|
|
necessary.
|
|
|
|
|
|
|
|
For running the API-test you must have a running office with the correct
|
|
|
|
parameters that allow remote access from external components (like the API
|
|
|
|
test). Use the following command-line argument:
|
|
|
|
|
|
|
|
"-accept=socket,host=0,port=8100;urp"
|
|
|
|
|
|
|
|
With host=0 you allow access only from your local machine, so this should be
|
|
|
|
no network security problem.
|