From 32b4ed64f6759b101371f247ca1fe30e2410ad2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 20 Feb 2013 15:38:45 +0000 Subject: [PATCH] fdo#42893 help for improve capitalize first letter Change-Id: If35064d9482d07695bd3343992cd3b914b96630e --- editeng/source/misc/svxacorr.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 870d00b..c9b8bc9 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -910,6 +910,21 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc, if( 2 > ( pStr - pStart ) ) return sal_False; +//start todo + //*pStr is the end of the last sentence + //pStr[6] = + //pStr[5] = r + //pStr[4] = a + //pStr[3] = b <-- we're wondering if we should capitalize this + //pStr[2] = + //pStr[1] = . + //pStr[0] = o + //pStr[-1] = . <-- so if this is a "." return false + //pStr[-2] = o + //pStr[-3] = . + //pStr[-4] = F +//end todo + if( !rCC.isLetterNumeric( aText, sal::static_int_cast< xub_StrLen >( pStr-- - pStart ) ) ) { -- 1.8.1.2