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