1b0844812SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3b0844812SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4b0844812SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5b0844812SAndrew Rist  * distributed with this work for additional information
6b0844812SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7b0844812SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8b0844812SAndrew Rist  * "License"); you may not use this file except in compliance
9b0844812SAndrew Rist  * with the License.  You may obtain a copy of the License at
10b0844812SAndrew Rist  *
11b0844812SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12b0844812SAndrew Rist  *
13b0844812SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14b0844812SAndrew Rist  * software distributed under the License is distributed on an
15b0844812SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16b0844812SAndrew Rist  * KIND, either express or implied.  See the License for the
17b0844812SAndrew Rist  * specific language governing permissions and limitations
18b0844812SAndrew Rist  * under the License.
19b0844812SAndrew Rist  *
20b0844812SAndrew Rist  *************************************************************/
21b0844812SAndrew Rist 
22b0844812SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25*c4c42a0eSDamjan Jovanovic #include "precompiled_mac.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <cppuhelper/factory.hxx>	// helper for factories
29cdf0e10cSrcweir #include <rtl/string.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir #include <com/sun/star/registry/XRegistryKey.hpp>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir using namespace rtl;
34cdf0e10cSrcweir using namespace com::sun::star::lang;
35cdf0e10cSrcweir using namespace com::sun::star::registry;
36cdf0e10cSrcweir 
37cdf0e10cSrcweir ////////////////////////////////////////
38cdf0e10cSrcweir // declaration of external RegEntry-functions defined by the service objects
39cdf0e10cSrcweir //
40cdf0e10cSrcweir 
41cdf0e10cSrcweir extern void * SAL_CALL MacSpellChecker_getFactory(
42cdf0e10cSrcweir 	const sal_Char * pImplName,
43cdf0e10cSrcweir 	XMultiServiceFactory * pServiceManager,
44cdf0e10cSrcweir 	void * /*pRegistryKey*/ );
45cdf0e10cSrcweir 
46cdf0e10cSrcweir ////////////////////////////////////////
47cdf0e10cSrcweir // definition of the two functions that are used to provide the services
48cdf0e10cSrcweir //
49cdf0e10cSrcweir 
50cdf0e10cSrcweir extern "C"
51cdf0e10cSrcweir {
52cdf0e10cSrcweir 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)53*c4c42a0eSDamjan Jovanovic SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
54cdf0e10cSrcweir 	const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
55cdf0e10cSrcweir {
56cdf0e10cSrcweir 	*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
57cdf0e10cSrcweir }
58cdf0e10cSrcweir 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)59*c4c42a0eSDamjan Jovanovic SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
60cdf0e10cSrcweir 	const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
61cdf0e10cSrcweir {
62cdf0e10cSrcweir     void * pRet = NULL;
63cdf0e10cSrcweir 	pRet = MacSpellChecker_getFactory(
64cdf0e10cSrcweir     	pImplName,
65cdf0e10cSrcweir     	reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
66cdf0e10cSrcweir     	pRegistryKey );
67cdf0e10cSrcweir 
68cdf0e10cSrcweir 	return pRet;
69cdf0e10cSrcweir }
70cdf0e10cSrcweir 
71cdf0e10cSrcweir }
72cdf0e10cSrcweir 
73cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////
74cdf0e10cSrcweir 
75