summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-10-16 14:22:37 +0000
committerjp <jp@openoffice.org>2000-10-16 14:22:37 +0000
commitaf8e90c8c831003db0f263253f1b9681287c1b21 (patch)
treeeb80c55c4bf6c9f8e92314ced6605d7c3ed13aab
parentcdbcd6f218e2a301002806aa272cc61608ed5986 (diff)
Task #79052#: call LoadUrl over the Bindings
-rw-r--r--sw/source/ui/wrtsh/wrtsh2.cxx22
1 files changed, 12 insertions, 10 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx
index 35c4d70c04c6..5b7d284d2b99 100644
--- a/sw/source/ui/wrtsh/wrtsh2.cxx
+++ b/sw/source/ui/wrtsh/wrtsh2.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: wrtsh2.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: os $ $Date: 2000-09-21 14:46:31 $
+ * last change: $Author: jp $ $Date: 2000-10-16 15:22:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -489,14 +489,16 @@ void LoadURL( const String& rURL, ViewShell* pVSh, USHORT nFilter,
if( nFilter & URLLOAD_NEWVIEW )
aTargetFrameName.SetValue( String::CreateFromAscii("_blank") );
- pViewFrm->GetDispatcher()->Execute( SID_OPENDOC,
- SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD,
- &aName,
- &aFilter,
- &aNewView, /*&aSilent,*/ &aReadOnly,
- &aReferer,
- &aView, &aTargetFrameName,
- 0L );
+ const SfxPoolItem* aArr[] = {
+ &aName, &aFilter,
+ &aNewView, /*&aSilent,*/ &aReadOnly,
+ &aReferer,
+ &aView, &aTargetFrameName,
+ 0L
+ };
+
+ pViewFrm->GetDispatcher()->GetBindings()->Execute( SID_OPENDOC, aArr,
+ SFX_CALLMODE_ASYNCHRON|SFX_CALLMODE_RECORD );
}
void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, const DropEvent* pEvt )