diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-08 15:02:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-13 09:38:01 +0200 |
commit | 86c1ebc1ef4a90e9bc58fb69c2d1d978765a34ca (patch) | |
tree | f9ba1c3c02198c83484b68fc190cd2995f6734ab /vcl/source/window | |
parent | ee7f8cb10178fbc348210f6dea0e2ae64964ab6d (diff) |
fdo#46808, Convert util::PathSettings service to new style
Change-Id: I302be46b46518e1e872771e1c8a0647f7c330b30
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/dialog.cxx | 11 |
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(';'); |