LCOV - code coverage report
Current view: top level - fpicker/source/office - fpsofficeResMgr.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 5 0.0 %
Date: 2014-11-03 Functions: 0 3 0.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             : #ifndef INCLUDED_FPICKER_SOURCE_OFFICE_FPSOFFICERESMGR_HXX
      10             : #define INCLUDED_FPICKER_SOURCE_OFFICE_FPSOFFICERESMGR_HXX
      11             : 
      12             : #include <rtl/instance.hxx>
      13             : #include <tools/resmgr.hxx>
      14             : 
      15             : namespace
      16             : {
      17             :     struct ResMgrHolder
      18             :     {
      19           0 :         ResMgr * operator ()()
      20             :         {
      21           0 :             return ResMgr::CreateResMgr ("fps_office");
      22             :         }
      23             : 
      24           0 :         static ResMgr * getOrCreate()
      25             :         {
      26             :             return rtl_Instance<
      27             :                 ResMgr, ResMgrHolder,
      28             :                 osl::MutexGuard, osl::GetGlobalMutex >::create (
      29           0 :                     ResMgrHolder(), osl::GetGlobalMutex());
      30             :         }
      31             :     };
      32             : 
      33             :     struct SvtResId : public ResId
      34             :     {
      35           0 :         SvtResId (sal_uInt16 nId) : ResId (nId, *ResMgrHolder::getOrCreate()) {}
      36             :     };
      37             : }
      38             : 
      39             : #define SVT_RESSTR(i)    SvtResId(i).toString()
      40             : 
      41             : #endif
      42             : 
      43             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10