diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-10-04 18:48:10 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-10-04 18:48:10 +0000 |
commit | 6d5f948b214ea3c6d424e83d585a9837528f4133 (patch) | |
tree | 78e290b0a79d609a48dd382dcf501a6d8a0798c7 /svtools | |
parent | 03add1ee5ee8f977f4743825e706992aa4879f1a (diff) |
INTEGRATION: CWS mav09 (1.16.134); FILE MERGED
2004/02/27 10:30:52 mav 1.16.134.1: #115011# hatch window service
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/registerservices.cxx | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/svtools/source/uno/registerservices.cxx b/svtools/source/uno/registerservices.cxx index f8a4ca81759f..a034d97090b8 100644 --- a/svtools/source/uno/registerservices.cxx +++ b/svtools/source/uno/registerservices.cxx @@ -2,9 +2,9 @@ * * $RCSfile: registerservices.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2003-09-19 08:11:21 $ + * last change: $Author: kz $ $Date: 2004-10-04 19:48:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -98,6 +98,8 @@ #include <algorithm> #include <functional> +#include <hatchwindowfactory.hxx> + #define IMPL_CREATEINSTANCE( ImplName ) \ ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL ImplName##_CreateInstance( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& ) \ { return ::com::sun::star::uno::Reference < ::com::sun::star::uno::XInterface >( ( ::cppu::OWeakObject* ) new ImplName ); } @@ -290,6 +292,16 @@ sal_Bool SAL_CALL component_writeInfo( void* _pServiceManager, void* _pRegistryK xNewKey->createKey( ::rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FilterOptionsDialog" ) ); + xNewKey = xRegistryKey->createKey( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("/") ) + + OHatchWindowFactory::impl_staticGetImplementationName() + + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) ); + + const ::com::sun::star::uno::Sequence< ::rtl::OUString > rServices = + OHatchWindowFactory::impl_staticGetSupportedServiceNames(); + for( sal_Int32 ind = 0; ind < rServices.getLength(); ind++ ) + xNewKey->createKey( rServices.getConstArray()[ind] ); + + // the product registration component ::svt::RegisterImplementation( xRegistryKey, @@ -377,6 +389,14 @@ void* SAL_CALL component_getFactory( const sal_Char* sImplementationName, void* aServiceNames.getArray()[0] = ::rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FilterOptionsDialog" ); xFactory = ::cppu::createSingleFactory( xServiceManager, ::rtl::OUString::createFromAscii( sImplementationName ), SvFilterOptionsDialog_CreateInstance, aServiceNames ); } + else if ( ::rtl::OUString::createFromAscii( sImplementationName ).equals( + OHatchWindowFactory::impl_staticGetImplementationName() ) ) + { + xFactory= ::cppu::createOneInstanceFactory( xServiceManager, + OHatchWindowFactory::impl_staticGetImplementationName(), + OHatchWindowFactory::impl_staticCreateSelfInstance, + OHatchWindowFactory::impl_staticGetSupportedServiceNames() ); + } else { // a helper class which could ease the creation and make the following more readable and maintanable |