1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_desktop.hxx"
30 
31 #define COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS 12
32 #include "comphelper/servicedecl.hxx"
33 
34 using namespace com::sun::star;
35 namespace sdecl = comphelper::service_decl;
36 
37 namespace dp_registry {
38 namespace backend {
39 
40 namespace configuration {
41 extern sdecl::ServiceDecl const serviceDecl;
42 }
43 
44 namespace component {
45 extern sdecl::ServiceDecl const serviceDecl;
46 }
47 
48 namespace script {
49 extern sdecl::ServiceDecl const serviceDecl;
50 }
51 
52 namespace sfwk {
53 extern sdecl::ServiceDecl const serviceDecl;
54 }
55 
56 namespace help {
57 extern sdecl::ServiceDecl const serviceDecl;
58 }
59 
60 namespace executable {
61 extern sdecl::ServiceDecl const serviceDecl;
62 }
63 
64 } // namespace backend
65 } // namespace dp_registry
66 
67 namespace dp_manager {
68 namespace factory {
69 extern sdecl::ServiceDecl const serviceDecl;
70 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
71 }
72 extern sdecl::ServiceDecl const serviceDecl;
73 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
74 }
75 
76 namespace dp_log {
77 extern sdecl::ServiceDecl const serviceDecl;
78 }
79 
80 namespace dp_info {
81 extern sdecl::ServiceDecl const serviceDecl;
82 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& );
83 }
84 
85 extern "C" {
86 
87 void SAL_CALL component_getImplementationEnvironment(
88     const sal_Char ** ppEnvTypeName, uno_Environment ** )
89 {
90     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
91 }
92 
93 void * SAL_CALL component_getFactory(
94     sal_Char const * pImplName,
95     lang::XMultiServiceFactory * pServiceManager,
96     registry::XRegistryKey * pRegistryKey )
97 {
98     return component_getFactoryHelper(
99         pImplName, pServiceManager, pRegistryKey,
100         dp_registry::backend::configuration::serviceDecl,
101         dp_registry::backend::component::serviceDecl,
102         dp_registry::backend::help::serviceDecl,
103         dp_registry::backend::script::serviceDecl,
104         dp_registry::backend::sfwk::serviceDecl,
105         dp_registry::backend::executable::serviceDecl,
106         dp_manager::factory::serviceDecl,
107         dp_log::serviceDecl,
108         dp_info::serviceDecl,
109         dp_manager::serviceDecl);
110 }
111 
112 } // extern "C"
113 
114