summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-09-17 12:56:24 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-09-17 12:56:24 +0000
commitf4eb9595c41a123cda8129fa842f401feb7623cb (patch)
treecd5f7949fb0b7b12f649db97aabebc80cc99f6a7 /i18npool
parent3ff4619b6087c2cdbe021022218f550a37ef74f3 (diff)
INTEGRATION: CWS os34 (1.3.30); FILE MERGED
2004/06/29 22:17:02 khong 1.3.30.1: #i29300# add Chinese conversion
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/inc/textconversion.hxx48
1 files changed, 45 insertions, 3 deletions
diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx
index 2b6a7622e807..5784a50ccce0 100644
--- a/i18npool/inc/textconversion.hxx
+++ b/i18npool/inc/textconversion.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textconversion.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2004-01-20 13:19:34 $
+ * last change: $Author: rt $ $Date: 2004-09-17 13:56:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,7 +124,7 @@ typedef struct {
} Hangul_Index;
// ----------------------------------------------------
-// class TextConversion
+// class TextConversion_ko
// ----------------------------------------------------
class TextConversion_ko : public TextConversion
{
@@ -163,6 +163,48 @@ private :
sal_Int32 maxRightLength;
};
+// ----------------------------------------------------
+// class TextConversion_zh
+// ----------------------------------------------------
+
+// for SChines/TChinese word conversion
+typedef struct {
+ sal_uInt16 start;
+ sal_Int16 count;
+} STC_WordIndex;
+
+class TextConversion_zh : public TextConversion
+{
+public:
+ TextConversion_zh( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
+
+ // Methods
+ com::sun::star::i18n::TextConversionResult SAL_CALL
+ getConversions( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
+ throw( com::sun::star::uno::RuntimeException,
+ com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::lang::NoSupportException );
+ rtl::OUString SAL_CALL
+ getConversion( const ::rtl::OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength,
+ const ::com::sun::star::lang::Locale& aLocale, sal_Int16 nTextConversionType,
+ sal_Int32 nTextConversionOptions )
+ 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,
+ sal_Int32 nTextConversionOptions )
+ throw( com::sun::star::uno::RuntimeException,
+ com::sun::star::lang::IllegalArgumentException,
+ com::sun::star::lang::NoSupportException );
+private :
+ // user defined dictionary list
+ com::sun::star::uno::Reference < com::sun::star::linguistic2::XConversionDictionaryList > xCDL;
+};
+
} // i18n
} // star
} // sun