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