Class ScriptProviderForooRexx
java.lang.Object
com.sun.star.script.framework.provider.oorexx.ScriptProviderForooRexx
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.sun.star.lang.XSingleServiceFactory__getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey) Returns a factory for creating the service.static boolean__writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey) static org.apache.bsf.BSFManagerstatic StringgetSystemPathFromFileURL(com.sun.star.uno.XComponentContext xContext, com.sun.star.script.framework.container.ScriptMetaData metaData) Returns the fully qualified, operating system dependent path to the script, if it is located in the 'user' or 'share' location.static StringmakeFilenameLegible(String filename) Removes curly brackets at the beginning of the string and an optionally trailing '/ucb/' string and returns result.static void
-
Field Details
-
bsfManager
protected static org.apache.bsf.BSFManager bsfManager
-
-
Constructor Details
-
ScriptProviderForooRexx
public ScriptProviderForooRexx()
-
-
Method Details
-
getBSFManager
public static org.apache.bsf.BSFManager getBSFManager() throws org.apache.bsf.BSFException- Throws:
org.apache.bsf.BSFException
-
terminateBSFManager
public static void terminateBSFManager() -
makeFilenameLegible
Removes curly brackets at the beginning of the string and an optionally trailing '/ucb/' string and returns result.- Returns:
- string that contains the shortened (URL) path with file name of the script/macro
-
getSystemPathFromFileURL
public static String getSystemPathFromFileURL(com.sun.star.uno.XComponentContext xContext, com.sun.star.script.framework.container.ScriptMetaData metaData) Returns the fully qualified, operating system dependent path to the script, if it is located in the 'user' or 'share' location. Otherwise returns what 'makeFilenameLegible(String fileName)' returns.- Returns:
- string fully qualified, operating system dependent path to the script in the 'user' or 'share' location, otherwise a short form of the OOo URL-string
-
__getServiceFactory
public static com.sun.star.lang.XSingleServiceFactory __getServiceFactory(String implName, com.sun.star.lang.XMultiServiceFactory multiFactory, com.sun.star.registry.XRegistryKey regKey) Returns a factory for creating the service. This method is called by theJavaLoader- Parameters:
implName- the name of the implementation for which a service is desiredmultiFactory- the service manager to be used if neededregKey- the registryKey- Returns:
- returns a
XSingleServiceFactoryfor creating the component - See Also:
-
JavaLoader
-
__writeRegistryServiceInfo
public static boolean __writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey)
-