Erwin's StarOffice Tango
Erwin Tenhumberg's Insights into Open Source and Dancing
... or why Open Competition matters

20050410 Sonntag April 10, 2005

Just switch! - "Java Macros" in StarOffice 8
The StarOffice 8 Office Suite includes a (language independent) scripting framework with default support for StarOffice BASIC, JavaScript and BeanShell. BeanShell is something like a Java technology based scripting tool/language. In BeanShell it is not required to declare variables, but it also does not hurt to do so. Thus, it is possible to copy and paste code from the StarOffice Developer's Guide directly into the BeanShell editor.

A few BeanShell examples get automatically installed with the StarOffice 8 software. One of the examples is the favorite "Hello World" application. The BeanShell macros can be access via "Tools - Macros - Organize Macros - BeanShell ...":



Here is a list of the macros that were included in the StarOffice 8 beta software:



As you can see, the hello world code looks like regular Java code with some usage of the StarOffice object model:



And this is the output of the little application:



StarOffice also allows to use regular Java code compiled outside of StarOffice to be used for macros, but BeanShell makes it easy to extend and change code.
( Apr 10 2005, 03:43:19 PM CEST ) Permalink


Kommentare:

Senden Sie einen Kommentar:

Kommentare sind ausgeschaltet.

Archive
Links
Referenzierte URLs