xref: /trunk/main/sot/source/unoolestorage/register.cxx (revision cf6516809c57e1bb0a940545cca99cdad54d4ce2)
1046d9d1fSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3046d9d1fSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4046d9d1fSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5046d9d1fSAndrew Rist  * distributed with this work for additional information
6046d9d1fSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7046d9d1fSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8046d9d1fSAndrew Rist  * "License"); you may not use this file except in compliance
9046d9d1fSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11046d9d1fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13046d9d1fSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14046d9d1fSAndrew Rist  * software distributed under the License is distributed on an
15046d9d1fSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16046d9d1fSAndrew Rist  * KIND, either express or implied.  See the License for the
17046d9d1fSAndrew Rist  * specific language governing permissions and limitations
18046d9d1fSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20046d9d1fSAndrew Rist  *************************************************************/
21046d9d1fSAndrew Rist 
22046d9d1fSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sot.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <com/sun/star/registry/XRegistryKey.hpp>
29cdf0e10cSrcweir #include <com/sun/star/registry/InvalidRegistryException.hpp>
30cdf0e10cSrcweir #include <cppuhelper/factory.hxx>
31*641497eaSDamjan Jovanovic #include <cppuhelper/implementationentry.hxx>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #include "xolesimplestorage.hxx"
34cdf0e10cSrcweir 
35cdf0e10cSrcweir using namespace ::com::sun::star;
36cdf0e10cSrcweir 
37*641497eaSDamjan Jovanovic static struct ::cppu::ImplementationEntry g_component_entries[] =
38*641497eaSDamjan Jovanovic {
39*641497eaSDamjan Jovanovic     {
40*641497eaSDamjan Jovanovic         OLESimpleStorage::impl_staticCreateSelfInstance,
41*641497eaSDamjan Jovanovic         OLESimpleStorage::impl_staticGetImplementationName,
42*641497eaSDamjan Jovanovic         OLESimpleStorage::impl_staticGetSupportedServiceNames,
43*641497eaSDamjan Jovanovic         ::cppu::createSingleComponentFactory,
44*641497eaSDamjan Jovanovic         0,
45*641497eaSDamjan Jovanovic         0
46*641497eaSDamjan Jovanovic     },
47*641497eaSDamjan Jovanovic     { 0, 0, 0, 0, 0, 0 }
48*641497eaSDamjan Jovanovic };
49*641497eaSDamjan Jovanovic 
50cdf0e10cSrcweir 
51cdf0e10cSrcweir extern "C" {
52cdf0e10cSrcweir 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)53cdf0e10cSrcweir SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment( 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)58*641497eaSDamjan Jovanovic SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
59cdf0e10cSrcweir {
60*641497eaSDamjan Jovanovic     return ::cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, g_component_entries );
61cdf0e10cSrcweir }
62cdf0e10cSrcweir 
63cdf0e10cSrcweir } // extern "C"
64