LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/basic/source/classes - global.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 10 10.0 %
Date: 2013-07-09 Functions: 2 6 33.3 %
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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  */
      12             : 
      13             : #include "basic/global.hxx"
      14             : #include <comphelper/processfactory.hxx>
      15             : #include <i18nlangtag/lang.h>
      16             : #include <rtl/instance.hxx>
      17             : #include <unotools/transliterationwrapper.hxx>
      18             : #include <vcl/svapp.hxx>
      19             : 
      20             : namespace
      21             : {
      22           0 :     class lclTransliterationWrapper
      23             :     {
      24             :     private:
      25             :         utl::TransliterationWrapper m_aTransliteration;
      26             :     public:
      27           0 :         lclTransliterationWrapper()
      28             :             : m_aTransliteration(
      29             :                 comphelper::getProcessComponentContext(),
      30           0 :                 com::sun::star::i18n::TransliterationModules_IGNORE_CASE )
      31             :         {
      32           0 :             const LanguageType eOfficeLanguage = Application::GetSettings().GetLanguageTag().getLanguageType();
      33           0 :             m_aTransliteration.loadModuleIfNeeded( eOfficeLanguage );
      34           0 :         }
      35           0 :         utl::TransliterationWrapper& getTransliteration() { return m_aTransliteration; }
      36             :     };
      37             : 
      38             :     class theTransliterationWrapper : public rtl::Static<lclTransliterationWrapper, theTransliterationWrapper> {};
      39             : }
      40             : 
      41           0 : utl::TransliterationWrapper& SbGlobal::GetTransliteration()
      42             : {
      43           0 :     return theTransliterationWrapper::get().getTransliteration();
      44         429 : }
      45             : 
      46             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10