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