1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_
29 #include <cppuhelper/implementationentry.hxx>
30 #endif
31 #include <WriterFilter.hxx>
32 #include <WriterFilterDetection.hxx>
33 #include <RtfFilter.hxx>
34 
35 using namespace ::rtl;
36 using namespace ::cppu;
37 using namespace ::com::sun::star;
38 
39 /*-- 22.02.2007 12:19:23---------------------------------------------------
40 
41   -----------------------------------------------------------------------*/
42 WriterFilter::WriterFilter( const uno::Reference< uno::XComponentContext >& rxContext)  :
43     m_xContext( rxContext )
44 {
45 }
46 /*-- 22.02.2007 12:19:23---------------------------------------------------
47 
48   -----------------------------------------------------------------------*/
49 WriterFilter::~WriterFilter()
50 {
51 }
52 
53 extern "C"
54 {
55 /* shared lib exports implemented with helpers */
56 static struct ::cppu::ImplementationEntry s_component_entries [] =
57 {
58     { WriterFilter_createInstance, WriterFilter_getImplementationName, WriterFilter_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0 },
59     { WriterFilterDetection_createInstance, WriterFilterDetection_getImplementationName, WriterFilterDetection_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0} ,
60     { RtfFilter_createInstance, RtfFilter_getImplementationName, RtfFilter_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0 },
61     { 0, 0, 0, 0, 0, 0 } // terminate with NULL
62 };
63 
64 void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
65 {
66     *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
67 }
68 
69 void * SAL_CALL component_getFactory(sal_Char const * implName, ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
70 {
71     return ::cppu::component_getFactoryHelper(implName, xMgr, xRegistry, s_component_entries );
72 }
73 
74 } //extern "C"
75 
76 
77