merged tag ooo/OOO330_m14
[LibreOffice.git] / unoxml / source / rdf / librdf_services.cxx
blob03949934560deef49873eb4be159db3aa4822644
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #include <cppuhelper/factory.hxx>
29 #include <cppuhelper/implementationentry.hxx>
31 #include "CNodes.hxx"
32 #include "librdf_repository.hxx"
35 using namespace ::com::sun::star;
38 extern "C"
41 void SAL_CALL
42 component_getImplementationEnvironment(const sal_Char **o_ppEnvironmentTypeName,
43 uno_Environment ** /* ppEnvironment */)
45 *o_ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
48 static ::cppu::ImplementationEntry const entries[] = {
49 { &comp_CBlankNode::_create,
50 &comp_CBlankNode::_getImplementationName,
51 &comp_CBlankNode::_getSupportedServiceNames,
52 &::cppu::createSingleComponentFactory, 0, 0 },
53 { &comp_CURI::_create,
54 &comp_CURI::_getImplementationName,
55 &comp_CURI::_getSupportedServiceNames,
56 &::cppu::createSingleComponentFactory, 0, 0 },
57 { &comp_CLiteral::_create,
58 &comp_CLiteral::_getImplementationName,
59 &comp_CLiteral::_getSupportedServiceNames,
60 &::cppu::createSingleComponentFactory, 0, 0 },
61 { &comp_librdf_Repository::_create,
62 &comp_librdf_Repository::_getImplementationName,
63 &comp_librdf_Repository::_getSupportedServiceNames,
64 &::cppu::createSingleComponentFactory, 0, 0 },
65 { 0, 0, 0, 0, 0, 0 }
68 extern "C" void * SAL_CALL component_getFactory(
69 const char * implName, void * serviceManager, void * registryKey)
71 return ::cppu::component_getFactoryHelper(
72 implName, serviceManager, registryKey, entries);
75 extern "C" sal_Bool SAL_CALL component_writeInfo(
76 void * serviceManager, void * registryKey)
78 return ::cppu::component_writeInfoHelper(serviceManager, registryKey,
79 entries);
82 } // extern "C"