[Libreoffice-commits] core.git: dbaccess/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 22 16:54:56 UTC 2021


 dbaccess/source/ui/browser/sbagrid.cxx |   14 --------------
 dbaccess/source/ui/inc/browserids.hxx  |    1 -
 2 files changed, 15 deletions(-)

New commits:
commit 110e3b63a7287e625570adead9f0bab12383dd3f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Feb 22 14:41:39 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Feb 22 17:53:33 2021 +0100

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list