summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-05-19 08:26:52 +0000
committerKurt Zenker <kz@openoffice.org>2004-05-19 08:26:52 +0000
commit0759db1640c8a57c6c60532d11ff94f2462276b4 (patch)
tree2adf18a1153e7159dff699b88f9523ba75e0bd62 /package
parentfa76bf2a7fb237a310baf331c95b514f7511634a (diff)
INTEGRATION: CWS bmpres01 (1.2.128); FILE MERGED
2004/04/13 16:04:05 mav 1.2.128.1: #116335# ZipFileAccess
Diffstat (limited to 'package')
-rw-r--r--package/source/manifest/UnoRegister.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/package/source/manifest/UnoRegister.cxx b/package/source/manifest/UnoRegister.cxx
index ee9498541478..e3433e9b251b 100644
--- a/package/source/manifest/UnoRegister.cxx
+++ b/package/source/manifest/UnoRegister.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: UnoRegister.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2004-05-10 17:27:43 $
+ * last change: $Author: kz $ $Date: 2004-05-19 09:26:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -78,6 +78,8 @@
#include <ZipPackage.hxx>
#endif
+#include <zipfileaccess.hxx>
+
using namespace ::rtl;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::beans;
@@ -148,7 +150,12 @@ extern "C" sal_Bool SAL_CALL component_writeInfo( void* pServiceManager, void* p
ManifestWriter::static_getSupportedServiceNames() ) &&
writeInfo (pRegistryKey,
ZipPackage::static_getImplementationName(),
- ZipPackage::static_getSupportedServiceNames() );
+ ZipPackage::static_getSupportedServiceNames() ) &&
+
+ writeInfo (pRegistryKey,
+ OZipFileAccess::impl_staticGetImplementationName(),
+ OZipFileAccess::impl_staticGetSupportedServiceNames() );
+
}
@@ -173,6 +180,11 @@ extern "C" void * SAL_CALL component_getFactory(
xFactory = ManifestWriter::createServiceFactory ( xSMgr );
else if (ZipPackage::static_getImplementationName().compareToAscii( pImplName ) == 0)
xFactory = ZipPackage::createServiceFactory ( xSMgr );
+ else if ( OZipFileAccess::impl_staticGetImplementationName().compareToAscii( pImplName ) == 0 )
+ xFactory = ::cppu::createSingleFactory( xSMgr,
+ OZipFileAccess::impl_staticGetImplementationName(),
+ OZipFileAccess::impl_staticCreateSelfInstance,
+ OZipFileAccess::impl_staticGetSupportedServiceNames() );
if ( xFactory.is() )
{