1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef TRANSLITERATION_CASE_IGNORE_H 28 #define TRANSLITERATION_CASE_IGNORE_H 29 30 #define TRANSLITERATION_UPPER_LOWER 31 #include "transliteration_body.hxx" 32 33 namespace com { namespace sun { namespace star { namespace i18n { 34 35 class Transliteration_caseignore: public Transliteration_body 36 { 37 public: 38 Transliteration_caseignore(); 39 40 // Methods which are shared. 41 sal_Int16 SAL_CALL getType() throw(com::sun::star::uno::RuntimeException); 42 43 void SAL_CALL loadModule( TransliterationModules modName, const com::sun::star::lang::Locale& rLocale ) 44 throw(com::sun::star::uno::RuntimeException); 45 46 com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL transliterateRange( 47 const rtl::OUString& str1, const rtl::OUString& str2 ) 48 throw(com::sun::star::uno::RuntimeException); 49 50 sal_Bool SAL_CALL equals( 51 const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, 52 const rtl::OUString& src2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2) 53 throw(com::sun::star::uno::RuntimeException); 54 55 sal_Int32 SAL_CALL compareSubstring( 56 const rtl::OUString& s1, sal_Int32 off1, sal_Int32 len1, 57 const rtl::OUString& s2, sal_Int32 off2, sal_Int32 len2) 58 throw(com::sun::star::uno::RuntimeException); 59 60 sal_Int32 SAL_CALL compareString( 61 const rtl::OUString& s1, 62 const rtl::OUString& s2) 63 throw(com::sun::star::uno::RuntimeException); 64 65 protected: 66 TransliterationModules moduleLoaded; 67 private: 68 sal_Int32 SAL_CALL compare( 69 const rtl::OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1, 70 const rtl::OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2) 71 throw(com::sun::star::uno::RuntimeException); 72 }; 73 74 } } } } 75 76 #endif 77