21#include <com/sun/star/i18n/IndexEntrySupplier.hpp>
29 uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
32 m_xIES = i18n::IndexEntrySupplier::create(xContext);
34 catch (
const uno::Exception&)
45 const OUString& rTextReading,
46 const css::lang::Locale& rLocale )
const
50 sRet =
m_xIES->getIndexKey( rText, rTextReading, rLocale );
52 catch (
const uno::Exception&)
63 sRet =
m_xIES->getIndexFollowPageWord( bMorePages,
m_aLcl );
65 catch (
const uno::Exception&)
74 uno::Sequence< OUString > sRet;
77 sRet =
m_xIES->getAlgorithmList( rLcl );
79 catch (
const uno::Exception&)
87 const css::lang::Locale& rLcl,
88 const OUString& sSortAlgorithm,
tools::Long nOptions )
const
92 bRet =
m_xIES->loadAlgorithm( rLcl, sSortAlgorithm, nOptions );
94 catch (
const uno::Exception&)
102 const OUString& rText1,
const OUString& rTextReading1,
103 const css::lang::Locale& rLocale1,
104 const OUString& rText2,
const OUString& rTextReading2,
105 const css::lang::Locale& rLocale2 )
const
109 nRet =
m_xIES->compareIndexEntry( rText1, rTextReading1, rLocale1,
110 rText2, rTextReading2, rLocale2 );
112 catch (
const uno::Exception&)
css::uno::Sequence< OUString > GetAlgorithmList(const css::lang::Locale &rLcl) const
OUString GetFollowingText(bool bMorePages) const
css::uno::Reference< css::i18n::XExtendedIndexEntrySupplier > m_xIES
sal_Int16 CompareIndexEntry(const OUString &rText1, const OUString &rTextReading1, const css::lang::Locale &rLcl1, const OUString &rText2, const OUString &rTextReading2, const css::lang::Locale &rLcl2) const
IndexEntrySupplierWrapper()
bool LoadAlgorithm(const css::lang::Locale &rLcl, const OUString &sSortAlgorithm, tools::Long nOptions) const
~IndexEntrySupplierWrapper()
OUString GetIndexKey(const OUString &rText, const OUString &rTextReading, const css::lang::Locale &rLocale) const
#define TOOLS_WARN_EXCEPTION(area, stream)