namespace svx
{ /** The child window wrapper of the actual spelling dialog. To use the spellingdialoginanapplicationyouhavetodotheusualthings: <ol> <li>Callthisclass'RegisterChildWindow()methodwiththemodule assecondargumentthatyouwantthedialogincludedin.</li> <li>IntheSFX_IMPL_INTERFACEimplementationoftheviewshell thatwantstousethedialogcallRegisterChildWindow() withtheidreturnedbythisclass'GetChildWindowId() method.</li> <li>IncludetheitemassociatedwiththischildwindowtotheSDI descriptionoftheviewshell.</li> </ol>
*/ class SVX_DLLPUBLIC SpellDialogChildWindow : public SfxChildWindow
{ friendclass SpellDialog;
VclPtr<AbstractSpellDialog> m_xAbstractSpellDialog;
protected: /** This abstract method has to be defined by a derived class. It returnsthenextwrongsentence. @return returnsanemptyvectorifnoerrorcouldbefound
*/ virtual SpellPortions GetNextWrongSentence(bool bRecheck) = 0;
/** This abstract method applies the changes made in the spelling dialog tothedocument. Thedialogalwaysupdatesitssettingswhenitgetsthefocus.Thedocument canrelyonthefactthatthemethodsApplyChangedSentence()iscalledforthe positionthatthelastGetNextWrongSentence()returned. If'bRecheck'issettotruethenthesamesentenceshouldberecheckedoncefrom thestart.Thisshouldbeusedtofinderrorsthattheuserhasintroducedby manualchangesintheeditfield,andinordertonotmissthestillfollowingerrors inthatsentence.
*/ virtualvoid ApplyChangedSentence(const SpellPortions& rChanged, bool bRecheck) = 0; /** This methods determines whether the application supports AutoCorrection
*/ virtualbool HasAutoCorrection(); /** This method adds a word pair to the AutoCorrection - if available
*/ virtualvoid AddAutoCorrection(const OUString& rOld, const OUString& rNew,
LanguageType eLanguage); /** Return the sfx bindings for this child window. They are retrievedfromthedialogsotheydonothavetobestoredin thisclassaswell.Thebindingsmaybenecessarytobeused bytheabstractmethods.
*/ /** This method determines if grammar checking is supported
*/ virtualbool HasGrammarChecking(); /** determines if grammar checking is switched on
*/ virtualbool IsGrammarChecking(); /** switches grammar checking on/off
*/ virtualvoid SetGrammarChecking(bool bOn);
SfxBindings& GetBindings() const; /** Set the spell dialog into the 'resume' state. This method should be called tonotifytheSpellDialogaboutchangesinthedocumentthatinvalidatethe currentstatewhichresultsindisablingmostofthedialogcontrolsandpresenting a"Resume"buttonthatinitiatesareinitialization.
*/ void InvalidateSpellDialog(); /** Notifies the ChildWindow about the get focus event. The ChildWindow should no check if thespellingdialogshouldbesettothe'Resume'statebycallingInvalidateSpellDialog()
*/ virtualvoid GetFocus() = 0; /** Notifies the ChildWindow about the lose focus event. The ChildWindow should use it to save thecurrentselection/state.
*/ virtualvoid LoseFocus() = 0;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.