LibreOffice Module i18npool (master) 1
|
#include <collatorImpl.hxx>
Classes | |
struct | lookupTableItem |
Public Member Functions | |
CollatorImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
virtual | ~CollatorImpl () override |
virtual sal_Int32 SAL_CALL | compareSubstring (const OUString &s1, sal_Int32 off1, sal_Int32 len1, const OUString &s2, sal_Int32 off2, sal_Int32 len2) override |
virtual sal_Int32 SAL_CALL | compareString (const OUString &s1, const OUString &s2) override |
virtual sal_Int32 SAL_CALL | loadDefaultCollator (const css::lang::Locale &rLocale, sal_Int32 collatorOptions) override |
virtual sal_Int32 SAL_CALL | loadCollatorAlgorithm (const OUString &impl, const css::lang::Locale &rLocale, sal_Int32 collatorOptions) override |
virtual void SAL_CALL | loadCollatorAlgorithmWithEndUserOption (const OUString &impl, const css::lang::Locale &rLocale, const css::uno::Sequence< sal_Int32 > &collatorOptions) override |
virtual css::uno::Sequence< OUString > SAL_CALL | listCollatorAlgorithms (const css::lang::Locale &rLocale) override |
virtual css::uno::Sequence< sal_Int32 > SAL_CALL | listCollatorOptions (const OUString &collatorAlgorithmName) 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 |
Protected Attributes | |
css::lang::Locale | nLocale |
Private Member Functions | |
bool | createCollator (const css::lang::Locale &rLocale, const OUString &serviceName, const OUString &rSortAlgorithm) |
void | loadCachedCollator (const css::lang::Locale &rLocale, const OUString &rSortAlgorithm) |
Private Attributes | |
std::vector< lookupTableItem > | lookupTable |
std::optional< lookupTableItem > | cachedItem |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::i18n::XLocaleData5 > | mxLocaleData |
Definition at line 39 of file collatorImpl.hxx.
i18npool::CollatorImpl::CollatorImpl | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Definition at line 34 of file collatorImpl.cxx.
References m_xContext, and mxLocaleData.
|
overridevirtual |
Definition at line 39 of file collatorImpl.cxx.
|
overridevirtual |
Reimplemented in i18npool::ChapterCollator.
Definition at line 59 of file collatorImpl.cxx.
References cachedItem, and compareSubstring().
|
overridevirtual |
Reimplemented in i18npool::ChapterCollator.
Definition at line 44 of file collatorImpl.cxx.
References cachedItem, and i.
Referenced by compareString(), and i18npool::ChapterCollator::compareSubstring().
|
private |
css::uno::RuntimeException |
Definition at line 138 of file collatorImpl.cxx.
References cachedItem, lookupTable, and m_xContext.
Referenced by loadCachedCollator().
|
overridevirtual |
Reimplemented in i18npool::ChapterCollator.
Definition at line 208 of file collatorImpl.cxx.
|
overridevirtual |
Reimplemented in i18npool::ChapterCollator.
Definition at line 219 of file collatorImpl.cxx.
|
overridevirtual |
Definition at line 105 of file collatorImpl.cxx.
References mxLocaleData, and nLocale.
|
overridevirtual |
Definition at line 124 of file collatorImpl.cxx.
References mxLocaleData, and nLocale.
|
private |
css::uno::RuntimeException |
Definition at line 164 of file collatorImpl.cxx.
References cachedItem, createCollator(), i18npool::LocaleDataImpl::getFallbackLocaleServiceNames(), i18npool::LocaleDataImpl::getFirstLocaleServiceName(), i, and lookupTable.
Referenced by loadCollatorAlgorithm().
|
overridevirtual |
Definition at line 82 of file collatorImpl.cxx.
References cachedItem, loadCachedCollator(), and nLocale.
Referenced by loadCollatorAlgorithmWithEndUserOption(), and loadDefaultCollator().
|
overridevirtual |
Definition at line 96 of file collatorImpl.cxx.
References loadCollatorAlgorithm().
|
overridevirtual |
Definition at line 69 of file collatorImpl.cxx.
References loadCollatorAlgorithm(), and mxLocaleData.
|
overridevirtual |
Reimplemented in i18npool::ChapterCollator.
Definition at line 213 of file collatorImpl.cxx.
References cppu::supportsService().
|
private |
Definition at line 93 of file collatorImpl.hxx.
Referenced by compareString(), compareSubstring(), createCollator(), loadCachedCollator(), and loadCollatorAlgorithm().
|
private |
Definition at line 92 of file collatorImpl.hxx.
Referenced by createCollator(), and loadCachedCollator().
|
private |
Definition at line 96 of file collatorImpl.hxx.
Referenced by createCollator().
|
private |
Definition at line 98 of file collatorImpl.hxx.
Referenced by CollatorImpl(), listCollatorAlgorithms(), listCollatorOptions(), and loadDefaultCollator().
|
protected |
Definition at line 76 of file collatorImpl.hxx.
Referenced by i18npool::ChapterCollator::compareSubstring(), listCollatorAlgorithms(), listCollatorOptions(), and loadCollatorAlgorithm().