diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-03 23:19:39 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-04 00:47:57 -0500 |
commit | 4eb381147bd0c9c7a48f86de0e3ae1d4c3bbe12f (patch) | |
tree | 167bc0a2100a522a575842683fa244ee916ea6ce /include/svl/lstner.hxx | |
parent | a09a709594dd0f6e38f8c6bf28433bd391e8842d (diff) |
pIimplize SfxBroadcaster and SfxListener.
Change-Id: I0d1d73402f11cc61ea9e7629bea34e24c22f5beb
Diffstat (limited to 'include/svl/lstner.hxx')
-rw-r--r-- | include/svl/lstner.hxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/include/svl/lstner.hxx b/include/svl/lstner.hxx index 0bdf6e23dc9e..8792c01ff041 100644 --- a/include/svl/lstner.hxx +++ b/include/svl/lstner.hxx @@ -21,21 +21,17 @@ #include <svl/svldllapi.h> #include <tools/rtti.hxx> -#include <deque> class SfxBroadcaster; class SfxHint; -typedef std::deque<SfxBroadcaster*> SfxBroadcasterArr_Impl; - #define SFX_NOTIFY( rBC, rBCT, rHint, rHintT ) \ Notify( rBC, rHint ) - - class SVL_DLLPUBLIC SfxListener { - SfxBroadcasterArr_Impl aBCs; + struct Impl; + Impl* mpImpl; private: const SfxListener& operator=(const SfxListener &); // n.i., ist verboten @@ -52,10 +48,8 @@ public: void EndListeningAll(); bool IsListening( SfxBroadcaster& rBroadcaster ) const; - sal_uInt16 GetBroadcasterCount() const - { return aBCs.size(); } - SfxBroadcaster* GetBroadcasterJOE( sal_uInt16 nNo ) const - { return aBCs[nNo]; } + sal_uInt16 GetBroadcasterCount() const; + SfxBroadcaster* GetBroadcasterJOE( sal_uInt16 nNo ) const; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); |