diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 10:11:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-23 14:01:23 +0200 |
commit | 252e403213bf2a1c1b1f7b07f1dd647b450cb312 (patch) | |
tree | 05405a140a1e00cd3d49388c678a9bfb5763d59c /sfx2 | |
parent | 2c0b84dc65739bfc47dca684e819717eb9cce387 (diff) |
use officecfg to retrieve DisableUICustomization
Change-Id: I87b3019c8e10eb2453746340beea4c4623dc65e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119400
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/sidebar/SidebarToolBox.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 6693eb56892a..e61cd7f510df 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1108,7 +1108,7 @@ void SfxApplication::MiscState_Impl(SfxItemSet &rSet) case SID_CONFIGACCEL: case SID_CONFIGEVENT: { - if( SvtMiscOptions().DisableUICustomization() ) + if( officecfg::Office::Common::Misc::DisableUICustomization::get() ) rSet.DisableItem(nWhich); break; } diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx index dc9bdcedd07d..bcdd31a7d17d 100644 --- a/sfx2/source/sidebar/SidebarToolBox.cxx +++ b/sfx2/source/sidebar/SidebarToolBox.cxx @@ -21,6 +21,7 @@ #include <sidebar/ControllerFactory.hxx> #include <sfx2/viewfrm.hxx> +#include <officecfg/Office/Common.hxx> #include <vcl/commandinfoprovider.hxx> #include <vcl/event.hxx> #include <vcl/settings.hxx> @@ -301,7 +302,7 @@ public: virtual ToolBoxButtonSize GetDefaultButtonSize() const override { - return SvtMiscOptions().GetNotebookbarIconSize(); + return static_cast<ToolBoxButtonSize>(officecfg::Office::Common::Misc::NotebookbarIconSize::get()); } }; |