Difference between revisions of "Documentation/DevGuide/Scripting/Building and Registering Your ScriptProvider"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
m |
||
Line 7: | Line 7: | ||
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}} | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}} | ||
{{DISPLAYTITLE:Building and registering your ScriptProvider}} | {{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 {{ | + | 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 {{AOo}} installation. The jar files that you need to include are: ''ridl.jar'', ''unoil.jar'', ''jurt.jar'' and ''ScriptFramework.jar''. |
To compile <code>ScriptProviderForYourLanuage</code>: | To compile <code>ScriptProviderForYourLanuage</code>: | ||
Line 17: | Line 17: | ||
# Register the <code>ScriptProviderForYourLanguage</code> jar file using the [[Documentation/DevGuide/Extensions/Extensions|Extension Manager]]. | # Register the <code>ScriptProviderForYourLanguage</code> jar file using the [[Documentation/DevGuide/Extensions/Extensions|Extension Manager]]. | ||
− | Now you should see an entry for <code>YourLanguage</code> in the '''Tools - Macros - Organize | + | Now you should see an entry for <code>YourLanguage</code> in the '''Tools - Macros - Organize Macros…''' menu. |
{{PDL1}} | {{PDL1}} | ||
[[Category:Documentation/Developer's Guide/Scripting]] | [[Category:Documentation/Developer's Guide/Scripting]] |
Latest revision as of 18:26, 21 December 2020
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 Apache OpenOffice installation. The jar files that you need to include are: ridl.jar, unoil.jar, jurt.jar and ScriptFramework.jar.
To compile ScriptProviderForYourLanuage
:
- Compile the ScriptProviderForYourLanguage.java, ScriptEditorForYourLanguage.java and YourLanguageScript.java files
- 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
- 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). |