Download as a PDF or ODT
A OpenOffice.org macro is a short program used to automate a number of steps. The Scripting Framework is a new feature in OpenOffice.org. It allows users to write and run macros for OpenOffice.org in a number of programming and scripting languages including:
- BeanShell (http://www.beanshell.org/)
- Java (http://www.java.com)
- Python (Python as a macro language)
- OpenOffice.org Basic (OpenOffice.org Basic)
The framework is designed so that developers can add support for new languages.
Structure of this Chapter
This chapter is organized into the following sections:
- Section Using the Scripting Framework describes the user interface features of the Scripting Framework
- Describes how to run a macro using the Run Macro dialog.
- Describes how to use the Organizer dialogs to create, edit and manage macros.
- Section Writing Macros provides a guide on how to get started with writing Scripting Framework macros
- Describes how to write a simple HelloWorld macro.
- Describes how Scripting Framework macros interact with OpenOffice.org and the OpenOffice.org API.
- Describes how to create a dialog from a Scripting Framework macro.
- Describes how to compile and deploy a Java macro.
- Section How the Scripting Framework Works describes how the plug-able architecture of the Scripting Framework allows support for new scripting languages to be added easily.
- Section Writing a LanguageScriptProvider UNO Component using the Java Helper Classes describes how to use the Scripting Framework Java helper classes to add support for a new scripting language
- Describes how to use the ScriptProvider abstract base class.
- Describes how to add editor and management support.
- Describes how to build and register a ScriptProvider.
- Section Writing a LanguageScriptProvider UNO Component From Scratch describes how to write a LanguageScriptProvider UNO component.
Who Should Read this Chapter
If you are interested in adding support to run and write macros in a language with a Java based interpreter then you should read section Writing a LanguageScriptProvider UNO Component using the Java Helper Classes.
If you are interested in adding support for a scripting language from scratch then you should read section Writing a LanguageScriptProvider UNO Component From Scratch.
|Content on this page is licensed under the Public Documentation License (PDL).|