diff options
author | Andreas Schlüns <as@openoffice.org> | 2001-07-06 12:24:45 +0000 |
---|---|---|
committer | Andreas Schlüns <as@openoffice.org> | 2001-07-06 12:24:45 +0000 |
commit | ad007f5b80211cfb3232acb4078ba2cf5476fdcc (patch) | |
tree | 8731a45597d8da1c420f34ab5c2a67b92658b75f /framework/inc | |
parent | 71e9c645e001637279acf44163b0b02321ddac9b (diff) |
#79955# new callback for handled dispatches
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/dispatch/basedispatcher.hxx | 31 | ||||
-rw-r--r-- | framework/inc/dispatch/blankdispatcher.hxx | 24 | ||||
-rw-r--r-- | framework/inc/dispatch/selfdispatcher.hxx | 16 |
3 files changed, 44 insertions, 27 deletions
diff --git a/framework/inc/dispatch/basedispatcher.hxx b/framework/inc/dispatch/basedispatcher.hxx index c2a58b8ecc84..4bccabd9a96d 100644 --- a/framework/inc/dispatch/basedispatcher.hxx +++ b/framework/inc/dispatch/basedispatcher.hxx @@ -2,9 +2,9 @@ * * $RCSfile: basedispatcher.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: as $ $Date: 2001-07-02 13:21:00 $ + * last change: $Author: as $ $Date: 2001-07-06 13:24:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -395,17 +395,22 @@ class BaseDispatcher : // interfaces virtual ~BaseDispatcher(); /*-****************************************************************************************************//** - @short you should react for successfully or failed load operations. - @descr These baseclass implement handling of synchronous or asynchronous loading - operations into a target frame. They implement the complete listener mechanism to send - status events to our listener too! But we couldn't react for this event in all cases. + @short you should react for successfully or failed load/handle operations. + @descr These baseclass implement handling of dispatched URLs and synchronous/asynchronous loading + of it into a target frame. It implement the complete listener mechanism to get events from + used loader or handler and sending of status events to registered listener too! + But we couldn't react for this events in all cases. May be - you wish to reactivate suspended controllers or wish to delete a new created task if operation failed ...!? - By overwriting these pure virtual method it's possible to do such things. + By overwriting these pure virtual methods it's possible to do such things. We call you with all available informations ... you should react for it. BUT - don't send any status events to your listener! We will do it everytime. (other listener could be informed as well!) + You will called back in: a) "reactForLoadingState()" , if URL was loaded into a frame + b) "reactForHandlingState()", if URL was handled by a registered content handler + (without using a target frame!) + @seealso method statusChanged() @seealso method loadFinished() @seealso method loadCancelled() @@ -419,10 +424,14 @@ class BaseDispatcher : // interfaces @onerror - @threadsafe - *//*-*****************************************************************************************************/ - virtual void SAL_CALL reactForLoadingState( const css::util::URL& aURL , - const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , - const css::uno::Reference< css::frame::XFrame >& xTarget , - sal_Bool bState ) = 0; + virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + const css::uno::Reference< css::frame::XFrame >& xTarget , + sal_Bool bState ) = 0; + + virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + sal_Bool bState ) = 0; //------------------------------------------------------------------------------------------------------------- // protected methods diff --git a/framework/inc/dispatch/blankdispatcher.hxx b/framework/inc/dispatch/blankdispatcher.hxx index d645e89c9898..517c40175349 100644 --- a/framework/inc/dispatch/blankdispatcher.hxx +++ b/framework/inc/dispatch/blankdispatcher.hxx @@ -2,9 +2,9 @@ * * $RCSfile: blankdispatcher.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: as $ $Date: 2001-07-02 13:21:29 $ + * last change: $Author: as $ $Date: 2001-07-06 13:24:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -122,20 +122,24 @@ class BlankDispatcher : // -interfaces ... are supported by our BaseDispatc //------------------------------------------------------------------------------------------------------------- public: // ctor - BlankDispatcher ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory , - const css::uno::Reference< css::frame::XFrame >& xDesktop ); + BlankDispatcher ( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory , + const css::uno::Reference< css::frame::XFrame >& xDesktop ); // XDispatch - virtual void SAL_CALL dispatch ( const css::util::URL& aURL , - const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ); + virtual void SAL_CALL dispatch ( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) throw( css::uno::RuntimeException ); //------------------------------------------------------------------------------------------------------------- // protected methods //------------------------------------------------------------------------------------------------------------- protected: - virtual void SAL_CALL reactForLoadingState( const css::util::URL& aURL , - const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , - const css::uno::Reference< css::frame::XFrame >& xTarget , - sal_Bool bState ); + virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + const css::uno::Reference< css::frame::XFrame >& xTarget , + sal_Bool bState ); + + virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + sal_Bool bState ); //------------------------------------------------------------------------------------------------------------- // debug methods diff --git a/framework/inc/dispatch/selfdispatcher.hxx b/framework/inc/dispatch/selfdispatcher.hxx index 17b9fdc528e9..5177cdb173a4 100644 --- a/framework/inc/dispatch/selfdispatcher.hxx +++ b/framework/inc/dispatch/selfdispatcher.hxx @@ -2,9 +2,9 @@ * * $RCSfile: selfdispatcher.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: as $ $Date: 2001-07-02 13:21:47 $ + * last change: $Author: as $ $Date: 2001-07-06 13:24:45 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -130,10 +130,14 @@ class SelfDispatcher : // -interfaces ... are supported by our BaseDispatch // protected methods //------------------------------------------------------------------------------------------------------------- protected: - virtual void SAL_CALL reactForLoadingState( const css::util::URL& aURL , - const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , - const css::uno::Reference< css::frame::XFrame >& xTarget , - sal_Bool bState ); + virtual void SAL_CALL reactForLoadingState ( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + const css::uno::Reference< css::frame::XFrame >& xTarget , + sal_Bool bState ); + + virtual void SAL_CALL reactForHandlingState( const css::util::URL& aURL , + const css::uno::Sequence< css::beans::PropertyValue >& lDescriptor , + sal_Bool bState ); }; // class SelfDispatcher |