merge the formfield patch from ooo-build
[ooovba.git] / desktop / source / migration / services / cexports.cxx
blob7be21587faff8fbdebd6d6f890ca155ecc259c12
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: cexports.cxx,v $
10 * $Revision: 1.9 $
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 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_desktop.hxx"
34 #include "cppuhelper/implementationentry.hxx"
35 #include "basicmigration.hxx"
36 #include "wordbookmigration.hxx"
37 #include "extensionmigration.hxx"
39 extern "C"
42 ::cppu::ImplementationEntry entries [] =
45 migration::BasicMigration_create, migration::BasicMigration_getImplementationName,
46 migration::BasicMigration_getSupportedServiceNames, ::cppu::createSingleComponentFactory,
47 0, 0
50 migration::WordbookMigration_create, migration::WordbookMigration_getImplementationName,
51 migration::WordbookMigration_getSupportedServiceNames, ::cppu::createSingleComponentFactory,
52 0, 0
55 migration::ExtensionMigration_create, migration::ExtensionMigration_getImplementationName,
56 migration::ExtensionMigration_getSupportedServiceNames, ::cppu::createSingleComponentFactory,
57 0, 0
59 { 0, 0, 0, 0, 0, 0 }
63 void SAL_CALL component_getImplementationEnvironment(
64 const sal_Char ** ppEnvTypeName, uno_Environment ** )
66 *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
69 sal_Bool SAL_CALL component_writeInfo(
70 void * pServiceManager, void * pRegistryKey )
72 return ::cppu::component_writeInfoHelper(
73 pServiceManager, pRegistryKey, entries );
76 void * SAL_CALL component_getFactory(
77 const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
79 return ::cppu::component_getFactoryHelper(
80 pImplName, pServiceManager, pRegistryKey, entries );