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