summaryrefslogtreecommitdiff
path: root/i18npool/inc/textconversion.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-11-08 08:15:10 +0000
committerRüdiger Timm <rt@openoffice.org>2005-11-08 08:15:10 +0000
commit85d4e7cac7975b80857d11c320fa850453050080 (patch)
tree3631246773e59bd530583028f4094ae11efd4d01 /i18npool/inc/textconversion.hxx
parentec9632bb61f306a14e6cd260fb030d3f065b9084 (diff)
INTEGRATION: CWS textconversion (1.5.30); FILE MERGED
2005/10/27 00:42:47 tl 1.5.30.2: RESYNC: (1.5-1.6); FILE MERGED 2005/07/18 20:53:23 khong 1.5.30.1: #124006# add extended text conversion API
Diffstat (limited to 'i18npool/inc/textconversion.hxx')
-rw-r--r--i18npool/inc/textconversion.hxx31
1 files changed, 26 insertions, 5 deletions
diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx
index d0fb82bc9ff2..aea9d8d0c9ea 100644
--- a/i18npool/inc/textconversion.hxx
+++ b/i18npool/inc/textconversion.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textconversion.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 16:56:29 $
+ * last change: $Author: rt $ $Date: 2005-11-08 09:15:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -37,7 +37,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
-#include <com/sun/star/i18n/XTextConversion.hpp>
+#include <com/sun/star/i18n/XExtendedTextConversion.hpp>
#include <com/sun/star/linguistic2/XConversionDictionary.hpp>
#include <com/sun/star/linguistic2/XConversionDictionaryList.hpp>
#include <cppuhelper/implbase2.hxx> // helper for implementations
@@ -49,7 +49,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------
class TextConversion: public cppu::WeakImplHelper2
<
- com::sun::star::i18n::XTextConversion,
+ com::sun::star::i18n::XExtendedTextConversion,
com::sun::star::lang::XServiceInfo
>
{
@@ -69,6 +69,13 @@ public:
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException ) = 0;
+ virtual rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ throw( com::sun::star::uno::RuntimeException,
+ com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::lang::NoSupportException ) = 0;
virtual sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nTextConversionType, sal_Int32 nTextConversionOptions )
@@ -120,6 +127,13 @@ public:
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
+ rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ throw( com::sun::star::uno::RuntimeException,
+ com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::lang::NoSupportException );
sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nTextConversionType,
@@ -167,6 +181,13 @@ public:
throw( com::sun::star::uno::RuntimeException,
com::sun::star::lang::IllegalArgumentException,
com::sun::star::lang::NoSupportException );
+ rtl::OUString SAL_CALL
+ getConversionWithOffset( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions, com::sun::star::uno::Sequence< sal_Int32 >& offset )
+ throw( com::sun::star::uno::RuntimeException,
+ com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::lang::NoSupportException );
sal_Bool SAL_CALL
interactiveConversion(const ::com::sun::star::lang::Locale& aLocale,
sal_Int16 nTextConversionType,
@@ -178,7 +199,7 @@ private :
// user defined dictionary list
com::sun::star::uno::Reference < com::sun::star::linguistic2::XConversionDictionaryList > xCDL;
rtl::OUString SAL_CALL getWordConversion(const ::rtl::OUString& aText,
- sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions);
+ sal_Int32 nStartPos, sal_Int32 nLength, sal_Bool toSChinese, sal_Int32 nConversionOptions, com::sun::star::uno::Sequence <sal_Int32>& offset);
com::sun::star::lang::Locale aLocale;
};