summaryrefslogtreecommitdiff
path: root/cui/source/inc/SpellDialog.hxx
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2010-11-16 18:59:15 -0800
committerJoseph Powers <jpowers27@cox.net>2010-11-16 18:59:15 -0800
commit500024ad95030f773931e53518198a6be8afd416 (patch)
treeda26ef029773770f251f6c43da4a1c0d61f7e932 /cui/source/inc/SpellDialog.hxx
parent9ccb10ffefe7bd52bc269a133929a1c75b9dd6c9 (diff)
HC Cleanup - components
Diffstat (limited to 'cui/source/inc/SpellDialog.hxx')
-rw-r--r--cui/source/inc/SpellDialog.hxx57
1 files changed, 28 insertions, 29 deletions
diff --git a/cui/source/inc/SpellDialog.hxx b/cui/source/inc/SpellDialog.hxx
index bea380d23..42513ae9f 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;
@@ -184,7 +184,6 @@ private:
GroupBox aBackgroundGB;
Image aVendorImage;
- Image aVendorImageHC;
String aResumeST;
String aIgnoreOnceST;
@@ -193,13 +192,13 @@ 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;
@@ -222,7 +221,7 @@ private:
DECL_LINK( DialogUndoHdl, SpellUndoAction_Impl* );
DECL_STATIC_LINK( SpellDialog, InitHdl, SpellDialog * );
-
+
void StartSpellOptDlg_Impl();
void InitUserDicts();
void UpdateBoxes_Impl();
@@ -237,17 +236,17 @@ private:
/** Retrieves the next sentence.
*/
bool GetNextSentence_Impl(bool bUseSavedSentence, bool bRechek /*for rechecking the current 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);