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 EndDialog () 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)
 

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::Button &, 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 (bool UseSavedSentence=false, bool bIgnoreCurrentError=false)
 
void LockFocusChanges (bool bLock)
 
void ToplevelFocusChanged ()
 
void Impl_Restore (bool bUseSavedSentence)
 
LanguageType GetSelectedLang_Impl () const
 
bool GetNextSentence_Impl (bool bUseSavedSentence, bool bRechek)
 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 &, voidaDialogUndoLink
 
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 124 of file SpellDialog.hxx.

Constructor & Destructor Documentation

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

Definition at line 222 of file SpellDialog.cxx.

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

Member Function Documentation

void SpellDialog::Activate ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 916 of file SpellDialog.cxx.

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

void SpellDialog::AddToDictionaryExecute ( const OString &  rItemId)
private
bool SpellDialog::ApplyChangeAllList_Impl ( SpellPortions rSentence,
bool &  bHasReplaced 
)
staticprivate

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

Definition at line 1068 of file SpellDialog.cxx.

References LinguMgr::GetChangeAllList().

Referenced by GetNextSentence_Impl().

void SpellDialog::Close ( )
overridevirtual
void SpellDialog::Deactivate ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 922 of file SpellDialog.cxx.

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

svx::SpellDialog::DECL_LINK ( ChangeHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( DoubleClickChangeHdl  ,
weld::TreeView ,
bool   
)
private
svx::SpellDialog::DECL_LINK ( ChangeAllHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( IgnoreAllHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( IgnoreHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( CheckGrammarHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( ExtClickHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( CancelHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)
private
svx::SpellDialog::DECL_LINK ( UndoHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( AddToDictSelectHdl  ,
const OString &  ,
void   
)
private
svx::SpellDialog::DECL_LINK ( AddToDictClickHdl  ,
weld::Button ,
void   
)
private
svx::SpellDialog::DECL_LINK ( LanguageSelectHdl  ,
weld::ComboBox ,
void   
)
private
svx::SpellDialog::DECL_LINK ( DialogUndoHdl  ,
SpellUndoAction_Impl ,
void   
)
private
svx::SpellDialog::DECL_LINK ( InitHdl  ,
void ,
void   
)
private
bool SpellDialog::GetNextSentence_Impl ( bool  bUseSavedSentence,
bool  bRechek 
)
private
OUString SpellDialog::getReplacementString ( ) const
protected

Definition at line 488 of file SpellDialog.cxx.

References m_sNoSuggestionsST, m_xSentenceED, and m_xSuggestionLB.

LanguageType SpellDialog::GetSelectedLang_Impl ( ) const
private

Definition at line 699 of file SpellDialog.cxx.

References m_xLanguageLB.

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

void SpellDialog::Impl_Restore ( bool  bUseSavedSentence)
private
void SpellDialog::Init_Impl ( )
private
int SpellDialog::InitUserDicts ( )
private
void SpellDialog::InvalidateDialog ( )
void svx::SpellDialog::LockFocusChanges ( bool  bLock)
inlineprivate

Definition at line 196 of file SpellDialog.hxx.

void SpellDialog::SetTitle_Impl ( LanguageType  nLang)
private
void SpellDialog::SpellContinue_Impl ( bool  UseSavedSentence = false,
bool  bIgnoreCurrentError = false 
)
private
void SpellDialog::StartSpellOptDlg_Impl ( )
private
void SpellDialog::ToplevelFocusChanged ( )
private
void SpellDialog::UpdateBoxes_Impl ( bool  bCallFromSelectHdl = false)
private

Friends And Related Function Documentation

friend class SentenceEditWindow_Impl
friend

Definition at line 126 of file SpellDialog.hxx.

Member Data Documentation

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

Definition at line 135 of file SpellDialog.hxx.

Referenced by AddToDictionaryExecute().

bool svx::SpellDialog::bFocusLocked
private

Definition at line 137 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), and ToplevelFocusChanged().

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

Definition at line 140 of file SpellDialog.hxx.

Referenced by GetNextSentence_Impl().

OUString svx::SpellDialog::m_sIgnoreOnceST
private

Definition at line 129 of file SpellDialog.hxx.

Referenced by Impl_Restore(), and SpellDialog().

OUString svx::SpellDialog::m_sNoSuggestionsST
private

Definition at line 130 of file SpellDialog.hxx.

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

OUString svx::SpellDialog::m_sResumeST
private

Definition at line 128 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), and SpellDialog().

OUString svx::SpellDialog::m_sTitleSpelling
private

Definition at line 132 of file SpellDialog.hxx.

Referenced by SetTitle_Impl(), and SpellDialog().

OUString svx::SpellDialog::m_sTitleSpellingGrammar
private

Definition at line 133 of file SpellDialog.hxx.

Referenced by SetTitle_Impl(), and SpellDialog().

std::unique_ptr<weld::MenuButton> svx::SpellDialog::m_xAddToDictMB
private
std::unique_ptr<weld::Button> svx::SpellDialog::m_xAddToDictPB
private
std::unique_ptr<weld::Label> svx::SpellDialog::m_xAltTitle
private

Definition at line 146 of file SpellDialog.hxx.

Referenced by SpellDialog().

std::unique_ptr<weld::Button> svx::SpellDialog::m_xAutoCorrPB
private
std::unique_ptr<weld::Button> svx::SpellDialog::m_xChangeAllPB
private
std::unique_ptr<weld::Button> svx::SpellDialog::m_xChangePB
private
std::unique_ptr<weld::CheckButton> svx::SpellDialog::m_xCheckGrammarCB
private

Definition at line 166 of file SpellDialog.hxx.

Referenced by Init_Impl(), and UpdateBoxes_Impl().

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

Definition at line 169 of file SpellDialog.hxx.

Referenced by Init_Impl().

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

Definition at line 153 of file SpellDialog.hxx.

Referenced by UpdateBoxes_Impl().

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

Definition at line 149 of file SpellDialog.hxx.

std::unique_ptr<weld::Button> svx::SpellDialog::m_xIgnorePB
private
std::unique_ptr<weld::Button> svx::SpellDialog::m_xIgnoreRulePB
private
std::unique_ptr<weld::Label> svx::SpellDialog::m_xLanguageFT
private
std::unique_ptr<SvxLanguageBox> svx::SpellDialog::m_xLanguageLB
private
std::unique_ptr<weld::Label> svx::SpellDialog::m_xNoSuggestionsFT
private

Definition at line 148 of file SpellDialog.hxx.

Referenced by SpellDialog().

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

Definition at line 154 of file SpellDialog.hxx.

Referenced by InvalidateDialog(), and SpellContinue_Impl().

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

Definition at line 167 of file SpellDialog.hxx.

Referenced by Init_Impl().

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

Definition at line 147 of file SpellDialog.hxx.

Referenced by SpellDialog().

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

Definition at line 171 of file SpellDialog.hxx.

std::unique_ptr<weld::Label> svx::SpellDialog::m_xSuggestionFT
private
std::unique_ptr<weld::TreeView> svx::SpellDialog::m_xSuggestionLB
private
std::unique_ptr<weld::Toolbar> svx::SpellDialog::m_xToolbar
private

Definition at line 170 of file SpellDialog.hxx.

Referenced by SpellDialog().

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

Definition at line 142 of file SpellDialog.hxx.

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

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

Definition at line 144 of file SpellDialog.hxx.

Referenced by SpellContinue_Impl(), and SpellDialog().


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