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 "comphelper_module.hxx"
22 : :
23 : : #include <rtl/instance.hxx>
24 : :
25 : : //--------------------------------------------------------------------
26 : : extern void createRegistryInfo_OPropertyBag();
27 : : extern void createRegistryInfo_SequenceOutputStream();
28 : : extern void createRegistryInfo_SequenceInputStream();
29 : : extern void createRegistryInfo_UNOMemoryStream();
30 : : extern void createRegistryInfo_IndexedPropertyValuesContainer();
31 : : extern void createRegistryInfo_NamedPropertyValuesContainer();
32 : : extern void createRegistryInfo_AnyCompareFactory();
33 : : extern void createRegistryInfo_OfficeInstallationDirectories();
34 : : extern void createRegistryInfo_OInstanceLocker();
35 : : extern void createRegistryInfo_Map();
36 : : extern void createRegistryInfo_OSimpleLogRing();
37 : : extern void createRegistryInfo_OOfficeRestartManager();
38 : :
39 : : //........................................................................
40 : : namespace comphelper { namespace module
41 : : {
42 : : //........................................................................
43 : :
44 : : namespace
45 : : {
46 : : class doInitialize
47 : : {
48 : : public:
49 : 227 : doInitialize()
50 : : {
51 : 227 : createRegistryInfo_OPropertyBag();
52 : 227 : createRegistryInfo_SequenceOutputStream();
53 : 227 : createRegistryInfo_SequenceInputStream();
54 : 227 : createRegistryInfo_UNOMemoryStream();
55 : 227 : createRegistryInfo_IndexedPropertyValuesContainer();
56 : 227 : createRegistryInfo_NamedPropertyValuesContainer();
57 : 227 : createRegistryInfo_AnyCompareFactory();
58 : 227 : createRegistryInfo_OfficeInstallationDirectories();
59 : 227 : createRegistryInfo_OInstanceLocker();
60 : 227 : createRegistryInfo_Map();
61 : 227 : createRegistryInfo_OSimpleLogRing();
62 : 227 : createRegistryInfo_OOfficeRestartManager();
63 : 227 : }
64 : : };
65 : :
66 : : struct theInitializer : public rtl::Static< doInitialize, theInitializer > {};
67 : : }
68 : :
69 : 671 : static void initializeModule()
70 : : {
71 : 671 : theInitializer::get();
72 : 671 : }
73 : :
74 : : //........................................................................
75 : : } } // namespace comphelper::module
76 : : //........................................................................
77 : :
78 : 671 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL comphelp_component_getFactory(
79 : : const sal_Char* pImplementationName, SAL_UNUSED_PARAMETER void*,
80 : : SAL_UNUSED_PARAMETER void* )
81 : : {
82 : 671 : ::comphelper::module::initializeModule();
83 : 671 : return ::comphelper::module::ComphelperModule::getInstance().getComponentFactory( pImplementationName );
84 : : }
85 : :
86 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|