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_shell.hxx" 26 27 #include "macbackend.hxx" 28 #include <com/sun/star/registry/XRegistryKey.hpp> 29 30 #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_ 31 #include <cppuhelper/implementationentry.hxx> 32 #endif 33 #include <com/sun/star/uno/XComponentContext.hpp> 34 35 namespace css = com::sun::star; 36 namespace uno = css::uno; 37 namespace lang = css::lang; 38 39 //------------------------------------------------------------------------------ 40 41 static uno::Reference<uno::XInterface> SAL_CALL createMacOSXBackend( 42 const uno::Reference<uno::XComponentContext>&) 43 { 44 return * MacOSXBackend::createInstance(); 45 } 46 47 //------------------------------------------------------------------------------ 48 49 static const cppu::ImplementationEntry kImplementations_entries[] = 50 { 51 { 52 createMacOSXBackend, 53 MacOSXBackend::getBackendName, 54 MacOSXBackend::getBackendServiceNames, 55 cppu::createSingleComponentFactory, 56 NULL, 57 0 58 }, 59 { NULL } 60 }; 61 62 //------------------------------------------------------------------------------ 63 64 extern "C" void SAL_CALL component_getImplementationEnvironment( 65 const sal_Char **aEnvTypeName, uno_Environment ** /*aEnvironment*/) { 66 67 *aEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 68 } 69 70 //------------------------------------------------------------------------------ 71 72 extern "C" void *component_getFactory( const sal_Char *aImplementationName, void *aServiceManager, void *aRegistryKey) 73 { 74 75 return cppu::component_getFactoryHelper( 76 aImplementationName, 77 aServiceManager, 78 aRegistryKey, 79 kImplementations_entries); 80 } 81 82 //------------------------------------------------------------------------------ 83 84