diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-14 20:01:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-11-15 20:09:24 +0100 |
commit | 8a92373a20dfce8112e45bd80f0f6c927224ff98 (patch) | |
tree | 11505e7ef2f9faf711ee4f73cc3179fb3ab122a7 /vcl/source/app | |
parent | 07caaab2e49d5fb409810025867b5ada6968c7e2 (diff) |
add Menu::get_id
Change-Id: I608db63f700312f7d7ffc6bfbd0e03971bfb00e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105845
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 585dd36325a3..82e742c62da9 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -763,6 +763,10 @@ void SalInstanceMenu::remove(const OString& rId) m_xMenu->RemoveItem(m_xMenu->GetItemPos(m_xMenu->GetItemId(rId))); } int SalInstanceMenu::n_children() const { return m_xMenu->GetItemCount(); } +OString SalInstanceMenu::get_id(int pos) const +{ + return m_xMenu->GetItemIdent(m_xMenu->GetItemId(pos)); +} PopupMenu* SalInstanceMenu::getMenu() const { return m_xMenu.get(); } SalInstanceMenu::~SalInstanceMenu() { |