From 9117fb44bc7bd6b8764911c731c84a9e5dcc37f0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 24 Jul 2021 22:18:46 +0200 Subject: use officecfg for help options Change-Id: I2d19541cff07bf8159715d8f32d771cbf201ece4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119475 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sfx2/source/appl/appserv.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sfx2/source/appl/appserv.cxx') diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index e61cd7f510df..b0e08c424563 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -67,7 +67,6 @@ #include #include -#include #include #include @@ -578,7 +577,9 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) Help::EnableQuickHelp(); else Help::DisableQuickHelp(); - SvtHelpOptions().SetHelpTips( bOn ); + auto xChanges = comphelper::ConfigurationChanges::create(); + officecfg::Office::Common::Help::Tip::set(bOn, xChanges); + xChanges->commit(); Invalidate(SID_HELPTIPS); bDone = true; @@ -605,7 +606,9 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) Help::EnableBalloonHelp(); else Help::DisableBalloonHelp(); - SvtHelpOptions().SetExtendedHelp( bOn ); + auto xChanges = comphelper::ConfigurationChanges::create(); + officecfg::Office::Common::Help::ExtendedTip::set(bOn, xChanges); + xChanges->commit(); Invalidate(SID_HELPBALLOONS); bDone = true; -- cgit