ToDo
====

The component ToDo is an example of the Office Developer Kit.
The Office Developer Kit (ODK) is a set of tools, libraries, jar files, header
files and IDL files which are necessary to develop components for the
OpenOffice.org using the OpenOffice API and the OpenOffice.org component
technology UNO (Universal Network Objects). In order to use the make file,
you have to download the ODK from
http://www.openoffice.org/dev_docs/source/build_638/638_odk.html .
For every to-do listed in a spreadsheet document this component calculates the
start date, day of week of the start date, the end date and the day of week of
the end date. All calculations are dependent on the values of "Needed Days",
"Due Date" and "Status". The columns "Needed Days" and "Status" are mandatory.
The first to-do should be placed in row nine. The date to start the calculation
should be placed in cell C6. The private holidays should be placed in cell
K4/K5 and below.
All rows will be calculated up to the first empty cell in the first column. If
a cell in the column "Due Date" will be colored red, you should take a look at
your entries.

Compile the java samples
===========================

A GNU make version 1.79.1 or later is required in order to build the examples. GNU make
is available from

http://www.gnu.org,

it can be ftped via 

ftp://ftp.gnu.org/gnu/make


Make sure, the gnu-make-executable and java is included in your PATH variable. Switch
to e.g. the ToDo subdirectory and type make. You will then get help what to do to
build the examples on your platform.


Run the java samples
-------------------------

- Connecting to StarOffice : 

  The Office must be started in advance using the following command line option :
  
	soffice -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

	or on unix

	soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"

  The portnumber and the host can be modified if you like.

  Start the java example using the following connection string

  On Windows:
  java -classpath .;<Office path>/program/classes/jurt.jar;<Office path>/program/classes/ridl.jar;<Office path>/program/classes/sandbox.jar;<Office path>/program/classes/unoil.jar;<Office path>/program/classes/juh.jar Test "<connection>" "<ToDo URL>"
  e.g.:
  java -classpath .;d:/office60/program/classes/jurt.jar;d:/office60/program/classes/ridl.jar;d:/office60/program/classes/sandbox.jar;d:/office60/program/classes/unoil.jar;d:/office60/program/classes/juh.jar Test "uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "file:///d:/cvs/api/odk/examples/java/ToDo/ToDo.sxc"
  
  On Unix:
  java -classpath <Office path>/program/classes/juh.jar:<Office path>/program/classes/ridl.jar:<Office path>/program/classes/jurt.jar:<Office path>/program/classes/sandbox.jar:<Office path>/program/classes/unoil.jar:. Test "<connection>" "<ToDo URL>"
  e.g.:
  java -classpath /local/user/office60/program/classes/juh.jar:/local/user/office60/program/classes/ridl.jar:/local/user/office60/program/classes/jurt.jar:/local/user/office60/program/classes/sandbox.jar:/local/user/office60/program/classes/unoil.jar:. Test "uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "file:///cvs/api/odk/examples/java/ToDo/ToDo.sxc"


- Connecting to a Sun ONE Webtop

  1. The file 'daemons2.jar' and 'portalapi.jar' must be part of the CLASSPATH when executing the example.
     It can be found at <WebtopDir>/program/classes .

  2. Start a portal client.
  
  3. Start a Java sample

     java <classpath> Test "uno:portal,type=http,host=<portalhost>,port=<port>,service=soffice,user=<username>,password=<passwd>;urp;StarOffice.ServiceManager"

     The Port can be found in the file <WebtopDir>/share/etc/configrc
     (value GRIPServicesExternalPlainPort).

     You have to choose the SimplePort as default port on the administration pages
     in the webtop installation (this port defaults to 8090).
     Additionally, you have to modify the login.ini in the client 
     ( ConnectionType=plain ).
