sw/CppunitTest_sw_ooxmlexport8.mk | 2 +- sw/ooxmlexport_setup.mk | 2 +- vcl/source/window/dialog.cxx | 20 +++----------------- 3 files changed, 5 insertions(+), 19 deletions(-)
New commits: commit 506cab1a01b0481d0831a7a692a26dc5a5b55e91 Author: Caolán McNamara <[email protected]> Date: Wed Apr 12 16:14:10 2017 +0100 take the .ui files from $BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR Change-Id: I9cffdc092206c038da32a32a2cfe629e68b5c258 diff --git a/sw/CppunitTest_sw_ooxmlexport8.mk b/sw/CppunitTest_sw_ooxmlexport8.mk index f3995b2e2e19..7c88db6ed6bc 100644 --- a/sw/CppunitTest_sw_ooxmlexport8.mk +++ b/sw/CppunitTest_sw_ooxmlexport8.mk @@ -100,7 +100,7 @@ $(eval $(call gb_CppunitTest_use_components,sw_ooxmlexport8,\ xmloff/util/xo \ )) -$(eval $(call gb_CppunitTest_use_instdir_configuration,sw_ooxmlexport8)) +$(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport8)) $(eval $(call gb_CppunitTest_use_uiconfigs,sw_ooxmlexport8,\ modules/swriter \ diff --git a/sw/ooxmlexport_setup.mk b/sw/ooxmlexport_setup.mk index 7bd941f4c2b3..d9f981897c3a 100644 --- a/sw/ooxmlexport_setup.mk +++ b/sw/ooxmlexport_setup.mk @@ -114,7 +114,7 @@ $(eval $(call gb_CppunitTest_use_components,sw_ooxmlexport$(1),\ filter/source/storagefilterdetect/storagefd \ )) -$(eval $(call gb_CppunitTest_use_instdir_configuration,sw_ooxmlexport$(1))) +$(eval $(call gb_CppunitTest_use_configuration,sw_ooxmlexport$(1))) $(eval $(call gb_CppunitTest_use_uiconfigs,sw_ooxmlexport$(1),\ modules/swriter \ 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; }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
