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(+)
New commits: commit 90fcda6dc147a004f202ff21c2bc367e547d9678 Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Thu Dec 5 11:14:13 2024 +0100 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Tue Dec 10 08:52:36 2024 +0100 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/+/178142 Tested-by: allotropia jenkins <jenk...@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> 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 @@ <menu:menuitem menu:id=".uno:FontDialog"/> <menu:menuitem menu:id=".uno:ParagraphDialog"/> <menu:menuseparator/> + <menu:menuitem menu:id=".uno:OpenHyperlinkOnCursor"/> + <menu:menuitem menu:id=".uno:EditHyperlink"/> + <menu:menuitem menu:id=".uno:CopyHyperlinkLocation"/> + <menu:menuitem menu:id=".uno:RemoveHyperlink"/> + <menu:menuseparator/> <menu:menu menu:id=".uno:ObjectAlign"/> <menu:menu menu:id=".uno:ArrangeMenu"> <menu:menupopup> 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 @@ <menu:menuitem menu:id=".uno:FontDialog"/> <menu:menuitem menu:id=".uno:ParagraphDialog"/> <menu:menuseparator/> + <menu:menuitem menu:id=".uno:OpenHyperlinkOnCursor"/> + <menu:menuitem menu:id=".uno:EditHyperlink"/> + <menu:menuitem menu:id=".uno:CopyHyperlinkLocation"/> + <menu:menuitem menu:id=".uno:RemoveHyperlink"/> + <menu:menuseparator/> <menu:menu menu:id=".uno:ObjectAlign"/> <menu:menu menu:id=".uno:ArrangeMenu"> <menu:menupopup> diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 7cf50ef04d5c..782f7ec4b5b8 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -298,7 +298,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 )