diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-23 19:36:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-24 10:07:39 +0100 |
commit | 00c1d85fabe426efdf6833b8034b041f1263d702 (patch) | |
tree | 9a63bec444a6d9a179b20fd0c68de6edc9418537 /vcl | |
parent | 9dd5b8df8f300217fc0d4af6170b0bcc19a70fe8 (diff) |
hide MenuBar details
Change-Id: I409a4df7703300e920511c28263634a00c7c6da7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111432
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/syswin.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index 8e396207df92..b204135036bd 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -25,6 +25,7 @@ #include <vcl/accel.hxx> #include <vcl/layout.hxx> +#include <vcl/mnemonic.hxx> #include <vcl/settings.hxx> #include <vcl/svapp.hxx> #include <vcl/menu.hxx> @@ -1200,4 +1201,14 @@ void SystemWindow::ensureRepaint() } } +void SystemWindow::CollectMenuBarMnemonics(MnemonicGenerator& rMnemonicGenerator) const +{ + if (MenuBar* pMenu = GetMenuBar()) + { + sal_uInt16 nMenuItems = pMenu->GetItemCount(); + for ( sal_uInt16 i = 0; i < nMenuItems; ++i ) + rMnemonicGenerator.RegisterMnemonic( pMenu->GetItemText( pMenu->GetItemId( i ) ) ); + } +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |