LibreOffice Module cui (master) 1
|
#include <thesdlg.hxx>
Public Member Functions | |
virtual | ~SvxThesaurusDialog () override |
DECL_LINK (ReplaceBtnHdl_Impl, weld::Button &, void) | |
DECL_LINK (LeftBtnHdl_Impl, weld::Button &, void) | |
DECL_LINK (LanguageHdl_Impl, weld::ComboBox &, void) | |
DECL_LINK (WordSelectHdl_Impl, weld::ComboBox &, void) | |
DECL_LINK (AlternativesSelectHdl_Impl, weld::TreeView &, void) | |
DECL_LINK (AlternativesDoubleClickHdl_Impl, weld::TreeView &, bool) | |
DECL_LINK (SelectFirstHdl_Impl, void *, void) | |
DECL_LINK (ReplaceEditHdl_Impl, weld::Entry &, void) | |
DECL_LINK (ModifyTimer_Hdl, Timer *, void) | |
DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
css::uno::Sequence< css::uno::Reference< css::linguistic2::XMeaning > > | queryMeanings_Impl (OUString &rTerm, const css::lang::Locale &rLocale, const css::beans::PropertyValues &rProperties) |
bool | UpdateAlternativesBox_Impl () |
void | LookUp (const OUString &rText) |
void | LookUp_Impl () |
SvxThesaurusDialog (weld::Widget *pParent, css::uno::Reference< css::linguistic2::XThesaurus > const &xThesaurus, const OUString &rWord, LanguageType nLanguage) | |
void | SetWindowTitle (LanguageType nLanguage) |
OUString | GetWord () const |
Public Member Functions inherited from SfxDialogController | |
SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId) | |
virtual void | Activate () |
virtual void | Deactivate () |
virtual void | ChildWinDispose () |
virtual void | Close () |
virtual void | EndDialog (int nResponse) |
virtual bool | CloseOnHide () const |
Private Attributes | |
Idle | m_aModifyIdle |
css::uno::Reference< css::linguistic2::XThesaurus > | xThesaurus |
OUString | aLookUpText |
LanguageType | nLookUpLanguage |
std::stack< OUString > | aLookUpHistory |
bool | m_bWordFound |
std::unique_ptr< weld::Button > | m_xLeftBtn |
std::unique_ptr< weld::ComboBox > | m_xWordCB |
std::unique_ptr< weld::TreeView > | m_xAlternativesCT |
std::unique_ptr< weld::Label > | m_xNotFound |
std::unique_ptr< weld::Entry > | m_xReplaceEdit |
std::unique_ptr< weld::ComboBox > | m_xLangLB |
std::unique_ptr< weld::Button > | m_xReplaceBtn |
ImplSVEvent * | m_nSelectFirstEvent |
Definition at line 31 of file thesdlg.hxx.
|
overridevirtual |
Definition at line 322 of file thesdlg.cxx.
References m_nSelectFirstEvent, and Application::RemoveUserEvent().
SvxThesaurusDialog::SvxThesaurusDialog | ( | weld::Widget * | pParent, |
css::uno::Reference< css::linguistic2::XThesaurus > const & | xThesaurus, | ||
const OUString & | rWord, | ||
LanguageType | nLanguage | ||
) |
Definition at line 238 of file thesdlg.cxx.
References aLookUpHistory, aLookUpText, LanguageTag::convertToLanguageType(), DBG_ASSERT, SvtLanguageTable::GetLanguageString(), i, LANGUAGE_DONTKNOW, LANGUAGE_NONE, LINK, LookUp(), m_aModifyIdle, m_xAlternativesCT, m_xDialog, m_xLangLB, m_xLeftBtn, m_xReplaceBtn, m_xReplaceEdit, m_xWordCB, nLookUpLanguage, linguistic::RemoveHyphens(), linguistic::ReplaceControlChars(), Timer::SetInvokeHandler(), Task::SetPriority(), SetWindowTitle(), and xThesaurus.
SvxThesaurusDialog::DECL_LINK | ( | AlternativesDoubleClickHdl_Impl | , |
weld::TreeView & | , | ||
bool | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | AlternativesSelectHdl_Impl | , |
weld::TreeView & | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | KeyInputHdl | , |
const KeyEvent & | , | ||
bool | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | LanguageHdl_Impl | , |
weld::ComboBox & | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | LeftBtnHdl_Impl | , |
weld::Button & | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | ModifyTimer_Hdl | , |
Timer * | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | ReplaceBtnHdl_Impl | , |
weld::Button & | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | ReplaceEditHdl_Impl | , |
weld::Entry & | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | SelectFirstHdl_Impl | , |
void * | , | ||
void | |||
) |
SvxThesaurusDialog::DECL_LINK | ( | WordSelectHdl_Impl | , |
weld::ComboBox & | , | ||
void | |||
) |
OUString SvxThesaurusDialog::GetWord | ( | ) | const |
Definition at line 347 of file thesdlg.cxx.
References m_xReplaceEdit.
void SvxThesaurusDialog::LookUp | ( | const OUString & | rText | ) |
Definition at line 126 of file thesdlg.cxx.
References LookUp_Impl(), and m_xWordCB.
Referenced by SvxThesaurusDialog().
void SvxThesaurusDialog::LookUp_Impl | ( | ) |
Definition at line 155 of file thesdlg.cxx.
References aLookUpHistory, aLookUpText, LINK, m_bWordFound, m_nSelectFirstEvent, m_xAlternativesCT, m_xLeftBtn, m_xNotFound, m_xReplaceEdit, m_xWordCB, Application::PostUserEvent(), and UpdateAlternativesBox_Impl().
Referenced by LookUp().
uno::Sequence< uno::Reference< linguistic2::XMeaning > > SvxThesaurusDialog::queryMeanings_Impl | ( | OUString & | rTerm, |
const css::lang::Locale & | rLocale, | ||
const css::beans::PropertyValues & | rProperties | ||
) |
css::lang::IllegalArgumentException | |
css::uno::RuntimeException |
Definition at line 62 of file thesdlg.cxx.
References comphelper::string::stripEnd(), and xThesaurus.
Referenced by UpdateAlternativesBox_Impl().
void SvxThesaurusDialog::SetWindowTitle | ( | LanguageType | nLanguage | ) |
Definition at line 336 of file thesdlg.cxx.
References aStr, SvtLanguageTable::GetLanguageString(), m_xDialog, and nIndex.
Referenced by SvxThesaurusDialog().
bool SvxThesaurusDialog::UpdateAlternativesBox_Impl | ( | ) |
Definition at line 86 of file thesdlg.cxx.
References aLookUpText, LanguageTag::convertToLocale(), DBG_ASSERT, i, m_xAlternativesCT, nLookUpLanguage, and queryMeanings_Impl().
Referenced by LookUp_Impl().
|
private |
Definition at line 38 of file thesdlg.hxx.
Referenced by LookUp_Impl(), and SvxThesaurusDialog().
|
private |
Definition at line 36 of file thesdlg.hxx.
Referenced by LookUp_Impl(), SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().
|
private |
Definition at line 33 of file thesdlg.hxx.
Referenced by SvxThesaurusDialog().
|
private |
Definition at line 39 of file thesdlg.hxx.
Referenced by LookUp_Impl().
|
private |
Definition at line 48 of file thesdlg.hxx.
Referenced by LookUp_Impl(), and ~SvxThesaurusDialog().
|
private |
Definition at line 43 of file thesdlg.hxx.
Referenced by LookUp_Impl(), SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().
|
private |
Definition at line 46 of file thesdlg.hxx.
Referenced by SvxThesaurusDialog().
|
private |
Definition at line 41 of file thesdlg.hxx.
Referenced by LookUp_Impl(), and SvxThesaurusDialog().
|
private |
Definition at line 44 of file thesdlg.hxx.
Referenced by LookUp_Impl().
|
private |
Definition at line 47 of file thesdlg.hxx.
Referenced by SvxThesaurusDialog().
|
private |
Definition at line 45 of file thesdlg.hxx.
Referenced by GetWord(), LookUp_Impl(), and SvxThesaurusDialog().
|
private |
Definition at line 42 of file thesdlg.hxx.
Referenced by LookUp(), LookUp_Impl(), and SvxThesaurusDialog().
|
private |
Definition at line 37 of file thesdlg.hxx.
Referenced by SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().
|
private |
Definition at line 35 of file thesdlg.hxx.
Referenced by queryMeanings_Impl(), and SvxThesaurusDialog().