From e6d91ff22428f909cf26b18599fdeb5e675c8228 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 Sep 2013 09:11:03 +0200 Subject: convert ACCESSIBILITY module from String to OUString Change-Id: Ia4d2e1feef575cb911e981fbb8b6359755ab0dd9 --- accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx | 2 +- accessibility/inc/accessibility/helper/listboxhelper.hxx | 2 +- accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx | 2 +- accessibility/source/extended/accessibleiconchoicectrlentry.cxx | 8 ++++---- accessibility/source/extended/accessiblelistboxentry.cxx | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'accessibility') diff --git a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx index c4eca89dd011..a864fbe463ca 100644 --- a/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx +++ b/accessibility/inc/accessibility/helper/IComboListBoxHelper.hxx @@ -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; diff --git a/accessibility/inc/accessibility/helper/listboxhelper.hxx b/accessibility/inc/accessibility/helper/listboxhelper.hxx index 2c45f965d3a8..8da885dd7e76 100644 --- a/accessibility/inc/accessibility/helper/listboxhelper.hxx +++ b/accessibility/inc/accessibility/helper/listboxhelper.hxx @@ -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 ); } diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx index 8ff90ea0cf58..fc83bd59a865 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx @@ -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 ); diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx index fd739fb3941c..d36c8a989aa4 100644 --- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx +++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx @@ -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; } diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index ebb69f1994a7..6bc4baa00848 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -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; } -- cgit