1*79e0a548SAriel Constenla-Haile /**************************************************************
2*79e0a548SAriel Constenla-Haile  *
3*79e0a548SAriel Constenla-Haile  * Licensed to the Apache Software Foundation (ASF) under one
4*79e0a548SAriel Constenla-Haile  * or more contributor license agreements.  See the NOTICE file
5*79e0a548SAriel Constenla-Haile  * distributed with this work for additional information
6*79e0a548SAriel Constenla-Haile  * regarding copyright ownership.  The ASF licenses this file
7*79e0a548SAriel Constenla-Haile  * to you under the Apache License, Version 2.0 (the
8*79e0a548SAriel Constenla-Haile  * "License"); you may not use this file except in compliance
9*79e0a548SAriel Constenla-Haile  * with the License.  You may obtain a copy of the License at
10*79e0a548SAriel Constenla-Haile  *
11*79e0a548SAriel Constenla-Haile  *   http://www.apache.org/licenses/LICENSE-2.0
12*79e0a548SAriel Constenla-Haile  *
13*79e0a548SAriel Constenla-Haile  * Unless required by applicable law or agreed to in writing,
14*79e0a548SAriel Constenla-Haile  * software distributed under the License is distributed on an
15*79e0a548SAriel Constenla-Haile  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*79e0a548SAriel Constenla-Haile  * KIND, either express or implied.  See the License for the
17*79e0a548SAriel Constenla-Haile  * specific language governing permissions and limitations
18*79e0a548SAriel Constenla-Haile  * under the License.
19*79e0a548SAriel Constenla-Haile  *
20*79e0a548SAriel Constenla-Haile  *************************************************************/
21*79e0a548SAriel Constenla-Haile 
22*79e0a548SAriel Constenla-Haile // MARKER(update_precomp.py): autogen include statement, do not remove
23*79e0a548SAriel Constenla-Haile #include "precompiled_sdext.hxx"
24*79e0a548SAriel Constenla-Haile 
25*79e0a548SAriel Constenla-Haile #include <cppuhelper/factory.hxx>
26*79e0a548SAriel Constenla-Haile #include <cppuhelper/implementationentry.hxx>
27*79e0a548SAriel Constenla-Haile 
28*79e0a548SAriel Constenla-Haile #include "PresenterProtocolHandler.hxx"
29*79e0a548SAriel Constenla-Haile #include "PresenterScreen.hxx"
30*79e0a548SAriel Constenla-Haile 
31*79e0a548SAriel Constenla-Haile 
32*79e0a548SAriel Constenla-Haile namespace sdext { namespace presenter {
33*79e0a548SAriel Constenla-Haile 
34*79e0a548SAriel Constenla-Haile 
35*79e0a548SAriel Constenla-Haile rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
36*79e0a548SAriel Constenla-Haile 
37*79e0a548SAriel Constenla-Haile static struct cppu::ImplementationEntry gServiceEntries[] =
38*79e0a548SAriel Constenla-Haile {
39*79e0a548SAriel Constenla-Haile     {
40*79e0a548SAriel Constenla-Haile         PresenterProtocolHandler::Create,
41*79e0a548SAriel Constenla-Haile         PresenterProtocolHandler::getImplementationName_static,
42*79e0a548SAriel Constenla-Haile         PresenterProtocolHandler::getSupportedServiceNames_static,
43*79e0a548SAriel Constenla-Haile         cppu::createSingleComponentFactory, &g_moduleCount.modCnt, 0
44*79e0a548SAriel Constenla-Haile     },
45*79e0a548SAriel Constenla-Haile     {
46*79e0a548SAriel Constenla-Haile         PresenterScreenJob::Create,
47*79e0a548SAriel Constenla-Haile         PresenterScreenJob::getImplementationName_static,
48*79e0a548SAriel Constenla-Haile         PresenterScreenJob::getSupportedServiceNames_static,
49*79e0a548SAriel Constenla-Haile         cppu::createSingleComponentFactory, 0, 0
50*79e0a548SAriel Constenla-Haile     },
51*79e0a548SAriel Constenla-Haile     { 0, 0, 0, 0, 0, 0 }
52*79e0a548SAriel Constenla-Haile };
53*79e0a548SAriel Constenla-Haile 
54*79e0a548SAriel Constenla-Haile extern "C"
55*79e0a548SAriel Constenla-Haile {
component_canUnload(TimeValue * pTime)56*79e0a548SAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
57*79e0a548SAriel Constenla-Haile     {
58*79e0a548SAriel Constenla-Haile         return g_moduleCount.canUnload( &g_moduleCount , pTime );
59*79e0a548SAriel Constenla-Haile     }
60*79e0a548SAriel Constenla-Haile 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)61*79e0a548SAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
62*79e0a548SAriel Constenla-Haile         const sal_Char ** ppEnvTypeName, uno_Environment ** )
63*79e0a548SAriel Constenla-Haile     {
64*79e0a548SAriel Constenla-Haile         *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
65*79e0a548SAriel Constenla-Haile     }
66*79e0a548SAriel Constenla-Haile 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)67*79e0a548SAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
68*79e0a548SAriel Constenla-Haile         const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
69*79e0a548SAriel Constenla-Haile     {
70*79e0a548SAriel Constenla-Haile         return cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , gServiceEntries);
71*79e0a548SAriel Constenla-Haile     }
72*79e0a548SAriel Constenla-Haile }
73*79e0a548SAriel Constenla-Haile 
74*79e0a548SAriel Constenla-Haile } } // end of namespace sdext::presenter
75