Difference between revisions of "Documentation/DevGuide/Scripting/Scripting Framework URI Specification"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Scripting) |
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
||
Line 5: | Line 5: | ||
|NextPage=Documentation/DevGuide/Scripting/Storage of Scripts | |NextPage=Documentation/DevGuide/Scripting/Storage of Scripts | ||
}} | }} | ||
− | {{DISPLAYTITLE:Scripting Framework URI Specification}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Scripting/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Scripting Framework URI Specification}} | ||
<code>vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]</code> | <code>vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]</code> | ||
Revision as of 13:23, 15 May 2009
vnd.sun.star.script:MACROREF?language=Language&location=[user|share|document]
where:
-
MACROREF
is a name that identifies the macro and the naming convention forMACROREF
identifiers isLanguageScriptProvider
specific. It allows theLanguageScriptProvider
to associateMACROREF
with a macro. In the case of theLanguageScriptProviders
for the Java based languages supported by OpenOffice.org e.g. (Java, JavaScript & Beanshell) the convention isLibrary.functionname
whereLibrary
is the subdirectory under the language specific directory andfunctionname
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
Content on this page is licensed under the Public Documentation License (PDL). |