summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-10 14:39:17 +0200
committerNoel Grandin <noel@peralex.com>2015-09-11 08:48:54 +0200
commitcf0c04a428754dfd5aa477cebc5441bc74e27005 (patch)
tree6d4657ec370a3378887745b34d217a91bdab2eef /sc
parente8ee8473361f09034fdcd4f30a2325a53a512a7a (diff)
convert Link<> to typed
Change-Id: I85658fa35b9b85106a3b9c8ef303584cad6f39b0
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/condformat/condformatmgr.cxx6
-rw-r--r--sc/source/ui/inc/condformatmgr.hxx2
-rw-r--r--sc/source/ui/inc/content.hxx2
-rw-r--r--sc/source/ui/inc/solveroptions.hxx2
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx4
-rw-r--r--sc/source/ui/navipi/content.cxx6
6 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/condformat/condformatmgr.cxx b/sc/source/ui/condformat/condformatmgr.cxx
index 0b0ab2ed1d80..882cec04d277 100644
--- a/sc/source/ui/condformat/condformatmgr.cxx
+++ b/sc/source/ui/condformat/condformatmgr.cxx
@@ -165,16 +165,16 @@ IMPL_LINK_NOARG_TYPED(ScCondFormatManagerDlg, EditBtnClickHdl, Button*, void)
{
EditBtnHdl(nullptr);
}
-IMPL_LINK_NOARG(ScCondFormatManagerDlg, EditBtnHdl)
+IMPL_LINK_NOARG_TYPED(ScCondFormatManagerDlg, EditBtnHdl, SvTreeListBox*, bool)
{
ScConditionalFormat* pFormat = m_pCtrlManager->GetSelection();
if(!pFormat)
- return 0;
+ return false;
EndDialog( DLG_RET_EDIT );
- return 0;
+ return false;
}
IMPL_LINK_NOARG_TYPED(ScCondFormatManagerDlg, AddBtnHdl, Button*, void)
diff --git a/sc/source/ui/inc/condformatmgr.hxx b/sc/source/ui/inc/condformatmgr.hxx
index a72e6a20c852..f581daf7eaa6 100644
--- a/sc/source/ui/inc/condformatmgr.hxx
+++ b/sc/source/ui/inc/condformatmgr.hxx
@@ -70,7 +70,7 @@ private:
DECL_LINK_TYPED(RemoveBtnHdl, Button*, void);
DECL_LINK_TYPED(EditBtnClickHdl, Button*, void);
DECL_LINK_TYPED(AddBtnHdl, Button*, void);
- DECL_LINK(EditBtnHdl, void*);
+ DECL_LINK_TYPED(EditBtnHdl, SvTreeListBox*, bool);
bool mbModified;
};
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx
index ecd4f0c53feb..9a01602c7d30 100644
--- a/sc/source/ui/inc/content.hxx
+++ b/sc/source/ui/inc/content.hxx
@@ -102,7 +102,7 @@ class ScContentTree : public SvTreeListBox
ScDocument* GetSourceDocument();
- DECL_LINK( ContentDoubleClickHdl, void* );
+ DECL_LINK_TYPED( ContentDoubleClickHdl, SvTreeListBox*, bool );
DECL_LINK_TYPED( ExecDragHdl, void*, void );
public:
SvTreeListEntry* pTmpEntry;
diff --git a/sc/source/ui/inc/solveroptions.hxx b/sc/source/ui/inc/solveroptions.hxx
index 230bfa2d2c61..c2bcbb4c6b7b 100644
--- a/sc/source/ui/inc/solveroptions.hxx
+++ b/sc/source/ui/inc/solveroptions.hxx
@@ -47,7 +47,7 @@ class ScSolverOptionsDialog : public ModalDialog
DECL_LINK( EngineSelectHdl, void* );
DECL_LINK_TYPED( SettingsSelHdl, SvTreeListBox*, void );
- DECL_LINK( SettingsDoubleClickHdl, void* );
+ DECL_LINK_TYPED( SettingsDoubleClickHdl, SvTreeListBox*, bool );
DECL_LINK_TYPED( ButtonHdl, Button*, void );
void ReadFromComponent();
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index 9df9f459ed7f..c6ed2a3a5d2d 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -355,10 +355,10 @@ IMPL_LINK_TYPED( ScSolverOptionsDialog, ButtonHdl, Button*, pBtn, void )
EditOption();
}
-IMPL_LINK_NOARG(ScSolverOptionsDialog, SettingsDoubleClickHdl)
+IMPL_LINK_NOARG_TYPED(ScSolverOptionsDialog, SettingsDoubleClickHdl, SvTreeListBox*, bool)
{
EditOption();
- return 0;
+ return false;
}
IMPL_LINK_NOARG(ScSolverOptionsDialog, EngineSelectHdl)
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index a85e24073453..c85f30516256 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -349,7 +349,7 @@ static OUString lcl_GetDBAreaRange( ScDocument* pDoc, const OUString& rDBName )
return aRet;
}
-IMPL_LINK_NOARG(ScContentTree, ContentDoubleClickHdl)
+IMPL_LINK_NOARG_TYPED(ScContentTree, ContentDoubleClickHdl, SvTreeListBox*, bool)
{
sal_uInt16 nType;
sal_uLong nChild;
@@ -359,7 +359,7 @@ IMPL_LINK_NOARG(ScContentTree, ContentDoubleClickHdl)
if( pEntry && (nType != SC_CONTENT_ROOT) && (nChild != SC_CONTENT_NOCHILD) )
{
if ( bHiddenDoc )
- return 0; //! spaeter...
+ return false; //! spaeter...
OUString aText( GetEntryText( pEntry ) );
@@ -419,7 +419,7 @@ IMPL_LINK_NOARG(ScContentTree, ContentDoubleClickHdl)
ScNavigatorDlg::ReleaseFocus(); // set focus into document
}
- return 0;
+ return false;
}
void ScContentTree::MouseButtonDown( const MouseEvent& rMEvt )