diff options
author | Anders Jonsson <anders.jonsson@norsjonet.se> | 2011-01-08 13:57:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-09 20:36:58 +0000 |
commit | 7b0075d0c802f06f97a006b2d80b4c0343c0811c (patch) | |
tree | 57f328ea43889ffe2481dd67b7c075ef82631b01 /odk | |
parent | e28997ddede46b619f8f64a66c18cbc1e4e92dc3 (diff) |
Remove block of commented code
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx index 23c2cd4a38c9..c5cb74f5c3b2 100644 --- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx +++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx @@ -244,68 +244,4 @@ Reference< XInterface > SAL_CALL create_MyService2Impl( } -/* -extern "C" void SAL_CALL component_getImplementationEnvironment( - sal_Char const ** ppEnvTypeName, uno_Environment ** ) -{ - *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; -} - -extern "C" sal_Bool SAL_CALL component_writeInfo( - lang::XMultiServiceFactory * xMgr, registry::XRegistryKey * xRegistry ) -{ - if (xRegistry) - { - try - { - // implementation of MyService1A - Reference< registry::XRegistryKey > xKey( - xRegistry->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( - "my_module.my_sc_implementation.MyService1/UNO/SERVICES") ) ) ); - // subkeys denote implemented services of implementation - xKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( - "my_module.MyService1") ) ); - // implementation of MyService1B - xKey = xRegistry->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( - "my_module.my_sc_implementation.MyService2/UNO/SERVICES") ) ); - // subkeys denote implemented services of implementation - xKey->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( - "my_module.MyService2") ) ); - return sal_True; // success - } - catch (registry::InvalidRegistryException &) - { - // function fails if exception caught - } - } - return sal_False; -} -extern "C" void * SAL_CALL component_getFactory( - sal_Char const * implName, lang::XMultiServiceFactory * xMgr, void * ) -{ - Reference< lang::XSingleComponentFactory > xFactory; - if (0 == ::rtl_str_compare( implName, "my_module.my_sc_implementation.MyService1" )) - { - // create component factory for MyService1 implementation - OUString serviceName( RTL_CONSTASCII_USTRINGPARAM("my_module.MyService1") ); - xFactory = ::cppu::createSingleComponentFactory( - ::my_sc_impl::create_MyService1Impl, - OUString( RTL_CONSTASCII_USTRINGPARAM("my_module.my_sc_implementation.MyService1") ), - Sequence< OUString >( &serviceName, 1 ) ); - } - else if (0 == ::rtl_str_compare( implName, "my_module.my_sc_implementation.MyService2" )) - { - // create component factory for MyService12 implementation - OUString serviceName( RTL_CONSTASCII_USTRINGPARAM("my_module.MyService2") ); - xFactory = ::cppu::createSingleComponentFactory( - ::my_sc_impl::create_MyService2Impl, - OUString( RTL_CONSTASCII_USTRINGPARAM("my_module.my_sc_implementation.MyService2") ), - Sequence< OUString >( &serviceName, 1 ) ); - } - if (xFactory.is()) - xFactory->acquire(); - return xFactory.get(); // return acquired interface pointer or null -} -*/ - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |