1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 // MARKER(update_precomp.py): autogen include statement, do not remove 25 #include "precompiled_desktop.hxx" 26 27 #define COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS 12 28 #include "comphelper/servicedecl.hxx" 29 30 using namespace com::sun::star; 31 namespace sdecl = comphelper::service_decl; 32 33 namespace dp_registry { 34 namespace backend { 35 36 namespace configuration { 37 extern sdecl::ServiceDecl const serviceDecl; 38 } 39 40 namespace component { 41 extern sdecl::ServiceDecl const serviceDecl; 42 } 43 44 namespace script { 45 extern sdecl::ServiceDecl const serviceDecl; 46 } 47 48 namespace sfwk { 49 extern sdecl::ServiceDecl const serviceDecl; 50 } 51 52 namespace help { 53 extern sdecl::ServiceDecl const serviceDecl; 54 } 55 56 namespace executable { 57 extern sdecl::ServiceDecl const serviceDecl; 58 } 59 60 } // namespace backend 61 } // namespace dp_registry 62 63 namespace dp_manager { 64 namespace factory { 65 extern sdecl::ServiceDecl const serviceDecl; 66 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& ); 67 } 68 extern sdecl::ServiceDecl const serviceDecl; 69 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& ); 70 } 71 72 namespace dp_log { 73 extern sdecl::ServiceDecl const serviceDecl; 74 } 75 76 namespace dp_info { 77 extern sdecl::ServiceDecl const serviceDecl; 78 bool singleton_entries( uno::Reference<registry::XRegistryKey> const& ); 79 } 80 81 extern "C" { 82 83 void SAL_CALL component_getImplementationEnvironment( 84 const sal_Char ** ppEnvTypeName, uno_Environment ** ) 85 { 86 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 87 } 88 89 void * SAL_CALL component_getFactory( 90 sal_Char const * pImplName, 91 lang::XMultiServiceFactory * pServiceManager, 92 registry::XRegistryKey * pRegistryKey ) 93 { 94 return component_getFactoryHelper( 95 pImplName, pServiceManager, pRegistryKey, 96 dp_registry::backend::configuration::serviceDecl, 97 dp_registry::backend::component::serviceDecl, 98 dp_registry::backend::help::serviceDecl, 99 dp_registry::backend::script::serviceDecl, 100 dp_registry::backend::sfwk::serviceDecl, 101 dp_registry::backend::executable::serviceDecl, 102 dp_manager::factory::serviceDecl, 103 dp_log::serviceDecl, 104 dp_info::serviceDecl, 105 dp_manager::serviceDecl); 106 } 107 108 } // extern "C" 109 110