LibreOffice Module basic (master) 1
global.cxx
Go to the documentation of this file.
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
11#include <i18nlangtag/lang.h>
14#include <vcl/svapp.hxx>
15#include <vcl/settings.hxx>
16
17#include <global.hxx>
18
19namespace
20{
21 class lclTransliterationWrapper
22 {
23 private:
24 utl::TransliterationWrapper m_aTransliteration;
25 public:
26 lclTransliterationWrapper()
27 : m_aTransliteration(
30 {
32 m_aTransliteration.loadModuleIfNeeded( eOfficeLanguage );
33 }
34 utl::TransliterationWrapper& getTransliteration() { return m_aTransliteration; }
35 };
36
37}
38
40{
41 static lclTransliterationWrapper theTransliterationWrapper;
42 return theTransliterationWrapper.getTransliteration();
43}
44
45/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const LanguageTag & GetLanguageTag() const
static const AllSettings & GetSettings()
LanguageType getLanguageType(bool bResolveSystem=true) const
static utl::TransliterationWrapper & GetTransliteration()
Definition: global.cxx:39
void loadModuleIfNeeded(LanguageType nLang)
Reference< XComponentContext > getProcessComponentContext()
TransliterationFlags