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; ...@@ -85,11 +85,10 @@ using namespace ::com::sun::star;
OConnectionTabPageSetup::dispose(); OConnectionTabPageSetup::dispose();
} }
IMPL_LINK(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, /*_pTextConnectionHelper*/) IMPL_LINK_NOARG_TYPED(OTextConnectionPageSetup, ImplGetExtensionHdl, OTextConnectionHelper*, void)
{ {
SetRoadmapStateValue(!m_pTextConnectionHelper->GetExtension().isEmpty() && OConnectionTabPageSetup::checkTestConnection()); SetRoadmapStateValue(!m_pTextConnectionHelper->GetExtension().isEmpty() && OConnectionTabPageSetup::checkTestConnection());
callModifiedHdl(); callModifiedHdl();
return sal_True;
} }
bool OTextConnectionPageSetup::checkTestConnection() bool OTextConnectionPageSetup::checkTestConnection()
......
...@@ -74,7 +74,7 @@ namespace dbaui ...@@ -74,7 +74,7 @@ namespace dbaui
bool checkTestConnection() SAL_OVERRIDE; bool checkTestConnection() SAL_OVERRIDE;
private: private:
DECL_LINK(ImplGetExtensionHdl, OTextConnectionHelper*); DECL_LINK_TYPED(ImplGetExtensionHdl, OTextConnectionHelper*, void);
}; };
// OLDAPConnectionPageSetup // OLDAPConnectionPageSetup
......
...@@ -75,7 +75,7 @@ namespace dbaui ...@@ -75,7 +75,7 @@ namespace dbaui
OUString m_aTextSeparatorList; OUString m_aTextSeparatorList;
OUString m_aTextNone; OUString m_aTextNone;
OUString m_aOldExtension; 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; short m_nAvailableSections;
...@@ -95,7 +95,7 @@ namespace dbaui ...@@ -95,7 +95,7 @@ namespace dbaui
void implInitControls(const SfxItemSet& _rSet, bool _bValid); void implInitControls(const SfxItemSet& _rSet, bool _bValid);
void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList); void fillControls(::std::vector< ISaveValueWrapper* >& _rControlList);
void fillWindows(::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(); OUString GetExtension();
bool FillItemSet( SfxItemSet& rSet, const bool bChangedSomething ); bool FillItemSet( SfxItemSet& rSet, const bool bChangedSomething );
bool prepareLeave(); 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