update dev300-m58
[ooovba.git] / i18npool / inc / indexentrysupplier_ja_phonetic.hxx
blob82efe1af2cc9e7a530e6d6e0f90e3429d3d5336d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: indexentrysupplier_ja_phonetic.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _I18N_INDEXENTRYSUPPLIER_JA_PHONETIC_HXX_
32 #define _I18N_INDEXENTRYSUPPLIER_JA_PHONETIC_HXX_
34 #include <indexentrysupplier_common.hxx>
36 namespace com { namespace sun { namespace star { namespace i18n {
38 // ----------------------------------------------------
39 // class IndexEntrySupplier_ja_phonetic
40 // ----------------------------------------------------
42 class IndexEntrySupplier_ja_phonetic : public IndexEntrySupplier_Common {
43 public:
44 IndexEntrySupplier_ja_phonetic( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF ) : IndexEntrySupplier_Common(rxMSF) {
45 implementationName = "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic";
47 virtual rtl::OUString SAL_CALL getIndexCharacter( const rtl::OUString& rIndexEntry,\
48 const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rSortAlgorithm ) \
49 throw (com::sun::star::uno::RuntimeException);\
50 virtual rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& IndexEntry, \
51 const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )\
52 throw (com::sun::star::uno::RuntimeException);\
53 virtual sal_Int16 SAL_CALL compareIndexEntry( const rtl::OUString& IndexEntry1,\
54 const rtl::OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1,\
55 const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2,\
56 const com::sun::star::lang::Locale& rLocale2 )\
57 throw (com::sun::star::uno::RuntimeException);\
60 #define INDEXENTRYSUPPLIER_JA_PHONETIC( algorithm ) \
61 class IndexEntrySupplier_##algorithm : public IndexEntrySupplier_ja_phonetic {\
62 public:\
63 IndexEntrySupplier_##algorithm (const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF) : IndexEntrySupplier_ja_phonetic (rxMSF) {\
64 implementationName = "com.sun.star.i18n.IndexEntrySupplier_"#algorithm;\
65 };\
66 virtual sal_Bool SAL_CALL loadAlgorithm(\
67 const com::sun::star::lang::Locale& rLocale,\
68 const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions ) \
69 throw (com::sun::star::uno::RuntimeException);\
72 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_syllable )
73 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_consonant )
74 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_syllable )
75 INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_consonant )
77 } } } }
78 #endif