summaryrefslogtreecommitdiff
path: root/i18npool/source/inputchecker
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-11-16 09:19:03 +0000
committerOliver Bolte <obo@openoffice.org>2005-11-16 09:19:03 +0000
commit2dc627781a8155fcc2bd65c2a6ceb259c6bf09a1 (patch)
tree90b4428041aad1acb0a02b6c82d8ebed186dcd74 /i18npool/source/inputchecker
parentbba94fe4acf6887cb29a2cb715f15caa3881bb70 (diff)
INTEGRATION: CWS thaiissues (1.1.240); FILE MERGED
2005/09/29 11:59:59 os 1.1.240.2: RESYNC: (1.1-1.2); FILE MERGED 2005/08/27 00:19:24 khong 1.1.240.1: #i42661# add input sequence correction
Diffstat (limited to 'i18npool/source/inputchecker')
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker_hi.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
index a6c85cf6c8d8..d71d2ab3911a 100644
--- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: inputsequencechecker_hi.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 17:17:29 $
+ * last change: $Author: obo $ $Date: 2005-11-16 10:19:03 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -137,4 +137,17 @@ InputSequenceChecker_hi::checkInputSequence(const OUString& Text,
return (_DEV_Composible[inputCheckMode][dev_cell_check[ch2][ch1]]);
}
+sal_Int32 SAL_CALL
+InputSequenceChecker_hi::correctInputSequence(OUString& Text,
+ sal_Int32 nStartPos,
+ sal_Unicode inputChar,
+ sal_Int16 inputCheckMode)
+ throw(com::sun::star::uno::RuntimeException)
+{
+ if (checkInputSequence(Text, nStartPos, inputChar, inputCheckMode))
+ Text = Text.replaceAt(++nStartPos, 0, OUString(inputChar));
+ else
+ nStartPos=Text.getLength();
+ return nStartPos;
+}
} } } }