summaryrefslogtreecommitdiff
path: root/chart2/NOTES
blob: 40283baa73b41fdc24951ceab7424c96bb19f093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# 
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: NOTES,v $
#
# $Revision: 1.6 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org 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 version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org.  If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************

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 <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.  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.