summaryrefslogtreecommitdiff
path: root/basctl/source/dlged
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2002-07-15 12:50:42 +0000
committerMathias Bauer <mba@openoffice.org>2002-07-15 12:50:42 +0000
commit1cebcbe49e422bf091235dfda2c5682b36040242 (patch)
tree09adde2584947a7062f15202a1b0ca4e98d9d839 /basctl/source/dlged
parentbb50cdcb681b2eb185105b6eb801187195d17bcf (diff)
#101322#: frame shouldn't be a topframe
Diffstat (limited to 'basctl/source/dlged')
-rw-r--r--basctl/source/dlged/propbrw.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/basctl/source/dlged/propbrw.cxx b/basctl/source/dlged/propbrw.cxx
index c6d3075a25ed..5f029882af2b 100644
--- a/basctl/source/dlged/propbrw.cxx
+++ b/basctl/source/dlged/propbrw.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: propbrw.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: tbe $ $Date: 2001-11-14 11:12:04 $
+ * last change: $Author: mba $ $Date: 2002-07-15 13:50:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -162,6 +162,8 @@
#include <comphelper/processfactory.hxx>
#endif
+#include <sfx2/dispatch.hxx>
+#include <sfx2/viewfrm.hxx>
//============================================================================
// PropBrwMgr
@@ -259,10 +261,12 @@ PropBrw::PropBrw(const Reference< XMultiServiceFactory >& _xORB,
}
// append our frame
- //Reference < XFramesSupplier > xSup(_xFrame,UNO_QUERY);
- //Reference < XFrames > xFrames = xSup->getFrames();
- //xFrames->append( m_xMeAsFrame );
- // TODO: where to append?
+ Reference < XFramesSupplier > xSup( pBindings->GetDispatcher()->GetFrame()->GetFrame()->GetFrameInterface(),UNO_QUERY);
+ if ( xSup.is() )
+ {
+ Reference < XFrames > xFrames = xSup->getFrames();
+ xFrames->append( m_xMeAsFrame );
+ }
if (m_xMeAsFrame.is())
{