fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / basic / source / classes / global.cxx
blobdaec2da4b485385a8504243a954d4e2c4782dd47
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include "basic/global.hxx"
11 #include <comphelper/processfactory.hxx>
12 #include <i18nlangtag/lang.h>
13 #include <rtl/instance.hxx>
14 #include <unotools/transliterationwrapper.hxx>
15 #include <vcl/svapp.hxx>
17 namespace
19 class lclTransliterationWrapper
21 private:
22 utl::TransliterationWrapper m_aTransliteration;
23 public:
24 lclTransliterationWrapper()
25 : m_aTransliteration(
26 comphelper::getProcessComponentContext(),
27 com::sun::star::i18n::TransliterationModules_IGNORE_CASE )
29 const LanguageType eOfficeLanguage = Application::GetSettings().GetLanguageTag().getLanguageType();
30 m_aTransliteration.loadModuleIfNeeded( eOfficeLanguage );
32 utl::TransliterationWrapper& getTransliteration() { return m_aTransliteration; }
35 class theTransliterationWrapper : public rtl::Static<lclTransliterationWrapper, theTransliterationWrapper> {};
38 utl::TransliterationWrapper& SbGlobal::GetTransliteration()
40 return theTransliterationWrapper::get().getTransliteration();
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */