summaryrefslogtreecommitdiff
path: root/basic/source/uno
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:11:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-26 14:11:37 +0000
commit10b412071fa88177c970b4cab1b40533084b78a0 (patch)
tree7560b46070cb48dfed1ae707ec05bd713efaea3b /basic/source/uno
parent86ae939f8cd440f447e6b06f4f68d4d758f8bb33 (diff)
CWS-TOOLING: integrate CWS ab63_DEV300
Diffstat (limited to 'basic/source/uno')
-rw-r--r--basic/source/uno/namecont.cxx18
1 files changed, 13 insertions, 5 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 3d406f709ad9..29a527d3d37a 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1825,14 +1825,18 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
int iArray = 0;
pName = aNames.getConstArray();
+ ::xmlscript::LibDescriptor aLibDescriptorForExtensionLibs;
for( ; pName != pNamesEnd; ++pName )
{
SfxLibrary* pImplLib = getImplLib( *pName );
- if( pImplLib->mbSharedIndexFile || pImplLib->mbExtension )
+ if( pImplLib->mbSharedIndexFile )
continue;
- ::xmlscript::LibDescriptor& rLib = pLibArray->mpLibs[iArray];
+ bool bExtensionLib = pImplLib->mbExtension;
+ ::xmlscript::LibDescriptor& rLib = bExtensionLib ?
+ aLibDescriptorForExtensionLibs : pLibArray->mpLibs[iArray];
+ if( !bExtensionLib )
+ iArray++;
rLib.aName = *pName;
- iArray++;
rLib.bLink = pImplLib->mbLink;
if( !bStorage || pImplLib->mbLink )
@@ -2112,10 +2116,14 @@ Reference< XNameAccess > SAL_CALL SfxLibraryContainer::createLibraryLink
OUString aUserSearchStr = OUString::createFromAscii( "vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE" );
OUString aSharedSearchStr = OUString::createFromAscii( "vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE" );
- if( StorageURL.indexOf( aUserSearchStr ) != -1 ||
- StorageURL.indexOf( aSharedSearchStr ) != -1 )
+ if( StorageURL.indexOf( aUserSearchStr ) != -1 )
+ {
+ pNewLib->mbExtension = sal_True;
+ }
+ else if( StorageURL.indexOf( aSharedSearchStr ) != -1 )
{
pNewLib->mbExtension = sal_True;
+ pNewLib->mbReadOnly = sal_True;
}
return xRet;