Branch data 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 : :
20 : :
21 : : #include <cppuhelper/implementationentry.hxx>
22 : :
23 : : using namespace ::rtl;
24 : : using namespace ::com::sun::star::uno;
25 : :
26 : :
27 : : // =============================================================================
28 : :
29 : : namespace xmlscript
30 : : {
31 : : Sequence< OUString > SAL_CALL getSupportedServiceNames_DocumentHandlerImpl();
32 : : OUString SAL_CALL getImplementationName_DocumentHandlerImpl();
33 : : Reference< XInterface > SAL_CALL create_DocumentHandlerImpl(
34 : : Reference< XComponentContext > const & xContext )
35 : : SAL_THROW( (Exception) );
36 : :
37 : : Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLBasicExporter();
38 : : OUString SAL_CALL getImplementationName_XMLBasicExporter();
39 : : Reference< XInterface > SAL_CALL create_XMLBasicExporter(
40 : : Reference< XComponentContext > const & xContext )
41 : : SAL_THROW( (Exception) );
42 : :
43 : : Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLOasisBasicExporter();
44 : : OUString SAL_CALL getImplementationName_XMLOasisBasicExporter();
45 : : Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter(
46 : : Reference< XComponentContext > const & xContext )
47 : : SAL_THROW( (Exception) );
48 : :
49 : : Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLBasicImporter();
50 : : OUString SAL_CALL getImplementationName_XMLBasicImporter();
51 : : Reference< XInterface > SAL_CALL create_XMLBasicImporter(
52 : : Reference< XComponentContext > const & xContext )
53 : : SAL_THROW( (Exception) );
54 : :
55 : : Sequence< OUString > SAL_CALL getSupportedServiceNames_XMLOasisBasicImporter();
56 : : OUString SAL_CALL getImplementationName_XMLOasisBasicImporter();
57 : : Reference< XInterface > SAL_CALL create_XMLOasisBasicImporter(
58 : : Reference< XComponentContext > const & xContext )
59 : : SAL_THROW( (Exception) );
60 : :
61 : : // -----------------------------------------------------------------------------
62 : :
63 : : static struct ::cppu::ImplementationEntry s_entries [] =
64 : : {
65 : : {
66 : : create_DocumentHandlerImpl, getImplementationName_DocumentHandlerImpl,
67 : : getSupportedServiceNames_DocumentHandlerImpl, ::cppu::createSingleComponentFactory,
68 : : 0, 0
69 : : },
70 : : {
71 : : create_XMLBasicExporter, getImplementationName_XMLBasicExporter,
72 : : getSupportedServiceNames_XMLBasicExporter, ::cppu::createSingleComponentFactory,
73 : : 0, 0
74 : : },
75 : : {
76 : : create_XMLOasisBasicExporter, getImplementationName_XMLOasisBasicExporter,
77 : : getSupportedServiceNames_XMLOasisBasicExporter, ::cppu::createSingleComponentFactory,
78 : : 0, 0
79 : : },
80 : : {
81 : : create_XMLBasicImporter, getImplementationName_XMLBasicImporter,
82 : : getSupportedServiceNames_XMLBasicImporter, ::cppu::createSingleComponentFactory,
83 : : 0, 0
84 : : },
85 : : {
86 : : create_XMLOasisBasicImporter, getImplementationName_XMLOasisBasicImporter,
87 : : getSupportedServiceNames_XMLOasisBasicImporter, ::cppu::createSingleComponentFactory,
88 : : 0, 0
89 : : },
90 : : { 0, 0, 0, 0, 0, 0 }
91 : : };
92 : : }
93 : :
94 : : // =============================================================================
95 : :
96 : : extern "C"
97 : : {
98 : 2 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL xmlscript_component_getFactory(
99 : : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
100 : : {
101 : : return ::cppu::component_getFactoryHelper(
102 : 2 : pImplName, pServiceManager, pRegistryKey, ::xmlscript::s_entries );
103 : : }
104 : : }
105 : :
106 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|