LibreOffice Module unotools (master) 1
Classes | Functions | Variables
lingucfg.cxx File Reference
#include <sal/config.h>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/util/XChangesBatch.hpp>
#include <sal/log.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <tools/debug.hxx>
#include <unotools/configitem.hxx>
#include <unotools/lingucfg.hxx>
#include <unotools/linguprops.hxx>
#include <comphelper/getexpandeduri.hxx>
#include <comphelper/processfactory.hxx>
#include <o3tl/string_view.hxx>
#include <mutex>
#include "itemholder1.hxx"
Include dependency graph for lingucfg.cxx:

Go to the source code of this file.

Classes

class  SvtLinguConfigItem
 

Functions

static bool lcl_SetLocale (LanguageType &rLanguage, const uno::Any &rVal)
 
static OUString lcl_LanguageToCfgLocaleStr (LanguageType nLanguage)
 
static LanguageType lcl_CfgAnyToLanguage (const uno::Any &rVal)
 
static bool lcl_GetFileUrlFromOrigin (OUString &rFileUrl, const OUString &rOrigin)
 

Variables

constexpr OUStringLiteral FILE_PROTOCOL = u"file:///"
 
NamesToHdl const aNamesToHdl []
 
static SvtLinguConfigItempCfgItem = nullptr
 
static sal_Int32 nCfgItemRefCount = 0
 
constexpr OUStringLiteral aG_Dictionaries = u"Dictionaries"
 

Function Documentation

◆ lcl_CfgAnyToLanguage()

static LanguageType lcl_CfgAnyToLanguage ( const uno::Any rVal)
static

◆ lcl_GetFileUrlFromOrigin()

static bool lcl_GetFileUrlFromOrigin ( OUString &  rFileUrl,
const OUString &  rOrigin 
)
static

◆ lcl_LanguageToCfgLocaleStr()

static OUString lcl_LanguageToCfgLocaleStr ( LanguageType  nLanguage)
static

Definition at line 73 of file lingucfg.cxx.

References LanguageTag::convertToBcp47(), and LANGUAGE_SYSTEM.

Referenced by SvtLinguConfigItem::SaveOptions().

◆ lcl_SetLocale()

static bool lcl_SetLocale ( LanguageType rLanguage,
const uno::Any rVal 
)
static

Definition at line 56 of file lingucfg.cxx.

References LanguageTag::convertToLanguageType().

Variable Documentation

◆ aG_Dictionaries

constexpr OUStringLiteral aG_Dictionaries = u"Dictionaries"
constexpr

◆ aNamesToHdl

NamesToHdl const aNamesToHdl[]

◆ FILE_PROTOCOL

constexpr OUStringLiteral FILE_PROTOCOL = u"file:///"
constexpr

Definition at line 45 of file lingucfg.cxx.

Referenced by lcl_GetFileUrlFromOrigin().

◆ nCfgItemRefCount

sal_Int32 nCfgItemRefCount = 0
static

◆ pCfgItem

SvtLinguConfigItem* pCfgItem = nullptr
static

Definition at line 816 of file lingucfg.cxx.

Referenced by SvtLinguConfig::GetConfigItem(), and SvtLinguConfig::~SvtLinguConfig().