Lines 143-148
friend class SfxStatusBarManager;
Link Here
|
143 |
|
143 |
|
144 |
private: |
144 |
private: |
145 |
SfxStatusBarControl* GetItemAt( const MouseEvent &rEvt ); |
145 |
SfxStatusBarControl* GetItemAt( const MouseEvent &rEvt ); |
|
|
146 |
DECL_LINK( ItemRemoved_Impl, void* ); |
146 |
|
147 |
|
147 |
protected: |
148 |
protected: |
148 |
virtual void Click(); |
149 |
virtual void Click(); |
Lines 157-162
protected:
Link Here
|
157 |
public: |
158 |
public: |
158 |
SfxStatusBar_Impl( Window* pParent, |
159 |
SfxStatusBar_Impl( Window* pParent, |
159 |
SfxStatusBarManager& rMgr ); |
160 |
SfxStatusBarManager& rMgr ); |
|
|
161 |
~SfxStatusBar_Impl(); |
160 |
void Init( SfxStatusBarManager* rMgr ); |
162 |
void Init( SfxStatusBarManager* rMgr ); |
161 |
|
163 |
|
162 |
void CaptureMouse( SfxStatusBarControl &rCtrl ); |
164 |
void CaptureMouse( SfxStatusBarControl &rCtrl ); |
Lines 182-187
SfxStatusBar_Impl::SfxStatusBar_Impl( Wi
Link Here
|
182 |
pLastFocusWin(0) |
184 |
pLastFocusWin(0) |
183 |
{ |
185 |
{ |
184 |
SetUniqueId( HID_STATUSBAR ); |
186 |
SetUniqueId( HID_STATUSBAR ); |
|
|
187 |
|
188 |
AddEventListener( LINK( this, SfxStatusBar_Impl, ItemRemoved_Impl ) ); |
189 |
} |
190 |
|
191 |
SfxStatusBar_Impl::~SfxStatusBar_Impl() |
192 |
{ |
193 |
RemoveEventListener( LINK( this, SfxStatusBar_Impl, ItemRemoved_Impl ) ); |
194 |
} |
195 |
|
196 |
IMPL_LINK( SfxStatusBar_Impl, ItemRemoved_Impl, void*, pVoid ) |
197 |
{ |
198 |
VclWindowEvent *pEvent = (VclWindowEvent *) pVoid; |
199 |
|
200 |
if (pEvent) |
201 |
{ |
202 |
if( pEvent->GetId() == VCLEVENT_STATUSBAR_ITEMREMOVED || |
203 |
pEvent->GetId() == VCLEVENT_STATUSBAR_ALLITEMSREMOVED ) |
204 |
{ |
205 |
pLastControl = 0; |
206 |
} |
207 |
} |
208 |
|
209 |
return 0L; |
185 |
} |
210 |
} |
186 |
|
211 |
|
187 |
void SfxStatusBar_Impl::Init( SfxStatusBarManager* p ) |
212 |
void SfxStatusBar_Impl::Init( SfxStatusBarManager* p ) |