1 /**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24 #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_
25 #include <cppuhelper/implementationentry.hxx>
26 #endif
27 #include <WriterFilter.hxx>
28 #include <WriterFilterDetection.hxx>
29 #include <RtfFilter.hxx>
30
31 using namespace ::rtl;
32 using namespace ::cppu;
33 using namespace ::com::sun::star;
34
35 /*-- 22.02.2007 12:19:23---------------------------------------------------
36
37 -----------------------------------------------------------------------*/
WriterFilter(const uno::Reference<uno::XComponentContext> & rxContext)38 WriterFilter::WriterFilter( const uno::Reference< uno::XComponentContext >& rxContext) :
39 m_xContext( rxContext )
40 {
41 }
42 /*-- 22.02.2007 12:19:23---------------------------------------------------
43
44 -----------------------------------------------------------------------*/
~WriterFilter()45 WriterFilter::~WriterFilter()
46 {
47 }
48
49 extern "C"
50 {
51 /* shared lib exports implemented with helpers */
52 static struct ::cppu::ImplementationEntry s_component_entries [] =
53 {
54 { WriterFilter_createInstance, WriterFilter_getImplementationName, WriterFilter_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0 },
55 { WriterFilterDetection_createInstance, WriterFilterDetection_getImplementationName, WriterFilterDetection_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0} ,
56 { RtfFilter_createInstance, RtfFilter_getImplementationName, RtfFilter_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0 },
57 { 0, 0, 0, 0, 0, 0 } // terminate with NULL
58 };
59
component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName,uno_Environment **)60 void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
61 {
62 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
63 }
64
component_getFactory(sal_Char const * implName,::com::sun::star::lang::XMultiServiceFactory * xMgr,::com::sun::star::registry::XRegistryKey * xRegistry)65 void * SAL_CALL component_getFactory(sal_Char const * implName, ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
66 {
67 return ::cppu::component_getFactoryHelper(implName, xMgr, xRegistry, s_component_entries );
68 }
69
70 } //extern "C"
71
72
73