/src/libreoffice/i18npool/inc/indexentrysupplier_ja_phonetic.hxx
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
5 | | * This Source Code Form is subject to the terms of the Mozilla Public |
6 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 | | * |
9 | | * This file incorporates work covered by the following license notice: |
10 | | * |
11 | | * Licensed to the Apache Software Foundation (ASF) under one or more |
12 | | * contributor license agreements. See the NOTICE file distributed |
13 | | * with this work for additional information regarding copyright |
14 | | * ownership. The ASF licenses this file to you under the Apache |
15 | | * License, Version 2.0 (the "License"); you may not use this file |
16 | | * except in compliance with the License. You may obtain a copy of |
17 | | * the License at http://www.apache.org/licenses/LICENSE-2.0 . |
18 | | */ |
19 | | |
20 | | #pragma once |
21 | | |
22 | | #include "indexentrysupplier_common.hxx" |
23 | | |
24 | | namespace i18npool { |
25 | | |
26 | | |
27 | | |
28 | | |
29 | | class IndexEntrySupplier_ja_phonetic : public IndexEntrySupplier_Common { |
30 | | public: |
31 | 0 | IndexEntrySupplier_ja_phonetic( const css::uno::Reference < css::uno::XComponentContext >& rxContext ) : IndexEntrySupplier_Common(rxContext) { |
32 | 0 | implementationName = "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic"; |
33 | 0 | }; |
34 | | virtual OUString SAL_CALL getIndexCharacter( const OUString& rIndexEntry, |
35 | | const css::lang::Locale& rLocale, const OUString& rSortAlgorithm ) override; |
36 | | virtual OUString SAL_CALL getIndexKey( const OUString& IndexEntry, |
37 | | const OUString& PhoneticEntry, const css::lang::Locale& rLocale ) override; |
38 | | virtual sal_Int16 SAL_CALL compareIndexEntry( const OUString& IndexEntry1, |
39 | | const OUString& PhoneticEntry1, const css::lang::Locale& rLocale1, |
40 | | const OUString& IndexEntry2, const OUString& PhoneticEntry2, |
41 | | const css::lang::Locale& rLocale2 ) override; |
42 | | }; |
43 | | |
44 | | #define INDEXENTRYSUPPLIER_JA_PHONETIC( algorithm, algo_descr ) \ |
45 | | class IndexEntrySupplier_##algorithm final : public IndexEntrySupplier_ja_phonetic {\ |
46 | | public:\ |
47 | 0 | IndexEntrySupplier_##algorithm (const css::uno::Reference < css::uno::XComponentContext >& rxContext) : IndexEntrySupplier_ja_phonetic (rxContext) {\ |
48 | 0 | implementationName = "com.sun.star.i18n.IndexEntrySupplier_ja_phonetic" algo_descr;\ |
49 | 0 | };\ Unexecuted instantiation: i18npool::IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable::IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_syllable(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) Unexecuted instantiation: i18npool::IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant::IndexEntrySupplier_ja_phonetic_alphanumeric_first_by_consonant(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) Unexecuted instantiation: i18npool::IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable::IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_syllable(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) Unexecuted instantiation: i18npool::IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant::IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) |
50 | | virtual sal_Bool SAL_CALL loadAlgorithm(\ |
51 | | const css::lang::Locale& rLocale,\ |
52 | | const OUString& SortAlgorithm, sal_Int32 collatorOptions ) override;\ |
53 | | }; |
54 | | |
55 | | /** descriptions formed by concatenating strings here must match names in .component file */ |
56 | | INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_syllable, " (alphanumeric first) (grouped by syllable)" ) |
57 | | INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_consonant, " (alphanumeric first) (grouped by consonant)" ) |
58 | | INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_syllable, " (alphanumeric last) (grouped by syllable)" ) |
59 | | INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_consonant, " (alphanumeric last) (grouped by consonant)" ) |
60 | | |
61 | | } |
62 | | |
63 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |