LibreOffice Module svx (master) 1
|
#include <chinese_dictionarydialog.hxx>
Public Member Functions | |
DictionaryList (std::unique_ptr< weld::TreeView > xTreeView) | |
void | init (const css::uno::Reference< css::linguistic2::XConversionDictionary > &xDictionary, weld::Entry *pED_Term, weld::Entry *pED_Mapping, weld::ComboBox *pLB_Property) |
void | deleteAll () |
void | refillFromDictionary (sal_Int32 nTextConversionOptions) |
void | save () |
DictionaryEntry * | getTermEntry (std::u16string_view rTerm) const |
bool | hasTerm (std::u16string_view rTerm) const |
void | addEntry (const OUString &rTerm, const OUString &rMapping, sal_Int16 nConversionPropertyType, int nPos=-1) |
int | deleteEntries (std::u16string_view rTerm) |
void | deleteEntryOnPos (sal_Int32 nPos) |
DictionaryEntry * | getEntryOnPos (sal_Int32 nPos) const |
DictionaryEntry * | getFirstSelectedEntry () const |
void | set_size_request (int nWidth, int nHeight) |
void | hide () |
void | show () |
void | connect_changed (const Link< weld::TreeView &, void > &rLink) |
void | connect_column_clicked (const Link< int, void > &rLink) |
bool | get_sort_order () const |
void | set_sort_order (bool bAscending) |
void | set_sort_column (int nColumn) |
int | get_sort_column () const |
int | get_selected_index () const |
int | get_height_rows (int nRows) const |
bool | get_visible () const |
void | set_sort_indicator (TriState eState, int nColumn) |
weld::TreeView & | get_widget () const |
Public Attributes | |
css::uno::Reference< css::linguistic2::XConversionDictionary > | m_xDictionary |
Private Member Functions | |
OUString | getPropertyTypeName (sal_Int16 nConversionPropertyType) const |
Private Attributes | |
std::unique_ptr< weld::TreeView > | m_xControl |
std::unique_ptr< weld::TreeIter > | m_xIter |
weld::Entry * | m_pED_Term |
weld::Entry * | m_pED_Mapping |
weld::ComboBox * | m_pLB_Property |
std::vector< DictionaryEntry * > | m_aToBeDeleted |
Definition at line 46 of file chinese_dictionarydialog.hxx.
textconversiondlgs::DictionaryList::DictionaryList | ( | std::unique_ptr< weld::TreeView > | xTreeView | ) |
Definition at line 42 of file chinese_dictionarydialog.cxx.
References m_xControl.
void textconversiondlgs::DictionaryList::addEntry | ( | const OUString & | rTerm, |
const OUString & | rMapping, | ||
sal_Int16 | nConversionPropertyType, | ||
int | nPos = -1 |
||
) |
Definition at line 187 of file chinese_dictionarydialog.cxx.
References getPropertyTypeName(), hasTerm(), textconversiondlgs::DictionaryEntry::m_aMapping, textconversiondlgs::DictionaryEntry::m_aTerm, textconversiondlgs::DictionaryEntry::m_nConversionPropertyType, m_xControl, m_xIter, nPos, and weld::toId().
Referenced by textconversiondlgs::IMPL_LINK_NOARG().
|
inline |
Definition at line 71 of file chinese_dictionarydialog.hxx.
References m_xControl.
|
inline |
Definition at line 72 of file chinese_dictionarydialog.hxx.
References m_xControl.
void textconversiondlgs::DictionaryList::deleteAll | ( | ) |
Definition at line 100 of file chinese_dictionarydialog.cxx.
References deleteEntryOnPos(), m_aToBeDeleted, m_xControl, and pE.
Referenced by refillFromDictionary().
int textconversiondlgs::DictionaryList::deleteEntries | ( | std::u16string_view | rTerm | ) |
Definition at line 215 of file chinese_dictionarydialog.cxx.
References getEntryOnPos(), textconversiondlgs::DictionaryEntry::m_aTerm, m_aToBeDeleted, textconversiondlgs::DictionaryEntry::m_bNewEntry, m_xControl, and nPos.
Referenced by textconversiondlgs::IMPL_LINK_NOARG().
void textconversiondlgs::DictionaryList::deleteEntryOnPos | ( | sal_Int32 | nPos | ) |
Definition at line 202 of file chinese_dictionarydialog.cxx.
References getEntryOnPos(), m_aToBeDeleted, textconversiondlgs::DictionaryEntry::m_bNewEntry, m_xControl, and nPos.
Referenced by deleteAll(), and textconversiondlgs::IMPL_LINK_NOARG().
Definition at line 78 of file chinese_dictionarydialog.hxx.
References m_xControl.
|
inline |
Definition at line 77 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::IMPL_LINK_NOARG().
|
inline |
Definition at line 76 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick().
|
inline |
Definition at line 73 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick().
|
inline |
Definition at line 79 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::IMPL_LINK_NOARG().
|
inline |
Definition at line 81 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::IMPL_LINK_NOARG().
DictionaryEntry * textconversiondlgs::DictionaryList::getEntryOnPos | ( | sal_Int32 | nPos | ) | const |
Definition at line 164 of file chinese_dictionarydialog.cxx.
References m_xControl, and nPos.
Referenced by deleteEntries(), deleteEntryOnPos(), getFirstSelectedEntry(), getTermEntry(), textconversiondlgs::IMPL_LINK_NOARG(), and save().
DictionaryEntry * textconversiondlgs::DictionaryList::getFirstSelectedEntry | ( | ) | const |
Definition at line 155 of file chinese_dictionarydialog.cxx.
References getEntryOnPos(), and m_xControl.
Referenced by textconversiondlgs::IMPL_LINK_NOARG(), textconversiondlgs::ChineseDictionaryDialog::isEditFieldsContentEqualsSelectedListContent(), and textconversiondlgs::ChineseDictionaryDialog::updateButtons().
|
private |
Definition at line 52 of file chinese_dictionarydialog.cxx.
References weld::ComboBox::get_count(), weld::ComboBox::get_text(), m_pLB_Property, and nPos.
Referenced by addEntry(), and refillFromDictionary().
DictionaryEntry * textconversiondlgs::DictionaryList::getTermEntry | ( | std::u16string_view | rTerm | ) | const |
Definition at line 170 of file chinese_dictionarydialog.cxx.
References getEntryOnPos(), m_xControl, and pE.
Referenced by hasTerm().
bool textconversiondlgs::DictionaryList::hasTerm | ( | std::u16string_view | rTerm | ) | const |
Definition at line 182 of file chinese_dictionarydialog.cxx.
References getTermEntry().
Referenced by addEntry(), and textconversiondlgs::ChineseDictionaryDialog::updateButtons().
|
inline |
Definition at line 69 of file chinese_dictionarydialog.hxx.
References m_xControl.
void textconversiondlgs::DictionaryList::init | ( | const css::uno::Reference< css::linguistic2::XConversionDictionary > & | xDictionary, |
weld::Entry * | pED_Term, | ||
weld::Entry * | pED_Mapping, | ||
weld::ComboBox * | pLB_Property | ||
) |
Definition at line 268 of file chinese_dictionarydialog.cxx.
References weld::Widget::get_preferred_size(), m_pED_Mapping, m_pED_Term, m_pLB_Property, m_xControl, m_xDictionary, TRISTATE_TRUE, and Size::Width().
Referenced by textconversiondlgs::ChineseDictionaryDialog::initDictionaryControl().
void textconversiondlgs::DictionaryList::refillFromDictionary | ( | sal_Int32 | nTextConversionOptions | ) |
Definition at line 114 of file chinese_dictionarydialog.cxx.
References deleteAll(), getPropertyTypeName(), textconversiondlgs::DictionaryEntry::m_aMapping, textconversiondlgs::DictionaryEntry::m_aTerm, textconversiondlgs::DictionaryEntry::m_nConversionPropertyType, m_xControl, m_xDictionary, m_xIter, and weld::toId().
void textconversiondlgs::DictionaryList::save | ( | ) |
Definition at line 63 of file chinese_dictionarydialog.cxx.
References getEntryOnPos(), m_aToBeDeleted, m_xControl, m_xDictionary, and pE.
Definition at line 68 of file chinese_dictionarydialog.hxx.
References m_xControl.
|
inline |
Definition at line 75 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick().
Definition at line 80 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick().
|
inline |
Definition at line 74 of file chinese_dictionarydialog.hxx.
References m_xControl.
Referenced by textconversiondlgs::ChineseDictionaryDialog::HeaderBarClick().
|
inline |
Definition at line 70 of file chinese_dictionarydialog.hxx.
References m_xControl.
|
private |
Definition at line 96 of file chinese_dictionarydialog.hxx.
Referenced by deleteAll(), deleteEntries(), deleteEntryOnPos(), and save().
|
private |
Definition at line 93 of file chinese_dictionarydialog.hxx.
Referenced by init().
|
private |
Definition at line 92 of file chinese_dictionarydialog.hxx.
Referenced by init().
|
private |
Definition at line 94 of file chinese_dictionarydialog.hxx.
Referenced by getPropertyTypeName(), and init().
|
private |
Definition at line 90 of file chinese_dictionarydialog.hxx.
Referenced by addEntry(), connect_changed(), connect_column_clicked(), deleteAll(), deleteEntries(), deleteEntryOnPos(), DictionaryList(), get_height_rows(), get_selected_index(), get_sort_column(), get_sort_order(), get_visible(), get_widget(), getEntryOnPos(), getFirstSelectedEntry(), getTermEntry(), hide(), init(), refillFromDictionary(), save(), set_size_request(), set_sort_column(), set_sort_indicator(), set_sort_order(), and show().
css::uno::Reference<css::linguistic2::XConversionDictionary> textconversiondlgs::DictionaryList::m_xDictionary |
Definition at line 87 of file chinese_dictionarydialog.hxx.
Referenced by init(), refillFromDictionary(), and save().
|
private |
Definition at line 91 of file chinese_dictionarydialog.hxx.
Referenced by addEntry(), and refillFromDictionary().