sreg.cxx (b0844812) | sreg.cxx (c4c42a0e) |
---|---|
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 --- 8 unchanged lines hidden (view full) --- 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 | 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 --- 8 unchanged lines hidden (view full) --- 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_lingucomponent.hxx" | 25#include "precompiled_spell.hxx" |
26 27 28#include <cppuhelper/factory.hxx> // helper for factories 29#include <rtl/string.hxx> 30 31#include <com/sun/star/registry/XRegistryKey.hpp> 32 33using namespace rtl; --- 10 unchanged lines hidden (view full) --- 44 void * /*pRegistryKey*/ ); 45//////////////////////////////////////// 46// definition of the two functions that are used to provide the services 47// 48 49extern "C" 50{ 51 | 26 27 28#include <cppuhelper/factory.hxx> // helper for factories 29#include <rtl/string.hxx> 30 31#include <com/sun/star/registry/XRegistryKey.hpp> 32 33using namespace rtl; --- 10 unchanged lines hidden (view full) --- 44 void * /*pRegistryKey*/ ); 45//////////////////////////////////////// 46// definition of the two functions that are used to provide the services 47// 48 49extern "C" 50{ 51 |
52void SAL_CALL component_getImplementationEnvironment( | 52SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( |
53 const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) 54{ 55 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 56} 57 | 53 const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) 54{ 55 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 56} 57 |
58void * SAL_CALL component_getFactory( | 58SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( |
59 const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) 60{ 61 void * pRet = NULL; 62 pRet = SpellChecker_getFactory( 63 pImplName, 64 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), 65 pRegistryKey ); 66 67 return pRet; 68} 69 70} 71 72/////////////////////////////////////////////////////////////////////////// 73 | 59 const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) 60{ 61 void * pRet = NULL; 62 pRet = SpellChecker_getFactory( 63 pImplName, 64 reinterpret_cast< XMultiServiceFactory * >( pServiceManager ), 65 pRegistryKey ); 66 67 return pRet; 68} 69 70} 71 72/////////////////////////////////////////////////////////////////////////// 73 |