diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-20 13:10:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-04 08:48:52 +0200 |
commit | 3a30d789f47295c1b6b3295b80f0a8c83709d57d (patch) | |
tree | 3cafdb7ca37928ed070f8e8bf235c1eac2cfe124 | |
parent | de714cbb97a913f76bfe511ea5201137574686ee (diff) |
convert sc/.../inc/tpusrlst.hxx from String to OUString
Change-Id: If41743507a227618989bf7fba5c6fa443fd9c82e
-rw-r--r-- | sc/source/ui/inc/tpusrlst.hxx | 16 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpusrlst.cxx | 22 |
2 files changed, 19 insertions, 19 deletions
diff --git a/sc/source/ui/inc/tpusrlst.hxx b/sc/source/ui/inc/tpusrlst.hxx index 08b92cb3c585..665aab801506 100644 --- a/sc/source/ui/inc/tpusrlst.hxx +++ b/sc/source/ui/inc/tpusrlst.hxx @@ -65,10 +65,10 @@ private: PushButton* mpBtnCopy; - const String aStrQueryRemove; - const String aStrCopyList; - const String aStrCopyFrom; - const String aStrCopyErr; + const OUString aStrQueryRemove; + const OUString aStrCopyList; + const OUString aStrCopyFrom; + const OUString aStrCopyErr; const sal_uInt16 nWhichUserLists; ScUserList* pUserLists; @@ -76,7 +76,7 @@ private: ScDocument* pDoc; ScViewData* pViewData; ScRangeUtil* pRangeUtil; - String aStrSelectedArea; + OUString aStrSelectedArea; sal_Bool bModifyMode; sal_Bool bCancelMode; @@ -88,11 +88,11 @@ private: void Init (); sal_uInt16 UpdateUserListBox (); void UpdateEntries ( size_t nList ); - void MakeListStr ( String& rListStr ); - void AddNewList ( const String& rEntriesStr ); + void MakeListStr ( OUString& rListStr ); + void AddNewList ( const OUString& rEntriesStr ); void RemoveList ( size_t nList ); void ModifyList ( sal_uInt16 nSelList, - const String& rEntriesStr ); + const OUString& rEntriesStr ); void CopyListFromArea ( const ScRefAddress& rStartPos, const ScRefAddress& rEndPos ); diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx index c1176a4fa641..7bcb55ffb538 100644 --- a/sc/source/ui/optdlg/tpusrlst.cxx +++ b/sc/source/ui/optdlg/tpusrlst.cxx @@ -310,7 +310,7 @@ void ScTpUserLists::UpdateEntries( size_t nList ) // ----------------------------------------------------------------------- -void ScTpUserLists::MakeListStr( String& rListStr ) +void ScTpUserLists::MakeListStr( OUString& rListStr ) { String aStr; @@ -318,7 +318,7 @@ void ScTpUserLists::MakeListStr( String& rListStr ) for(xub_StrLen i=0;i<nToken;i++) { - OUString aString = comphelper::string::strip(rListStr.GetToken(i, LF), ' '); + OUString aString = comphelper::string::strip(rListStr.getToken(i, LF), ' '); aStr+=aString; aStr+=cDelimiter; } @@ -326,18 +326,18 @@ void ScTpUserLists::MakeListStr( String& rListStr ) aStr = comphelper::string::strip(aStr, cDelimiter); xub_StrLen nLen = aStr.Len(); - rListStr.Erase(); + rListStr = ""; // Alle Doppelten cDelimiter entfernen: xub_StrLen c = 0; while ( c < nLen ) { - rListStr += aStr.GetChar(c); + rListStr += OUString(aStr.GetChar(c)); c++; if ( aStr.GetChar(c) == cDelimiter ) { - rListStr += aStr.GetChar(c); + rListStr += OUString(aStr.GetChar(c)); while ( (aStr.GetChar(c) == cDelimiter) && (c < nLen) ) c++; @@ -348,9 +348,9 @@ void ScTpUserLists::MakeListStr( String& rListStr ) // ----------------------------------------------------------------------- -void ScTpUserLists::AddNewList( const String& rEntriesStr ) +void ScTpUserLists::AddNewList( const OUString& rEntriesStr ) { - String theEntriesStr( rEntriesStr ); + OUString theEntriesStr( rEntriesStr ); if ( !pUserLists ) pUserLists = new ScUserList; @@ -455,13 +455,13 @@ void ScTpUserLists::CopyListFromArea( const ScRefAddress& rStartPos, // ----------------------------------------------------------------------- void ScTpUserLists::ModifyList( sal_uInt16 nSelList, - const String& rEntriesStr ) + const OUString& rEntriesStr ) { if ( !pUserLists ) return; //---------------------------------------------------------- - String theEntriesStr( rEntriesStr ); + OUString theEntriesStr( rEntriesStr ); MakeListStr( theEntriesStr ); @@ -646,10 +646,10 @@ IMPL_LINK( ScTpUserLists, BtnClickHdl, PushButton*, pBtn ) if ( mpLbLists->GetEntryCount() > 0 ) { sal_uInt16 nRemovePos = mpLbLists->GetSelectEntryPos(); - String aMsg ( aStrQueryRemove.GetToken( 0, '#' ) ); + String aMsg ( aStrQueryRemove.getToken( 0, '#' ) ); aMsg += mpLbLists->GetEntry( nRemovePos ); - aMsg += aStrQueryRemove.GetToken( 1, '#' ); + aMsg += aStrQueryRemove.getToken( 1, '#' ); if ( RET_YES == QueryBox( this, |