diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 13:30:33 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-05-13 13:30:33 +0000 |
commit | fcb81e54529d64f19f36bc456e872aae47001c3d (patch) | |
tree | e5731636f53345b3ea3f346c477fa2675b25948d /sdext/source/presenter/PresenterFrameworkObserver.hxx | |
parent | 8e9ee47dfe1de9c68f46c6bc16f2d6b8336a5e5a (diff) |
INTEGRATION: CWS presenterscreen (1.3.10); FILE MERGED
2008/04/23 11:54:11 af 1.3.10.2: #i18486# Added Shutdown() method.
2008/04/22 08:32:17 af 1.3.10.1: #i18486# Added RunOnUpdateEnd() method.
Diffstat (limited to 'sdext/source/presenter/PresenterFrameworkObserver.hxx')
-rw-r--r-- | sdext/source/presenter/PresenterFrameworkObserver.hxx | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/sdext/source/presenter/PresenterFrameworkObserver.hxx b/sdext/source/presenter/PresenterFrameworkObserver.hxx index 6a79dbcd1c7c..a9aff60d9070 100644 --- a/sdext/source/presenter/PresenterFrameworkObserver.hxx +++ b/sdext/source/presenter/PresenterFrameworkObserver.hxx @@ -8,7 +8,7 @@ * * $RCSfile: PresenterFrameworkObserver.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -75,6 +75,9 @@ public: const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController, const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId, const Action& rAction); + static void RunOnUpdateEnd ( + const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController, + const Action& rAction); virtual void SAL_CALL disposing (void); virtual void SAL_CALL disposing (const css::lang::EventObject& rEvent) @@ -89,6 +92,17 @@ private: Predicate maPredicate; Action maAction; + /** Create a new PresenterFrameworkObserver object. + @param rsEventName + An event name other than ConfigurationUpdateEnd. When the + observer shall only listen for ConfigurationUpdateEnd then pass + an empty name. + @param rPredicate + This functor tests whether the action is to be executed or not. + @param rAction + The functor to execute when the predicate returns true, + e.g. when some resource has been created. + */ PresenterFrameworkObserver ( const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController, const ::rtl::OUString& rsEventName, @@ -96,9 +110,22 @@ private: const Action& rAction); virtual ~PresenterFrameworkObserver (void); + void Shutdown (void); + + /** Predicate that returns true when the specified resource is active + with respect to the given configuration controller. + */ static bool HasResource ( const css::uno::Reference<css::drawing::framework::XConfigurationController>&rxController, const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId); + + /** Predicate that always returns true. + */ + static bool True (void); + + /** Predicate that always returns false. + */ + static bool False (void); }; |