Groovy For OpenOffice
Groovy For OpenOffice is an OpenOffice Extension
that adds support for scripting
OpenOffice Macros
in Groovy
.
The license is LGPL
v2.1
(like
the rest of OOo).
Where to get it
Download the "GroovyScripting.oxt" file from the "GroovyForOpenOffice" package of the IFCX SF.net project
.
This is a different location than the initial 0.1 release, and should be the permanent home now.
Direct link: http://sourceforge.net/project/showfiles.php?group_id=199110&package_id=237851
On-Line Update: If you have installed an earlier version of GroovyForOpenOffice and are using OpenOffice 2.2 or later, you should be able to use the "On-Line Update" feature to install the latest version. Choose the "Updates..." button of the Extension Manager dialog (accessed via the "Tools : Extension Manager..." menu item).
Release notes:
This is a developer preview release of this OpenOffice 2.x Extension which adds support for writing macros in Groovy. The version of Groovy bundled with this release is 1.0. http://groovy.codehaus.org/ Java 1.4 or later is required. THERE IS NO WARRANTY OF ANY KIND FOR THIS FREE SOFTWARE! THE EXTENSION AND THE MACROS RUN WITHOUT RESTRICTION USING THE SAME PERMISSIONS AS THE USER THAT LAUNCHED OPENOFFICE! To install the extension (GroovyScripting.oxt), use the "Tools : Extension Manager..." menu then choose "Add...". Beware that if you change the name of the file then you may have a conflict which future installs with the original name. The Groovy_Samples.odt file is an ODF document with a few sample Groovy macros in it and some getting started help. Change log: The 0.3 release: * Cache compiled macros. * Remove non-UNO API dependencies for OpenOffice 2.3 compatibility. * First version available via on-line update. The 0.2 release: * Fix a bug that prevented the extension from working on Windows.
How to use it
The best place to look for help is in the extensive documentation and examples for scripting macros in BeanShell.http://framework.openoffice.org/scripting/
Chapter 17 of Getting Started with OpenOffice.org
2.x
The "Groovy_Samples.odt" file (also available from the
"GroovyForOpenOffice" package
of the IFCX SF.net project
) has some getting started help and a
few small examples.
For a spiffier example (and GroovyForOpenOffice's raison d'etre) check out IFCX Wings.
Support
Please report bugs (and success is welcome too!) to the GroovyForOpenOffice forum
.
Writing OpenOffice macros in something other than BASIC is
somewhat involved and not very well documented. I suggest
OpenOffice community sites like http://www.oooforum.org/
as the place to look for more
information and commiseration.
If you need professional services, I (JimWhite) am available on an hourly basis.
THERE IS NO WARRANTY OF ANY KIND FOR THIS FREE SOFTWARE
Resources
http://www.ooomacros.org/