#include <ut_Language.h>
Public Member Functions | |
UT_Language () | |
UT_uint32 | getCount () |
const gchar * | getNthLangCode (UT_uint32 n) |
const gchar * | getNthLangName (UT_uint32 n) |
UT_uint32 | getNthId (UT_uint32 n) |
const gchar * | getCodeFromName (const gchar *szName) |
const gchar * | getCodeFromCode (const gchar *szCode) |
const UT_LangRecord * | getLangRecordFromCode (const gchar *szCode) |
UT_uint32 | getIndxFromCode (const gchar *szCode) |
UT_uint32 | getIdFromCode (const gchar *szCode) |
UT_LANGUAGE_DIR | getDirFromCode (const gchar *szCode) |
Static Private Attributes | |
static bool | s_Init = true |
UT_Language::UT_Language | ( | ) |
The constructor looks up the translations for the language code and sorts the table alphabetically by the language name
References s_Init, and UT_Language_updateLanguageNames().
const gchar * UT_Language::getCodeFromCode | ( | const gchar * | szCode | ) |
References getLangRecordFromCode(), UT_LangRecord::m_szLangCode, UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by fp_TextRun::_lookupProperties().
const gchar * UT_Language::getCodeFromName | ( | const gchar * | szName | ) |
References UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by XAP_Dialog_Language::_setLanguage().
UT_uint32 UT_Language::getCount | ( | ) |
Referenced by AP_Win32App::getInstalledUILanguages(), and XAP_Dialog_Language::XAP_Dialog_Language().
UT_LANGUAGE_DIR UT_Language::getDirFromCode | ( | const gchar * | szCode | ) |
References getLangRecordFromCode(), UT_LangRecord::m_eDir, UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Win32StatusBar::AP_Win32StatusBar(), EV_Win32Menu::EV_Win32Menu(), and XAP_DiskStringSet::setValue().
UT_uint32 UT_Language::getIdFromCode | ( | const gchar * | szCode | ) |
References getLangRecordFromCode(), UT_LangRecord::m_nID, UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by XAP_Dialog_Language::setDocumentLanguage().
UT_uint32 UT_Language::getIndxFromCode | ( | const gchar * | szCode | ) |
References gchar, UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by AP_Win32Dialog_Options_General::_onInitDialog(), s_LaTeX_Listener::_outputBabelPackage(), AP_Win32Dialog_Options::_setUILanguage(), SpellChecker::couldNotLoadDictionary(), and XAP_Dialog_Language::setLanguageProperty().
const UT_LangRecord * UT_Language::getLangRecordFromCode | ( | const gchar * | szCode | ) |
References gchar, s_compareB(), UT_ASSERT, UT_DEBUGMSG, and UT_SHOULD_NOT_HAPPEN.
Referenced by getCodeFromCode(), getDirFromCode(), getIdFromCode(), and XAP_App::setKbdLanguage().
Referenced by XAP_Dialog_Language::XAP_Dialog_Language().
const gchar * UT_Language::getNthLangCode | ( | UT_uint32 | n | ) |
const gchar * UT_Language::getNthLangName | ( | UT_uint32 | n | ) |
bool UT_Language::s_Init = true [static, private] |
Referenced by UT_Language().