convert XubString to OUString

Change-Id: I55e676ea50c661aca0e0b33b6a32d513f9e6b0ac
This commit is contained in:
Noel Grandin 2013-07-24 15:00:55 +02:00
parent 1543cf5eb6
commit d5af396843
2 changed files with 6 additions and 6 deletions

View File

@ -464,7 +464,7 @@ namespace svx
m_aListBox.Clear();
m_aValueSet.Clear();
}
void SuggestionDisplay::InsertEntry( const XubString& rStr )
void SuggestionDisplay::InsertEntry( const OUString& rStr )
{
sal_uInt16 nItemId = m_aListBox.InsertEntry( rStr ) + 1; //itemid == pos+1 (id 0 has special meaning)
m_aValueSet.InsertItem( nItemId );
@ -480,11 +480,11 @@ namespace svx
{
return m_aListBox.GetEntryCount();
}
XubString SuggestionDisplay::GetEntry( sal_uInt16 nPos ) const
OUString SuggestionDisplay::GetEntry( sal_uInt16 nPos ) const
{
return m_aListBox.GetEntry( nPos );
}
XubString SuggestionDisplay::GetSelectEntry() const
OUString SuggestionDisplay::GetSelectEntry() const
{
return m_aListBox.GetSelectEntry();
}

View File

@ -66,13 +66,13 @@ namespace svx
void SetSelectHdl( const Link& rLink );
void Clear();
void InsertEntry( const XubString& rStr );
void InsertEntry( const OUString& rStr );
void SelectEntryPos( sal_uInt16 nPos );
sal_uInt16 GetEntryCount() const;
XubString GetEntry( sal_uInt16 nPos ) const;
XubString GetSelectEntry() const;
OUString GetEntry( sal_uInt16 nPos ) const;
OUString GetSelectEntry() const;
virtual void StateChanged( StateChangedType nStateChange );