summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2013-04-18 09:58:02 +0000
committerJürgen Schmidt <jsc@apache.org>2013-04-18 09:58:02 +0000
commit2af65172af2cfc768e4f44507a02e1b17a9806ba (patch)
treefd4c4c673a8a83bee9427170d8963559017474cf /scripting
parent581c83c696bd850066d425427c10374b6587b45d (diff)
#121996# integrate first part to remove 3layer office
Notes
Notes: prefer: a66f9903bba9dc7eeff6683ebddcd34d4ad70068
Diffstat (limited to 'scripting')
-rw-r--r--scripting/examples/beanshell/Highlight/ShowDialog.bsh2
-rw-r--r--scripting/examples/java/Highlight/HighlightText.java2
-rw-r--r--scripting/examples/javascript/Highlight/ShowDialog.js2
-rw-r--r--scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java4
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java12
-rw-r--r--scripting/source/provider/URIHelper.cxx5
-rw-r--r--scripting/source/pyprov/pythonscript.py4
-rw-r--r--scripting/source/storage/ScriptStorageManager.cxx2
8 files changed, 17 insertions, 16 deletions
diff --git a/scripting/examples/beanshell/Highlight/ShowDialog.bsh b/scripting/examples/beanshell/Highlight/ShowDialog.bsh
index b224cc99de3c..b1226eb8b7bf 100644
--- a/scripting/examples/beanshell/Highlight/ShowDialog.bsh
+++ b/scripting/examples/beanshell/Highlight/ShowDialog.bsh
@@ -58,7 +58,7 @@ boolean tryLoadingLibrary( xmcf, context, name )
}
libURL = xme.expandMacros(
- "${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
+ "${$OOO_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
diff --git a/scripting/examples/java/Highlight/HighlightText.java b/scripting/examples/java/Highlight/HighlightText.java
index a60204531fc5..e277140b0e65 100644
--- a/scripting/examples/java/Highlight/HighlightText.java
+++ b/scripting/examples/java/Highlight/HighlightText.java
@@ -224,7 +224,7 @@ public class HighlightText implements com.sun.star.awt.XActionListener {
}
String libURL = xme.expandMacros(
- "${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
+ "${$OOO_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
diff --git a/scripting/examples/javascript/Highlight/ShowDialog.js b/scripting/examples/javascript/Highlight/ShowDialog.js
index 2e4793b70dd4..5a6ca1f0f81e 100644
--- a/scripting/examples/javascript/Highlight/ShowDialog.js
+++ b/scripting/examples/javascript/Highlight/ShowDialog.js
@@ -52,7 +52,7 @@ function tryLoadingLibrary( xmcf, context, name )
}
libURL = xme.expandMacros(
- "${$BRAND_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
+ "${$OOO_BASE_DIR/program/" + bootstrapName + "::BaseInstallation}" +
"/share/basic/ScriptBindingLibrary/" +
name.toLowerCase() + ".xlb/");
diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
index 0008b0de6fbe..72884702da18 100644
--- a/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
+++ b/scripting/java/com/sun/star/script/framework/container/ScriptMetaData.java
@@ -130,12 +130,12 @@ public class ScriptMetaData extends ScriptEntry implements Cloneable {
// to be exposed at all
private static final String SHARE =
- "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" +
+ "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" +
PathUtils.BOOTSTRAP_NAME +
"::BaseInstallation}/share";
private static final String USER =
- "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" +
+ "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" +
PathUtils.BOOTSTRAP_NAME +
"::UserInstallation}/user";
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
index a7b35d26ff02..f8e3912f83b3 100644
--- a/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ScriptProvider.java
@@ -138,7 +138,7 @@ public abstract class ScriptProvider
new Type(XMacroExpander.class), serviceObj);
XMLParserFactory.setOfficeDTDURL(me.expandMacros(
- "${$BRAND_BASE_DIR/program/bootstraprc::BaseInstallation}/share/dtd/officedocument/1_0/"));
+ "${$OOO_BASE_DIR/program/bootstraprc::BaseInstallation}/share/dtd/officedocument/1_0/"));
}
catch ( Exception e )
@@ -214,20 +214,20 @@ public abstract class ScriptProvider
if ( originalContextURL.startsWith( "bundled" ) )
{
contextUrl = "vnd.sun.star.expand:$BUNDLED_EXTENSIONS";
- extensionDb = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
+ extensionDb = "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
extensionRepository = "bundled";
}
if ( originalContextURL.startsWith( "share" ) )
{
- contextUrl = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::BaseInstallation}/share";
- extensionDb = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
+ contextUrl = "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::BaseInstallation}/share";
+ extensionDb = "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
extensionRepository = "shared";
}
else if ( originalContextURL.startsWith( "user" ) )
{
- contextUrl = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
- extensionDb = "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
+ contextUrl = "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
+ extensionDb = "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + PathUtils.BOOTSTRAP_NAME + "::UserInstallation}/user";
extensionRepository = "user";
}
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index c664e2a4ac15..6d64a1bd27e6 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -42,7 +42,8 @@ namespace script = ::com::sun::star::script;
static const char SHARE[] = "share";
static const char SHARE_URI[] =
- "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap") "::BaseInstallation}";
+ "vnd.sun.star.expand:$$OOO_BASE_DIR";
+// "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap") "::BaseInstallation}";
static const char SHARE_UNO_PACKAGES[] = "share:uno_packages";
static const char SHARE_UNO_PACKAGES_URI[] =
@@ -50,7 +51,7 @@ static const char SHARE_UNO_PACKAGES_URI[] =
static const char USER[] = "user";
static const char USER_URI[] =
- "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}";
+ "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}";
static const char USER_UNO_PACKAGES[] = "user:uno_packages";
static const char USER_UNO_PACKAGES_DIR[] =
diff --git a/scripting/source/pyprov/pythonscript.py b/scripting/source/pyprov/pythonscript.py
index d7480e90b3b2..7fca7aa82359 100644
--- a/scripting/source/pyprov/pythonscript.py
+++ b/scripting/source/pyprov/pythonscript.py
@@ -167,9 +167,9 @@ class MyUriHelper:
def __init__( self, ctx, location ):
self.s_UriMap = \
- { "share" : "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + toIniName( "bootstrap") + "::BaseInstallation}/share/Scripts/python" , \
+ { "share" : "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + toIniName( "bootstrap") + "::BaseInstallation}/share/Scripts/python" , \
"share:uno_packages" : "vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages", \
- "user" : "vnd.sun.star.expand:${$BRAND_BASE_DIR/program/" + toIniName( "bootstrap") + "::UserInstallation}/user/Scripts/python" , \
+ "user" : "vnd.sun.star.expand:${$OOO_BASE_DIR/program/" + toIniName( "bootstrap") + "::UserInstallation}/user/Scripts/python" , \
"user:uno_packages" : "vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages" }
self.m_uriRefFac = ctx.ServiceManager.createInstanceWithContext("com.sun.star.uri.UriReferenceFactory",ctx)
if location.startswith( "vnd.sun.star.tdoc" ):
diff --git a/scripting/source/storage/ScriptStorageManager.cxx b/scripting/source/storage/ScriptStorageManager.cxx
index 623591cefbec..3b0d3f350df1 100644
--- a/scripting/source/storage/ScriptStorageManager.cxx
+++ b/scripting/source/storage/ScriptStorageManager.cxx
@@ -82,7 +82,7 @@ ScriptStorageManager::ScriptStorageManager( const Reference<
"/singletons/com.sun.star.util.theMacroExpander" ) ), UNO_QUERY_THROW );
OUString base = OUString::createFromAscii(
- SAL_CONFIGFILE( "${$BRAND_BASE_DIR/program/bootstrap" ) );
+ SAL_CONFIGFILE( "${$OOO_BASE_DIR/program/bootstrap" ) );
setupAppStorage( xME,
base.concat( OUString::createFromAscii( "::BaseInstallation}/share" ) ),