#include <xap_Dlg_Language.h>
XAP_Dialog_Language::XAP_Dialog_Language | ( | XAP_DialogFactory * | pDlgFactory, | |
XAP_Dialog_Id | id | |||
) |
References gchar, XAP_App::getApp(), UT_Language::getCount(), UT_Language::getNthId(), UT_Language::getNthLangCode(), UT_Language::getNthLangName(), is_utf8_encoding, m_answer, m_bChangedLanguage, m_bSpellCheck, m_iLangCount, m_pLangProperty, m_pLangTable, m_pLanguage, m_ppLanguages, m_ppLanguagesCode, s_compareQ(), and UT_ASSERT.
XAP_Dialog_Language::~XAP_Dialog_Language | ( | void | ) | [virtual] |
References DELETEP, DELETEPV, m_pLangTable, m_ppLanguages, and m_ppLanguagesCode.
void XAP_Dialog_Language::_setLanguage | ( | const gchar * | pLang | ) | [protected] |
XAP_Dialog_Language::tAnswer XAP_Dialog_Language::getAnswer | ( | void | ) | const |
References m_answer.
Referenced by _getTranslationCode(), AP_Dialog_Styles::ModifyLang(), and s_doLangDlg().
UT_Vector * XAP_Dialog_Language::getAvailableDictionaries | ( | ) |
References UT_GenericVector< T >::addItem(), UT_String::c_str(), SpellChecker::doesDictionaryExist(), UT_GenericVector< T >::getItemCount(), SpellChecker::getMapping(), UT_GenericVector< T >::getNthItem(), instance, and DictionaryMapping::lang.
Referenced by XAP_Win32Dialog_Language::_fillTreeview().
bool XAP_Dialog_Language::getChangedLangProperty | ( | const gchar ** | pszLangProp | ) | const |
References m_bChangedLanguage, m_pLangProperty, and UT_return_val_if_fail.
Referenced by _getTranslationCode(), AP_Dialog_Styles::ModifyLang(), and s_doLangDlg().
void XAP_Dialog_Language::getDocDefaultLangCheckboxLabel | ( | std::string & | s | ) |
void XAP_Dialog_Language::getDocDefaultLangCheckboxLabel | ( | UT_UTF8String & | s | ) |
Fills s with the string to be used as a label for the the default language checkbox
References XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), and UT_return_if_fail.
Referenced by XAP_Win32Dialog_Language::_onInitDialog(), and XAP_UnixDialog_Language::constructWindow().
void XAP_Dialog_Language::getDocDefaultLangDescription | ( | UT_UTF8String & | s | ) |
Fills s with the string to be displayed in the default language static control
References XAP_Dialog::getApp(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_docLang, and UT_return_if_fail.
Referenced by XAP_Win32Dialog_Language::_onInitDialog(), and XAP_UnixDialog_Language::constructWindow().
void XAP_Dialog_Language::getDocDefaultLangDescription | ( | std::string & | s | ) |
bool XAP_Dialog_Language::getSpellCheck | ( | void | ) | const [inline] |
bool XAP_Dialog_Language::isMakeDocumentDefault | ( | ) | const [inline] |
Referenced by XAP_UnixDialog_Language::constructWindow(), and s_doLangDlg().
virtual void XAP_Dialog_Language::runModal | ( | XAP_Frame * | pFrame | ) | [pure virtual] |
Implements XAP_Dialog_NonPersistent.
Implemented in XAP_CocoaDialog_Language, and XAP_UnixDialog_Language.
Referenced by _getTranslationCode(), AP_Dialog_Styles::ModifyLang(), and s_doLangDlg().
void XAP_Dialog_Language::setDocumentLanguage | ( | const gchar * | pLang | ) |
Initialises the dialogue to the current default lanaguage pLang is a standard lang property (e.g., en-GB)
References XAP_Dialog::getApp(), UT_Language::getIdFromCode(), XAP_App::getStringSet(), XAP_StringSet::getValueUTF8(), m_docLang, m_pLangTable, and UT_return_if_fail.
Referenced by s_doLangDlg().
void XAP_Dialog_Language::setLanguageProperty | ( | const gchar * | pLangProp | ) |
References UT_Language::getIndxFromCode(), UT_Language::getNthLangCode(), UT_Language::getNthLangName(), m_pLangProperty, m_pLangTable, m_pLanguage, and UT_ASSERT.
Referenced by _getTranslationCode(), AP_Dialog_Styles::ModifyLang(), and s_doLangDlg().
void XAP_Dialog_Language::setMakeDocumentDefault | ( | bool | b | ) | [inline] |
bool XAP_Dialog_Language::m_bChangedLanguage [protected] |
bool XAP_Dialog_Language::m_bDocDefault [protected] |
bool XAP_Dialog_Language::m_bSpellCheck [protected] |
Referenced by XAP_Dialog_Language().
std::string XAP_Dialog_Language::m_docLang [protected] |
Referenced by getDocDefaultLangDescription(), and setDocumentLanguage().
UT_uint32 XAP_Dialog_Language::m_iLangCount [protected] |
const gchar* XAP_Dialog_Language::m_pLangProperty [protected] |
Referenced by _setLanguage(), getChangedLangProperty(), setLanguageProperty(), and XAP_Dialog_Language().
UT_Language* XAP_Dialog_Language::m_pLangTable [protected] |
Referenced by _setLanguage(), setDocumentLanguage(), setLanguageProperty(), XAP_Dialog_Language(), and ~XAP_Dialog_Language().
const gchar* XAP_Dialog_Language::m_pLanguage [protected] |
const gchar** XAP_Dialog_Language::m_ppLanguages [protected] |
Referenced by XAP_Win32Dialog_Language::_fillTreeview(), XAP_Win32Dialog_Language::_onCommand(), XAP_UnixDialog_Language::_populateWindowData(), XAP_Win32Dialog_Language::_setLanguageAndExit(), XAP_UnixDialog_Language::event_setLang(), XAP_CocoaDialog_Language::getNthLanguage, XAP_CocoaDialog_Language::runModal, XAP_Dialog_Language(), and ~XAP_Dialog_Language().
const gchar** XAP_Dialog_Language::m_ppLanguagesCode [protected] |
Referenced by XAP_Win32Dialog_Language::_fillTreeview(), XAP_Dialog_Language(), and ~XAP_Dialog_Language().