LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ScSpellDialogChildWindow Class Reference

Specialized spell check dialog child window for Calc. More...

#include <spelldialog.hxx>

Inheritance diagram for ScSpellDialogChildWindow:
[legend]
Collaboration diagram for ScSpellDialogChildWindow:
[legend]

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)
 
SfxBindingsGetBindings () const
 
void InvalidateSpellDialog ()
 
virtual void GetFocus ()=0
 
virtual void LoseFocus ()=0
 

Private Types

typedef ::std::unique_ptr< ScConversionEngineBaseScConvEnginePtr
 
typedef ::std::unique_ptr< ScSelectionStateScSelectionStatePtr
 

Private Member Functions

void Reset ()
 
void Init ()
 
bool IsSelectionChanged ()
 

Private Attributes

ScConvEnginePtr mxEngine
 
ScDocumentUniquePtr mxUndoDoc
 
ScDocumentUniquePtr mxRedoDoc
 
ScSelectionStatePtr mxOldSel
 
tools::SvRef< ScRangeListmxOldRangeList
 For cursor position in selection. More...
 
ScTabViewShellmpViewShell
 Original selection range for comparison. More...
 
ScViewDatampViewData
 
ScDocShellmpDocShell
 
ScDocumentmpDoc
 
bool mbNeedNextObj
 
bool mbOldIdleEnabled
 

Detailed Description

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.

Member Typedef Documentation

◆ ScConvEnginePtr

Definition at line 73 of file spelldialog.hxx.

◆ ScSelectionStatePtr

Definition at line 74 of file spelldialog.hxx.

Constructor & Destructor Documentation

◆ ScSpellDialogChildWindow()

ScSpellDialogChildWindow::ScSpellDialogChildWindow ( vcl::Window pParent,
sal_uInt16  nId,
SfxBindings pBindings,
SfxChildWinInfo pInfo 
)
explicit

Definition at line 42 of file spelldialog.cxx.

References Init().

◆ ~ScSpellDialogChildWindow()

ScSpellDialogChildWindow::~ScSpellDialogChildWindow ( )
overridevirtual

Definition at line 55 of file spelldialog.cxx.

References Reset().

Member Function Documentation

◆ ApplyChangedSentence()

void ScSpellDialogChildWindow::ApplyChangedSentence ( const svx::SpellPortions rChanged,
bool  bRecheck 
)
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().

◆ GetFocus()

void ScSpellDialogChildWindow::GetFocus ( )
overrideprotectedvirtual

◆ GetNextWrongSentence()

svx::SpellPortions ScSpellDialogChildWindow::GetNextWrongSentence ( bool  bRecheck)
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.

◆ Init()

void ScSpellDialogChildWindow::Init ( void  )
private

◆ InvalidateSpellDialog()

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().

◆ IsSelectionChanged()

bool ScSpellDialogChildWindow::IsSelectionChanged ( )
private

◆ LoseFocus()

void ScSpellDialogChildWindow::LoseFocus ( )
overrideprotectedvirtual

Implements svx::SpellDialogChildWindow.

Definition at line 116 of file spelldialog.cxx.

◆ Reset()

void ScSpellDialogChildWindow::Reset ( void  )
private

◆ SFX_DECL_CHILDWINDOW_WITHID()

ScSpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID ( ScSpellDialogChildWindow  )

Member Data Documentation

◆ mbNeedNextObj

bool ScSpellDialogChildWindow::mbNeedNextObj
private

Definition at line 86 of file spelldialog.hxx.

Referenced by GetNextWrongSentence(), Init(), and Reset().

◆ mbOldIdleEnabled

bool ScSpellDialogChildWindow::mbOldIdleEnabled
private

Definition at line 87 of file spelldialog.hxx.

Referenced by Init(), and Reset().

◆ mpDoc

ScDocument* ScSpellDialogChildWindow::mpDoc
private

Definition at line 85 of file spelldialog.hxx.

Referenced by Init(), and Reset().

◆ mpDocShell

ScDocShell* ScSpellDialogChildWindow::mpDocShell
private

Definition at line 84 of file spelldialog.hxx.

Referenced by Init(), and Reset().

◆ mpViewData

ScViewData* ScSpellDialogChildWindow::mpViewData
private

◆ mpViewShell

ScTabViewShell* ScSpellDialogChildWindow::mpViewShell
private

Original selection range for comparison.

Definition at line 82 of file spelldialog.hxx.

Referenced by Init(), IsSelectionChanged(), and Reset().

◆ mxEngine

ScConvEnginePtr ScSpellDialogChildWindow::mxEngine
private

◆ mxOldRangeList

tools::SvRef< ScRangeList > ScSpellDialogChildWindow::mxOldRangeList
private

For cursor position in selection.

Definition at line 81 of file spelldialog.hxx.

Referenced by Init(), IsSelectionChanged(), and Reset().

◆ mxOldSel

ScSelectionStatePtr ScSpellDialogChildWindow::mxOldSel
private

Definition at line 79 of file spelldialog.hxx.

Referenced by Init(), and Reset().

◆ mxRedoDoc

ScDocumentUniquePtr ScSpellDialogChildWindow::mxRedoDoc
private

Definition at line 78 of file spelldialog.hxx.

Referenced by Init(), and Reset().

◆ mxUndoDoc

ScDocumentUniquePtr ScSpellDialogChildWindow::mxUndoDoc
private

Definition at line 77 of file spelldialog.hxx.

Referenced by Init(), and Reset().


The documentation for this class was generated from the following files: