From 00c1d85fabe426efdf6833b8034b041f1263d702 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 23 Feb 2021 19:36:37 +0000 Subject: hide MenuBar details MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I409a4df7703300e920511c28263634a00c7c6da7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111432 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/source/window/syswin.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vcl') 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 #include +#include #include #include #include @@ -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: */ -- cgit