diff options
author | Sven Jacobi <sj@openoffice.org> | 2002-04-11 12:14:55 +0000 |
---|---|---|
committer | Sven Jacobi <sj@openoffice.org> | 2002-04-11 12:14:55 +0000 |
commit | 5105df20d60d661b22a5ec81884fa80fd74a72a6 (patch) | |
tree | 577b20745966670d9f1cabf8e7fa7198210ddc92 /svtools/source/uno | |
parent | 9175ab3545ac0e945c7132870dd5c2c2115ad255 (diff) |
#98423# implementing service for graphic filter dialogs
Diffstat (limited to 'svtools/source/uno')
-rw-r--r-- | svtools/source/uno/registerservices.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/svtools/source/uno/registerservices.cxx b/svtools/source/uno/registerservices.cxx index f98cdebf1dc2..bbbe1e6c0568 100644 --- a/svtools/source/uno/registerservices.cxx +++ b/svtools/source/uno/registerservices.cxx @@ -2,9 +2,9 @@ * * $RCSfile: registerservices.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: fs $ $Date: 2001-12-20 13:21:50 $ + * last change: $Author: sj $ $Date: 2002-04-11 13:03:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -127,6 +127,7 @@ DECLARE_CREATEINSTANCE( SvNumberFormatsSupplierServiceObject ) DECLARE_CREATEINSTANCE( ImageProducer ) DECLARE_CREATEINSTANCE_NAMESPACE( svt, OAddressBookSourceDialogUno ) +DECLARE_CREATEINSTANCE( SvFilterOptionsDialog ) IMPL_CREATEINSTANCE( ImageProducer ); @@ -277,6 +278,10 @@ sal_Bool SAL_CALL component_writeInfo( void* _pServiceManager, void* _pRegistryK xNewKey = xRegistryKey->createKey( ::rtl::OUString::createFromAscii( "/com.sun.star.svtools.FolderPicker/UNO/SERVICES" ) ); xNewKey->createKey( ::rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FolderPicker" ) ); + xNewKey = xRegistryKey->createKey( ::rtl::OUString::createFromAscii( "/com.sun.star.svtools.SvFilterOptionsDialog/UNO/SERVICES" ) ); + xNewKey->createKey( ::rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FilterOptionsDialog" ) ); + + // the product registration component ::svt::RegisterImplementation( xRegistryKey, @@ -334,6 +339,12 @@ void* SAL_CALL component_getFactory( const sal_Char* sImplementationName, void* SvtFolderPicker::impl_createInstance, aServiceNames ); } + else if ( rtl_str_compare( sImplementationName, "com.sun.star.svtools.SvFilterOptionsDialog") == 0 ) + { + ::com::sun::star::uno::Sequence< ::rtl::OUString > aServiceNames(1); + aServiceNames.getArray()[0] = ::rtl::OUString::createFromAscii( "com.sun.star.ui.dialogs.FilterOptionsDialog" ); + xFactory = ::cppu::createSingleFactory( xServiceManager, ::rtl::OUString::createFromAscii( sImplementationName ), SvFilterOptionsDialog_CreateInstance, aServiceNames ); + } else { // a helper class which could ease the creation and make the following more readable and maintanable |