diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:15:51 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2008-07-17 14:15:51 +0000 |
commit | 0c70ef4a7d17fead8be653f70529b827f972d043 (patch) | |
tree | 9267825bd2bb694a0359d6f8fb81eea0dbbb6b2d | |
parent | c69baec86016554c5e2b545b4871ee63c254b3b1 (diff) |
INTEGRATION: CWS logger2 (1.1.2); FILE ADDED
2008/06/11 10:48:16 b_michaelsen 1.1.2.1: #i88653# liboooimprovecore implements the uno interface for the core components (com.sun.star.oooimprovecore.core)
-rw-r--r-- | extensions/source/oooimprovecore/oooimprovecore_services.cxx | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/extensions/source/oooimprovecore/oooimprovecore_services.cxx b/extensions/source/oooimprovecore/oooimprovecore_services.cxx new file mode 100644 index 000000000000..eecbd8bde7c6 --- /dev/null +++ b/extensions/source/oooimprovecore/oooimprovecore_services.cxx @@ -0,0 +1,55 @@ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2008 by Sun Microsystems, Inc. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: oooimprovecore_services.cxx,v $ + * $Revision: 1.2 $ + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + +// MARKER(update_precomp.py): autogen include statement, do not remove +#include "precompiled_extensions.hxx" + +#include "oooimprovecore_module.hxx" + +namespace oooimprovecore +{ + extern void createRegistryInfo_Core(); + + static void initializeModule() + { + static bool bInitialized(false); + if (!bInitialized) + { + ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); + if (!bInitialized) + { + createRegistryInfo_Core(); + } + } + } + +} + +IMPLEMENT_COMPONENT_LIBRARY_API( ::oooimprovecore::OooimprovecoreModule, ::oooimprovecore::initializeModule) |