[Libreoffice-commits] core.git: uui/Library_uui.mk uui/source
Julien Nabet
serval2412 at yahoo.fr
Wed Jul 24 13:20:51 PDT 2013
uui/Library_uui.mk | 4 ++++
uui/source/newerverwarn.cxx | 11 +++--------
2 files changed, 7 insertions(+), 8 deletions(-)
New commits:
commit 20430c74f391ceffd8a063c0b6b8a8fd615abac0
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Jul 24 14:06:10 2013 +0200
fdo#46037: no more comphelper/configurationhelper.hxx in uui
Change-Id: Ie7f42eb02f38d5cac2eff7b434ca369ea28b4ed1
Reviewed-on: https://gerrit.libreoffice.org/5065
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/uui/Library_uui.mk b/uui/Library_uui.mk
index 06d1dfb..66e3879 100644
--- a/uui/Library_uui.mk
+++ b/uui/Library_uui.mk
@@ -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,\
diff --git a/uui/source/newerverwarn.cxx b/uui/source/newerverwarn.cxx
index afa21bd..ac83576 100644
--- a/uui/source/newerverwarn.cxx
+++ b/uui/source/newerverwarn.cxx
@@ -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 );
More information about the Libreoffice-commits
mailing list