xref: /AOO41X/main/formula/source/core/api/services.cxx (revision c25918c1c543b2e4817410a4e7739607dba55e06)
1*c25918c1SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c25918c1SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c25918c1SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c25918c1SAndrew Rist  * distributed with this work for additional information
6*c25918c1SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c25918c1SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c25918c1SAndrew Rist  * "License"); you may not use this file except in compliance
9*c25918c1SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*c25918c1SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*c25918c1SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c25918c1SAndrew Rist  * software distributed under the License is distributed on an
15*c25918c1SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c25918c1SAndrew Rist  * KIND, either express or implied.  See the License for the
17*c25918c1SAndrew Rist  * specific language governing permissions and limitations
18*c25918c1SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*c25918c1SAndrew Rist  *************************************************************/
21*c25918c1SAndrew Rist 
22*c25918c1SAndrew Rist 
23cdf0e10cSrcweir #include "precompiled_formula.hxx"
24cdf0e10cSrcweir #include "sal/types.h"
25cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
26cdf0e10cSrcweir #include <osl/diagnose.h>
27cdf0e10cSrcweir #include <cppuhelper/implementationentry.hxx>
28cdf0e10cSrcweir #include "formula/FormulaOpCodeMapperObj.hxx"
29cdf0e10cSrcweir 
30cdf0e10cSrcweir /********************************************************************************************/
31cdf0e10cSrcweir 
32cdf0e10cSrcweir using namespace ::formula;
33cdf0e10cSrcweir using namespace ::com::sun::star::uno;
34cdf0e10cSrcweir using namespace ::com::sun::star::lang;
35cdf0e10cSrcweir using namespace ::com::sun::star::registry;
36cdf0e10cSrcweir 
37cdf0e10cSrcweir //***************************************************************************************
38cdf0e10cSrcweir //
39cdf0e10cSrcweir // registry functions
40cdf0e10cSrcweir namespace
41cdf0e10cSrcweir {
42cdf0e10cSrcweir 
43cdf0e10cSrcweir cppu::ImplementationEntry entries[] = {
44cdf0e10cSrcweir 	{ &FormulaOpCodeMapperObj::create, &FormulaOpCodeMapperObj::getImplementationName_Static, &FormulaOpCodeMapperObj::getSupportedServiceNames_Static,
45cdf0e10cSrcweir 		&cppu::createSingleComponentFactory, 0, 0 },
46cdf0e10cSrcweir 	{ 0, 0, 0, 0, 0, 0 }
47cdf0e10cSrcweir };
48cdf0e10cSrcweir }
49cdf0e10cSrcweir 
50cdf0e10cSrcweir extern "C"
51cdf0e10cSrcweir {
component_getFactory(char const * implName,void * serviceManager,void * registryKey)52cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
53cdf0e10cSrcweir     char const * implName, void * serviceManager, void * registryKey)
54cdf0e10cSrcweir {
55cdf0e10cSrcweir     return cppu::component_getFactoryHelper(
56cdf0e10cSrcweir         implName, serviceManager, registryKey, entries);
57cdf0e10cSrcweir }
58cdf0e10cSrcweir 
component_getImplementationEnvironment(char const ** envTypeName,uno_Environment **)59cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
60cdf0e10cSrcweir     char const ** envTypeName, uno_Environment **)
61cdf0e10cSrcweir {
62cdf0e10cSrcweir     *envTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
63cdf0e10cSrcweir }
64cdf0e10cSrcweir 
65cdf0e10cSrcweir } // extern "C"
66