Version 3.6.0.4, tag libreoffice-3.6.0.4
[LibreOffice.git] / writerperfect / source / writer / wpftwriter_genericfilter.cxx
blob9491b5c8c66fef4025f3895595b0da78d195bec9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* genericfilter: mostly generic code for registering the filter
4 * Portions of this code Copyright 2000 by Sun Microsystems, Inc.
5 * Rest is Copyright (C) 2002 William Lachance (wlach@interlog.com)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
23 /* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
26 #include "sal/config.h"
28 #include "cppuhelper/factory.hxx"
29 #include "cppuhelper/implementationentry.hxx"
30 #include "sal/types.h"
32 #include "WordPerfectImportFilter.hxx"
33 #include "MSWorksImportFilter.hxx"
35 namespace {
37 static cppu::ImplementationEntry const services[] = {
38 { &WordPerfectImportFilter_createInstance, &WordPerfectImportFilter_getImplementationName,
39 &WordPerfectImportFilter_getSupportedServiceNames,
40 &cppu::createSingleComponentFactory, 0, 0 },
41 { &MSWorksImportFilter_createInstance, &MSWorksImportFilter_getImplementationName,
42 &MSWorksImportFilter_getSupportedServiceNames,
43 &cppu::createSingleComponentFactory, 0, 0 },
44 { 0, 0, 0, 0, 0, 0 } };
48 extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL wpftwriter_component_getFactory(
49 char const * pImplName, void * pServiceManager, void * pRegistryKey)
51 return cppu::component_getFactoryHelper(
52 pImplName, pServiceManager, pRegistryKey, services);
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */