diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-04-08 14:45:21 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-04-08 14:45:21 +0000 |
commit | 9130ff9d4239bdb13bcf98f9e2297043efc450b9 (patch) | |
tree | 7ad0f8ac1d7a6731787ce42642e639438bf97215 /i18npool/inc/transliteration_Numeric.hxx | |
parent | 8f5e7776880d5d3796c48e260fccc7fcee981f96 (diff) |
INTEGRATION: CWS calc06 (1.2.46); FILE MERGED
2003/03/21 22:23:24 khong 1.2.46.1: #106680# Implementing new XExtendedTransliteration interface
Diffstat (limited to 'i18npool/inc/transliteration_Numeric.hxx')
-rw-r--r-- | i18npool/inc/transliteration_Numeric.hxx | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx index 91e3c9ae91f4..ebc008fb2080 100644 --- a/i18npool/inc/transliteration_Numeric.hxx +++ b/i18npool/inc/transliteration_Numeric.hxx @@ -2,9 +2,9 @@ * * $RCSfile: transliteration_Numeric.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: er $ $Date: 2002-03-26 17:57:44 $ + * last change: $Author: rt $ $Date: 2003-04-08 15:45:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -67,24 +67,39 @@ namespace com { namespace sun { namespace star { namespace i18n { class transliteration_Numeric : public transliteration_commonclass { public: - virtual ::rtl::OUString SAL_CALL - transliterate( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) - throw(::com::sun::star::uno::RuntimeException) = 0; + virtual ::rtl::OUString SAL_CALL + transliterate( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) + throw(::com::sun::star::uno::RuntimeException); - // Methods which are shared. - virtual sal_Int16 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException); + virtual sal_Unicode SAL_CALL + transliterateChar2Char( sal_Unicode inChar) + throw(drafts::com::sun::star::i18n::MultipleCharsOutputException, + com::sun::star::uno::RuntimeException); - virtual ::rtl::OUString SAL_CALL - folding( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) - throw(::com::sun::star::uno::RuntimeException); + // Methods which are shared. + virtual sal_Int16 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL - equals( const ::rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, const ::rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) - throw(::com::sun::star::uno::RuntimeException); + virtual ::rtl::OUString SAL_CALL + folding( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) + throw(::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL - transliterateRange( const ::rtl::OUString& str1, const ::rtl::OUString& str2 ) - throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL + equals( const ::rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, const ::rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2 ) + throw(::com::sun::star::uno::RuntimeException); + + virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + transliterateRange( const ::rtl::OUString& str1, const ::rtl::OUString& str2 ) + throw(::com::sun::star::uno::RuntimeException); +protected: + sal_Int16 nNativeNumberMode; + sal_Int16 tableSize; + sal_Unicode* table; + sal_Bool recycleSymbol; +private: + rtl::OUString SAL_CALL + transliterateBullet( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, + com::sun::star::uno::Sequence< sal_Int32 >& offset ) + throw(com::sun::star::uno::RuntimeException); }; } } } } |