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 "bootstrapservices.hxx"
22 :
23 : #include "cppuhelper/factory.hxx"
24 : #include "cppuhelper/implementationentry.hxx"
25 : #include "sal/types.h"
26 : #include "uno/environment.h"
27 : #include "uno/lbnames.h"
28 :
29 : #include <stdio.h>
30 :
31 : using namespace com::sun::star;
32 : using namespace com::sun::star::uno;
33 : using namespace cppu;
34 : using namespace osl;
35 :
36 : using namespace stoc_bootstrap;
37 :
38 : static struct ImplementationEntry g_entries[] =
39 : {
40 : //servicemanager
41 : {
42 : OServiceManager_CreateInstance, smgr_getImplementationName,
43 : smgr_getSupportedServiceNames, createSingleComponentFactory,
44 : 0, 0
45 : },
46 : {
47 : ORegistryServiceManager_CreateInstance, regsmgr_getImplementationName,
48 : regsmgr_getSupportedServiceNames, createSingleComponentFactory,
49 : 0, 0
50 : },
51 : {
52 : OServiceManagerWrapper_CreateInstance, smgr_wrapper_getImplementationName,
53 : smgr_wrapper_getSupportedServiceNames, createSingleComponentFactory,
54 : 0, 0
55 : },
56 : //security
57 : {
58 : ac_create, ac_getImplementationName,
59 : ac_getSupportedServiceNames, createSingleComponentFactory,
60 : 0, 0
61 : },
62 : {
63 : filepolicy_create, filepolicy_getImplementationName,
64 : filepolicy_getSupportedServiceNames, createSingleComponentFactory,
65 : 0, 0
66 : },
67 : //simpleregistry
68 : {
69 : SimpleRegistry_CreateInstance, simreg_getImplementationName,
70 : simreg_getSupportedServiceNames, createSingleComponentFactory,
71 : 0, 0
72 : },
73 : //defaultregistry
74 : {
75 : NestedRegistry_CreateInstance, defreg_getImplementationName,
76 : defreg_getSupportedServiceNames, createSingleComponentFactory,
77 : 0, 0
78 : },
79 : //implementationregistry
80 : {
81 : ImplementationRegistration_CreateInstance, impreg_getImplementationName,
82 : impreg_getSupportedServiceNames, createSingleComponentFactory,
83 : 0, 0
84 : },
85 : //loader
86 : {
87 : DllComponentLoader_CreateInstance, loader_getImplementationName,
88 : loader_getSupportedServiceNames, createSingleComponentFactory,
89 : 0, 0
90 : },
91 : //registry_tdprovider
92 : {
93 : ProviderImpl_create, rdbtdp_getImplementationName,
94 : rdbtdp_getSupportedServiceNames, createSingleComponentFactory,
95 : 0, 0
96 : },
97 : //end
98 : { 0, 0, 0, 0, 0, 0 }
99 : };
100 :
101 : #define component_getFactory bootstrap_component_getFactory
102 :
103 7 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
104 : const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
105 : {
106 7 : return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
107 : }
108 :
109 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|