Kaydet (Commit) fddd41eb authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: I9705eccf8238cf0dc6c5a429c89a2cd3d8331d08
üst f0c658e4
......@@ -2891,7 +2891,7 @@ bool DbFilterField::commitControl()
if (m_aText != aText)
{
m_aText = aText;
m_aCommitLink.Call(this);
m_aCommitLink.Call(*this);
}
return true;
default:
......@@ -2943,7 +2943,7 @@ bool DbFilterField::commitControl()
m_aText = aText;
m_pWindow->SetText(m_aText);
m_aCommitLink.Call(this);
m_aCommitLink.Call(*this);
}
return true;
}
......@@ -3134,7 +3134,7 @@ IMPL_LINK_NOARG_TYPED(DbFilterField, OnClick, VclPtr<CheckBox>, void)
if (m_aText != aText)
{
m_aText = aText;
m_aCommitLink.Call(this);
m_aCommitLink.Call(*this);
}
}
......@@ -4588,7 +4588,7 @@ void FmXFilterCell::disposing()
::com::sun::star::lang::EventObject aEvt(*this);
m_aTextListeners.disposeAndClear(aEvt);
static_cast<DbFilterField*>(m_pCellControl)->SetCommitHdl(Link<>());
static_cast<DbFilterField*>(m_pCellControl)->SetCommitHdl(Link<DbFilterField&,void>());
FmXGridCell::disposing();
}
......@@ -4688,14 +4688,13 @@ void SAL_CALL FmXFilterCell::setMaxTextLen( sal_Int16 /*nLen*/ ) throw( RuntimeE
}
IMPL_LINK_NOARG(FmXFilterCell, OnCommit)
IMPL_LINK_NOARG_TYPED(FmXFilterCell, OnCommit, DbFilterField&, void)
{
::cppu::OInterfaceIteratorHelper aIt( m_aTextListeners );
::com::sun::star::awt::TextEvent aEvt;
aEvt.Source = *this;
while( aIt.hasMoreElements() )
static_cast< ::com::sun::star::awt::XTextListener *>(aIt.next())->textChanged( aEvt );
return 1;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -677,13 +677,13 @@ class DbFilterField
:public DbCellControl
,public ::svxform::OSQLParserClient
{
::com::sun::star::uno::Sequence< OUString > m_aValueList;
OUString m_aText;
Link<> m_aCommitLink;
css::uno::Sequence< OUString > m_aValueList;
OUString m_aText;
Link<DbFilterField&,void> m_aCommitLink;
sal_Int16 m_nControlClass;
bool m_bFilterList : 1;
bool m_bFilterListFilled : 1;
bool m_bBound : 1;
bool m_bFilterList : 1;
bool m_bFilterListFilled : 1;
bool m_bBound : 1;
public:
TYPEINFO_OVERRIDE();
......@@ -700,7 +700,7 @@ public:
const OUString& GetText() const {return m_aText;}
void SetText(const OUString& rText);
void SetCommitHdl( const Link<>& rLink ) { m_aCommitLink = rLink; }
void SetCommitHdl( const Link<DbFilterField&,void>& rLink ) { m_aCommitLink = rLink; }
protected:
......@@ -1126,7 +1126,7 @@ public:
virtual sal_Int16 SAL_CALL getMaxTextLen() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
protected:
DECL_LINK( OnCommit, void* );
DECL_LINK_TYPED( OnCommit, DbFilterField&, void );
};
#endif // INCLUDED_SVX_SOURCE_INC_GRIDCELL_HXX
......
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