From a36997c15b310b50f77446ea6c10ccc939a9cc27 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Apr 2017 17:02:48 +0100 Subject: convert column menu to .ui MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3a41b716c473a17821969f09945ac1a94b024d41 Reviewed-on: https://gerrit.libreoffice.org/36569 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/browser/sbagrid.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index a3ee13ac737d..0686504c8099 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -631,16 +631,16 @@ void SbaGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rM if (bDBIsReadOnly) { - rMenu.EnableItem(SID_FM_HIDECOL, false); - PopupMenu* pShowColsMenu = rMenu.GetPopupMenu(SID_FM_SHOWCOLS); + rMenu.EnableItem(rMenu.GetItemId("hide"), false); + PopupMenu* pShowColsMenu = rMenu.GetPopupMenu(rMenu.GetItemId("show")); if (pShowColsMenu) { // at most 16 items which mean "show column " for (sal_uInt16 i=1; i<16; ++i) pShowColsMenu->EnableItem(i, false); // "show cols/more..." and "show cols/all" - pShowColsMenu->EnableItem(SID_FM_SHOWCOLS_MORE, false); - pShowColsMenu->EnableItem(SID_FM_SHOWALLCOLS, false); + pShowColsMenu->EnableItem(pShowColsMenu->GetItemId("more"), false); + pShowColsMenu->EnableItem(pShowColsMenu->GetItemId("all"), false); } } -- cgit