diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-29 13:20:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-05 08:53:52 +0200 |
commit | 9daa4f31944e1b9510b092ab9fdd433984c85d10 (patch) | |
tree | 91f41cedccd0d077d96f4d04fdad7442dd505f53 /sfx2/source/appl/appdde.cxx | |
parent | 6dbf3cd4123a24ee1f5169aaa02cb06ae3eefaaf (diff) |
convert sfx2/source/appl/* from String to OUString
Change-Id: I59901bdc3c953bf883c0b543bd1e0b5d6a96e80a
Diffstat (limited to 'sfx2/source/appl/appdde.cxx')
-rw-r--r-- | sfx2/source/appl/appdde.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index c8765de6c6aa..cf9a7394aa58 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -77,7 +77,7 @@ public: //-------------------------------------------------------------------- namespace { - sal_Bool lcl_IsDocument( const String& rContent ) + sal_Bool lcl_IsDocument( const OUString& rContent ) { using namespace com::sun::star; @@ -122,14 +122,14 @@ bool ImplDdeService::MakeTopic( const OUString& rNm ) // First only loop over the ObjectShells to find those // with the specific name: sal_Bool bRet = sal_False; - String sNm( rNm ); - sNm.ToLowerAscii(); + OUString sNm( rNm ); + sNm = sNm.toAsciiLowerCase(); TypeId aType( TYPE(SfxObjectShell) ); SfxObjectShell* pShell = SfxObjectShell::GetFirst( &aType ); while( pShell ) { - String sTmp( pShell->GetTitle(SFX_TITLE_FULLNAME) ); - sTmp.ToLowerAscii(); + OUString sTmp( pShell->GetTitle(SFX_TITLE_FULLNAME) ); + sTmp = sTmp.toAsciiLowerCase(); if( sTmp == sNm ) { SFX_APP()->AddDdeTopic( pShell ); @@ -531,7 +531,7 @@ void SfxApplication::AddDdeTopic( SfxObjectShell* pSh ) return; // prevent double submit - String sShellNm; + OUString sShellNm; sal_Bool bFnd = sal_False; for (size_t n = pAppData_Impl->pDocTopics->size(); n;) { @@ -541,10 +541,10 @@ void SfxApplication::AddDdeTopic( SfxObjectShell* pSh ) if( !bFnd ) { bFnd = sal_True; - (sShellNm = pSh->GetTitle(SFX_TITLE_FULLNAME)).ToLowerAscii(); + sShellNm = pSh->GetTitle(SFX_TITLE_FULLNAME).toAsciiLowerCase(); } - String sNm( (*pAppData_Impl->pDocTopics)[ n ]->GetName() ); - if( sShellNm == sNm.ToLowerAscii() ) + OUString sNm( (*pAppData_Impl->pDocTopics)[ n ]->GetName() ); + if( sShellNm == sNm.toAsciiLowerCase() ) return ; } } @@ -594,7 +594,7 @@ bool SfxDdeTriggerTopic_Impl::Execute( const OUString* ) //-------------------------------------------------------------------- DdeData* SfxDdeDocTopic_Impl::Get( sal_uIntPtr nFormat ) { - String sMimeType( SotExchange::GetFormatMimeType( nFormat )); + OUString sMimeType( SotExchange::GetFormatMimeType( nFormat )); ::com::sun::star::uno::Any aValue; long nRet = pSh->DdeGetData( GetCurItem(), sMimeType, aValue ); if( nRet && aValue.hasValue() && ( aValue >>= aSeq ) ) @@ -615,7 +615,7 @@ bool SfxDdeDocTopic_Impl::Put( const DdeData* pData ) { ::com::sun::star::uno::Any aValue; aValue <<= aSeq; - String sMimeType( SotExchange::GetFormatMimeType( pData->GetFormat() )); + OUString sMimeType( SotExchange::GetFormatMimeType( pData->GetFormat() )); bRet = 0 != pSh->DdeSetData( GetCurItem(), sMimeType, aValue ); } else |