diff options
Diffstat (limited to 'cui/source/inc/SpellDialog.hxx')
-rw-r--r-- | cui/source/inc/SpellDialog.hxx | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx index cd7fa148462d..f10b52e065a3 100644 --- a/cui/source/inc/SpellDialog.hxx +++ b/cui/source/inc/SpellDialog.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -81,7 +81,7 @@ private: bool m_bIsUndoEditMode; Link m_aModifyLink; - + void CallModifyLink() {m_aModifyLink.Call(this);} SpellDialog* GetSpellDialog() const {return (SpellDialog*)GetParent();} @@ -93,28 +93,28 @@ public: ~SentenceEditWindow_Impl(); void SetModifyHdl(const Link& rLink) { m_aModifyLink = rLink;} - + void SetAttrib( const TextAttrib& rAttr, ULONG nPara, USHORT nStart, USHORT nEnd ); void SetText( const String& rStr ); - - bool MarkNextError( bool bIgnoreCurrentError ); + + bool MarkNextError( bool bIgnoreCurrentError ); void ChangeMarkedWord(const String& rNewWord, LanguageType eLanguage); void MoveErrorMarkTo(USHORT nErrorStart, USHORT nErrorEnd, bool bGrammar); String GetErrorText() const; void RestoreCurrentError(); - + void SetAlternatives( com::sun::star::uno::Reference<com::sun::star::linguistic2::XSpellAlternatives> ); - + const SpellErrorDescription* GetAlternatives(); void ResetModified() { GetTextEngine()->SetModified(FALSE); m_bIsUndoEditMode = false;} BOOL IsModified() const { return GetTextEngine()->IsModified(); } - + bool IsUndoEditMode() const { return m_bIsUndoEditMode;} void SetUndoEditMode(bool bSet); - + svx::SpellPortions CreateSpellPortions( bool bSetIgnoreFlag ) const; void ResetUndo(); @@ -135,15 +135,15 @@ class SpellDialogChildWindow; class ExplainButton : public PushButton { String m_sExplanation; - + virtual void RequestHelp( const HelpEvent& rHEvt ); virtual void Click(); -public: +public: ExplainButton( Window* pParent, const ResId& rResId ) : PushButton( pParent, rResId ){} - ~ExplainButton(); + ~ExplainButton(); void SetExplanation( const String& rText ) {m_sExplanation = rText;} bool HasExplanation() { return m_sExplanation.Len() > 0;} - + }; class SpellDialog : public SfxModelessDialog @@ -152,23 +152,23 @@ class SpellDialog : public SfxModelessDialog friend class SentenceEditWindow_Impl; private: - + FixedImage aVendorImageFI; - + FixedText aLanguageFT; SvxLanguageBox aLanguageLB; - + FixedText aNotInDictFT; - SentenceEditWindow_Impl aSentenceED; - + SentenceEditWindow_Impl aSentenceED; + FixedText aSuggestionFT; ListBox aSuggestionLB; - + PushButton aIgnorePB; PushButton aIgnoreAllPB; PushButton aIgnoreRulePB; MenuButton aAddToDictMB; - + PushButton aChangePB; PushButton aChangeAllPB; ExplainButton aExplainPB; @@ -193,20 +193,20 @@ private: const String m_sTitleSpelling; const String m_sTitleSpellingGrammar; const String m_sTitleSpellingGrammarVendor; - + Size aOldWordEDSize; Link aDialogUndoLink; - + bool bModified; bool bFocusLocked; - + svx::SpellDialogChildWindow& rParent; svx::SpellPortions m_aSavedSentence; SpellDialog_Impl* pImpl; ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XSpellChecker1 > xSpell; - LanguageType nOldLang; + ::com::sun::star::linguistic2::XSpellChecker1 > xSpell; + LanguageType nOldLang; DECL_LINK( ChangeHdl, Button * ); DECL_LINK( ChangeAllHdl, Button * ); @@ -222,7 +222,7 @@ private: DECL_LINK( DialogUndoHdl, SpellUndoAction_Impl* ); DECL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog * ); - + void StartSpellOptDlg_Impl(); void InitUserDicts(); void UpdateBoxes_Impl(); @@ -231,30 +231,30 @@ private: void LockFocusChanges( bool bLock ) {bFocusLocked = bLock;} void Impl_Restore(); - void SetSelectedLang_Impl( LanguageType nLang ); - LanguageType GetSelectedLang_Impl() const; + void SetSelectedLang_Impl( LanguageType nLang ); + LanguageType GetSelectedLang_Impl() const; /** Retrieves the next sentence. */ bool GetNextSentence_Impl(bool bUseSavedSentence, bool bRechek /*for rechecking the curretn sentence*/); - /** Corrects all errors that have been selected to be changed always + /** Corrects all errors that have been selected to be changed always */ bool ApplyChangeAllList_Impl(SpellPortions& rSentence, bool& bHasReplaced); - void SetTitle_Impl(LanguageType nLang); + void SetTitle_Impl(LanguageType nLang); -protected: +protected: virtual void Paint( const Rectangle& rRect ); virtual long Notify( NotifyEvent& rNEvt ); public: - SpellDialog( + SpellDialog( svx::SpellDialogChildWindow* pChildWindow, Window * pParent, SfxBindings* pBindings); ~SpellDialog(); - void SetLanguage( sal_uInt16 nLang ); - virtual sal_Bool Close(); + void SetLanguage( sal_uInt16 nLang ); + virtual sal_Bool Close(); void InvalidateDialog(); }; |