Scripting Framework URI Specification
From Apache OpenOffice Wiki
< Documentation | DevGuide
Revision as of 10:12, 4 June 2008 by OOoWikiBot (talk | contribs) (Robot: Changing Category:Scripting)
vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]
where:
MACROREFis a name that identifies the macro and the naming convention forMACROREFidentifiers isLanguageScriptProviderspecific. It allows theLanguageScriptProviderto associateMACROREFwith a macro. In the case of theLanguageScriptProvidersfor the Java based languages supported by OpenOffice.org e.g. (Java, JavaScript & Beanshell) the convention isLibrary.functionnamewhereLibraryis the subdirectory under the language specific directory andfunctionnameis the function name from the parcel-descriptor.xml in the Library directory. See Scripting Framework URI Specification.- Language specifies the
LanguageScriptProviderneeded 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
| Content on this page is licensed under the Public Documentation License (PDL). |