diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-13 07:53:24 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-13 07:53:24 +0000 |
commit | 7c39e355bc3cb2be06cfaef89d01bee67a0e2591 (patch) | |
tree | 747c752547da85801be815caba988ff88cf9d881 /fpicker/source/office/fps_office.cxx | |
parent | 05d70d705f0b28fdda7b7cd4697e28c009260394 (diff) |
INTEGRATION: CWS visibility03 (1.1.2); FILE ADDED
2005/03/24 16:44:06 mhu 1.1.2.1: #i45006# Factored out and moved from svtools/source/filepicker/
Diffstat (limited to 'fpicker/source/office/fps_office.cxx')
-rw-r--r-- | fpicker/source/office/fps_office.cxx | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/fpicker/source/office/fps_office.cxx b/fpicker/source/office/fps_office.cxx new file mode 100644 index 000000000000..05f5e2d435eb --- /dev/null +++ b/fpicker/source/office/fps_office.cxx @@ -0,0 +1,52 @@ + +#ifndef _SAL_TYPES_H_ +#include "sal/types.h" +#endif + +#ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_ +#include "cppuhelper/implementationentry.hxx" +#endif + +#include "OfficeFilePicker.hxx" +#include "OfficeFolderPicker.hxx" + +static cppu::ImplementationEntry g_entries[] = +{ + { + SvtFilePicker::impl_createInstance, + SvtFilePicker::impl_getStaticImplementationName, + SvtFilePicker::impl_getStaticSupportedServiceNames, + cppu::createSingleComponentFactory, 0, 0 + }, + { + SvtFolderPicker::impl_createInstance, + SvtFolderPicker::impl_getStaticImplementationName, + SvtFolderPicker::impl_getStaticSupportedServiceNames, + cppu::createSingleComponentFactory, 0, 0 + }, + { 0, 0, 0, 0, 0, 0 } +}; + +extern "C" +{ +SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment ( + const sal_Char ** ppEnvTypeName, uno_Environment ** /* ppEnv */) +{ + *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; +} + +SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo ( + void * pServiceManager, void * pRegistryKey) +{ + return cppu::component_writeInfoHelper ( + pServiceManager, pRegistryKey, g_entries); +} + +SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory ( + const sal_Char * pImplementationName, void * pServiceManager, void * pRegistryKey) +{ + return cppu::component_getFactoryHelper ( + pImplementationName, pServiceManager, pRegistryKey, g_entries); +} + +} // extern "C" |