103 css::uno::Reference< css::linguistic2::XSpellChecker1 >
const & xSpeller );
Base class for special type of edit engines, i.e.
virtual void ShowFinishDialog()
Derived classes may show a message box stating that the conversion is finished.
ScConversionEngineBase(SfxItemPool *pEnginePool, ScViewData &rViewData, ScDocument *pUndoDoc, ScDocument *pRedoDoc)
bool FindNextConversionCell()
Implementation of cell iteration.
SCTAB mnStartTab
Initial row index.
bool IsAnyModified() const
Returns true, if at least one cell has been modified.
ScDocument * mpUndoDoc
Selection data of the document.
bool mbWrappedInTable
true = Not searched for a cell yet.
ScSelectionState maSelState
SCROW mnCurrRow
Current column index.
SCCOL mnStartCol
Current cell language.
bool mbInitialState
true = At least one cell has been changed.
bool mbFinished
true = Already restarted at top of the sheet.
LanguageType meCurrLang
Document stores all new cells for REDO action.
virtual bool NeedsConversion()=0
Derived classes return, if the current text needs conversion (i.e.
virtual bool ShowTableWrapDialog()
Derived classes may show a query box that asks whether to restart at top of the sheet.
virtual ~ScConversionEngineBase() override
bool mbIsAnyModified
Current row index.
void RestoreCursorPos()
Restores the initial cursor position.
SCROW mnStartRow
Initial column index.
SCCOL mnCurrCol
Initial sheet index.
ScDocument * mpRedoDoc
Document stores all old cells for UNDO action.
virtual void ConvertAll(weld::Widget *pDialogParent, EditView &rEditView)=0
Derived classes implement to convert all cells in the selection or sheet.
bool IsFinished() const
Returns true, if the entire document/selection has been finished.
void FillFromCell(SCCOL nCol, SCROW nRow, SCTAB nTab)
Fills the edit engine from a document cell.
Parameters for conversion.
rtl::Reference< SfxItemPool > pEnginePool
Contains all available data about any possible selection in a Calc document.
Edit engine for spell checking.
virtual bool SpellNextDocument() override
Callback from edit engine to check the next cell.
virtual void ConvertAll(weld::Widget *pDialogParent, EditView &rEditView) override
Checks spelling of all cells in the selection or sheet.
virtual bool ShowTableWrapDialog() override
Show a query box that asks whether to restart at top of the sheet.
virtual void ShowFinishDialog() override
Show a message box stating that spell checking is finished.
weld::Widget * GetDialogParent()
Returns the spelling dialog if it is open.
virtual bool NeedsConversion() override
Returns true, if the current text contains a spelling error.
ScSpellingEngine(SfxItemPool *pEnginePool, ScViewData &rViewData, ScDocument *pUndoDoc, ScDocument *pRedoDoc, css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpeller)
Edit engine for text conversion.
virtual bool NeedsConversion() override
Returns true, if the current text contains text to convert.
virtual bool ConvertNextDocument() override
Callback from edit engine to convert the next cell.
ScConversionParam maConvParam
ScTextConversionEngine(SfxItemPool *pEnginePool, ScViewData &rViewData, ScConversionParam aConvParam, ScDocument *pUndoDoc, ScDocument *pRedoDoc)
virtual void ConvertAll(weld::Widget *pDialogParent, EditView &rEditView) override
Converts all cells in the selection or sheet according to set language.