Kaydet (Commit) 87fabc0f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use typed OTextConnectionHelper::SetClickHandler Link

Change-Id: I4d60400f4cc3f34529d632e52b676007f87ff646
üst ed85e11a
......@@ -85,11 +85,10 @@ using namespace ::com::sun::star;
OConnectionTabPageSetup::dispose();
}
IMPL_LINK(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, /*_pTextConnectionHelper*/)
IMPL_LINK_NOARG_TYPED(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, void)
{
SetRoadmapStateValue(!m_pTextConnectionHelper->GetExtension().isEmpty() && OConnectionTabPageSetup::checkTestConnection());
callModifiedHdl();
return sal_True;
}
bool OTextConnectionPageSetup::checkTestConnection()
......
......@@ -74,7 +74,7 @@ namespace dbaui
bool checkTestConnection() SAL_OVERRIDE;
private:
DECL_LINK(ImplGetExtensionHdl, OTextConnectionHelper*);
DECL_LINK_TYPED(ImplGetExtensionHdl, OTextConnectionHelper*, void);
};
// OLDAPConnectionPageSetup
......
......@@ -75,7 +75,7 @@ namespace dbaui
OUString m_aTextSeparatorList;
OUString m_aTextNone;
OUString m_aOldExtension;
Link<> m_aGetExtensionHandler; /// to be called if a new type is selected
Link<OTextConnectionHelper*, void> m_aGetExtensionHandler; /// to be called if a new type is selected
short m_nAvailableSections;
......@@ -95,7 +95,7 @@ namespace dbaui
void implInitControls(const SfxItemSet& _rSet, bool _bValid);
void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
void fillWindows(::std::vector< ISaveValueWrapper* >& _rControlList);
void SetClickHandler(const Link<>& _rHandler) { m_aGetExtensionHandler = _rHandler; }
void SetClickHandler(const Link<OTextConnectionHelper*, void>& _rHandler) { m_aGetExtensionHandler = _rHandler; }
OUString GetExtension();
bool FillItemSet( SfxItemSet& rSet, const bool bChangedSomething );
bool prepareLeave();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment