summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2003-03-03 17:39:42 +0000
committerNoel Power <npower@openoffice.org>2003-03-03 17:39:42 +0000
commit226f54848608720f0e6bd94875125d481f7299ee (patch)
tree5b1374eead837455440078f30a7b1a7a9b8e774a /scripting
parentc39c04c2f336c439850c2a60df48cf57d862cddb (diff)
Supporting changes for new runtime namespace
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/source/provider/provider.xml2
-rw-r--r--scripting/source/runtimemgr/ScriptNameResolverImpl.hxx8
-rwxr-xr-xscripting/source/runtimemgr/ScriptRuntimeManager.cxx30
-rw-r--r--scripting/source/runtimemgr/ScriptRuntimeManager.hxx16
-rwxr-xr-xscripting/source/runtimemgr/runtimemgr.xml4
5 files changed, 30 insertions, 30 deletions
diff --git a/scripting/source/provider/provider.xml b/scripting/source/provider/provider.xml
index f0dabe5a3b35..3f31b85d47fa 100755
--- a/scripting/source/provider/provider.xml
+++ b/scripting/source/provider/provider.xml
@@ -18,7 +18,7 @@
<type> com.sun.star.io.XStream </type>
<type> drafts.com.sun.star.script.framework.provider.XFunction </type>
<type> drafts.com.sun.star.script.framework.provider.XFunctionProvider </type>
- <type> drafts.com.sun.star.script.framework.XScriptInvocation </type>
+ <type> drafts.com.sun.star.script.framework.runtime.XScriptInvocation </type>
</component-description>
<project-build-dependency> cppuhelper </project-build-dependency>
diff --git a/scripting/source/runtimemgr/ScriptNameResolverImpl.hxx b/scripting/source/runtimemgr/ScriptNameResolverImpl.hxx
index d99fc42285dc..3195041629d0 100644
--- a/scripting/source/runtimemgr/ScriptNameResolverImpl.hxx
+++ b/scripting/source/runtimemgr/ScriptNameResolverImpl.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptNameResolverImpl.hxx,v $
*
-* $Revision: 1.10 $
+* $Revision: 1.11 $
*
-* last change: $Author: dfoster $ $Date: 2003-01-28 17:09:25 $
+* last change: $Author: npower $ $Date: 2003-03-03 18:39:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,7 +70,7 @@
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/reflection/InvocationTargetException.hpp>
-#include <drafts/com/sun/star/script/framework/XScriptNameResolver.hpp>
+#include <drafts/com/sun/star/script/framework/runtime/XScriptNameResolver.hpp>
#include <drafts/com/sun/star/script/framework/storage/XScriptInfoAccess.hpp>
#include <drafts/com/sun/star/script/framework/storage/XScriptInfo.hpp>
@@ -81,7 +81,7 @@ namespace scripting_runtimemgr
#define dcsssf ::drafts::com::sun::star::script::framework
class ScriptNameResolverImpl : public
- ::cppu::WeakImplHelper1 < dcsssf::XScriptNameResolver >
+ ::cppu::WeakImplHelper1 < dcsssf::runtime::XScriptNameResolver >
{
public:
/**********************************************
diff --git a/scripting/source/runtimemgr/ScriptRuntimeManager.cxx b/scripting/source/runtimemgr/ScriptRuntimeManager.cxx
index 8184b812117d..ac568574062c 100755
--- a/scripting/source/runtimemgr/ScriptRuntimeManager.cxx
+++ b/scripting/source/runtimemgr/ScriptRuntimeManager.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptRuntimeManager.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: toconnor $ $Date: 2003-02-20 12:17:55 $
+ * last change: $Author: npower $ $Date: 2003-03-03 18:39:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -86,9 +86,9 @@ namespace scripting_runtimemgr
{
static OUString s_implName = ::rtl::OUString::createFromAscii(
- "drafts.com.sun.star.script.framework.ScriptRuntimeManager" );
+ "drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager" );
static OUString s_serviceName = ::rtl::OUString::createFromAscii(
- "drafts.com.sun.star.script.framework.ScriptRuntimeManager" );
+ "drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager" );
static Sequence< OUString > s_serviceNames = Sequence< OUString >( &s_serviceName, 1 );
::rtl_StandardModuleCount s_moduleCount = MODULE_COUNT_INIT;
@@ -120,13 +120,13 @@ ScriptRuntimeManager::~ScriptRuntimeManager()
//*************************************************************************
// Get the proper XScriptInvocation
-Reference< XScriptInvocation > SAL_CALL ScriptRuntimeManager::getScriptRuntime(
+Reference< runtime::XScriptInvocation > SAL_CALL ScriptRuntimeManager::getScriptRuntime(
const Reference< XInterface >& scriptInfo )
throw( RuntimeException )
{
OSL_TRACE( "** ==> ScriptRuntimeManager in getScriptRuntime\n" );
- Reference< XScriptInvocation > xScriptInvocation;
+ Reference< runtime::XScriptInvocation > xScriptInvocation;
try
{
@@ -150,7 +150,7 @@ throw( RuntimeException )
validateXRef( xInterface,
"ScriptRuntimeManager::GetScriptRuntime: cannot get appropriate ScriptRuntime Service"
);
- xScriptInvocation = Reference< XScriptInvocation >( xInterface, UNO_QUERY_THROW );
+ xScriptInvocation = Reference< runtime::XScriptInvocation >( xInterface, UNO_QUERY_THROW );
}
catch ( Exception & e )
{
@@ -163,22 +163,22 @@ throw( RuntimeException )
//*************************************************************************
// Get the proper XScriptNameResolver
-Reference< XScriptNameResolver > SAL_CALL
+Reference< runtime::XScriptNameResolver > SAL_CALL
ScriptRuntimeManager::getScriptNameResolver()
throw( RuntimeException )
{
OSL_TRACE( "** ==> ScriptRuntimeManager in getScriptNameResolver\n" );
- Reference< XScriptNameResolver > xScriptNameResolver;
+ Reference< runtime::XScriptNameResolver > xScriptNameResolver;
try
{
Reference< XInterface > xInterface = m_xMgr->createInstanceWithContext(
OUString::createFromAscii(
- "drafts.com.sun.star.script.framework.DefaultScriptNameResolver" ),
+ "drafts.com.sun.star.script.framework.runtime.DefaultScriptNameResolver" ),
m_xContext );
validateXRef( xInterface,
"ScriptRuntimeManager::GetScriptRuntime: cannot get instance of DefaultScriptNameResolver" );
- xScriptNameResolver = Reference< XScriptNameResolver >( xInterface, UNO_QUERY_THROW );
+ xScriptNameResolver = Reference< runtime::XScriptNameResolver >( xInterface, UNO_QUERY_THROW );
}
catch ( Exception & e )
{
@@ -257,7 +257,7 @@ Any SAL_CALL ScriptRuntimeManager::invoke(
xPropSetResolvedCtx->setPropertyValue( scriptingConstantsPool.SCRIPT_INFO,
aResolvedScript );
- Reference< XScriptInvocation > xScriptInvocation =
+ Reference< runtime::XScriptInvocation > xScriptInvocation =
getScriptRuntime( resolvedScript );
validateXRef( xScriptInvocation,
"ScriptRuntimeManager::invoke: cannot get instance of language specific runtime." );
@@ -334,7 +334,7 @@ throw( lang::IllegalArgumentException, script::CannotConvertException, RuntimeEx
OSL_TRACE( "** ==> ScriptRuntimeManager in resolve\n" );
Reference< storage::XScriptInfo > resolvedURI;
- Reference< XScriptNameResolver > xScriptNameResolver = getScriptNameResolver();
+ Reference< runtime::XScriptNameResolver > xScriptNameResolver = getScriptNameResolver();
validateXRef( xScriptNameResolver,
"ScriptRuntimeManager::resolve: No ScriptNameResolver" );
@@ -491,8 +491,8 @@ extern "C"
Reference< registry::XRegistryKey > xKey(
pKey->createKey(
- OUSTR("drafts.com.sun.star.script.framework.ScriptRuntimeManager/UNO/SINGLETONS/drafts.com.sun.star.script.framework.theScriptRuntimeManager")));
- xKey->setStringValue( OUSTR("drafts.com.sun.star.script.framework.ScriptRuntimeManager") );
+ OUSTR("drafts.com.sun.star.script.framework.ScriptRuntimeManager/UNO/SINGLETONS/drafts.com.sun.star.script.framework.runtime.theScriptRuntimeManager")));
+ xKey->setStringValue( OUSTR("drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager") );
return sal_True;
}
diff --git a/scripting/source/runtimemgr/ScriptRuntimeManager.hxx b/scripting/source/runtimemgr/ScriptRuntimeManager.hxx
index 534897a8be67..1af359b610e4 100644
--- a/scripting/source/runtimemgr/ScriptRuntimeManager.hxx
+++ b/scripting/source/runtimemgr/ScriptRuntimeManager.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ScriptRuntimeManager.hxx,v $
*
-* $Revision: 1.8 $
+* $Revision: 1.9 $
*
-* last change: $Author: npower $ $Date: 2003-01-28 11:52:17 $
+* last change: $Author: npower $ $Date: 2003-03-03 18:39:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,8 +74,8 @@
#include <com/sun/star/script/CannotConvertException.hpp>
#include <com/sun/star/reflection/InvocationTargetException.hpp>
-#include <drafts/com/sun/star/script/framework/XScriptInvocation.hpp>
-#include <drafts/com/sun/star/script/framework/XScriptNameResolver.hpp>
+#include <drafts/com/sun/star/script/framework/runtime/XScriptInvocation.hpp>
+#include <drafts/com/sun/star/script/framework/runtime/XScriptNameResolver.hpp>
namespace scripting_runtimemgr
{
@@ -87,8 +87,8 @@ namespace scripting_runtimemgr
* Class responsible for managing the various ScriptRuntime implementations.
*/
class ScriptRuntimeManager : public
- ::cppu::WeakImplHelper3< dcsssf::XScriptInvocation, css::lang::XServiceInfo,
- dcsssf::XScriptNameResolver >
+ ::cppu::WeakImplHelper3< dcsssf::runtime::XScriptInvocation, css::lang::XServiceInfo,
+ dcsssf::runtime::XScriptNameResolver >
{
public:
explicit ScriptRuntimeManager(
@@ -168,10 +168,10 @@ public:
css::uno::RuntimeException );
private:
- css::uno::Reference< dcsssf::XScriptInvocation > SAL_CALL getScriptRuntime(
+ css::uno::Reference< dcsssf::runtime::XScriptInvocation > SAL_CALL getScriptRuntime(
const css::uno::Reference< css::uno::XInterface > & scriptInfo )
throw( css::uno::RuntimeException );
- css::uno::Reference< dcsssf::XScriptNameResolver > SAL_CALL getScriptNameResolver()
+ css::uno::Reference< dcsssf::runtime::XScriptNameResolver > SAL_CALL getScriptNameResolver()
throw( css::uno::RuntimeException );
css::uno::Reference< css::uno::XComponentContext > m_xContext;
diff --git a/scripting/source/runtimemgr/runtimemgr.xml b/scripting/source/runtimemgr/runtimemgr.xml
index 0d77db8705c2..d2bfeb26e736 100755
--- a/scripting/source/runtimemgr/runtimemgr.xml
+++ b/scripting/source/runtimemgr/runtimemgr.xml
@@ -32,8 +32,8 @@
<type> com.sun.star.io.XOutputStream </type>
<type> drafts.com.sun.star.script.framework.storage.XScriptInfoAccess </type>
<type> drafts.com.sun.star.script.framework.storage.XScriptStorageManager </type>
- <type> drafts.com.sun.star.script.framework.XScriptInvocation </type>
- <type> drafts.com.sun.star.script.framework.XScriptNameResolver </type>
+ <type> drafts.com.sun.star.script.framework.runtime.XScriptInvocation </type>
+ <type> drafts.com.sun.star.script.framework.runtime.XScriptNameResolver </type>
</component-description>
<project-build-dependency> cppuhelper </project-build-dependency>
<project-build-dependency> cppu </project-build-dependency>