LibreOffice Module cui (master) 1
|
#include <SpellDialog.hxx>
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 |
SfxBindings & | GetBindings () 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 |
Protected Member Functions | |
OUString | getReplacementString () const |
Protected Member Functions inherited from SfxModelessDialogController | |
SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &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 OUString &, 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 OUString &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... | |
Friends | |
class | SentenceEditWindow_Impl |
Definition at line 121 of file SpellDialog.hxx.
SpellDialog::SpellDialog | ( | svx::SpellDialogChildWindow * | pChildWindow, |
weld::Window * | pParent, | ||
SfxBindings * | pBindings | ||
) |
Definition at line 159 of file SpellDialog.cxx.
References LinguMgr::GetSpellChecker(), svx::SpellDialogChildWindow::HasGrammarChecking(), Init_Impl(), LINK, m_pInitHdlEvent, m_sIgnoreOnceST, m_sNoSuggestionsST, m_sResumeST, m_sTitleSpelling, m_sTitleSpellingGrammar, m_xAddToDictMB, m_xAddToDictPB, m_xAltTitle, m_xDialog, m_xIgnorePB, m_xNoSuggestionsFT, m_xResumeFT, m_xSentenceED, m_xSuggestionLB, m_xToolbar, Application::PostUserEvent(), rParent, Size::Width(), and xSpell.
|
overridevirtual |
Definition at line 226 of file SpellDialog.cxx.
References LinguMgr::GetDictionaryList(), m_pInitHdlEvent, m_xOptionsDlg, pImpl, Application::RemoveUserEvent(), RET_CANCEL, and SaveDictionaries().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 954 of file SpellDialog.cxx.
References SfxModelessDialogController::Activate(), and ToplevelFocusChanged().
|
private |
Definition at line 853 of file SpellDialog.cxx.
References AddEntryToDic(), aDialogUndoLink, LinguMgr::GetDictionaryList(), m_xAddToDictMB, m_xDialog, m_xSentenceED, SpellContinue_Impl(), SPELLUNDO_CHANGE_ADD_TO_DICTIONARY, and SvxDicError().
|
staticprivate |
Corrects all errors that have been selected to be changed always.
Definition at line 1101 of file SpellDialog.cxx.
References LinguMgr::GetChangeAllList().
Referenced by GetNextSentence_Impl().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 721 of file SpellDialog.cxx.
References SfxViewFrame::Current(), SfxModelessDialogController::IsClosing(), and rParent.
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 960 of file SpellDialog.cxx.
References SfxModelessDialogController::Deactivate(), and ToplevelFocusChanged().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Retrieves the next sentence.
Definition at line 994 of file SpellDialog.cxx.
References ApplyChangeAllList_Impl(), svx::SpellDialogChildWindow::ApplyChangedSentence(), aProperties, COL_LIGHTGRAY(), LanguageTag::convertToLocale(), EE_CHAR_BKGCOLOR(), EE_CHAR_GRABBAG(), EE_CHAR_LANGUAGE(), SfxGrabBagItem::GetGrabBag(), svx::SpellDialogChildWindow::GetNextWrongSentence(), i, m_aSavedSentence, m_xSentenceED, m_xUndoPB, Name, rParent, and svx::SpellErrorDescription::toSequence().
Referenced by SpellContinue_Impl().
|
protected |
Definition at line 507 of file SpellDialog.cxx.
References m_sNoSuggestionsST, m_xSentenceED, and m_xSuggestionLB.
|
private |
Definition at line 735 of file SpellDialog.cxx.
References m_xLanguageLB.
Referenced by svx::SentenceEditWindow_Impl::CreateSpellPortions().
|
private |
Definition at line 692 of file SpellDialog.cxx.
References LinguMgr::GetChangeAllList(), m_sIgnoreOnceST, m_xIgnorePB, m_xSentenceED, and SpellContinue_Impl().
|
private |
Definition at line 247 of file SpellDialog.cxx.
References LinguMgr::GetChangeAllList(), LINK, m_xAddToDictMB, m_xAddToDictPB, m_xAutoCorrPB, m_xChangeAllPB, m_xChangePB, m_xCheckGrammarCB, m_xClosePB, m_xIgnoreAllPB, m_xIgnorePB, m_xIgnoreRulePB, m_xLanguageLB, m_xOptionsPB, m_xSentenceED, m_xSuggestionLB, and m_xUndoPB.
Referenced by SpellDialog().
|
private |
Definition at line 776 of file SpellDialog.cxx.
References LinguMgr::GetDictionaryList(), LinguMgr::GetIgnoreAllList(), LanguageTag::getLanguageType(), SvtLinguConfig::GetSpellAndGrammarContextDictionaryImage(), LinguMgr::GetStandardDic(), i, comphelper::LibreOfficeKit::isActive(), LANGUAGE_NONE, m_xAddToDictMB, m_xAddToDictPB, m_xLanguageLB, and pImpl.
Referenced by StartSpellOptDlg_Impl(), and UpdateBoxes_Impl().
void SpellDialog::InvalidateDialog | ( | ) |
Definition at line 966 of file SpellDialog.cxx.
References bFocusLocked, SfxModelessDialogController::Deactivate(), m_sResumeST, m_xAddToDictMB, m_xAddToDictPB, m_xAutoCorrPB, m_xChangeAllPB, m_xChangePB, m_xIgnoreAllPB, m_xIgnorePB, m_xIgnoreRulePB, m_xLanguageFT, m_xLanguageLB, m_xNotInDictFT, m_xSentenceED, m_xSuggestionFT, m_xSuggestionLB, and m_xUndoPB.
|
inlineprivate |
Definition at line 193 of file SpellDialog.hxx.
References bFocusLocked.
|
private |
Definition at line 769 of file SpellDialog.cxx.
References SvtLanguageTable::GetLanguageString(), svx::SpellDialogChildWindow::HasGrammarChecking(), m_sTitleSpelling, m_sTitleSpellingGrammar, m_xDialog, and rParent.
Referenced by UpdateBoxes_Impl().
|
private |
Definition at line 358 of file SpellDialog.cxx.
References GetNextSentence_Impl(), m_xLanguageFT, m_xNotInDictFT, m_xSentenceED, m_xUndoPB, UpdateBoxes_Impl(), and xSpell.
Referenced by AddToDictionaryExecute(), and Impl_Restore().
|
private |
Definition at line 469 of file SpellDialog.cxx.
References OfaTreeOptionsDialog::ApplyLanguageOptions(), SvxLinguTabPage::Create(), SfxShell::GetPool(), GROUP_MODULES, InitUserDicts(), m_xDialog, m_xOptionsDlg, RET_OK, weld::DialogController::runAsync(), and SfxGetpApp().
|
private |
Definition at line 928 of file SpellDialog.cxx.
References bFocusLocked, svx::SpellDialogChildWindow::GetFocus(), svx::SpellDialogChildWindow::LoseFocus(), m_xDialog, and rParent.
Referenced by Activate(), and Deactivate().
|
private |
Definition at line 278 of file SpellDialog.cxx.
References svx::SpellErrorDescription::aLocale, svx::SpellErrorDescription::aSuggestions, svx::SpellErrorDescription::bIsGrammarError, LanguageTag::convertToLanguageType(), svx::SpellDialogChildWindow::HasAutoCorrection(), svx::SpellDialogChildWindow::HasGrammarChecking(), i, InitUserDicts(), comphelper::LibreOfficeKit::isActive(), LANGUAGE_NONE, m_sNoSuggestionsST, m_xAddToDictMB, m_xAddToDictPB, m_xAutoCorrPB, m_xChangeAllPB, m_xChangePB, m_xCheckGrammarCB, m_xDialog, m_xExplainFT, m_xExplainLink, m_xIgnoreAllPB, m_xIgnoreRulePB, m_xLanguageLB, m_xSentenceED, m_xSuggestionFT, m_xSuggestionLB, rParent, svx::SpellErrorDescription::sDialogTitle, SetTitle_Impl(), svx::SpellErrorDescription::sExplanation, svx::SpellErrorDescription::sExplanationURL, and svx::SpellErrorDescription::sRuleId.
Referenced by IMPL_LINK_NOARG(), SpellContinue_Impl(), and svx::SentenceEditWindow_Impl::Undo().
|
friend |
Definition at line 123 of file SpellDialog.hxx.
|
private |
Definition at line 132 of file SpellDialog.hxx.
Referenced by AddToDictionaryExecute().
|
private |
Definition at line 134 of file SpellDialog.hxx.
Referenced by InvalidateDialog(), LockFocusChanges(), and ToplevelFocusChanged().
|
private |
Definition at line 137 of file SpellDialog.hxx.
Referenced by GetNextSentence_Impl().
|
private |
Definition at line 133 of file SpellDialog.hxx.
Referenced by SpellDialog(), and ~SpellDialog().
|
private |
Definition at line 126 of file SpellDialog.hxx.
Referenced by Impl_Restore(), and SpellDialog().
|
private |
Definition at line 127 of file SpellDialog.hxx.
Referenced by getReplacementString(), SpellDialog(), and UpdateBoxes_Impl().
|
private |
Definition at line 125 of file SpellDialog.hxx.
Referenced by InvalidateDialog(), and SpellDialog().
|
private |
Definition at line 129 of file SpellDialog.hxx.
Referenced by SetTitle_Impl(), and SpellDialog().
|
private |
Definition at line 130 of file SpellDialog.hxx.
Referenced by SetTitle_Impl(), and SpellDialog().
|
private |
Definition at line 158 of file SpellDialog.hxx.
Referenced by AddToDictionaryExecute(), Init_Impl(), InitUserDicts(), InvalidateDialog(), svx::SentenceEditWindow_Impl::MarkNextError(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), SpellDialog(), and UpdateBoxes_Impl().
|
private |
Definition at line 157 of file SpellDialog.hxx.
Referenced by Init_Impl(), InitUserDicts(), InvalidateDialog(), svx::SentenceEditWindow_Impl::MarkNextError(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), SpellDialog(), and UpdateBoxes_Impl().
|
private |
Definition at line 143 of file SpellDialog.hxx.
Referenced by SpellDialog().
|
private |
Definition at line 161 of file SpellDialog.hxx.
Referenced by Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::MarkNextError(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 160 of file SpellDialog.hxx.
Referenced by Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 159 of file SpellDialog.hxx.
Referenced by Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 162 of file SpellDialog.hxx.
Referenced by Init_Impl(), and UpdateBoxes_Impl().
|
private |
Definition at line 165 of file SpellDialog.hxx.
Referenced by Init_Impl().
|
private |
Definition at line 148 of file SpellDialog.hxx.
Referenced by svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 149 of file SpellDialog.hxx.
Referenced by UpdateBoxes_Impl().
|
private |
Definition at line 155 of file SpellDialog.hxx.
Referenced by Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::MarkNextError(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 154 of file SpellDialog.hxx.
Referenced by Impl_Restore(), Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::MarkNextError(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and SpellDialog().
|
private |
Definition at line 156 of file SpellDialog.hxx.
Referenced by Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 146 of file SpellDialog.hxx.
Referenced by InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and SpellContinue_Impl().
|
private |
Definition at line 147 of file SpellDialog.hxx.
Referenced by GetSelectedLang_Impl(), Init_Impl(), InitUserDicts(), InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 145 of file SpellDialog.hxx.
Referenced by SpellDialog().
|
private |
Definition at line 150 of file SpellDialog.hxx.
Referenced by InvalidateDialog(), and SpellContinue_Impl().
|
private |
Definition at line 168 of file SpellDialog.hxx.
Referenced by StartSpellOptDlg_Impl(), and ~SpellDialog().
|
private |
Definition at line 163 of file SpellDialog.hxx.
Referenced by Init_Impl().
|
private |
Definition at line 144 of file SpellDialog.hxx.
Referenced by SpellDialog().
|
private |
Definition at line 151 of file SpellDialog.hxx.
Referenced by AddToDictionaryExecute(), GetNextSentence_Impl(), getReplacementString(), Impl_Restore(), Init_Impl(), InvalidateDialog(), SpellContinue_Impl(), SpellDialog(), and UpdateBoxes_Impl().
|
private |
Definition at line 167 of file SpellDialog.hxx.
|
private |
Definition at line 152 of file SpellDialog.hxx.
Referenced by InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), and UpdateBoxes_Impl().
|
private |
Definition at line 153 of file SpellDialog.hxx.
Referenced by getReplacementString(), Init_Impl(), InvalidateDialog(), svx::SentenceEditWindow_Impl::SetUndoEditMode(), SpellDialog(), and UpdateBoxes_Impl().
|
private |
Definition at line 166 of file SpellDialog.hxx.
Referenced by SpellDialog().
|
private |
Definition at line 164 of file SpellDialog.hxx.
Referenced by svx::SentenceEditWindow_Impl::AddUndoAction(), GetNextSentence_Impl(), Init_Impl(), InvalidateDialog(), and SpellContinue_Impl().
|
private |
Definition at line 139 of file SpellDialog.hxx.
Referenced by InitUserDicts(), and ~SpellDialog().
|
private |
Definition at line 136 of file SpellDialog.hxx.
Referenced by Close(), GetNextSentence_Impl(), SetTitle_Impl(), SpellDialog(), ToplevelFocusChanged(), and UpdateBoxes_Impl().
|
private |
Definition at line 141 of file SpellDialog.hxx.
Referenced by SpellContinue_Impl(), and SpellDialog().