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

convert ACCESSIBILITY module from String to OUString

Change-Id: Ia4d2e1feef575cb911e981fbb8b6359755ab0dd9
üst ee0d567f
......@@ -38,7 +38,7 @@ namespace accessibility
public:
virtual ~IComboListBoxHelper() = 0;
virtual String GetEntry( sal_uInt16 nPos ) const = 0;
virtual OUString GetEntry( sal_uInt16 nPos ) const = 0;
virtual Rectangle GetDropDownPosSizePixel( ) const = 0;
virtual Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
virtual Rectangle GetWindowExtentsRelative( Window* pRelativeWindow ) = 0;
......
......@@ -46,7 +46,7 @@ public:
m_aComboListBox( _pListBox ){}
// -----------------------------------------------------------------------------
virtual String GetEntry( sal_uInt16 nPos ) const
virtual OUString GetEntry( sal_uInt16 nPos ) const
{
return m_aComboListBox.GetEntry( nPos );
}
......
......@@ -144,7 +144,7 @@ namespace accessibility
m_pPanelDeck->AddListener( *this );
m_aChildren.resize( m_pPanelDeck->GetPanelCount() );
const String sAccessibleDescription( TK_RES_STRING( RID_STR_ACC_DESC_PANELDECL_TABBAR ) );
const OUString sAccessibleDescription( TK_RES_STRING( RID_STR_ACC_DESC_PANELDECL_TABBAR ) );
i_rTabBar.SetAccessibleName( sAccessibleDescription );
i_rTabBar.SetAccessibleDescription( sAccessibleDescription );
......
......@@ -494,13 +494,13 @@ throw(RuntimeException)
SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( m_aMutex );
String sText = getText();
if ( ( 0 > nStartIndex ) || ( sText.Len() <= nStartIndex )
|| ( 0 > nEndIndex ) || ( sText.Len() <= nEndIndex ) )
OUString sText = getText();
if ( ( 0 > nStartIndex ) || ( sText.getLength() <= nStartIndex )
|| ( 0 > nEndIndex ) || ( sText.getLength() <= nEndIndex ) )
throw IndexOutOfBoundsException();
sal_Int32 nLen = nEndIndex - nStartIndex + 1;
::svt::OStringTransfer::CopyString( sText.Copy( (sal_uInt16)nStartIndex, (sal_uInt16)nLen ), m_pIconCtrl );
::svt::OStringTransfer::CopyString( sText.copy( nStartIndex, nLen ), m_pIconCtrl );
return sal_True;
}
......
......@@ -580,13 +580,13 @@ namespace accessibility
::osl::MutexGuard aGuard( m_aMutex );
EnsureIsAlive();
String sText = getText();
if ( ( 0 > nStartIndex ) || ( sText.Len() <= nStartIndex )
|| ( 0 > nEndIndex ) || ( sText.Len() <= nEndIndex ) )
OUString sText = getText();
if ( ( 0 > nStartIndex ) || ( sText.getLength() <= nStartIndex )
|| ( 0 > nEndIndex ) || ( sText.getLength() <= nEndIndex ) )
throw IndexOutOfBoundsException();
sal_Int32 nLen = nEndIndex - nStartIndex + 1;
::svt::OStringTransfer::CopyString( sText.Copy( (sal_uInt16)nStartIndex, (sal_uInt16)nLen ), getListBox() );
::svt::OStringTransfer::CopyString( sText.copy( nStartIndex, nLen ), getListBox() );
return sal_True;
}
......
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