![]() | InDesign SDK 20.5 |
#include <PMLocaleId.h>
Public Types | |
| typedef base_type | data_type |
Public Member Functions | |
| PMLocaleId () | |
| PMLocaleId (int32 combinedId) | |
| PMLocaleId (int16 featureSetId, int16 userInterfaceId) | |
| bool16 | operator== (const PMLocaleId &other) const |
| bool16 | operator!= (const PMLocaleId &other) const |
| bool16 | Match (const PMLocaleId &other) const |
| int32 | operator* () const |
| void | ReadWrite (IPMStream *s) |
| int16 | GetFeatureSetId () const |
| int16 | GetProductFS () const |
| int16 | GetLanguageFS () const |
| int16 | GetUserInterfaceId () const |
| int16 | GetDefaultLanguageId () const |
| bool16 | IsProductFS (const int16 productFS) const |
| bool16 | IsLanguageFS (const int16 languageFS) const |
| int32 | GetFeatureSetScript () const |
| int32 | GetUIScript () const |
| ID_ICU_NAMESPACE::Locale | GetUserInterfaceICULocale () const |
| bool16 | IsRightToLeftUI () const |
| void | SetUserInterface (ID_ICU_NAMESPACE::Locale newLocale) |
| bool | operator< (const PMLocaleId &other) const |
The purpose of this class is to encapsulate a locale, which we've defined to be a combination of three things: 1) Product feature set (i.e. kInDesignProductFS -
| inline |
Various constructors for PMLocaleId
| inline |
Get the default language. UI may be English but default language is Hebrew (i.e. k_enIL.
| inline |
The Feature set ID is partitioned into a high byte for product feature sets and a low byte for language feature sets.
| int32 PMLocaleId::GetFeatureSetScript | ( | ) | const |
Get the cooltype script associated with the LanguageFS + UI language for this PMLocaleId
| inline |
Get just the Language feature set ID (i.e. kRomanLanguageFS.
| inline |
Get just the product feature set ID (i.e. kInDesignProductFS.
| int32 PMLocaleId::GetUIScript | ( | ) | const |
Get the cooltype script associated with the UI language for this PMLocaleId
| ID_ICU_NAMESPACE::Locale PMLocaleId::GetUserInterfaceICULocale | ( | ) | const |
Get the ICU Locale associated with the UI language for this PMLocaleId
| inline |
| inline |
Check if this PMLocaleId matches the given language FS. Will match wildcards.
| languageFS | the constant for the language FS that you'd like to know if this PMLocaleId matches. |
| inline |
Check if this PMLocaleId matches the given product FS. Will match wildcards.
| productFS | the constant for the product FS that you'd like to know if this PMLocaleId matches. |
| inline |
True if UI is right to left like Arabic and Hebrew
| bool16 PMLocaleId::Match | ( | const PMLocaleId & | other | ) | const |
Checks if one PMLocaleId matches another one. Considers wildcards to be a match(i.e. kWild == any UI language, kAllLanguagesFS == any language FS, kAllProductsFS == any product FS)
| other | The PMLocaleId we're comparing this one to. |
| inline |
Inequality operator. Does not check for wildcards
| other | The PMLocaleId we're comparing this one to. |
| inline |
Combines the FeatureSetId and UserInterfaceId into a single Id. The feature set is stored in the upper word of a long and the UI is stored in the lower word.
| inline |
Equality operator. Does not check for wildcards
| other | The PMLocaleId we're comparing this one to. |
| inline |
Streams in/out a PMLocaleId.
| s | the stream to read/write from/to |
| void PMLocaleId::SetUserInterface | ( | ID_ICU_NAMESPACE::Locale | newLocale | ) |
Set the UI language for this PMLocaleId
| newLocale | ICU Locale to set PMLocaleId to |