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

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 39 of file spelldialog.hxx.

Member Typedef Documentation

Definition at line 74 of file spelldialog.hxx.

Definition at line 75 of file spelldialog.hxx.

Constructor & Destructor Documentation

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

Definition at line 41 of file spelldialog.cxx.

References Init().

ScSpellDialogChildWindow::~ScSpellDialogChildWindow ( )
overridevirtual

Definition at line 54 of file spelldialog.cxx.

References Reset().

Member Function Documentation

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 91 of file spelldialog.cxx.

References ScViewData::GetActiveWin(), ScViewData::GetSpellingView(), mpViewData, mxEngine, and ScGridWindow::ResetAutoSpell().

void ScSpellDialogChildWindow::GetFocus ( )
overrideprotectedvirtual
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 71 of file spelldialog.cxx.

References ScViewData::GetSpellingView(), mbNeedNextObj, mpViewData, and mxEngine.

void ScSpellDialogChildWindow::Init ( void  )
private
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 64 of file spelldialog.cxx.

References svx::SpellDialogChildWindow::InvalidateSpellDialog().

Referenced by GetFocus().

bool ScSpellDialogChildWindow::IsSelectionChanged ( )
private
void ScSpellDialogChildWindow::LoseFocus ( )
overrideprotectedvirtual

Implements svx::SpellDialogChildWindow.

Definition at line 115 of file spelldialog.cxx.

void ScSpellDialogChildWindow::Reset ( void  )
private
ScSpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID ( ScSpellDialogChildWindow  )

Member Data Documentation

bool ScSpellDialogChildWindow::mbNeedNextObj
private

Definition at line 87 of file spelldialog.hxx.

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

bool ScSpellDialogChildWindow::mbOldIdleEnabled
private

Definition at line 88 of file spelldialog.hxx.

Referenced by Init(), and Reset().

ScDocument* ScSpellDialogChildWindow::mpDoc
private

Definition at line 86 of file spelldialog.hxx.

Referenced by Init(), and Reset().

ScDocShell* ScSpellDialogChildWindow::mpDocShell
private

Definition at line 85 of file spelldialog.hxx.

Referenced by Init(), and Reset().

ScViewData* ScSpellDialogChildWindow::mpViewData
private
ScTabViewShell* ScSpellDialogChildWindow::mpViewShell
private

Original selection range for comparison.

Definition at line 83 of file spelldialog.hxx.

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

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

For cursor position in selection.

Definition at line 82 of file spelldialog.hxx.

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

ScSelectionStatePtr ScSpellDialogChildWindow::mxOldSel
private

Definition at line 80 of file spelldialog.hxx.

Referenced by Init(), and Reset().

ScDocumentUniquePtr ScSpellDialogChildWindow::mxRedoDoc
private

Definition at line 79 of file spelldialog.hxx.

Referenced by Init(), and Reset().

ScDocumentUniquePtr ScSpellDialogChildWindow::mxUndoDoc
private

Definition at line 78 of file spelldialog.hxx.

Referenced by Init(), and Reset().


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