Update ooo320-m1
[ooovba.git] / unoxml / source / rdf / librdf_services.cxx
blob8a0a32c8e0f3a05cb9d51290476d8703ad6e2b26
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: librdf_services.cxx,v $
10 * $Revision: 1.2 $
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 #include <cppuhelper/factory.hxx>
32 #include <cppuhelper/implementationentry.hxx>
34 #include "CNodes.hxx"
35 #include "librdf_repository.hxx"
38 using namespace ::com::sun::star;
41 extern "C"
44 void SAL_CALL
45 component_getImplementationEnvironment(const sal_Char **o_ppEnvironmentTypeName,
46 uno_Environment ** /* ppEnvironment */)
48 *o_ppEnvironmentTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
51 static ::cppu::ImplementationEntry const entries[] = {
52 { &comp_CBlankNode::_create,
53 &comp_CBlankNode::_getImplementationName,
54 &comp_CBlankNode::_getSupportedServiceNames,
55 &::cppu::createSingleComponentFactory, 0, 0 },
56 { &comp_CURI::_create,
57 &comp_CURI::_getImplementationName,
58 &comp_CURI::_getSupportedServiceNames,
59 &::cppu::createSingleComponentFactory, 0, 0 },
60 { &comp_CLiteral::_create,
61 &comp_CLiteral::_getImplementationName,
62 &comp_CLiteral::_getSupportedServiceNames,
63 &::cppu::createSingleComponentFactory, 0, 0 },
64 { &comp_librdf_Repository::_create,
65 &comp_librdf_Repository::_getImplementationName,
66 &comp_librdf_Repository::_getSupportedServiceNames,
67 &::cppu::createSingleComponentFactory, 0, 0 },
68 { 0, 0, 0, 0, 0, 0 }
71 extern "C" void * SAL_CALL component_getFactory(
72 const char * implName, void * serviceManager, void * registryKey)
74 return ::cppu::component_getFactoryHelper(
75 implName, serviceManager, registryKey, entries);
78 extern "C" sal_Bool SAL_CALL component_writeInfo(
79 void * serviceManager, void * registryKey)
81 return ::cppu::component_writeInfoHelper(serviceManager, registryKey,
82 entries);
85 } // extern "C"