tdf#128814 Add delete to Hyperlinks Navigator context menu

Change-Id: I401ea84aa32e7d01f9fe157eac4d51981550fc76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87945
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index bb9258b..7cc8bf8 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -426,7 +426,7 @@ void SwContentType::Init(bool* pbInvalidateWindow)

            m_bEdit = true;
            nOldMemberCount = m_nMemberCount;
            m_bDelete = false;
            m_bDelete = true;
        }
        break;
        case ContentTypeId::POSTIT:
@@ -3654,7 +3654,10 @@ void SwContentTree::EditEntry(SvTreeListEntry const * pEntry, EditEntryMode nMod
        break;

        case ContentTypeId::URLFIELD:
            nSlot = SID_EDIT_HYPERLINK;
            if (nMode == EditEntryMode::DELETE)
                nSlot = SID_REMOVE_HYPERLINK;
            else
                nSlot = SID_EDIT_HYPERLINK;
        break;
        case ContentTypeId::REFERENCE:
            nSlot = FN_EDIT_FIELD;