LibreOffice Module i18npool (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
i18npool::IndexEntrySupplier Class Referencefinal

#include <indexentrysupplier.hxx>

Inheritance diagram for i18npool::IndexEntrySupplier:
[legend]
Collaboration diagram for i18npool::IndexEntrySupplier:
[legend]

Public Member Functions

 IndexEntrySupplier (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocaleList () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAlgorithmList (const css::lang::Locale &rLocale) override
 
virtual sal_Bool SAL_CALL loadAlgorithm (const css::lang::Locale &rLocale, const OUString &SortAlgorithm, sal_Int32 collatorOptions) override
 
virtual sal_Bool SAL_CALL usePhoneticEntry (const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL getPhoneticCandidate (const OUString &IndexEntry, const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL getIndexKey (const OUString &IndexEntry, const OUString &PhoneticEntry, const css::lang::Locale &rLocale) override
 
virtual sal_Int16 SAL_CALL compareIndexEntry (const OUString &IndexEntry1, const OUString &PhoneticEntry1, const css::lang::Locale &rLocale1, const OUString &IndexEntry2, const OUString &PhoneticEntry2, const css::lang::Locale &rLocale2) override
 
virtual OUString SAL_CALL getIndexCharacter (const OUString &IndexEntry, const css::lang::Locale &rLocale, const OUString &SortAlgorithm) override
 
virtual OUString SAL_CALL getIndexFollowPageWord (sal_Bool MorePages, const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

bool createLocaleSpecificIndexEntrySupplier (std::u16string_view name)
 
css::uno::Reference< css::i18n::XExtendedIndexEntrySupplier > const & getLocaleSpecificIndexEntrySupplier (const css::lang::Locale &rLocale, const OUString &rSortAlgorithm)
 

Private Attributes

css::uno::Reference< css::i18n::XExtendedIndexEntrySupplier > xIES
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::lang::Locale aLocale
 
OUString aSortAlgorithm
 

Detailed Description

Definition at line 35 of file indexentrysupplier.hxx.

Constructor & Destructor Documentation

◆ IndexEntrySupplier()

i18npool::IndexEntrySupplier::IndexEntrySupplier ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Definition at line 32 of file indexentrysupplier.cxx.

References m_xContext.

Member Function Documentation

◆ compareIndexEntry()

sal_Int16 SAL_CALL i18npool::IndexEntrySupplier::compareIndexEntry ( const OUString &  IndexEntry1,
const OUString &  PhoneticEntry1,
const css::lang::Locale &  rLocale1,
const OUString &  IndexEntry2,
const OUString &  PhoneticEntry2,
const css::lang::Locale &  rLocale2 
)
overridevirtual

Definition at line 79 of file indexentrysupplier.cxx.

References xIES.

◆ createLocaleSpecificIndexEntrySupplier()

bool i18npool::IndexEntrySupplier::createLocaleSpecificIndexEntrySupplier ( std::u16string_view  name)
private
Exceptions
css::uno::RuntimeException

Definition at line 96 of file indexentrysupplier.cxx.

References m_xContext, name, and xIES.

Referenced by getLocaleSpecificIndexEntrySupplier().

◆ getAlgorithmList()

Sequence< OUString > SAL_CALL i18npool::IndexEntrySupplier::getAlgorithmList ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 41 of file indexentrysupplier.cxx.

References i18npool::LocaleDataImpl::get().

Referenced by loadAlgorithm().

◆ getImplementationName()

OUString SAL_CALL i18npool::IndexEntrySupplier::getImplementationName ( )
overridevirtual

Definition at line 177 of file indexentrysupplier.cxx.

References i18npool::implementationName.

◆ getIndexCharacter()

OUString SAL_CALL i18npool::IndexEntrySupplier::getIndexCharacter ( const OUString &  IndexEntry,
const css::lang::Locale &  rLocale,
const OUString &  SortAlgorithm 
)
overridevirtual

Definition at line 89 of file indexentrysupplier.cxx.

References getIndexCharacter(), and getLocaleSpecificIndexEntrySupplier().

Referenced by getIndexCharacter().

◆ getIndexFollowPageWord()

OUString SAL_CALL i18npool::IndexEntrySupplier::getIndexFollowPageWord ( sal_Bool  MorePages,
const css::lang::Locale &  rLocale 
)
overridevirtual

Definition at line 164 of file indexentrysupplier.cxx.

References i18npool::LocaleDataImpl::get().

◆ getIndexKey()

OUString SAL_CALL i18npool::IndexEntrySupplier::getIndexKey ( const OUString &  IndexEntry,
const OUString &  PhoneticEntry,
const css::lang::Locale &  rLocale 
)
overridevirtual

Definition at line 71 of file indexentrysupplier.cxx.

References xIES.

◆ getLocaleList()

Sequence< Locale > SAL_CALL i18npool::IndexEntrySupplier::getLocaleList ( )
overridevirtual

Definition at line 36 of file indexentrysupplier.cxx.

References i18npool::LocaleDataImpl::get().

◆ getLocaleSpecificIndexEntrySupplier()

Reference< css::i18n::XExtendedIndexEntrySupplier > const & i18npool::IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier ( const css::lang::Locale &  rLocale,
const OUString &  rSortAlgorithm 
)
private

◆ getPhoneticCandidate()

OUString SAL_CALL i18npool::IndexEntrySupplier::getPhoneticCandidate ( const OUString &  IndexEntry,
const css::lang::Locale &  rLocale 
)
overridevirtual

Definition at line 63 of file indexentrysupplier.cxx.

References getLocaleSpecificIndexEntrySupplier(), and xIES.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL i18npool::IndexEntrySupplier::getSupportedServiceNames ( )
overridevirtual

Definition at line 189 of file indexentrysupplier.cxx.

References i18npool::implementationName.

◆ loadAlgorithm()

sal_Bool SAL_CALL i18npool::IndexEntrySupplier::loadAlgorithm ( const css::lang::Locale &  rLocale,
const OUString &  SortAlgorithm,
sal_Int32  collatorOptions 
)
overridevirtual

Definition at line 46 of file indexentrysupplier.cxx.

References getAlgorithmList(), and xIES.

◆ supportsService()

sal_Bool SAL_CALL i18npool::IndexEntrySupplier::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 183 of file indexentrysupplier.cxx.

References cppu::supportsService().

◆ usePhoneticEntry()

sal_Bool SAL_CALL i18npool::IndexEntrySupplier::usePhoneticEntry ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 58 of file indexentrysupplier.cxx.

References i18npool::LocaleDataImpl::get().

Member Data Documentation

◆ aLocale

css::lang::Locale i18npool::IndexEntrySupplier::aLocale
private

Definition at line 88 of file indexentrysupplier.hxx.

Referenced by getLocaleSpecificIndexEntrySupplier().

◆ aSortAlgorithm

OUString i18npool::IndexEntrySupplier::aSortAlgorithm
private

Definition at line 89 of file indexentrysupplier.hxx.

Referenced by getLocaleSpecificIndexEntrySupplier().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > i18npool::IndexEntrySupplier::m_xContext
private

Definition at line 81 of file indexentrysupplier.hxx.

Referenced by createLocaleSpecificIndexEntrySupplier().

◆ xIES

css::uno::Reference< css::i18n::XExtendedIndexEntrySupplier > i18npool::IndexEntrySupplier::xIES
private

The documentation for this class was generated from the following files: