LibreOffice Module cui (master) 1
Public Member Functions | Private Attributes | List of all members
SvxThesaurusDialog Class Reference

#include <thesdlg.hxx>

Inheritance diagram for SvxThesaurusDialog:
[legend]
Collaboration diagram for SvxThesaurusDialog:
[legend]

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::Buttonm_xLeftBtn
 
std::unique_ptr< weld::ComboBoxm_xWordCB
 
std::unique_ptr< weld::TreeViewm_xAlternativesCT
 
std::unique_ptr< weld::Labelm_xNotFound
 
std::unique_ptr< weld::Entrym_xReplaceEdit
 
std::unique_ptr< weld::ComboBoxm_xLangLB
 
std::unique_ptr< weld::Buttonm_xReplaceBtn
 
ImplSVEventm_nSelectFirstEvent
 

Detailed Description

Definition at line 31 of file thesdlg.hxx.

Constructor & Destructor Documentation

◆ ~SvxThesaurusDialog()

SvxThesaurusDialog::~SvxThesaurusDialog ( )
overridevirtual

Definition at line 322 of file thesdlg.cxx.

References m_nSelectFirstEvent, and Application::RemoveUserEvent().

◆ SvxThesaurusDialog()

SvxThesaurusDialog::SvxThesaurusDialog ( weld::Widget pParent,
css::uno::Reference< css::linguistic2::XThesaurus > const &  xThesaurus,
const OUString &  rWord,
LanguageType  nLanguage 
)

Member Function Documentation

◆ DECL_LINK() [1/10]

SvxThesaurusDialog::DECL_LINK ( AlternativesDoubleClickHdl_Impl  ,
weld::TreeView ,
bool   
)

◆ DECL_LINK() [2/10]

SvxThesaurusDialog::DECL_LINK ( AlternativesSelectHdl_Impl  ,
weld::TreeView ,
void   
)

◆ DECL_LINK() [3/10]

SvxThesaurusDialog::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)

◆ DECL_LINK() [4/10]

SvxThesaurusDialog::DECL_LINK ( LanguageHdl_Impl  ,
weld::ComboBox ,
void   
)

◆ DECL_LINK() [5/10]

