LibreOffice Module sc (master) 1
|
Specialized spell check dialog child window for Calc. More...
#include <spelldialog.hxx>
Public Member Functions | |
SFX_DECL_CHILDWINDOW_WITHID (ScSpellDialogChildWindow) | |
ScSpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo) | |
virtual | ~ScSpellDialogChildWindow () override |
void | InvalidateSpellDialog () |
This method makes the one from the base class public so that it can be called from the view shell when one is created. More... | |
Public Member Functions inherited from svx::SpellDialogChildWindow | |
SpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings) | |
virtual | ~SpellDialogChildWindow () override |
Protected Member Functions | |
virtual svx::SpellPortions | GetNextWrongSentence (bool bRecheck) override |
Iterate over the sentences in all text shapes and stop at the next sentence with spelling errors. More... | |
virtual void | ApplyChangedSentence (const svx::SpellPortions &rChanged, bool bRecheck) override |
This method is responsible for merging corrections made in the spelling dialog back into the document. More... | |
virtual void | GetFocus () override |
virtual void | LoseFocus () override |
Protected Member Functions inherited from svx::SpellDialogChildWindow | |
virtual SpellPortions | GetNextWrongSentence (bool bRecheck)=0 |
virtual void | ApplyChangedSentence (const SpellPortions &rChanged, bool bRecheck)=0 |
virtual bool | HasAutoCorrection () |
virtual void | AddAutoCorrection (const OUString &rOld, const OUString &rNew, LanguageType eLanguage) |
virtual bool | HasGrammarChecking () |
virtual bool | IsGrammarChecking () |
virtual void | SetGrammarChecking (bool bOn) |
SfxBindings & | GetBindings () const |
void | InvalidateSpellDialog () |
virtual void | GetFocus ()=0 |
virtual void | LoseFocus ()=0 |
Private Types | |
typedef ::std::unique_ptr< ScConversionEngineBase > | ScConvEnginePtr |
typedef ::std::unique_ptr< ScSelectionState > | ScSelectionStatePtr |
Private Member Functions | |
void | Reset () |
void | Init () |
bool | IsSelectionChanged () |
Private Attributes | |
ScConvEnginePtr | mxEngine |
ScDocumentUniquePtr | mxUndoDoc |
ScDocumentUniquePtr | mxRedoDoc |
ScSelectionStatePtr | mxOldSel |
tools::SvRef< ScRangeList > | mxOldRangeList |
For cursor position in selection. More... | |
ScTabViewShell * | mpViewShell |
Original selection range for comparison. More... | |
ScViewData * | mpViewData |
ScDocShell * | mpDocShell |
ScDocument * | mpDoc |
bool | mbNeedNextObj |
bool | mbOldIdleEnabled |
Specialized spell check dialog child window for Calc.
This derivation of the svx::SpellDialogChildWindow base class provides Calc specific implementations of the virtual functions GetNextWrongSentence() and ApplyChangedSentence().
Definition at line 38 of file spelldialog.hxx.
|
private |
Definition at line 73 of file spelldialog.hxx.
|
private |
Definition at line 74 of file spelldialog.hxx.
|
explicit |
Definition at line 42 of file spelldialog.cxx.
References Init().
|
overridevirtual |
Definition at line 55 of file spelldialog.cxx.
References Reset().
|
overrideprotectedvirtual |
This method is responsible for merging corrections made in the spelling dialog back into the document.
Implements svx::SpellDialogChildWindow.
Definition at line 92 of file spelldialog.cxx.
References ScViewData::GetActiveWin(), ScViewData::GetSpellingView(), mpViewData, mxEngine, and ScGridWindow::ResetAutoSpell().
|
overrideprotectedvirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 104 of file spelldialog.cxx.
References Init(), InvalidateSpellDialog(), IsSelectionChanged(), and Reset().
|
overrideprotectedvirtual |
Iterate over the sentences in all text shapes and stop at the next sentence with spelling errors.
While doing so the view mode may be changed and text shapes are set into edit mode.
Implements svx::SpellDialogChildWindow.
Definition at line 72 of file spelldialog.cxx.
References ScViewData::GetSpellingView(), mbNeedNextObj, mpViewData, and mxEngine.
|
private |
Definition at line 165 of file spelldialog.cxx.
References ScAddress::Col(), SfxViewShell::Current(), ScDocument::EnableIdle(), ScMarkData::FillRangeListWithMarks(), tools::SvRef< typename T >::get(), ScViewData::GetActivePart(), ScViewData::GetActiveWin(), ScViewData::GetDocShell(), ScDocShell::GetDocument(), ScViewData::GetEditView(), ScDocument::GetEnginePool(), ScViewData::GetMarkData(), vcl::Window::GetOutDev(), ScMarkData::GetSelectCount(), tools::Rectangle::GetSize(), LinguMgr::GetSpellChecker(), ScTabView::GetViewData(), ScViewData::HasEditView(), ScEditableTester::IsEditable(), ScDocument::IsIdleEnabled(), ScTabView::MakeEditView(), ScMarkData::MarkToMulti(), mbNeedNextObj, mbOldIdleEnabled, mpDoc, mpDocShell, mpViewData, mpViewShell, mxEngine, mxOldRangeList, mxOldSel, mxRedoDoc, mxUndoDoc, ScAddress::Row(), SC_MOD, SC_SELECTTYPE_NONE, SC_SELECTTYPE_SHEET, SCDOCMODE_UNDO, EditView::SetOutputArea(), ScViewData::SetSpellingView(), and ScAddress::Tab().
Referenced by GetFocus().
void ScSpellDialogChildWindow::InvalidateSpellDialog | ( | ) |
This method makes the one from the base class public so that it can be called from the view shell when one is created.
Definition at line 65 of file spelldialog.cxx.
References svx::SpellDialogChildWindow::InvalidateSpellDialog().
Referenced by GetFocus().
|
private |
Definition at line 265 of file spelldialog.cxx.
References SfxViewShell::Current(), ScMarkData::FillRangeListWithMarks(), ScViewData::GetMarkData(), ScViewData::GetSpellingView(), mpViewData, mpViewShell, mxEngine, and mxOldRangeList.
Referenced by GetFocus().
|
overrideprotectedvirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 116 of file spelldialog.cxx.
|
private |
Definition at line 122 of file spelldialog.cxx.
References SfxUndoManager::AddUndoAction(), tools::SvRef< typename T >::clear(), ScAddress::Col(), SfxViewShell::Current(), ScDocument::EnableIdle(), ScViewData::GetCurX(), ScViewData::GetCurY(), ScViewData::GetMarkData(), ScDocShell::GetUndoManager(), ScTabView::KillEditView(), mbNeedNextObj, mbOldIdleEnabled, mpDoc, mpDocShell, mpViewData, mpViewShell, mxEngine, mxOldRangeList, mxOldSel, mxRedoDoc, mxUndoDoc, ScDocShell::PostPaintGridAll(), ScAddress::Row(), SC_CONVERSION_SPELLCHECK, ScDocument::SetAllFormulasDirty(), ScDocShell::SetDocumentModified(), ScViewData::SetSpellingView(), ScAddress::Tab(), and ScTabViewShell::UpdateInputHandler().
Referenced by GetFocus(), and ~ScSpellDialogChildWindow().
ScSpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID | ( | ScSpellDialogChildWindow | ) |
|
private |
Definition at line 86 of file spelldialog.hxx.
Referenced by GetNextWrongSentence(), Init(), and Reset().
|
private |
Definition at line 87 of file spelldialog.hxx.
|
private |
Definition at line 85 of file spelldialog.hxx.
|
private |
Definition at line 84 of file spelldialog.hxx.
|
private |
Definition at line 83 of file spelldialog.hxx.
Referenced by ApplyChangedSentence(), GetNextWrongSentence(), Init(), IsSelectionChanged(), and Reset().
|
private |
Original selection range for comparison.
Definition at line 82 of file spelldialog.hxx.
Referenced by Init(), IsSelectionChanged(), and Reset().
|
private |
Definition at line 76 of file spelldialog.hxx.
Referenced by ApplyChangedSentence(), GetNextWrongSentence(), Init(), IsSelectionChanged(), and Reset().
|
private |
For cursor position in selection.
Definition at line 81 of file spelldialog.hxx.
Referenced by Init(), IsSelectionChanged(), and Reset().
|
private |
Definition at line 79 of file spelldialog.hxx.
|
private |
Definition at line 78 of file spelldialog.hxx.
|
private |
Definition at line 77 of file spelldialog.hxx.