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
29cdf0e10cSrcweir #include <cppuhelper/factory.hxx> // helper for factories
30cdf0e10cSrcweir #include <rtl/string.hxx>
31cdf0e10cSrcweir
32cdf0e10cSrcweir #include <com/sun/star/registry/XRegistryKey.hpp>
33cdf0e10cSrcweir
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 Hyphenator_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 **)53cdf0e10cSrcweir 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)59cdf0e10cSrcweir void * SAL_CALL component_getFactory(
60cdf0e10cSrcweir const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
61cdf0e10cSrcweir {
62cdf0e10cSrcweir void * pRet = Hyphenator_getFactory(
63cdf0e10cSrcweir pImplName,
64cdf0e10cSrcweir reinterpret_cast< XMultiServiceFactory * >( pServiceManager ),
65cdf0e10cSrcweir pRegistryKey );
66cdf0e10cSrcweir
67cdf0e10cSrcweir return pRet;
68cdf0e10cSrcweir }
69cdf0e10cSrcweir
70cdf0e10cSrcweir }
71cdf0e10cSrcweir
72cdf0e10cSrcweir ///////////////////////////////////////////////////////////////////////////
73cdf0e10cSrcweir
74