diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-22 14:41:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-02-22 17:53:33 +0100 |
commit | 110e3b63a7287e625570adead9f0bab12383dd3f (patch) | |
tree | 78ad2830894115acb09069d4451cb76d6b0ae28f /dbaccess | |
parent | 1571fd8bfdb1deb07b4d6a4abde4919d24550cea (diff) |
there is no way to activate ID_BROWSER_COLUMNINFO so its dead-code
Change-Id: Ib06ab1f0e0b62324f910d5954a11cc698de8d764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111342
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 14 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/browserids.hxx | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 9e379b3e5b49..2251be4d629d 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -611,20 +611,6 @@ void SbaGridHeader::PostExecuteColumnContextMenu(sal_uInt16 nColId, const PopupM case ID_BROWSER_COLATTRSET: static_cast<SbaGridControl*>(GetParent())->SetColAttrs(nColId); break; - case ID_BROWSER_COLUMNINFO: - { - sal_uInt16 nModelPos = static_cast<SbaGridControl*>(GetParent())->GetModelColumnPos(nColId); - Reference< XPropertySet > xField = static_cast<SbaGridControl*>(GetParent())->getField(nModelPos); - - if(!xField.is()) - break; - std::vector< std::shared_ptr<OTableRow> > vClipboardList; - // send it to the clipboard - vClipboardList.push_back(std::make_shared<OTableRow>(xField)); - rtl::Reference<OTableRowExchange> pData = new OTableRowExchange(vClipboardList); - pData->CopyToClipboard(GetParent()); - } - break; default: FmGridHeader::PostExecuteColumnContextMenu(nColId, rMenu, nExecutionResult); } diff --git a/dbaccess/source/ui/inc/browserids.hxx b/dbaccess/source/ui/inc/browserids.hxx index c31ab9f20608..0c510497dea1 100644 --- a/dbaccess/source/ui/inc/browserids.hxx +++ b/dbaccess/source/ui/inc/browserids.hxx @@ -50,7 +50,6 @@ #define ID_BROWSER_COLWIDTH 10021 // column width #define ID_BROWSER_TABLEATTR 10022 // table format attributes #define ID_BROWSER_ROWHEIGHT 10023 // row height -#define ID_BROWSER_COLUMNINFO 10024 // copies the column description to insert it into the table design #define ID_BROWSER_ADDTABLE SID_FM_ADDTABLE #define ID_BROWSER_EXPLORER SID_DSBROWSER_EXPLORER #define ID_BROWSER_DOCUMENT_DATASOURCE SID_DOCUMENT_DATA_SOURCE |