Kaydet (Commit) 410c06be authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

and remove some dead code

Change-Id: I608ed684fafb33390d869f7ebd4000c53d7fb28d
üst 32673845
...@@ -356,7 +356,7 @@ void IconChoiceDialog::ShowPage(sal_uInt16 nId) ...@@ -356,7 +356,7 @@ void IconChoiceDialog::ShowPage(sal_uInt16 nId)
| select a page | select a page
| |
\**********************************************************************/ \**********************************************************************/
IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl) IMPL_LINK_NOARG_TYPED(IconChoiceDialog , ChosePageHdl_Impl, SvtIconChoiceCtrl*, void)
{ {
SvxIconChoiceCtrlEntry *pEntry = m_pIconCtrl->GetSelectedEntry(); SvxIconChoiceCtrlEntry *pEntry = m_pIconCtrl->GetSelectedEntry();
if ( !pEntry ) if ( !pEntry )
...@@ -368,8 +368,6 @@ IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl) ...@@ -368,8 +368,6 @@ IMPL_LINK_NOARG(IconChoiceDialog , ChosePageHdl_Impl)
{ {
ShowPage(*pId); ShowPage(*pId);
} }
return 0L;
} }
/********************************************************************** /**********************************************************************
......
...@@ -141,11 +141,11 @@ private: ...@@ -141,11 +141,11 @@ private:
bool bInOK; bool bInOK;
bool bItemsReset; bool bItemsReset;
DECL_LINK ( ChosePageHdl_Impl, void * ); DECL_LINK_TYPED( ChosePageHdl_Impl, SvtIconChoiceCtrl*, void );
DECL_LINK_TYPED(OkHdl, Button*, void); DECL_LINK_TYPED( OkHdl, Button*, void );
DECL_LINK_TYPED(ApplyHdl, Button*, void); DECL_LINK_TYPED( ApplyHdl, Button*, void) ;
DECL_LINK_TYPED(ResetHdl, Button*, void); DECL_LINK_TYPED( ResetHdl, Button*, void) ;
DECL_LINK_TYPED(CancelHdl, Button*, void); DECL_LINK_TYPED( CancelHdl, Button*, void );
IconChoicePageData* GetPageData ( sal_uInt16 nId ); IconChoicePageData* GetPageData ( sal_uInt16 nId );
void Start_Impl(); void Start_Impl();
......
...@@ -157,7 +157,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType ) ...@@ -157,7 +157,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
return false; return false;
} }
IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl) IMPL_LINK_TYPED(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pControl, void)
{ {
SvxIconChoiceCtrlEntry* pEntry = _pControl->GetSelectedEntry(); SvxIconChoiceCtrlEntry* pEntry = _pControl->GetSelectedEntry();
ElementType eType = E_NONE; ElementType eType = E_NONE;
...@@ -166,8 +166,6 @@ IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pCo ...@@ -166,8 +166,6 @@ IMPL_LINK(OApplicationSwapWindow, OnContainerSelectHdl, SvtIconChoiceCtrl*, _pCo
eType = *static_cast<ElementType*>(pEntry->GetUserData()); eType = *static_cast<ElementType*>(pEntry->GetUserData());
onContainerSelected( eType ); // i87582 onContainerSelected( eType ); // i87582
} }
return 1L;
} }
IMPL_LINK_NOARG_TYPED(OApplicationSwapWindow, ChangeToLastSelected, void*, void) IMPL_LINK_NOARG_TYPED(OApplicationSwapWindow, ChangeToLastSelected, void*, void)
......
...@@ -37,7 +37,7 @@ namespace dbaui ...@@ -37,7 +37,7 @@ namespace dbaui
void ImplInitSettings( bool bFont, bool bForeground, bool bBackground ); void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
DECL_LINK( OnContainerSelectHdl, SvtIconChoiceCtrl* ); DECL_LINK_TYPED( OnContainerSelectHdl, SvtIconChoiceCtrl*, void );
DECL_LINK_TYPED( ChangeToLastSelected, void*, void ); DECL_LINK_TYPED( ChangeToLastSelected, void*, void );
protected: protected:
virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE; virtual void DataChanged(const DataChangedEvent& rDCEvt) SAL_OVERRIDE;
......
...@@ -206,18 +206,14 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control ...@@ -206,18 +206,14 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control
{ {
friend class SvxIconChoiceCtrl_Impl; friend class SvxIconChoiceCtrl_Impl;
Link<> _aClickIconHdl; Link<SvtIconChoiceCtrl*,void> _aClickIconHdl;
Link<> _aDocRectChangedHdl; KeyEvent* _pCurKeyEvent;
Link<> _aVisRectChangedHdl; SvxIconChoiceCtrl_Impl* _pImp;
KeyEvent* _pCurKeyEvent; bool _bAutoFontColor;
SvxIconChoiceCtrl_Impl* _pImp;
bool _bAutoFontColor;
protected: protected:
virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
void DocumentRectChanged();
void VisibleRectChanged();
virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE; virtual void Command( const CommandEvent& rCEvt ) SAL_OVERRIDE;
virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE;
virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE;
...@@ -257,8 +253,8 @@ public: ...@@ -257,8 +253,8 @@ public:
void SetFont( const vcl::Font& rFont ); void SetFont( const vcl::Font& rFont );
void SetPointFont( const vcl::Font& rFont ); void SetPointFont( const vcl::Font& rFont );
void SetClickHdl( const Link<>& rLink ) { _aClickIconHdl = rLink; } void SetClickHdl( const Link<SvtIconChoiceCtrl*,void>& rLink ) { _aClickIconHdl = rLink; }
const Link<>& GetClickHdl() const { return _aClickIconHdl; } const Link<SvtIconChoiceCtrl*,void>& GetClickHdl() const { return _aClickIconHdl; }
using OutputDevice::SetBackground; using OutputDevice::SetBackground;
void SetBackground( const Wallpaper& rWallpaper ); void SetBackground( const Wallpaper& rWallpaper );
......
...@@ -2751,13 +2751,11 @@ IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, AutoArrangeHdl, Idle *, void) ...@@ -2751,13 +2751,11 @@ IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, AutoArrangeHdl, Idle *, void)
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, VisRectChangedHdl, Idle *, void) IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, VisRectChangedHdl, Idle *, void)
{ {
aVisRectChangedIdle.Stop(); aVisRectChangedIdle.Stop();
pView->VisibleRectChanged();
} }
IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, DocRectChangedHdl, Idle *, void) IMPL_LINK_NOARG_TYPED(SvxIconChoiceCtrl_Impl, DocRectChangedHdl, Idle *, void)
{ {
aDocRectChangedIdle.Stop(); aDocRectChangedIdle.Stop();
pView->DocumentRectChanged();
} }
bool SvxIconChoiceCtrl_Impl::IsTextHit( SvxIconChoiceCtrlEntry* pEntry, const Point& rDocPos ) bool SvxIconChoiceCtrl_Impl::IsTextHit( SvxIconChoiceCtrlEntry* pEntry, const Point& rDocPos )
......
...@@ -194,16 +194,6 @@ Point SvtIconChoiceCtrl::GetPixelPos( const Point& rPosLogic ) const ...@@ -194,16 +194,6 @@ Point SvtIconChoiceCtrl::GetPixelPos( const Point& rPosLogic ) const
return aPos; return aPos;
} }
void SvtIconChoiceCtrl::DocumentRectChanged()
{
_aDocRectChangedHdl.Call( this );
}
void SvtIconChoiceCtrl::VisibleRectChanged()
{
_aVisRectChangedHdl.Call( this );
}
void SvtIconChoiceCtrl::GetFocus() void SvtIconChoiceCtrl::GetFocus()
{ {
_pImp->GetFocus(); _pImp->GetFocus();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment