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

convert Link<> to typed

Change-Id: I7168ccc3dec8849d5e2e71d1273606daf64325e2
üst 4ec6d0b9
......@@ -119,7 +119,7 @@ class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow
virtual bool Close() SAL_OVERRIDE;
DECL_LINK_TYPED( TbxClickHdl, ToolBox*, void );
DECL_LINK( InfoHdl, IMapWindow* );
DECL_LINK_TYPED( InfoHdl, IMapWindow&, void );
DECL_LINK_TYPED( MousePosHdl, GraphCtrl*, void );
DECL_LINK_TYPED( GraphSizeHdl, GraphCtrl*, void );
DECL_LINK( URLModifyHdl, void* );
......
......@@ -590,10 +590,10 @@ void SvxIMapDlg::SetActiveTool( sal_uInt16 nId )
m_pTbxIMapDlg1->CheckItem( mnPolyEditId, bEditMode );
}
IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow*, pWnd )
IMPL_LINK_TYPED( SvxIMapDlg, InfoHdl, IMapWindow&, rWnd, void )
{
OUString aStr;
const NotifyInfo& rInfo = pWnd->GetInfo();
const NotifyInfo& rInfo = rWnd.GetInfo();
if ( rInfo.bNewObj )
{
......@@ -654,8 +654,6 @@ IMPL_LINK( SvxIMapDlg, InfoHdl, IMapWindow*, pWnd )
else
m_pCbbTarget->SetText( rInfo.aMarkTarget );
}
return 0;
}
IMPL_LINK_TYPED( SvxIMapDlg, MousePosHdl, GraphCtrl*, pWnd, void )
......
......@@ -626,7 +626,7 @@ void IMapWindow::UpdateInfo( bool bNewObj )
aInfo.aMarkAltText = pIMapObj->GetAltText();
aInfo.aMarkTarget = pIMapObj->GetTarget();
aInfo.bActivated = pIMapObj->IsActive();
aInfoLink.Call( this );
aInfoLink.Call( *this );
}
else
{
......@@ -637,7 +637,7 @@ void IMapWindow::UpdateInfo( bool bNewObj )
aInfo.bActivated = false;
}
aInfoLink.Call( this );
aInfoLink.Call( *this );
}
}
......
......@@ -93,7 +93,7 @@ class IMapWindow : public GraphCtrl, public DropTargetHelper
NotifyInfo aInfo;
ImageMap aIMap;
TargetList aTargetList;
Link<> aInfoLink;
Link<IMapWindow&,void> aInfoLink;
SfxItemPool* pIMapPool;
SfxItemInfo* pItemInfo;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >
......@@ -140,7 +140,7 @@ public:
void DoMacroAssign();
void DoPropertyDialog();
void SetInfoLink( const Link<>& rLink ) { aInfoLink = rLink; }
void SetInfoLink( const Link<IMapWindow&,void>& rLink ) { aInfoLink = rLink; }
void SetTargetList( TargetList& rTargetList );
......
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