[Libreoffice-bugs] [Bug 138347] Link to call Basic script with vnd.sun.star.script: not working in Writer. Same thing working in Calc (also with HYPERLINK()).

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jul 10 10:39:11 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=138347

--- Comment #4 from Andreas Heinisch <andreas.heinisch at yahoo.de> ---
I tried to investigate this error. Here are my findings:

For both Calc and Writer the URL will be open in:
https://opengrok.libreoffice.org/xref/core/sfx2/source/appl/appopen.cxx?r=5021a10f#1078

The only difference is that the target of the URL is "empty" for Calc and
"_blank" for Writer, if you try to open it using CTRL+click. However, if Writer
opens the URL via context menu, the target is "empty" as well.

Calc will add the "_blank" target, if SHIFT is enabled, which is IMHO wrong:
https://opengrok.libreoffice.org/xref/core/sc/source/core/data/global.cxx?r=1b7fc505#810

Writer adds the "_blank" target in:
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/wrtsh/wrtsh2.cxx?r=aa818a0b#546,
because of the CTRL modifier in:
https://opengrok.libreoffice.org/xref/core/sw/source/uibase/docvw/edtwin.cxx?r=216a43bc#4691.

Imho, this is not a macro problem, but a problem in the target handling in
appopen.cxx and the supported protocols for the "_blank" target.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210710/ce9c5af4/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list