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