#************************************************************************* # # OpenOffice.org - a multi-platform office productivity suite # # $RCSfile: NOTES,v $ # # $Revision: 1.5 $ # # last change: $Author: vg $ $Date: 2007-05-22 16:44:35 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. # # # GNU Lesser General Public License Version 2.1 # ============================================= # Copyright 2005 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 # #************************************************************************* 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/StarOffice8/user/registry/data/org/openoffice/Office/Common.xcu Location on Windows: "%UserProfile%\Application Data\StarOffice8\user\registry\data\org\openoffice\Office\Common.xcu" * Under the configuration-node "Internal" (see tag) you have to add the property "DevelopmentChart" and set this to "true": * Add the following after the "Internal"-node: true After that, your Common.xcu may look like this: ,----[ Common.xcu example ] | | | | | true | | | | | | | | | | | | 0 | | | | | | false | | | `---- * 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. 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.