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
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
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_sdext.hxx"
26 
27 #include <cppuhelper/factory.hxx>
28 #include <cppuhelper/implementationentry.hxx>
29 
30 #include "PresenterProtocolHandler.hxx"
31 #include "PresenterScreen.hxx"
32 
33 
34 namespace sdext { namespace presenter {
35 
36 
37 rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
38 
39 static struct cppu::ImplementationEntry gServiceEntries[] =
40 {
41 	{
42 		PresenterProtocolHandler::Create,
43 		PresenterProtocolHandler::getImplementationName_static,
44 		PresenterProtocolHandler::getSupportedServiceNames_static,
45 		cppu::createSingleComponentFactory, &g_moduleCount.modCnt, 0
46 	},
47 	{
48 		PresenterScreenJob::Create,
49 		PresenterScreenJob::getImplementationName_static,
50 		PresenterScreenJob::getSupportedServiceNames_static,
51 		cppu::createSingleComponentFactory, 0, 0
52 	},
53 	{ 0, 0, 0, 0, 0, 0 }
54 };
55 
56 extern "C"
57 {
component_canUnload(TimeValue * pTime)58 	SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
59 	{
60 		return g_moduleCount.canUnload( &g_moduleCount , pTime );
61 	}
62 
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)63 	SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
64 		const sal_Char ** ppEnvTypeName, uno_Environment ** )
65 	{
66 		*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
67 	}
68 
component_getFactory(const sal_Char * pImplName,void * pServiceManager,void * pRegistryKey)69 	SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
70 		const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
71 	{
72 		return cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , gServiceEntries);
73 	}
74 }
75 
76 } } // end of namespace sdext::presenter
77