summaryrefslogtreecommitdiff
path: root/cui/source/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-17 12:44:05 +0200
committerNoel Grandin <noel@peralex.com>2015-09-17 14:41:57 +0200
commit50b1184600abf47ac56b539489c166e63b7b544e (patch)
tree2f59e9fc4e891acca8be5d8cd71f21bc2dd6cf1d /cui/source/inc
parenta86bc66f26cb85e132492d3e826ff396627769cc (diff)
convert Link<> to typed
Change-Id: I2ceffbec44facc4b40c69ebb3f6d52f181bf0177
Diffstat (limited to 'cui/source/inc')
-rw-r--r--cui/source/inc/dlgname.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/inc/dlgname.hxx b/cui/source/inc/dlgname.hxx
index 567988d1680e..b2ae829747aa 100644
--- a/cui/source/inc/dlgname.hxx
+++ b/cui/source/inc/dlgname.hxx
@@ -34,7 +34,7 @@ private:
VclPtr<Edit> pEdtName;
VclPtr<OKButton> pBtnOK;
- Link<> aCheckNameHdl;
+ Link<SvxNameDialog&,bool> aCheckNameHdl;
DECL_LINK(ModifyHdl, void *);
@@ -60,11 +60,11 @@ public:
@todo Remove the parameter bCheckImmediately and incorporate the 'true'
behaviour as default.
*/
- void SetCheckNameHdl( const Link<>& rLink, bool bCheckImmediately = false )
+ void SetCheckNameHdl( const Link<SvxNameDialog&,bool>& rLink, bool bCheckImmediately = false )
{
aCheckNameHdl = rLink;
if ( bCheckImmediately )
- pBtnOK->Enable( rLink.Call( this ) > 0 );
+ pBtnOK->Enable( rLink.Call( *this ) );
}
void SetEditHelpId( const OString& aHelpId) {pEdtName->SetHelpId(aHelpId);}
@@ -83,7 +83,7 @@ private:
VclPtr<OKButton> pBtnOK;
// callback link for name uniqueness
- Link<> aCheckNameHdl;
+ Link<SvxObjectNameDialog&,bool> aCheckNameHdl;
DECL_LINK(ModifyHdl, void *);
@@ -97,13 +97,13 @@ public:
void GetName(OUString& rName) {rName = pEdtName->GetText(); }
// set handler
- void SetCheckNameHdl(const Link<>& rLink, bool bCheckImmediately = false)
+ void SetCheckNameHdl(const Link<SvxObjectNameDialog&,bool>& rLink, bool bCheckImmediately = false)
{
aCheckNameHdl = rLink;
if(bCheckImmediately)
{
- pBtnOK->Enable(rLink.Call(this) > 0);
+ pBtnOK->Enable(rLink.Call(*this));
}
}
};