23 #include <svx/svxids.hrc>
43 svx::SpellDialogChildWindow( pParentP, nId, pBindings ),
44 mpViewShell(
nullptr ),
45 mpViewData(
nullptr ),
46 mpDocShell(
nullptr ),
48 mbNeedNextObj( false ),
49 mbOldIdleEnabled(true)
61 return svx::SpellDialogChildWindow::GetInfo();
96 mxEngine->ApplyChangedSentence( *pEditView, rChanged, bRecheck );
135 nOldCol, nOldRow, nTab, std::move(
mxUndoDoc),
136 nNewCol, nNewRow, nTab, std::move(
mxRedoDoc),
175 SC_MOD()->InputEnterHandler();
194 switch(
mxOldSel->GetSelectionType() )
219 OSL_FAIL(
"ScSpellDialogChildWindow::Init - unknown selection type" );
234 for (
const auto& rTab : rMarkData)
255 mxEngine->SetControlWord( EEControlBits::USECHARATTRIBS );
271 if( pEditView->GetEditEngine() !=
mxEngine.get() )
ScMarkData & GetMarkData()
void EnableIdle(bool bDo)
ScDocShell * GetDocShell() const
todo: It should be possible to have MarkArrays for each table, in order to enable "search all" across...
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...
virtual void GetFocus() override
void InvalidateSpellDialog()
void FillRangeListWithMarks(ScRangeList *pList, bool bClear, SCTAB nForTab=-1) const
Create a range list of marks.
void SetDocumentModified()
void SetSpellingView(EditView *pSpView)
bool HasEditView(ScSplitPos eWhich) const
ScSplitPos GetActivePart() const
No selection, simple cell cursor.
bool IsSelectionChanged()
virtual SfxUndoManager * GetUndoManager() override
void KillEditView(bool bNoPaint)
ScSelectionStatePtr mxOldSel
void SetAllFormulasDirty(const sc::SetFormulaDirtyContext &rCxt)
virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck) override
Iterate over the sentences in all text shapes and stop at the next sentence with spelling errors...
SCTAB GetSelectCount() const
static SfxViewShell * Current()
ScTabViewShell * mpViewShell
Original selection range for comparison.
void UpdateInputHandler(bool bForce=false, bool bStopEditing=true)
ScDocumentUniquePtr mxUndoDoc
EditView * GetSpellingView() const
ScViewData & GetViewData()
std::vector< SpellPortion > SpellPortions
tools::SvRef< ScRangeList > mxOldRangeList
For cursor position in selection.
Edit engine for spell checking.
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
static css::uno::Reference< css::linguistic2::XSpellChecker1 > GetSpellChecker()
SFX_IMPL_CHILDWINDOW_WITHID(SvxSearchDialogWrapper, SID_SEARCH_DLG)
Parameters for conversion.
SC_DLLPUBLIC SfxItemPool * GetEnginePool() const
ScGridWindow * GetActiveWin()
Contains all available data about any possible selection in a Calc document.
void MakeEditView(ScEditEngineDefaulter *pEngine, SCCOL nCol, SCROW nRow)
ScDocumentUniquePtr mxRedoDoc
virtual void LoseFocus() override
const ScDocument & GetDocument() const
void SetOutputArea(const tools::Rectangle &rRect)
virtual ~ScSpellDialogChildWindow() override
bool IsIdleEnabled() const
void GetEditView(ScSplitPos eWhich, EditView *&rViewPtr, SCCOL &rCol, SCROW &rRow)
Specialized spell check dialog child window for Calc.
void InvalidateSpellDialog()
This method makes the one from the base class public so that it can be called from the view shell whe...