diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2023-02-20 11:17:55 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-03-16 07:15:49 +0000 |
commit | 3cdfcd4e2f350273ab1861abf6d6b7177fd0f215 (patch) | |
tree | bbd8a6015ea2379f4a40b0d09902e146d71f5b9d /sfx2 | |
parent | 6720a608a7cc8fb11ae1f0c0bc9210bbf80134f4 (diff) |
Preload the accelerator configurations when libreofficekit is active.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I6fbc2e87b1e338b84c69b96768df0339f1a0abd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147311
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148679
Tested-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 2954f6006b69..bc33ad942382 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -24,7 +24,6 @@ #include <vcl/commandevent.hxx> #include <vcl/window.hxx> #include <sal/log.hxx> -#include <sfx2/app.hxx> #include <sfx2/msg.hxx> #include <sfx2/viewsh.hxx> #include <sfx2/request.hxx> @@ -110,6 +109,11 @@ int SfxLokHelper::createView() return createView(pViewShell->GetViewFrame(), pViewShell->GetDocId()); } +std::unordered_map<OUString, css::uno::Reference<com::sun::star::ui::XAcceleratorConfiguration>>& SfxLokHelper::getAcceleratorConfs() +{ + return SfxApplication::GetOrCreate()->GetAcceleratorConfs_Impl(); +} + int SfxLokHelper::createView(int nDocId) { const SfxApplication* pApp = SfxApplication::Get(); |