LibreOffice Module cui (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
svx::SpellDialog Class Reference

#include <SpellDialog.hxx>

Inheritance diagram for svx::SpellDialog:
[legend]
Collaboration diagram for svx::SpellDialog:
[legend]

Public Member Functions

 SpellDialog (svx::SpellDialogChildWindow *pChildWindow, weld::Window *pParent, SfxBindings *pBindings)
 
virtual ~SpellDialog () override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void Close () override
 
void InvalidateDialog ()
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 

Protected Member Functions

OUString getReplacementString () const
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 

Private Member Functions

 DECL_LINK (ChangeHdl, weld::Button &, void)
 
 DECL_LINK (DoubleClickChangeHdl, weld::TreeView &, bool)
 
 DECL_LINK (ChangeAllHdl, weld::Button &, void)
 
 DECL_LINK (IgnoreAllHdl, weld::Button &, void)
 
 DECL_LINK (IgnoreHdl, weld::Button &, void)
 
 DECL_LINK (CheckGrammarHdl, weld::Toggleable &, void)
 
 DECL_LINK (ExtClickHdl, weld::Button &, void)
 
 DECL_LINK (CancelHdl, weld::Button &, void)
 
 DECL_LINK (ModifyHdl, LinkParamNone *, void)
 
 DECL_LINK (UndoHdl, weld::Button &, void)
 
 DECL_LINK (AddToDictSelectHdl, const OString &, void)
 
 DECL_LINK (AddToDictClickHdl, weld::Button &, void)
 
 DECL_LINK (LanguageSelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (DialogUndoHdl, SpellUndoAction_Impl &, void)
 
 DECL_LINK (InitHdl, void *, void)
 
void AddToDictionaryExecute (const OString &rItemId)
 
void StartSpellOptDlg_Impl ()
 
int InitUserDicts ()
 
void UpdateBoxes_Impl (bool bCallFromSelectHdl=false)
 
void Init_Impl ()
 
void SpellContinue_Impl (std::unique_ptr< UndoChangeGroupGuard > *pGuard=nullptr, bool UseSavedSentence=false, bool bIgnoreCurrentError=false)
 
void LockFocusChanges (bool bLock)
 
void ToplevelFocusChanged ()
 
void Impl_Restore (bool bUseSavedSentence)
 
LanguageType GetSelectedLang_Impl () const
 
bool GetNextSentence_Impl (std::unique_ptr< UndoChangeGroupGuard > *pGuard, bool bUseSavedSentence, bool bRecheck)
 Retrieves the next sentence. More...
 
void SetTitle_Impl (LanguageType nLang)
 

Static Private Member Functions

static bool ApplyChangeAllList_Impl (SpellPortions &rSentence, bool &bHasReplaced)
 Corrects all errors that have been selected to be changed always. More...
 

Private Attributes

OUString m_sResumeST
 
OUString m_sIgnoreOnceST
 
OUString m_sNoSuggestionsST
 
OUString m_sTitleSpelling
 
OUString m_sTitleSpellingGrammar
 
Link< SpellUndoAction_Impl &, void > aDialogUndoLink
 
bool bFocusLocked
 
svx::SpellDialogChildWindowrParent
 
svx::SpellPortions m_aSavedSentence
 
std::unique_ptr< SpellDialog_ImplpImpl
 
css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpell
 
std::unique_ptr< weld::Labelm_xAltTitle
 
std::unique_ptr< weld::Labelm_xResumeFT
 
std::unique_ptr< weld::Labelm_xNoSuggestionsFT
 
std::unique_ptr< weld::Labelm_xIgnoreOnceFT
 
std::unique_ptr< weld::Labelm_xLanguageFT
 
std::unique_ptr< SvxLanguageBoxm_xLanguageLB
 
std::unique_ptr< weld::Labelm_xExplainFT
 
std::unique_ptr< weld::LinkButtonm_xExplainLink
 
std::unique_ptr< weld::Labelm_xNotInDictFT
 
std::unique_ptr< SentenceEditWindow_Implm_xSentenceED
 
std::unique_ptr< weld::Labelm_xSuggestionFT
 
std::unique_ptr< weld::TreeViewm_xSuggestionLB
 
std::unique_ptr< weld::Buttonm_xIgnorePB
 
std::unique_ptr< weld::Buttonm_xIgnoreAllPB
 
std::unique_ptr< weld::Buttonm_xIgnoreRulePB
 
std::unique_ptr< weld::Buttonm_xAddToDictPB
 
std::unique_ptr< weld::MenuButtonm_xAddToDictMB
 
std::unique_ptr< weld::Buttonm_xChangePB
 
std::unique_ptr< weld::Buttonm_xChangeAllPB
 
std::unique_ptr< weld::Buttonm_xAutoCorrPB
 
std::unique_ptr< weld::CheckButtonm_xCheckGrammarCB
 
std::unique_ptr< weld::Buttonm_xOptionsPB
 
std::unique_ptr< weld::Buttonm_xUndoPB
 
std::unique_ptr< weld::Buttonm_xClosePB
 
std::unique_ptr< weld::Toolbarm_xToolbar
 
std::unique_ptr< weld::CustomWeldm_xSentenceEDWeld
 

Friends

class SentenceEditWindow_Impl
 

Detailed Description

Definition at line 121 of file SpellDialog.hxx.

Constructor & Destructor Documentation

◆ SpellDialog()

SpellDialog::SpellDialog ( svx::SpellDialogChildWindow pChildWindow,
weld::Window pParent,
SfxBindings pBindings 
)

◆ ~SpellDialog()

SpellDialog::~SpellDialog ( )
overridevirtual

Definition at line 224 of file SpellDialog.cxx.

References LinguMgr::GetDictionaryList(), pImpl, and SaveDictionaries().

Member Function Documentation

◆ Activate()

void SpellDialog::Activate ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 936 of file SpellDialog.cxx.

References SfxModelessDialogController::Activate(), and ToplevelFocusChanged().

◆ AddToDictionaryExecute()

void SpellDialog::AddToDictionaryExecute ( const OString &  rItemId)
private

◆ ApplyChangeAllList_Impl()

bool SpellDialog::ApplyChangeAllList_Impl ( SpellPortions rSentence,
bool &  bHasReplaced 
)
staticprivate

Corrects all errors that have been selected to be changed always.

Definition at line 1083 of file SpellDialog.cxx.

References LinguMgr::GetChangeAllList().

Referenced by GetNextSentence_Impl().

◆ Close()

void SpellDialog::Close ( )
overridevirtual

◆ Deactivate()

void SpellDialog::Deactivate ( )
overridevirtual

◆ DECL_LINK() [1/15]

svx::SpellDialog::DECL_LINK ( AddToDictClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/15]

svx::SpellDialog::DECL_LINK ( AddToDictSelectHdl  ,
const OString &  ,
void   
)
private

◆ DECL_LINK() [3/15]

svx::SpellDialog::DECL_LINK ( CancelHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/15]

svx::SpellDialog::DECL_LINK ( ChangeAllHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [5/15]

svx::SpellDialog::DECL_LINK ( ChangeHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/15]

svx::SpellDialog::DECL_LINK ( CheckGrammarHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [7/15]

svx::SpellDialog::DECL_LINK ( DialogUndoHdl  ,
SpellUndoAction_Impl ,
void   
)
private

◆ DECL_LINK() [8/15]

svx::SpellDialog::DECL_LINK ( DoubleClickChangeHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [9/15]

svx::SpellDialog::DECL_LINK ( ExtClickHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [10/15]

svx::SpellDialog::DECL_LINK ( IgnoreAllHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [11/15]

svx::SpellDialog::DECL_LINK ( IgnoreHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [12/15]

svx::SpellDialog::DECL_LINK ( InitHdl  ,
void *  ,
void   
)
private

◆ DECL_LINK() [13/15]

svx::SpellDialog::DECL_LINK ( LanguageSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [14/15]

svx::SpellDialog::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [15/15]

svx::SpellDialog::DECL_LINK ( UndoHdl  ,
weld::Button ,
void   
)
private

◆ GetNextSentence_Impl()

bool SpellDialog::GetNextSentence_Impl ( std::unique_ptr< UndoChangeGroupGuard > *  pGuard,
bool  bUseSavedSentence,
bool  bRecheck 
)
private

◆ getReplacementString()

OUString SpellDialog::getReplacementString ( ) const
protected

Definition at line 488 of file SpellDialog.cxx.

References m_sNoSuggestionsST, m_xSentenceED, and m_xSuggestionLB.

◆ GetSelectedLang_Impl()

LanguageType SpellDialog::GetSelectedLang_Impl ( ) const
private

Definition at line 717 of file SpellDialog.cxx.

References m_xLanguageLB.

Referenced by svx::SentenceEditWindow_Impl::CreateSpellPortions().

◆ Impl_Restore()

void SpellDialog::Impl_Restore ( bool  bUseSavedSentence)
private

◆ Init_Impl()

void SpellDialog::Init_Impl ( )
private

◆ InitUserDicts()

int SpellDialog::InitUserDicts ( )
private

◆ InvalidateDialog()

void SpellDialog::InvalidateDialog ( )

◆ LockFocusChanges()

void svx::SpellDialog::LockFocusChanges ( bool  bLock)
inlineprivate

Definition at line 193 of file SpellDialog.hxx.

References bFocusLocked.

◆ SetTitle_Impl()

void SpellDialog::SetTitle_Impl ( LanguageType  nLang)
private

◆ SpellContinue_Impl()

void SpellDialog::SpellContinue_Impl ( std::unique_ptr< UndoChangeGroupGuard > *  pGuard = nullptr,
bool  UseSavedSentence = false,
bool  bIgnoreCurrentError = false 
)
private

◆ StartSpellOptDlg_Impl()

void SpellDialog::StartSpellOptDlg_Impl ( )
private

◆ ToplevelFocusChanged()

void SpellDialog::ToplevelFocusChanged ( )
private

◆ UpdateBoxes_Impl()

void SpellDialog::UpdateBoxes_Impl ( bool  bCallFromSelectHdl = false)
private

Friends And Related Function Documentation

◆ SentenceEditWindow_Impl

friend class SentenceEditWindow_Impl
friend

Definition at line 123 of file SpellDialog.hxx.

Member Data Documentation

◆ aDialogUndoLink

Link<SpellUndoAction_Impl&,void> svx::SpellDialog::aDialogUndoLink
private

Definition at line 132 of file SpellDialog.hxx.

Referenced by AddToDictionaryExecute().

◆ bFocusLocked

bool svx::SpellDialog::bFocusLocked
private

Definition at line 134 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), LockFocusChanges(), and ToplevelFocusChanged().

◆ m_aSavedSentence

svx::SpellPortions svx::SpellDialog::m_aSavedSentence
private

Definition at line 137 of file SpellDialog.hxx.

Referenced by GetNextSentence_Impl().

◆ m_sIgnoreOnceST

OUString svx::SpellDialog::m_sIgnoreOnceST
private

Definition at line 126 of file SpellDialog.hxx.

Referenced by Impl_Restore(), and SpellDialog().

◆ m_sNoSuggestionsST

OUString svx::SpellDialog::m_sNoSuggestionsST
private

Definition at line 127 of file SpellDialog.hxx.

Referenced by getReplacementString(), SpellDialog(), and UpdateBoxes_Impl().

◆ m_sResumeST

OUString svx::SpellDialog::m_sResumeST
private

Definition at line 125 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), and SpellDialog().

◆ m_sTitleSpelling

OUString svx::SpellDialog::m_sTitleSpelling
private

Definition at line 129 of file SpellDialog.hxx.

Referenced by SetTitle_Impl(), and SpellDialog().

◆ m_sTitleSpellingGrammar

OUString svx::SpellDialog::m_sTitleSpellingGrammar
private

Definition at line 130 of file SpellDialog.hxx.

Referenced by SetTitle_Impl(), and SpellDialog().

◆ m_xAddToDictMB

std::unique_ptr<weld::MenuButton> svx::SpellDialog::m_xAddToDictMB
private

◆ m_xAddToDictPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xAddToDictPB
private

◆ m_xAltTitle

std::unique_ptr<weld::Label> svx::SpellDialog::m_xAltTitle
private

Definition at line 143 of file SpellDialog.hxx.

Referenced by SpellDialog().

◆ m_xAutoCorrPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xAutoCorrPB
private

◆ m_xChangeAllPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xChangeAllPB
private

◆ m_xChangePB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xChangePB
private

◆ m_xCheckGrammarCB

std::unique_ptr<weld::CheckButton> svx::SpellDialog::m_xCheckGrammarCB
private

Definition at line 163 of file SpellDialog.hxx.

Referenced by Init_Impl(), and UpdateBoxes_Impl().

◆ m_xClosePB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xClosePB
private

Definition at line 166 of file SpellDialog.hxx.

Referenced by Init_Impl().

◆ m_xExplainFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xExplainFT
private

◆ m_xExplainLink

std::unique_ptr<weld::LinkButton> svx::SpellDialog::m_xExplainLink
private

Definition at line 150 of file SpellDialog.hxx.

Referenced by UpdateBoxes_Impl().

◆ m_xIgnoreAllPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xIgnoreAllPB
private

◆ m_xIgnoreOnceFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xIgnoreOnceFT
private

Definition at line 146 of file SpellDialog.hxx.

◆ m_xIgnorePB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xIgnorePB
private

◆ m_xIgnoreRulePB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xIgnoreRulePB
private

◆ m_xLanguageFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xLanguageFT
private

◆ m_xLanguageLB

std::unique_ptr<SvxLanguageBox> svx::SpellDialog::m_xLanguageLB
private

◆ m_xNoSuggestionsFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xNoSuggestionsFT
private

Definition at line 145 of file SpellDialog.hxx.

Referenced by SpellDialog().

◆ m_xNotInDictFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xNotInDictFT
private

Definition at line 151 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), and SpellContinue_Impl().

◆ m_xOptionsPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xOptionsPB
private

Definition at line 164 of file SpellDialog.hxx.

Referenced by Init_Impl().

◆ m_xResumeFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xResumeFT
private

Definition at line 144 of file SpellDialog.hxx.

Referenced by SpellDialog().

◆ m_xSentenceED

std::unique_ptr<SentenceEditWindow_Impl> svx::SpellDialog::m_xSentenceED
private

◆ m_xSentenceEDWeld

std::unique_ptr<weld::CustomWeld> svx::SpellDialog::m_xSentenceEDWeld
private

Definition at line 168 of file SpellDialog.hxx.

◆ m_xSuggestionFT

std::unique_ptr<weld::Label> svx::SpellDialog::m_xSuggestionFT
private

◆ m_xSuggestionLB

std::unique_ptr<weld::TreeView> svx::SpellDialog::m_xSuggestionLB
private

◆ m_xToolbar

std::unique_ptr<weld::Toolbar> svx::SpellDialog::m_xToolbar
private

Definition at line 167 of file SpellDialog.hxx.

Referenced by SpellDialog().

◆ m_xUndoPB

std::unique_ptr<weld::Button> svx::SpellDialog::m_xUndoPB
private

◆ pImpl

std::unique_ptr<SpellDialog_Impl> svx::SpellDialog::pImpl
private

Definition at line 139 of file SpellDialog.hxx.

Referenced by InitUserDicts(), and ~SpellDialog().

◆ rParent

svx::SpellDialogChildWindow& svx::SpellDialog::rParent
private

◆ xSpell

css::uno::Reference< css::linguistic2::XSpellChecker1 > svx::SpellDialog::xSpell
private

Definition at line 141 of file SpellDialog.hxx.

Referenced by SpellContinue_Impl(), and SpellDialog().


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