diff options
Diffstat (limited to 'cui/source/tabpages/tpbitmap.cxx')
-rw-r--r-- | cui/source/tabpages/tpbitmap.cxx | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx index 3ed60c3366a2..be2f50401a93 100644 --- a/cui/source/tabpages/tpbitmap.cxx +++ b/cui/source/tabpages/tpbitmap.cxx @@ -191,7 +191,8 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& ) // determining (possibly cutting) the name and // displaying it in the GroupBox - String aString( CUI_RES( RID_SVXSTR_TABLE ) ); aString.AppendAscii( ": " ); + OUString aString( CUI_RES( RID_SVXSTR_TABLE ) ); + aString += ": "; INetURLObject aURL( pBitmapList->GetPath() ); aURL.Append( pBitmapList->GetName() ); @@ -199,11 +200,11 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& ) if( aURL.getBase().getLength() > 18 ) { - aString += String(aURL.getBase()).Copy( 0, 15 ); - aString.AppendAscii( "..." ); + aString += aURL.getBase().copy( 0, 15 ); + aString += "..."; } else - aString += String(aURL.getBase()); + aString += aURL.getBase(); if( *pPageType == PT_BITMAP && *pPos != LISTBOX_ENTRY_NOTFOUND ) { @@ -836,16 +837,16 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickLoadHdl_Impl) // determining (possibly cutting) the name // displaying it in the GroupBox - String aString( ResId( RID_SVXSTR_TABLE, rMgr ) ); - aString.AppendAscii( ": " ); + OUString aString( ResId( RID_SVXSTR_TABLE, rMgr ) ); + aString += ": "; if ( aURL.getBase().getLength() > 18 ) { - aString += String(aURL.getBase()).Copy( 0, 15 ); - aString.AppendAscii( "..." ); + aString += aURL.getBase().copy( 0, 15 ); + aString += "..."; } else - aString += String(aURL.getBase()); + aString += aURL.getBase(); *pnBitmapListState |= CT_CHANGED; *pnBitmapListState &= ~CT_MODIFIED; @@ -912,16 +913,16 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ClickSaveHdl_Impl) { // determining (possibly cutting) the name // displaying it in the GroupBox - String aString( CUI_RES( RID_SVXSTR_TABLE ) ); - aString.AppendAscii( ": " ); + OUString aString( CUI_RES( RID_SVXSTR_TABLE ) ); + aString += ": "; if ( aURL.getBase().getLength() > 18 ) { - aString += String(aURL.getBase()).Copy( 0, 15 ); - aString.AppendAscii( "..." ); + aString += aURL.getBase().copy( 0, 15 ); + aString += "..."; } else - aString += String(aURL.getBase()); + aString += aURL.getBase(); *pnBitmapListState |= CT_SAVED; *pnBitmapListState &= ~CT_MODIFIED; |