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