diff options
author | jp <jp@openoffice.org> | 2000-10-16 14:22:37 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2000-10-16 14:22:37 +0000 |
commit | 8e9328706be47d1649f2b2160b35343a71f59c53 (patch) | |
tree | bf5da0ec4d892b60eb3907ac980724591b2547f3 /sw/source/ui/wrtsh/wrtsh2.cxx | |
parent | 414857912ecaf4d4fadee0f9de08d4b967b577c9 (diff) |
Task #79052#: call LoadUrl over the Bindings
Diffstat (limited to 'sw/source/ui/wrtsh/wrtsh2.cxx')
-rw-r--r-- | sw/source/ui/wrtsh/wrtsh2.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx index 83d7d1a35a..1fc3ab2761 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 ) |