fdo#46037: no more comphelper/configurationhelper.hxx in framework/classes

Thank you Stephan!

Change-Id: I70a7f3dbbbe71c165f823ecc207bb5995a8e1376
This commit is contained in:
Julien Nabet
2013-07-26 19:12:11 +02:00
parent a9c9353b4b
commit 04646443b3

View File

@@ -28,9 +28,10 @@
#include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/NamedValue.hpp>
#include <comphelper/configurationhelper.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <officecfg/Office/TabBrowse.hxx>
namespace framework{ namespace framework{
/*-****************************************************************************************************//** /*-****************************************************************************************************//**
@@ -78,12 +79,9 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin
( TargetHelper::matchSpecialTarget(sName, TargetHelper::E_DEFAULT) ) ( TargetHelper::matchSpecialTarget(sName, TargetHelper::E_DEFAULT) )
) )
{ {
::comphelper::ConfigurationHelper::readDirectKey(
xContext, boost::optional<OUString> x(officecfg::Office::TabBrowse::TaskCreatorService::ImplementationName::get(xContext));
"org.openoffice.Office.TabBrowse", if (x) sCreator = x.get();
"TaskCreatorService",
"ImplementationName",
::comphelper::ConfigurationHelper::E_READONLY) >>= sCreator;
} }
xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >( xCreator = css::uno::Reference< css::lang::XSingleServiceFactory >(