Kaydet (Commit) ff1ebc49 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS oxtsysint01 (1.3.460); FILE MERGED

2008/04/15 13:26:30 dv 1.3.460.2: RESYNC: (1.3-1.4); FILE MERGED
2008/04/15 11:52:00 dv 1.3.460.1: #i85856# added XSynchronousDispatch interface for replacing loadComponentFromURL
üst 20832fa7
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: loaddispatcher.hxx,v $ * $RCSfile: loaddispatcher.hxx,v $
* $Revision: 1.4 $ * $Revision: 1.5 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -39,10 +39,12 @@ ...@@ -39,10 +39,12 @@
//_______________________________________________ //_______________________________________________
// interface includes // interface includes
#include <com/sun/star/frame/XNotifyingDispatch.hpp> #include <com/sun/star/frame/XNotifyingDispatch.hpp>
#include <com/sun/star/frame/XSynchronousDispatch.hpp>
//_______________________________________________ //_______________________________________________
// other includes // other includes
#include <cppuhelper/implbase1.hxx>
#include <cppuhelper/implbase2.hxx>
//_______________________________________________ //_______________________________________________
// namespace // namespace
...@@ -64,7 +66,8 @@ namespace css = ::com::sun::star; ...@@ -64,7 +66,8 @@ namespace css = ::com::sun::star;
@author as96863 @author as96863
*/ */
class LoadDispatcher : private ThreadHelpBase class LoadDispatcher : private ThreadHelpBase
, public ::cppu::WeakImplHelper1< css::frame::XNotifyingDispatch > // => XDispatch => XInterface , public ::cppu::WeakImplHelper2< css::frame::XNotifyingDispatch, // => XDispatch => XInterface
css::frame::XSynchronousDispatch >
{ {
//___________________________________________ //___________________________________________
// member // member
...@@ -145,6 +148,15 @@ class LoadDispatcher : private ThreadHelpBase ...@@ -145,6 +148,15 @@ class LoadDispatcher : private ThreadHelpBase
const css::util::URL& aURL ) const css::util::URL& aURL )
throw(css::uno::RuntimeException); throw(css::uno::RuntimeException);
// XSynchronousDispatch
virtual css::uno::Any SAL_CALL dispatchWithReturnValue( const css::util::URL& aURL ,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
throw( css::uno::RuntimeException );
private:
css::uno::Any impl_dispatch( const css::util::URL& rURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
const css::uno::Reference< css::frame::XDispatchResultListener >& xListener );
}; // class LoadDispatcher }; // class LoadDispatcher
} // namespace framework } // namespace framework
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment