Did you know that the OpenOffice.org Wiki has a WYSIWYG editor? See Help:FCKeditor

Scripting Framework URI Specification

From OpenOffice.org Wiki

< Documentation | DevGuide
Revision as of 13:23, 15 May 2009 by OOoWikiBot (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search



vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]

where:

  • MACROREF is a name that identifies the macro and the naming convention for MACROREF identifiers is LanguageScriptProvider specific. It allows the LanguageScriptProvider to associate MACROREF with a macro. In the case of the LanguageScriptProviders for the Java based languages supported by OpenOffice.org e.g. (Java, JavaScript & Beanshell) the convention is Library.functionname where Library is the subdirectory under the language specific directory and functionname is the function name from the parcel-descriptor.xml in the Library directory. See Scripting Framework URI Specification.
  • Language specifies the LanguageScriptProvider needed to execute the macro as described.

Example 1 – URI for a JavaScript macro Library1.myMacro.js located in the share directory of a OpenOffice.org installation.

 vnd.sun.star.script:Library1.myMacro.js?language=JavaScript&location=share

In general macros contained in extensions have the format

 vnd.sun.star.script:MACROREF?language=TheLanguage&location=[user:uno_packages/packageName|share:uno_packages/packageName]

Example 2 - URI for a JavaScript macro Library1.myMacro.js located in an extension called myUnoPkg.oxt located in share directory of a OpenOffice.org installation.

 vnd.sun.star.script:Library1.myMacro.js?language=JavaScript&location=share:uno_packages/myUnoPkg.oxt
Image:documentation_note.pngIn the case of the OpenOffice.org Basic language, no distinction is made internally between macros deployed in extensions and those not deployed extensions. Therefore in the case of a OpenOffice.org Basic macro located in an extension the location attribute in the URI contains just “user” or “share”.


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