LCOV - code coverage report
Current view: top level - extensions/source/resource - resourceservices.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 7 7 100.0 %
Date: 2014-11-03 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  */
       9             : 
      10             : 
      11             : #include <ResourceIndexAccess.hxx>
      12             : #include <oooresourceloader.hxx>
      13             : #include <comphelper/servicedecl.hxx>
      14             : #include <uno/environment.h>
      15             : 
      16             : namespace sdecl = ::comphelper::service_decl;
      17             : 
      18           4 : sdecl::class_< ::extensions::resource::ResourceIndexAccess, sdecl::with_args<true> > ResourceIndexAccessServiceImpl;
      19           4 : sdecl::class_< ::extensions::resource::OpenOfficeResourceLoader> OpenOfficeResourceLoaderServiceImpl;
      20             : 
      21           4 : const sdecl::ServiceDecl ResourceIndexAccessDecl(
      22             :     ResourceIndexAccessServiceImpl,
      23             :     "org.libreoffice.extensions.resource.ResourceIndexAccess",
      24             :     "org.libreoffice.resource.ResourceIndexAccess");
      25             : 
      26             : //TOOD: this is a singleton, not a service:
      27           4 : const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl(
      28             :     OpenOfficeResourceLoaderServiceImpl,
      29             :     "com.sun.star.comp.resource.OpenOfficeResourceLoader",
      30             :     "com.sun.star.resource.OfficeResourceLoader");
      31             : 
      32           4 : extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory(
      33             :     sal_Char const* pImplName,
      34             :     ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
      35             :     ::com::sun::star::registry::XRegistryKey* pRegistryKey )
      36             : {
      37             :     return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey,
      38           4 :             ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl );
      39          12 : }
      40             : 
      41             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10