sfx2/source/doc/iframe.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2da7cb9462a98d37191132b6eec13a3ab0da147a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Apr 7 16:44:39 2023 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Apr 7 22:50:57 2023 +0200

    set an InteractionHandler with the embedded frame as dialog parent
    
    for any warning dialogs that may appear
    
    Change-Id: Ibb8f90b60cb1af625b0dc57d2f9fd01964fa9bba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150128
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 8d1504979e3e..b30063ee382e 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -24,6 +24,7 @@
 #include <com/sun/star/frame/Frame.hpp>
 #include <com/sun/star/frame/XFrame2.hpp>
 #include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
+#include <com/sun/star/task/InteractionHandler.hpp>
 #include <com/sun/star/util/URLTransformer.hpp>
 #include <com/sun/star/util/XURLTransformer.hpp>
 #include <com/sun/star/util/XCloseable.hpp>
@@ -199,9 +200,11 @@ sal_Bool SAL_CALL IFrameObject::load(
         if ( xFramesSupplier.is() )
             mxFrame->setCreator( xFramesSupplier );
 
+        uno::Reference<task::XInteractionHandler> 
xInteractionHandler(task::InteractionHandler::createWithParent(mxContext, 
xWin));
         uno::Sequence < beans::PropertyValue > aProps{
             comphelper::makePropertyValue("PluginMode", sal_Int16(2)),
-            comphelper::makePropertyValue("ReadOnly", true)
+            comphelper::makePropertyValue("ReadOnly", true),
+            comphelper::makePropertyValue("InteractionHandler", 
xInteractionHandler)
         };
         uno::Reference < frame::XDispatch > xDisp = mxFrame->queryDispatch( 
aTargetURL, "_self", 0 );
         if ( xDisp.is() )

Reply via email to