Kaydet (Commit) 1d1a2829 authored tarafından Eike Rathke's avatar Eike Rathke

+sal_Int32 ComboBox::GetEntryPos( const void* pData ) const

Change-Id: I9199da366eb70e818e1d85823cd7cf530f70167d
üst f9a1e907
......@@ -138,6 +138,7 @@ public:
void Clear();
sal_Int32 GetEntryPos( const OUString& rStr ) const;
sal_Int32 GetEntryPos( const void* pData ) const;
Image GetEntryImage( sal_Int32 nPos ) const;
OUString GetEntry( sal_Int32 nPos ) const;
sal_Int32 GetEntryCount() const;
......
......@@ -931,6 +931,14 @@ sal_Int32 ComboBox::GetEntryPos( const OUString& rStr ) const
return nPos;
}
sal_Int32 ComboBox::GetEntryPos( const void* pData ) const
{
sal_Int32 nPos = mpImplLB->GetEntryList()->FindEntry( pData );
if ( nPos != LISTBOX_ENTRY_NOTFOUND )
nPos = nPos - mpImplLB->GetEntryList()->GetMRUCount();
return nPos;
}
OUString ComboBox::GetEntry( sal_Int32 nPos ) const
{
const sal_Int32 nMRUCount = mpImplLB->GetEntryList()->GetMRUCount();
......
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