From 6ce77cac03123f2bf5c9b6698a3f80e32d7fbe85 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 3 Oct 2017 14:16:24 +0200 Subject: 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 Reviewed-by: Noel Grandin --- compilerplugins/clang/fpcomparison.cxx | 3 +++ i18npool/inc/breakiteratorImpl.hxx | 22 ++++++++-------- i18npool/inc/breakiterator_cjk.hxx | 15 +++++------ i18npool/inc/breakiterator_ctl.hxx | 13 +++++----- i18npool/inc/breakiterator_th.hxx | 4 +-- i18npool/inc/breakiterator_unicode.hxx | 15 +++++------ i18npool/inc/bullet.h | 4 +-- i18npool/inc/calendarImpl.hxx | 20 +++++++-------- i18npool/inc/calendar_gregorian.hxx | 24 +++++++++--------- i18npool/inc/calendar_hijri.hxx | 4 +-- i18npool/inc/calendar_jewish.hxx | 4 +-- i18npool/inc/cclass_unicode.hxx | 14 +++++------ i18npool/inc/chaptercollator.hxx | 6 ++--- i18npool/inc/characterclassificationImpl.hxx | 10 ++++---- i18npool/inc/chartonum.hxx | 4 +-- i18npool/inc/collatorImpl.hxx | 29 +++++++++++----------- i18npool/inc/collator_unicode.hxx | 14 +++++------ i18npool/inc/defaultnumberingprovider.hxx | 6 +++-- i18npool/inc/indexentrysupplier.hxx | 4 +-- i18npool/inc/indexentrysupplier_asian.hxx | 4 +-- i18npool/inc/indexentrysupplier_common.hxx | 4 +-- i18npool/inc/indexentrysupplier_default.hxx | 4 +-- i18npool/inc/indexentrysupplier_ja_phonetic.hxx | 4 +-- i18npool/inc/inputsequencechecker.hxx | 4 +-- i18npool/inc/inputsequencechecker_hi.hxx | 7 ++---- i18npool/inc/inputsequencechecker_th.hxx | 4 +-- i18npool/inc/localedata.hxx | 28 ++++++++++----------- i18npool/inc/nativenumbersupplier.hxx | 4 +-- i18npool/inc/numtochar.hxx | 4 +-- i18npool/inc/numtotext_cjk.hxx | 4 +-- i18npool/inc/ordinalsuffix.hxx | 8 +++--- i18npool/inc/textToPronounce_zh.hxx | 4 +-- i18npool/inc/textconversion.hxx | 7 ++---- i18npool/inc/textconversionImpl.hxx | 7 ++---- i18npool/inc/texttonum.hxx | 4 +-- i18npool/inc/transliterationImpl.hxx | 10 ++++---- i18npool/inc/transliteration_Ignore.hxx | 6 ++--- i18npool/inc/transliteration_Numeric.hxx | 4 +-- i18npool/inc/transliteration_OneToOne.hxx | 6 ++--- i18npool/inc/transliteration_body.hxx | 4 +-- i18npool/inc/transliteration_caseignore.hxx | 6 ++--- i18npool/inc/transliteration_commonclass.hxx | 8 +++--- i18npool/inc/wtt.h | 4 +-- i18npool/inc/xdictionary.hxx | 22 ++++++++-------- .../source/breakiterator/breakiteratorImpl.cxx | 8 +++--- .../source/breakiterator/breakiterator_cjk.cxx | 15 +++++------ .../source/breakiterator/breakiterator_ctl.cxx | 6 +++-- i18npool/source/breakiterator/breakiterator_th.cxx | 4 +-- .../source/breakiterator/breakiterator_unicode.cxx | 7 +++--- i18npool/source/breakiterator/xdictionary.cxx | 8 +++--- i18npool/source/calendar/calendarImpl.cxx | 5 ++-- i18npool/source/calendar/calendar_gregorian.cxx | 5 ++-- i18npool/source/calendar/calendar_hijri.cxx | 5 ++-- i18npool/source/calendar/calendar_jewish.cxx | 5 ++-- .../characterclassification/cclass_unicode.cxx | 8 +++--- .../cclass_unicode_parser.cxx | 7 +++--- .../characterclassificationImpl.cxx | 9 ++++--- i18npool/source/collator/chaptercollator.cxx | 3 +++ i18npool/source/collator/collatorImpl.cxx | 7 +++--- i18npool/source/collator/collator_unicode.cxx | 5 ++-- .../defaultnumberingprovider.cxx | 7 +++--- i18npool/source/indexentry/indexentrysupplier.cxx | 4 +-- .../source/indexentry/indexentrysupplier_asian.cxx | 6 +++-- .../indexentry/indexentrysupplier_common.cxx | 4 +-- .../indexentry/indexentrysupplier_default.cxx | 6 +++-- .../indexentry/indexentrysupplier_ja_phonetic.cxx | 14 ++++++----- .../source/inputchecker/inputsequencechecker.cxx | 11 ++++---- .../inputchecker/inputsequencechecker_hi.cxx | 7 ++---- .../inputchecker/inputsequencechecker_th.cxx | 4 +-- i18npool/source/localedata/localedata.cxx | 5 +++- i18npool/source/nativenumber/data/numberchar.h | 4 +-- .../source/nativenumber/nativenumbersupplier.cxx | 7 +++--- i18npool/source/ordinalsuffix/ordinalsuffix.cxx | 6 ++--- .../source/registerservices/registerservices.cxx | 4 +-- i18npool/source/textconversion/genconv_dict.cxx | 6 ++--- i18npool/source/textconversion/textconversion.cxx | 4 +-- .../source/textconversion/textconversionImpl.cxx | 7 +++--- .../source/textconversion/textconversion_ko.cxx | 4 +-- .../source/textconversion/textconversion_zh.cxx | 4 +-- i18npool/source/transliteration/chartonum.cxx | 4 +-- .../transliteration/fullwidthToHalfwidth.cxx | 23 +++++++++-------- .../transliteration/halfwidthToFullwidth.cxx | 16 ++++++------ .../source/transliteration/hiraganaToKatakana.cxx | 4 +-- .../source/transliteration/ignoreBaFa_ja_JP.cxx | 4 +-- .../transliteration/ignoreDiacritics_CTL.cxx | 4 +-- .../source/transliteration/ignoreHyuByu_ja_JP.cxx | 4 +-- .../ignoreIandEfollowedByYa_ja_JP.cxx | 8 +++--- .../transliteration/ignoreIterationMark_ja_JP.cxx | 8 +++--- i18npool/source/transliteration/ignoreKana.cxx | 6 ++--- .../source/transliteration/ignoreKashida_CTL.cxx | 4 +-- .../ignoreKiKuFollowedBySa_ja_JP.cxx | 4 +-- .../transliteration/ignoreMiddleDot_ja_JP.cxx | 4 +-- .../transliteration/ignoreMinusSign_ja_JP.cxx | 4 +-- .../ignoreProlongedSoundMark_ja_JP.cxx | 4 +-- .../source/transliteration/ignoreSeZe_ja_JP.cxx | 4 +-- .../transliteration/ignoreSeparator_ja_JP.cxx | 8 +++--- .../source/transliteration/ignoreSize_ja_JP.cxx | 4 +-- .../source/transliteration/ignoreSpace_ja_JP.cxx | 8 +++--- .../source/transliteration/ignoreTiJi_ja_JP.cxx | 4 +-- .../ignoreTraditionalKana_ja_JP.cxx | 4 +-- .../ignoreTraditionalKanji_ja_JP.cxx | 8 +++--- i18npool/source/transliteration/ignoreWidth.cxx | 6 ++--- .../source/transliteration/ignoreZiZu_ja_JP.cxx | 4 +-- .../source/transliteration/katakanaToHiragana.cxx | 4 +-- .../source/transliteration/largeToSmall_ja_JP.cxx | 8 +++--- i18npool/source/transliteration/numtochar.cxx | 4 +-- i18npool/source/transliteration/numtotext_cjk.cxx | 4 +-- .../source/transliteration/smallToLarge_ja_JP.cxx | 8 +++--- .../source/transliteration/textToPronounce_zh.cxx | 5 ++-- i18npool/source/transliteration/texttonum.cxx | 4 +-- .../source/transliteration/transliterationImpl.cxx | 7 +++--- .../transliteration/transliteration_Ignore.cxx | 5 ++-- .../transliteration/transliteration_Numeric.cxx | 5 ++-- .../transliteration/transliteration_OneToOne.cxx | 5 ++-- .../transliteration/transliteration_body.cxx | 15 +++++------ .../transliteration/transliteration_caseignore.cxx | 13 +++++----- .../transliteration_commonclass.cxx | 5 ++-- i18nutil/source/utility/casefolding.cxx | 4 +-- i18nutil/source/utility/casefolding_data.h | 4 +-- i18nutil/source/utility/oneToOneMapping.cxx | 4 +-- i18nutil/source/utility/widthfolding.cxx | 4 +-- i18nutil/source/utility/widthfolding_data.h | 4 +-- include/i18nutil/casefolding.hxx | 4 +-- include/i18nutil/oneToOneMapping.hxx | 4 +-- include/i18nutil/widthfolding.hxx | 4 +-- 125 files changed, 459 insertions(+), 423 deletions(-) diff --git a/compilerplugins/clang/fpcomparison.cxx b/compilerplugins/clang/fpcomparison.cxx index f1b833659c43..844116a9ccf5 100644 --- a/compilerplugins/clang/fpcomparison.cxx +++ b/compilerplugins/clang/fpcomparison.cxx @@ -119,6 +119,9 @@ bool FpComparison::ignore(FunctionDecl* function) || (dc.Function("lcl_getNANInsteadDBL_MIN").AnonymousNamespace() .GlobalNamespace()) // chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx + || dc.Function("compareSubstring").Class("ChapterCollator").Namespace("i18npool").GlobalNamespace() + || dc.Function("setDateTime").Class("Calendar_gregorian").Namespace("i18npool").GlobalNamespace() + || dc.Function("setLocalDateTime").Class("Calendar_gregorian").Namespace("i18npool").GlobalNamespace() //TODO: || dc.Function("ImpCheckCondition").Class("SvNumberformat").GlobalNamespace() || dc.Function("GetTimeFormat").Class("SvNumberFormatter").GlobalNamespace() diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx index 8ae8d254d9b7..a357db248712 100644 --- a/i18npool/inc/breakiteratorImpl.hxx +++ b/i18npool/inc/breakiteratorImpl.hxx @@ -34,14 +34,14 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class BreakIterator class BreakIteratorImpl : public cppu::WeakImplHelper < - XBreakIterator, + css::i18n::XBreakIterator, css::lang::XServiceInfo > { @@ -57,11 +57,11 @@ public: const css::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32& nDone ) override; - virtual Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - virtual Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - virtual Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, + virtual css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override; virtual sal_Bool SAL_CALL isBeginWord( const OUString& Text, sal_Int32 nPos, @@ -76,9 +76,10 @@ public: virtual sal_Int32 SAL_CALL endOfSentence( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale ) override; - virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos, - const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override; + const css::i18n::LineBreakHyphenationOptions& hOptions, + const css::i18n::LineBreakUserOptions& bOptions ) override; virtual sal_Int16 SAL_CALL getScriptType( const OUString& Text, sal_Int32 nPos ) override; virtual sal_Int32 SAL_CALL beginOfScript( const OUString& Text, sal_Int32 nStartPos, @@ -106,7 +107,7 @@ public: static sal_Int16 SAL_CALL getScriptClass(sal_uInt32 currentChar); protected: - Boundary result; // for word break iterator + css::i18n::Boundary result; // for word break iterator private: @@ -127,10 +128,7 @@ private: }; -} // i18n -} // star -} // sun -} // com +} // i18npool #endif // INCLUDED_I18NPOOL_INC_BREAKITERATORIMPL_HXX diff --git a/i18npool/inc/breakiterator_cjk.hxx b/i18npool/inc/breakiterator_cjk.hxx index 1ec97dc7fae8..61f3f5424f14 100644 --- a/i18npool/inc/breakiterator_cjk.hxx +++ b/i18npool/inc/breakiterator_cjk.hxx @@ -24,7 +24,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class BreakIterator_CJK @@ -33,15 +33,16 @@ class BreakIterator_CJK : public BreakIterator_Unicode public: BreakIterator_CJK(); - Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, + css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, + css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, + css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override; - LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, + css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos, - const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override; + const css::i18n::LineBreakHyphenationOptions& hOptions, + const css::i18n::LineBreakUserOptions& bOptions ) override; protected: std::unique_ptr m_xDict; @@ -61,7 +62,7 @@ BREAKITERATOR_CJK( ko ) #undef BREAKITERATOR__CJK -} } } } +} #endif // INCLUDED_I18NPOOL_INC_BREAKITERATOR_CJK_HXX diff --git a/i18npool/inc/breakiterator_ctl.hxx b/i18npool/inc/breakiterator_ctl.hxx index 24fec512af72..747de34c64e7 100644 --- a/i18npool/inc/breakiterator_ctl.hxx +++ b/i18npool/inc/breakiterator_ctl.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class BreakIterator_CTL @@ -33,14 +33,15 @@ public: BreakIterator_CTL(); virtual ~BreakIterator_CTL() override; virtual sal_Int32 SAL_CALL previousCharacters(const OUString& text, sal_Int32 start, - const lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, + const css::lang::Locale& nLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, sal_Int32& nDone) override; virtual sal_Int32 SAL_CALL nextCharacters(const OUString& text, sal_Int32 start, - const lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, + const css::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 count, sal_Int32& nDone) override; - virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos, - const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override; + const css::i18n::LineBreakHyphenationOptions& hOptions, + const css::i18n::LineBreakUserOptions& bOptions ) override; protected: OUString cachedText; // for cell index sal_Int32* nextCellIndex; @@ -51,7 +52,7 @@ protected: virtual void SAL_CALL makeIndex(const OUString& text, sal_Int32 pos); }; -} } } } +} #endif diff --git a/i18npool/inc/breakiterator_th.hxx b/i18npool/inc/breakiterator_th.hxx index 5e2eddca019c..b43c6d9fd958 100644 --- a/i18npool/inc/breakiterator_th.hxx +++ b/i18npool/inc/breakiterator_th.hxx @@ -20,7 +20,7 @@ #define INCLUDED_I18NPOOL_INC_BREAKITERATOR_TH_HXX #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class BreakIterator_th @@ -35,7 +35,7 @@ protected: void SAL_CALL makeIndex(const OUString& text, sal_Int32 pos) override; }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_BREAKITERATOR_TH_HXX diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx index c9e644e31f42..1dc60cafbe69 100644 --- a/i18npool/inc/breakiterator_unicode.hxx +++ b/i18npool/inc/breakiterator_unicode.hxx @@ -25,7 +25,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define LOAD_CHARACTER_BREAKITERATOR 0 #define LOAD_WORD_BREAKITERATOR 1 @@ -48,11 +48,11 @@ public: const css::lang::Locale& rLocale, sal_Int16 nCharacterIteratorMode, sal_Int32 nCount, sal_Int32& nDone ) override; - virtual Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::Boundary SAL_CALL previousWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - virtual Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::Boundary SAL_CALL nextWord( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int16 WordType) override; - virtual Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, + virtual css::i18n::Boundary SAL_CALL getWordBoundary( const OUString& Text, sal_Int32 nPos, const css::lang::Locale& nLocale, sal_Int16 WordType, sal_Bool bDirection ) override; virtual sal_Int32 SAL_CALL beginOfSentence( const OUString& Text, sal_Int32 nStartPos, @@ -60,9 +60,10 @@ public: virtual sal_Int32 SAL_CALL endOfSentence( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale ) override; - virtual LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, + virtual css::i18n::LineBreakResults SAL_CALL getLineBreak( const OUString& Text, sal_Int32 nStartPos, const css::lang::Locale& nLocale, sal_Int32 nMinBreakPos, - const LineBreakHyphenationOptions& hOptions, const LineBreakUserOptions& bOptions ) override; + const css::i18n::LineBreakHyphenationOptions& hOptions, + const css::i18n::LineBreakUserOptions& bOptions ) override; //XServiceInfo virtual OUString SAL_CALL getImplementationName() override; @@ -103,7 +104,7 @@ public: typedef std::unordered_map< OString, std::shared_ptr< BI_ValueData >, OStringHash > BIMap; }; -} } } } +} #endif diff --git a/i18npool/inc/bullet.h b/i18npool/inc/bullet.h index c1f144326df5..9852625b09c0 100644 --- a/i18npool/inc/bullet.h +++ b/i18npool/inc/bullet.h @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const sal_Unicode table_AIUFullWidth_ja_JP[] = { 0x30A2, // KATAKANA LETTER A @@ -320,6 +320,6 @@ static const sal_Unicode table_DiZi_zh[] = { 0x5b50,0x4e11,0x5bc5,0x536f,0x8fb0,0x5df3,0x5348,0x672a,0x7533,0x9149,0x620c,0x4ea5 }; -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/inc/calendarImpl.hxx b/i18npool/inc/calendarImpl.hxx index ce0b9f66d2b0..aec643dcd59e 100644 --- a/i18npool/inc/calendarImpl.hxx +++ b/i18npool/inc/calendarImpl.hxx @@ -32,7 +32,7 @@ // class CalendarImpl -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class CalendarImpl : public cppu::WeakImplHelper < @@ -55,7 +55,7 @@ public: // Methods virtual void SAL_CALL loadDefaultCalendar(const css::lang::Locale& rLocale) override; virtual void SAL_CALL loadCalendar(const OUString& uniqueID, const css::lang::Locale& rLocale) override; - virtual Calendar SAL_CALL getLoadedCalendar() override; + virtual css::i18n::Calendar SAL_CALL getLoadedCalendar() override; virtual css::uno::Sequence < OUString > SAL_CALL getAllCalendars(const css::lang::Locale& rLocale) override; virtual OUString SAL_CALL getUniqueID() override; virtual void SAL_CALL setDateTime(double fTimeInDays) override; @@ -70,19 +70,19 @@ public: virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override; virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override; virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override; - virtual css::uno::Sequence < CalendarItem > SAL_CALL getMonths() override; - virtual css::uno::Sequence < CalendarItem > SAL_CALL getDays() override; + virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getMonths() override; + virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getDays() override; virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override; // Methods in XExtendedCalendar virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override; // XCalendar3 - virtual Calendar2 SAL_CALL getLoadedCalendar2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getDays2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getMonths2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getGenitiveMonths2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getPartitiveMonths2() override; + virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getDays2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getMonths2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override; // XCalendar4 virtual void SAL_CALL setLocalDateTime(double TimeInDays) override; @@ -105,7 +105,7 @@ private: css::uno::Reference < css::i18n::XCalendar4 > xCalendar; }; -} } } } +} #endif diff --git a/i18npool/inc/calendar_gregorian.hxx b/i18npool/inc/calendar_gregorian.hxx index a62f93da542b..15a591f37429 100644 --- a/i18npool/inc/calendar_gregorian.hxx +++ b/i18npool/inc/calendar_gregorian.hxx @@ -31,7 +31,7 @@ // class Calendar_gregorian -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { const sal_uInt8 kDisplayEraForcedLongYear = 0x01; @@ -42,7 +42,7 @@ struct Era { sal_uInt8 flags; }; -const sal_Int16 FIELD_INDEX_COUNT = CalendarFieldIndex::FIELD_COUNT2; +const sal_Int16 FIELD_INDEX_COUNT = css::i18n::CalendarFieldIndex::FIELD_COUNT2; class Calendar_gregorian : public CalendarImpl { @@ -66,7 +66,7 @@ public: virtual sal_Int16 SAL_CALL getValue(sal_Int16 nFieldIndex) override; virtual void SAL_CALL addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount) override; virtual sal_Bool SAL_CALL isValid() override; - virtual Calendar SAL_CALL getLoadedCalendar() override; + virtual css::i18n:: Calendar SAL_CALL getLoadedCalendar() override; virtual OUString SAL_CALL getUniqueID() override; virtual sal_Int16 SAL_CALL getFirstDayOfWeek() override; virtual void SAL_CALL setFirstDayOfWeek(sal_Int16 nDay) override; @@ -74,19 +74,19 @@ public: virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override; virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override; virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override; - virtual css::uno::Sequence < CalendarItem > SAL_CALL getMonths() override; - virtual css::uno::Sequence < CalendarItem > SAL_CALL getDays() override; + virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getMonths() override; + virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL getDays() override; virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override; // Methods in XExtendedCalendar virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override; // XCalendar3 - virtual Calendar2 SAL_CALL getLoadedCalendar2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getDays2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getMonths2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getGenitiveMonths2() override; - virtual css::uno::Sequence < CalendarItem2 > SAL_CALL getPartitiveMonths2() override; + virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getDays2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getMonths2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override; + virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override; // XCalendar4 virtual void SAL_CALL setLocalDateTime(double TimeInDays) override; @@ -118,7 +118,7 @@ protected: OUString getDisplayStringImpl( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, bool bEraMode ); private: - Calendar2 aCalendar; + css::i18n::Calendar2 aCalendar; /** Submit fieldSetValue array according to fieldSet. @@ -187,7 +187,7 @@ public: virtual OUString SAL_CALL getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode ) override; }; -} } } } +} #endif diff --git a/i18npool/inc/calendar_hijri.hxx b/i18npool/inc/calendar_hijri.hxx index 71f96767c089..31e2fc6d6bfc 100644 --- a/i18npool/inc/calendar_hijri.hxx +++ b/i18npool/inc/calendar_hijri.hxx @@ -25,7 +25,7 @@ // class Calendar_hijri -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class Calendar_hijri : public Calendar_gregorian { @@ -70,7 +70,7 @@ private: static double getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year); }; -} } } } +} #endif diff --git a/i18npool/inc/calendar_jewish.hxx b/i18npool/inc/calendar_jewish.hxx index db2ec2b1a8aa..91343e3ebb57 100644 --- a/i18npool/inc/calendar_jewish.hxx +++ b/i18npool/inc/calendar_jewish.hxx @@ -25,7 +25,7 @@ // class Calendar_jewish -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class Calendar_jewish : public Calendar_gregorian { @@ -41,7 +41,7 @@ protected: void mapFromGregorian() override; }; -} } } } +} #endif diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx index 287df8e69170..bfa80c169ee0 100644 --- a/i18npool/inc/cclass_unicode.hxx +++ b/i18npool/inc/cclass_unicode.hxx @@ -60,9 +60,9 @@ namespace o3tl { } -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -class cclass_Unicode : public cppu::WeakImplHelper < XCharacterClassification, css::lang::XServiceInfo > +class cclass_Unicode : public cppu::WeakImplHelper < css::i18n::XCharacterClassification, css::lang::XServiceInfo > { public: cclass_Unicode(const css::uno::Reference < css::uno::XComponentContext >& rxContext ); @@ -81,10 +81,10 @@ public: const css::lang::Locale& rLocale ) override; virtual sal_Int32 SAL_CALL getStringType( const OUString& text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale& rLocale ) override; - virtual ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos, + virtual css::i18n::ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos, const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override; - virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text, + virtual css::i18n::ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text, sal_Int32 nPos, const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override; @@ -126,7 +126,7 @@ private: /// used for parser only css::lang::Locale aParserLocale; - css::uno::Reference < XLocaleData4 > mxLocaleData; + css::uno::Reference < css::i18n::XLocaleData4 > mxLocaleData; css::uno::Reference < css::i18n::XNativeNumberSupplier > xNatNumSup; OUString aStartChars; OUString aContChars; @@ -168,7 +168,7 @@ private: void destroyParserTable(); /// Parse a text. - void parseText( ParseResult& r, const OUString& rText, sal_Int32 nPos, + void parseText( css::i18n::ParseResult& r, const OUString& rText, sal_Int32 nPos, sal_Int32 nTokenType = 0xffffffff ); /// Setup International class, new'ed only if different from existing. @@ -179,7 +179,7 @@ private: }; -} } } } +} #endif diff --git a/i18npool/inc/chaptercollator.hxx b/i18npool/inc/chaptercollator.hxx index ba890d5d3b6a..0f75860137d0 100644 --- a/i18npool/inc/chaptercollator.hxx +++ b/i18npool/inc/chaptercollator.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // ---------------------------------------------------- // class ChapterCollator @@ -46,10 +46,10 @@ public: private: // CharacterClassification Implementation - css::uno::Reference< XCharacterClassification > cclass; + css::uno::Reference< css::i18n::XCharacterClassification > cclass; }; -} } } } +} #endif diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx index 659b34210f9c..290418152622 100644 --- a/i18npool/inc/characterclassificationImpl.hxx +++ b/i18npool/inc/characterclassificationImpl.hxx @@ -26,11 +26,11 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class CharacterClassificationImpl : public cppu::WeakImplHelper < - XCharacterClassification, + css::i18n::XCharacterClassification, css::lang::XServiceInfo > { @@ -52,11 +52,11 @@ public: const css::lang::Locale& rLocale ) override; virtual sal_Int32 SAL_CALL getStringType( const OUString& text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale& rLocale ) override; - virtual ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos, + virtual css::i18n::ParseResult SAL_CALL parseAnyToken( const OUString& Text, sal_Int32 nPos, const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override; - virtual ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, + virtual css::i18n::ParseResult SAL_CALL parsePredefinedToken( sal_Int32 nTokenType, const OUString& Text, sal_Int32 nPos, const css::lang::Locale& rLocale, sal_Int32 nStartCharFlags, const OUString& userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString& userDefinedCharactersCont ) override; @@ -92,7 +92,7 @@ private: }; -} } } } +} #endif diff --git a/i18npool/inc/chartonum.hxx b/i18npool/inc/chartonum.hxx index 27107fda50c9..4824c1e505a3 100644 --- a/i18npool/inc/chartonum.hxx +++ b/i18npool/inc/chartonum.hxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_CHARTONUM( name ) \ class CharToNum##name : public transliteration_Numeric \ @@ -48,7 +48,7 @@ TRANSLITERATION_CHARTONUM(_th) #undef TRANSLITERATION_CHARTONUM -} } } } +} #endif // INCLUDED_I18NPOOL_INC_CHARTONUM_HXX 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 -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 diff --git a/i18npool/inc/collator_unicode.hxx b/i18npool/inc/collator_unicode.hxx index 3487b44b7600..1ec407517a56 100644 --- a/i18npool/inc/collator_unicode.hxx +++ b/i18npool/inc/collator_unicode.hxx @@ -30,9 +30,9 @@ // class Collator_Unicode // ---------------------------------------------------- -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -class Collator_Unicode : public cppu::WeakImplHelper < XCollator, css::lang::XServiceInfo > +class Collator_Unicode : public cppu::WeakImplHelper < css::i18n::XCollator, css::lang::XServiceInfo > { public: // Constructors @@ -45,15 +45,15 @@ public: sal_Int32 SAL_CALL compareString( const OUString& s1, const OUString& s2) override; - sal_Int32 SAL_CALL loadCollatorAlgorithm( const OUString& impl, const lang::Locale& rLocale, + sal_Int32 SAL_CALL loadCollatorAlgorithm( const OUString& impl, const css::lang::Locale& rLocale, sal_Int32 collatorOptions) override; // following 4 methods are implemented in collatorImpl. - sal_Int32 SAL_CALL loadDefaultCollator( const lang::Locale&, sal_Int32) override {throw css::uno::RuntimeException();} - void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString&, const lang::Locale&, + sal_Int32 SAL_CALL loadDefaultCollator( const css::lang::Locale&, sal_Int32) override {throw css::uno::RuntimeException();} + void SAL_CALL loadCollatorAlgorithmWithEndUserOption( const OUString&, const css::lang::Locale&, const css::uno::Sequence< sal_Int32 >&) override {throw css::uno::RuntimeException();} - css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const lang::Locale&) override {throw css::uno::RuntimeException();} + css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms( const css::lang::Locale&) override {throw css::uno::RuntimeException();} css::uno::Sequence< sal_Int32 > SAL_CALL listCollatorOptions( const OUString& ) override {throw css::uno::RuntimeException();} //XServiceInfo @@ -70,7 +70,7 @@ private: #endif }; -} } } } +} #endif diff --git a/i18npool/inc/defaultnumberingprovider.hxx b/i18npool/inc/defaultnumberingprovider.hxx index d487ec1c4914..966db83233a5 100644 --- a/i18npool/inc/defaultnumberingprovider.hxx +++ b/i18npool/inc/defaultnumberingprovider.hxx @@ -32,7 +32,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class DefaultNumberingProvider : public cppu::WeakImplHelper < @@ -81,7 +81,9 @@ private: /// @throws css::uno::RuntimeException bool SAL_CALL isScriptFlagEnabled(const OUString& aName ); }; -} } } } + +} + #endif diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx index 006b9fa47e87..4d8e33b76358 100644 --- a/i18npool/inc/indexentrysupplier.hxx +++ b/i18npool/inc/indexentrysupplier.hxx @@ -24,7 +24,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class IndexEntrySupplier @@ -87,7 +87,7 @@ protected: OUString aSortAlgorithm; }; -} } } } +} #endif diff --git a/i18npool/inc/indexentrysupplier_asian.hxx b/i18npool/inc/indexentrysupplier_asian.hxx index 15194ac7a62c..fc2b52dcd82a 100644 --- a/i18npool/inc/indexentrysupplier_asian.hxx +++ b/i18npool/inc/indexentrysupplier_asian.hxx @@ -23,7 +23,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class IndexEntrySupplier_asian @@ -51,7 +51,7 @@ private: #endif }; -} } } } +} #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx index bdd042fe779b..65ae1b62f200 100644 --- a/i18npool/inc/indexentrysupplier_common.hxx +++ b/i18npool/inc/indexentrysupplier_common.hxx @@ -28,7 +28,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class IndexEntrySupplier_Common @@ -91,7 +91,7 @@ protected: const OUString& PhoneticEntry, const css::lang::Locale& rLocale ); }; -} } } } +} #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx index 0de94706ac2f..c1c48bf3daf1 100644 --- a/i18npool/inc/indexentrysupplier_default.hxx +++ b/i18npool/inc/indexentrysupplier_default.hxx @@ -23,7 +23,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class Index; @@ -101,7 +101,7 @@ public: sal_Int16 compare(sal_Unicode c1, sal_Unicode c2); }; -} } } } +} #endif diff --git a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx index 7749c867253f..48ce3183da7d 100644 --- a/i18npool/inc/indexentrysupplier_ja_phonetic.hxx +++ b/i18npool/inc/indexentrysupplier_ja_phonetic.hxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class IndexEntrySupplier_ja_phonetic @@ -59,7 +59,7 @@ INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_first_by_consonant ) INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_syllable ) INDEXENTRYSUPPLIER_JA_PHONETIC( ja_phonetic_alphanumeric_last_by_consonant ) -} } } } +} #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx index b0ed20a14bd9..094113a8ca74 100644 --- a/i18npool/inc/inputsequencechecker.hxx +++ b/i18npool/inc/inputsequencechecker.hxx @@ -27,7 +27,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class InputSequenceCheckerImpl @@ -73,7 +73,7 @@ private: static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar); }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_INPUTSEQUENCECHECKER_HXX diff --git a/i18npool/inc/inputsequencechecker_hi.hxx b/i18npool/inc/inputsequencechecker_hi.hxx index 19918857498b..d87eaea5ebf1 100644 --- a/i18npool/inc/inputsequencechecker_hi.hxx +++ b/i18npool/inc/inputsequencechecker_hi.hxx @@ -21,10 +21,7 @@ #include -namespace com { -namespace sun { -namespace star { -namespace i18n { +namespace i18npool { // class InputSequenceChecker_hi @@ -42,7 +39,7 @@ public: sal_Unicode inputChar, sal_Int16 inputCheckMode) override; }; -} } } } +} #endif diff --git a/i18npool/inc/inputsequencechecker_th.hxx b/i18npool/inc/inputsequencechecker_th.hxx index e0ae2a9d689c..5b612f11ad07 100644 --- a/i18npool/inc/inputsequencechecker_th.hxx +++ b/i18npool/inc/inputsequencechecker_th.hxx @@ -21,7 +21,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class InputSequenceChecker_th @@ -39,7 +39,7 @@ public: sal_Unicode inputChar, sal_Int16 inputCheckMode) override; }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_INPUTSEQUENCECHECKER_TH_HXX diff --git a/i18npool/inc/localedata.hxx b/i18npool/inc/localedata.hxx index c89710cc49b3..503722f96c03 100644 --- a/i18npool/inc/localedata.hxx +++ b/i18npool/inc/localedata.hxx @@ -57,7 +57,7 @@ struct LocaleDataLookupTableItem; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class LocaleDataImpl : public cppu::WeakImplHelper < @@ -81,18 +81,18 @@ public: excluding the one obtained via getFirstLocaleServiceName() */ static ::std::vector< OUString > getFallbackLocaleServiceNames( const css::lang::Locale & rLocale ); - virtual LanguageCountryInfo SAL_CALL getLanguageCountryInfo( const css::lang::Locale& rLocale ) override; - virtual LocaleDataItem SAL_CALL getLocaleItem( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< Calendar2 > SAL_CALL getAllCalendars2( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< Calendar > SAL_CALL getAllCalendars( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< Currency > SAL_CALL getAllCurrencies( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< Currency2 > SAL_CALL getAllCurrencies2( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) override; - virtual css::uno::Sequence< Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) override; + virtual css::i18n::LanguageCountryInfo SAL_CALL getLanguageCountryInfo( const css::lang::Locale& rLocale ) override; + virtual css::i18n::LocaleDataItem SAL_CALL getLocaleItem( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::Calendar2 > SAL_CALL getAllCalendars2( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::Calendar > SAL_CALL getAllCalendars( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::Currency > SAL_CALL getAllCurrencies( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::Currency2 > SAL_CALL getAllCurrencies2( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::FormatElement > SAL_CALL getAllFormats( const css::lang::Locale& rLocale ) override; + virtual css::uno::Sequence< css::i18n::Implementation > SAL_CALL getCollatorImplementations( const css::lang::Locale& rLocale ) override; /// @throws css::uno::RuntimeException OUString SAL_CALL getCollatorRuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); virtual css::uno::Sequence< OUString > SAL_CALL getTransliterations( const css::lang::Locale& rLocale ) override; - virtual ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) override; + virtual css::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters( const css::lang::Locale& rLocale ) override; virtual css::uno::Sequence< OUString > SAL_CALL getReservedWord( const css::lang::Locale& rLocale ) override ; /// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL getBreakIteratorRules( const css::lang::Locale& rLocale ) ; @@ -101,9 +101,9 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSearchOptions( const css::lang::Locale& rLocale ) override; virtual css::uno::Sequence< OUString > SAL_CALL getCollationOptions( const css::lang::Locale& rLocale ) override; /// @throws css::uno::RuntimeException - css::uno::Sequence< css::uno::Sequence< beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > SAL_CALL getContinuousNumberingLevels( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException - css::uno::Sequence< css::uno::Reference< container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > SAL_CALL getOutlineNumberingLevels( const css::lang::Locale& rLocale ); // XLocaleData4 virtual css::uno::Sequence< OUString > SAL_CALL getDateAcceptancePatterns( const css::lang::Locale& rLocale ) override; @@ -118,7 +118,7 @@ public: /// @throws css::uno::RuntimeException OUString SAL_CALL getIndexModuleByAlgorithm( const css::lang::Locale& rLocale, const OUString& algorithm ); /// @throws css::uno::RuntimeException - css::uno::Sequence< UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale ); + css::uno::Sequence< css::i18n::UnicodeScript > SAL_CALL getUnicodeScripts( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException css::uno::Sequence< OUString > SAL_CALL getFollowPageWords( const css::lang::Locale& rLocale ); /// @throws css::uno::RuntimeException @@ -162,7 +162,7 @@ private: }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_LOCALEDATA_HXX diff --git a/i18npool/inc/nativenumbersupplier.hxx b/i18npool/inc/nativenumbersupplier.hxx index b162c284bb0c..0fe10c4218d1 100644 --- a/i18npool/inc/nativenumbersupplier.hxx +++ b/i18npool/inc/nativenumbersupplier.hxx @@ -25,7 +25,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // ---------------------------------------------------- // class NativeNumberSupplierService @@ -71,7 +71,7 @@ private: bool useOffset; }; -} } } } +} #endif diff --git a/i18npool/inc/numtochar.hxx b/i18npool/inc/numtochar.hxx index f7dbd9207743..f53a5af713f8 100644 --- a/i18npool/inc/numtochar.hxx +++ b/i18npool/inc/numtochar.hxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_NUMTOCHAR( name ) \ class NumToChar##name : public transliteration_Numeric \ @@ -49,7 +49,7 @@ TRANSLITERATION_NUMTOCHAR(Halfwidth) #undef TRANSLITERATION_NUMTOCHAR -} } } } +} #endif // INCLUDED_I18NPOOL_INC_NUMTOCHAR_HXX diff --git a/i18npool/inc/numtotext_cjk.hxx b/i18npool/inc/numtotext_cjk.hxx index 56aeebed4aac..dc4918adc32e 100644 --- a/i18npool/inc/numtotext_cjk.hxx +++ b/i18npool/inc/numtotext_cjk.hxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_NUMTOTEXT_CJK( name ) \ class NumToText##name : public transliteration_Numeric \ @@ -64,7 +64,7 @@ TRANSLITERATION_NUMTOTEXT_CJK ( HangulCircledSyllable_ko ) #undef TRANSLITERATION_NUMTOTEXT -} } } } +} #endif // INCLUDED_I18NPOOL_INC_NUMTOTEXT_CJK_HXX diff --git a/i18npool/inc/ordinalsuffix.hxx b/i18npool/inc/ordinalsuffix.hxx index a7758911c375..61dd4128a59f 100644 --- a/i18npool/inc/ordinalsuffix.hxx +++ b/i18npool/inc/ordinalsuffix.hxx @@ -25,12 +25,11 @@ #include #include - -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class OrdinalSuffixService : public cppu::WeakImplHelper < - XOrdinalSuffix, + css::i18n::XOrdinalSuffix, css::lang::XServiceInfo > { @@ -47,7 +46,8 @@ class OrdinalSuffixService : public cppu::WeakImplHelper virtual css::uno::Sequence < OUString > SAL_CALL getSupportedServiceNames() override; }; -} } } } + +} #endif // INCLUDED_I18NPOOL_INC_ORDINALSUFFIX_HXX diff --git a/i18npool/inc/textToPronounce_zh.hxx b/i18npool/inc/textToPronounce_zh.hxx index fd880bc6e8d3..1a794fe7bbf6 100644 --- a/i18npool/inc/textToPronounce_zh.hxx +++ b/i18npool/inc/textToPronounce_zh.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class TextToPronounce_zh : public transliteration_Ignore { @@ -68,7 +68,7 @@ TRANSLITERATION_TextToPronounce_zh( TextToChuyin_zh_TW) #undef TRANSLITERATION_TextToPronounce_zh -} } } } +} #endif diff --git a/i18npool/inc/textconversion.hxx b/i18npool/inc/textconversion.hxx index cca19aec5ca3..8b5c9fa9a20e 100644 --- a/i18npool/inc/textconversion.hxx +++ b/i18npool/inc/textconversion.hxx @@ -28,7 +28,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class TextConversionService @@ -159,10 +159,7 @@ private: css::lang::Locale aLocale; }; -} // i18n -} // star -} // sun -} // com +} // i18npool #endif diff --git a/i18npool/inc/textconversionImpl.hxx b/i18npool/inc/textconversionImpl.hxx index b34429d6c253..43642ef97452 100644 --- a/i18npool/inc/textconversionImpl.hxx +++ b/i18npool/inc/textconversionImpl.hxx @@ -25,7 +25,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class TextConversion @@ -72,10 +72,7 @@ private: void SAL_CALL getLocaleSpecificTextConversion( const css::lang::Locale& rLocale ); }; -} // i18n -} // star -} // sun -} // com +} // i18npool #endif diff --git a/i18npool/inc/texttonum.hxx b/i18npool/inc/texttonum.hxx index ab570ec0b67e..b4980fdea848 100644 --- a/i18npool/inc/texttonum.hxx +++ b/i18npool/inc/texttonum.hxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_TEXTTONUM( name ) \ class TextToNum##name : public transliteration_Numeric \ @@ -46,7 +46,7 @@ TRANSLITERATION_TEXTTONUM(KanjiLongTraditional_ja_JP) #undef TRANSLITERATION_TEXTTONUM -} } } } +} #endif // INCLUDED_I18NPOOL_INC_TEXTTONUM_HXX diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx index 35c048efc951..c5e83b254885 100644 --- a/i18npool/inc/transliterationImpl.hxx +++ b/i18npool/inc/transliterationImpl.hxx @@ -26,7 +26,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class TransliterationImpl : public cppu::WeakImplHelper < @@ -44,8 +44,8 @@ public: virtual OUString SAL_CALL getName( ) override ; virtual sal_Int16 SAL_CALL getType( ) override ; - virtual void SAL_CALL loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override ; - virtual void SAL_CALL loadModuleNew( const css::uno::Sequence< TransliterationModulesNew >& modName, + virtual void SAL_CALL loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override ; + virtual void SAL_CALL loadModuleNew( const css::uno::Sequence< css::i18n::TransliterationModulesNew >& modName, const css::lang::Locale& rLocale ) override ; virtual void SAL_CALL loadModuleByImplName( const OUString& implName, const css::lang::Locale& rLocale ) override; @@ -87,7 +87,7 @@ private: sal_Int16 numCascade; bool caseignoreOnly; css::uno::Reference< css::uno::XComponentContext > mxContext; - css::uno::Reference< XLocaleData4 > mxLocaledata; + css::uno::Reference< css::i18n::XLocaleData4 > mxLocaledata; css::uno::Reference< css::i18n::XExtendedTransliteration > caseignore; /// @throws css::uno::RuntimeException @@ -106,7 +106,7 @@ private: sal_Int32 length, const sal_Int16 _nCascade); }; -} } } } +} #endif diff --git a/i18npool/inc/transliteration_Ignore.hxx b/i18npool/inc/transliteration_Ignore.hxx index 28929c746c06..b7179abae810 100644 --- a/i18npool/inc/transliteration_Ignore.hxx +++ b/i18npool/inc/transliteration_Ignore.hxx @@ -25,7 +25,7 @@ typedef sal_Unicode (*TransFunc)(const sal_Unicode); -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class transliteration_Ignore : public transliteration_commonclass { @@ -65,7 +65,7 @@ public: protected: TransFunc func; - oneToOneMapping *table; + i18nutil::oneToOneMapping *table; const Mapping *map; }; @@ -151,7 +151,7 @@ TRANSLITERATION_IGNORE(Size_ja_JP) #undef TRANSLITERATION_IGNORE -} } } } +} #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_IGNORE_HXX diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx index d8ae49cb3a7c..0a88f1c39d52 100644 --- a/i18npool/inc/transliteration_Numeric.hxx +++ b/i18npool/inc/transliteration_Numeric.hxx @@ -21,7 +21,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class transliteration_Numeric : public transliteration_commonclass { public: @@ -54,7 +54,7 @@ private: css::uno::Sequence< sal_Int32 >& offset ); }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_NUMERIC_HXX diff --git a/i18npool/inc/transliteration_OneToOne.hxx b/i18npool/inc/transliteration_OneToOne.hxx index dce55fb6ef8d..db797be4fe7d 100644 --- a/i18npool/inc/transliteration_OneToOne.hxx +++ b/i18npool/inc/transliteration_OneToOne.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { typedef sal_Unicode (*TransFunc)(const sal_Unicode); @@ -50,7 +50,7 @@ public: protected: TransFunc func; - oneToOneMapping *table; + i18nutil::oneToOneMapping *table; }; #define TRANSLITERATION_ONETOONE( name ) \ @@ -108,7 +108,7 @@ TRANSLITERATION_ONETOONE(smallToLarge_ja_JP) #undef TRANSLITERATION_ONETOONE -} } } } +} #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_ONETOONE_HXX diff --git a/i18npool/inc/transliteration_body.hxx b/i18npool/inc/transliteration_body.hxx index c39ff58db308..851d7cf65ebf 100644 --- a/i18npool/inc/transliteration_body.hxx +++ b/i18npool/inc/transliteration_body.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class Transliteration_body : public transliteration_commonclass { @@ -96,7 +96,7 @@ public: virtual OUString SAL_CALL transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 >& offset ) override; }; -} } } } +} #endif diff --git a/i18npool/inc/transliteration_caseignore.hxx b/i18npool/inc/transliteration_caseignore.hxx index dff9a94b7f63..4c028f40b528 100644 --- a/i18npool/inc/transliteration_caseignore.hxx +++ b/i18npool/inc/transliteration_caseignore.hxx @@ -21,7 +21,7 @@ #include "transliteration_body.hxx" -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class Transliteration_caseignore: public Transliteration_body { @@ -31,7 +31,7 @@ public: // Methods which are shared. sal_Int16 SAL_CALL getType() override; - void SAL_CALL loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override; + void SAL_CALL loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override; css::uno::Sequence< OUString > SAL_CALL transliterateRange( const OUString& str1, const OUString& str2 ) override; @@ -57,7 +57,7 @@ private: const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2); }; -} } } } +} #endif diff --git a/i18npool/inc/transliteration_commonclass.hxx b/i18npool/inc/transliteration_commonclass.hxx index 0a6249b33714..ebf3dc4b60a4 100644 --- a/i18npool/inc/transliteration_commonclass.hxx +++ b/i18npool/inc/transliteration_commonclass.hxx @@ -26,7 +26,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { class transliteration_commonclass : public cppu::WeakImplHelper< css::i18n::XExtendedTransliteration, @@ -38,10 +38,10 @@ public: // Methods which are shared. void SAL_CALL - loadModule( TransliterationModules modName, const css::lang::Locale& rLocale ) override; + loadModule( css::i18n::TransliterationModules modName, const css::lang::Locale& rLocale ) override; void SAL_CALL - loadModuleNew( const css::uno::Sequence< TransliterationModulesNew >& modName, const css::lang::Locale& rLocale ) override; + loadModuleNew( const css::uno::Sequence< css::i18n::TransliterationModulesNew >& modName, const css::lang::Locale& rLocale ) override; void SAL_CALL loadModuleByImplName( const OUString& implName, const css::lang::Locale& rLocale ) override; @@ -94,7 +94,7 @@ protected: bool useOffset; }; -} } } } +} #endif // INCLUDED_I18NPOOL_INC_TRANSLITERATION_COMMONCLASS_HXX diff --git a/i18npool/inc/wtt.h b/i18npool/inc/wtt.h index d09c3d03a5e9..2e248f04b75b 100644 --- a/i18npool/inc/wtt.h +++ b/i18npool/inc/wtt.h @@ -19,7 +19,7 @@ #ifndef INCLUDED_I18NPOOL_INC_WTT_H #define INCLUDED_I18NPOOL_INC_WTT_H -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { /* * Thai character type definition. @@ -61,7 +61,7 @@ static const sal_uInt16 thaiCT[128] = { // Thai character type #define getCharType(x) ((x >= 0x0E00 && x < 0x0E60) ? thaiCT[x - 0x0E00] : CT_NON) -} } } } +} #endif // INCLUDED_I18NPOOL_INC_WTT_H diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx index 552117ebe980..ef279ae051b5 100644 --- a/i18npool/inc/xdictionary.hxx +++ b/i18npool/inc/xdictionary.hxx @@ -24,7 +24,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define CACHE_MAX 32 // max cache structure number #define DEFAULT_SIZE 256 // for boundary size, to avoid alloc and release memory @@ -37,7 +37,7 @@ struct WordBreakCache { sal_Int32 size; // size of wordboundary WordBreakCache(); - bool equals(const sal_Unicode *str, Boundary const & boundary); // checking cached string + bool equals(const sal_Unicode *str, css::i18n::Boundary const & boundary); // checking cached string }; struct xdictionarydata @@ -63,29 +63,29 @@ private: xdictionarydata data; void initDictionaryData(const sal_Char *lang); - Boundary boundary; + css::i18n::Boundary boundary; bool japaneseWordBreak; public: xdictionary(const sal_Char *lang); ~xdictionary(); - Boundary nextWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType); - Boundary previousWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType); - Boundary const & getWordBoundary( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType, bool bDirection ); + css::i18n::Boundary nextWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType); + css::i18n::Boundary previousWord( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType); + css::i18n::Boundary const & getWordBoundary( const OUString& rText, sal_Int32 nPos, sal_Int16 wordType, bool bDirection ); void setJapaneseWordBreak(); private: WordBreakCache cache[CACHE_MAX]; OUString segmentCachedString; - Boundary segmentCachedBoundary; + css::i18n::Boundary segmentCachedBoundary; - bool seekSegment(const OUString& rText, sal_Int32 pos, Boundary& boundary); - WordBreakCache& getCache(const sal_Unicode *text, Boundary const & boundary); + bool seekSegment(const OUString& rText, sal_Int32 pos, css::i18n::Boundary& boundary); + WordBreakCache& getCache(const sal_Unicode *text, css::i18n::Boundary const & boundary); bool exists(const sal_uInt32 u); - sal_Int32 getLongestMatch(const sal_Unicode *text, sal_Int32 len); + sal_Int32 getLongestMatch(const sal_Unicode *text, sal_Int32 len); }; -} } } } +} #endif diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx index fba56fcec7ae..24ca264e708b 100644 --- a/i18npool/source/breakiterator/breakiteratorImpl.cxx +++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx @@ -24,10 +24,12 @@ #include #include +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { BreakIteratorImpl::BreakIteratorImpl( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ) { @@ -630,14 +632,14 @@ BreakIteratorImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_BreakIterator_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::BreakIteratorImpl(context)); + return cppu::acquire(new i18npool::BreakIteratorImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx index 5921a8774738..98115e6c1d32 100644 --- a/i18npool/source/breakiterator/breakiterator_cjk.cxx +++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx @@ -24,9 +24,10 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // ---------------------------------------------------- // class BreakIterator_CJK @@ -39,7 +40,7 @@ BreakIterator_CJK::BreakIterator_CJK() Boundary SAL_CALL BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos, - const lang::Locale& nLocale, sal_Int16 wordType) + const css::lang::Locale& nLocale, sal_Int16 wordType) { if (m_xDict) { result = m_xDict->previousWord(text, anyPos, wordType); @@ -56,7 +57,7 @@ BreakIterator_CJK::previousWord(const OUString& text, sal_Int32 anyPos, Boundary SAL_CALL BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos, - const lang::Locale& nLocale, sal_Int16 wordType) + const css::lang::Locale& nLocale, sal_Int16 wordType) { if (m_xDict) { result = m_xDict->nextWord(text, anyPos, wordType); @@ -73,7 +74,7 @@ BreakIterator_CJK::nextWord(const OUString& text, sal_Int32 anyPos, Boundary SAL_CALL BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos, - const lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection ) + const css::lang::Locale& nLocale, sal_Int16 wordType, sal_Bool bDirection ) { if (m_xDict) { result = m_xDict->getWordBoundary(text, anyPos, wordType, bDirection); @@ -87,7 +88,7 @@ BreakIterator_CJK::getWordBoundary( const OUString& text, sal_Int32 anyPos, LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak( const OUString& Text, sal_Int32 nStartPos, - const lang::Locale& /*rLocale*/, sal_Int32 /*nMinBreakPos*/, + const css::lang::Locale& /*rLocale*/, sal_Int32 /*nMinBreakPos*/, const LineBreakHyphenationOptions& /*hOptions*/, const LineBreakUserOptions& bOptions ) { @@ -109,7 +110,7 @@ LineBreakResults SAL_CALL BreakIterator_CJK::getLineBreak( return lbr; } -#define LOCALE(language, country) lang::Locale(language, country, OUString()) +#define LOCALE(language, country) css::lang::Locale(language, country, OUString()) // ---------------------------------------------------- // class BreakIterator_zh // ----------------------------------------------------; @@ -150,6 +151,6 @@ BreakIterator_ko::BreakIterator_ko() cBreakIterator = "com.sun.star.i18n.BreakIterator_ko"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/breakiterator/breakiterator_ctl.cxx b/i18npool/source/breakiterator/breakiterator_ctl.cxx index f641bc927ca1..e39966e66175 100644 --- a/i18npool/source/breakiterator/breakiterator_ctl.cxx +++ b/i18npool/source/breakiterator/breakiterator_ctl.cxx @@ -21,10 +21,12 @@ #include #include +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { /** * Constructor. @@ -125,6 +127,6 @@ LineBreakResults SAL_CALL BreakIterator_CTL::getLineBreak( return lbr; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/breakiterator/breakiterator_th.cxx b/i18npool/source/breakiterator/breakiterator_th.cxx index b658dbdde0e1..66e2827f3ac2 100644 --- a/i18npool/source/breakiterator/breakiterator_th.cxx +++ b/i18npool/source/breakiterator/breakiterator_th.cxx @@ -26,7 +26,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class Breakiterator_th @@ -146,6 +146,6 @@ void SAL_CALL BreakIterator_th::makeIndex(const OUString& Text, sal_Int32 const } } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx index 3e31c3606005..bd9d09a34afc 100644 --- a/i18npool/source/breakiterator/breakiterator_unicode.cxx +++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx @@ -35,9 +35,10 @@ extern const char OpenOffice_dat[]; U_CDECL_END using namespace ::com::sun::star; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // Cache map of breakiterators, stores state information so has to be // thread_local. @@ -585,14 +586,14 @@ BreakIterator_Unicode::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_BreakIterator_Unicode_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::BreakIterator_Unicode()); + return cppu::acquire(new i18npool::BreakIterator_Unicode()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx index 90e866426d57..5653021fc13a 100644 --- a/i18npool/source/breakiterator/xdictionary.cxx +++ b/i18npool/source/breakiterator/xdictionary.cxx @@ -29,7 +29,9 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +using namespace com::sun::star::i18n; + +namespace i18npool { #ifdef DICT_JA_ZH_IN_DATAFILE @@ -198,7 +200,7 @@ bool xdictionary::exists(const sal_uInt32 c) // 0x1FFF is the hardcoded limit in gendict for data.existMarks bool exist = data.existMark && (c>>3) < 0x1FFF && (data.existMark[c>>3] & (1<<(c&0x07))) != 0; if (!exist && japaneseWordBreak) - return BreakIteratorImpl::getScriptClass(c) == ScriptType::ASIAN; + return BreakIteratorImpl::getScriptClass(c) == css::i18n::ScriptType::ASIAN; else return exist; } @@ -474,6 +476,6 @@ Boundary const & xdictionary::getWordBoundary(const OUString& rText, sal_Int32 a return boundary; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx index d6820155b38c..dbb95fd7489f 100644 --- a/i18npool/source/calendar/calendarImpl.cxx +++ b/i18npool/source/calendar/calendarImpl.cxx @@ -23,9 +23,10 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define ERROR RuntimeException() @@ -348,6 +349,6 @@ CalendarImpl::getSupportedServiceNames() return aRet; } -}}}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx index 78fd7457927c..f89f5fa046e3 100644 --- a/i18npool/source/calendar/calendar_gregorian.cxx +++ b/i18npool/source/calendar/calendar_gregorian.cxx @@ -122,10 +122,11 @@ static void debug_i18n_cal_dump( const ::icu::Calendar & r ) using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define ERROR RuntimeException() @@ -989,6 +990,6 @@ Calendar_gregorian::getSupportedServiceNames() return aRet; } -}}}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/calendar/calendar_hijri.cxx b/i18npool/source/calendar/calendar_hijri.cxx index eeabf6d47472..ae8f78fd38a6 100644 --- a/i18npool/source/calendar/calendar_hijri.cxx +++ b/i18npool/source/calendar/calendar_hijri.cxx @@ -25,10 +25,11 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; +using namespace ::com::sun::star::i18n; #define GREGORIAN_CROSSOVER 2299161 -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // not used //static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call. @@ -327,6 +328,6 @@ Calendar_hijri::getJulianDay(sal_Int32 day, sal_Int32 month, sal_Int32 year) return (double) intgr; } -}}}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx index f9130450895e..4e05bbba9868 100644 --- a/i18npool/source/calendar/calendar_jewish.cxx +++ b/i18npool/source/calendar/calendar_jewish.cxx @@ -24,9 +24,10 @@ #include "calendar_jewish.hxx" using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // not used //static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call. @@ -292,6 +293,6 @@ Calendar_jewish::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNa return Calendar_gregorian::getDisplayString(nCalendarDisplayCode, nNativeNumberMode ); } -}}}} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx index a4582897bb9a..4f7ee6cfb279 100644 --- a/i18npool/source/characterclassification/cclass_unicode.cxx +++ b/i18npool/source/characterclassification/cclass_unicode.cxx @@ -29,10 +29,12 @@ #include #include +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // class cclass_Unicode // ----------------------------------------------------; @@ -291,14 +293,14 @@ Sequence< OUString > SAL_CALL cclass_Unicode::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_CharacterClassification_Unicode_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::cclass_Unicode(context)); + return cppu::acquire(new i18npool::cclass_Unicode(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/characterclassification/cclass_unicode_parser.cxx b/i18npool/source/characterclassification/cclass_unicode_parser.cxx index 2a3616302cc3..dc3d0775586d 100644 --- a/i18npool/source/characterclassification/cclass_unicode_parser.cxx +++ b/i18npool/source/characterclassification/cclass_unicode_parser.cxx @@ -33,11 +33,12 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; #define TOKEN_DIGIT_FLAGS (ParserFlags::CHAR_VALUE | ParserFlags::VALUE | ParserFlags::VALUE_EXP | ParserFlags::VALUE_EXP_VALUE | ParserFlags::VALUE_DIGIT) -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // Default identifier/name specification is [A-Za-z_][A-Za-z0-9_]* @@ -592,7 +593,6 @@ ParserFlags cclass_Unicode::getFlagsExtended(sal_uInt32 const c) return ParserFlags::VALUE; else if ( c == cDecimalSep ) return ParserFlags::CHAR_VALUE | ParserFlags::VALUE; - using namespace i18n; bool bStart = (eState == ssGetChar || eState == ssGetWordFirstChar || eState == ssRewindFromValue || eState == ssIgnoreLeadingInRewind); sal_Int32 nTypes = (bStart ? nStartTypes : nContTypes); @@ -690,7 +690,6 @@ ParserFlags cclass_Unicode::getContCharsFlags( sal_Unicode c ) void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32 nPos, sal_Int32 nTokenType ) { assert(r.LeadingWhiteSpace == 0); - using namespace i18n; eState = ssGetChar; //! All the variables below (plus ParseResult) have to be resetted on ssRewindFromValue! @@ -1035,6 +1034,6 @@ void cclass_Unicode::parseText( ParseResult& r, const OUString& rText, sal_Int32 } } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx index 03566456cd0c..849251e65213 100644 --- a/i18npool/source/characterclassification/characterclassificationImpl.cxx +++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx @@ -23,12 +23,13 @@ #include using namespace com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { CharacterClassificationImpl::CharacterClassificationImpl( - const Reference < uno::XComponentContext >& rxContext ) : m_xContext( rxContext ) + const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ) { if (createLocaleSpecificCharacterClassification("Unicode", Locale())) xUCI = cachedItem->xCI; @@ -205,14 +206,14 @@ CharacterClassificationImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_CharacterClassification_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::CharacterClassificationImpl(context)); + return cppu::acquire(new i18npool::CharacterClassificationImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx index ccb4d9a3370f..1f48d61c7824 100644 --- a/i18npool/source/collator/chaptercollator.cxx +++ b/i18npool/source/collator/chaptercollator.cxx @@ -27,6 +27,8 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::i18n; +namespace i18npool { + ChapterCollator::ChapterCollator( const Reference < XComponentContext >& rxContext ) : CollatorImpl(rxContext) { cclass = CharacterClassification::create( rxContext ); @@ -91,4 +93,5 @@ ChapterCollator::getSupportedServiceNames() return aRet; } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx index 022071a9b904..258ee9f6ec66 100644 --- a/i18npool/source/collator/collatorImpl.cxx +++ b/i18npool/source/collator/collatorImpl.cxx @@ -26,10 +26,11 @@ #include using namespace com::sun::star; +using namespace com::sun::star::i18n; using namespace com::sun::star::lang; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { CollatorImpl::CollatorImpl( const Reference < XComponentContext >& rxContext ) : m_xContext(rxContext) { @@ -225,14 +226,14 @@ CollatorImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_Collator_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::CollatorImpl(context)); + return cppu::acquire(new i18npool::CollatorImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx index 21c7deee2860..fae276818b3c 100644 --- a/i18npool/source/collator/collator_unicode.cxx +++ b/i18npool/source/collator/collator_unicode.cxx @@ -30,10 +30,11 @@ #include using namespace ::com::sun::star; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { Collator_Unicode::Collator_Unicode() { @@ -406,6 +407,6 @@ Collator_Unicode::getSupportedServiceNames() return aRet; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx index cd2e9fecac3a..f898d6fde3e3 100644 --- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx +++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx @@ -63,9 +63,10 @@ using namespace com::sun::star; using namespace com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const sal_Unicode table_Alphabet_ar[] = { 0x0623, 0x0628, 0x062A, 0x062B, 0x062C, 0x062D, 0x062E, @@ -1061,14 +1062,14 @@ Sequence< OUString > DefaultNumberingProvider::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_text_DefaultNumberingProvider_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::DefaultNumberingProvider(context)); + return cppu::acquire(new i18npool::DefaultNumberingProvider(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx index 9b6d938c987b..d467b5b708b9 100644 --- a/i18npool/source/indexentry/indexentrysupplier.cxx +++ b/i18npool/source/indexentry/indexentrysupplier.cxx @@ -26,7 +26,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { IndexEntrySupplier::IndexEntrySupplier( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ) { @@ -190,6 +190,6 @@ IndexEntrySupplier::getSupportedServiceNames() return aRet; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx index a6594c381b65..6f06eb44bed5 100644 --- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #ifndef DISABLE_DYNLOADING @@ -204,6 +204,8 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry, } return OUString(); } -} } } } + +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx index ba7aa0fccfb4..5bc149041a40 100644 --- a/i18npool/source/indexentry/indexentrysupplier_common.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx @@ -25,7 +25,7 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { IndexEntrySupplier_Common::IndexEntrySupplier_Common(const Reference < uno::XComponentContext >& rxContext) { @@ -133,6 +133,6 @@ IndexEntrySupplier_Common::getSupportedServiceNames() return aRet; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx index d0673a9d50ed..cc5db18053be 100644 --- a/i18npool/source/indexentry/indexentrysupplier_default.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx @@ -22,10 +22,12 @@ #include #include +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { IndexEntrySupplier_Unicode::IndexEntrySupplier_Unicode( const css::uno::Reference < css::uno::XComponentContext >& rxContext ) : @@ -280,6 +282,6 @@ void Index::init(const lang::Locale &rLocale, const OUString& algorithm) table_count = j; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx index d9f6893ab6e0..417fa47306cd 100644 --- a/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_ja_phonetic.cxx @@ -23,10 +23,12 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +using namespace ::com::sun::star::i18n; + +namespace i18npool { OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUString& rIndexEntry, - const lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ ) + const css::lang::Locale& /*rLocale*/, const OUString& /*rSortAlgorithm*/ ) { sal_Unicode ch=rIndexEntry.toChar(); sal_uInt16 first = idx[ ch >> 8 ]; @@ -40,14 +42,14 @@ OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexCharacter( const OUStr } OUString SAL_CALL IndexEntrySupplier_ja_phonetic::getIndexKey( const OUString& IndexEntry, - const OUString& PhoneticEntry, const lang::Locale& rLocale ) + const OUString& PhoneticEntry, const css::lang::Locale& rLocale ) { return getIndexCharacter( PhoneticEntry.isEmpty() ? IndexEntry : PhoneticEntry , rLocale, OUString()); } sal_Int16 SAL_CALL IndexEntrySupplier_ja_phonetic::compareIndexEntry( - const OUString& IndexEntry1, const OUString& PhoneticEntry1, const lang::Locale& rLocale1, - const OUString& IndexEntry2, const OUString& PhoneticEntry2, const lang::Locale& rLocale2 ) + const OUString& IndexEntry1, const OUString& PhoneticEntry1, const css::lang::Locale& rLocale1, + const OUString& IndexEntry2, const OUString& PhoneticEntry2, const css::lang::Locale& rLocale2 ) { sal_Int16 result = sal::static_int_cast( collator->compareString( IndexEntrySupplier_ja_phonetic::getIndexKey(IndexEntry1, PhoneticEntry1, rLocale1), @@ -88,6 +90,6 @@ sal_Bool SAL_CALL IndexEntrySupplier_ja_phonetic_alphanumeric_last_by_consonant: return collator->loadCollatorAlgorithm(last, rLocale, collatorOptions) == 0; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx index 5bb3ac320d98..24964521ae1e 100644 --- a/i18npool/source/inputchecker/inputsequencechecker.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker.cxx @@ -24,9 +24,10 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { InputSequenceCheckerImpl::InputSequenceCheckerImpl( const Reference < XComponentContext >& rxContext ) : m_xContext( rxContext ) { @@ -118,13 +119,13 @@ InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char const * rLanguage) return cachedItem->xISC; } - Reference < uno::XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext( + Reference < XInterface > xI = m_xContext->getServiceManager()->createInstanceWithContext( "com.sun.star.i18n.InputSequenceChecker_" + OUString::createFromAscii(rLanguage), m_xContext); if ( xI.is() ) { - Reference< XExtendedInputSequenceChecker > xISC( xI, uno::UNO_QUERY ); + Reference< XExtendedInputSequenceChecker > xISC( xI, UNO_QUERY ); if (xISC.is()) { lookupTable.push_back(cachedItem = new lookupTableItem(rLanguage, xISC)); return cachedItem->xISC; @@ -153,14 +154,14 @@ InputSequenceCheckerImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_InputSequenceChecker_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::InputSequenceCheckerImpl(context)); + return cppu::acquire(new i18npool::InputSequenceCheckerImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx index 52f8fae5a9bb..4e65a655ac7f 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_hi.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_hi.cxx @@ -21,10 +21,7 @@ #include -namespace com { -namespace sun { -namespace star { -namespace i18n { +namespace i18npool { InputSequenceChecker_hi::InputSequenceChecker_hi() : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_hi") @@ -132,6 +129,6 @@ InputSequenceChecker_hi::correctInputSequence(OUString& Text, nStartPos=Text.getLength(); return nStartPos; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/inputchecker/inputsequencechecker_th.cxx b/i18npool/source/inputchecker/inputsequencechecker_th.cxx index 660f78be0998..bc2fbe239808 100644 --- a/i18npool/source/inputchecker/inputsequencechecker_th.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker_th.cxx @@ -22,7 +22,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { InputSequenceChecker_th::InputSequenceChecker_th() : InputSequenceCheckerImpl("com.sun.star.i18n.InputSequenceChecker_th") @@ -139,6 +139,6 @@ http://www.openoffice.org/issues/show_bug.cgi?id=42661 return nStartPos; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index 2660f7fae5c1..9c8559046fbd 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -347,6 +347,7 @@ struct LocaleDataLookupTableItem } }; +namespace i18npool { // static Sequence< CalendarItem > LocaleDataImpl::downcastCalendarItems( const Sequence< CalendarItem2 > & rCi ) @@ -1594,12 +1595,14 @@ OUString LocaleDataImpl::getFirstLocaleServiceName( const css::lang::Locale & rL return aVec; } +} + extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_LocaleDataImpl_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new LocaleDataImpl()); + return cppu::acquire(new i18npool::LocaleDataImpl()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/nativenumber/data/numberchar.h b/i18npool/source/nativenumber/data/numberchar.h index 18974acae080..91cd3dcae828 100644 --- a/i18npool/source/nativenumber/data/numberchar.h +++ b/i18npool/source/nativenumber/data/numberchar.h @@ -20,7 +20,7 @@ #ifndef INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H #define INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const sal_Int16 NumberChar_HalfWidth = 0; static const sal_Int16 NumberChar_FullWidth = 1; @@ -264,7 +264,7 @@ static const sal_Unicode MultiplierChar_7_CJK[][ExponentCount_7_CJK] = { {0x4EAC, 0x5146, 0x5104, 0x842C, 0x9621, 0x767E, 0x62FE} // Japanese Traditional }; -} } } } +} #endif // INCLUDED_I18NPOOL_SOURCE_NATIVENUMBER_DATA_NUMBERCHAR_H diff --git a/i18npool/source/nativenumber/nativenumbersupplier.cxx b/i18npool/source/nativenumber/nativenumbersupplier.cxx index aeb3e3caca97..be9ab74a81aa 100644 --- a/i18npool/source/nativenumber/nativenumbersupplier.cxx +++ b/i18npool/source/nativenumber/nativenumbersupplier.cxx @@ -28,6 +28,7 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; typedef struct { @@ -55,7 +56,7 @@ typedef struct { #define NUMBER_OMIT_ONE_67 (NUMBER_OMIT_ONE_6|NUMBER_OMIT_ONE_7) #define NUMBER_OMIT_ZERO_ONE_67 ( NUMBER_OMIT_ZERO|NUMBER_OMIT_ONE_67 ) -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OUString SAL_CALL getHebrewNativeNumberString(const OUString& aNumberString, bool useGeresh); @@ -1051,14 +1052,14 @@ NativeNumberSupplierService::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_NativeNumberSupplier_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::NativeNumberSupplierService()); + return cppu::acquire(new i18npool::NativeNumberSupplierService()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx index 4543bf2004b0..bb821d670e48 100644 --- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx +++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx @@ -33,7 +33,7 @@ using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::uno; using namespace ::com::sun::star; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OrdinalSuffixService::OrdinalSuffixService() @@ -152,14 +152,14 @@ Sequence< OUString > SAL_CALL OrdinalSuffixService::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_OrdinalSuffix_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::OrdinalSuffixService()); + return cppu::acquire(new i18npool::OrdinalSuffixService()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx index d08d33b7b7e3..ce73552f04f4 100644 --- a/i18npool/source/registerservices/registerservices.cxx +++ b/i18npool/source/registerservices/registerservices.cxx @@ -60,6 +60,8 @@ #include using namespace ::com::sun::star; +using namespace ::com::sun::star::i18n; +using namespace i18npool; #define IMPL_CREATEINSTANCE( ImplName ) \ uno::Reference< uno::XInterface > \ @@ -94,8 +96,6 @@ typedef uno::Reference< &implName##_CreateInstance } -using namespace i18n; - // At least for iOS it doesn't hurt if we have lots of functions here // generated by these lovely macros that get compiled, but then no // references to them thanks to the WITH_LOCALE ifdefs for the diff --git a/i18npool/source/textconversion/genconv_dict.cxx b/i18npool/source/textconversion/genconv_dict.cxx index 13c234670af3..91836a392864 100644 --- a/i18npool/source/textconversion/genconv_dict.cxx +++ b/i18npool/source/textconversion/genconv_dict.cxx @@ -117,7 +117,7 @@ void make_hhc_char(FILE *sfp, FILE *cfp) } fprintf(cfp, "\n};\n"); - fprintf(cfp, "\nstatic const com::sun::star::i18n::Hangul_Index Hangul2HanjaIndex[] = {\n"); + fprintf(cfp, "\nstatic const i18npool::Hangul_Index Hangul2HanjaIndex[] = {\n"); for (i = 0; i < count; i++) fprintf(cfp, "\t{ 0x%04x, 0x%04x, 0x%02x },\n", Hangul2HanjaData[i][0], @@ -164,8 +164,8 @@ void make_hhc_char(FILE *sfp, FILE *cfp) // create function to return arrays fprintf (cfp, "\tconst sal_Unicode* getHangul2HanjaData() { return Hangul2HanjaData; }\n"); - fprintf (cfp, "\tconst com::sun::star::i18n::Hangul_Index* getHangul2HanjaIndex() { return Hangul2HanjaIndex; }\n"); - fprintf (cfp, "\tsal_Int16 getHangul2HanjaIndexCount() { return sizeof(Hangul2HanjaIndex) / sizeof(com::sun::star::i18n::Hangul_Index); }\n"); + fprintf (cfp, "\tconst i18npool::Hangul_Index* getHangul2HanjaIndex() { return Hangul2HanjaIndex; }\n"); + fprintf (cfp, "\tsal_Int16 getHangul2HanjaIndexCount() { return sizeof(Hangul2HanjaIndex) / sizeof(i18npool::Hangul_Index); }\n"); fprintf (cfp, "\tconst sal_uInt16* getHanja2HangulIndex() { return Hanja2HangulIndex; }\n"); fprintf (cfp, "\tconst sal_Unicode* getHanja2HangulData() { return Hanja2HangulData; }\n"); } diff --git a/i18npool/source/textconversion/textconversion.cxx b/i18npool/source/textconversion/textconversion.cxx index 7421c5dce776..002ba056cdb1 100644 --- a/i18npool/source/textconversion/textconversion.cxx +++ b/i18npool/source/textconversion/textconversion.cxx @@ -23,7 +23,7 @@ using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #ifndef DISABLE_DYNLOADING @@ -89,6 +89,6 @@ TextConversionService::getSupportedServiceNames() return aRet; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx index 4451a291249d..2237fef42820 100644 --- a/i18npool/source/textconversion/textconversionImpl.cxx +++ b/i18npool/source/textconversion/textconversionImpl.cxx @@ -24,9 +24,10 @@ #include using namespace com::sun::star::lang; +using namespace ::com::sun::star::i18n; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { TextConversionResult SAL_CALL TextConversionImpl::getConversions( const OUString& aText, sal_Int32 nStartPos, sal_Int32 nLength, @@ -121,14 +122,14 @@ TextConversionImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_TextConversion_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::TextConversionImpl(context)); + return cppu::acquire(new i18npool::TextConversionImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/textconversion/textconversion_ko.cxx b/i18npool/source/textconversion/textconversion_ko.cxx index 645acc93144c..23fabd706df1 100644 --- a/i18npool/source/textconversion/textconversion_ko.cxx +++ b/i18npool/source/textconversion/textconversion_ko.cxx @@ -35,7 +35,7 @@ using namespace com::sun::star::linguistic2; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define SCRIPT_OTHERS 0 #define SCRIPT_HANJA 1 @@ -348,6 +348,6 @@ TextConversion_ko::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 / return true; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx index ae08f5221e3d..f9a938137580 100644 --- a/i18npool/source/textconversion/textconversion_zh.cxx +++ b/i18npool/source/textconversion/textconversion_zh.cxx @@ -35,7 +35,7 @@ using namespace com::sun::star::linguistic2; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { TextConversion_zh::TextConversion_zh( const Reference < XComponentContext >& xContext ) : TextConversionService("com.sun.star.i18n.TextConversion_zh") @@ -327,6 +327,6 @@ TextConversion_zh::interactiveConversion( const Locale& /*rLocale*/, sal_Int16 / return false; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/chartonum.cxx b/i18npool/source/transliteration/chartonum.cxx index f719d82d457e..80fae61928bf 100644 --- a/i18npool/source/transliteration/chartonum.cxx +++ b/i18npool/source/transliteration/chartonum.cxx @@ -23,7 +23,7 @@ using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_CHARTONUM( name ) \ CharToNum##name::CharToNum##name() \ @@ -50,6 +50,6 @@ TRANSLITERATION_CHARTONUM( _th) #undef TRANSLITERATION_CHARTONUM -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx index cc90fd84e3ec..267ec26a0b60 100644 --- a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx +++ b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx @@ -25,14 +25,15 @@ #include using namespace com::sun::star::uno; +using namespace com::sun::star::i18n; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { fullwidthToHalfwidth::fullwidthToHalfwidth() { func = nullptr; - table = &widthfolding::getfull2halfTable(); + table = &i18nutil::widthfolding::getfull2halfTable(); transliterationName = "fullwidthToHalfwidth"; implementationName = "com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH"; } @@ -46,7 +47,7 @@ OUString SAL_CALL fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) { // Decomposition: GA --> KA + voice-mark - const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); + const OUString& newStr = i18nutil::widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); // One to One mapping useOffset = false; @@ -58,7 +59,7 @@ fullwidthToHalfwidth::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Unicode SAL_CALL fullwidthToHalfwidth::transliterateChar2Char( sal_Unicode inChar) { - sal_Unicode newChar = widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); + sal_Unicode newChar = i18nutil::widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); if (newChar == 0xFFFF) throw MultipleCharsOutputException(); return transliteration_OneToOne::transliterateChar2Char(inChar); @@ -67,7 +68,7 @@ fullwidthToHalfwidth::transliterateChar2Char( sal_Unicode inChar) fullwidthKatakanaToHalfwidthKatakana::fullwidthKatakanaToHalfwidthKatakana() { func = nullptr; - table = &widthfolding::getfullKana2halfKanaTable(); + table = &i18nutil::widthfolding::getfullKana2halfKanaTable(); transliterationName = "fullwidthKatakanaToHalfwidthKatakana"; implementationName = "com.sun.star.i18n.Transliteration.FULLWIDTHKATAKANA_HALFWIDTHKATAKANA"; } @@ -79,7 +80,7 @@ OUString SAL_CALL fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) { // Decomposition: GA --> KA + voice-mark - const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); + const OUString& newStr = i18nutil::widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); // One to One mapping useOffset = false; @@ -91,7 +92,7 @@ fullwidthKatakanaToHalfwidthKatakana::transliterate( const OUString& inStr, sal_ sal_Unicode SAL_CALL fullwidthKatakanaToHalfwidthKatakana::transliterateChar2Char( sal_Unicode inChar ) { - sal_Unicode newChar = widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); + sal_Unicode newChar = i18nutil::widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); if (newChar == 0xFFFF) throw MultipleCharsOutputException(); return transliteration_OneToOne::transliterateChar2Char(inChar); @@ -100,7 +101,7 @@ fullwidthKatakanaToHalfwidthKatakana::transliterateChar2Char( sal_Unicode inChar fullwidthToHalfwidthLikeASC::fullwidthToHalfwidthLikeASC() { func = nullptr; - table = &widthfolding::getfull2halfTableForASC(); + table = &i18nutil::widthfolding::getfull2halfTableForASC(); transliterationName = "fullwidthToHalfwidthLikeASC"; implementationName = "com.sun.star.i18n.Transliteration.FULLWIDTH_HALFWIDTH_LIKE_ASC"; } @@ -112,7 +113,7 @@ OUString SAL_CALL fullwidthToHalfwidthLikeASC::transliterate( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) { // Decomposition: GA --> KA + voice-mark - const OUString& newStr = widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); + const OUString& newStr = i18nutil::widthfolding::decompose_ja_voiced_sound_marks (inStr, startPos, nCount, offset, useOffset); // One to One mapping useOffset = false; @@ -125,12 +126,12 @@ fullwidthToHalfwidthLikeASC::transliterate( const OUString& inStr, sal_Int32 sta sal_Unicode SAL_CALL fullwidthToHalfwidthLikeASC::transliterateChar2Char( sal_Unicode inChar ) { - sal_Unicode newChar = widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); + sal_Unicode newChar = i18nutil::widthfolding::decompose_ja_voiced_sound_marksChar2Char (inChar); if (newChar == 0xFFFF) throw MultipleCharsOutputException(); return transliteration_OneToOne::transliterateChar2Char(inChar); } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/halfwidthToFullwidth.cxx b/i18npool/source/transliteration/halfwidthToFullwidth.cxx index c6aff7aa4870..14b23ee95707 100644 --- a/i18npool/source/transliteration/halfwidthToFullwidth.cxx +++ b/i18npool/source/transliteration/halfwidthToFullwidth.cxx @@ -25,12 +25,12 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { halfwidthToFullwidth::halfwidthToFullwidth() { func = nullptr; - table = &widthfolding::gethalf2fullTable(); + table = &i18nutil::widthfolding::gethalf2fullTable(); transliterationName = "halfwidthToFullwidth"; implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH"; } @@ -45,13 +45,13 @@ halfwidthToFullwidth::transliterate( const OUString& inStr, sal_Int32 startPos, useOffset = _useOffset; // Composition: KA + voice-mark --> GA - return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset ); + return i18nutil::widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset ); } halfwidthKatakanaToFullwidthKatakana::halfwidthKatakanaToFullwidthKatakana() { func = nullptr; - table = &widthfolding::gethalfKana2fullKanaTable(); + table = &i18nutil::widthfolding::gethalfKana2fullKanaTable(); transliterationName = "halfwidthKatakanaToFullwidthKatakana"; implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTHKATAKANA_FULLWIDTHKATAKANA"; } @@ -66,13 +66,13 @@ halfwidthKatakanaToFullwidthKatakana::transliterate( const OUString& inStr, sal_ useOffset = _useOffset; // Composition: KA + voice-mark --> GA - return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset ); + return i18nutil::widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset ); } halfwidthToFullwidthLikeJIS::halfwidthToFullwidthLikeJIS() { func = nullptr; - table = &widthfolding::gethalf2fullTableForJIS(); + table = &i18nutil::widthfolding::gethalf2fullTableForJIS(); transliterationName = "halfwidthToFullwidthLikeJIS"; implementationName = "com.sun.star.i18n.Transliteration.HALFWIDTH_FULLWIDTH_LIKE_JIS"; } @@ -87,10 +87,10 @@ halfwidthToFullwidthLikeJIS::transliterate( const OUString& inStr, sal_Int32 sta useOffset = _useOffset; // Composition: KA + voice-mark --> GA - return widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset, WIDTHFOLDNIG_DONT_USE_COMBINED_VU ); + return i18nutil::widthfolding::compose_ja_voiced_sound_marks ( newStr, 0, newStr.getLength(), offset, _useOffset, WIDTHFOLDNIG_DONT_USE_COMBINED_VU ); } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/hiraganaToKatakana.cxx b/i18npool/source/transliteration/hiraganaToKatakana.cxx index 9cbc41c45a75..439ec58365e2 100644 --- a/i18npool/source/transliteration/hiraganaToKatakana.cxx +++ b/i18npool/source/transliteration/hiraganaToKatakana.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // see http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F) // see http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF) @@ -42,6 +42,6 @@ hiraganaToKatakana::hiraganaToKatakana() implementationName = "com.sun.star.i18n.Transliteration.HIRAGANA_KATAKANA"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx index 4fd6462f68e6..44646ac14f97 100644 --- a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx @@ -21,7 +21,7 @@ using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const transliteration_Ignore::Mapping BaFa[] = { { 0x30F4, 0x30A1, 0x30D0, true }, @@ -40,6 +40,6 @@ ignoreBaFa_ja_JP::ignoreBaFa_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreBaFa_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx index 90142c32c2fc..0ddfe645abaa 100644 --- a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx +++ b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx @@ -12,7 +12,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { ignoreDiacritics_CTL::ignoreDiacritics_CTL() { @@ -93,6 +93,6 @@ ignoreDiacritics_CTL::folding(const OUString& rInStr, sal_Int32 nStartPos, } } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx index 46ccb91982e1..c4b58821ca13 100644 --- a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const transliteration_Ignore::Mapping HyuByu[] = { { 0x30D5, 0x30E5, 0x30D2, false }, @@ -41,6 +41,6 @@ ignoreHyuByu_ja_JP::ignoreHyuByu_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreHyuByu_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx index ac7630c3facf..c23555a0b2b0 100644 --- a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx @@ -24,9 +24,9 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -OneToOneMappingTable_t const IandE[] = { +i18nutil::OneToOneMappingTable_t const IandE[] = { { 0x30A3, 0x0000 }, // KATAKANA LETTER SMALL I { 0x30A4, 0x0000 }, // KATAKANA LETTER I { 0x30A7, 0x0000 }, // KATAKANA LETTER SMALL E @@ -86,7 +86,7 @@ ignoreIandEfollowedByYa_ja_JP::folding( const OUString& inStr, sal_Int32 startPo sal_Unicode currentChar; // One to one mapping - oneToOneMapping aTable(IandE, sizeof(IandE)); + i18nutil::oneToOneMapping aTable(IandE, sizeof(IandE)); // Translation while (-- nCount > 0) { @@ -128,6 +128,6 @@ ignoreIandEfollowedByYa_ja_JP::folding( const OUString& inStr, sal_Int32 startPo return OUString(newStr, SAL_NO_ACQUIRE); // take ownership } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx index 9935d53590e4..5777b9fc6f2b 100644 --- a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx @@ -25,9 +25,9 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -OneToOneMappingTable_t const ignoreIterationMark_ja_JP_mappingTable[] = { +i18nutil::OneToOneMappingTable_t const ignoreIterationMark_ja_JP_mappingTable[] = { { 0x3046, 0x3094 }, // HIRAGANA LETTER U --> HIRAGANA LETTER VU { 0x304B, 0x304C }, // HIRAGANA LETTER KA --> HIRAGANA LETTER GA { 0x304D, 0x304E }, // HIRAGANA LETTER KI --> HIRAGANA LETTER GI @@ -82,7 +82,7 @@ OneToOneMappingTable_t const ignoreIterationMark_ja_JP_mappingTable[] = { OUString SAL_CALL ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) { - oneToOneMapping aTable(ignoreIterationMark_ja_JP_mappingTable, sizeof(ignoreIterationMark_ja_JP_mappingTable)); + i18nutil::oneToOneMapping aTable(ignoreIterationMark_ja_JP_mappingTable, sizeof(ignoreIterationMark_ja_JP_mappingTable)); // Create a string buffer which can hold nCount + 1 characters. // The reference count is 1 now. @@ -139,6 +139,6 @@ ignoreIterationMark_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, s } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreKana.cxx b/i18npool/source/transliteration/ignoreKana.cxx index f73ebadabb61..2217aed56b09 100644 --- a/i18npool/source/transliteration/ignoreKana.cxx +++ b/i18npool/source/transliteration/ignoreKana.cxx @@ -26,7 +26,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OUString SAL_CALL ignoreKana::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) @@ -51,14 +51,14 @@ ignoreKana::transliterateChar2Char( sal_Unicode inChar) return t1->transliterateChar2Char(inChar); } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_Transliteration_IGNORE_KANA_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::ignoreKana()); + return cppu::acquire(new i18npool::ignoreKana()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreKashida_CTL.cxx b/i18npool/source/transliteration/ignoreKashida_CTL.cxx index cd225bdaa8b6..20b6c0f858da 100644 --- a/i18npool/source/transliteration/ignoreKashida_CTL.cxx +++ b/i18npool/source/transliteration/ignoreKashida_CTL.cxx @@ -9,7 +9,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Unicode ignoreKashida_CTL_translator (const sal_Unicode c) @@ -29,6 +29,6 @@ ignoreKashida_CTL::ignoreKashida_CTL() implementationName = "com.sun.star.i18n.Transliteration.ignoreKashida_CTL"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx index f057876a7dd9..9750b522f7a7 100644 --- a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OUString SAL_CALL ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) @@ -86,6 +86,6 @@ ignoreKiKuFollowedBySa_ja_JP::folding( const OUString& inStr, sal_Int32 startPos return OUString(newStr, SAL_NO_ACQUIRE); // take ownership } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx index aa5bbafffb87..eb7af6ef5779 100644 --- a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Unicode ignoreMiddleDot_ja_JP_translator (const sal_Unicode c) @@ -42,6 +42,6 @@ ignoreMiddleDot_ja_JP::ignoreMiddleDot_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreMiddleDot_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx index 4b672b4ec73c..823d43ac4cc0 100644 --- a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Unicode ignoreMinusSign_ja_JP_translator (const sal_Unicode c) @@ -49,6 +49,6 @@ ignoreMinusSign_ja_JP::ignoreMinusSign_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreMinusSign_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx index 7c37be6e36bc..932934b81c40 100644 --- a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const sal_Unicode table_normalwidth[] = { // 0x0000, // 0x3040 @@ -345,6 +345,6 @@ ignoreProlongedSoundMark_ja_JP::folding( const OUString& inStr, sal_Int32 startP } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx index bb9fa2964d2a..b24a635df504 100644 --- a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const transliteration_Ignore::Mapping SeZe[] = { // SI + E --> SE @@ -46,6 +46,6 @@ ignoreSeZe_ja_JP::ignoreSeZe_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreSeZe_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx index 99e423c2de42..8f1555608034 100644 --- a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx @@ -19,9 +19,9 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -OneToOneMappingTable_t const ignoreSeparatorTable[] = { +i18nutil::OneToOneMappingTable_t const ignoreSeparatorTable[] = { { 0x0021, 0xFFFF }, // EXCLAMATION MARK { 0x0023, 0xFFFF }, // NUMBER SIGN { 0x0024, 0xFFFF }, // DOLLAR SIGN @@ -99,7 +99,7 @@ OneToOneMappingTable_t const ignoreSeparatorTable[] = { ignoreSeparator_ja_JP::ignoreSeparator_ja_JP() { - static oneToOneMapping _table(ignoreSeparatorTable, sizeof(ignoreSeparatorTable)); + static i18nutil::oneToOneMapping _table(ignoreSeparatorTable, sizeof(ignoreSeparatorTable)); func = nullptr; table = &_table; map = nullptr; @@ -107,6 +107,6 @@ ignoreSeparator_ja_JP::ignoreSeparator_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreSeparator_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx index b463a2ae7c64..420bcdcfd47f 100644 --- a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx @@ -24,7 +24,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OUString SAL_CALL ignoreSize_ja_JP::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) @@ -50,6 +50,6 @@ ignoreSize_ja_JP::transliterateChar2Char( sal_Unicode inChar) return t1->transliterateChar2Char(inChar); } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx index dbee15105cbc..f90021eb5daf 100644 --- a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx @@ -19,9 +19,9 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { -OneToOneMappingTable_t const ignoreSpace_ja_JP_mappingTable[] = { +i18nutil::OneToOneMappingTable_t const ignoreSpace_ja_JP_mappingTable[] = { { 0x0020, 0xffff }, // SPACE { 0x00A0, 0xffff }, // NO-BREAK SPACE { 0x2002, 0xffff }, // EN SPACE @@ -43,12 +43,12 @@ OneToOneMappingTable_t const ignoreSpace_ja_JP_mappingTable[] = { ignoreSpace_ja_JP::ignoreSpace_ja_JP() { func = nullptr; - table = new oneToOneMapping(ignoreSpace_ja_JP_mappingTable, sizeof(ignoreSpace_ja_JP_mappingTable)); + table = new i18nutil::oneToOneMapping(ignoreSpace_ja_JP_mappingTable, sizeof(ignoreSpace_ja_JP_mappingTable)); map = nullptr; transliterationName = "ignoreSpace_ja_JP"; implementationName = "com.sun.star.i18n.Transliteration.ignoreSpace_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx index 3e8f259e449e..42c1aee7c0e9 100644 --- a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx @@ -22,7 +22,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { static const transliteration_Ignore::Mapping TiJi[] = { // TU + I --> TI @@ -50,6 +50,6 @@ ignoreTiJi_ja_JP::ignoreTiJi_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreTiJi_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx index 8c093c037910..b62d79440024 100644 --- a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Unicode ignoreTraditionalKana_ja_JP_translator (const sal_Unicode c) @@ -50,6 +50,6 @@ ignoreTraditionalKana_ja_JP::ignoreTraditionalKana_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreTraditionalKana_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx index 1606c90bafa3..7b6b01f8f578 100644 --- a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx @@ -19,10 +19,10 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // traditional Kanji characters --> modern Kanji characters -OneToOneMappingTable_t const traditionalKanji2updateKanji[] = { +i18nutil::OneToOneMappingTable_t const traditionalKanji2updateKanji[] = { { 0x4E17, 0x4E16 }, { 0x4E55, 0x864E }, { 0x4E58, 0x4E57 }, @@ -721,7 +721,7 @@ OneToOneMappingTable_t const traditionalKanji2updateKanji[] = { ignoreTraditionalKanji_ja_JP::ignoreTraditionalKanji_ja_JP() { - static oneToOneMapping _table(traditionalKanji2updateKanji, sizeof(traditionalKanji2updateKanji)); + static i18nutil::oneToOneMapping _table(traditionalKanji2updateKanji, sizeof(traditionalKanji2updateKanji)); func = nullptr; table = &_table; map = nullptr; @@ -729,6 +729,6 @@ ignoreTraditionalKanji_ja_JP::ignoreTraditionalKanji_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreTraditionalKanji_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx index 813f043f2050..c2a6f756d3dc 100644 --- a/i18npool/source/transliteration/ignoreWidth.cxx +++ b/i18npool/source/transliteration/ignoreWidth.cxx @@ -26,7 +26,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { OUString SAL_CALL ignoreWidth::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset ) @@ -51,14 +51,14 @@ ignoreWidth::transliterateChar2Char( sal_Unicode inChar) return t1->transliterateChar2Char(inChar); } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_Transliteration_IGNORE_WIDTH_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::ignoreWidth()); + return cppu::acquire(new i18npool::ignoreWidth()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx index 180644e90fe9..3591078eaaec 100644 --- a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Unicode ignoreZiZu_ja_JP_translator (const sal_Unicode c) @@ -50,6 +50,6 @@ ignoreZiZu_ja_JP::ignoreZiZu_ja_JP() implementationName = "com.sun.star.i18n.Transliteration.ignoreZiZu_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/katakanaToHiragana.cxx b/i18npool/source/transliteration/katakanaToHiragana.cxx index 9e4ac155e2f5..7b5f5921f5a1 100644 --- a/i18npool/source/transliteration/katakanaToHiragana.cxx +++ b/i18npool/source/transliteration/katakanaToHiragana.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // see http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F) // see http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF) @@ -40,6 +40,6 @@ katakanaToHiragana::katakanaToHiragana() implementationName = "com.sun.star.i18n.Transliteration.KATAKANA_HIRAGANA"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx index 3986336e2746..198100a1f9b8 100644 --- a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx +++ b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx @@ -24,7 +24,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt // ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html @@ -32,7 +32,7 @@ namespace com { namespace sun { namespace star { namespace i18n { // http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF) // http://charts.unicode.org/Web/UFF00.html -OneToOneMappingTable_t const large2small[] = { +i18nutil::OneToOneMappingTable_t const large2small[] = { { 0x3041, 0x3042 }, // HIRAGANA LETTER SMALL A --> HIRAGANA LETTER A { 0x3043, 0x3044 }, // HIRAGANA LETTER SMALL I --> HIRAGANA LETTER I { 0x3045, 0x3046 }, // HIRAGANA LETTER SMALL U --> HIRAGANA LETTER U @@ -68,13 +68,13 @@ OneToOneMappingTable_t const large2small[] = { largeToSmall_ja_JP::largeToSmall_ja_JP() { - static oneToOneMapping _table(large2small, sizeof(large2small)); + static i18nutil::oneToOneMapping _table(large2small, sizeof(large2small)); func = nullptr; table = &_table; transliterationName = "largeToSmall_ja_JP"; implementationName = "com.sun.star.i18n.Transliteration.largeToSmall_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/numtochar.cxx b/i18npool/source/transliteration/numtochar.cxx index ccdcd74dd949..56761f44ca77 100644 --- a/i18npool/source/transliteration/numtochar.cxx +++ b/i18npool/source/transliteration/numtochar.cxx @@ -21,7 +21,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_NUMTOCHAR( name, number ) \ NumToChar##name::NumToChar##name() \ @@ -52,6 +52,6 @@ TRANSLITERATION_NUMTOCHAR( _th, NATNUM1 ) #undef TRANSLITERATION_NUMTOCHAR -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/numtotext_cjk.cxx b/i18npool/source/transliteration/numtotext_cjk.cxx index af633d0c1997..f60561f2131f 100644 --- a/i18npool/source/transliteration/numtotext_cjk.cxx +++ b/i18npool/source/transliteration/numtotext_cjk.cxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_NUMTOTEXT( name, number ) \ NumToText##name::NumToText##name() \ @@ -80,6 +80,6 @@ TRANSLITERATION_NUMTOTEXT ( HangulCircledSyllable_ko, table_HangulCircledSyllabl #undef TRANSLITERATION_NUMTOTEXT -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx index fb48392df152..180db1d3a0b2 100644 --- a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx +++ b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx @@ -24,7 +24,7 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { // ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt // ftp://ftp.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.html @@ -32,7 +32,7 @@ namespace com { namespace sun { namespace star { namespace i18n { // http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF) // http://charts.unicode.org/Web/UFF00.html -OneToOneMappingTable_t const small2large[] = { +i18nutil::OneToOneMappingTable_t const small2large[] = { { 0x3041, 0x3042 }, // HIRAGANA LETTER SMALL A --> HIRAGANA LETTER A { 0x3043, 0x3044 }, // HIRAGANA LETTER SMALL I --> HIRAGANA LETTER I { 0x3045, 0x3046 }, // HIRAGANA LETTER SMALL U --> HIRAGANA LETTER U @@ -68,13 +68,13 @@ OneToOneMappingTable_t const small2large[] = { smallToLarge_ja_JP::smallToLarge_ja_JP() { - static oneToOneMapping _table(small2large, sizeof(small2large)); + static i18nutil::oneToOneMapping _table(small2large, sizeof(small2large)); func = nullptr; table = &_table; transliterationName = "smallToLarge_ja_JP"; implementationName = "com.sun.star.i18n.Transliteration.smallToLarge_ja_JP"; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/textToPronounce_zh.cxx b/i18npool/source/transliteration/textToPronounce_zh.cxx index a46889f4f724..be3c1f5815b1 100644 --- a/i18npool/source/transliteration/textToPronounce_zh.cxx +++ b/i18npool/source/transliteration/textToPronounce_zh.cxx @@ -25,9 +25,10 @@ #include +using namespace com::sun::star::i18n; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Int16 SAL_CALL TextToPronounce_zh::getType() { @@ -187,6 +188,6 @@ TextToPronounce_zh::~TextToPronounce_zh() if (hModule) osl_unloadModule(hModule); #endif } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/texttonum.cxx b/i18npool/source/transliteration/texttonum.cxx index 188b37460eab..5fd0e898de96 100644 --- a/i18npool/source/transliteration/texttonum.cxx +++ b/i18npool/source/transliteration/texttonum.cxx @@ -21,7 +21,7 @@ using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define TRANSLITERATION_TEXTTONUM( name ) \ TextToNum##name::TextToNum##name() \ @@ -47,6 +47,6 @@ TRANSLITERATION_TEXTTONUM( KanjiLongModern_ja_JP) #undef TRANSLITERATION_TEXTTONUM -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index 2f2aa8adc279..5c2c93ce9df9 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -36,10 +36,11 @@ #include using namespace com::sun::star::uno; +using namespace com::sun::star::i18n; using namespace com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { #define ERROR RuntimeException() @@ -657,14 +658,14 @@ TransliterationImpl::getSupportedServiceNames() return aRet; } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_Transliteration_get_implementation( css::uno::XComponentContext *context, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::TransliterationImpl(context)); + return cppu::acquire(new i18npool::TransliterationImpl(context)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_Ignore.cxx b/i18npool/source/transliteration/transliteration_Ignore.cxx index dae3f42924d9..4c0a4323acbf 100644 --- a/i18npool/source/transliteration/transliteration_Ignore.cxx +++ b/i18npool/source/transliteration/transliteration_Ignore.cxx @@ -19,9 +19,10 @@ #include +using namespace com::sun::star::i18n; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { inline sal_Int32 Min( sal_Int32 a, sal_Int32 b ) { return a > b ? b : a; } @@ -201,6 +202,6 @@ transliteration_Ignore::transliterateChar2Char( sal_Unicode inChar) return func ? func( inChar) : table ? (*table)[ inChar ] : inChar; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_Numeric.cxx b/i18npool/source/transliteration/transliteration_Numeric.cxx index 1d32fbae7805..98d245ada181 100644 --- a/i18npool/source/transliteration/transliteration_Numeric.cxx +++ b/i18npool/source/transliteration/transliteration_Numeric.cxx @@ -24,10 +24,11 @@ #include #include +using namespace com::sun::star::i18n; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Int16 SAL_CALL transliteration_Numeric::getType() { @@ -135,6 +136,6 @@ transliteration_Numeric::transliterateChar2Char( sal_Unicode inChar ) return rtl::Reference(new NativeNumberSupplierService)->getNativeNumberChar( inChar, aLocale, nNativeNumberMode ); } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_OneToOne.cxx b/i18npool/source/transliteration/transliteration_OneToOne.cxx index f820a35921e9..70fddaff190f 100644 --- a/i18npool/source/transliteration/transliteration_OneToOne.cxx +++ b/i18npool/source/transliteration/transliteration_OneToOne.cxx @@ -19,9 +19,10 @@ #include +using namespace com::sun::star::i18n; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { sal_Int16 SAL_CALL transliteration_OneToOne::getType() { @@ -86,6 +87,6 @@ transliteration_OneToOne::transliterateChar2Char( sal_Unicode inChar) return func ? func( inChar) : (*table)[ inChar ]; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx index b26c6b524cb8..930d0c23b9f5 100644 --- a/i18npool/source/transliteration/transliteration_body.cxx +++ b/i18npool/source/transliteration/transliteration_body.cxx @@ -34,9 +34,10 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { Transliteration_body::Transliteration_body() { @@ -107,7 +108,7 @@ Transliteration_body::transliterate( if (nMappingType == (MappingType::LowerToUpper | MappingType::UpperToLower)) nTmpMappingType = lcl_getMappingTypeForToggleCase( nMappingType, in[i] ); - const Mapping &map = casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); + const i18nutil::Mapping &map = i18nutil::casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); nOffCount += map.nmap; } rtl_uString* pStr = rtl_uString_alloc(nOffCount); @@ -125,7 +126,7 @@ Transliteration_body::transliterate( if (nMappingType == (MappingType::LowerToUpper | MappingType::UpperToLower)) nTmpMappingType = lcl_getMappingTypeForToggleCase( nMappingType, in[i] ); - const Mapping &map = casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); + const i18nutil::Mapping &map = i18nutil::casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); for (sal_Int32 k = 0; k < map.nmap; k++) { pArr[j] = i + startPos; @@ -165,7 +166,7 @@ Transliteration_body::transliterate( if (nMappingType == (MappingType::LowerToUpper | MappingType::UpperToLower)) nTmpMappingType = lcl_getMappingTypeForToggleCase( nMappingType, in[i] ); - const Mapping &map = casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); + const i18nutil::Mapping &map = i18nutil::casefolding::getValue( in, i, nCount, aLocale, nTmpMappingType ); for (sal_Int32 k = 0; k < map.nmap; k++) { out[j++] = map.map[k]; @@ -180,7 +181,7 @@ Transliteration_body::transliterate( OUString SAL_CALL Transliteration_body::transliterateChar2String( sal_Unicode inChar ) { - const Mapping &map = casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType); + const i18nutil::Mapping &map = i18nutil::casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType); rtl_uString* pStr = rtl_uString_alloc(map.nmap); sal_Unicode* out = pStr->buffer; sal_Int32 i; @@ -195,7 +196,7 @@ Transliteration_body::transliterateChar2String( sal_Unicode inChar ) sal_Unicode SAL_CALL Transliteration_body::transliterateChar2Char( sal_Unicode inChar ) { - const Mapping &map = casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType); + const i18nutil::Mapping &map = i18nutil::casefolding::getValue(&inChar, 0, 1, aLocale, nMappingType); if (map.nmap > 1) throw MultipleCharsOutputException(); return map.map[0]; @@ -326,6 +327,6 @@ OUString SAL_CALL Transliteration_sentencecase::transliterate( return transliterate_titlecase_Impl( inStr, startPos, nCount, aLocale, offset ); } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_caseignore.cxx b/i18npool/source/transliteration/transliteration_caseignore.cxx index 9ac4712ba233..4bfb59b73f71 100644 --- a/i18npool/source/transliteration/transliteration_caseignore.cxx +++ b/i18npool/source/transliteration/transliteration_caseignore.cxx @@ -27,9 +27,10 @@ #include "transliteration_caseignore.hxx" using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { Transliteration_caseignore::Transliteration_caseignore() { @@ -120,15 +121,15 @@ Transliteration_caseignore::compare( const sal_Unicode *unistr1 = const_cast(str1.getStr()) + pos1; const sal_Unicode *unistr2 = const_cast(str2.getStr()) + pos2; sal_Unicode c1, c2; - MappingElement e1, e2; + i18nutil::MappingElement e1, e2; nMatch1 = nMatch2 = 0; #define NOT_END_OF_STR1 (nMatch1 < nCount1 || e1.current < e1.element.nmap) #define NOT_END_OF_STR2 (nMatch2 < nCount2 || e2.current < e2.element.nmap) while (NOT_END_OF_STR1 && NOT_END_OF_STR2) { - c1 = casefolding::getNextChar(unistr1, nMatch1, nCount1, e1, aLocale, nMappingType, moduleLoaded); - c2 = casefolding::getNextChar(unistr2, nMatch2, nCount2, e2, aLocale, nMappingType, moduleLoaded); + c1 = i18nutil::casefolding::getNextChar(unistr1, nMatch1, nCount1, e1, aLocale, nMappingType, moduleLoaded); + c2 = i18nutil::casefolding::getNextChar(unistr2, nMatch2, nCount2, e2, aLocale, nMappingType, moduleLoaded); if (c1 != c2) { nMatch1--; nMatch2--; return c1 > c2 ? 1 : -1; @@ -139,14 +140,14 @@ Transliteration_caseignore::compare( : (NOT_END_OF_STR1 ? 1 : -1); } -} } } } +} extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL com_sun_star_i18n_Transliteration_IGNORE_CASE_get_implementation( css::uno::XComponentContext *, css::uno::Sequence const &) { - return cppu::acquire(new css::i18n::Transliteration_caseignore()); + return cppu::acquire(new i18npool::Transliteration_caseignore()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18npool/source/transliteration/transliteration_commonclass.cxx b/i18npool/source/transliteration/transliteration_commonclass.cxx index 6f4081a1eb2f..a00a5eb1e5ed 100644 --- a/i18npool/source/transliteration/transliteration_commonclass.cxx +++ b/i18npool/source/transliteration/transliteration_commonclass.cxx @@ -22,9 +22,10 @@ #include using namespace ::com::sun::star::uno; +using namespace ::com::sun::star::i18n; using namespace ::com::sun::star::lang; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18npool { transliteration_commonclass::transliteration_commonclass() { @@ -136,6 +137,6 @@ Sequence< OUString > SAL_CALL transliteration_commonclass::getSupportedServiceNa return aRet; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18nutil/source/utility/casefolding.cxx b/i18nutil/source/utility/casefolding.cxx index cc67cab9ff8e..882f0c0847e3 100644 --- a/i18nutil/source/utility/casefolding.cxx +++ b/i18nutil/source/utility/casefolding.cxx @@ -25,7 +25,7 @@ using namespace com::sun::star::lang; using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { static Mapping mapping_03a3[] = {{0, 1, {0x03c2, 0, 0}},{0, 1, {0x03c3, 0, 0}}}; static Mapping mapping_0307[] = {{0, 0, {0, 0, 0}},{0, 1, {0x0307, 0, 0}}}; @@ -167,6 +167,6 @@ sal_Unicode casefolding::getNextChar(const sal_Unicode *str, sal_Int32& idx, sal return c; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18nutil/source/utility/casefolding_data.h b/i18nutil/source/utility/casefolding_data.h index 3dad13ba464e..644abce1ea3c 100644 --- a/i18nutil/source/utility/casefolding_data.h +++ b/i18nutil/source/utility/casefolding_data.h @@ -21,7 +21,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { static const sal_Int8 CaseMappingIndex[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, -1, -1, // 0000 - 07ff @@ -851,7 +851,7 @@ static Mapping CaseMappingExtra[] = { 0x0069, 0x00CC, 0x00CD, 0x0128, 0x012E, 0x0130, 0x0049, 0x004A, 0x0307, 0x03A3, */ -} } } } +} #endif diff --git a/i18nutil/source/utility/oneToOneMapping.cxx b/i18nutil/source/utility/oneToOneMapping.cxx index 0ebe66fca8c9..2488f7950fae 100644 --- a/i18nutil/source/utility/oneToOneMapping.cxx +++ b/i18nutil/source/utility/oneToOneMapping.cxx @@ -19,7 +19,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { oneToOneMapping::oneToOneMapping( OneToOneMappingTable_t const *rpTable, const size_t rnBytes, const size_t rnUnitSize ) : mpTable( rpTable ), @@ -149,6 +149,6 @@ sal_Unicode oneToOneMappingWithFlag::find( const sal_Unicode nKey ) const } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx index 84963f54c922..a7e8dd05c285 100644 --- a/i18nutil/source/utility/widthfolding.cxx +++ b/i18nutil/source/utility/widthfolding.cxx @@ -24,7 +24,7 @@ using namespace com::sun::star::uno; -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { sal_Unicode widthfolding::decompose_ja_voiced_sound_marksChar2Char (sal_Unicode inChar) { @@ -284,6 +284,6 @@ oneToOneMapping& widthfolding::gethalfKana2fullKanaTable() return table; } -} } } } +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/i18nutil/source/utility/widthfolding_data.h b/i18nutil/source/utility/widthfolding_data.h index 5e6855e7e0d5..b2bdd369c6cf 100644 --- a/i18nutil/source/utility/widthfolding_data.h +++ b/i18nutil/source/utility/widthfolding_data.h @@ -21,7 +21,7 @@ #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { /* Unicode Normalization Forms @@ -946,7 +946,7 @@ UnicodePairWithFlag half2fullJISException[] = { }; -} } } } +} #endif diff --git a/include/i18nutil/casefolding.hxx b/include/i18nutil/casefolding.hxx index 454a5ea63bc6..5ed59c57cd36 100644 --- a/include/i18nutil/casefolding.hxx +++ b/include/i18nutil/casefolding.hxx @@ -43,7 +43,7 @@ namespace o3tl { template<> struct typed_flags : is_typed_flags {}; } -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { struct Value { @@ -82,7 +82,7 @@ public: }; -} } } } +} #endif diff --git a/include/i18nutil/oneToOneMapping.hxx b/include/i18nutil/oneToOneMapping.hxx index a4f3f09bf1df..ca82196c343b 100644 --- a/include/i18nutil/oneToOneMapping.hxx +++ b/include/i18nutil/oneToOneMapping.hxx @@ -22,7 +22,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { class widthfolding; @@ -84,7 +84,7 @@ protected: bool mbHasIndex; }; -} } } } +} #endif // _I18N_TRANSLITERATION_ONETOONEMAPPING_HXX_ diff --git a/include/i18nutil/widthfolding.hxx b/include/i18nutil/widthfolding.hxx index 8128f651b06b..ba0eb8f184dc 100644 --- a/include/i18nutil/widthfolding.hxx +++ b/include/i18nutil/widthfolding.hxx @@ -24,7 +24,7 @@ #include #include -namespace com { namespace sun { namespace star { namespace i18n { +namespace i18nutil { #define WIDTHFOLDNIG_DONT_USE_COMBINED_VU 0x01 @@ -47,7 +47,7 @@ public: }; -} } } } +} #endif -- cgit