xref: /AOO41X/main/sdext/source/minimizer/pppoptimizeruno.cxx (revision e4a7f28431d395df6b26d559edcdd3f9820f49c9)
1c142477cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
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
10cdf0e10cSrcweir  *
11c142477cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
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.
19cdf0e10cSrcweir  *
20c142477cSAndrew Rist  *************************************************************/
21c142477cSAndrew Rist 
22cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
23cdf0e10cSrcweir #include "precompiled_sdext.hxx"
24cdf0e10cSrcweir 
25*e4a7f284SAriel Constenla-Haile #include "pppoptimizer.hxx"
26*e4a7f284SAriel Constenla-Haile #include "pppoptimizerdialog.hxx"
27cdf0e10cSrcweir 
28*e4a7f284SAriel Constenla-Haile #include <cppuhelper/factory.hxx>
29*e4a7f284SAriel Constenla-Haile #include <cppuhelper/implementationentry.hxx>
30*e4a7f284SAriel Constenla-Haile 
31*e4a7f284SAriel Constenla-Haile 
32*e4a7f284SAriel Constenla-Haile namespace sdext_presentation_minimizer
33*e4a7f284SAriel Constenla-Haile {
34*e4a7f284SAriel Constenla-Haile     static struct cppu::ImplementationEntry g_entries[] =
35*e4a7f284SAriel Constenla-Haile     {
36*e4a7f284SAriel Constenla-Haile         {
37*e4a7f284SAriel Constenla-Haile             PPPOptimizer_createInstance,
38*e4a7f284SAriel Constenla-Haile             PPPOptimizer_getImplementationName,
39*e4a7f284SAriel Constenla-Haile             PPPOptimizer_getSupportedServiceNames,
40*e4a7f284SAriel Constenla-Haile             cppu::createSingleComponentFactory,
41*e4a7f284SAriel Constenla-Haile             0,
42*e4a7f284SAriel Constenla-Haile             0
43*e4a7f284SAriel Constenla-Haile         },
44*e4a7f284SAriel Constenla-Haile         {
45*e4a7f284SAriel Constenla-Haile             PPPOptimizerDialog_createInstance,
46*e4a7f284SAriel Constenla-Haile             PPPOptimizerDialog_getImplementationName,
47*e4a7f284SAriel Constenla-Haile             PPPOptimizer_getSupportedServiceNames,
48*e4a7f284SAriel Constenla-Haile             cppu::createSingleComponentFactory,
49*e4a7f284SAriel Constenla-Haile             0,
50*e4a7f284SAriel Constenla-Haile             0
51*e4a7f284SAriel Constenla-Haile         },
52*e4a7f284SAriel Constenla-Haile         { 0, 0, 0, 0, 0, 0 }
53*e4a7f284SAriel Constenla-Haile     };
54*e4a7f284SAriel Constenla-Haile }
55cdf0e10cSrcweir 
56cdf0e10cSrcweir extern "C"
57cdf0e10cSrcweir {
58*e4a7f284SAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void SAL_CALL component_getImplementationEnvironment(
59*e4a7f284SAriel Constenla-Haile         const sal_Char **ppEnvTypeName, uno_Environment **/*ppEnv*/ )
60cdf0e10cSrcweir     {
61cdf0e10cSrcweir         *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
62cdf0e10cSrcweir     }
63cdf0e10cSrcweir 
64*e4a7f284SAriel Constenla-Haile     SAL_DLLPUBLIC_EXPORT void *SAL_CALL component_getFactory(
65*e4a7f284SAriel Constenla-Haile         const sal_Char *pImplName, void *pServiceManager, void *pRegistryKey )
66cdf0e10cSrcweir     {
67*e4a7f284SAriel Constenla-Haile         return ::cppu::component_getFactoryHelper( pImplName,
68*e4a7f284SAriel Constenla-Haile                 pServiceManager,
69*e4a7f284SAriel Constenla-Haile                 pRegistryKey ,
70*e4a7f284SAriel Constenla-Haile                 sdext_presentation_minimizer::g_entries );
71cdf0e10cSrcweir     }
72cdf0e10cSrcweir }
73