Kaydet (Commit) f00d6099 authored tarafından Takeshi Abe's avatar Takeshi Abe

replaced String by rtl::OUString

üst 45b57a9d
...@@ -332,7 +332,7 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const ...@@ -332,7 +332,7 @@ void BasicTreeListBox::ImpCreateLibSubEntries( SvLBoxEntry* pLibRootEntry, const
for ( sal_Int32 i = 0 ; i < nModCount ; i++ ) for ( sal_Int32 i = 0 ; i < nModCount ; i++ )
{ {
String aModName = pModNames[ i ]; ::rtl::OUString aModName = pModNames[ i ];
SvLBoxEntry* pModuleEntry = FindEntry( pLibRootEntry, aModName, OBJ_TYPE_MODULE ); SvLBoxEntry* pModuleEntry = FindEntry( pLibRootEntry, aModName, OBJ_TYPE_MODULE );
if ( !pModuleEntry ) if ( !pModuleEntry )
pModuleEntry = AddEntry( pModuleEntry = AddEntry(
...@@ -408,10 +408,10 @@ void BasicTreeListBox::ImpCreateLibSubEntriesInVBAMode( SvLBoxEntry* pLibRootEnt ...@@ -408,10 +408,10 @@ void BasicTreeListBox::ImpCreateLibSubEntriesInVBAMode( SvLBoxEntry* pLibRootEnt
{ {
::std::vector< std::pair< BasicEntryType, ::rtl::OUString > > aEntries; ::std::vector< std::pair< BasicEntryType, ::rtl::OUString > > aEntries;
aEntries.push_back( ::std::make_pair( OBJ_TYPE_DOCUMENT_OBJECTS, String( IDEResId( RID_STR_DOCUMENT_OBJECTS ) ) ) ); aEntries.push_back( ::std::make_pair( OBJ_TYPE_DOCUMENT_OBJECTS, ResId::toString( IDEResId( RID_STR_DOCUMENT_OBJECTS ) ) ) );
aEntries.push_back( ::std::make_pair( OBJ_TYPE_USERFORMS, String( IDEResId( RID_STR_USERFORMS ) ) ) ); aEntries.push_back( ::std::make_pair( OBJ_TYPE_USERFORMS, ResId::toString( IDEResId( RID_STR_USERFORMS ) ) ) );
aEntries.push_back( ::std::make_pair( OBJ_TYPE_NORMAL_MODULES, String( IDEResId( RID_STR_NORMAL_MODULES ) ) ) ); aEntries.push_back( ::std::make_pair( OBJ_TYPE_NORMAL_MODULES, ResId::toString( IDEResId( RID_STR_NORMAL_MODULES ) ) ) );
aEntries.push_back( ::std::make_pair( OBJ_TYPE_CLASS_MODULES, String( IDEResId( RID_STR_CLASS_MODULES ) ) ) ); aEntries.push_back( ::std::make_pair( OBJ_TYPE_CLASS_MODULES, ResId::toString( IDEResId( RID_STR_CLASS_MODULES ) ) ) );
::std::vector< std::pair< BasicEntryType, ::rtl::OUString > >::iterator iter; ::std::vector< std::pair< BasicEntryType, ::rtl::OUString > >::iterator iter;
for( iter = aEntries.begin(); iter != aEntries.end(); ++iter ) for( iter = aEntries.begin(); iter != aEntries.end(); ++iter )
...@@ -798,8 +798,8 @@ void BasicTreeListBox::SetCurrentEntry( BasicEntryDescriptor& rDesc ) ...@@ -798,8 +798,8 @@ void BasicTreeListBox::SetCurrentEntry( BasicEntryDescriptor& rDesc )
{ {
aDesc = BasicEntryDescriptor( aDesc = BasicEntryDescriptor(
ScriptDocument::getApplicationScriptDocument(), ScriptDocument::getApplicationScriptDocument(),
LIBRARY_LOCATION_USER, String::CreateFromAscii( "Standard" ), LIBRARY_LOCATION_USER, "Standard",
String(), String::CreateFromAscii( "." ), OBJ_TYPE_UNKNOWN ); ::rtl::OUString(), ".", OBJ_TYPE_UNKNOWN );
} }
ScriptDocument aDocument( aDesc.GetDocument() ); ScriptDocument aDocument( aDesc.GetDocument() );
OSL_ENSURE( aDocument.isValid(), "BasicTreeListBox::SetCurrentEntry: invalid document!" ); OSL_ENSURE( aDocument.isValid(), "BasicTreeListBox::SetCurrentEntry: invalid document!" );
......
...@@ -67,8 +67,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry ) ...@@ -67,8 +67,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
} }
else if ( eType == OBJ_TYPE_LIBRARY ) else if ( eType == OBJ_TYPE_LIBRARY )
{ {
String aLibName( aDesc.GetLibName() ); ::rtl::OUString aOULibName( aDesc.GetLibName() );
::rtl::OUString aOULibName( aLibName );
// check password // check password
sal_Bool bOK = sal_True; sal_Bool bOK = sal_True;
...@@ -79,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry ) ...@@ -79,7 +78,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
if ( xPasswd.is() && xPasswd->isLibraryPasswordProtected( aOULibName ) && !xPasswd->isLibraryPasswordVerified( aOULibName ) ) if ( xPasswd.is() && xPasswd->isLibraryPasswordProtected( aOULibName ) && !xPasswd->isLibraryPasswordVerified( aOULibName ) )
{ {
::rtl::OUString aPassword; ::rtl::OUString aPassword;
bOK = QueryPassword( xModLibContainer, aLibName, aPassword ); bOK = QueryPassword( xModLibContainer, aOULibName, aPassword );
} }
} }
...@@ -115,7 +114,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry ) ...@@ -115,7 +114,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
if ( bModLibLoaded || bDlgLibLoaded ) if ( bModLibLoaded || bDlgLibLoaded )
{ {
// create the sub entries // create the sub entries
ImpCreateLibSubEntries( pEntry, aDocument, aLibName ); ImpCreateLibSubEntries( pEntry, aDocument, aOULibName );
// exchange image // exchange image
bool bDlgMode = ( nMode & BROWSEMODE_DIALOGS ) && !( nMode & BROWSEMODE_MODULES ); bool bDlgMode = ( nMode & BROWSEMODE_DIALOGS ) && !( nMode & BROWSEMODE_MODULES );
...@@ -133,7 +132,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry ) ...@@ -133,7 +132,7 @@ void BasicTreeListBox::RequestingChildren( SvLBoxEntry* pEntry )
|| eType == OBJ_TYPE_NORMAL_MODULES || eType == OBJ_TYPE_NORMAL_MODULES
|| eType == OBJ_TYPE_CLASS_MODULES ) || eType == OBJ_TYPE_CLASS_MODULES )
{ {
String aLibName( aDesc.GetLibName() ); ::rtl::OUString aLibName( aDesc.GetLibName() );
ImpCreateLibSubSubEntriesInVBAMode( pEntry, aDocument, aLibName ); ImpCreateLibSubSubEntriesInVBAMode( pEntry, aDocument, aLibName );
} }
else { else {
...@@ -178,7 +177,6 @@ SbxVariable* BasicTreeListBox::FindVariable( SvLBoxEntry* pEntry ) ...@@ -178,7 +177,6 @@ SbxVariable* BasicTreeListBox::FindVariable( SvLBoxEntry* pEntry )
if ( !pEntry ) if ( !pEntry )
return 0; return 0;
String aLib, aModOrObj, aSubOrPropOrSObj, aPropOrSubInSObj;
ScriptDocument aDocument( ScriptDocument::getApplicationScriptDocument() ); ScriptDocument aDocument( ScriptDocument::getApplicationScriptDocument() );
EntryArray aEntries; EntryArray aEntries;
......
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