Update ooo320-m1
[ooovba.git] / comphelper / source / misc / comphelper_services.cxx
blobb6b8b6dd436d1a9b5bdface948db1f05b0104fa9
1 /*************************************************************************
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3 *
4 * Copyright 2009 by Sun Microsystems, Inc.
6 * OpenOffice.org - a multi-platform office productivity suite
8 * This file is part of OpenOffice.org.
10 * OpenOffice.org is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License version 3
12 * only, as published by the Free Software Foundation.
14 * OpenOffice.org is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License version 3 for more details
18 * (a copy is included in the LICENSE file that accompanied this code).
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with OpenOffice.org. If not, see
22 * <http://www.openoffice.org/license.html>
23 * for a copy of the LGPLv3 License.
24 ************************************************************************/
26 // MARKER(update_precomp.py): autogen include statement, do not remove
27 #include "precompiled_comphelper.hxx"
29 #include "comphelper_module.hxx"
31 //--------------------------------------------------------------------
32 extern void createRegistryInfo_OPropertyBag();
33 extern void createRegistryInfo_SequenceOutputStream();
34 extern void createRegistryInfo_SequenceInputStream();
35 extern void createRegistryInfo_UNOMemoryStream();
36 extern void createRegistryInfo_IndexedPropertyValuesContainer();
37 extern void createRegistryInfo_NamedPropertyValuesContainer();
38 extern void createRegistryInfo_AnyCompareFactory();
39 extern void createRegistryInfo_OfficeInstallationDirectories();
40 extern void createRegistryInfo_OInstanceLocker();
41 extern void createRegistryInfo_Map();
43 //........................................................................
44 namespace comphelper { namespace module
46 //........................................................................
48 static void initializeModule()
50 static bool bInitialized( false );
51 if ( !bInitialized )
53 ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
54 if ( !bInitialized )
56 createRegistryInfo_OPropertyBag();
57 createRegistryInfo_SequenceOutputStream();
58 createRegistryInfo_SequenceInputStream();
59 createRegistryInfo_UNOMemoryStream();
60 createRegistryInfo_IndexedPropertyValuesContainer();
61 createRegistryInfo_NamedPropertyValuesContainer();
62 createRegistryInfo_AnyCompareFactory();
63 createRegistryInfo_OfficeInstallationDirectories();
64 createRegistryInfo_OInstanceLocker();
65 createRegistryInfo_Map();
70 //........................................................................
71 } } // namespace comphelper::module
72 //........................................................................
74 IMPLEMENT_COMPONENT_LIBRARY_API( ::comphelper::module::ComphelperModule, ::comphelper::module::initializeModule )