summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/textsh.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-02-01 17:52:07 +0000
committerKurt Zenker <kz@openoffice.org>2006-02-01 17:52:07 +0000
commitb90731a419e3a95397f2bbc273281ebc4517b667 (patch)
tree2be0c850f227fc28552fa8fced98dca7dce76bce /sw/source/ui/shells/textsh.cxx
parent8e54fd380631a8bc2198526177b404a89ed12eb9 (diff)
INTEGRATION: CWS mav19 (1.46.8); FILE MERGED
2006/01/26 18:05:59 mav 1.46.8.1: #130736# switch floating frames, applets and plugins to running state when necessary
Diffstat (limited to 'sw/source/ui/shells/textsh.cxx')
-rw-r--r--sw/source/ui/shells/textsh.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx
index a31affa5c5d0..3dcc6f068128 100644
--- a/sw/source/ui/shells/textsh.cxx
+++ b/sw/source/ui/shells/textsh.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textsh.cxx,v $
*
- * $Revision: 1.46 $
+ * $Revision: 1.47 $
*
- * last change: $Author: obo $ $Date: 2005-11-16 09:52:47 $
+ * last change: $Author: kz $ $Date: 2006-02-01 18:52:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -427,6 +427,8 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
svt::EmbeddedObjectRef xObj( aCnt.CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), aName ) );
if ( xObj.is() )
{
+ svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
+
// set properties from dialog
uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY );
if ( xSet.is() )
@@ -510,6 +512,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
comphelper::EmbeddedObjectContainer aCnt;
::rtl::OUString aName;
xObj.Assign( aCnt.CreateEmbeddedObject( SvGlobalName( SO3_PLUGIN_CLASSID ).GetByteSequence(), aName ) );
+ svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY );
if ( xSet.is() )
{
@@ -560,6 +563,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
comphelper::EmbeddedObjectContainer aCnt;
::rtl::OUString aName;
xObj.Assign( aCnt.CreateEmbeddedObject( SvGlobalName( SO3_IFRAME_CLASSID ).GetByteSequence(), aName ) );
+ svt::EmbeddedObjectRef::TryRunningState( xObj.GetObject() );
uno::Reference < beans::XPropertySet > xSet( xObj->getComponent(), uno::UNO_QUERY );
if ( xSet.is() )
{