Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #include <cppuhelper/factory.hxx>
29 : : #include <osl/diagnose.h>
30 : : #include <cppuhelper/implementationentry.hxx>
31 : : #include "xmlfilter.hxx"
32 : : #include "xmlExport.hxx"
33 : : #include "dbloader2.hxx"
34 : : #include "xmlExportDocumentHandler.hxx"
35 : : #include "xmlImportDocumentHandler.hxx"
36 : :
37 : :
38 : : /********************************************************************************************/
39 : :
40 : : using namespace ::rptxml;
41 : : using namespace ::com::sun::star::uno;
42 : : using namespace ::com::sun::star::lang;
43 : : using namespace ::com::sun::star::registry;
44 : : /********************************************************************************************/
45 : : // registry functions
46 : : namespace
47 : : {
48 : :
49 : : cppu::ImplementationEntry entries[] = {
50 : : { &ORptFilter::create, &ORptFilter::getImplementationName_Static, &ORptFilter::getSupportedServiceNames_Static,
51 : : &cppu::createSingleComponentFactory, 0, 0 },
52 : : { &ORptTypeDetection::create, &ORptTypeDetection::getImplementationName_Static, &ORptTypeDetection::getSupportedServiceNames_Static,
53 : : &cppu::createSingleComponentFactory, 0, 0 },
54 : : { &ODBFullExportHelper::create, &ODBFullExportHelper::getImplementationName_Static, &ODBFullExportHelper::getSupportedServiceNames_Static,
55 : : &cppu::createSingleComponentFactory, 0, 0 },
56 : : { &ORptExportHelper::create, &ORptExportHelper::getImplementationName_Static, &ORptExportHelper::getSupportedServiceNames_Static,
57 : : &cppu::createSingleComponentFactory, 0, 0 },
58 : : { &ORptExport::create, &ORptExport::getImplementationName_Static, &ORptExport::getSupportedServiceNames_Static,
59 : : &cppu::createSingleComponentFactory, 0, 0 },
60 : : { &ORptContentExportHelper::create, &ORptContentExportHelper::getImplementationName_Static, &ORptContentExportHelper::getSupportedServiceNames_Static,
61 : : &cppu::createSingleComponentFactory, 0, 0 },
62 : : { &ORptStylesExportHelper::create, &ORptStylesExportHelper::getImplementationName_Static, &ORptStylesExportHelper::getSupportedServiceNames_Static,
63 : : &cppu::createSingleComponentFactory, 0, 0 },
64 : : { &ORptMetaExportHelper::create, &ORptMetaExportHelper::getImplementationName_Static, &ORptMetaExportHelper::getSupportedServiceNames_Static,
65 : : &cppu::createSingleComponentFactory, 0, 0 },
66 : :
67 : : { &ORptImportHelper::create, &ORptImportHelper::getImplementationName_Static, &ORptImportHelper::getSupportedServiceNames_Static,
68 : : &cppu::createSingleComponentFactory, 0, 0 },
69 : : { &ORptContentImportHelper::create, &ORptContentImportHelper::getImplementationName_Static, &ORptContentImportHelper::getSupportedServiceNames_Static,
70 : : &cppu::createSingleComponentFactory, 0, 0 },
71 : : { &ORptStylesImportHelper::create, &ORptStylesImportHelper::getImplementationName_Static, &ORptStylesImportHelper::getSupportedServiceNames_Static,
72 : : &cppu::createSingleComponentFactory, 0, 0 },
73 : : { &ExportDocumentHandler::create, &ExportDocumentHandler::getImplementationName_Static, &ExportDocumentHandler::getSupportedServiceNames_static,
74 : : &cppu::createSingleComponentFactory, 0, 0 },
75 : : { &ImportDocumentHandler::create, &ImportDocumentHandler::getImplementationName_Static, &ImportDocumentHandler::getSupportedServiceNames_static,
76 : : &cppu::createSingleComponentFactory, 0, 0 },
77 : : { &ORptMetaImportHelper::create, &ORptMetaImportHelper::getImplementationName_Static, &ORptMetaImportHelper::getSupportedServiceNames_Static,
78 : : &cppu::createSingleComponentFactory, 0, 0 },
79 : : { 0, 0, 0, 0, 0, 0 }
80 : : };
81 : : }
82 : :
83 : 6 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL rptxml_component_getFactory(
84 : : char const * implName, void * serviceManager, void * registryKey)
85 : : {
86 : : return cppu::component_getFactoryHelper(
87 : 6 : implName, serviceManager, registryKey, entries);
88 : : }
89 : :
90 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|