diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/tools/FrameworkHelper.cxx | 27 | ||||
-rw-r--r-- | sd/source/ui/inc/framework/FrameworkHelper.hxx | 21 |
2 files changed, 0 insertions, 48 deletions
diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index 788e0ce0c5a1..a50da0bcbcbb 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -869,33 +869,6 @@ void FrameworkHelper::RunOnResourceActivation( } } - - - -void FrameworkHelper::RunOnResourceDeactivation( - const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId, - const Callback& rCallback, - const bool bRunOnDeactivationEnd) -{ - if (mxConfigurationController.is() - && ! mxConfigurationController->getResource(rxResourceId).is()) - { - rCallback(false); - } - else - { - RunOnEvent( - bRunOnDeactivationEnd - ? msResourceDeactivationEndEvent - : msResourceDeactivationEvent, - FrameworkHelperResourceIdFilter(rxResourceId), - rCallback); - } -} - - - - /** A callback that sets a flag to a specified value when the callback is called. */ diff --git a/sd/source/ui/inc/framework/FrameworkHelper.hxx b/sd/source/ui/inc/framework/FrameworkHelper.hxx index 9964bb6fd32c..c5796adb717b 100644 --- a/sd/source/ui/inc/framework/FrameworkHelper.hxx +++ b/sd/source/ui/inc/framework/FrameworkHelper.hxx @@ -279,27 +279,6 @@ public: const cssu::Reference<cssdf::XResourceId>& rxResourceId, const Callback& rCallback); - /** Run the given callback when the specified resource has been - deactivated. When the resource is not active already when - this method is called then rCallback is called before this - method returns. - @param rxResourceId - Wait for the deactivation of this resource before calling - rCallback. - @param rCallback - The callback to be called when the resource is - deactivated. - @param bRunOnDeactivationEnd - The callback is run either when the deactivation starts - and the callback can still access the resource or when the - deactivatio is complete and the resource is no longer available. - - */ - void RunOnResourceDeactivation( - const cssu::Reference<cssdf::XResourceId>& rxResourceId, - const Callback& rCallback, - const bool bRunOnDeactivationEnd); - /** Normally the requested changes of the configuration are executed asynchronously. However, there is at least one situation (searching with the Outliner) where the surrounding code does not cope with |