summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avmedia/inc/mediacontrol.hxx2
-rw-r--r--avmedia/source/framework/mediacontrol.cxx4
-rw-r--r--chart2/source/controller/dialogs/dlg_DataEditor.cxx4
-rw-r--r--chart2/source/controller/inc/dlg_DataEditor.hxx2
-rw-r--r--cui/source/customize/cfg.cxx4
-rw-r--r--cui/source/inc/cfg.hxx2
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx3
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.hxx2
-rw-r--r--dbaccess/source/ui/dlg/indexdialog.cxx4
-rw-r--r--dbaccess/source/ui/inc/indexdialog.hxx2
-rw-r--r--extensions/source/bibliography/toolbar.cxx3
-rw-r--r--extensions/source/bibliography/toolbar.hxx2
-rw-r--r--framework/inc/uielement/addonstoolbarmanager.hxx6
-rw-r--r--framework/inc/uielement/toolbarmanager.hxx8
-rw-r--r--framework/source/uielement/addonstoolbarmanager.cxx18
-rw-r--r--framework/source/uielement/toolbarmanager.cxx27
-rw-r--r--include/sfx2/sidebar/SidebarToolBox.hxx8
-rw-r--r--include/sfx2/templatedlg.hxx8
-rw-r--r--include/sfx2/titledockwin.hxx6
-rw-r--r--include/svx/fontwork.hxx6
-rw-r--r--include/svx/imapdlg.hxx2
-rw-r--r--include/vcl/toolbox.hxx19
-rw-r--r--reportdesign/source/ui/dlg/AddField.cxx3
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx7
-rw-r--r--reportdesign/source/ui/dlg/Condition.hxx4
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx3
-rw-r--r--reportdesign/source/ui/inc/AddField.hxx2
-rw-r--r--reportdesign/source/ui/inc/GroupsSorting.hxx2
-rw-r--r--sc/source/ui/inc/navipi.hxx2
-rw-r--r--sc/source/ui/navipi/navipi.cxx4
-rw-r--r--sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx11
-rw-r--r--sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx4
-rw-r--r--sc/source/ui/sidebar/CellBorderStyleControl.cxx18
-rw-r--r--sc/source/ui/sidebar/CellBorderStyleControl.hxx6
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx6
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx2
-rw-r--r--sd/source/ui/dlg/navigatr.cxx12
-rw-r--r--sd/source/ui/inc/navigatr.hxx6
-rw-r--r--sfx2/source/appl/newhelp.cxx4
-rw-r--r--sfx2/source/appl/newhelp.hxx4
-rw-r--r--sfx2/source/dialog/recfloat.cxx4
-rw-r--r--sfx2/source/dialog/taskpane.cxx6
-rw-r--r--sfx2/source/dialog/templdlg.cxx11
-rw-r--r--sfx2/source/dialog/titledockwin.cxx6
-rw-r--r--sfx2/source/doc/templatedlg.cxx16
-rw-r--r--sfx2/source/inc/recfloat.hxx2
-rw-r--r--sfx2/source/inc/templdgi.hxx6
-rw-r--r--sfx2/source/sidebar/SidebarToolBox.cxx29
-rw-r--r--sfx2/source/sidebar/TitleBar.cxx4
-rw-r--r--sfx2/source/sidebar/TitleBar.hxx2
-rw-r--r--starmath/inc/toolbox.hxx4
-rw-r--r--starmath/source/toolbox.cxx6
-rw-r--r--svx/inc/galbrws2.hxx2
-rw-r--r--svx/source/dialog/_bmpmask.cxx6
-rw-r--r--svx/source/dialog/_contdlg.cxx4
-rw-r--r--svx/source/dialog/contimp.hxx2
-rw-r--r--svx/source/dialog/fontwork.cxx9
-rw-r--r--svx/source/dialog/imapdlg.cxx4
-rw-r--r--svx/source/form/datanavi.cxx3
-rw-r--r--svx/source/gallery2/galbrws2.cxx4
-rw-r--r--svx/source/inc/datanavi.hxx2
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanel.cxx10
-rw-r--r--svx/source/sidebar/area/AreaPropertyPanel.hxx2
-rw-r--r--svx/source/sidebar/area/AreaTransparencyGradientControl.cxx12
-rw-r--r--svx/source/sidebar/area/AreaTransparencyGradientControl.hxx4
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.cxx9
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hxx2
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.cxx14
-rw-r--r--svx/source/sidebar/paragraph/ParaPropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx4
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.hxx2
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.cxx12
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.hxx4
-rw-r--r--sw/source/ui/envelp/envprt.cxx3
-rw-r--r--sw/source/ui/envelp/envprt.hxx2
-rw-r--r--sw/source/ui/fldui/fldvar.cxx4
-rw-r--r--sw/source/ui/fldui/fldvar.hxx2
-rw-r--r--sw/source/uibase/dbui/mailmergechildwindow.cxx3
-rw-r--r--sw/source/uibase/inc/inputwin.hxx2
-rw-r--r--sw/source/uibase/inc/mailmergechildwindow.hxx2
-rw-r--r--sw/source/uibase/inc/navipi.hxx6
-rw-r--r--sw/source/uibase/inc/workctrl.hxx2
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx4
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx3
-rw-r--r--sw/source/uibase/sidebar/PagePropertyPanel.cxx18
-rw-r--r--sw/source/uibase/sidebar/PagePropertyPanel.hxx8
-rw-r--r--sw/source/uibase/utlui/navipi.cxx16
-rw-r--r--vcl/inc/toolbox.h2
-rw-r--r--vcl/source/window/menubarwindow.cxx7
-rw-r--r--vcl/source/window/menubarwindow.hxx2
-rw-r--r--vcl/source/window/toolbox.cxx6
-rw-r--r--vcl/source/window/toolbox2.cxx7
92 files changed, 211 insertions, 341 deletions
diff --git a/avmedia/inc/mediacontrol.hxx b/avmedia/inc/mediacontrol.hxx
index b7cd9185d328..37b573884632 100644
--- a/avmedia/inc/mediacontrol.hxx
+++ b/avmedia/inc/mediacontrol.hxx
@@ -83,7 +83,7 @@ private:
DECL_LINK( implTimeEndHdl, Slider* );
DECL_LINK( implVolumeHdl, Slider* );
DECL_LINK(implVolumeEndHdl, void *);
- DECL_LINK( implSelectHdl, ToolBox* );
+ DECL_LINK_TYPED( implSelectHdl, ToolBox*, void );
DECL_LINK( implZoomSelectHdl, ListBox* );
DECL_LINK_TYPED(implTimeoutHdl, Idle *, void);
diff --git a/avmedia/source/framework/mediacontrol.cxx b/avmedia/source/framework/mediacontrol.cxx
index 99523fe7a8ef..dbc6b73af43d 100644
--- a/avmedia/source/framework/mediacontrol.cxx
+++ b/avmedia/source/framework/mediacontrol.cxx
@@ -486,7 +486,7 @@ IMPL_LINK_NOARG(MediaControl, implVolumeEndHdl)
-IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p )
+IMPL_LINK_TYPED( MediaControl, implSelectHdl, ToolBox*, p, void )
{
if( p )
{
@@ -570,8 +570,6 @@ IMPL_LINK( MediaControl, implSelectHdl, ToolBox*, p )
{
p->Invalidate( INVALIDATE_UPDATE );
}
-
- return 0;
}
diff --git a/chart2/source/controller/dialogs/dlg_DataEditor.cxx b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
index 4f4ce2f09230..683a4c907345 100644
--- a/chart2/source/controller/dialogs/dlg_DataEditor.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataEditor.cxx
@@ -112,7 +112,7 @@ void DataEditor::dispose()
}
// react on click (or keypress) on toolbar icon
-IMPL_LINK_NOARG(DataEditor, ToolboxHdl)
+IMPL_LINK_NOARG_TYPED(DataEditor, ToolboxHdl, ToolBox *, void)
{
sal_uInt16 nId = m_pTbxData->GetCurItemId();
@@ -130,8 +130,6 @@ IMPL_LINK_NOARG(DataEditor, ToolboxHdl)
m_xBrwData->SwapColumn();
else if (nId == TBI_DATA_SWAP_ROW)
m_xBrwData->SwapRow();
-
- return 0;
}
// refresh toolbar icons according to currently selected cell in brwose box
diff --git a/chart2/source/controller/inc/dlg_DataEditor.hxx b/chart2/source/controller/inc/dlg_DataEditor.hxx
index f37b16cfc956..a32c6d8a372a 100644
--- a/chart2/source/controller/inc/dlg_DataEditor.hxx
+++ b/chart2/source/controller/inc/dlg_DataEditor.hxx
@@ -74,7 +74,7 @@ private:
m_xContext;
/// handles actions of the toolbox
- DECL_LINK( ToolboxHdl, void* );
+ DECL_LINK_TYPED( ToolboxHdl, ToolBox*, void );
/// is called, if the cursor of the table has moved
DECL_LINK( BrowserCursorMovedHdl, void*);
/// this is called if MiscOptions change, esp. High-Contrast mode
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index ac1a8b47a217..998621fec782 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -5019,7 +5019,7 @@ uno::Reference< graphic::XGraphic> SvxIconSelectorDialog::GetSelectedIcon()
return result;
}
-IMPL_LINK( SvxIconSelectorDialog, SelectHdl, ToolBox *, pToolBox )
+IMPL_LINK_TYPED( SvxIconSelectorDialog, SelectHdl, ToolBox *, pToolBox, void )
{
(void)pToolBox;
@@ -5047,8 +5047,6 @@ IMPL_LINK( SvxIconSelectorDialog, SelectHdl, ToolBox *, pToolBox )
{
pBtnDelete->Enable( false );
}
-
- return 0;
}
IMPL_LINK( SvxIconSelectorDialog, ImportHdl, PushButton *, pButton )
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index 35c8b40baaa5..73b0514ca4b2 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -755,7 +755,7 @@ public:
::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >
GetSelectedIcon();
- DECL_LINK( SelectHdl, ToolBox * );
+ DECL_LINK_TYPED( SelectHdl, ToolBox *, void );
DECL_LINK( ImportHdl, PushButton * );
DECL_LINK( DeleteHdl, PushButton * );
};
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index fade1cf5f1f1..4b72d59c3ed7 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -1150,7 +1150,7 @@ void OAppDetailPageHelper::showPreview( const OUString& _sDataSourceName,
}
}
-IMPL_LINK(OAppDetailPageHelper, OnDropdownClickHdl, ToolBox*, /*pToolBox*/)
+IMPL_LINK_NOARG_TYPED(OAppDetailPageHelper, OnDropdownClickHdl, ToolBox*, void)
{
m_aTBPreview->EndSelection();
@@ -1192,7 +1192,6 @@ IMPL_LINK(OAppDetailPageHelper, OnDropdownClickHdl, ToolBox*, /*pToolBox*/)
Resize();
getBorderWin().getView()->getAppController().executeChecked(nSelectedAction,Sequence<PropertyValue>());
}
- return 0L;
}
void OAppDetailPageHelper::KeyInput( const KeyEvent& rKEvt )
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
index b955472dd157..8c75918a2a62 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx
@@ -161,7 +161,7 @@ namespace dbaui
DECL_LINK(PreviewChangeHdl, void*);
// click a TB slot
- DECL_LINK(OnDropdownClickHdl, ToolBox*);
+ DECL_LINK_TYPED(OnDropdownClickHdl, ToolBox*, void);
inline OAppBorderWindow& getBorderWin() const { return m_rBorderWin; }
void ImplInitSettings();
diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index bfb41ce1da4c..dea680bfd952 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -544,7 +544,7 @@ namespace dbaui
updateToolbox();
}
- IMPL_LINK( DbaIndexDialog, OnIndexAction, ToolBox*, /*NOTINTERESTEDIN*/ )
+ IMPL_LINK_NOARG_TYPED( DbaIndexDialog, OnIndexAction, ToolBox*, void )
{
sal_uInt16 nClicked = m_pActions->GetCurItemId();
if (nClicked == mnNewCmdId)
@@ -557,8 +557,6 @@ namespace dbaui
OnSaveIndex();
else if (nClicked == mnResetCmdId)
OnResetIndex();
-
- return 0L;
}
IMPL_LINK( DbaIndexDialog, OnCloseDialog, void*, /*NOTINTERESTEDIN*/ )
diff --git a/dbaccess/source/ui/inc/indexdialog.hxx b/dbaccess/source/ui/inc/indexdialog.hxx
index a1928d4acd99..c4cc5c620a90 100644
--- a/dbaccess/source/ui/inc/indexdialog.hxx
+++ b/dbaccess/source/ui/inc/indexdialog.hxx
@@ -131,7 +131,7 @@ namespace dbaui
protected:
DECL_LINK( OnIndexSelected, DbaIndexList* );
- DECL_LINK( OnIndexAction, ToolBox* );
+ DECL_LINK_TYPED( OnIndexAction, ToolBox*, void );
DECL_LINK( OnEntryEdited, SvTreeListEntry* );
DECL_LINK( OnModified, void* );
DECL_LINK( OnCloseDialog, void* );
diff --git a/extensions/source/bibliography/toolbar.cxx b/extensions/source/bibliography/toolbar.cxx
index 08ddcced7d15..4c39a326ac11 100644
--- a/extensions/source/bibliography/toolbar.cxx
+++ b/extensions/source/bibliography/toolbar.cxx
@@ -479,7 +479,7 @@ IMPL_LINK_NOARG_TYPED( BibToolBar, SendSelHdl, Idle*, void )
SendDispatch(TBC_LB_SOURCE,aPropVal);
}
-IMPL_LINK( BibToolBar, MenuHdl, ToolBox*, /*pToolbox*/)
+IMPL_LINK_NOARG_TYPED( BibToolBar, MenuHdl, ToolBox*, void)
{
sal_uInt16 nId=GetCurItemId();
if(nId==TBC_BT_AUTOFILTER)
@@ -513,7 +513,6 @@ IMPL_LINK( BibToolBar, MenuHdl, ToolBox*, /*pToolbox*/)
}
- return 0;
}
void BibToolBar::statusChanged(const frame::FeatureStateEvent& rEvent)
diff --git a/extensions/source/bibliography/toolbar.hxx b/extensions/source/bibliography/toolbar.hxx
index ddd9a0259323..efa5b2c70e99 100644
--- a/extensions/source/bibliography/toolbar.hxx
+++ b/extensions/source/bibliography/toolbar.hxx
@@ -130,7 +130,7 @@ class BibToolBar: public ToolBox
BibDataManager* pDatMan;
DECL_LINK( SelHdl, ListBox* );
DECL_LINK_TYPED( SendSelHdl, Idle*, void );
- DECL_LINK( MenuHdl, ToolBox* );
+ DECL_LINK_TYPED( MenuHdl, ToolBox*, void );
DECL_LINK( OptionsChanged_Impl, void* );
DECL_LINK( SettingsChanged_Impl, void* );
diff --git a/framework/inc/uielement/addonstoolbarmanager.hxx b/framework/inc/uielement/addonstoolbarmanager.hxx
index bfaf87648137..561cfca25f0e 100644
--- a/framework/inc/uielement/addonstoolbarmanager.hxx
+++ b/framework/inc/uielement/addonstoolbarmanager.hxx
@@ -58,10 +58,10 @@ class AddonsToolBarManager : public ToolBarManager
void FillToolbar( const com::sun::star::uno::Sequence< com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > >& rAddonToolbar );
protected:
- DECL_LINK(Click, void *);
- DECL_LINK(DoubleClick, void *);
+ DECL_LINK_TYPED(Click, ToolBox *, void);
+ DECL_LINK_TYPED(DoubleClick, ToolBox *, void);
DECL_LINK(Command, void *);
- DECL_LINK(Select, void *);
+ DECL_LINK_TYPED(Select, ToolBox *, void);
DECL_LINK(Activate, void *);
DECL_LINK(Deactivate, void *);
DECL_LINK( StateChanged, StateChangedType* );
diff --git a/framework/inc/uielement/toolbarmanager.hxx b/framework/inc/uielement/toolbarmanager.hxx
index 11163fcb3d79..56db2819b72d 100644
--- a/framework/inc/uielement/toolbarmanager.hxx
+++ b/framework/inc/uielement/toolbarmanager.hxx
@@ -128,10 +128,10 @@ class ToolBarManager : public ToolbarManager_Base
protected:
DECL_LINK( Command, CommandEvent * );
PopupMenu * GetToolBarCustomMenu(ToolBox* pToolBar);
- DECL_LINK(Click, void *);
- DECL_LINK(DropdownClick, void *);
- DECL_LINK(DoubleClick, void *);
- DECL_LINK(Select, void *);
+ DECL_LINK_TYPED(Click, ToolBox *, void);
+ DECL_LINK_TYPED(DropdownClick, ToolBox *, void);
+ DECL_LINK_TYPED(DoubleClick, ToolBox *, void);
+ DECL_LINK_TYPED(Select, ToolBox *, void);
DECL_LINK(Activate, void *);
DECL_LINK(Deactivate, void *);
DECL_LINK( StateChanged, StateChangedType* );
diff --git a/framework/source/uielement/addonstoolbarmanager.cxx b/framework/source/uielement/addonstoolbarmanager.cxx
index 3c2c716a8c59..bc6a4b0b497c 100644
--- a/framework/source/uielement/addonstoolbarmanager.cxx
+++ b/framework/source/uielement/addonstoolbarmanager.cxx
@@ -381,10 +381,10 @@ void AddonsToolBarManager::FillToolbar( const Sequence< Sequence< PropertyValue
AddFrameActionListener();
}
-IMPL_LINK_NOARG(AddonsToolBarManager, Click)
+IMPL_LINK_NOARG_TYPED(AddonsToolBarManager, Click, ToolBox *, void)
{
if ( m_bDisposed )
- return 1;
+ return;
sal_uInt16 nId( m_pToolBar->GetCurItemId() );
ToolBarControllerMap::const_iterator pIter = m_aControllerMap.find( nId );
@@ -395,14 +395,12 @@ IMPL_LINK_NOARG(AddonsToolBarManager, Click)
if ( xController.is() )
xController->click();
}
-
- return 1;
}
-IMPL_LINK_NOARG(AddonsToolBarManager, DoubleClick)
+IMPL_LINK_NOARG_TYPED(AddonsToolBarManager, DoubleClick, ToolBox *, void)
{
if ( m_bDisposed )
- return 1;
+ return;
sal_uInt16 nId( m_pToolBar->GetCurItemId() );
ToolBarControllerMap::const_iterator pIter = m_aControllerMap.find( nId );
@@ -413,8 +411,6 @@ IMPL_LINK_NOARG(AddonsToolBarManager, DoubleClick)
if ( xController.is() )
xController->doubleClick();
}
-
- return 1;
}
IMPL_LINK_NOARG(AddonsToolBarManager, Command)
@@ -427,10 +423,10 @@ IMPL_LINK_NOARG(AddonsToolBarManager, Command)
return 0;
}
-IMPL_LINK_NOARG(AddonsToolBarManager, Select)
+IMPL_LINK_NOARG_TYPED(AddonsToolBarManager, Select, ToolBox *, void)
{
if ( m_bDisposed )
- return 1;
+ return;
sal_Int16 nKeyModifier( (sal_Int16)m_pToolBar->GetModifier() );
sal_uInt16 nId( m_pToolBar->GetCurItemId() );
@@ -442,8 +438,6 @@ IMPL_LINK_NOARG(AddonsToolBarManager, Select)
if ( xController.is() )
xController->execute( nKeyModifier );
}
-
- return 1;
}
IMPL_LINK_NOARG(AddonsToolBarManager, Activate)
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 7913c8d68845..75baaa504d90 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -277,12 +277,12 @@ void ToolBarManager::Destroy()
m_pToolBar->doLazyDelete();
Link<> aEmpty;
- m_pToolBar->SetSelectHdl( aEmpty );
+ m_pToolBar->SetSelectHdl( Link<ToolBox *, void>() );
m_pToolBar->SetActivateHdl( aEmpty );
m_pToolBar->SetDeactivateHdl( aEmpty );
- m_pToolBar->SetClickHdl( aEmpty );
- m_pToolBar->SetDropdownClickHdl( aEmpty );
- m_pToolBar->SetDoubleClickHdl( aEmpty );
+ m_pToolBar->SetClickHdl( Link<ToolBox *, void>() );
+ m_pToolBar->SetDropdownClickHdl( Link<ToolBox *, void>() );
+ m_pToolBar->SetDoubleClickHdl( Link<ToolBox *, void>() );
m_pToolBar->SetStateChangedHdl( aEmpty );
m_pToolBar->SetDataChangedHdl( aEmpty );
m_pToolBar->SetCommandHdl( aEmpty );
@@ -1545,17 +1545,17 @@ long ToolBarManager::HandleClick(void ( SAL_CALL XToolbarController::*_pClick )(
return 1;
}
-IMPL_LINK_NOARG(ToolBarManager, Click)
+IMPL_LINK_NOARG_TYPED(ToolBarManager, Click, ToolBox *, void)
{
- return HandleClick(&XToolbarController::click);
+ HandleClick(&XToolbarController::click);
}
-IMPL_LINK_NOARG(ToolBarManager, DropdownClick)
+IMPL_LINK_NOARG_TYPED(ToolBarManager, DropdownClick, ToolBox *, void)
{
SolarMutexGuard g;
if ( m_bDisposed )
- return 1;
+ return;
sal_uInt16 nId( m_pToolBar->GetCurItemId() );
ToolBarControllerMap::const_iterator pIter = m_aControllerMap.find( nId );
@@ -1570,12 +1570,11 @@ IMPL_LINK_NOARG(ToolBarManager, DropdownClick)
xWin->setFocus();
}
}
- return 1;
}
-IMPL_LINK_NOARG(ToolBarManager, DoubleClick)
+IMPL_LINK_NOARG_TYPED(ToolBarManager, DoubleClick, ToolBox *, void)
{
- return HandleClick(&XToolbarController::doubleClick);
+ HandleClick(&XToolbarController::doubleClick);
}
void ToolBarManager::ImplClearPopupMenu( ToolBox *pToolBar )
@@ -2009,10 +2008,10 @@ IMPL_LINK( ToolBarManager, MenuSelect, Menu*, pMenu )
return 1;
}
-IMPL_LINK_NOARG(ToolBarManager, Select)
+IMPL_LINK_NOARG_TYPED(ToolBarManager, Select, ToolBox *, void)
{
if ( m_bDisposed )
- return 1;
+ return;
sal_Int16 nKeyModifier( (sal_Int16)m_pToolBar->GetModifier() );
sal_uInt16 nId( m_pToolBar->GetCurItemId() );
@@ -2025,8 +2024,6 @@ IMPL_LINK_NOARG(ToolBarManager, Select)
if ( xController.is() )
xController->execute( nKeyModifier );
}
-
- return 1;
}
IMPL_LINK_NOARG(ToolBarManager, Activate)
diff --git a/include/sfx2/sidebar/SidebarToolBox.hxx b/include/sfx2/sidebar/SidebarToolBox.hxx
index 80ae7a117d28..8663c4b2c586 100644
--- a/include/sfx2/sidebar/SidebarToolBox.hxx
+++ b/include/sfx2/sidebar/SidebarToolBox.hxx
@@ -78,10 +78,10 @@ private:
ControllerContainer maControllers;
bool mbAreHandlersRegistered;
- DECL_LINK(DropDownClickHandler, ToolBox*);
- DECL_LINK(ClickHandler, ToolBox*);
- DECL_LINK(DoubleClickHandler, ToolBox*);
- DECL_LINK(SelectHandler, ToolBox*);
+ DECL_LINK_TYPED(DropDownClickHandler, ToolBox*, void);
+ DECL_LINK_TYPED(ClickHandler, ToolBox*, void);
+ DECL_LINK_TYPED(DoubleClickHandler, ToolBox*, void);
+ DECL_LINK_TYPED(SelectHandler, ToolBox*, void);
DECL_LINK(ActivateToolBox, ToolBox*);
DECL_LINK(DeactivateToolBox, ToolBox*);
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index f26792bb0a04..0d06c3cc00f2 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -65,10 +65,10 @@ private:
void writeSettings ();
- DECL_LINK(TBXViewHdl, void*);
- DECL_LINK(TBXActionHdl, void*);
- DECL_LINK(TBXTemplateHdl, void*);
- DECL_LINK(TBXDropdownHdl, ToolBox*);
+ DECL_LINK_TYPED(TBXViewHdl, ToolBox*, void);
+ DECL_LINK_TYPED(TBXActionHdl, ToolBox*, void);
+ DECL_LINK_TYPED(TBXTemplateHdl, ToolBox*, void);
+ DECL_LINK_TYPED(TBXDropdownHdl, ToolBox*, void);
DECL_LINK(TVItemStateHdl, const ThumbnailViewItem*);
diff --git a/include/sfx2/titledockwin.hxx b/include/sfx2/titledockwin.hxx
index f86245c69de6..8293eb00aa98 100644
--- a/include/sfx2/titledockwin.hxx
+++ b/include/sfx2/titledockwin.hxx
@@ -61,7 +61,7 @@ namespace sfx2
@return
the ID of the newly created toolbox item
*/
- sal_uInt16 AddDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<>& i_rCallback )
+ sal_uInt16 AddDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<ToolBox *, void>& i_rCallback )
{
return impl_addDropDownToolBoxItem( i_rItemText, i_nHelpId, i_rCallback );
}
@@ -111,7 +111,7 @@ namespace sfx2
/** internal version of AddDropDownToolBoxItem
*/
- sal_uInt16 impl_addDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<>& i_rCallback );
+ sal_uInt16 impl_addDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<ToolBox *, void>& i_rCallback );
/** returns the current title.
@@ -120,7 +120,7 @@ namespace sfx2
OUString impl_getTitle() const;
private:
- DECL_LINK( OnToolboxItemSelected, ToolBox* );
+ DECL_LINK_TYPED( OnToolboxItemSelected, ToolBox*, void );
void impl_construct();
void impl_layout();
diff --git a/include/svx/fontwork.hxx b/include/svx/fontwork.hxx
index 124cc0486fdb..4dd6aaeb1236 100644
--- a/include/svx/fontwork.hxx
+++ b/include/svx/fontwork.hxx
@@ -143,9 +143,9 @@ class SVX_DLLPUBLIC SAL_WARN_UNUSED SvxFontWorkDialog : public SfxDockingWindow
friend class SvxFontWorkChildWindow;
friend class SvxFontWorkControllerItem;
- DECL_LINK( SelectStyleHdl_Impl, void * );
- DECL_LINK( SelectAdjustHdl_Impl, void * );
- DECL_LINK( SelectShadowHdl_Impl, void * );
+ DECL_LINK_TYPED( SelectStyleHdl_Impl, ToolBox *, void );
+ DECL_LINK_TYPED( SelectAdjustHdl_Impl, ToolBox *, void );
+ DECL_LINK_TYPED( SelectShadowHdl_Impl, ToolBox *, void );
DECL_LINK( ModifyInputHdl_Impl, void * );
DECL_LINK_TYPED( InputTimoutHdl_Impl, Idle *, void );
diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx
index cac8af041289..046e956766b1 100644
--- a/include/svx/imapdlg.hxx
+++ b/include/svx/imapdlg.hxx
@@ -117,7 +117,7 @@ class SVX_DLLPUBLIC SvxIMapDlg : public SfxModelessDialog // SfxFloatingWindow
virtual bool Close() SAL_OVERRIDE;
- DECL_LINK( TbxClickHdl, ToolBox* );
+ DECL_LINK_TYPED( TbxClickHdl, ToolBox*, void );
DECL_LINK( InfoHdl, IMapWindow* );
DECL_LINK( MousePosHdl, IMapWindow* );
DECL_LINK( GraphSizeHdl, IMapWindow* );
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index f4f8e184f5c3..97623855095a 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -185,12 +185,12 @@ private:
PointerStyle meLastStyle;
WinBits mnWinStyle;
ToolBoxLayoutMode meLayoutMode;
- Link<> maClickHdl;
- Link<> maDoubleClickHdl;
+ Link<ToolBox *, void> maClickHdl;
+ Link<ToolBox *, void> maDoubleClickHdl;
Link<> maActivateHdl;
Link<> maDeactivateHdl;
Link<> maHighlightHdl;
- Link<> maSelectHdl;
+ Link<ToolBox *, void> maSelectHdl;
Link<> maCommandHandler;
Link<> maStateChangedHandler;
Link<> maDataChangedHandler;
@@ -495,20 +495,17 @@ public:
using DockingWindow::SetHelpId;
using DockingWindow::GetHelpId;
- void SetClickHdl( const Link<>& rLink ) { maClickHdl = rLink; }
- const Link<>& GetClickHdl() const { return maClickHdl; }
- void SetDoubleClickHdl( const Link<>& rLink ) { maDoubleClickHdl = rLink; }
- const Link<>& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetDropdownClickHdl( const Link<>& rLink );
- const Link<>& GetDropdownClickHdl() const;
+ void SetClickHdl( const Link<ToolBox *, void>& rLink ) { maClickHdl = rLink; }
+ void SetDoubleClickHdl( const Link<ToolBox *, void>& rLink ) { maDoubleClickHdl = rLink; }
+ void SetDropdownClickHdl( const Link<ToolBox *, void>& rLink );
void SetActivateHdl( const Link<>& rLink ) { maActivateHdl = rLink; }
const Link<>& GetActivateHdl() const { return maActivateHdl; }
void SetDeactivateHdl( const Link<>& rLink ) { maDeactivateHdl = rLink; }
const Link<>& GetDeactivateHdl() const { return maDeactivateHdl; }
void SetHighlightHdl( const Link<>& rLink ) { maHighlightHdl = rLink; }
const Link<>& GetHighlightHdl() const { return maHighlightHdl; }
- void SetSelectHdl( const Link<>& rLink ) { maSelectHdl = rLink; }
- const Link<>& GetSelectHdl() const { return maSelectHdl; }
+ void SetSelectHdl( const Link<ToolBox *, void>& rLink ) { maSelectHdl = rLink; }
+ const Link<ToolBox *, void>& GetSelectHdl() const { return maSelectHdl; }
void SetCommandHdl( const Link<>& aLink ) { maCommandHandler = aLink; }
const Link<>& GetCommandHdl() const { return maCommandHandler; }
void SetStateChangedHdl( const Link<>& aLink ) { maStateChangedHandler = aLink; }
diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx
index 6ba139216869..7924a17dd102 100644
--- a/reportdesign/source/ui/dlg/AddField.cxx
+++ b/reportdesign/source/ui/dlg/AddField.cxx
@@ -526,7 +526,7 @@ void OAddFieldWindow::resizeControls(const Size& _rDiff)
}
}
-IMPL_LINK( OAddFieldWindow, OnSortAction, ToolBox*, /*NOTINTERESTEDIN*/ )
+IMPL_LINK_NOARG_TYPED( OAddFieldWindow, OnSortAction, ToolBox*, void )
{
const sal_uInt16 nCurItem = m_aActions->GetCurItemId();
if ( SID_ADD_CONTROL_PAIR == nCurItem )
@@ -559,7 +559,6 @@ IMPL_LINK( OAddFieldWindow, OnSortAction, ToolBox*, /*NOTINTERESTEDIN*/ )
m_pListBox->GetModel()->Resort();
}
}
- return 0L;
}
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index 049ae98da0f1..0339327b5b70 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -334,7 +334,7 @@ void Condition::dispose()
VclHBox::dispose();
}
-IMPL_LINK( Condition, DropdownClick, ToolBox*, /*pToolBar*/ )
+IMPL_LINK_NOARG_TYPED( Condition, DropdownClick, ToolBox*, void )
{
sal_uInt16 nId( m_pActions->GetCurItemId() );
if ( !m_pColorFloat )
@@ -355,15 +355,12 @@ IMPL_LINK( Condition, DropdownClick, ToolBox*, /*pToolBar*/ )
m_pColorFloat->SetPosPixel(m_pActions->GetItemPopupPosition(nId,m_pColorFloat->GetSizePixel()));
m_pColorFloat->StartPopupMode(m_pActions);
m_pColorFloat->StartSelection();
-
- return 1;
}
-IMPL_LINK( Condition, OnFormatAction, ToolBox*, /*NOTINTERESTEDIN*/ )
+IMPL_LINK_NOARG_TYPED( Condition, OnFormatAction, ToolBox*, void )
{
Color aCol(COL_AUTO);
ApplyCommand(mapToolbarItemToSlotId(m_pActions->GetCurItemId()),aCol);
- return 0L;
}
IMPL_LINK( Condition, OnConditionAction, Button*, _pClickedButton )
diff --git a/reportdesign/source/ui/dlg/Condition.hxx b/reportdesign/source/ui/dlg/Condition.hxx
index 506cba302f4f..bd2f64036b88 100644
--- a/reportdesign/source/ui/dlg/Condition.hxx
+++ b/reportdesign/source/ui/dlg/Condition.hxx
@@ -100,8 +100,8 @@ namespace rptui
ConditionalExpressions m_aConditionalExpressions;
- DECL_LINK( OnFormatAction, ToolBox* );
- DECL_LINK( DropdownClick, ToolBox* );
+ DECL_LINK_TYPED( OnFormatAction, ToolBox*, void );
+ DECL_LINK_TYPED( DropdownClick, ToolBox*, void );
DECL_LINK( OnConditionAction, Button* );
public:
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index efd047adf125..52006da08acd 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -1152,7 +1152,7 @@ IMPL_LINK(OGroupsSortingDialog, OnControlFocusLost, Control*, pControl )
return 0L;
}
-IMPL_LINK( OGroupsSortingDialog, OnFormatAction, ToolBox*, /*NOTINTERESTEDIN*/ )
+IMPL_LINK_NOARG_TYPED( OGroupsSortingDialog, OnFormatAction, ToolBox*, void )
{
sal_uInt16 nCommand = m_pToolBox->GetCurItemId();
@@ -1192,7 +1192,6 @@ IMPL_LINK( OGroupsSortingDialog, OnFormatAction, ToolBox*, /*NOTINTERESTEDIN*/ )
}
}
}
- return 1L;
}
IMPL_LINK( OGroupsSortingDialog, LBChangeHdl, ListBox*, pListBox )
diff --git a/reportdesign/source/ui/inc/AddField.hxx b/reportdesign/source/ui/inc/AddField.hxx
index b547b33c8fff..254433189c53 100644
--- a/reportdesign/source/ui/inc/AddField.hxx
+++ b/reportdesign/source/ui/inc/AddField.hxx
@@ -71,7 +71,7 @@ class OAddFieldWindow :public FloatingWindow
DECL_LINK( OnDoubleClickHdl, void* );
DECL_LINK( OnSelectHdl, void* );
- DECL_LINK( OnSortAction, ToolBox* );
+ DECL_LINK_TYPED( OnSortAction, ToolBox*, void );
OAddFieldWindow(const OAddFieldWindow&) SAL_DELETED_FUNCTION;
void operator =(const OAddFieldWindow&) SAL_DELETED_FUNCTION;
diff --git a/reportdesign/source/ui/inc/GroupsSorting.hxx b/reportdesign/source/ui/inc/GroupsSorting.hxx
index b67c1285ba98..b9c19478969d 100644
--- a/reportdesign/source/ui/inc/GroupsSorting.hxx
+++ b/reportdesign/source/ui/inc/GroupsSorting.hxx
@@ -85,7 +85,7 @@ private:
DECL_LINK( OnControlFocusLost, Control* );
DECL_LINK( OnControlFocusGot, Control* );
DECL_LINK( LBChangeHdl, ListBox* );
- DECL_LINK( OnFormatAction, ToolBox* );
+ DECL_LINK_TYPED( OnFormatAction, ToolBox*, void );
/** returns the groups
@return the groups which now have to check which one changes
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index e7296250b1b9..c355813b300e 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -195,7 +195,7 @@ public:
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
- DECL_LINK( ToolBoxDropdownClickHdl, void* );
+ DECL_LINK_TYPED( ToolBoxDropdownClickHdl, ToolBox*, void );
protected:
virtual void Select() SAL_OVERRIDE;
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index ab073e168d2f..b96b505bef27 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -383,7 +383,7 @@ void CommandToolBox::Click()
{
}
-IMPL_LINK_NOARG(CommandToolBox, ToolBoxDropdownClickHdl)
+IMPL_LINK_NOARG_TYPED(CommandToolBox, ToolBoxDropdownClickHdl, ToolBox *, void)
{
// the popup menue of the drop modus has to be called in the
// click (button down) and not in the select (button up)
@@ -405,8 +405,6 @@ IMPL_LINK_NOARG(CommandToolBox, ToolBoxDropdownClickHdl)
MouseEvent aLeave( aPoint, 0, MouseEventModifiers::LEAVEWINDOW | MouseEventModifiers::SYNTHETIC );
MouseMove( aLeave );
}
-
- return 1;
}
void CommandToolBox::UpdateButtons()
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
index 7ee1f5bb5f49..a805a28b6f9b 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.cxx
@@ -167,7 +167,7 @@ void CellAppearancePropertyPanel::Initialize()
const sal_uInt16 nIdBorderType = mpTBCellBorder->GetItemId( UNO_SETBORDERSTYLE );
mpTBCellBorder->SetItemImage( nIdBorderType, maIMGCellBorder );
mpTBCellBorder->SetItemBits( nIdBorderType, mpTBCellBorder->GetItemBits( nIdBorderType ) | ToolBoxItemBits::DROPDOWNONLY );
- Link<> aLink = LINK(this, CellAppearancePropertyPanel, TbxCellBorderSelectHdl);
+ Link<ToolBox *, void> aLink = LINK(this, CellAppearancePropertyPanel, TbxCellBorderSelectHdl);
mpTBCellBorder->SetDropdownClickHdl ( aLink );
mpTBCellBorder->SetSelectHdl ( aLink );
@@ -181,14 +181,13 @@ void CellAppearancePropertyPanel::Initialize()
mpTBLineColor->Disable();
- aLink = LINK(this, CellAppearancePropertyPanel, CBOXGridShowClkHdl);
- mpCBXShowGrid->SetClickHdl ( aLink );
+ mpCBXShowGrid->SetClickHdl ( LINK(this, CellAppearancePropertyPanel, CBOXGridShowClkHdl) );
mpTBLineColor->SetAccessibleRelationLabeledBy(mpTBLineColor);
mpTBLineStyle->SetAccessibleRelationLabeledBy(mpTBLineStyle);
}
-IMPL_LINK(CellAppearancePropertyPanel, TbxCellBorderSelectHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(CellAppearancePropertyPanel, TbxCellBorderSelectHdl, ToolBox*, pToolBox, void)
{
const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId()));
@@ -208,10 +207,9 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxCellBorderSelectHdl, ToolBox*, pToolBo
mpCellBorderStylePopup->Show(*pToolBox);
}
}
- return 0;
}
-IMPL_LINK(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pToolBox, void)
{
const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId()));
@@ -232,7 +230,6 @@ IMPL_LINK(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pToolBox
mpCellLineStylePopup->Show(*pToolBox);
}
}
- return 0;
}
IMPL_LINK(CellAppearancePropertyPanel, CBOXGridShowClkHdl, void*, EMPTYARG)
diff --git a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
index fc0395687e2a..bddce6488cac 100644
--- a/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
+++ b/sc/source/ui/sidebar/CellAppearancePropertyPanel.hxx
@@ -141,8 +141,8 @@ private:
::sfx2::sidebar::EnumContext maContext;
SfxBindings* mpBindings;
- DECL_LINK(TbxCellBorderSelectHdl, ToolBox*);
- DECL_LINK(TbxLineStyleSelectHdl, ToolBox*);
+ DECL_LINK_TYPED(TbxCellBorderSelectHdl, ToolBox*, void);
+ DECL_LINK_TYPED(TbxLineStyleSelectHdl, ToolBox*, void);
DECL_LINK(CBOXGridShowClkHdl, void*);
// for CellLineStyle popup
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.cxx b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
index 0c62047365af..548be75168b7 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.cxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.cxx
@@ -100,8 +100,7 @@ void CellBorderStyleControl::Initialize()
maTBBorder1->SetPaintTransparent(true);
Size aTbxSize( maTBBorder1->CalcWindowSizePixel() );
maTBBorder1->SetOutputSizePixel( aTbxSize );
- Link<> aLink = LINK(this, CellBorderStyleControl, TB1SelectHdl);
- maTBBorder1->SetSelectHdl ( aLink );
+ maTBBorder1->SetSelectHdl ( LINK(this, CellBorderStyleControl, TB1SelectHdl) );
maTBBorder2->SetLineCount(2);
maTBBorder2->InsertItem(TBI_BORDER2_LEFT, mpImageList[4]);
@@ -133,8 +132,7 @@ void CellBorderStyleControl::Initialize()
maTBBorder2->SetItemText(TBI_BORDER2_TLBR, ScResId(STR_BORDER_6));
maTBBorder2->SetItemText(TBI_BORDER2_TOPBOT, ScResId(STR_BORDER_7));
maTBBorder2->SetItemText(TBI_BORDER2_LEFTRIGHT, ScResId(STR_BORDER_8));
- aLink = LINK(this, CellBorderStyleControl, TB2SelectHdl);
- maTBBorder2->SetSelectHdl ( aLink );
+ maTBBorder2->SetSelectHdl ( LINK(this, CellBorderStyleControl, TB2SelectHdl) );
maTBBorder3->SetItemImage(TBI_BORDER3_S1, mpImageList[12]);
maTBBorder3->SetItemImage(TBI_BORDER3_S2, mpImageList[13]);
@@ -144,11 +142,10 @@ void CellBorderStyleControl::Initialize()
maTBBorder3->SetPaintTransparent(true);
aTbxSize = maTBBorder3->CalcWindowSizePixel() ;
maTBBorder3->SetOutputSizePixel( aTbxSize );
- aLink = LINK(this, CellBorderStyleControl, TB3SelectHdl);
- maTBBorder3->SetSelectHdl ( aLink );
+ maTBBorder3->SetSelectHdl ( LINK(this, CellBorderStyleControl, TB3SelectHdl) );
}
-IMPL_LINK(CellBorderStyleControl, TB1SelectHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(CellBorderStyleControl, TB1SelectHdl, ToolBox*, pToolBox, void)
{
sal_uInt16 nId = pToolBox->GetCurItemId();
SvxBoxItem aBorderOuter( SID_ATTR_BORDER_OUTER );
@@ -202,10 +199,9 @@ IMPL_LINK(CellBorderStyleControl, TB1SelectHdl, ToolBox*, pToolBox)
mrCellAppearancePropertyPanel.GetBindings()->GetDispatcher()->Execute(SID_ATTR_BORDER, SfxCallMode::RECORD, &aBorderOuter, &aBorderInner, 0L);
mrCellAppearancePropertyPanel.EndCellBorderStylePopupMode();
- return 0;
}
-IMPL_LINK(CellBorderStyleControl, TB2SelectHdl, ToolBox *, pToolBox)
+IMPL_LINK_TYPED(CellBorderStyleControl, TB2SelectHdl, ToolBox *, pToolBox, void)
{
sal_uInt16 nId = pToolBox->GetCurItemId();
@@ -287,10 +283,9 @@ IMPL_LINK(CellBorderStyleControl, TB2SelectHdl, ToolBox *, pToolBox)
}
mrCellAppearancePropertyPanel.EndCellBorderStylePopupMode();
- return 0;
}
-IMPL_LINK(CellBorderStyleControl, TB3SelectHdl, ToolBox *, pToolBox)
+IMPL_LINK_TYPED(CellBorderStyleControl, TB3SelectHdl, ToolBox *, pToolBox, void)
{
sal_uInt16 nId = pToolBox->GetCurItemId();
@@ -347,7 +342,6 @@ IMPL_LINK(CellBorderStyleControl, TB3SelectHdl, ToolBox *, pToolBox)
pBottom.reset();
mrCellAppearancePropertyPanel.EndCellBorderStylePopupMode();
- return 0;
}
} } // end of namespace svx::sidebar
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.hxx b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
index 706d10e7b11c..8772dccb5da0 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.hxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
@@ -41,9 +41,9 @@ private:
void Initialize();
- DECL_LINK(TB1SelectHdl, ToolBox *);
- DECL_LINK(TB2SelectHdl, ToolBox *);
- DECL_LINK(TB3SelectHdl, ToolBox *);
+ DECL_LINK_TYPED(TB1SelectHdl, ToolBox *, void);
+ DECL_LINK_TYPED(TB2SelectHdl, ToolBox *, void);
+ DECL_LINK_TYPED(TB3SelectHdl, ToolBox *, void);
public:
CellBorderStyleControl(vcl::Window* pParent, CellAppearancePropertyPanel& rPanel);
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index c005b8c1096c..953c318d115e 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -96,8 +96,7 @@ void NumberFormatPropertyPanel::Initialize()
mpLbCategory->SetAccessibleName(OUString( "Category"));
mpLbCategory->SetDropDownLineCount(mpLbCategory->GetEntryCount());
- aLink = LINK(this, NumberFormatPropertyPanel, NumFormatHdl);
- mpTBCategory->SetSelectHdl ( aLink );
+ mpTBCategory->SetSelectHdl ( LINK(this, NumberFormatPropertyPanel, NumFormatHdl) );
aLink = LINK(this, NumberFormatPropertyPanel, NumFormatValueHdl);
@@ -112,7 +111,7 @@ void NumberFormatPropertyPanel::Initialize()
mpTBCategory->SetAccessibleRelationLabeledBy(mpTBCategory);
}
-IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox )
+IMPL_LINK_TYPED( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox, void )
{
const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId()));
sal_uInt16 nId = 0;
@@ -133,7 +132,6 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox )
SfxUInt16Item aItem( SID_NUMBER_TYPE_FORMAT, nId );
GetBindings()->GetDispatcher()->Execute(SID_NUMBER_TYPE_FORMAT, SfxCallMode::RECORD, &aItem, 0L);
}
- return 0L;
}
IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox )
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
index 9a162beaf1b5..64e1a8d14ede 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.hxx
@@ -81,7 +81,7 @@ private:
::sfx2::sidebar::EnumContext maContext;
SfxBindings* mpBindings;
- DECL_LINK(NumFormatHdl, ToolBox*);
+ DECL_LINK_TYPED(NumFormatHdl, ToolBox*, void);
DECL_LINK(NumFormatSelectHdl, ListBox*);
DECL_LINK(NumFormatValueHdl, void*);
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 7a0368dd6c0c..987818b84751 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -259,7 +259,7 @@ sd::DrawDocShell* SdNavigatorWin::GetDrawDocShell( const SdDrawDocument* pDoc )
return pDocShell;
}
-IMPL_LINK_NOARG(SdNavigatorWin, SelectToolboxHdl)
+IMPL_LINK_NOARG_TYPED(SdNavigatorWin, SelectToolboxHdl, ToolBox *, void)
{
sal_uInt16 nId = maToolbox->GetCurItemId();
sal_uInt16 nSId = 0;
@@ -306,15 +306,12 @@ IMPL_LINK_NOARG(SdNavigatorWin, SelectToolboxHdl)
}
break;
}
- return 0;
}
-IMPL_LINK_NOARG(SdNavigatorWin, ClickToolboxHdl)
-{
- return 0;
-}
+IMPL_LINK_NOARG_TYPED(SdNavigatorWin, ClickToolboxHdl, ToolBox *, void)
+{}
-IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox )
+IMPL_LINK_TYPED( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox, void )
{
sal_uInt16 nId = maToolbox->GetCurItemId();
@@ -387,7 +384,6 @@ IMPL_LINK( SdNavigatorWin, DropdownClickToolBoxHdl, ToolBox*, pBox )
}
break;
}
- return 0;
}
IMPL_LINK_NOARG(SdNavigatorWin, ClickObjectHdl)
diff --git a/sd/source/ui/inc/navigatr.hxx b/sd/source/ui/inc/navigatr.hxx
index aae2ba0fa7a7..ed682fdd9254 100644
--- a/sd/source/ui/inc/navigatr.hxx
+++ b/sd/source/ui/inc/navigatr.hxx
@@ -145,9 +145,9 @@ private:
NavDocInfo* GetDocInfo();
DECL_LINK( GetFocusObjectsHdl, void * );
- DECL_LINK( SelectToolboxHdl, void * );
- DECL_LINK(ClickToolboxHdl, void *);
- DECL_LINK( DropdownClickToolBoxHdl, ToolBox * );
+ DECL_LINK_TYPED( SelectToolboxHdl, ToolBox *, void );
+ DECL_LINK_TYPED(ClickToolboxHdl, ToolBox *, void);
+ DECL_LINK_TYPED( DropdownClickToolBoxHdl, ToolBox *, void );
DECL_LINK( ClickPageHdl, void * );
DECL_LINK( ClickObjectHdl, void * );
DECL_LINK( SelectDocumentHdl, void * );
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index b070a567f9f9..c892d43d0dfe 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -2886,15 +2886,13 @@ void SfxHelpWindow_Impl::ShowStartPage()
-IMPL_LINK( SfxHelpWindow_Impl, SelectHdl, ToolBox* , pToolBox )
+IMPL_LINK_TYPED( SfxHelpWindow_Impl, SelectHdl, ToolBox* , pToolBox, void )
{
if ( pToolBox )
{
bGrabFocusToToolBox = pToolBox->HasChildPathFocus();
DoAction( pToolBox->GetCurItemId() );
}
-
- return 1;
}
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 8ae94ed52bcb..246652604026 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -470,7 +470,7 @@ public:
inline ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame2 >
getFrame() const { return xFrame; }
- inline void SetSelectHdl( const Link<>& rLink ) { aToolBox->SetSelectHdl( rLink ); }
+ inline void SetSelectHdl( const Link<ToolBox *, void>& rLink ) { aToolBox->SetSelectHdl( rLink ); }
void ToggleIndex( bool bOn );
void SelectSearchText( const OUString& rSearchText, bool _bIsFullWordSearch );
void SetPageStyleHeaderOff() const;
@@ -520,7 +520,7 @@ friend class SfxHelpIndexWindow_Impl;
void SaveConfig();
void ShowStartPage();
- DECL_LINK( SelectHdl, ToolBox* );
+ DECL_LINK_TYPED( SelectHdl, ToolBox*, void );
DECL_LINK(OpenHdl, void *);
DECL_LINK( SelectFactoryHdl, SfxHelpIndexWindow_Impl* );
DECL_LINK( ChangeHdl, HelpListener_Impl* );
diff --git a/sfx2/source/dialog/recfloat.cxx b/sfx2/source/dialog/recfloat.cxx
index 60ac3df51cb2..ce3dabb234b1 100644
--- a/sfx2/source/dialog/recfloat.cxx
+++ b/sfx2/source/dialog/recfloat.cxx
@@ -249,14 +249,12 @@ void SfxRecordingFloat_Impl::StateChanged( StateChangedType nStateChange )
SfxFloatingWindow::StateChanged( nStateChange );
}
-IMPL_LINK( SfxRecordingFloat_Impl, Select, ToolBox*, pToolBar )
+IMPL_LINK_TYPED( SfxRecordingFloat_Impl, Select, ToolBox*, pToolBar, void )
{
(void)pToolBar;
sal_Int16 nKeyModifier( (sal_Int16)m_pTbx->GetModifier() );
if ( xStopRecTbxCtrl.is() )
xStopRecTbxCtrl->execute( nKeyModifier );
-
- return 1;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index 186eaa53d970..65a6a6a8e22c 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -839,7 +839,7 @@ namespace sfx2
virtual void Dying() SAL_OVERRIDE;
private:
- DECL_LINK( OnToolboxClicked, ToolBox* );
+ DECL_LINK_TYPED( OnToolboxClicked, ToolBox*, void );
DECL_LINK( OnMenuItemSelected, Menu* );
DECL_LINK( DockingChanged, TitledDockingWindow* );
::std::unique_ptr< PopupMenu > impl_createPopupMenu() const;
@@ -963,7 +963,7 @@ namespace sfx2
}
- IMPL_LINK( TaskPaneController_Impl, OnToolboxClicked, ToolBox*, i_pToolBox )
+ IMPL_LINK_TYPED( TaskPaneController_Impl, OnToolboxClicked, ToolBox*, i_pToolBox, void )
{
if ( i_pToolBox->GetCurItemId() == m_nViewMenuID )
{
@@ -977,8 +977,6 @@ namespace sfx2
aMenuRect.SetPos( i_pToolBox->GetPosPixel() );
pMenu->Execute( &m_rDockingWindow, aMenuRect, POPUPMENU_EXECUTE_DOWN );
}
-
- return 0;
}
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 802f8bad263a..9c82774eea12 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -2428,11 +2428,10 @@ bool SfxTemplateDialog_Impl::IsCheckedItem(sal_uInt16 nMesId)
}
}
-IMPL_LINK( SfxTemplateDialog_Impl, ToolBoxLSelect, ToolBox *, pBox )
+IMPL_LINK_TYPED( SfxTemplateDialog_Impl, ToolBoxLSelect, ToolBox *, pBox, void )
{
const sal_uInt16 nEntry = pBox->GetCurItemId();
FamilySelect(nEntry);
- return 0;
}
static OUString lcl_GetLabel(uno::Any& rAny)
@@ -2453,16 +2452,15 @@ static OUString lcl_GetLabel(uno::Any& rAny)
return sRet;
}
-IMPL_LINK( SfxTemplateDialog_Impl, ToolBoxRSelect, ToolBox *, pBox )
+IMPL_LINK_TYPED( SfxTemplateDialog_Impl, ToolBoxRSelect, ToolBox *, pBox, void )
{
const sal_uInt16 nEntry = pBox->GetCurItemId();
if(nEntry != SID_STYLE_NEW_BY_EXAMPLE ||
ToolBoxItemBits::DROPDOWN != (pBox->GetItemBits(nEntry)&ToolBoxItemBits::DROPDOWN))
ActionSelect(nEntry);
- return 0;
}
-IMPL_LINK( SfxTemplateDialog_Impl, ToolBoxRClick, ToolBox *, pBox )
+IMPL_LINK_TYPED( SfxTemplateDialog_Impl, ToolBoxRClick, ToolBox *, pBox, void )
{
const sal_uInt16 nEntry = pBox->GetCurItemId();
if(nEntry == SID_STYLE_NEW_BY_EXAMPLE &&
@@ -2481,7 +2479,7 @@ IMPL_LINK( SfxTemplateDialog_Impl, ToolBoxRClick, ToolBox *, pBox )
a >>= xUICommands;
}
if(!xUICommands.is())
- return 0;
+ return;
try
{
uno::Any aCommand = xUICommands->getByName(".uno:StyleNewByExample");
@@ -2511,7 +2509,6 @@ IMPL_LINK( SfxTemplateDialog_Impl, ToolBoxRClick, ToolBox *, pBox )
}
pBox->Invalidate();
}
- return 0;
}
IMPL_LINK( SfxTemplateDialog_Impl, MenuSelectHdl, Menu*, pMenu)
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index 402f006589fb..339a086693b2 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -225,7 +225,7 @@ namespace sfx2
}
- sal_uInt16 TitledDockingWindow::impl_addDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<>& i_rCallback )
+ sal_uInt16 TitledDockingWindow::impl_addDropDownToolBoxItem( const OUString& i_rItemText, const OString& i_nHelpId, const Link<ToolBox *, void>& i_rCallback )
{
// Add the menu before the closer button.
const sal_uInt16 nItemCount( m_aToolbox->GetItemCount() );
@@ -244,7 +244,7 @@ namespace sfx2
}
- IMPL_LINK( TitledDockingWindow, OnToolboxItemSelected, ToolBox*, pToolBox )
+ IMPL_LINK_TYPED( TitledDockingWindow, OnToolboxItemSelected, ToolBox*, pToolBox, void )
{
const sal_uInt16 nId = pToolBox->GetCurItemId();
@@ -261,8 +261,6 @@ namespace sfx2
NULL
);
}
-
- return 0;
}
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 53f5a0577aa5..a2f01b66b57d 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -453,7 +453,7 @@ void SfxTemplateManagerDlg::writeSettings ()
aViewSettings.SetUserData(aSettings);
}
-IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXViewHdl)
+IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg,TBXViewHdl, ToolBox *, void)
{
const sal_uInt16 nCurItemId = mpViewBar->GetCurItemId();
@@ -470,11 +470,9 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXViewHdl)
OnFolderNew();
else if (nCurItemId == mpViewBar->GetItemId(VIEWBAR_SAVE))
OnTemplateSaveAs();
-
- return 0;
}
-IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXActionHdl)
+IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, TBXActionHdl, ToolBox *, void)
{
const sal_uInt16 nCurItemId = mpActionBar->GetCurItemId();
@@ -482,11 +480,9 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXActionHdl)
OnTemplateSearch();
else if (nCurItemId == mpActionBar->GetItemId(ACTIONBAR_TEMPLATE))
OnTemplateLink();
-
- return 0;
}
-IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXTemplateHdl)
+IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, TBXTemplateHdl, ToolBox *, void)
{
const sal_uInt16 nCurItemId = mpTemplateBar->GetCurItemId();
@@ -502,11 +498,9 @@ IMPL_LINK_NOARG(SfxTemplateManagerDlg,TBXTemplateHdl)
OnTemplateAsDefault();
else if (nCurItemId == mpTemplateBar->GetItemId(TEMPLATEBAR_EXPORT))
OnTemplateExport();
-
- return 0;
}
-IMPL_LINK(SfxTemplateManagerDlg, TBXDropdownHdl, ToolBox*, pBox)
+IMPL_LINK_TYPED(SfxTemplateManagerDlg, TBXDropdownHdl, ToolBox*, pBox, void)
{
const sal_uInt16 nCurItemId = pBox->GetCurItemId();
@@ -557,8 +551,6 @@ IMPL_LINK(SfxTemplateManagerDlg, TBXDropdownHdl, ToolBox*, pBox)
pBox->EndSelection();
pBox->Invalidate();
}
-
- return 0;
}
IMPL_LINK(SfxTemplateManagerDlg, TVItemStateHdl, const ThumbnailViewItem*, pItem)
diff --git a/sfx2/source/inc/recfloat.hxx b/sfx2/source/inc/recfloat.hxx
index 50dd7f6dc9fd..665b4ce891a4 100644
--- a/sfx2/source/inc/recfloat.hxx
+++ b/sfx2/source/inc/recfloat.hxx
@@ -51,7 +51,7 @@ public:
virtual void FillInfo( SfxChildWinInfo& rInfo ) const SAL_OVERRIDE;
virtual void StateChanged( StateChangedType nStateChange ) SAL_OVERRIDE;
- DECL_LINK( Select, ToolBox * );
+ DECL_LINK_TYPED( Select, ToolBox *, void );
};
#endif
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index 8c49b71761dd..76e41684954c 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -381,9 +381,9 @@ private:
VclPtr<DropToolBox_Impl> m_aActionTbL;
VclPtr<ToolBox> m_aActionTbR;
- DECL_LINK( ToolBoxLSelect, ToolBox* );
- DECL_LINK( ToolBoxRSelect, ToolBox* );
- DECL_LINK( ToolBoxRClick, ToolBox* );
+ DECL_LINK_TYPED( ToolBoxLSelect, ToolBox*, void );
+ DECL_LINK_TYPED( ToolBoxRSelect, ToolBox*, void );
+ DECL_LINK_TYPED( ToolBoxRClick, ToolBox*, void );
DECL_LINK( MenuSelectHdl, Menu* );
protected:
diff --git a/sfx2/source/sidebar/SidebarToolBox.cxx b/sfx2/source/sidebar/SidebarToolBox.cxx
index 24fba7dea6fd..78dec70fa3fa 100644
--- a/sfx2/source/sidebar/SidebarToolBox.cxx
+++ b/sfx2/source/sidebar/SidebarToolBox.cxx
@@ -75,10 +75,10 @@ void SidebarToolBox::dispose()
if (mbAreHandlersRegistered)
{
- SetDropdownClickHdl(Link<>());
- SetClickHdl(Link<>());
- SetDoubleClickHdl(Link<>());
- SetSelectHdl(Link<>());
+ SetDropdownClickHdl(Link<ToolBox *, void>());
+ SetClickHdl(Link<ToolBox *, void>());
+ SetDoubleClickHdl(Link<ToolBox *, void>());
+ SetSelectHdl(Link<ToolBox *, void>());
SetActivateHdl(Link<>());
SetDeactivateHdl(Link<>());
mbAreHandlersRegistered = false;
@@ -229,7 +229,7 @@ void SidebarToolBox::RegisterHandlers()
}
}
-IMPL_LINK(SidebarToolBox, DropDownClickHandler, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(SidebarToolBox, DropDownClickHandler, ToolBox*, pToolBox, void)
{
if (pToolBox != NULL)
{
@@ -241,43 +241,36 @@ IMPL_LINK(SidebarToolBox, DropDownClickHandler, ToolBox*, pToolBox)
xWindow->setFocus();
}
}
- return 1;
}
-IMPL_LINK(SidebarToolBox, ClickHandler, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(SidebarToolBox, ClickHandler, ToolBox*, pToolBox, void)
{
if (pToolBox == NULL)
- return 0;
+ return;
Reference<frame::XToolbarController> xController (GetControllerForItemId(pToolBox->GetCurItemId()));
if (xController.is())
xController->click();
-
- return 1;
}
-IMPL_LINK(SidebarToolBox, DoubleClickHandler, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(SidebarToolBox, DoubleClickHandler, ToolBox*, pToolBox, void)
{
if (pToolBox == NULL)
- return 0;
+ return;
Reference<frame::XToolbarController> xController (GetControllerForItemId(pToolBox->GetCurItemId()));
if (xController.is())
xController->doubleClick();
-
- return 1;
}
-IMPL_LINK(SidebarToolBox, SelectHandler, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(SidebarToolBox, SelectHandler, ToolBox*, pToolBox, void)
{
if (pToolBox == NULL)
- return 0;
+ return;
Reference<frame::XToolbarController> xController (GetControllerForItemId(pToolBox->GetCurItemId()));
if (xController.is())
xController->execute((sal_Int16)pToolBox->GetModifier());
-
- return 1;
}
IMPL_LINK(SidebarToolBox, ActivateToolBox, ToolBox*, EMPTYARG)
diff --git a/sfx2/source/sidebar/TitleBar.cxx b/sfx2/source/sidebar/TitleBar.cxx
index fca67caf09b7..d4a0fbea06c7 100644
--- a/sfx2/source/sidebar/TitleBar.cxx
+++ b/sfx2/source/sidebar/TitleBar.cxx
@@ -185,15 +185,13 @@ void TitleBar::PaintFocus (const Rectangle& rFocusBox)
Pop();
}
-IMPL_LINK(TitleBar, SelectionHandler, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(TitleBar, SelectionHandler, ToolBox*, pToolBox, void)
{
(void)pToolBox;
OSL_ASSERT(maToolBox.get()==pToolBox);
const sal_uInt16 nItemId (maToolBox->GetHighlightItemId());
HandleToolBoxItemClick(nItemId);
-
- return sal_True;
}
} } // end of namespace sfx2::sidebar
diff --git a/sfx2/source/sidebar/TitleBar.hxx b/sfx2/source/sidebar/TitleBar.hxx
index 77f588d50423..c65be5ec709d 100644
--- a/sfx2/source/sidebar/TitleBar.hxx
+++ b/sfx2/source/sidebar/TitleBar.hxx
@@ -68,7 +68,7 @@ private:
Image maIcon;
void PaintTitle (const Rectangle& rTitleBox);
- DECL_LINK(SelectionHandler, ToolBox*);
+ DECL_LINK_TYPED(SelectionHandler, ToolBox*, void);
};
} } // end of namespace sfx2::sidebar
diff --git a/starmath/inc/toolbox.hxx b/starmath/inc/toolbox.hxx
index 1af665e78954..5c03f5210e22 100644
--- a/starmath/inc/toolbox.hxx
+++ b/starmath/inc/toolbox.hxx
@@ -52,8 +52,8 @@ protected:
void ApplyImageLists( sal_uInt16 nCategoryRID );
- DECL_LINK( CategoryClickHdl, ToolBox* );
- DECL_LINK( CmdSelectHdl, ToolBox* );
+ DECL_LINK_TYPED( CategoryClickHdl, ToolBox*, void );
+ DECL_LINK_TYPED( CmdSelectHdl, ToolBox*, void );
SmViewShell * GetView();
const ImageList * GetImageList( sal_uInt16 nResId );
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index 7416beb8559b..0182ce404f3a 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -329,24 +329,22 @@ sal_uInt16 SmToolBoxWindow::MapToolbarIdToCategory(sal_uInt16 nId) const
return RID_MISC_CAT;
}
-IMPL_LINK( SmToolBoxWindow, CategoryClickHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED( SmToolBoxWindow, CategoryClickHdl, ToolBox*, pToolBox, void)
{
sal_uInt16 nItemId = pToolBox->GetCurItemId();
if (nItemId != 0)
{
SetCategory(MapToolbarIdToCategory(nItemId));
}
- return 0;
}
-IMPL_LINK( SmToolBoxWindow, CmdSelectHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED( SmToolBoxWindow, CmdSelectHdl, ToolBox*, pToolBox, void)
{
SmViewShell *pViewSh = GetView();
if (pViewSh)
pViewSh->GetViewFrame()->GetDispatcher()->Execute(
SID_INSERTCOMMAND, SfxCallMode::RECORD,
new SfxInt16Item(SID_INSERTCOMMAND, pToolBox->GetCurItemId()), 0L);
- return 0;
}
diff --git a/svx/inc/galbrws2.hxx b/svx/inc/galbrws2.hxx
index ec53f5236498..95bbb7f18336 100644
--- a/svx/inc/galbrws2.hxx
+++ b/svx/inc/galbrws2.hxx
@@ -138,7 +138,7 @@ private:
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
DECL_LINK( SelectObjectHdl, void* );
- DECL_LINK( SelectTbxHdl, ToolBox* );
+ DECL_LINK_TYPED( SelectTbxHdl, ToolBox*, void );
DECL_LINK( MiscHdl, void* );
private:
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index 0ae2ed0c9bd6..97ba456fab99 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -172,7 +172,7 @@ public:
void SetExecState( bool bState ) { bExecState = bState; }
bool IsExecReady() const { return bExecState; }
- DECL_LINK( PipetteHdl, ToolBox* pTbx );
+ DECL_LINK_TYPED( PipetteHdl, ToolBox*, void );
DECL_LINK( CbxHdl, CheckBox* pCbx );
DECL_LINK( CbxTransHdl, CheckBox* pCbx );
DECL_LINK( FocusLbHdl, ColorLB* pLb );
@@ -191,14 +191,12 @@ MaskData::MaskData( SvxBmpMask* pBmpMask, SfxBindings& rBind ) :
{
}
-IMPL_LINK( MaskData, PipetteHdl, ToolBox*, pTbx )
+IMPL_LINK_TYPED( MaskData, PipetteHdl, ToolBox*, pTbx, void )
{
SfxBoolItem aBItem( SID_BMPMASK_PIPETTE,
pTbx->IsItemChecked( pTbx->GetItemId(0) ) );
rBindings.GetDispatcher()->Execute( SID_BMPMASK_PIPETTE, OWN_CALLMODE, &aBItem, 0L );
-
- return 0;
}
IMPL_LINK( MaskData, CbxHdl, CheckBox*, pCbx )
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 760a010fdd39..e7c1d3e22baa 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -431,7 +431,7 @@ bool SvxSuperContourDlg::IsRedoPossible() const
// Click handler for ToolBox
-IMPL_LINK( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx )
+IMPL_LINK_TYPED( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx, void )
{
sal_uInt16 nNewItemId = pTbx->GetCurItemId();
@@ -532,8 +532,6 @@ IMPL_LINK( SvxSuperContourDlg, Tbx1ClickHdl, ToolBox*, pTbx )
m_pContourWnd->SetPipetteMode( bPipette );
}
-
- return 0L;
}
IMPL_LINK( SvxSuperContourDlg, MousePosHdl, ContourWindow*, pWnd )
diff --git a/svx/source/dialog/contimp.hxx b/svx/source/dialog/contimp.hxx
index a0e76fb8cc19..b63b3b4c189a 100644
--- a/svx/source/dialog/contimp.hxx
+++ b/svx/source/dialog/contimp.hxx
@@ -83,7 +83,7 @@ class SvxSuperContourDlg : public SvxContourDlg
virtual bool Close() SAL_OVERRIDE;
- DECL_LINK( Tbx1ClickHdl, ToolBox* );
+ DECL_LINK_TYPED( Tbx1ClickHdl, ToolBox*, void );
DECL_LINK( MousePosHdl, ContourWindow* );
DECL_LINK( GraphSizeHdl, ContourWindow* );
DECL_LINK_TYPED(UpdateHdl, Idle *, void);
diff --git a/svx/source/dialog/fontwork.cxx b/svx/source/dialog/fontwork.cxx
index 9285f3b32335..1b6e0bf27329 100644
--- a/svx/source/dialog/fontwork.cxx
+++ b/svx/source/dialog/fontwork.cxx
@@ -642,7 +642,7 @@ void SvxFontWorkDialog::SetShadowYVal_Impl(const XFormTextShadowYValItem* pItem)
}
}
-IMPL_LINK_NOARG(SvxFontWorkDialog, SelectStyleHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectStyleHdl_Impl, ToolBox *, void)
{
sal_uInt16 nId = m_pTbxStyle->GetCurItemId();
@@ -669,10 +669,9 @@ IMPL_LINK_NOARG(SvxFontWorkDialog, SelectStyleHdl_Impl)
SetStyle_Impl( &aItem );
nLastStyleTbxId = nId;
}
- return 0;
}
-IMPL_LINK_NOARG(SvxFontWorkDialog, SelectAdjustHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectAdjustHdl_Impl, ToolBox *, void)
{
sal_uInt16 nId = m_pTbxAdjust->GetCurItemId();
@@ -697,10 +696,9 @@ IMPL_LINK_NOARG(SvxFontWorkDialog, SelectAdjustHdl_Impl)
SetAdjust_Impl(&aItem);
nLastAdjustTbxId = nId;
}
- return 0;
}
-IMPL_LINK_NOARG(SvxFontWorkDialog, SelectShadowHdl_Impl)
+IMPL_LINK_NOARG_TYPED(SvxFontWorkDialog, SelectShadowHdl_Impl, ToolBox *, void)
{
sal_uInt16 nId = m_pTbxShadow->GetCurItemId();
@@ -737,7 +735,6 @@ IMPL_LINK_NOARG(SvxFontWorkDialog, SelectShadowHdl_Impl)
GetBindings().GetDispatcher()->Execute( SID_FORMTEXT_SHADOW, SfxCallMode::RECORD, &aItem, 0L );
SetShadow_Impl(&aItem, true);
}
- return 0;
}
IMPL_LINK_NOARG(SvxFontWorkDialog, ModifyInputHdl_Impl)
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index b260afa8db16..4c8fcdf4e743 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -340,7 +340,7 @@ void SvxIMapDlg::KeyInput( const KeyEvent& rKEvt )
// Click-handler for ToolBox
-IMPL_LINK( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx )
+IMPL_LINK_TYPED( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx, void )
{
sal_uInt16 nNewItemId = pTbx->GetCurItemId();
@@ -440,8 +440,6 @@ IMPL_LINK( SvxIMapDlg, TbxClickHdl, ToolBox*, pTbx )
URLLoseFocusHdl( NULL );
pIMapWnd->GetSdrModel()->Redo();
}
-
- return 0;
}
void SvxIMapDlg::DoOpen()
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 33fdcba23745..25bd129118a7 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -388,10 +388,9 @@ namespace svxform
TabPage::dispose();
}
- IMPL_LINK_NOARG(XFormsPage, TbxSelectHdl)
+ IMPL_LINK_NOARG_TYPED(XFormsPage, TbxSelectHdl, ToolBox *, void)
{
DoToolBoxAction( m_pToolBox->GetCurItemId() );
- return 0;
}
IMPL_LINK_NOARG(XFormsPage, ItemSelectHdl)
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 28c6c247dda5..7d91faf1dfb7 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -1329,14 +1329,12 @@ IMPL_LINK_NOARG(GalleryBrowser2, SelectObjectHdl)
return 0L;
}
-IMPL_LINK( GalleryBrowser2, SelectTbxHdl, ToolBox*, pBox )
+IMPL_LINK_TYPED( GalleryBrowser2, SelectTbxHdl, ToolBox*, pBox, void )
{
if( pBox->GetCurItemId() == TBX_ID_ICON )
SetMode( GALLERYBROWSERMODE_ICON );
else if( pBox->GetCurItemId() == TBX_ID_LIST )
SetMode( GALLERYBROWSERMODE_LIST );
-
- return 0L;
}
IMPL_LINK_NOARG(GalleryBrowser2, MiscHdl)
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index d336a391399b..fb50d78f7640 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -272,7 +272,7 @@ namespace svxform
OUString m_sInstanceURL;
bool m_bLinkOnce;
- DECL_LINK(TbxSelectHdl, void *);
+ DECL_LINK_TYPED(TbxSelectHdl, ToolBox *, void);
DECL_LINK(ItemSelectHdl, void *);
void AddChildren( SvTreeListEntry* _pParent,
diff --git a/svx/source/sidebar/area/AreaPropertyPanel.cxx b/svx/source/sidebar/area/AreaPropertyPanel.cxx
index 82a931f8532c..a065235c3e3d 100644
--- a/svx/source/sidebar/area/AreaPropertyPanel.cxx
+++ b/svx/source/sidebar/area/AreaPropertyPanel.cxx
@@ -186,9 +186,9 @@ void AreaPropertyPanel::Initialize()
const sal_uInt16 nIdGradient = mpBTNGradient->GetItemId(UNO_SIDEBARGRADIENT);
mpBTNGradient->SetItemBits( nIdGradient, mpBTNGradient->GetItemBits( nIdGradient ) | ToolBoxItemBits::DROPDOWNONLY );
- aLink = LINK( this, AreaPropertyPanel, ClickTrGrHdl_Impl );
- mpBTNGradient->SetDropdownClickHdl( aLink );
- mpBTNGradient->SetSelectHdl( aLink );
+ Link<ToolBox *, void> aLink2 = LINK( this, AreaPropertyPanel, ClickTrGrHdl_Impl );
+ mpBTNGradient->SetDropdownClickHdl( aLink2 );
+ mpBTNGradient->SetSelectHdl( aLink2 );
mpBTNGradient->SetItemImage(nIdGradient,maImgLinear);
mpBTNGradient->Hide();
@@ -1098,13 +1098,11 @@ void AreaPropertyPanel::Update()
-IMPL_LINK( AreaPropertyPanel, ClickTrGrHdl_Impl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( AreaPropertyPanel, ClickTrGrHdl_Impl, ToolBox*, pToolBox, void )
{
maTrGrPopup.Rearrange(mpFloatTransparenceItem.get());
OSL_ASSERT( pToolBox->GetItemCommand(pToolBox->GetCurItemId()) == UNO_SIDEBARGRADIENT);
maTrGrPopup.Show(*pToolBox);
-
- return 0L;
}
diff --git a/svx/source/sidebar/area/AreaPropertyPanel.hxx b/svx/source/sidebar/area/AreaPropertyPanel.hxx
index bf89ae3f1fea..a52250e818cd 100644
--- a/svx/source/sidebar/area/AreaPropertyPanel.hxx
+++ b/svx/source/sidebar/area/AreaPropertyPanel.hxx
@@ -154,7 +154,7 @@ private:
// for transparency gradient
VclPtr<PopupControl> CreateTransparencyGradientControl (PopupContainer* pParent);
- DECL_LINK( ClickTrGrHdl_Impl, ToolBox* );
+ DECL_LINK_TYPED( ClickTrGrHdl_Impl, ToolBox*, void );
static void SetupIcons();
void Initialize();
diff --git a/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx b/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx
index 097b01c877b2..3bfa9c0d5b31 100644
--- a/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx
+++ b/svx/source/sidebar/area/AreaTransparencyGradientControl.cxx
@@ -82,10 +82,8 @@ AreaTransparencyGradientControl::AreaTransparencyGradientControl (
maMtrTrgrBorder->SetModifyHdl( aLink );
maMtrTrgrStartValue->SetModifyHdl( aLink );
maMtrTrgrEndValue->SetModifyHdl( aLink );
- aLink = LINK( this, AreaTransparencyGradientControl, Left_Click45_Impl);
- maBtnLeft45->SetSelectHdl( aLink );
- aLink = LINK( this, AreaTransparencyGradientControl, Right_Click45_Impl);
- maBtnRight45->SetSelectHdl( aLink );
+ maBtnLeft45->SetSelectHdl( LINK( this, AreaTransparencyGradientControl, Left_Click45_Impl) );
+ maBtnRight45->SetSelectHdl( LINK( this, AreaTransparencyGradientControl, Right_Click45_Impl) );
maBtnLeft45->SetItemImage(1,maRotLeft);
Size aTbxSize = maBtnLeft45->CalcWindowSizePixel();
maBtnLeft45->SetOutputSizePixel( aTbxSize );
@@ -319,7 +317,7 @@ IMPL_LINK_NOARG(AreaTransparencyGradientControl, ModifiedTrgrHdl_Impl)
-IMPL_LINK_NOARG(AreaTransparencyGradientControl, Left_Click45_Impl)
+IMPL_LINK_NOARG_TYPED(AreaTransparencyGradientControl, Left_Click45_Impl, ToolBox *, void)
{
sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)maMtrTrgrStartValue->GetValue() * 255) / 100);
sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)maMtrTrgrEndValue->GetValue() * 255) / 100);
@@ -329,13 +327,12 @@ IMPL_LINK_NOARG(AreaTransparencyGradientControl, Left_Click45_Impl)
aTemp += 45;
maMtrTrgrAngle->SetValue(aTemp);
ExecuteValueModify( nStartCol, nEndCol );
- return 0L;
}
-IMPL_LINK_NOARG(AreaTransparencyGradientControl, Right_Click45_Impl)
+IMPL_LINK_NOARG_TYPED(AreaTransparencyGradientControl, Right_Click45_Impl, ToolBox *, void)
{
sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)maMtrTrgrStartValue->GetValue() * 255) / 100);
sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)maMtrTrgrEndValue->GetValue() * 255) / 100);
@@ -345,7 +342,6 @@ IMPL_LINK_NOARG(AreaTransparencyGradientControl, Right_Click45_Impl)
aTemp -= 45;
maMtrTrgrAngle->SetValue(aTemp);
ExecuteValueModify( nStartCol, nEndCol );
- return 0L;
}
} } // end of namespace svx::sidebar
diff --git a/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx b/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx
index eb8cfc37285d..b408123c8e91 100644
--- a/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx
+++ b/svx/source/sidebar/area/AreaTransparencyGradientControl.hxx
@@ -70,8 +70,8 @@ private:
AreaPropertyPanel& mrAreaPropertyPanel;
SfxBindings* mpBindings;
DECL_LINK( ModifiedTrgrHdl_Impl, void* );
- DECL_LINK( Left_Click45_Impl, void* );
- DECL_LINK( Right_Click45_Impl, void* );
+ DECL_LINK_TYPED( Left_Click45_Impl, ToolBox*, void );
+ DECL_LINK_TYPED( Right_Click45_Impl, ToolBox*, void );
};
diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx
index d63d3524e0b9..1897d3fca23a 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.cxx
@@ -251,9 +251,9 @@ void LinePropertyPanel::Initialize()
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
mpTBWidth->SetItemImage(nIdWidth, mpIMGWidthIcon[0]);
mpTBWidth->SetItemBits( nIdWidth, mpTBWidth->GetItemBits( nIdWidth ) | ToolBoxItemBits::DROPDOWNONLY );
- aLink = LINK(this, LinePropertyPanel, ToolboxWidthSelectHdl);
- mpTBWidth->SetDropdownClickHdl ( aLink );
- mpTBWidth->SetSelectHdl ( aLink );
+ Link<ToolBox *, void> aLink2 = LINK(this, LinePropertyPanel, ToolboxWidthSelectHdl);
+ mpTBWidth->SetDropdownClickHdl ( aLink2 );
+ mpTBWidth->SetSelectHdl ( aLink2 );
FillLineEndList();
SelectEndStyle(true);
@@ -762,14 +762,13 @@ IMPL_LINK(LinePropertyPanel, ChangeCapStyleHdl, void*, EMPTYARG)
return 0;
}
-IMPL_LINK(LinePropertyPanel, ToolboxWidthSelectHdl,ToolBox*, pToolBox)
+IMPL_LINK_TYPED(LinePropertyPanel, ToolboxWidthSelectHdl,ToolBox*, pToolBox, void)
{
if (pToolBox->GetItemCommand(pToolBox->GetCurItemId()) == UNO_SELECTWIDTH)
{
maLineWidthPopup.SetWidthSelect(mnWidthCoreValue, mbWidthValuable, meMapUnit);
maLineWidthPopup.Show(*pToolBox);
}
- return 0;
}
IMPL_LINK( LinePropertyPanel, ChangeTransparentHdl, void *, EMPTYARG )
diff --git a/svx/source/sidebar/line/LinePropertyPanel.hxx b/svx/source/sidebar/line/LinePropertyPanel.hxx
index 33a9b7675abe..8738de42c134 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.hxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.hxx
@@ -154,7 +154,7 @@ private:
DECL_LINK(ImplWidthPopupModeEndHdl, FloatingWindow* );
DECL_LINK(ChangeLineStyleHdl, void*);
- DECL_LINK(ToolboxWidthSelectHdl, ToolBox*);
+ DECL_LINK_TYPED(ToolboxWidthSelectHdl, ToolBox*, void);
DECL_LINK(ChangeTransparentHdl , void *);
DECL_LINK(ChangeStartHdl, void *);
DECL_LINK(ChangeEndHdl, void *);
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
index e69668101c28..2604ea250a40 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx
@@ -215,8 +215,7 @@ void ParaPropertyPanel::InitToolBoxIndent()
mpTbxIndent_IncDec->SetItemImage(nIdDecrement, maDecIndentControl.GetIcon());
mpTbxIndent_IncDec->SetItemImage(nIdHanging, maIndHang);
- aLink = LINK( this, ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl );
- mpTbxIndent_IncDec->SetSelectHdl(aLink);
+ mpTbxIndent_IncDec->SetSelectHdl(LINK( this, ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl ));
m_eLRSpaceUnit = maLRSpaceControl.GetCoreMetric();
const sal_uInt16 nIdPromote = mpTbxProDemote->GetItemId(UNO_PROMOTE);
@@ -225,8 +224,7 @@ void ParaPropertyPanel::InitToolBoxIndent()
mpTbxProDemote->SetItemImage(nIdPromote, maOutLineLeftControl.GetIcon());
mpTbxProDemote->SetItemImage(nIdDemote, maOutLineRightControl.GetIcon());
mpTbxProDemote->SetItemImage(nIdHanging2, maIndHang);
- aLink = LINK( this, ParaPropertyPanel, ClickProDemote_Hdl_Impl );
- mpTbxProDemote->SetSelectHdl(aLink);
+ mpTbxProDemote->SetSelectHdl(LINK( this, ParaPropertyPanel, ClickProDemote_Hdl_Impl ));
m_eLRSpaceUnit = maLRSpaceControl.GetCoreMetric();
}
@@ -261,7 +259,7 @@ IMPL_LINK_NOARG( ParaPropertyPanel, ModifyIndentHdl_Impl)
return 0;
}
-IMPL_LINK(ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl, ToolBox *, pControl)
+IMPL_LINK_TYPED(ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl, ToolBox *, pControl, void)
{
const OUString aCommand(pControl->GetItemCommand(pControl->GetCurItemId()));
@@ -338,11 +336,9 @@ IMPL_LINK(ParaPropertyPanel, ClickIndent_IncDec_Hdl_Impl, ToolBox *, pControl)
GetBindings()->GetDispatcher()->Execute(
SID_ATTR_PARA_LRSPACE, SfxCallMode::RECORD, &aMargin, 0L);
}
-
- return 0L;
}
-IMPL_LINK(ParaPropertyPanel, ClickProDemote_Hdl_Impl, ToolBox *, pControl)
+IMPL_LINK_TYPED(ParaPropertyPanel, ClickProDemote_Hdl_Impl, ToolBox *, pControl, void)
{
const OUString aCommand(pControl->GetItemCommand(pControl->GetCurItemId()));
@@ -363,8 +359,6 @@ IMPL_LINK(ParaPropertyPanel, ClickProDemote_Hdl_Impl, ToolBox *, pControl)
GetBindings()->GetDispatcher()->Execute( SID_ATTR_PARA_LRSPACE, SfxCallMode::RECORD, &aMargin, 0L);
}
-
- return 0L;
}
// for Paragraph Spacing
diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx
index 3d88a1e08c5d..5832847b3d62 100644
--- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx
+++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx
@@ -118,8 +118,8 @@ private:
css::uno::Reference<css::ui::XSidebar> mxSidebar;
DECL_LINK(ModifyIndentHdl_Impl, void*);
- DECL_LINK(ClickIndent_IncDec_Hdl_Impl, ToolBox*);
- DECL_LINK(ClickProDemote_Hdl_Impl, ToolBox*);
+ DECL_LINK_TYPED(ClickIndent_IncDec_Hdl_Impl, ToolBox*, void);
+ DECL_LINK_TYPED(ClickProDemote_Hdl_Impl, ToolBox*, void);
DECL_LINK(ULSpaceHdl_Impl, void*);
void StateChangedIndentImpl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState );
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 1c459d47d1ba..d0495b63237f 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -574,7 +574,7 @@ IMPL_LINK( PosSizePropertyPanel, RotationHdl, void *, EMPTYARG )
-IMPL_LINK( PosSizePropertyPanel, FlipHdl, ToolBox*, pBox )
+IMPL_LINK_TYPED( PosSizePropertyPanel, FlipHdl, ToolBox*, pBox, void )
{
const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId()));
@@ -590,8 +590,6 @@ IMPL_LINK( PosSizePropertyPanel, FlipHdl, ToolBox*, pBox )
GetBindings()->GetDispatcher()->Execute(
SID_FLIP_VERTICAL, SfxCallMode::RECORD, &aVertItem, 0L );
}
-
- return 0;
}
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
index 1225ce07694a..3c61c4b08aec 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
@@ -156,7 +156,7 @@ private:
DECL_LINK( ClickAutoHdl, void * );
DECL_LINK( AngleModifiedHdl, void * );
DECL_LINK( RotationHdl, void * );
- DECL_LINK( FlipHdl, ToolBox * );
+ DECL_LINK_TYPED( FlipHdl, ToolBox *, void );
static void SetupIcons();
void Initialize();
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index 484e5fd74cfa..5e4f48a4b293 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.cxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.cxx
@@ -196,7 +196,7 @@ void TextPropertyPanel::EndUnderlinePopupMode()
void TextPropertyPanel::InitToolBoxFont()
{
- Link<> aLink = LINK(this, TextPropertyPanel, UnderlineClickHdl);
+ Link<ToolBox *, void> aLink = LINK(this, TextPropertyPanel, UnderlineClickHdl);
mpToolBoxFont->SetDropdownClickHdl(aLink);
}
@@ -205,7 +205,7 @@ void TextPropertyPanel::InitToolBoxSpacing()
const sal_uInt16 nId = mpToolBoxSpacing->GetItemId(UNO_SPACING);
mpToolBoxSpacing->SetItemBits(nId, mpToolBoxSpacing->GetItemBits(nId) | ToolBoxItemBits::DROPDOWNONLY);
- Link<> aLink = LINK(this, TextPropertyPanel, SpacingClickHdl);
+ Link<ToolBox *, void> aLink = LINK(this, TextPropertyPanel, SpacingClickHdl);
mpToolBoxSpacing->SetDropdownClickHdl ( aLink );
mpToolBoxSpacing->SetSelectHdl( aLink );
}
@@ -216,7 +216,7 @@ void TextPropertyPanel::SetupToolboxItems()
maSpacingControl.SetupToolBoxItem(*mpToolBoxSpacing, mpToolBoxSpacing->GetItemId(UNO_SPACING));
}
-IMPL_LINK(TextPropertyPanel, UnderlineClickHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(TextPropertyPanel, UnderlineClickHdl, ToolBox*, pToolBox, void)
{
const sal_uInt16 nId = pToolBox->GetCurItemId();
const OUString aCommand(pToolBox->GetItemCommand(nId));
@@ -227,11 +227,9 @@ IMPL_LINK(TextPropertyPanel, UnderlineClickHdl, ToolBox*, pToolBox)
maUnderlinePopup.Rearrange(meUnderline);
maUnderlinePopup.Show(*pToolBox);
}
-
- return 0L;
}
-IMPL_LINK(TextPropertyPanel, SpacingClickHdl, ToolBox*, pToolBox)
+IMPL_LINK_TYPED(TextPropertyPanel, SpacingClickHdl, ToolBox*, pToolBox, void)
{
const sal_uInt16 nId = pToolBox->GetCurItemId();
const OUString aCommand(pToolBox->GetItemCommand(nId));
@@ -242,8 +240,6 @@ IMPL_LINK(TextPropertyPanel, SpacingClickHdl, ToolBox*, pToolBox)
maCharSpacePopup.Rearrange(mbKernLBAvailable,mbKernAvailable,mlKerning);
maCharSpacePopup.Show(*pToolBox);
}
-
- return 0L;
}
void TextPropertyPanel::NotifyItemUpdate (
diff --git a/svx/source/sidebar/text/TextPropertyPanel.hxx b/svx/source/sidebar/text/TextPropertyPanel.hxx
index c646fdb3a893..7ea19a69d754 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.hxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.hxx
@@ -108,8 +108,8 @@ private:
VclPtr<PopupControl> CreateCharacterSpacingControl (PopupContainer* pParent);
VclPtr<PopupControl> CreateUnderlinePopupControl (PopupContainer* pParent);
- DECL_LINK(SpacingClickHdl, ToolBox*);
- DECL_LINK(UnderlineClickHdl, ToolBox* );
+ DECL_LINK_TYPED(SpacingClickHdl, ToolBox*, void);
+ DECL_LINK_TYPED(UnderlineClickHdl, ToolBox*, void);
void SetupToolboxItems();
void InitToolBoxFont();
diff --git a/sw/source/ui/envelp/envprt.cxx b/sw/source/ui/envelp/envprt.cxx
index 10b3a0d323de..2b4379d97895 100644
--- a/sw/source/ui/envelp/envprt.cxx
+++ b/sw/source/ui/envelp/envprt.cxx
@@ -127,7 +127,7 @@ IMPL_LINK( SwEnvPrtPage, ButtonHdl, Button *, pBtn )
return 0;
}
-IMPL_LINK_NOARG(SwEnvPrtPage, AlignHdl)
+IMPL_LINK_NOARG_TYPED(SwEnvPrtPage, AlignHdl, ToolBox *, void)
{
if (m_pAlignBox->GetCurItemId())
{
@@ -141,7 +141,6 @@ IMPL_LINK_NOARG(SwEnvPrtPage, AlignHdl)
const SwEnvItem& rItem = static_cast<const SwEnvItem&>( GetItemSet().Get(FN_ENVELOP) );
m_pAlignBox->CheckItem(m_aIds[rItem.eAlign], true);
}
- return 0;
}
VclPtr<SfxTabPage> SwEnvPrtPage::Create(vcl::Window* pParent, const SfxItemSet* rSet)
diff --git a/sw/source/ui/envelp/envprt.hxx b/sw/source/ui/envelp/envprt.hxx
index a71c96b3a9e6..33c553032802 100644
--- a/sw/source/ui/envelp/envprt.hxx
+++ b/sw/source/ui/envelp/envprt.hxx
@@ -48,7 +48,7 @@ class SwEnvPrtPage : public SfxTabPage
VclPtr<Printer> pPrt;
DECL_LINK(ClickHdl, void *);
- DECL_LINK(AlignHdl, void *);
+ DECL_LINK_TYPED(AlignHdl, ToolBox *, void);
DECL_LINK( ButtonHdl, Button * );
SwEnvDlg* GetParentSwEnvDlg() {return static_cast<SwEnvDlg*>( GetParentDialog());}
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index f4b783cc2ae6..06774c80a89d 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -954,7 +954,7 @@ IMPL_LINK_NOARG(SwFldVarPage, ModifyHdl)
return 0;
}
-IMPL_LINK( SwFldVarPage, TBClickHdl, ToolBox *, pBox )
+IMPL_LINK_TYPED( SwFldVarPage, TBClickHdl, ToolBox *, pBox, void )
{
const sal_uInt16 nTypeId = (sal_uInt16)reinterpret_cast<sal_uLong>(m_pTypeLB->GetEntryData(GetTypeSel()));
@@ -1096,8 +1096,6 @@ IMPL_LINK( SwFldVarPage, TBClickHdl, ToolBox *, pBox )
UpdateSubType();
}
-
- return sal_True;
}
IMPL_LINK_NOARG(SwFldVarPage, ChapterHdl)
diff --git a/sw/source/ui/fldui/fldvar.hxx b/sw/source/ui/fldui/fldvar.hxx
index a37aa5809fda..a7bf3f0163ac 100644
--- a/sw/source/ui/fldui/fldvar.hxx
+++ b/sw/source/ui/fldui/fldvar.hxx
@@ -79,7 +79,7 @@ class SwFldVarPage : public SwFldPage
DECL_LINK(TypeHdl, void *);
DECL_LINK( SubTypeHdl, ListBox* pLB = 0 );
DECL_LINK(ModifyHdl, void * = 0);
- DECL_LINK( TBClickHdl, ToolBox *pTB = 0);
+ DECL_LINK_TYPED( TBClickHdl, ToolBox *, void );
DECL_LINK(ChapterHdl, void * = 0);
DECL_LINK(SeparatorHdl, void * = 0);
diff --git a/sw/source/uibase/dbui/mailmergechildwindow.cxx b/sw/source/uibase/dbui/mailmergechildwindow.cxx
index ad16a82acf59..1a76bbb016a8 100644
--- a/sw/source/uibase/dbui/mailmergechildwindow.cxx
+++ b/sw/source/uibase/dbui/mailmergechildwindow.cxx
@@ -84,10 +84,9 @@ void SwMailMergeChildWin::dispose()
SfxFloatingWindow::dispose();
}
-IMPL_LINK_NOARG(SwMailMergeChildWin, BackHdl)
+IMPL_LINK_NOARG_TYPED(SwMailMergeChildWin, BackHdl, ToolBox *, void)
{
GetBindings().GetDispatcher()->Execute(FN_MAILMERGE_WIZARD, SfxCallMode::ASYNCHRON);
- return 0;
}
void SwMailMergeChildWin::FillInfo(SfxChildWinInfo& rInfo) const
diff --git a/sw/source/uibase/inc/inputwin.hxx b/sw/source/uibase/inc/inputwin.hxx
index fdb4a6f4fb69..6a1edfc684c4 100644
--- a/sw/source/uibase/inc/inputwin.hxx
+++ b/sw/source/uibase/inc/inputwin.hxx
@@ -75,7 +75,7 @@ protected:
virtual void Resize() SAL_OVERRIDE;
virtual void Click() SAL_OVERRIDE;
DECL_LINK( MenuHdl, Menu * );
- DECL_LINK( DropdownClickHdl, void* );
+ DECL_LINK_TYPED( DropdownClickHdl, ToolBox*, void );
void ApplyFormula();
void CancelFormula();
diff --git a/sw/source/uibase/inc/mailmergechildwindow.hxx b/sw/source/uibase/inc/mailmergechildwindow.hxx
index 742cb322437d..ade2a24c57cf 100644
--- a/sw/source/uibase/inc/mailmergechildwindow.hxx
+++ b/sw/source/uibase/inc/mailmergechildwindow.hxx
@@ -26,7 +26,7 @@
class SwMailMergeChildWin : public SfxFloatingWindow
{
VclPtr<ToolBox> m_pBackTB;
- DECL_LINK( BackHdl, void* );
+ DECL_LINK_TYPED( BackHdl, ToolBox*, void );
public:
SwMailMergeChildWin(SfxBindings*, SfxChildWindow*, vcl::Window *pParent);
diff --git a/sw/source/uibase/inc/navipi.hxx b/sw/source/uibase/inc/navipi.hxx
index c24e446a77fc..885a42348012 100644
--- a/sw/source/uibase/inc/navipi.hxx
+++ b/sw/source/uibase/inc/navipi.hxx
@@ -101,9 +101,9 @@ class SwNavigationPI : public vcl::Window,
void MakeMark();
DECL_LINK( DocListBoxSelectHdl, ListBox * );
- DECL_LINK( ToolBoxSelectHdl, ToolBox * );
- DECL_LINK( ToolBoxClickHdl, ToolBox * );
- DECL_LINK( ToolBoxDropdownClickHdl, ToolBox* );
+ DECL_LINK_TYPED( ToolBoxSelectHdl, ToolBox *, void );
+ DECL_LINK_TYPED( ToolBoxClickHdl, ToolBox *, void );
+ DECL_LINK_TYPED( ToolBoxDropdownClickHdl, ToolBox*, void );
DECL_LINK( EditAction, NumEditAction * );
DECL_LINK( EditGetFocus, NumEditAction * );
DECL_LINK( DoneLink, SfxPoolItem * );
diff --git a/sw/source/uibase/inc/workctrl.hxx b/sw/source/uibase/inc/workctrl.hxx
index 85c45282e6eb..65ea2c87fa9a 100644
--- a/sw/source/uibase/inc/workctrl.hxx
+++ b/sw/source/uibase/inc/workctrl.hxx
@@ -142,7 +142,7 @@ class SwScrollNaviPopup : public SfxPopupWindow
using Window::GetQuickHelpText;
protected:
- DECL_LINK(SelectHdl, ToolBox*);
+ DECL_LINK_TYPED(SelectHdl, ToolBox*, void);
virtual void DataChanged( const DataChangedEvent& rDCEvt ) SAL_OVERRIDE;
public:
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index c20543cdd59e..77fd2c321dbb 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -340,7 +340,7 @@ static const char * const aStrArr[] = {
return 0;
}
-IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl)
+IMPL_LINK_NOARG_TYPED(SwInputWindow, DropdownClickHdl, ToolBox *, void)
{
sal_uInt16 nCurID = GetCurItemId();
EndSelection(); // reset back CurItemId !
@@ -354,8 +354,6 @@ IMPL_LINK_NOARG(SwInputWindow, DropdownClickHdl)
break;
}
}
-
- return sal_True;
}
void SwInputWindow::Click( )
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 9bae5285d1d7..18d6342c8694 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -482,7 +482,7 @@ VclPtr<SfxPopupWindow> SwScrollNaviPopup::Clone() const
return VclPtr<SwScrollNaviPopup>::Create( GetId(), GetFrame(), GetParent() );
}
-IMPL_LINK(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet)
+IMPL_LINK_TYPED(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet, void)
{
sal_uInt16 nSet = pSet->GetCurItemId();
if( nSet != NID_PREV && nSet != NID_NEXT )
@@ -507,7 +507,6 @@ IMPL_LINK(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet)
SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( GetFrame()->getController(), UNO_QUERY ),
cmd, aArgs );
}
- return 0;
}
SwScrollNaviToolBox::~SwScrollNaviToolBox()
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
index a4b11c9ae026..73bf32b90ee8 100644
--- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx
+++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx
@@ -237,7 +237,7 @@ void PagePropertyPanel::Initialize()
{
// popup for page orientation
const sal_uInt16 nIdOrientation = mpToolBoxOrientation->GetItemId(UNO_ORIENTATION);
- Link<> aLink = LINK( this, PagePropertyPanel, ClickOrientationHdl );
+ Link<ToolBox *, void> aLink = LINK( this, PagePropertyPanel, ClickOrientationHdl );
mpToolBoxOrientation->SetDropdownClickHdl( aLink );
mpToolBoxOrientation->SetSelectHdl( aLink );
mpToolBoxOrientation->SetItemImage( nIdOrientation, mImgPortrait);
@@ -300,11 +300,9 @@ VclPtr< svx::sidebar::PopupControl> PagePropertyPanel::CreatePageOrientationCont
return VclPtr<PageOrientationControl>::Create( pParent, *this , mpPageItem->IsLandscape() );
}
-IMPL_LINK( PagePropertyPanel, ClickOrientationHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickOrientationHdl, ToolBox*, pToolBox, void )
{
maOrientationPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ExecuteOrientationChange( const bool bLandscape )
@@ -411,11 +409,9 @@ void PagePropertyPanel::ExecutePageLayoutChange( const bool bMirrored )
GetBindings()->GetDispatcher()->Execute( SID_ATTR_PAGE, SfxCallMode::RECORD, mpPageItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickMarginHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickMarginHdl, ToolBox*, pToolBox, void )
{
maMarginPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageMarginPopup()
@@ -446,11 +442,9 @@ void PagePropertyPanel::ExecuteSizeChange( const Paper ePaper )
mpBindings->GetDispatcher()->Execute(SID_ATTR_PAGE_SIZE, SfxCallMode::RECORD, mpPageSizeItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickSizeHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickSizeHdl, ToolBox*, pToolBox, void )
{
maSizePopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageSizePopup()
@@ -474,11 +468,9 @@ void PagePropertyPanel::ExecuteColumnChange( const sal_uInt16 nColumnType )
mpBindings->GetDispatcher()->Execute(SID_ATTR_PAGE_COLUMN, SfxCallMode::RECORD, mpPageColumnTypeItem.get(), 0L );
}
-IMPL_LINK( PagePropertyPanel, ClickColumnHdl, ToolBox*, pToolBox )
+IMPL_LINK_TYPED( PagePropertyPanel, ClickColumnHdl, ToolBox*, pToolBox, void )
{
maColumnPopup.Show( *pToolBox );
-
- return 0L;
}
void PagePropertyPanel::ClosePageColumnPopup()
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.hxx b/sw/source/uibase/sidebar/PagePropertyPanel.hxx
index 81721360d0bc..7951a01cad8a 100644
--- a/sw/source/uibase/sidebar/PagePropertyPanel.hxx
+++ b/sw/source/uibase/sidebar/PagePropertyPanel.hxx
@@ -200,10 +200,10 @@ namespace sw { namespace sidebar {
bool mbInvalidateSIDAttrPageOnSIDAttrPageSizeNotify;
// handler for popup toolboxes to show the popups
- DECL_LINK(ClickOrientationHdl, ToolBox* );
- DECL_LINK(ClickMarginHdl, ToolBox* );
- DECL_LINK(ClickSizeHdl, ToolBox* );
- DECL_LINK(ClickColumnHdl, ToolBox* );
+ DECL_LINK_TYPED(ClickOrientationHdl, ToolBox*, void);
+ DECL_LINK_TYPED(ClickMarginHdl, ToolBox*, void);
+ DECL_LINK_TYPED(ClickSizeHdl, ToolBox*, void);
+ DECL_LINK_TYPED(ClickColumnHdl, ToolBox*, void);
void Initialize();
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx
index 1c99755c8408..5a351fa79e75 100644
--- a/sw/source/uibase/utlui/navipi.cxx
+++ b/sw/source/uibase/utlui/navipi.cxx
@@ -196,12 +196,12 @@ void SwNavigationPI::UsePage(SwWrtShell *pSh)
// Select handler of the toolboxes
-IMPL_LINK( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox )
+IMPL_LINK_TYPED( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox, void )
{
const sal_uInt16 nCurrItemId = pBox->GetCurItemId();
SwView *pView = GetCreateView();
if (!pView)
- return 1;
+ return;
SwWrtShell &rSh = pView->GetWrtShell();
// Get MouseModifier for Outline-Move
@@ -238,7 +238,7 @@ IMPL_LINK( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox )
_ZoomIn();
}
}
- return sal_True;
+ return;
// Functions that will trigger a direct action.
case FN_SELECT_FOOTER:
@@ -330,12 +330,11 @@ IMPL_LINK( SwNavigationPI, ToolBoxSelectHdl, ToolBox *, pBox )
}
if(bFocusToDoc)
pView->GetEditWin().GrabFocus();
- return sal_True;
}
// Click handler of the toolboxes
-IMPL_LINK( SwNavigationPI, ToolBoxClickHdl, ToolBox *, pBox )
+IMPL_LINK_TYPED( SwNavigationPI, ToolBoxClickHdl, ToolBox *, pBox, void )
{
const sal_uInt16 nCurrItemId = pBox->GetCurItemId();
switch (nCurrItemId)
@@ -347,11 +346,9 @@ IMPL_LINK( SwNavigationPI, ToolBoxClickHdl, ToolBox *, pBox )
}
break;
}
-
- return sal_True;
}
-IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox )
+IMPL_LINK_TYPED( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox, void )
{
const sal_uInt16 nCurrItemId = pBox->GetCurItemId();
switch (nCurrItemId)
@@ -409,7 +406,6 @@ IMPL_LINK( SwNavigationPI, ToolBoxDropdownClickHdl, ToolBox*, pBox )
}
break;
}
- return sal_True;
}
SwNavHelpToolBox::SwNavHelpToolBox(SwNavigationPI* pParent, const ResId &rResId) :
@@ -780,7 +776,7 @@ SwNavigationPI::SwNavigationPI( SfxBindings* _pBindings,
// Handler
- Link<> aLk = LINK(this, SwNavigationPI, ToolBoxSelectHdl);
+ Link<ToolBox *, void> aLk = LINK(this, SwNavigationPI, ToolBoxSelectHdl);
aContentToolBox->SetSelectHdl( aLk );
aGlobalToolBox->SetSelectHdl( aLk );
aDocListBox->SetSelectHdl(LINK(this, SwNavigationPI,
diff --git a/vcl/inc/toolbox.h b/vcl/inc/toolbox.h
index 71e841eb5491..57e3081203c3 100644
--- a/vcl/inc/toolbox.h
+++ b/vcl/inc/toolbox.h
@@ -129,7 +129,7 @@ struct ImplToolBoxPrivateData
void ImplClearLayoutData() { delete m_pLayoutData; m_pLayoutData = NULL; }
// called when dropdown items are clicked
- Link<> maDropdownClickHdl;
+ Link<ToolBox *, void> maDropdownClickHdl;
Timer maDropdownTimer; // for opening dropdown items on "long click"
// large or small buttons ?
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 8c21f8423349..9acf9f742e7e 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -226,10 +226,10 @@ Size MenuBarWindow::MinCloseButtonSize()
return aCloseBtn->getMinSize();
}
-IMPL_LINK_NOARG(MenuBarWindow, CloseHdl)
+IMPL_LINK_NOARG_TYPED(MenuBarWindow, CloseHdl, ToolBox *, void)
{
if( ! pMenu )
- return 0;
+ return;
if( aCloseBtn->GetCurItemId() == IID_DOCUMENTCLOSE )
{
@@ -247,10 +247,9 @@ IMPL_LINK_NOARG(MenuBarWindow, CloseHdl)
aArg.nId = it->first;
aArg.bHighlight = (aCloseBtn->GetHighlightItemId() == it->first);
aArg.pMenuBar = dynamic_cast<MenuBar*>(pMenu);
- return it->second.m_aSelectLink.Call( &aArg );
+ it->second.m_aSelectLink.Call( &aArg );
}
}
- return 0;
}
IMPL_LINK( MenuBarWindow, ToolboxEventHdl, VclWindowEvent*, pEvent )
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index 3f10c6303954..5a6f2e92f7ec 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -97,7 +97,7 @@ private:
void ImplInitStyleSettings();
- DECL_LINK(CloseHdl, void *);
+ DECL_LINK_TYPED(CloseHdl, ToolBox *, void);
DECL_LINK(FloatHdl, void *);
DECL_LINK(HideHdl, void *);
DECL_LINK( ToolboxEventHdl, VclWindowEvent* );
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 5c0c54116aeb..adc41ecfb9e1 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2639,7 +2639,7 @@ IMPL_LINK_NOARG_TYPED(ToolBox, ImplDropdownLongClickHdl, Timer *, void)
)
{
mpData->mbDropDownByKeyboard = false;
- GetDropdownClickHdl().Call( this );
+ mpData->maDropdownClickHdl.Call( this );
// do not reset data if the dropdown handler opened a floating window
// see ImplFloatControl()
@@ -3869,7 +3869,7 @@ void ToolBox::MouseButtonDown( const MouseEvent& rMEvt )
// the drop down arrow should not trigger the item action
mpData->mbDropDownByKeyboard = false;
- GetDropdownClickHdl().Call( this );
+ mpData->maDropdownClickHdl.Call( this );
// do not reset data if the dropdown handler opened a floating window
// see ImplFloatControl()
@@ -5024,7 +5024,7 @@ bool ToolBox::ImplOpenItem( vcl::KeyCode aKeyCode )
Activate();
mpData->mbDropDownByKeyboard = true;
- GetDropdownClickHdl().Call( this );
+ mpData->maDropdownClickHdl.Call( this );
mbIsKeyEvent = false;
mbIsShift = false;
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index a743f6c1b31f..4d3c80186d49 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1717,16 +1717,11 @@ long ToolBox::GetIndexForPoint( const Point& rPoint, sal_uInt16& rItemID ) const
return nIndex;
}
-void ToolBox::SetDropdownClickHdl( const Link<>& rLink )
+void ToolBox::SetDropdownClickHdl( const Link<ToolBox *, void>& rLink )
{
mpData->maDropdownClickHdl = rLink;
}
-const Link<>& ToolBox::GetDropdownClickHdl() const
-{
- return mpData->maDropdownClickHdl;
-}
-
void ToolBox::SetMenuType( sal_uInt16 aType )
{
if( aType != mpData->maMenuType )