16b3ad84fSAndrew Rist /**************************************************************
2*b1c5b4ceSAriel Constenla-Haile  *
36b3ad84fSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
46b3ad84fSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
56b3ad84fSAndrew Rist  * distributed with this work for additional information
66b3ad84fSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
76b3ad84fSAndrew Rist  * to you under the Apache License, Version 2.0 (the
86b3ad84fSAndrew Rist  * "License"); you may not use this file except in compliance
96b3ad84fSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*b1c5b4ceSAriel Constenla-Haile  *
116b3ad84fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*b1c5b4ceSAriel Constenla-Haile  *
136b3ad84fSAndrew Rist  * Unless required by applicable law or agreed to in writing,
146b3ad84fSAndrew Rist  * software distributed under the License is distributed on an
156b3ad84fSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
166b3ad84fSAndrew Rist  * KIND, either express or implied.  See the License for the
176b3ad84fSAndrew Rist  * specific language governing permissions and limitations
186b3ad84fSAndrew Rist  * under the License.
19*b1c5b4ceSAriel Constenla-Haile  *
206b3ad84fSAndrew Rist  *************************************************************/
216b3ad84fSAndrew Rist 
22cdf0e10cSrcweir #include "MyProtocolHandler.h"
23cdf0e10cSrcweir 
24*b1c5b4ceSAriel Constenla-Haile #include <cppuhelper/factory.hxx>
25*b1c5b4ceSAriel Constenla-Haile #include <cppuhelper/implementationentry.hxx>
26cdf0e10cSrcweir 
27*b1c5b4ceSAriel Constenla-Haile namespace framework
28cb2654afSPedro Giffuni {
29*b1c5b4ceSAriel Constenla-Haile     namespace complex_toolbar_controls
30*b1c5b4ceSAriel Constenla-Haile     {
31*b1c5b4ceSAriel Constenla-Haile         static ::cppu::ImplementationEntry const s_impl_entries[] =
32*b1c5b4ceSAriel Constenla-Haile         {
33*b1c5b4ceSAriel Constenla-Haile             {
34*b1c5b4ceSAriel Constenla-Haile                 MyProtocolHandler_createInstance,
35*b1c5b4ceSAriel Constenla-Haile                 MyProtocolHandler_getImplementationName,
36*b1c5b4ceSAriel Constenla-Haile                 MyProtocolHandler_getSupportedServiceNames,
37*b1c5b4ceSAriel Constenla-Haile                 ::cppu::createSingleComponentFactory,
38*b1c5b4ceSAriel Constenla-Haile                 0,
39*b1c5b4ceSAriel Constenla-Haile                 0
40*b1c5b4ceSAriel Constenla-Haile             },
41*b1c5b4ceSAriel Constenla-Haile             { 0, 0, 0, 0, 0, 0 }
42*b1c5b4ceSAriel Constenla-Haile         };
43*b1c5b4ceSAriel Constenla-Haile     }
44cb2654afSPedro Giffuni }
45cdf0e10cSrcweir 
46cdf0e10cSrcweir extern "C"
47cdf0e10cSrcweir {
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)48*b1c5b4ceSAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
49*b1c5b4ceSAriel Constenla-Haile         const sal_Char **ppEnvTypeName, uno_Environment ** )
50cb2654afSPedro Giffuni     {
51*b1c5b4ceSAriel Constenla-Haile         *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
52cb2654afSPedro Giffuni     }
53cdf0e10cSrcweir 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)54*b1c5b4ceSAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void *SAL_CALL component_getFactory(
55*b1c5b4ceSAriel Constenla-Haile         const sal_Char *pImplName, void *pServiceManager, void *pRegistryKey )
56*b1c5b4ceSAriel Constenla-Haile     {
57*b1c5b4ceSAriel Constenla-Haile         return ::cppu::component_getFactoryHelper( pImplName,
58*b1c5b4ceSAriel Constenla-Haile                 pServiceManager,
59*b1c5b4ceSAriel Constenla-Haile                 pRegistryKey ,
60*b1c5b4ceSAriel Constenla-Haile                 framework::complex_toolbar_controls::s_impl_entries );
61*b1c5b4ceSAriel Constenla-Haile     }
62cdf0e10cSrcweir }
63