1 /**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23 #include "precompiled_rptxml.hxx"
24 #include <cppuhelper/factory.hxx>
25 #include <osl/diagnose.h>
26 #include <cppuhelper/implementationentry.hxx>
27 #include "xmlfilter.hxx"
28 #include "xmlExport.hxx"
29 #include "dbloader2.hxx"
30 #include "xmlExportDocumentHandler.hxx"
31 #include "xmlImportDocumentHandler.hxx"
32
33
34 /********************************************************************************************/
35
36 using namespace ::rptxml;
37 using namespace ::com::sun::star::uno;
38 using namespace ::com::sun::star::lang;
39 using namespace ::com::sun::star::registry;
40 /********************************************************************************************/
41 // registry functions
42 namespace
43 {
44
45 cppu::ImplementationEntry entries[] = {
46 { &ORptFilter::create, &ORptFilter::getImplementationName_Static, &ORptFilter::getSupportedServiceNames_Static,
47 &cppu::createSingleComponentFactory, 0, 0 },
48 { &ORptTypeDetection::create, &ORptTypeDetection::getImplementationName_Static, &ORptTypeDetection::getSupportedServiceNames_Static,
49 &cppu::createSingleComponentFactory, 0, 0 },
50 { &ODBFullExportHelper::create, &ODBFullExportHelper::getImplementationName_Static, &ODBFullExportHelper::getSupportedServiceNames_Static,
51 &cppu::createSingleComponentFactory, 0, 0 },
52 { &ORptExportHelper::create, &ORptExportHelper::getImplementationName_Static, &ORptExportHelper::getSupportedServiceNames_Static,
53 &cppu::createSingleComponentFactory, 0, 0 },
54 { &ORptExport::create, &ORptExport::getImplementationName_Static, &ORptExport::getSupportedServiceNames_Static,
55 &cppu::createSingleComponentFactory, 0, 0 },
56 { &ORptContentExportHelper::create, &ORptContentExportHelper::getImplementationName_Static, &ORptContentExportHelper::getSupportedServiceNames_Static,
57 &cppu::createSingleComponentFactory, 0, 0 },
58 { &ORptStylesExportHelper::create, &ORptStylesExportHelper::getImplementationName_Static, &ORptStylesExportHelper::getSupportedServiceNames_Static,
59 &cppu::createSingleComponentFactory, 0, 0 },
60 { &ORptMetaExportHelper::create, &ORptMetaExportHelper::getImplementationName_Static, &ORptMetaExportHelper::getSupportedServiceNames_Static,
61 &cppu::createSingleComponentFactory, 0, 0 },
62
63 { &ORptImportHelper::create, &ORptImportHelper::getImplementationName_Static, &ORptImportHelper::getSupportedServiceNames_Static,
64 &cppu::createSingleComponentFactory, 0, 0 },
65 { &ORptContentImportHelper::create, &ORptContentImportHelper::getImplementationName_Static, &ORptContentImportHelper::getSupportedServiceNames_Static,
66 &cppu::createSingleComponentFactory, 0, 0 },
67 { &ORptStylesImportHelper::create, &ORptStylesImportHelper::getImplementationName_Static, &ORptStylesImportHelper::getSupportedServiceNames_Static,
68 &cppu::createSingleComponentFactory, 0, 0 },
69 { &ExportDocumentHandler::create, &ExportDocumentHandler::getImplementationName_Static, &ExportDocumentHandler::getSupportedServiceNames_static,
70 &cppu::createSingleComponentFactory, 0, 0 },
71 { &ImportDocumentHandler::create, &ImportDocumentHandler::getImplementationName_Static, &ImportDocumentHandler::getSupportedServiceNames_static,
72 &cppu::createSingleComponentFactory, 0, 0 },
73 { &ORptMetaImportHelper::create, &ORptMetaImportHelper::getImplementationName_Static, &ORptMetaImportHelper::getSupportedServiceNames_Static,
74 &cppu::createSingleComponentFactory, 0, 0 },
75 { 0, 0, 0, 0, 0, 0 }
76 };
77 }
78
component_getFactory(char const * implName,void * serviceManager,void * registryKey)79 extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
80 char const * implName, void * serviceManager, void * registryKey)
81 {
82 return cppu::component_getFactoryHelper(
83 implName, serviceManager, registryKey, entries);
84 }
85
component_getImplementationEnvironment(char const ** envTypeName,uno_Environment **)86 extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
87 char const ** envTypeName, uno_Environment **)
88 {
89 *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
90 }
91