Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #include <cppuhelper/factory.hxx>
20 : #include <osl/diagnose.h>
21 : #include <cppuhelper/implementationentry.hxx>
22 : #include "xmlfilter.hxx"
23 : #include "xmlExport.hxx"
24 : #include "dbloader2.hxx"
25 : #include "xmlExportDocumentHandler.hxx"
26 : #include "xmlImportDocumentHandler.hxx"
27 :
28 :
29 : /********************************************************************************************/
30 :
31 : using namespace ::rptxml;
32 : using namespace ::com::sun::star::uno;
33 : using namespace ::com::sun::star::lang;
34 : using namespace ::com::sun::star::registry;
35 : /********************************************************************************************/
36 : // registry functions
37 : namespace
38 : {
39 :
40 : cppu::ImplementationEntry entries[] = {
41 : { &ORptFilter::create, &ORptFilter::getImplementationName_Static, &ORptFilter::getSupportedServiceNames_Static,
42 : &cppu::createSingleComponentFactory, 0, 0 },
43 : { &ORptTypeDetection::create, &ORptTypeDetection::getImplementationName_Static, &ORptTypeDetection::getSupportedServiceNames_Static,
44 : &cppu::createSingleComponentFactory, 0, 0 },
45 : { &ODBFullExportHelper::create, &ODBFullExportHelper::getImplementationName_Static, &ODBFullExportHelper::getSupportedServiceNames_Static,
46 : &cppu::createSingleComponentFactory, 0, 0 },
47 : { &ORptExportHelper::create, &ORptExportHelper::getImplementationName_Static, &ORptExportHelper::getSupportedServiceNames_Static,
48 : &cppu::createSingleComponentFactory, 0, 0 },
49 : { &ORptExport::create, &ORptExport::getImplementationName_Static, &ORptExport::getSupportedServiceNames_Static,
50 : &cppu::createSingleComponentFactory, 0, 0 },
51 : { &ORptContentExportHelper::create, &ORptContentExportHelper::getImplementationName_Static, &ORptContentExportHelper::getSupportedServiceNames_Static,
52 : &cppu::createSingleComponentFactory, 0, 0 },
53 : { &ORptStylesExportHelper::create, &ORptStylesExportHelper::getImplementationName_Static, &ORptStylesExportHelper::getSupportedServiceNames_Static,
54 : &cppu::createSingleComponentFactory, 0, 0 },
55 : { &ORptMetaExportHelper::create, &ORptMetaExportHelper::getImplementationName_Static, &ORptMetaExportHelper::getSupportedServiceNames_Static,
56 : &cppu::createSingleComponentFactory, 0, 0 },
57 :
58 : { &ORptImportHelper::create, &ORptImportHelper::getImplementationName_Static, &ORptImportHelper::getSupportedServiceNames_Static,
59 : &cppu::createSingleComponentFactory, 0, 0 },
60 : { &ORptContentImportHelper::create, &ORptContentImportHelper::getImplementationName_Static, &ORptContentImportHelper::getSupportedServiceNames_Static,
61 : &cppu::createSingleComponentFactory, 0, 0 },
62 : { &ORptStylesImportHelper::create, &ORptStylesImportHelper::getImplementationName_Static, &ORptStylesImportHelper::getSupportedServiceNames_Static,
63 : &cppu::createSingleComponentFactory, 0, 0 },
64 : { &ExportDocumentHandler::create, &ExportDocumentHandler::getImplementationName_Static, &ExportDocumentHandler::getSupportedServiceNames_static,
65 : &cppu::createSingleComponentFactory, 0, 0 },
66 : { &ImportDocumentHandler::create, &ImportDocumentHandler::getImplementationName_Static, &ImportDocumentHandler::getSupportedServiceNames_static,
67 : &cppu::createSingleComponentFactory, 0, 0 },
68 : { &ORptMetaImportHelper::create, &ORptMetaImportHelper::getImplementationName_Static, &ORptMetaImportHelper::getSupportedServiceNames_Static,
69 : &cppu::createSingleComponentFactory, 0, 0 },
70 : { 0, 0, 0, 0, 0, 0 }
71 : };
72 : }
73 :
74 0 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL rptxml_component_getFactory(
75 : char const * implName, void * serviceManager, void * registryKey)
76 : {
77 : return cppu::component_getFactoryHelper(
78 0 : implName, serviceManager, registryKey, entries);
79 : }
80 :
81 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|