LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sd::SpellDialogChildWindow Class Referencefinal

This derivation of the svx::SpellDialogChildWindow base class provides Draw and Impress specific implementations of GetNextWrongSentence() and ApplyChangedSentence(). More...

#include <SpellDialogChildWindow.hxx>

Inheritance diagram for sd::SpellDialogChildWindow:
[legend]
Collaboration diagram for sd::SpellDialogChildWindow:
[legend]

Public Member Functions

 SpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings, SfxChildWinInfo *pInfo)
 
virtual ~SpellDialogChildWindow () 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...
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
 SFX_DECL_CHILDWINDOW_WITHID (SpellDialogChildWindow)
 
- Public Member Functions inherited from svx::SpellDialogChildWindow
 SpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings)
 
virtual ~SpellDialogChildWindow () override
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private 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
 
void ProvideOutliner ()
 Provide an outliner in the mpSdOutliner data member. More...
 
void EndSpellingAndClearOutliner ()
 

Private Attributes

SdOutlinermpSdOutliner
 This outliner is used to do the main work of iterating over a document and finding sentences with spelling errors. More...
 
bool mbOwnOutliner
 When this flag is <TRUE> then eventually we have to destroy the outliner in mpSdOutliner. More...
 

Additional Inherited Members

- 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
 

Detailed Description

This derivation of the svx::SpellDialogChildWindow base class provides Draw and Impress specific implementations of GetNextWrongSentence() and ApplyChangedSentence().

Definition at line 33 of file SpellDialogChildWindow.hxx.

Constructor & Destructor Documentation

◆ SpellDialogChildWindow()

sd::SpellDialogChildWindow::SpellDialogChildWindow ( vcl::Window pParent,
sal_uInt16  nId,
SfxBindings pBindings,
SfxChildWinInfo pInfo 
)

◆ ~SpellDialogChildWindow()

sd::SpellDialogChildWindow::~SpellDialogChildWindow ( )
overridevirtual

Reimplemented from svx::SpellDialogChildWindow.

Definition at line 46 of file SpellDialogChildWindow.cxx.

Member Function Documentation

◆ ApplyChangedSentence()

void sd::SpellDialogChildWindow::ApplyChangedSentence ( const svx::SpellPortions rChanged,
bool  bRecheck 
)
overrideprivatevirtual

This method is responsible for merging corrections made in the spelling dialog back into the document.

Implements svx::SpellDialogChildWindow.

Definition at line 73 of file SpellDialogChildWindow.cxx.

References OutlinerView::GetEditView().

◆ EndSpellingAndClearOutliner()

void sd::SpellDialogChildWindow::EndSpellingAndClearOutliner ( )
private

Definition at line 99 of file SpellDialogChildWindow.cxx.

◆ GetFocus()

void sd::SpellDialogChildWindow::GetFocus ( )
overrideprivatevirtual

Implements svx::SpellDialogChildWindow.

Definition at line 86 of file SpellDialogChildWindow.cxx.

◆ GetNextWrongSentence()

svx::SpellPortions sd::SpellDialogChildWindow::GetNextWrongSentence ( bool  bRecheck)
overrideprivatevirtual

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 61 of file SpellDialogChildWindow.cxx.

◆ InvalidateSpellDialog()

void sd::SpellDialogChildWindow::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 56 of file SpellDialogChildWindow.cxx.

References svx::SpellDialogChildWindow::InvalidateSpellDialog().

◆ LoseFocus()

void sd::SpellDialogChildWindow::LoseFocus ( )
overrideprivatevirtual

Implements svx::SpellDialogChildWindow.

Definition at line 95 of file SpellDialogChildWindow.cxx.

◆ Notify()

void sd::SpellDialogChildWindow::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 111 of file SpellDialogChildWindow.cxx.

References SfxHint::GetId(), and SdrHint::GetKind().

◆ ProvideOutliner()

void sd::SpellDialogChildWindow::ProvideOutliner ( )
private

Provide an outliner in the mpSdOutliner data member.

When the view shell has changed since the last call this include the deletion/release of formerly created/obtained one prior to construction/obtaining of a new one.

Definition at line 122 of file SpellDialogChildWindow.cxx.

References SfxViewShell::Current(), sd::ViewShell::GetDoc(), sd::ViewShellBase::GetMainViewShell(), SdDrawDocument::GetOutliner(), and StartListening.

◆ SFX_DECL_CHILDWINDOW_WITHID()

sd::SpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID ( SpellDialogChildWindow  )

Member Data Documentation

◆ mbOwnOutliner

bool sd::SpellDialogChildWindow::mbOwnOutliner
private

When this flag is <TRUE> then eventually we have to destroy the outliner in mpSdOutliner.

Definition at line 72 of file SpellDialogChildWindow.hxx.

◆ mpSdOutliner

SdOutliner* sd::SpellDialogChildWindow::mpSdOutliner
private

This outliner is used to do the main work of iterating over a document and finding sentences with spelling errors.

Definition at line 67 of file SpellDialogChildWindow.hxx.


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