2011-05-26 11:04:53 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This file is part of the LibreOffice project.
|
2011-05-26 11:04:53 +02:00
|
|
|
*
|
2013-04-19 21:10:42 +01:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-05-26 11:04:53 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-05-27 19:54:53 +02:00
|
|
|
#include <ResourceIndexAccess.hxx>
|
2011-05-26 11:04:53 +02:00
|
|
|
#include <oooresourceloader.hxx>
|
|
|
|
#include <comphelper/servicedecl.hxx>
|
|
|
|
#include <uno/environment.h>
|
|
|
|
|
|
|
|
namespace sdecl = ::comphelper::service_decl;
|
|
|
|
|
2011-05-27 19:54:53 +02:00
|
|
|
sdecl::class_< ::extensions::resource::ResourceIndexAccess, sdecl::with_args<true> > ResourceIndexAccessServiceImpl;
|
2011-05-26 11:04:53 +02:00
|
|
|
sdecl::class_< ::extensions::resource::OpenOfficeResourceLoader> OpenOfficeResourceLoaderServiceImpl;
|
|
|
|
|
2011-05-27 19:54:53 +02:00
|
|
|
const sdecl::ServiceDecl ResourceIndexAccessDecl(
|
|
|
|
ResourceIndexAccessServiceImpl,
|
|
|
|
"org.libreoffice.extensions.resource.ResourceIndexAccess",
|
|
|
|
"org.libreoffice.resource.ResourceIndexAccess");
|
2011-05-26 11:04:53 +02:00
|
|
|
|
2013-12-19 22:45:59 +01:00
|
|
|
//TOOD: this is a singleton, not a service:
|
2011-05-26 11:04:53 +02:00
|
|
|
const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl(
|
|
|
|
OpenOfficeResourceLoaderServiceImpl,
|
|
|
|
"com.sun.star.comp.resource.OpenOfficeResourceLoader",
|
|
|
|
"com.sun.star.resource.OfficeResourceLoader");
|
|
|
|
|
2012-10-01 23:00:13 +03:00
|
|
|
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory(
|
2015-01-20 11:05:38 +01:00
|
|
|
sal_Char const* pImplName, void*, void*)
|
2011-10-02 00:16:18 +02:00
|
|
|
{
|
2015-01-20 11:05:38 +01:00
|
|
|
return component_getFactoryHelper( pImplName,
|
2011-10-02 00:16:18 +02:00
|
|
|
ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl );
|
|
|
|
}
|
2011-05-26 11:04:53 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|