summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-07-26 19:12:11 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-07-26 19:13:18 +0200
commit04646443b3ee3baef0c3bdbaefad0eb66b71d33a (patch)
tree12488bfd3d16c18e7c417b89a2fc04f0e719ec0f /framework
parenta9c9353b4b1628fdffc5f8c4db34c88186a244c7 (diff)
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.cxx12
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 >(