summaryrefslogtreecommitdiff
path: root/vcl/source/window/dialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/dialog.cxx')
-rw-r--r--vcl/source/window/dialog.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 4ea01eb635e5..c0bb50162f9f 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -18,6 +18,7 @@
*/
#include <com/sun/star/beans/XPropertySet.hpp>
+#include <com/sun/star/util/PathSettings.hpp>
#include <comphelper/processfactory.hxx>
#include <osl/file.hxx>
@@ -477,19 +478,15 @@ Dialog::Dialog( WindowType nType )
ImplInitDialogData();
}
-#define BASEPATH_SHARE_LAYER OUString("UIConfig")
#define RELPATH_SHARE_LAYER OUString("soffice.cfg")
-#define SERVICENAME_PATHSETTINGS OUString("com.sun.star.util.PathSettings")
OUString VclBuilderContainer::getUIRootDir()
{
/*to-do, check if user config has an override before using shared one, etc*/
- css::uno::Reference< css::beans::XPropertySet > xPathSettings(
- ::comphelper::getProcessServiceFactory()->createInstance(SERVICENAME_PATHSETTINGS),
- css::uno::UNO_QUERY_THROW);
+ css::uno::Reference< css::util::XPathSettings > xPathSettings = css::util::PathSettings::create(
+ ::comphelper::getProcessComponentContext() );
- OUString sShareLayer;
- xPathSettings->getPropertyValue(BASEPATH_SHARE_LAYER) >>= sShareLayer;
+ OUString sShareLayer = xPathSettings->getBasePathShareLayer();
// "UIConfig" is a "multi path" ... use first part only here!
sal_Int32 nPos = sShareLayer.indexOf(';');