diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-07-26 19:12:11 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-07-26 19:13:18 +0200 |
commit | 04646443b3ee3baef0c3bdbaefad0eb66b71d33a (patch) | |
tree | 12488bfd3d16c18e7c417b89a2fc04f0e719ec0f /framework | |
parent | fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO (diff) | |
download | core-04646443b3ee3baef0c3bdbaefad0eb66b71d33a.tar.gz core-04646443b3ee3baef0c3bdbaefad0eb66b71d33a.zip |
fdo#46037: no more comphelper/configurationhelper.hxx in framework/classes
Thank you Stephan!
Change-Id: I70a7f3dbbbe71c165f823ecc207bb5995a8e1376
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/classes/taskcreator.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/framework/source/classes/taskcreator.cxx b/framework/source/classes/taskcreator.cxx index bff649cf93b7..49aebce58ca1 100644 --- a/framework/source/classes/taskcreator.cxx +++ b/framework/source/classes/taskcreator.cxx @@ -28,9 +28,10 @@ #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/beans/NamedValue.hpp> -#include <comphelper/configurationhelper.hxx> #include <vcl/svapp.hxx> +#include <officecfg/Office/TabBrowse.hxx> + namespace framework{ /*-****************************************************************************************************//** @@ -78,12 +79,9 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin ( TargetHelper::matchSpecialTarget(sName, TargetHelper::E_DEFAULT) ) ) { - ::comphelper::ConfigurationHelper::readDirectKey( - xContext, - "org.openoffice.Office.TabBrowse", - "TaskCreatorService", - "ImplementationName", - ::comphelper::ConfigurationHelper::E_READONLY) >>= sCreator; + + boost::optional<OUString> x(officecfg::Office::TabBrowse::TaskCreatorService::ImplementationName::get(xContext)); + if (x) sCreator = x.get(); } xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >( |