Update ooo320-m1
[ooovba.git] / desktop / source / deployment / dp_services.cxx
blobd981533382df3b49f41318801a784658350ef448
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: dp_services.cxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_desktop.hxx"
34 #define COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS 11
35 #include "comphelper/servicedecl.hxx"
37 using namespace com::sun::star;
38 namespace sdecl = comphelper::service_decl;
40 namespace dp_registry {
41 namespace backend {
43 namespace configuration {
44 extern sdecl::ServiceDecl const serviceDecl;
47 namespace component {
48 extern sdecl::ServiceDecl const serviceDecl;
51 namespace script {
52 extern sdecl::ServiceDecl const serviceDecl;
55 namespace sfwk {
56 extern sdecl::ServiceDecl const serviceDecl;
59 namespace help {
60 extern sdecl::ServiceDecl const serviceDecl;
63 namespace executable {
64 extern sdecl::ServiceDecl const serviceDecl;
67 } // namespace backend
68 } // namespace dp_registry
70 namespace dp_manager {
71 namespace factory {
72 extern sdecl::ServiceDecl const serviceDecl;
73 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
77 namespace dp_log {
78 extern sdecl::ServiceDecl const serviceDecl;
81 namespace dp_migration {
82 extern sdecl::ServiceDecl const serviceDecl;
85 namespace dp_info {
86 extern sdecl::ServiceDecl const serviceDecl;
87 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
90 extern "C" {
92 struct uno_Environment;
94 void SAL_CALL component_getImplementationEnvironment(
95 const sal_Char ** ppEnvTypeName, uno_Environment ** )
97 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
100 sal_Bool SAL_CALL component_writeInfo(
101 lang::XMultiServiceFactory * pServiceManager,
102 registry::XRegistryKey * pRegistryKey )
104 return component_writeInfoHelper(
105 pServiceManager, pRegistryKey,
106 dp_registry::backend::configuration::serviceDecl,
107 dp_registry::backend::component::serviceDecl,
108 dp_registry::backend::help::serviceDecl,
109 dp_registry::backend::script::serviceDecl,
110 dp_registry::backend::sfwk::serviceDecl,
111 dp_registry::backend::executable::serviceDecl,
112 dp_manager::factory::serviceDecl,
113 dp_log::serviceDecl,
114 dp_migration::serviceDecl,
115 dp_info::serviceDecl ) &&
116 dp_manager::factory::singleton_entries( pRegistryKey ) &&
117 dp_info::singleton_entries( pRegistryKey );
120 void * SAL_CALL component_getFactory(
121 sal_Char const * pImplName,
122 lang::XMultiServiceFactory * pServiceManager,
123 registry::XRegistryKey * pRegistryKey )
125 return component_getFactoryHelper(
126 pImplName, pServiceManager, pRegistryKey,
127 dp_registry::backend::configuration::serviceDecl,
128 dp_registry::backend::component::serviceDecl,
129 dp_registry::backend::help::serviceDecl,
130 dp_registry::backend::script::serviceDecl,
131 dp_registry::backend::sfwk::serviceDecl,
132 dp_registry::backend::executable::serviceDecl,
133 dp_manager::factory::serviceDecl,
134 dp_log::serviceDecl,
135 dp_migration::serviceDecl,
136 dp_info::serviceDecl );
139 } // extern "C"