Update ooo320-m1
[ooovba.git] / writerfilter / source / filter / WriterFilter.cxx
blobfe032159980a7b813d3d18f1a47222a429c30674
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: WriterFilter.cxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_
32 #include <cppuhelper/implementationentry.hxx>
33 #endif
34 #include <WriterFilter.hxx>
35 #include <WriterFilterDetection.hxx>
37 using namespace ::rtl;
38 using namespace ::cppu;
39 using namespace ::com::sun::star;
41 /*-- 22.02.2007 12:19:23---------------------------------------------------
43 -----------------------------------------------------------------------*/
44 WriterFilter::WriterFilter( const uno::Reference< uno::XComponentContext >& rxContext) :
45 m_xContext( rxContext )
48 /*-- 22.02.2007 12:19:23---------------------------------------------------
50 -----------------------------------------------------------------------*/
51 WriterFilter::~WriterFilter()
55 extern "C"
57 /* shared lib exports implemented with helpers */
58 static struct ::cppu::ImplementationEntry s_component_entries [] =
60 { WriterFilter_createInstance, WriterFilter_getImplementationName, WriterFilter_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0 },
61 { WriterFilterDetection_createInstance, WriterFilterDetection_getImplementationName, WriterFilterDetection_getSupportedServiceNames, ::cppu::createSingleComponentFactory, 0, 0} ,
62 { 0, 0, 0, 0, 0, 0 } // terminate with NULL
65 void SAL_CALL component_getImplementationEnvironment(const sal_Char ** ppEnvTypeName, uno_Environment ** /*ppEnv*/ )
67 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
70 sal_Bool SAL_CALL component_writeInfo( ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
72 return ::cppu::component_writeInfoHelper( xMgr, xRegistry, s_component_entries );
75 void * SAL_CALL component_getFactory(sal_Char const * implName, ::com::sun::star::lang::XMultiServiceFactory * xMgr, ::com::sun::star::registry::XRegistryKey * xRegistry )
77 return ::cppu::component_getFactoryHelper(implName, xMgr, xRegistry, s_component_entries );
80 } //extern "C"