Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Global Functions in Namespace cppu
in Sourcefile shlib.hxx


loadSharedLibComponentFactory
::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > loadSharedLibComponentFactory(
const ::rtl::OUString & rLibName,
const ::rtl::OUString & rPath,
const ::rtl::OUString & rImplName,
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMgr,
const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & xKey )
throw( ::com::sun::star::loader::CannotActivateFactoryException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

Description
Loads a shared library component and gets the factory out of it. You can give either a fully qualified libname or single lib name. The libname need not be pre/postfixed (e.g. xxx.dll). You can give parameter rPath to force lookup of the library in a specific directory. The resulting path of the library will be checked against environment variable CPLD_ACCESSPATH if set.
Parameters
rLibName
name of the library
rPath
optional path
rImplName
implementation to be retrieved from the library
xMgr
service manager to be provided to the component
xKey
registry key to be provided to the component
Return
factory instance (::com::sun::star::lang::XSingleComponentFactory or ::com::sun::star::lang::XSingleComponentFactory)

writeSharedLibComponentInfo
void writeSharedLibComponentInfo(
const ::rtl::OUString & rLibName,
const ::rtl::OUString & rPath,
const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xMgr,
const ::com::sun::star::uno::Reference< ::com::sun::star::registry::XRegistryKey > & xKey )
throw( ::com::sun::star::registry::CannotRegisterImplementationException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO NO

D E P R E C A T E D
Description
Invokes component_writeInfo() function of specified component library. You can give either a fully qualified libname or single lib name. The libname need not be pre/postfixed (e.g. xxx.dll). You can give parameter rPath to force lookup of the library in a specific directory. The resulting path of the library will be checked against environment variable CPLD_ACCESSPATH if set. component_writeInfo should no longer be used in new components
Parameters
rLibName
name of the library
rPath
optional path
xMgr
service manager to be provided to the component
xKey
registry key to be provided to the component

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.