diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-07 10:44:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-07 18:36:58 +0100 |
commit | 132307c089936ba39468a7957577866ab59904fc (patch) | |
tree | 20613cda8da06814c8836169e7a1a4bb6b760c32 /dbaccess/source/ui/browser | |
parent | ff8b873936aa72b17309da4bfc2775573a5b1f55 (diff) |
RID_SBA_GRID_COLCTXMENU has the same odd pattern
Change-Id: Ie05b8d0fe706656f9d9fb66b43af11fac87c8d46
Diffstat (limited to 'dbaccess/source/ui/browser')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 9 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.src | 30 |
2 files changed, 11 insertions, 28 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 8d621a054191..a3ee13ac737d 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -648,7 +648,6 @@ void SbaGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rM bool bColAttrs = (nColId != (sal_uInt16)-1) && (nColId != 0); if ( bColAttrs && !bDBIsReadOnly) { - ScopedVclPtrInstance<PopupMenu> aNewItems(ModuleRes(RID_SBA_GRID_COLCTXMENU)); sal_uInt16 nPos = 0; sal_uInt16 nModelPos = static_cast<SbaGridControl*>(GetParent())->GetModelColumnPos(nColId); Reference< XPropertySet > xField = static_cast<SbaGridControl*>(GetParent())->getField(nModelPos); @@ -667,14 +666,14 @@ void SbaGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rM case DataType::REF: break; default: - rMenu.InsertItem(ID_BROWSER_COLATTRSET, aNewItems->GetItemText(ID_BROWSER_COLATTRSET), MenuItemBits::NONE, OString(), nPos++); - rMenu.SetHelpId(ID_BROWSER_COLATTRSET, aNewItems->GetHelpId(ID_BROWSER_COLATTRSET)); + rMenu.InsertItem(ID_BROWSER_COLATTRSET, ModuleRes(RID_STR_COLUMN_FORMAT).toString(), MenuItemBits::NONE, OString(), nPos++); + rMenu.SetHelpId(ID_BROWSER_COLATTRSET, HID_BROWSER_COLUMNFORMAT); rMenu.InsertSeparator(OString(), nPos++); } } - rMenu.InsertItem(ID_BROWSER_COLWIDTH, aNewItems->GetItemText(ID_BROWSER_COLWIDTH), MenuItemBits::NONE, OString(), nPos++); - rMenu.SetHelpId(ID_BROWSER_COLWIDTH, aNewItems->GetHelpId(ID_BROWSER_COLWIDTH)); + rMenu.InsertItem(ID_BROWSER_COLWIDTH, ModuleRes(RID_STR_COLUMN_WIDTH).toString(), MenuItemBits::NONE, OString(), nPos++); + rMenu.SetHelpId(ID_BROWSER_COLWIDTH, HID_BROWSER_COLUMNWIDTH); rMenu.InsertSeparator(OString(), nPos++); } } diff --git a/dbaccess/source/ui/browser/sbagrid.src b/dbaccess/source/ui/browser/sbagrid.src index 39c4cb2fc4b6..a54584007f4e 100644 --- a/dbaccess/source/ui/browser/sbagrid.src +++ b/dbaccess/source/ui/browser/sbagrid.src @@ -20,30 +20,14 @@ #include "dbaccess_helpid.hrc" #include "browserids.hxx" -Menu RID_SBA_GRID_COLCTXMENU +String RID_STR_COLUMN_FORMAT { - ItemList = - { - MenuItem - { - Identifier = ID_BROWSER_COLATTRSET ; - HelpID = HID_BROWSER_COLUMNFORMAT ; - Text [ en-US ] = "Column ~Format..." ; - }; - MenuItem - { - Identifier = ID_BROWSER_COLWIDTH ; - HelpID = HID_BROWSER_COLUMNWIDTH ; - Text [ en-US ] = "Column ~Width..." ; - HelpID = HID_BROWSER_COLUMNWIDTH; - }; - MenuItem - { - Identifier = ID_BROWSER_COLUMNINFO ; - HelpID = HID_BROWSER_COLUMNINFO ; - Text [ en-US ] = "Copy Column D~escription"; - }; - }; + Text [ en-US ] = "Column ~Format..."; +}; + +String RID_STR_COLUMN_WIDTH +{ + Text [ en-US ] = "Column ~Width..."; }; String RID_STR_TABLE_FORMAT |