diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-05-15 08:05:54 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-05-15 08:05:54 +0000 |
commit | ff1ebc49f6a9e2a848b2e165cd2b65c92b4469cc (patch) | |
tree | 1626f03bd3e5440febc93105e6c0ef747d75bb3a /framework | |
parent | 20832fa76ea3e32aff1d264cbd201bd6b54f4e9e (diff) |
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
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/inc/dispatch/loaddispatcher.hxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/framework/source/inc/dispatch/loaddispatcher.hxx b/framework/source/inc/dispatch/loaddispatcher.hxx index 533c81eeed0a..8c740f7705e1 100644 --- a/framework/source/inc/dispatch/loaddispatcher.hxx +++ b/framework/source/inc/dispatch/loaddispatcher.hxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: loaddispatcher.hxx,v $ - * $Revision: 1.4 $ + * $Revision: 1.5 $ * * This file is part of OpenOffice.org. * @@ -39,10 +39,12 @@ //_______________________________________________ // interface includes #include <com/sun/star/frame/XNotifyingDispatch.hpp> +#include <com/sun/star/frame/XSynchronousDispatch.hpp> //_______________________________________________ // other includes -#include <cppuhelper/implbase1.hxx> + +#include <cppuhelper/implbase2.hxx> //_______________________________________________ // namespace @@ -64,7 +66,8 @@ namespace css = ::com::sun::star; @author as96863 */ class LoadDispatcher : private ThreadHelpBase - , public ::cppu::WeakImplHelper1< css::frame::XNotifyingDispatch > // => XDispatch => XInterface + , public ::cppu::WeakImplHelper2< css::frame::XNotifyingDispatch, // => XDispatch => XInterface + css::frame::XSynchronousDispatch > { //___________________________________________ // member @@ -145,6 +148,15 @@ class LoadDispatcher : private ThreadHelpBase const css::util::URL& aURL ) 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 } // namespace framework |