Kaydet (Commit) 2ba10522 authored tarafından Noel Grandin's avatar Noel Grandin

convert include/svx/SpellDialogChildWindow.hxx from String to OUString

Change-Id: I6fe9e996b67dc689f4fc2abc1cf63cb4af39084f
üst a5c93041
...@@ -79,7 +79,7 @@ protected: ...@@ -79,7 +79,7 @@ protected:
virtual bool HasAutoCorrection(); virtual bool HasAutoCorrection();
/** This method adds a word pair to the AutoCorrection - if available /** This method adds a word pair to the AutoCorrection - if available
*/ */
virtual void AddAutoCorrection(const String& rOld, const String& rNew, LanguageType eLanguage); virtual void AddAutoCorrection(const OUString& rOld, const OUString& rNew, LanguageType eLanguage);
/** Return the sfx bindings for this child window. They are /** Return the sfx bindings for this child window. They are
retrieved from the dialog so they do not have to be stored in 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 this class as well. The bindings may be necessary to be used
......
...@@ -66,8 +66,8 @@ bool SpellDialogChildWindow::HasAutoCorrection() ...@@ -66,8 +66,8 @@ bool SpellDialogChildWindow::HasAutoCorrection()
} }
void SpellDialogChildWindow::AddAutoCorrection( void SpellDialogChildWindow::AddAutoCorrection(
const String& /*rOld*/, const OUString& /*rOld*/,
const String& /*rNew*/, const OUString& /*rNew*/,
LanguageType /*eLanguage*/) LanguageType /*eLanguage*/)
{ {
OSL_FAIL("AutoCorrection should have been overloaded - if available"); OSL_FAIL("AutoCorrection should have been overloaded - if available");
......
...@@ -467,7 +467,7 @@ void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rC ...@@ -467,7 +467,7 @@ void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rC
} }
void SwSpellDialogChildWindow::AddAutoCorrection( void SwSpellDialogChildWindow::AddAutoCorrection(
const String& rOld, const String& rNew, LanguageType eLanguage) const OUString& rOld, const OUString& rNew, LanguageType eLanguage)
{ {
SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect(); SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect();
pACorr->PutText( rOld, rNew, eLanguage ); pACorr->PutText( rOld, rNew, eLanguage );
......
...@@ -40,7 +40,7 @@ class SwSpellDialogChildWindow ...@@ -40,7 +40,7 @@ class SwSpellDialogChildWindow
protected: protected:
virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck); virtual svx::SpellPortions GetNextWrongSentence(bool bRecheck);
virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck); virtual void ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck);
virtual void AddAutoCorrection(const String& rOld, const String& rNew, LanguageType eLanguage); virtual void AddAutoCorrection(const OUString& rOld, const OUString& rNew, LanguageType eLanguage);
virtual bool HasAutoCorrection(); virtual bool HasAutoCorrection();
virtual bool HasGrammarChecking(); virtual bool HasGrammarChecking();
virtual bool IsGrammarChecking(); virtual bool IsGrammarChecking();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment