summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basctl/source/basicide/moduldlg.cxx3
-rw-r--r--basctl/source/basicide/moduldlg.hxx2
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx3
-rw-r--r--extensions/source/propctrlr/propertyeditor.hxx4
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.cxx5
-rw-r--r--filter/source/xsltdialog/xmlfiltertabdialog.hxx2
-rw-r--r--framework/inc/classes/fwktabwindow.hxx2
-rw-r--r--framework/inc/tabwin/tabwindow.hxx2
-rw-r--r--framework/source/classes/fwktabwindow.cxx3
-rw-r--r--framework/source/tabwin/tabwindow.cxx4
-rw-r--r--include/sfx2/tabdlg.hxx4
-rw-r--r--include/sfx2/templatedlg.hxx2
-rw-r--r--include/vcl/tabctrl.hxx8
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.cxx3
-rw-r--r--sd/source/ui/animations/CustomAnimationCreateDialog.hxx4
-rw-r--r--sd/source/ui/dlg/headerfooterdlg.cxx4
-rw-r--r--sd/source/ui/inc/headerfooterdlg.hxx2
-rw-r--r--sfx2/source/appl/newhelp.cxx3
-rw-r--r--sfx2/source/appl/newhelp.hxx2
-rw-r--r--sfx2/source/dialog/tabdlg.cxx12
-rw-r--r--sfx2/source/doc/templatedlg.cxx4
-rw-r--r--svx/source/form/datanavi.cxx4
-rw-r--r--svx/source/inc/datanavi.hxx2
-rw-r--r--vcl/generic/print/prtsetup.cxx6
-rw-r--r--vcl/generic/print/prtsetup.hxx2
25 files changed, 38 insertions, 54 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index d82e4c196ee7..545e178d2e8f 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -510,7 +510,7 @@ short OrganizeDialog::Execute()
}
-IMPL_LINK( OrganizeDialog, ActivatePageHdl, TabControl *, pTabCtrl )
+IMPL_LINK_TYPED( OrganizeDialog, ActivatePageHdl, TabControl *, pTabCtrl, void )
{
sal_uInt16 nId = pTabCtrl->GetCurPageId();
@@ -545,7 +545,6 @@ IMPL_LINK( OrganizeDialog, ActivatePageHdl, TabControl *, pTabCtrl )
DBG_ASSERT( pNewTabPage, "Keine Page!" );
pTabCtrl->SetTabPage( nId, pNewTabPage );
}
- return 0;
}
diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx
index 61400d2b7e31..b4505b32ee28 100644
--- a/basctl/source/basicide/moduldlg.hxx
+++ b/basctl/source/basicide/moduldlg.hxx
@@ -178,7 +178,7 @@ public:
virtual short Execute() SAL_OVERRIDE;
- DECL_LINK( ActivatePageHdl, TabControl * );
+ DECL_LINK_TYPED( ActivatePageHdl, TabControl*, void );
};
class ObjectPage: public TabPage
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index 60f72f4c980a..126ee9284956 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -509,11 +509,10 @@ namespace pcr
}
- IMPL_LINK_NOARG(OPropertyEditor, OnPageActivate)
+ IMPL_LINK_NOARG_TYPED(OPropertyEditor, OnPageActivate, TabControl*, void)
{
if (m_aPageActivationHandler.IsSet())
m_aPageActivationHandler.Call(NULL);
- return 0L;
}
diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx
index e202095b47a9..7d457ce2855d 100644
--- a/extensions/source/propctrlr/propertyeditor.hxx
+++ b/extensions/source/propctrlr/propertyeditor.hxx
@@ -137,8 +137,8 @@ namespace pcr
void setHelpLineLimits( OBrowserPage& _rPage, const void* );
protected:
- DECL_LINK_TYPED(OnPageDeactivate, TabControl *, bool);
- DECL_LINK(OnPageActivate, void *);
+ DECL_LINK_TYPED(OnPageDeactivate, TabControl*, bool);
+ DECL_LINK_TYPED(OnPageActivate, TabControl*, void);
};
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.cxx b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
index 0f63a5858967..0d39fdd42aca 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.cxx
@@ -292,14 +292,11 @@ IMPL_LINK_NOARG_TYPED(XMLFilterTabDialog, OkHdl, Button*, void)
-IMPL_STATIC_LINK(
- XMLFilterTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
+IMPL_STATIC_LINK_TYPED( XMLFilterTabDialog, ActivatePageHdl, TabControl *, pTabCtrl, void )
{
const sal_uInt16 nId = pTabCtrl->GetCurPageId();
TabPage* pTabPage = pTabCtrl->GetTabPage( nId );
pTabPage->Show();
-
- return 0;
}
diff --git a/filter/source/xsltdialog/xmlfiltertabdialog.hxx b/filter/source/xsltdialog/xmlfiltertabdialog.hxx
index 616ec5485816..1ef0a6a49d9d 100644
--- a/filter/source/xsltdialog/xmlfiltertabdialog.hxx
+++ b/filter/source/xsltdialog/xmlfiltertabdialog.hxx
@@ -45,7 +45,7 @@ public:
private:
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext;
- DECL_STATIC_LINK( XMLFilterTabDialog, ActivatePageHdl, TabControl * );
+ DECL_STATIC_LINK_TYPED( XMLFilterTabDialog, ActivatePageHdl, TabControl*, void );
DECL_LINK_TYPED(OkHdl, Button*, void);
ResMgr& mrResMgr;
diff --git a/framework/inc/classes/fwktabwindow.hxx b/framework/inc/classes/fwktabwindow.hxx
index 133782c22ef8..92976b8f304e 100644
--- a/framework/inc/classes/fwktabwindow.hxx
+++ b/framework/inc/classes/fwktabwindow.hxx
@@ -104,7 +104,7 @@ private:
TabEntry* FindEntry( sal_Int32 nIndex ) const;
bool RemoveEntry( sal_Int32 nIndex );
- DECL_DLLPRIVATE_LINK(ActivatePageHdl, void *);
+ DECL_DLLPRIVATE_LINK_TYPED(ActivatePageHdl, TabControl *, void);
DECL_DLLPRIVATE_LINK_TYPED(DeactivatePageHdl, TabControl *, bool);
public:
diff --git a/framework/inc/tabwin/tabwindow.hxx b/framework/inc/tabwin/tabwindow.hxx
index 9bdc6a827b21..ef01faaa1783 100644
--- a/framework/inc/tabwin/tabwindow.hxx
+++ b/framework/inc/tabwin/tabwindow.hxx
@@ -109,7 +109,7 @@ class TabWindow : public ::com::sun::star::lang::XTypeProvider ,
virtual void SAL_CALL windowHidden( const css::lang::EventObject& aEvent ) throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
protected:
- DECL_LINK( Activate, TabControl* );
+ DECL_LINK_TYPED( Activate, TabControl*, void );
DECL_LINK_TYPED( Deactivate, TabControl*, bool );
private:
diff --git a/framework/source/classes/fwktabwindow.cxx b/framework/source/classes/fwktabwindow.cxx
index e6cc7e3a03df..b74c8203371c 100644
--- a/framework/source/classes/fwktabwindow.cxx
+++ b/framework/source/classes/fwktabwindow.cxx
@@ -256,7 +256,7 @@ TabEntry* FwkTabWindow::FindEntry( sal_Int32 nIndex ) const
return pEntry;
}
-IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
+IMPL_LINK_NOARG_TYPED(FwkTabWindow, ActivatePageHdl, TabControl*, void)
{
const sal_uInt16 nId = m_aTabCtrl->GetCurPageId();
FwkTabPage* pTabPage = static_cast< FwkTabPage* >( m_aTabCtrl->GetTabPage( nId ) );
@@ -275,7 +275,6 @@ IMPL_LINK_NOARG(FwkTabWindow, ActivatePageHdl)
pTabPage->ActivatePage();
}
m_aTabCtrl->BroadcastEvent( VCLEVENT_TABPAGE_ACTIVATE );
- return 1;
}
IMPL_LINK_NOARG_TYPED(FwkTabWindow, DeactivatePageHdl, TabControl *, bool)
diff --git a/framework/source/tabwin/tabwindow.cxx b/framework/source/tabwin/tabwindow.cxx
index 245de85a1485..fedbd743227a 100644
--- a/framework/source/tabwin/tabwindow.cxx
+++ b/framework/source/tabwin/tabwindow.cxx
@@ -226,7 +226,7 @@ void TabWindow::implts_SendNotification( Notification eNotify, sal_Int32 ID, con
// Links
-IMPL_LINK( TabWindow, Activate, TabControl*, pTabControl )
+IMPL_LINK_TYPED( TabWindow, Activate, TabControl*, pTabControl, void )
{
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
SolarMutexClearableGuard aLock;
@@ -239,8 +239,6 @@ IMPL_LINK( TabWindow, Activate, TabControl*, pTabControl )
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
implts_SendNotification( NOTIFY_ACTIVATED, nPageId );
-
- return 1;
}
IMPL_LINK_TYPED( TabWindow, Deactivate, TabControl*, pTabControl, bool )
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index 3f5fa9949501..603b1bd4d110 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -89,8 +89,8 @@ friend class SfxTabDialogController;
bool bItemsReset;
bool bStandardPushed;
- DECL_DLLPRIVATE_LINK(ActivatePageHdl, TabControl * );
- DECL_DLLPRIVATE_LINK_TYPED(DeactivatePageHdl, TabControl *, bool );
+ DECL_DLLPRIVATE_LINK_TYPED(ActivatePageHdl, TabControl*, void );
+ DECL_DLLPRIVATE_LINK_TYPED(DeactivatePageHdl, TabControl*, bool );
DECL_DLLPRIVATE_LINK_TYPED(OkHdl, Button*, void);
DECL_DLLPRIVATE_LINK_TYPED(ResetHdl, Button*, void);
DECL_DLLPRIVATE_LINK_TYPED(BaseFmtHdl, Button*, void);
diff --git a/include/sfx2/templatedlg.hxx b/include/sfx2/templatedlg.hxx
index 9272c9088efc..ceb96c211106 100644
--- a/include/sfx2/templatedlg.hxx
+++ b/include/sfx2/templatedlg.hxx
@@ -57,7 +57,7 @@ public:
void setDocumentModel (const com::sun::star::uno::Reference<com::sun::star::frame::XModel> &rModel);
- DECL_LINK(ActivatePageHdl, void*);
+ DECL_LINK_TYPED(ActivatePageHdl, TabControl*, void);
private:
diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx
index cf6135e7a411..69e488692766 100644
--- a/include/vcl/tabctrl.hxx
+++ b/include/vcl/tabctrl.hxx
@@ -58,8 +58,8 @@ private:
bool mbRestoreUnqId;
bool mbSmallInvalidate;
bool mbLayoutDirty;
- Link<> maActivateHdl;
- Link<TabControl *, bool> maDeactivateHdl;
+ Link<TabControl*,void> maActivateHdl;
+ Link<TabControl*,bool> maDeactivateHdl;
using Control::ImplInitSettings;
SAL_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
@@ -161,8 +161,8 @@ public:
const OString& GetHelpId() const
{ return Control::GetHelpId(); }
- void SetActivatePageHdl( const Link<>& rLink ) { maActivateHdl = rLink; }
- void SetDeactivatePageHdl( const Link<TabControl *, bool>& rLink ) { maDeactivateHdl = rLink; }
+ void SetActivatePageHdl( const Link<TabControl*,void>& rLink ) { maActivateHdl = rLink; }
+ void SetDeactivatePageHdl( const Link<TabControl*, bool>& rLink ) { maDeactivateHdl = rLink; }
// returns (control relative) bounding rectangle for the
// character at index nIndex relative to the text of page nPageId
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
index db86cd5d31ff..169c774f01af 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx
@@ -589,11 +589,10 @@ double CustomAnimationCreateDialog::getSelectedDuration() const
return getCurrentPage()->getDuration();
}
-IMPL_LINK_NOARG(CustomAnimationCreateDialog, implActivatePagekHdl)
+IMPL_LINK_NOARG_TYPED(CustomAnimationCreateDialog, implActivatePagekHdl, TabControl*, void)
{
getCurrentPage()->setDuration( mfDuration );
getCurrentPage()->setIsPreview( mbIsPreview );
- return 1;
}
IMPL_LINK_NOARG_TYPED(CustomAnimationCreateDialog, implDeactivatePagekHdl, TabControl *, bool)
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.hxx b/sd/source/ui/animations/CustomAnimationCreateDialog.hxx
index 9b8ec8585607..4ad4d5932c46 100644
--- a/sd/source/ui/animations/CustomAnimationCreateDialog.hxx
+++ b/sd/source/ui/animations/CustomAnimationCreateDialog.hxx
@@ -53,8 +53,8 @@ private:
void setPosition();
void storePosition();
- DECL_LINK(implActivatePagekHdl, void *);
- DECL_LINK_TYPED(implDeactivatePagekHdl, TabControl *, bool);
+ DECL_LINK_TYPED(implActivatePagekHdl, TabControl*, void);
+ DECL_LINK_TYPED(implDeactivatePagekHdl, TabControl*, bool);
private:
VclPtr<CustomAnimationPane> mpPane;
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 79ce991a6dbd..9a9c382e4412 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -255,15 +255,13 @@ void HeaderFooterDialog::dispose()
TabDialog::dispose();
}
-IMPL_LINK( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl )
+IMPL_LINK_TYPED( HeaderFooterDialog, ActivatePageHdl, TabControl *, pTabCtrl, void )
{
const sal_uInt16 nId = pTabCtrl->GetCurPageId();
TabPage* pTabPage = pTabCtrl->GetTabPage( nId );
pTabPage->Show();
maPBApply->Show( nId == mnSlidesId );
maPBApply->Enable( mpCurrentPage != NULL );
-
- return 0;
}
IMPL_LINK_NOARG_TYPED(HeaderFooterDialog, ClickApplyToAllHdl, Button*, void)
diff --git a/sd/source/ui/inc/headerfooterdlg.hxx b/sd/source/ui/inc/headerfooterdlg.hxx
index 8a1d4fd5c7f9..f6161c58ec3b 100644
--- a/sd/source/ui/inc/headerfooterdlg.hxx
+++ b/sd/source/ui/inc/headerfooterdlg.hxx
@@ -37,7 +37,7 @@ class HeaderFooterTabPage;
class HeaderFooterDialog : public TabDialog
{
private:
- DECL_LINK( ActivatePageHdl, TabControl * );
+ DECL_LINK_TYPED( ActivatePageHdl, TabControl*, void );
DECL_LINK_TYPED( ClickApplyToAllHdl, Button*, void );
DECL_LINK_TYPED( ClickApplyHdl, Button*, void );
DECL_LINK_TYPED( ClickCancelHdl, Button*, void );
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index f2106fc9d2ac..00ef0bc5b7f6 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1582,12 +1582,11 @@ HelpTabPage_Impl* SfxHelpIndexWindow_Impl::GetCurrentPage( sal_uInt16& rCurId )
return pPage;
}
-IMPL_LINK( SfxHelpIndexWindow_Impl, ActivatePageHdl, TabControl *, pTabCtrl )
+IMPL_LINK_TYPED( SfxHelpIndexWindow_Impl, ActivatePageHdl, TabControl *, pTabCtrl, void )
{
sal_uInt16 nId = 0;
TabPage* pPage = GetCurrentPage( nId );
pTabCtrl->SetTabPage( nId, pPage );
- return 0;
}
IMPL_LINK_NOARG(SfxHelpIndexWindow_Impl, SelectHdl)
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 0d08861074ba..fd5e3d67404b 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -313,7 +313,7 @@ private:
inline SearchTabPage_Impl* GetSearchPage();
inline BookmarksTabPage_Impl* GetBookmarksPage();
- DECL_LINK( ActivatePageHdl, TabControl* );
+ DECL_LINK_TYPED(ActivatePageHdl, TabControl*, void );
DECL_LINK(SelectHdl, void *);
DECL_LINK_TYPED(InitHdl, Idle *, void);
DECL_LINK_TYPED(SelectFactoryHdl, Idle *, void);
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index d19a2abfa9b0..26a97b624639 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -1094,7 +1094,7 @@ IMPL_LINK_NOARG_TYPED(SfxTabDialog, BaseFmtHdl, Button*, void)
-IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
+IMPL_LINK_TYPED( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl, void )
/* [Description]
@@ -1127,7 +1127,7 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
if (!pDataObject)
{
SAL_WARN("sfx.config", "Tab Page ID not known, this is pretty serious and needs investigation");
- return 0;
+ return;
}
// Create TabPage if possible:
@@ -1189,9 +1189,11 @@ IMPL_LINK( SfxTabDialog, ActivatePageHdl, TabControl *, pTabCtrl )
if ( pExampleSet )
pTabPage->ActivatePage( *pExampleSet );
- bool bReadOnly = pTabPage->IsReadOnly();
- ( bReadOnly || pImpl->bHideResetBtn ) ? m_pResetBtn->Hide() : m_pResetBtn->Show();
- return 0;
+
+ if ( pTabPage->IsReadOnly() || pImpl->bHideResetBtn )
+ m_pResetBtn->Hide();
+ else
+ m_pResetBtn->Show();
}
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index ae677b17cb25..94b6bd706db2 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -383,15 +383,13 @@ FILTER_APPLICATION SfxTemplateManagerDlg::getCurrentFilter()
return FILTER_APPLICATION::NONE;
}
-IMPL_LINK_NOARG(SfxTemplateManagerDlg,ActivatePageHdl)
+IMPL_LINK_NOARG_TYPED(SfxTemplateManagerDlg, ActivatePageHdl, TabControl*, void)
{
mpCurView->filterItems(ViewFilter_Application(getCurrentFilter()));
mpCurView->showRootRegion(); // fdo#60586 show the root region of the applied filter
if (mpSearchView->IsVisible())
SearchUpdateHdl(NULL);
-
- return 0;
}
void SfxTemplateManagerDlg::readSettings ()
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 164805583556..875e9282c35e 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -1799,7 +1799,7 @@ namespace svxform
return 0;
}
- IMPL_LINK_NOARG(DataNavigatorWindow, ActivatePageHdl)
+ IMPL_LINK_NOARG_TYPED(DataNavigatorWindow, ActivatePageHdl, TabControl*, void)
{
sal_uInt16 nId = 0;
XFormsPage* pPage = GetCurrentPage( nId );
@@ -1809,8 +1809,6 @@ namespace svxform
if ( m_xDataContainer.is() && !pPage->HasModel() )
SetPageModel();
}
-
- return 0;
}
IMPL_LINK_NOARG_TYPED(DataNavigatorWindow, UpdateHdl, Timer *, void)
diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx
index 88e8d7d4cf16..a6e82f9d7413 100644
--- a/svx/source/inc/datanavi.hxx
+++ b/svx/source/inc/datanavi.hxx
@@ -350,7 +350,7 @@ namespace svxform
DECL_LINK( ModelSelectHdl, ListBox * );
DECL_LINK_TYPED( MenuSelectHdl, MenuButton *, void );
DECL_LINK( MenuActivateHdl, MenuButton * );
- DECL_LINK(ActivatePageHdl, void *);
+ DECL_LINK_TYPED(ActivatePageHdl, TabControl*, void);
DECL_LINK_TYPED(UpdateHdl, Timer *, void);
XFormsPage* GetCurrentPage( sal_uInt16& rCurId );
diff --git a/vcl/generic/print/prtsetup.cxx b/vcl/generic/print/prtsetup.cxx
index 8e06a6f3a54a..ac21de6c06fa 100644
--- a/vcl/generic/print/prtsetup.cxx
+++ b/vcl/generic/print/prtsetup.cxx
@@ -107,10 +107,10 @@ void RTSDialog::dispose()
TabDialog::dispose();
}
-IMPL_LINK( RTSDialog, ActivatePage, TabControl*, pTabCtrl )
+IMPL_LINK_TYPED( RTSDialog, ActivatePage, TabControl*, pTabCtrl, void )
{
if( pTabCtrl != m_pTabControl )
- return 0;
+ return;
sal_uInt16 nId = m_pTabControl->GetCurPageId();
OString sPage = m_pTabControl->GetPageName(nId);
@@ -129,8 +129,6 @@ IMPL_LINK( RTSDialog, ActivatePage, TabControl*, pTabCtrl )
if (sPage == "paper")
m_pPaperPage->update();
}
-
- return 0;
}
IMPL_LINK_TYPED( RTSDialog, ClickButton, Button*, pButton, void )
diff --git a/vcl/generic/print/prtsetup.hxx b/vcl/generic/print/prtsetup.hxx
index a9da270408cc..5e35f60ce57b 100644
--- a/vcl/generic/print/prtsetup.hxx
+++ b/vcl/generic/print/prtsetup.hxx
@@ -58,7 +58,7 @@ class RTSDialog : public TabDialog
bool mbDataModified;
- DECL_LINK( ActivatePage, TabControl* );
+ DECL_LINK_TYPED( ActivatePage, TabControl*, void );
DECL_LINK_TYPED( ClickButton, Button*, void );
// helper functions