LibreOffice Module svx (master) 1
|
The child window wrapper of the actual spelling dialog. More...
#include <SpellDialogChildWindow.hxx>
Public Member Functions | |
SpellDialogChildWindow (vcl::Window *pParent, sal_uInt16 nId, SfxBindings *pBindings) | |
virtual | ~SpellDialogChildWindow () override |
Public Member Functions inherited from SfxChildWindow | |
virtual | ~SfxChildWindow () |
void | Destroy () |
vcl::Window * | GetWindow () const |
void | SetController (std::shared_ptr< SfxDialogController > controller) |
void | ClearController () |
std::shared_ptr< SfxDialogController > & | GetController () |
const std::shared_ptr< SfxDialogController > & | GetController () const |
vcl::Window * | GetParent () const |
SfxChildAlignment | GetAlignment () const |
void | SetAlignment (SfxChildAlignment eAlign) |
virtual void | Hide () |
virtual void | Show (ShowFlags nFlags) |
sal_uInt16 | GetPosition () const |
sal_uInt16 | GetType () const |
virtual SfxChildWinInfo | GetInfo () const |
void | SaveStatus (const SfxChildWinInfo &rInfo) |
void | SetHideNotDelete (bool bOn) |
bool | IsHideNotDelete () const |
bool | IsVisible () const |
void | SetWantsFocus (bool) |
bool | WantsFocus () const |
virtual bool | QueryClose () |
const css::uno::Reference< css::frame::XFrame > & | GetFrame () const |
void | SetFrame (const css::uno::Reference< css::frame::XFrame > &) |
void | SetVisible_Impl (bool bVis) |
SAL_DLLPRIVATE void | SetWorkWindow_Impl (SfxWorkWindow *) |
SAL_DLLPRIVATE void | Activate_Impl () |
SAL_DLLPRIVATE void | SetFactory_Impl (const SfxChildWinFactory *) |
Protected Member Functions | |
virtual SpellPortions | GetNextWrongSentence (bool bRecheck)=0 |
This abstract method has to be defined by a derived class. More... | |
virtual void | ApplyChangedSentence (const SpellPortions &rChanged, bool bRecheck)=0 |
This abstract method applies the changes made in the spelling dialog to the document. More... | |
virtual bool | HasAutoCorrection () |
This methods determines whether the application supports AutoCorrection. More... | |
virtual void | AddAutoCorrection (const OUString &rOld, const OUString &rNew, LanguageType eLanguage) |
This method adds a word pair to the AutoCorrection - if available. More... | |
virtual bool | HasGrammarChecking () |
Return the sfx bindings for this child window. More... | |
virtual bool | IsGrammarChecking () |
determines if grammar checking is switched on More... | |
virtual void | SetGrammarChecking (bool bOn) |
switches grammar checking on/off More... | |
SfxBindings & | GetBindings () const |
void | InvalidateSpellDialog () |
Set the spell dialog into the 'resume' state. More... | |
virtual void | GetFocus ()=0 |
Notifies the ChildWindow about the get focus event. More... | |
virtual void | LoseFocus ()=0 |
Notifies the ChildWindow about the lose focus event. More... | |
Protected Member Functions inherited from SfxChildWindow | |
void | SetWindow (const VclPtr< vcl::Window > &p) |
SfxChildWindow (vcl::Window *pParentWindow, sal_uInt16 nId) | |
Private Attributes | |
VclPtr< AbstractSpellDialog > | m_xAbstractSpellDialog |
Friends | |
class | SpellDialog |
Additional Inherited Members | |
Static Public Member Functions inherited from SfxChildWindow | |
static void | RegisterChildWindow (SfxModule *, const SfxChildWinFactory &) |
static std::unique_ptr< SfxChildWindow > | CreateChildWindow (sal_uInt16, vcl::Window *, SfxBindings *, SfxChildWinInfo const &) |
static SAL_DLLPRIVATE void | InitializeChildWinFactory_Impl (sal_uInt16, SfxChildWinInfo &) |
The child window wrapper of the actual spelling dialog.
To use the spelling dialog in an application you have to do the usual things:
Definition at line 44 of file SpellDialogChildWindow.hxx.
svx::SpellDialogChildWindow::SpellDialogChildWindow | ( | vcl::Window * | pParent, |
sal_uInt16 | nId, | ||
SfxBindings * | pBindings | ||
) |
Definition at line 28 of file SpellDialogChildWindow.cxx.
References SvxAbstractDialogFactory::Create(), SvxAbstractDialogFactory::CreateSvxSpellDialog(), vcl::Window::GetFrameWeld(), m_xAbstractSpellDialog, nId, SfxChildWindow::SetController(), and SfxChildWindow::SetHideNotDelete().
|
overridevirtual |
Definition at line 42 of file SpellDialogChildWindow.cxx.
References VclPtr< class reference_type >::disposeAndClear(), and m_xAbstractSpellDialog.
|
protectedvirtual |
This method adds a word pair to the AutoCorrection - if available.
Definition at line 65 of file SpellDialogChildWindow.cxx.
|
protectedpure virtual |
This abstract method applies the changes made in the spelling dialog to the document.
The dialog always updates its settings when it gets the focus. The document can rely on the fact that the methods ApplyChangedSentence() is called for the position that the last GetNextWrongSentence() returned. If 'bRecheck' is set to true then the same sentence should be rechecked once from the start. This should be used to find errors that the user has introduced by manual changes in the edit field, and in order to not miss the still following errors in that sentence.
References GetBindings().
|
protected |
Definition at line 47 of file SpellDialogChildWindow.cxx.
References m_xAbstractSpellDialog.
|
protectedpure virtual |
Notifies the ChildWindow about the get focus event.
The ChildWindow should no check if the spelling dialog should be set to the 'Resume' state by calling InvalidateSpellDialog()
|
protectedpure virtual |
This abstract method has to be defined by a derived class.
It returns the next wrong sentence.
|
protectedvirtual |
This methods determines whether the application supports AutoCorrection.
Definition at line 60 of file SpellDialogChildWindow.cxx.
|
protectedvirtual |
Return the sfx bindings for this child window.
They are retrieved from the dialog so they do not have to be stored in this class as well. The bindings may be necessary to be used by the abstract methods. This method determines if grammar checking is supported
Definition at line 73 of file SpellDialogChildWindow.cxx.
|
protected |
Set the spell dialog into the 'resume' state.
This method should be called to notify the SpellDialog about changes in the document that invalidate the current state which results in disabling most of the dialog controls and presenting a "Resume" button that initiates a reinitialization.
Definition at line 53 of file SpellDialogChildWindow.cxx.
References m_xAbstractSpellDialog.
|
protectedvirtual |
determines if grammar checking is switched on
Definition at line 78 of file SpellDialogChildWindow.cxx.
|
protectedpure virtual |
Notifies the ChildWindow about the lose focus event.
The ChildWindow should use it to save the current selection/state.
|
protectedvirtual |
switches grammar checking on/off
Definition at line 84 of file SpellDialogChildWindow.cxx.
|
friend |
Definition at line 46 of file SpellDialogChildWindow.hxx.
|
private |
Definition at line 47 of file SpellDialogChildWindow.hxx.
Referenced by GetBindings(), InvalidateSpellDialog(), SpellDialogChildWindow(), and ~SpellDialogChildWindow().