Kaydet (Commit) 20430c74 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Fridrich Strba

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

Change-Id: Ie7f42eb02f38d5cac2eff7b434ca369ea28b4ed1
Reviewed-on: https://gerrit.libreoffice.org/5065Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst c9d037c3
......@@ -13,6 +13,10 @@ $(eval $(call gb_Library_set_componentfile,uui,uui/util/uui))
$(eval $(call gb_Library_use_external,uui,boost_headers))
$(eval $(call gb_Library_use_custom_headers,uui,\
officecfg/registry \
))
$(eval $(call gb_Library_use_sdk_api,uui))
$(eval $(call gb_Library_use_libraries,uui,\
......
......@@ -31,11 +31,11 @@
#include <com/sun/star/container/XNameReplace.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/configurationhelper.hxx>
#include <rtl/bootstrap.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/msgbox.hxx>
#include <osl/process.h>
#include <officecfg/Office/Addons.hxx>
using namespace com::sun::star;
......@@ -105,15 +105,10 @@ IMPL_LINK_NOARG(NewerVersionWarningDialog, UpdateHdl)
// TODO: do we need to respect the bUpdateCheckEnabled flag? Finally, its meaning is "are automatic
// updates enabled", but this here is not an automatic update, but one triggered explicitly by the user.
css::uno::Reference< css::container::XNameAccess > xOfficeHelp = officecfg::Office::Addons::AddonUI::OfficeHelp::get(xContext);
uno::Any aVal = ::comphelper::ConfigurationHelper::readDirectKey(
xContext,
"org.openoffice.Office.Addons/",
"AddonUI/OfficeHelp/UpdateCheckJob",
"URL",
::comphelper::ConfigurationHelper::E_READONLY );
util::URL aURL;
if ( aVal >>= aURL.Complete )
if ( xOfficeHelp->getByName("UpdateCheckJob") >>= aURL.Complete )
{
uno::Reference< util::XURLTransformer > xTransformer( util::URLTransformer::create(xContext) );
xTransformer->parseStrict( aURL );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment