1*b2b569f2SArmin Le Grand /************************************************************** 2*b2b569f2SArmin Le Grand * 3*b2b569f2SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one 4*b2b569f2SArmin Le Grand * or more contributor license agreements. See the NOTICE file 5*b2b569f2SArmin Le Grand * distributed with this work for additional information 6*b2b569f2SArmin Le Grand * regarding copyright ownership. The ASF licenses this file 7*b2b569f2SArmin Le Grand * to you under the Apache License, Version 2.0 (the 8*b2b569f2SArmin Le Grand * "License"); you may not use this file except in compliance 9*b2b569f2SArmin Le Grand * with the License. You may obtain a copy of the License at 10*b2b569f2SArmin Le Grand * 11*b2b569f2SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12*b2b569f2SArmin Le Grand * 13*b2b569f2SArmin Le Grand * Unless required by applicable law or agreed to in writing, 14*b2b569f2SArmin Le Grand * software distributed under the License is distributed on an 15*b2b569f2SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b2b569f2SArmin Le Grand * KIND, either express or implied. See the License for the 17*b2b569f2SArmin Le Grand * specific language governing permissions and limitations 18*b2b569f2SArmin Le Grand * under the License. 19*b2b569f2SArmin Le Grand * 20*b2b569f2SArmin Le Grand *************************************************************/ 21*b2b569f2SArmin Le Grand 22*b2b569f2SArmin Le Grand // MARKER(update_precomp.py): autogen include statement, do not remove 23*b2b569f2SArmin Le Grand #include "precompiled_cui.hxx" 24*b2b569f2SArmin Le Grand 25*b2b569f2SArmin Le Grand #include <com/sun/star/registry/XRegistryKey.hpp> 26*b2b569f2SArmin Le Grand #include "sal/types.h" 27*b2b569f2SArmin Le Grand #include "cppuhelper/factory.hxx" 28*b2b569f2SArmin Le Grand #include <cppuhelper/implementationentry.hxx> 29*b2b569f2SArmin Le Grand 30*b2b569f2SArmin Le Grand using rtl::OUString; 31*b2b569f2SArmin Le Grand using namespace com::sun::star; 32*b2b569f2SArmin Le Grand 33*b2b569f2SArmin Le Grand namespace cui { 34*b2b569f2SArmin Le Grand extern rtl::OUString SAL_CALL ColorPicker_getImplementationName(); 35*b2b569f2SArmin Le Grand extern uno::Reference< uno::XInterface > SAL_CALL ColorPicker_createInstance( uno::Reference< uno::XComponentContext > const & ) SAL_THROW( (uno::Exception) ); 36*b2b569f2SArmin Le Grand extern uno::Sequence< rtl::OUString > SAL_CALL ColorPicker_getSupportedServiceNames() throw( uno::RuntimeException ); 37*b2b569f2SArmin Le Grand } 38*b2b569f2SArmin Le Grand 39*b2b569f2SArmin Le Grand namespace 40*b2b569f2SArmin Le Grand { 41*b2b569f2SArmin Le Grand 42*b2b569f2SArmin Le Grand cppu::ImplementationEntry entries[] = { 43*b2b569f2SArmin Le Grand { &::cui::ColorPicker_createInstance, &::cui::ColorPicker_getImplementationName, &::cui::ColorPicker_getSupportedServiceNames, &cppu::createSingleComponentFactory, 0, 0 }, 44*b2b569f2SArmin Le Grand { 0, 0, 0, 0, 0, 0 } 45*b2b569f2SArmin Le Grand }; 46*b2b569f2SArmin Le Grand } 47*b2b569f2SArmin Le Grand 48*b2b569f2SArmin Le Grand extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory( char const * implName, void * serviceManager, void * registryKey) 49*b2b569f2SArmin Le Grand { 50*b2b569f2SArmin Le Grand return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries); 51*b2b569f2SArmin Le Grand } 52*b2b569f2SArmin Le Grand 53*b2b569f2SArmin Le Grand 54*b2b569f2SArmin Le Grand extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment ( const sal_Char ** ppEnvTypeName, uno_Environment ** ) 55*b2b569f2SArmin Le Grand { 56*b2b569f2SArmin Le Grand *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; 57*b2b569f2SArmin Le Grand } 58*b2b569f2SArmin Le Grand 59*b2b569f2SArmin Le Grand // eof 60