diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-14 17:02:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-15 20:08:40 +0200 |
commit | a36997c15b310b50f77446ea6c10ccc939a9cc27 (patch) | |
tree | 06859915b0256e314a1f24c1686e2f97fc57868b /dbaccess | |
parent | 15ac3f9f4dc65fc0c6020284064e3725956f5d0a (diff) |
convert column menu to .ui
Change-Id: I3a41b716c473a17821969f09945ac1a94b024d41
Reviewed-on: https://gerrit.libreoffice.org/36569
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 <name>" 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); } } |