summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/iframe.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-07-01 15:03:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-07-01 15:03:25 +0000
commitc003c58349a0c5b3109e79d5f45032878984d69c (patch)
tree647e404b29bf4dea20ea5b15145711d035936ecb /sfx2/source/doc/iframe.cxx
parentd91c7dd8e932b3a16ef7bff8d9edf84af7ef1b70 (diff)
INTEGRATION: CWS mav33 (1.11.58); FILE MERGED
2008/06/02 05:27:59 mav 1.11.58.1: #i90053# register iFrame frame in the frame hierarchy
Diffstat (limited to 'sfx2/source/doc/iframe.cxx')
-rw-r--r--sfx2/source/doc/iframe.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 042d60e5322e..c012e7d7d9aa 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: iframe.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
* This file is part of OpenOffice.org.
*
@@ -36,6 +36,7 @@
#include <sfx2/sfxsids.hrc>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
+#include <com/sun/star/frame/XFramesSupplier.hpp>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <tools/urlobj.hxx>
@@ -154,6 +155,10 @@ throw( uno::RuntimeException )
mxFrame->initialize( xWin );
mxFrame->setName( maFrmDescr.GetName() );
+ uno::Reference < frame::XFramesSupplier > xFramesSupplier( xFrame, uno::UNO_QUERY );
+ if ( xFramesSupplier.is() )
+ mxFrame->setCreator( xFramesSupplier );
+
uno::Reference< frame::XDispatchProvider > xProv( mxFrame, uno::UNO_QUERY );
util::URL aTargetURL;