Contents
Overview
What is Itcluno?
The itcluno package is an extension which should make the batch programming of OpenOffice.org easier with Tcl.
It is based on the tcluno extension made by Arnulf Wiedemann.
This package is not an attempt to map the OpenOffice.org object oriented approach. It shall give you an easy way to handle some common used routines for writing SpreadSheet, Writer and Presentation files.
How to get it?
Itcluno is available for free download from the same sourceforge.net.
http://sourceforge.net/projects/tcluno
The distribution files are itcluno0.2.tar.gz for UNIX and itcluno0_2.zip for Windows. These files contain the same information.
How to install it?
Just unzip the downloaded file to a directory given by auto_path
Where can I find sample code?
Nearly each documentation of the available classes contains some short examples.
These examples are also available in the subdirectory demos within the directory where you have installed itcluno.
For starting them you should use the RunExamples.tcl script which lets you select one of the examples, gives you a short description of what the sample code does.
There are also 2 buttons for running the example and show the sample code.
How to use it?
When using itcluno please respect the following hints for starting OpenOffice.org:
using shell with parameters
OOo=`which OOo`
if test -z "$OOo"
then
OOo=soffice
fi
$OOo "-accept=socket,host=localhost,port=2002;urp;" "" &
without parameters or using the desktop icon
In file (/System-OOo-Top-Dir|$HOME/.User-OOo-Top-Dir|/or/where/ever)/share/registry/data/org/openoffice/Setup.xcu after <node oor:name="Office"> insert the following lines:
<prop oor:name="ooSetupConnectionURL" oor:type="xs:string">
<value>socket,host=localhost,port=2002;urp</value>
</prop>
After having done that OpenOffice.org can be started without parameters.
The following classes are available:
- OfficeUtilities - A Helper Class
OpenOffice - The Base Class
ChartDocument - A ChartDocument Class
Presentation - A Presentation Class
SpreadSheet - A SpreadSheet Class
TextTable - A TextTable Class
Writer - A Writer Class
Tablelist2OOTable - A Helper Class for converting tablelist to a OO Table
Tktable2OOTable - A Helper Class for converting Tktable to a OO Table