summaryrefslogtreecommitdiff
path: root/include/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-06 12:01:31 +0200
committerNoel Grandin <noel@peralex.com>2013-09-11 09:45:30 +0200
commitac85b6cff11d193f5f71d11b1f3cc1c474653f59 (patch)
treec39ae299f09d993b963613b6af9869fbd0d8403e /include/editeng
parentbde5457dd634c70cef02565890e08e8669e1a437 (diff)
convert SvxAutoCorrDoc from String to OUString
Also: - simplify the return type of the GetPrevPara method, there is no need return an OUString by pointer - simply the ppPara parameter of the ChgAutoCorrWord method, passing a pointer to a pointer to a value type is unnecessary. Change-Id: I4a8c44fdab1cf68af88c34003827d1c20704f839
Diffstat (limited to 'include/editeng')
-rw-r--r--include/editeng/svxacorr.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index 42b42c5efbb3..c9631edc2d0a 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -87,32 +87,32 @@ public:
virtual ~SvxAutoCorrDoc();
virtual sal_Bool Delete( xub_StrLen nStt, xub_StrLen nEnd ) = 0;
- virtual sal_Bool Insert( xub_StrLen nPos, const String& rTxt ) = 0;
- virtual sal_Bool Replace( xub_StrLen nPos, const String& rTxt ) = 0;
- virtual sal_Bool ReplaceRange( xub_StrLen nPos, xub_StrLen nLen, const String& rTxt ) = 0;
+ virtual sal_Bool Insert( xub_StrLen nPos, const OUString& rTxt ) = 0;
+ virtual sal_Bool Replace( xub_StrLen nPos, const OUString& rTxt ) = 0;
+ virtual sal_Bool ReplaceRange( xub_StrLen nPos, xub_StrLen nLen, const OUString& rTxt ) = 0;
virtual sal_Bool SetAttr( xub_StrLen nStt, xub_StrLen nEnd, sal_uInt16 nSlotId,
SfxPoolItem& ) = 0;
virtual sal_Bool SetINetAttr( xub_StrLen nStt, xub_StrLen nEnd, const OUString& rURL ) = 0;
- // Return the text of a previous paragraph. This must not be empty!
- // If no paragraph exits or just an empty one, then return 0.
+ // Return the text of a previous paragraph.
+ // If no paragraph exits or just an empty one, then return an empty string.
// The flag indicates:
// TRUE: before the normal insertion position (TRUE)
// FALSE: in which the corrected word was inserted.
// (Does not to have to be the same paragraph !!!!)
- virtual const String* GetPrevPara( sal_Bool bAtNormalPos ) = 0;
+ virtual OUString GetPrevPara( sal_Bool bAtNormalPos ) = 0;
virtual sal_Bool ChgAutoCorrWord( xub_StrLen& rSttPos, xub_StrLen nEndPos,
SvxAutoCorrect& rACorrect,
- const String** ppPara ) = 0;
+ OUString* pPara ) = 0;
// Is called after the change of the signs by the functions
// - FnCptlSttWrd
// - FnCptlSttSntnc
// As an option, the words can then be inserted into the exception lists.
virtual void SaveCpltSttWord( sal_uLong nFlag, xub_StrLen nPos,
- const String& rExceptWord,
+ const OUString& rExceptWord,
sal_Unicode cChar );
// which language at the position?