[Libreoffice-ux-advise] [Bug 153740] In Writer, there should be 3 types of hyperlinks

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 13 07:48:33 UTC 2023


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

--- Comment #6 from Jim Raykowski <raykowj at gmail.com> ---
It's not difficult to examine the url name and display an icon next to the
hyperlink entry. Relevant link types I can think of are http, https, ftp, file,
#(internal) and mailto.

Code pointers:

sw/source/uibase/utlui/content.cxx SwContentTree::InsertContent

Get the url string by static casting pCnt to SwURLFieldContent* -> GetURL()
then determine the url type by string comparison and set the tree entry image
accordingly.

The SwContentTree::InsertContent function is where an icon is set for linked
image entries.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list