Created attachment 188210 [details]
shape hyperlink example
I can add a hyperlink to a shape in Draw.
If I hoover my mouse pointer over this shape, the pointer does not change into a pointing hand and no tooltip appears to indicate that this shape is a hyperlink as happens when I hoover the mouse pointer over a text hyperlink.
When I right click on a text hyperlink, I can select Edit Hyperlink. I am not given this choice if I right click on a shape to which I have applied a hyperlink.
If I export the document as a PDF, I can open the PDF in my PDF reader application and the shape acts link any other hyperlink.
Since this shows that the shape is actually a hyperlink, Draw should treat the shape as any other hyperlink.
This is interesting.
I tried opening the attachment I included. When I open it in Draw and hoover the mouse pointer over the shape, the mouse pointer changes to a pointing hand and the tooltip appears. However, if I right click on the shape, I am still not given the choice to Edit Hyperlink.
However, if I open the original file in Draw, the shape is still not treated as a hyperlink at all.
Version: 220.127.116.11.alpha0+ (X86_64) / LibreOffice Community
Build ID: e4e5fb4b2935e395c7e4b3a794d544a6f44709ce
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
I can confirm:
- The shape can't be Ctrl + clicked when adding the hyperlinked. One needs to save and reload the file to be able to use the hyperlink.
- The "Edit hyperlink" is missing in the context menu. However, I think this could be tracked in the related issue with Edit > Hyperlink being greyed: bug 88918.
One odd thing is that, if I am editing the text box below the shape in your attachment, a single click on the shape (without Ctrl) is sufficient to open the link in browser.
Ability to interact with the shape as any other link was implemented by Samuel in 7.3 with 9a04703b22f9ffb11256d715f65e79a6a2417e18.
Samuel, can you please have a look?