Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 : *
5 : * The contents of this file are subject to the Mozilla Public License Version
6 : * 1.1 (the "License"); you may not use this file except in compliance with
7 : * the License or as specified alternatively below. You may obtain a copy of
8 : * the License at http://www.mozilla.org/MPL/
9 : *
10 : * Software distributed under the License is distributed on an "AS IS" basis,
11 : * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 : * for the specific language governing rights and limitations under the
13 : * License.
14 : *
15 : * The Initial Developer of the Original Code is
16 : * Bjoern Michaelsen <bjoern.michaelsen@canonical.com>
17 : * Portions created by the Initial Developer are Copyright (C) 2010 the
18 : * Initial Developer. All Rights Reserved.
19 : *
20 : * Major Contributor(s):
21 : *
22 : * For minor contributions see the git repository.
23 : *
24 : * Alternatively, the contents of this file may be used under the terms of
25 : * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
26 : * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
27 : * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
28 : * instead of those above.
29 : */
30 :
31 :
32 : #include <ResourceIndexAccess.hxx>
33 : #include <oooresourceloader.hxx>
34 : #include <comphelper/servicedecl.hxx>
35 : #include <uno/environment.h>
36 :
37 : namespace sdecl = ::comphelper::service_decl;
38 :
39 0 : sdecl::class_< ::extensions::resource::ResourceIndexAccess, sdecl::with_args<true> > ResourceIndexAccessServiceImpl;
40 0 : sdecl::class_< ::extensions::resource::OpenOfficeResourceLoader> OpenOfficeResourceLoaderServiceImpl;
41 :
42 0 : const sdecl::ServiceDecl ResourceIndexAccessDecl(
43 : ResourceIndexAccessServiceImpl,
44 : "org.libreoffice.extensions.resource.ResourceIndexAccess",
45 : "org.libreoffice.resource.ResourceIndexAccess");
46 :
47 0 : const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl(
48 : OpenOfficeResourceLoaderServiceImpl,
49 : "com.sun.star.comp.resource.OpenOfficeResourceLoader",
50 : "com.sun.star.resource.OfficeResourceLoader");
51 :
52 0 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory(
53 : sal_Char const* pImplName,
54 : ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
55 : ::com::sun::star::registry::XRegistryKey* pRegistryKey )
56 : {
57 : return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey,
58 0 : ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl );
59 0 : }
60 :
61 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|