InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WLocaleSetting Class Reference

#include <WLocaleSetting.h>

Static Public Member Functions

static PMLocaleId GetLocale ()
 
static PMLocaleId GetSystemLocale ()
 
static int16 GetSystemScript ()
 
static void SetLocale (const PMLocaleId &locale)
 
static void Initialize_Internal (int16 systemScript, const PMLocaleId &locale)
 

Detailed Description

Provides the windows implementation for getting the current Locale setting for the application.

Member Function Documentation

static PMLocaleId WLocaleSetting::GetLocale ()
static

Get the current locale setting. This encapsulates UI language, Feature set language, and application feature set.

See Also
PMLocaleIds.h and
PMLocaleId.h
Returns
the current locale
static PMLocaleId WLocaleSetting::GetSystemLocale ()
static

Get the locale setting that seems most appropriate for the user's OS. Mostly useful for determining if the user is on a non-Roman OS.

See Also
PMLocaleIds.h and
PMLocaleId.h
Returns
locale that best matches the OS
static int16 WLocaleSetting::GetSystemScript ()
static

Get the cooltype script that best matches the system script of the OS.

Returns
script that best matches OS. Return values are kCT*Script.
static void WLocaleSetting::Initialize_Internal (int16 systemScript,
const PMLocaleIdlocale 
)
static

Internal use only.

static void WLocaleSetting::SetLocale (const PMLocaleIdlocale)
static

Internal use only.