LibreOffice Module sd (master) 1
|
This derivation of the svx::SpellDialogChildWindow base class provides Draw and Impress specific implementations of GetNextWrongSentence() and ApplyChangedSentence(). More...
#include <SpellDialogChildWindow.hxx>
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 |
SfxBroadcaster * | GetBroadcasterJOE (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 | |
SdOutliner * | mpSdOutliner |
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) |
SfxBindings & | GetBindings () const |
void | InvalidateSpellDialog () |
virtual void | GetFocus ()=0 |
virtual void | LoseFocus ()=0 |
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.
sd::SpellDialogChildWindow::SpellDialogChildWindow | ( | vcl::Window * | pParent, |
sal_uInt16 | nId, | ||
SfxBindings * | pBindings, | ||
SfxChildWinInfo * | pInfo | ||
) |
|
overridevirtual |
Reimplemented from svx::SpellDialogChildWindow.
Definition at line 46 of file SpellDialogChildWindow.cxx.
|
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().
|
private |
Definition at line 99 of file SpellDialogChildWindow.cxx.
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 86 of file SpellDialogChildWindow.cxx.
|
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.
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().
|
overrideprivatevirtual |
Implements svx::SpellDialogChildWindow.
Definition at line 95 of file SpellDialogChildWindow.cxx.
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 111 of file SpellDialogChildWindow.cxx.
References SfxHint::GetId(), and SdrHint::GetKind().
|
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.
sd::SpellDialogChildWindow::SFX_DECL_CHILDWINDOW_WITHID | ( | SpellDialogChildWindow | ) |
|
private |
When this flag is <TRUE> then eventually we have to destroy the outliner in mpSdOutliner.
Definition at line 72 of file SpellDialogChildWindow.hxx.
|
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.