Difference between revisions of "Documentation/DevGuide/Scripting/Building and Registering Your ScriptProvider"

From Apache OpenOffice Wiki
Jump to: navigation, search
(remove sandbox.jar)
m (FINAL VERSION FOR L10N)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/Scripting/Writing a LanguageScriptProvider UNO Component From Scratch
 
|NextPage=Documentation/DevGuide/Scripting/Writing a LanguageScriptProvider UNO Component From Scratch
 
}}
 
}}
{{DISPLAYTITLE:Building and registering your ScriptProvider}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Building and registering your ScriptProvider}}
 
In order to compile these classes you need to include the UNO and Scripting Framework jar files in your classpath. You can find these in the ''program/classes'' directory of your {{PRODUCTNAME}} installation. The jar files that you need to include are: ''ridl.jar'', ''unoil.jar'', ''jurt.jar'' and ''ScriptFramework.jar''.
 
In order to compile these classes you need to include the UNO and Scripting Framework jar files in your classpath. You can find these in the ''program/classes'' directory of your {{PRODUCTNAME}} installation. The jar files that you need to include are: ''ridl.jar'', ''unoil.jar'', ''jurt.jar'' and ''ScriptFramework.jar''.
  

Revision as of 13:22, 15 May 2009



In order to compile these classes you need to include the UNO and Scripting Framework jar files in your classpath. You can find these in the program/classes directory of your OpenOffice.org installation. The jar files that you need to include are: ridl.jar, unoil.jar, jurt.jar and ScriptFramework.jar.

To compile ScriptProviderForYourLanuage:

  1. Compile the ScriptProviderForYourLanguage.java, ScriptEditorForYourLanguage.java and YourLanguageScript.java files
  2. Create a jar file for ScriptProviderForYourLanguage with the following in the manifest file. (Use the -m switch to the jar command to add the manifest data)
 Built-By: Yours Truly
 RegistrationClassName: ScriptProviderForYourLanguage
  1. Register the ScriptProviderForYourLanguage jar file using the Extension Manager.

Now you should see an entry for YourLanguage in the Tools - Macros - Organize Macros... menu.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages