Kaydet (Commit) 30e14d7d authored tarafından Ádám Csaba Király's avatar Ádám Csaba Király Kaydeden (comit) Andras Timar

fdo#38838, change String to OUString

Change-Id: I373f5d2f453dff83141a4cdaeed94ce0268bf70c
Reviewed-on: https://gerrit.libreoffice.org/2497Reviewed-by: 's avatarAndras Timar <atimar@suse.com>
Tested-by: 's avatarAndras Timar <atimar@suse.com>
üst 11109e8a
...@@ -67,7 +67,7 @@ MediaFloater::MediaFloater( SfxBindings* _pBindings, SfxChildWindow* pCW, Window ...@@ -67,7 +67,7 @@ MediaFloater::MediaFloater( SfxBindings* _pBindings, SfxChildWindow* pCW, Window
SetPosSizePixel( Point( 0, 0 ), aSize ); SetPosSizePixel( Point( 0, 0 ), aSize );
SetMinOutputSizePixel( aSize ); SetMinOutputSizePixel( aSize );
SetText( String( AVMEDIA_RESID( AVMEDIA_STR_MEDIAPLAYER ) ) ); SetText( OUString( AVMEDIA_RESID( AVMEDIA_STR_MEDIAPLAYER ) ) );
implInit(); implInit();
mpMediaWindow->show(); mpMediaWindow->show();
} }
......
...@@ -111,7 +111,7 @@ void MediaToolBoxControl::StateChanged( sal_uInt16 /* nSID */, SfxItemState eSta ...@@ -111,7 +111,7 @@ void MediaToolBoxControl::StateChanged( sal_uInt16 /* nSID */, SfxItemState eSta
if( eState == SFX_ITEM_DISABLED ) if( eState == SFX_ITEM_DISABLED )
{ {
pCtrl->Enable( false, false ); pCtrl->Enable( false, false );
pCtrl->SetText( String() ); pCtrl->SetText( OUString() );
const MediaItem aEmptyMediaItem( 0, AVMEDIA_SETMASK_ALL ); const MediaItem aEmptyMediaItem( 0, AVMEDIA_SETMASK_ALL );
pCtrl->setState( aEmptyMediaItem ); pCtrl->setState( aEmptyMediaItem );
......
...@@ -175,8 +175,8 @@ void LibBox::Update( const SfxStringItem* pItem ) ...@@ -175,8 +175,8 @@ void LibBox::Update( const SfxStringItem* pItem )
if ( pItem ) if ( pItem )
{ {
aCurText = pItem->GetValue(); aCurText = pItem->GetValue();
if ( aCurText.Len() == 0 ) if ( aCurText.isEmpty() )
aCurText = String( IDEResId( RID_STR_ALL ) ); aCurText = OUString( IDEResId( RID_STR_ALL ) );
} }
if ( GetSelectEntry() != aCurText ) if ( GetSelectEntry() != aCurText )
...@@ -209,8 +209,8 @@ void LibBox::FillBox() ...@@ -209,8 +209,8 @@ void LibBox::FillBox()
ClearBox(); ClearBox();
// create list box entries // create list box entries
sal_uInt16 nPos = InsertEntry( String( IDEResId( RID_STR_ALL ) ), LISTBOX_APPEND ); sal_uInt16 nPos = InsertEntry( OUString( IDEResId( RID_STR_ALL ) ), LISTBOX_APPEND );
SetEntryData( nPos, new LibEntry( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_UNKNOWN, String() ) ); SetEntryData( nPos, new LibEntry( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_UNKNOWN, OUString() ) );
InsertEntries( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_USER ); InsertEntries( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_USER );
InsertEntries( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_SHARE ); InsertEntries( ScriptDocument::getApplicationScriptDocument(), LIBRARY_LOCATION_SHARE );
...@@ -243,11 +243,11 @@ void LibBox::InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLo ...@@ -243,11 +243,11 @@ void LibBox::InsertEntries( const ScriptDocument& rDocument, LibraryLocation eLo
for ( sal_Int32 i = 0 ; i < nLibCount ; ++i ) for ( sal_Int32 i = 0 ; i < nLibCount ; ++i )
{ {
String aLibName = pLibNames[ i ]; OUString aLibName = pLibNames[ i ];
if ( eLocation == rDocument.getLibraryLocation( aLibName ) ) if ( eLocation == rDocument.getLibraryLocation( aLibName ) )
{ {
String aName( rDocument.getTitle( eLocation ) ); OUString aName( rDocument.getTitle( eLocation ) );
String aEntryText( CreateMgrAndLibStr( aName, aLibName ) ); OUString aEntryText( CreateMgrAndLibStr( aName, aLibName ) );
sal_uInt16 nPos = InsertEntry( aEntryText, LISTBOX_APPEND ); sal_uInt16 nPos = InsertEntry( aEntryText, LISTBOX_APPEND );
SetEntryData( nPos, new LibEntry( rDocument, eLocation, aLibName ) ); SetEntryData( nPos, new LibEntry( rDocument, eLocation, aLibName ) );
} }
...@@ -317,7 +317,7 @@ void LibBox::NotifyIDE() ...@@ -317,7 +317,7 @@ void LibBox::NotifyIDE()
{ {
ScriptDocument aDocument( pEntry->GetDocument() ); ScriptDocument aDocument( pEntry->GetDocument() );
SfxUsrAnyItem aDocumentItem( SID_BASICIDE_ARG_DOCUMENT_MODEL, uno::makeAny( aDocument.getDocumentOrNull() ) ); SfxUsrAnyItem aDocumentItem( SID_BASICIDE_ARG_DOCUMENT_MODEL, uno::makeAny( aDocument.getDocumentOrNull() ) );
String aLibName = pEntry->GetLibName(); OUString aLibName = pEntry->GetLibName();
SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName ); SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
if (SfxDispatcher* pDispatcher = GetDispatcher()) if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( pDispatcher->Execute(
...@@ -417,10 +417,10 @@ void LanguageBox::FillBox() ...@@ -417,10 +417,10 @@ void LanguageBox::FillBox()
bool bIsDefault = localesAreEqual( aDefaultLocale, pLocale[i] ); bool bIsDefault = localesAreEqual( aDefaultLocale, pLocale[i] );
bool bIsCurrent = localesAreEqual( aCurrentLocale, pLocale[i] ); bool bIsCurrent = localesAreEqual( aCurrentLocale, pLocale[i] );
LanguageType eLangType = LanguageTag( pLocale[i] ).getLanguageType(); LanguageType eLangType = LanguageTag( pLocale[i] ).getLanguageType();
String sLanguage = aLangTable.GetString( eLangType ); OUString sLanguage = aLangTable.GetString( eLangType );
if ( bIsDefault ) if ( bIsDefault )
{ {
sLanguage += ' '; sLanguage += " ";
sLanguage += m_sDefaultLanguageStr; sLanguage += m_sDefaultLanguageStr;
} }
sal_uInt16 nPos = InsertEntry( sLanguage ); sal_uInt16 nPos = InsertEntry( sLanguage );
......
...@@ -76,7 +76,7 @@ private: ...@@ -76,7 +76,7 @@ private:
class LibBox : public DocListenerBox class LibBox : public DocListenerBox
{ {
private: private:
String aCurText; OUString aCurText;
bool bIgnoreSelect; bool bIgnoreSelect;
bool bFillBox; bool bFillBox;
com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame; com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
...@@ -118,9 +118,9 @@ public: ...@@ -118,9 +118,9 @@ public:
class LanguageBox : public DocListenerBox class LanguageBox : public DocListenerBox
{ {
private: private:
String m_sNotLocalizedStr; OUString m_sNotLocalizedStr;
String m_sDefaultLanguageStr; OUString m_sDefaultLanguageStr;
String m_sCurrentText; OUString m_sCurrentText;
bool m_bIgnoreSelect; bool m_bIgnoreSelect;
......
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