query getUserAllowsLinkUpdate for the case of content in a floating frame

similarly to how it works for the more common "normal" embedded objects

Change-Id: I83e38dfa2f84907c2de9680e91f779d34864a9ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149971
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 0bea24b..8121539 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -180,6 +180,17 @@ sal_Bool SAL_CALL IFrameObject::load(
        if (!SfxEvents_Impl::isScriptURLAllowed(aTargetURL.Complete))
            return false;

        bool bUpdateAllowed(true);
        if (pDoc)
        {
            // perhaps should only check for file targets, but lets default to making it strong
            // unless there is a known need to distinguish
            comphelper::EmbeddedObjectContainer& rEmbeddedObjectContainer = pDoc->getEmbeddedObjectContainer();
            bUpdateAllowed = rEmbeddedObjectContainer.getUserAllowsLinkUpdate();
        }
        if (!bUpdateAllowed)
            return false;

        OUString sReferer;
        if (pDoc && pDoc->HasName())
            sReferer = pDoc->GetMedium()->GetName();