From 853ddebc0b14fedf4ae7ed9a5017dc425bd99479 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Thu, 5 Dec 2024 11:14:13 +0100 Subject: [PATCH] tdf#164183 Add hyperlink entries to context menu of tables Table objects in Draw/Impress now have Open/Edit/Copy/Remove hyperlink entries in context menu of text in table objects. Change-Id: Id3a5346eb3227871a06d2ea7fdb3ed38c07654c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177849 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sd/uiconfig/sdraw/popupmenu/table.xml | 5 +++++ sd/uiconfig/simpress/popupmenu/table.xml | 5 +++++ svx/source/table/tablecontroller.cxx | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/sd/uiconfig/sdraw/popupmenu/table.xml b/sd/uiconfig/sdraw/popupmenu/table.xml index 71ae6f2bd562..7ada41804675 100644 --- a/sd/uiconfig/sdraw/popupmenu/table.xml +++ b/sd/uiconfig/sdraw/popupmenu/table.xml @@ -49,6 +49,11 @@ + + + + + diff --git a/sd/uiconfig/simpress/popupmenu/table.xml b/sd/uiconfig/simpress/popupmenu/table.xml index 71ae6f2bd562..7ada41804675 100644 --- a/sd/uiconfig/simpress/popupmenu/table.xml +++ b/sd/uiconfig/simpress/popupmenu/table.xml @@ -49,6 +49,11 @@ + + + + + diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index ee32304f2d93..b7215921fc12 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -292,7 +292,12 @@ bool SvxTableController::onMouseButtonDown(const MouseEvent& rMEvt, vcl::Window* } if( rMEvt.IsRight() && eHit != TableHitKind::NONE ) + { + OutlinerView* pOLV = mrView.GetTextEditOutlinerView(); + if( pOLV ) + pOLV->MouseButtonDown(rMEvt); return true; // right click will become context menu + } // for cell selection with the mouse remember our first hit if( mbLeftButtonDown )