diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-27 22:52:31 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-28 01:12:51 -0400 |
commit | e610388522c31455bb989c957e9480fa7fbcdf6c (patch) | |
tree | 22ad4bb0bbe2c7a1309120f5b6c4f31defbeeb08 /sc/inc/brdcst.hxx | |
parent | f847a0e29bb2bf1f2992c1e67cf2aa281bcfe355 (diff) |
We only need to send the broadcaster instance with ScHint.
Another ScBaseCell eliminated.
Change-Id: I32a07024dd1d8ab536038942aa7209a7829d193c
Diffstat (limited to 'sc/inc/brdcst.hxx')
-rw-r--r-- | sc/inc/brdcst.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/brdcst.hxx b/sc/inc/brdcst.hxx index ee18de45e9ce..737e7e89544e 100644 --- a/sc/inc/brdcst.hxx +++ b/sc/inc/brdcst.hxx @@ -24,7 +24,8 @@ #include <tools/rtti.hxx> #include <svl/hint.hxx> #include <svl/smplhint.hxx> -class ScBaseCell; + +class SvtBroadcaster; #define SC_HINT_DYING SFX_HINT_DYING #define SC_HINT_DATACHANGED SFX_HINT_DATACHANGED @@ -35,14 +36,13 @@ class ScHint : public SfxSimpleHint { private: ScAddress aAddress; - ScBaseCell* pCell; + SvtBroadcaster* mpBroadcaster; public: TYPEINFO(); - ScHint( sal_uLong n, const ScAddress& a, ScBaseCell* p ) - : SfxSimpleHint( n ), aAddress( a ), pCell( p ) {} - ScBaseCell* GetCell() const { return pCell; } - void SetCell( ScBaseCell* p ) { pCell = p; } + ScHint( sal_uLong n, const ScAddress& a, SvtBroadcaster* p ); + SvtBroadcaster* GetBroadcaster() const; + void SetBroadcaster( SvtBroadcaster* p ); const ScAddress& GetAddress() const { return aAddress; } ScAddress& GetAddress() { return aAddress; } void SetAddress( const ScAddress& rAdr ) { aAddress = rAdr; } |