1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 24 #define _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 25 26 #include <transliteration_commonclass.hxx> 27 28 namespace com { namespace sun { namespace star { namespace i18n { 29 30 class transliteration_Numeric : public transliteration_commonclass { 31 public: 32 virtual ::rtl::OUString SAL_CALL 33 transliterate( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) 34 throw(::com::sun::star::uno::RuntimeException); 35 36 virtual sal_Unicode SAL_CALL 37 transliterateChar2Char( sal_Unicode inChar) 38 throw(com::sun::star::i18n::MultipleCharsOutputException, 39 com::sun::star::uno::RuntimeException); 40 41 // Methods which are shared. 42 virtual sal_Int16 SAL_CALL getType( ) throw(::com::sun::star::uno::RuntimeException); 43 44 virtual ::rtl::OUString SAL_CALL 45 folding( const ::rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, ::com::sun::star::uno::Sequence< sal_Int32 >& offset ) 46 throw(::com::sun::star::uno::RuntimeException); 47 48 virtual sal_Bool SAL_CALL 49 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 ) 50 throw(::com::sun::star::uno::RuntimeException); 51 52 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 53 transliterateRange( const ::rtl::OUString& str1, const ::rtl::OUString& str2 ) 54 throw(::com::sun::star::uno::RuntimeException); 55 protected: 56 sal_Int16 nNativeNumberMode; 57 sal_Int16 tableSize; 58 sal_Unicode* table; 59 sal_Bool recycleSymbol; 60 private: 61 rtl::OUString SAL_CALL 62 transliterateBullet( const rtl::OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, 63 com::sun::star::uno::Sequence< sal_Int32 >& offset ) 64 throw(com::sun::star::uno::RuntimeException); 65 }; 66 67 } } } } 68 69 #endif // _I18N_TRANSLITERATION_TRANSLITERATION_NUMERIC_H_ 70