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