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

convert XubString to OUString

Change-Id: I55e676ea50c661aca0e0b33b6a32d513f9e6b0ac
üst 1543cf5e
...@@ -464,7 +464,7 @@ namespace svx ...@@ -464,7 +464,7 @@ namespace svx
m_aListBox.Clear(); m_aListBox.Clear();
m_aValueSet.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) sal_uInt16 nItemId = m_aListBox.InsertEntry( rStr ) + 1; //itemid == pos+1 (id 0 has special meaning)
m_aValueSet.InsertItem( nItemId ); m_aValueSet.InsertItem( nItemId );
...@@ -480,11 +480,11 @@ namespace svx ...@@ -480,11 +480,11 @@ namespace svx
{ {
return m_aListBox.GetEntryCount(); return m_aListBox.GetEntryCount();
} }
XubString SuggestionDisplay::GetEntry( sal_uInt16 nPos ) const OUString SuggestionDisplay::GetEntry( sal_uInt16 nPos ) const
{ {
return m_aListBox.GetEntry( nPos ); return m_aListBox.GetEntry( nPos );
} }
XubString SuggestionDisplay::GetSelectEntry() const OUString SuggestionDisplay::GetSelectEntry() const
{ {
return m_aListBox.GetSelectEntry(); return m_aListBox.GetSelectEntry();
} }
......
...@@ -66,13 +66,13 @@ namespace svx ...@@ -66,13 +66,13 @@ namespace svx
void SetSelectHdl( const Link& rLink ); void SetSelectHdl( const Link& rLink );
void Clear(); void Clear();
void InsertEntry( const XubString& rStr ); void InsertEntry( const OUString& rStr );
void SelectEntryPos( sal_uInt16 nPos ); void SelectEntryPos( sal_uInt16 nPos );
sal_uInt16 GetEntryCount() const; sal_uInt16 GetEntryCount() const;
XubString GetEntry( sal_uInt16 nPos ) const; OUString GetEntry( sal_uInt16 nPos ) const;
XubString GetSelectEntry() const; OUString GetSelectEntry() const;
virtual void StateChanged( StateChangedType nStateChange ); virtual void StateChanged( StateChangedType nStateChange );
......
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