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