summaryrefslogtreecommitdiff
path: root/i18npool/inc/collatorImpl.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-03 14:16:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-04 08:39:11 +0200
commit6ce77cac03123f2bf5c9b6698a3f80e32d7fbe85 (patch)
treeabdd40004f9a98c3be7f37e8e0027639456cd688 /i18npool/inc/collatorImpl.hxx
parentf2db08b28e99c61c44bc057d03de926ac33d93b7 (diff)
move stuff in i18npool/i18nutil in own namespace
instead of trying to share the css::i18n namespace, which is just very confusing and should be left to actual UNO artifacts Change-Id: I2f5c36bf1af9a2a98c4f997dd450d015e75ed3f6 Reviewed-on: https://gerrit.libreoffice.org/43079 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc/collatorImpl.hxx')
-rw-r--r--i18npool/inc/collatorImpl.hxx29
1 files changed, 15 insertions, 14 deletions
diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx
index 62f1e0a430dd..b6f9dd25f791 100644
--- a/i18npool/inc/collatorImpl.hxx
+++ b/i18npool/inc/collatorImpl.hxx
@@ -30,13 +30,14 @@
#include <vector>
-namespace com { namespace sun { namespace star { namespace i18n {
+namespace i18npool {
+
// ----------------------------------------------------
// class CollatorImpl
// ----------------------------------------------------
class CollatorImpl : public cppu::WeakImplHelper
<
- XCollator,
+ css::i18n::XCollator,
css::lang::XServiceInfo
>
{
@@ -53,15 +54,15 @@ public:
virtual sal_Int32 SAL_CALL compareString( const OUString& s1,
const OUString& s2) override;
- virtual sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale& rLocale, sal_Int32 collatorOptions) 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 lang::Locale& rLocale,
+ 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 lang::Locale& rLocale,
+ 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 lang::Locale& rLocale ) 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;
@@ -71,16 +72,16 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
protected:
- lang::Locale nLocale;
+ css::lang::Locale nLocale;
private:
struct lookupTableItem {
- lang::Locale aLocale;
+ css::lang::Locale aLocale;
OUString algorithm;
OUString service;
css::uno::Reference < XCollator > xC;
- lookupTableItem(const lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service,
+ lookupTableItem(const css::lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service,
css::uno::Reference < XCollator > const & _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {}
- bool SAL_CALL equals(const lang::Locale& rLocale, const OUString& _algorithm) {
+ bool SAL_CALL equals(const css::lang::Locale& rLocale, const OUString& _algorithm) {
return aLocale.Language == rLocale.Language &&
aLocale.Country == rLocale.Country &&
aLocale.Variant == rLocale.Variant &&
@@ -93,16 +94,16 @@ private:
// Service Factory
css::uno::Reference < css::uno::XComponentContext > m_xContext;
// lang::Locale Data
- css::uno::Reference < XLocaleData4 > mxLocaleData;
+ css::uno::Reference < css::i18n::XLocaleData4 > mxLocaleData;
/// @throws css::uno::RuntimeException
- bool SAL_CALL createCollator(const lang::Locale& rLocale, const OUString& serviceName,
+ bool SAL_CALL createCollator(const css::lang::Locale& rLocale, const OUString& serviceName,
const OUString& rSortAlgorithm);
/// @throws css::uno::RuntimeException
- void SAL_CALL loadCachedCollator(const lang::Locale& rLocale, const OUString& rSortAlgorithm);
+ void SAL_CALL loadCachedCollator(const css::lang::Locale& rLocale, const OUString& rSortAlgorithm);
};
-} } } }
+}
#endif