1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
21 #include "comphelper_module.hxx"
23 #include <rtl/instance.hxx>
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();
39 //........................................................................
40 namespace comphelper
{ namespace module
42 //........................................................................
51 createRegistryInfo_OPropertyBag();
52 createRegistryInfo_SequenceOutputStream();
53 createRegistryInfo_SequenceInputStream();
54 createRegistryInfo_UNOMemoryStream();
55 createRegistryInfo_IndexedPropertyValuesContainer();
56 createRegistryInfo_NamedPropertyValuesContainer();
57 createRegistryInfo_AnyCompareFactory();
58 createRegistryInfo_OfficeInstallationDirectories();
59 createRegistryInfo_OInstanceLocker();
60 createRegistryInfo_Map();
61 createRegistryInfo_OSimpleLogRing();
62 createRegistryInfo_OOfficeRestartManager();
66 struct theInitializer
: public rtl::Static
< doInitialize
, theInitializer
> {};
69 static void initializeModule()
71 theInitializer::get();
74 //........................................................................
75 } } // namespace comphelper::module
76 //........................................................................
78 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* )
82 ::comphelper::module::initializeModule();
83 return ::comphelper::module::ComphelperModule::getInstance().getComponentFactory( pImplementationName
);
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */