summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-12 16:14:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-12 16:17:28 +0100
commit506cab1a01b0481d0831a7a692a26dc5a5b55e91 (patch)
treec4ed233a51ed1f3a307795150ac6356370e36f57 /vcl
parentfe7eac1e0776ae3fd9f24b40590021eab8ac4ac9 (diff)
take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR
Change-Id: I9cffdc092206c038da32a32a2cfe629e68b5c258
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dialog.cxx20
1 files changed, 3 insertions, 17 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 95d0e1326b08..45713fd85333 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -32,6 +32,7 @@
#include <window.h>
#include <brdwin.hxx>
+#include <rtl/bootstrap.hxx>
#include <rtl/strbuf.hxx>
#include <sal/log.hxx>
@@ -489,23 +490,8 @@ void VclBuilderContainer::disposeBuilder()
OUString VclBuilderContainer::getUIRootDir()
{
- /*to-do, check if user config has an override before using shared one, etc*/
- css::uno::Reference< css::util::XPathSettings > xPathSettings = css::util::thePathSettings::get(
- ::comphelper::getProcessComponentContext() );
-
- OUString sShareLayer = xPathSettings->getBasePathShareLayer();
-
- // "UIConfig" is a "multi path" ... use first part only here!
- sal_Int32 nPos = sShareLayer.indexOf(';');
- if (nPos > 0)
- sShareLayer = sShareLayer.copy(0, nPos);
-
- // Note: May be an user uses URLs without a final slash! Check it ...
- if (!sShareLayer.endsWith("/"))
- sShareLayer += "/";
-
- sShareLayer += "soffice.cfg/";
- /*to-do, can we merge all this foo with existing soffice.cfg finding code, etc*/
+ OUString sShareLayer("$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/config/soffice.cfg/");
+ rtl::Bootstrap::expandMacros(sShareLayer);
return sShareLayer;
}