From 85d4e7cac7975b80857d11c320fa850453050080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Tue, 8 Nov 2005 08:15:10 +0000 Subject: [PATCH] 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 --- i18npool/inc/textconversion.hxx | 31 ++++++++++++++++++++++++++----- 1 file 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 #include -#include +#include #include #include #include // 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 & offset); com::sun::star::lang::Locale aLocale; };