SvxThesaurusDialog::DECL_LINK ( LeftBtnHdl_Impl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [6/10]

SvxThesaurusDialog::DECL_LINK ( ModifyTimer_Hdl  ,
Timer ,
void   
)

◆ DECL_LINK() [7/10]

SvxThesaurusDialog::DECL_LINK ( ReplaceBtnHdl_Impl  ,
weld::Button ,
void   
)

◆ DECL_LINK() [8/10]

SvxThesaurusDialog::DECL_LINK ( ReplaceEditHdl_Impl  ,
weld::Entry ,
void   
)

◆ DECL_LINK() [9/10]

SvxThesaurusDialog::DECL_LINK ( SelectFirstHdl_Impl  ,
void *  ,
void   
)

◆ DECL_LINK() [10/10]

SvxThesaurusDialog::DECL_LINK ( WordSelectHdl_Impl  ,
weld::ComboBox ,
void   
)

◆ GetWord()

OUString SvxThesaurusDialog::GetWord ( ) const

Definition at line 347 of file thesdlg.cxx.

References m_xReplaceEdit.

◆ LookUp()

void SvxThesaurusDialog::LookUp ( const OUString &  rText)

Definition at line 126 of file thesdlg.cxx.

References LookUp_Impl(), and m_xWordCB.

Referenced by SvxThesaurusDialog().

◆ LookUp_Impl()

void SvxThesaurusDialog::LookUp_Impl ( )

◆ queryMeanings_Impl()

uno::Sequence< uno::Reference< linguistic2::XMeaning > > SvxThesaurusDialog::queryMeanings_Impl ( OUString &  rTerm,
const css::lang::Locale &  rLocale,
const css::beans::PropertyValues rProperties 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 62 of file thesdlg.cxx.

References comphelper::string::stripEnd(), and xThesaurus.

Referenced by UpdateAlternativesBox_Impl().

◆ SetWindowTitle()

void SvxThesaurusDialog::SetWindowTitle ( LanguageType  nLanguage)

Definition at line 336 of file thesdlg.cxx.

References aStr, SvtLanguageTable::GetLanguageString(), m_xDialog, and nIndex.

Referenced by SvxThesaurusDialog().

◆ UpdateAlternativesBox_Impl()

bool SvxThesaurusDialog::UpdateAlternativesBox_Impl ( )

Member Data Documentation

◆ aLookUpHistory

std::stack< OUString > SvxThesaurusDialog::aLookUpHistory
private

Definition at line 38 of file thesdlg.hxx.

Referenced by LookUp_Impl(), and SvxThesaurusDialog().

◆ aLookUpText

OUString SvxThesaurusDialog::aLookUpText
private

Definition at line 36 of file thesdlg.hxx.

Referenced by LookUp_Impl(), SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().

◆ m_aModifyIdle

Idle SvxThesaurusDialog::m_aModifyIdle
private

Definition at line 33 of file thesdlg.hxx.

Referenced by SvxThesaurusDialog().

◆ m_bWordFound

bool SvxThesaurusDialog::m_bWordFound
private

Definition at line 39 of file thesdlg.hxx.

Referenced by LookUp_Impl().

◆ m_nSelectFirstEvent

ImplSVEvent* SvxThesaurusDialog::m_nSelectFirstEvent
private

Definition at line 48 of file thesdlg.hxx.

Referenced by LookUp_Impl(), and ~SvxThesaurusDialog().

◆ m_xAlternativesCT

std::unique_ptr<weld::TreeView> SvxThesaurusDialog::m_xAlternativesCT
private

Definition at line 43 of file thesdlg.hxx.

Referenced by LookUp_Impl(), SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().

◆ m_xLangLB

std::unique_ptr<weld::ComboBox> SvxThesaurusDialog::m_xLangLB
private

Definition at line 46 of file thesdlg.hxx.

Referenced by SvxThesaurusDialog().

◆ m_xLeftBtn

std::unique_ptr<weld::Button> SvxThesaurusDialog::m_xLeftBtn
private

Definition at line 41 of file thesdlg.hxx.

Referenced by LookUp_Impl(), and SvxThesaurusDialog().

◆ m_xNotFound

std::unique_ptr<weld::Label> SvxThesaurusDialog::m_xNotFound
private

Definition at line 44 of file thesdlg.hxx.

Referenced by LookUp_Impl().

◆ m_xReplaceBtn

std::unique_ptr<weld::Button> SvxThesaurusDialog::m_xReplaceBtn
private

Definition at line 47 of file thesdlg.hxx.

Referenced by SvxThesaurusDialog().

◆ m_xReplaceEdit

std::unique_ptr<weld::Entry> SvxThesaurusDialog::m_xReplaceEdit
private

Definition at line 45 of file thesdlg.hxx.

Referenced by GetWord(), LookUp_Impl(), and SvxThesaurusDialog().

◆ m_xWordCB

std::unique_ptr<weld::ComboBox> SvxThesaurusDialog::m_xWordCB
private

Definition at line 42 of file thesdlg.hxx.

Referenced by LookUp(), LookUp_Impl(), and SvxThesaurusDialog().

◆ nLookUpLanguage

LanguageType SvxThesaurusDialog::nLookUpLanguage
private

Definition at line 37 of file thesdlg.hxx.

Referenced by SvxThesaurusDialog(), and UpdateAlternativesBox_Impl().

◆ xThesaurus

css::uno::Reference< css::linguistic2::XThesaurus > SvxThesaurusDialog::xThesaurus
private

Definition at line 35 of file thesdlg.hxx.

Referenced by queryMeanings_Impl(), and SvxThesaurusDialog().


The documentation for this class was generated from the following files: