diff options
Diffstat (limited to 'i18npool/source')
38 files changed, 22 insertions, 171 deletions
diff --git a/i18npool/source/breakiterator/breakiterator_cjk.cxx b/i18npool/source/breakiterator/breakiterator_cjk.cxx index ada4c2c349ec..939e2d2a0d63 100644 --- a/i18npool/source/breakiterator/breakiterator_cjk.cxx +++ b/i18npool/source/breakiterator/breakiterator_cjk.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#define BREAKITERATOR_ALL #include <breakiterator_cjk.hxx> #include <localedata.hxx> #include <i18nutil/unicode.hxx> diff --git a/i18npool/source/registerservices/registerservices.cxx b/i18npool/source/registerservices/registerservices.cxx index 67c59e61b9d2..9c8bb0fb305b 100644 --- a/i18npool/source/registerservices/registerservices.cxx +++ b/i18npool/source/registerservices/registerservices.cxx @@ -28,7 +28,6 @@ #include <servicename.hxx> -#define TRANSLITERATION_ALL #include <transliteration_body.hxx> #include <transliteration_OneToOne.hxx> #include <textToPronounce_zh.hxx> @@ -42,7 +41,6 @@ #include <calendar_hijri.hxx> #include <calendar_jewish.hxx> -#define BREAKITERATOR_ALL #include <breakiterator_cjk.hxx> #include <breakiterator_th.hxx> diff --git a/i18npool/source/transliteration/chartonum.cxx b/i18npool/source/transliteration/chartonum.cxx index f51d203c6414..00f2e73c9e91 100644 --- a/i18npool/source/transliteration/chartonum.cxx +++ b/i18npool/source/transliteration/chartonum.cxx @@ -17,11 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <rtl/ustrbuf.hxx> -#define TRANSLITERATION_ALL #include <chartonum.hxx> #include <data/numberchar.h> -#include <rtl/ustrbuf.hxx> using namespace com::sun::star::uno; @@ -34,6 +33,7 @@ CharToNum##name::CharToNum##name() \ tableSize = 0; \ implementationName = "com.sun.star.i18n.Transliteration.CharToNum"#name; \ } + TRANSLITERATION_CHARTONUM( Fullwidth) TRANSLITERATION_CHARTONUM( Lower_zh_CN) TRANSLITERATION_CHARTONUM( Lower_zh_TW) @@ -48,6 +48,7 @@ TRANSLITERATION_CHARTONUM( Indic_ar) TRANSLITERATION_CHARTONUM( EastIndic_ar) TRANSLITERATION_CHARTONUM( Indic_hi) TRANSLITERATION_CHARTONUM( _th) + #undef TRANSLITERATION_CHARTONUM } } } } diff --git a/i18npool/source/transliteration/data/numberchar.h b/i18npool/source/transliteration/data/numberchar.h index 37f8d17c2250..c9cbd38056a1 100644 --- a/i18npool/source/transliteration/data/numberchar.h +++ b/i18npool/source/transliteration/data/numberchar.h @@ -19,6 +19,8 @@ #ifndef _L10N_TRANSLITERATION_NUMTOCHAR_H_ #define _L10N_TRANSLITERATION_NUMTOCHAR_H_ +#include <sal/types.h> + namespace com { namespace sun { namespace star { namespace i18n { static const sal_Int16 NumberChar_HalfWidth = 0; diff --git a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx index f1c3c2202ae0..1f8a8a623cfa 100644 --- a/i18npool/source/transliteration/fullwidthToHalfwidth.cxx +++ b/i18npool/source/transliteration/fullwidthToHalfwidth.cxx @@ -17,20 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <i18nutil/widthfolding.hxx> -#define TRANSLITERATION_fullwidthToHalfwidth -#define TRANSLITERATION_fullwidthKatakanaToHalfwidthKatakana -#define TRANSLITERATION_fullwidthToHalfwidthLikeASC + #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { fullwidthToHalfwidth::fullwidthToHalfwidth() diff --git a/i18npool/source/transliteration/halfwidthToFullwidth.cxx b/i18npool/source/transliteration/halfwidthToFullwidth.cxx index 72857f67ad44..2bfa4670c10c 100644 --- a/i18npool/source/transliteration/halfwidthToFullwidth.cxx +++ b/i18npool/source/transliteration/halfwidthToFullwidth.cxx @@ -17,14 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <i18nutil/widthfolding.hxx> -#define TRANSLITERATION_halfwidthToFullwidth -#define TRANSLITERATION_halfwidthKatakanaToFullwidthKatakana -#define TRANSLITERATION_halfwidthToFullwidthLikeJIS + #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/hiraganaToKatakana.cxx b/i18npool/source/transliteration/hiraganaToKatakana.cxx index f9afa35fb412..ec64885eac63 100644 --- a/i18npool/source/transliteration/hiraganaToKatakana.cxx +++ b/i18npool/source/transliteration/hiraganaToKatakana.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_hiraganaToKatakana #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx index 076df1b61827..2ba0dc999b0a 100644 --- a/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreBaFa_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_BaFa_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx index 7f0b0ce5cd6d..8d6022d06f0b 100644 --- a/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx +++ b/i18npool/source/transliteration/ignoreDiacritics_CTL.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#define TRANSLITERATION_Diacritics_CTL #include <transliteration_Ignore.hxx> #include <unicode/uchar.h> diff --git a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx index 6af92f48efd2..ac7ce2ceed91 100644 --- a/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreHyuByu_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_HyuByu_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx index 8f0668154b7d..6154ad2acfc9 100644 --- a/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreIandEfollowedByYa_ja_JP.cxx @@ -17,17 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> #include <i18nutil/oneToOneMapping.hxx> -#define TRANSLITERATION_IandEfollowedByYa_ja_JP + #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { OneToOneMappingTable_t IandE[] = { diff --git a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx index 4388bebe5e92..da9bd8a18da8 100644 --- a/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreIterationMark_ja_JP.cxx @@ -17,11 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> #include <i18nutil/oneToOneMapping.hxx> -#define TRANSLITERATION_IterationMark_ja_JP + #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/ignoreKana.cxx b/i18npool/source/transliteration/ignoreKana.cxx index 64652d2acb34..d468ecf1f2dd 100644 --- a/i18npool/source/transliteration/ignoreKana.cxx +++ b/i18npool/source/transliteration/ignoreKana.cxx @@ -17,22 +17,14 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <com/sun/star/uno/XComponentContext.hpp> -#define TRANSLITERATION_Kana #include <transliteration_Ignore.hxx> -#define TRANSLITERATION_hiraganaToKatakana -#define TRANSLITERATION_katakanaToHiragana #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { OUString SAL_CALL diff --git a/i18npool/source/transliteration/ignoreKashida_CTL.cxx b/i18npool/source/transliteration/ignoreKashida_CTL.cxx index ff0303dbf217..564590b30b7e 100644 --- a/i18npool/source/transliteration/ignoreKashida_CTL.cxx +++ b/i18npool/source/transliteration/ignoreKashida_CTL.cxx @@ -7,7 +7,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#define TRANSLITERATION_Kashida_CTL #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx index 0ccb8f9b85aa..fcec4472f75d 100644 --- a/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreKiKuFollowedBySa_ja_JP.cxx @@ -17,16 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> -#define TRANSLITERATION_KiKuFollowedBySa_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { OUString SAL_CALL diff --git a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx index a9b5e9df9ae8..73f7d005d026 100644 --- a/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreMiddleDot_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_MiddleDot_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx index 4a3d04943166..80b58f277a39 100644 --- a/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreMinusSign_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_MinusSign_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx index 82ab46676f66..7ff63b79d34d 100644 --- a/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreProlongedSoundMark_ja_JP.cxx @@ -17,16 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> -#define TRANSLITERATION_ProlongedSoundMark_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { static const sal_Unicode table_normalwidth[] = { diff --git a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx index eeeea2f71740..602818d5a9cb 100644 --- a/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSeZe_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_SeZe_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx index ade020ccfdb5..2665c5a4a025 100644 --- a/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSeparator_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_Separator_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx index fb56bd54fc87..e5645ad0986d 100644 --- a/i18npool/source/transliteration/ignoreSize_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSize_ja_JP.cxx @@ -17,20 +17,12 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_Size_ja_JP #include <transliteration_Ignore.hxx> -#define TRANSLITERATION_smallToLarge_ja_JP -#define TRANSLITERATION_largeToSmall_ja_JP #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { OUString SAL_CALL diff --git a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx index 9f8f75d1d9a4..4a38eb73a7bd 100644 --- a/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreSpace_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_Space_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx index 799b3e15634c..bdc58ddf3c7a 100644 --- a/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTiJi_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_TiJi_ja_JP #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; @@ -29,7 +24,6 @@ using namespace com::sun::star::lang; namespace com { namespace sun { namespace star { namespace i18n { - static const Mapping TiJi[] = { // TU + I --> TI { 0x30C4, 0x30A3, 0x30C1, sal_True }, diff --git a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx index e2bc44ad9bd2..ad908010f327 100644 --- a/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTraditionalKana_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_TraditionalKana_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx index d19a1f796cfd..aca992d9cb52 100644 --- a/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreTraditionalKanji_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_TraditionalKanji_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/ignoreWidth.cxx b/i18npool/source/transliteration/ignoreWidth.cxx index 489ac75935f3..ebe640c44808 100644 --- a/i18npool/source/transliteration/ignoreWidth.cxx +++ b/i18npool/source/transliteration/ignoreWidth.cxx @@ -17,21 +17,14 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <com/sun/star/uno/XComponentContext.hpp> -#define TRANSLITERATION_Width #include <transliteration_Ignore.hxx> -#define TRANSLITERATION_fullwidthToHalfwidth -#define TRANSLITERATION_halfwidthToFullwidth #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; using namespace com::sun::star::lang; - namespace com { namespace sun { namespace star { namespace i18n { OUString SAL_CALL diff --git a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx index e9362b021b3c..58f8cc845cbd 100644 --- a/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx +++ b/i18npool/source/transliteration/ignoreZiZu_ja_JP.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_ZiZu_ja_JP #include <transliteration_Ignore.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/katakanaToHiragana.cxx b/i18npool/source/transliteration/katakanaToHiragana.cxx index 2d43c8238bfb..386dc792edf9 100644 --- a/i18npool/source/transliteration/katakanaToHiragana.cxx +++ b/i18npool/source/transliteration/katakanaToHiragana.cxx @@ -17,11 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_katakanaToHiragana #include <transliteration_OneToOne.hxx> namespace com { namespace sun { namespace star { namespace i18n { diff --git a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx index ce0e6d17b5dc..3b42ec62a48e 100644 --- a/i18npool/source/transliteration/largeToSmall_ja_JP.cxx +++ b/i18npool/source/transliteration/largeToSmall_ja_JP.cxx @@ -17,12 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <i18nutil/oneToOneMapping.hxx> -#define TRANSLITERATION_largeToSmall_ja_JP + #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/numtochar.cxx b/i18npool/source/transliteration/numtochar.cxx index cfcb58815b79..ccdcd74dd949 100644 --- a/i18npool/source/transliteration/numtochar.cxx +++ b/i18npool/source/transliteration/numtochar.cxx @@ -17,17 +17,12 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <com/sun/star/i18n/NativeNumberMode.hpp> -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#define TRANSLITERATION_ALL #include <numtochar.hxx> -#include <com/sun/star/i18n/NativeNumberMode.hpp> namespace com { namespace sun { namespace star { namespace i18n { - #define TRANSLITERATION_NUMTOCHAR( name, number ) \ NumToChar##name::NumToChar##name() \ { \ @@ -54,6 +49,7 @@ TRANSLITERATION_NUMTOCHAR( Indic_ar, NATNUM1 ) TRANSLITERATION_NUMTOCHAR( EastIndic_ar, NATNUM1 ) TRANSLITERATION_NUMTOCHAR( Indic_hi, NATNUM1 ) TRANSLITERATION_NUMTOCHAR( _th, NATNUM1 ) + #undef TRANSLITERATION_NUMTOCHAR } } } } diff --git a/i18npool/source/transliteration/numtotext_cjk.cxx b/i18npool/source/transliteration/numtotext_cjk.cxx index 6b7f4e2b0333..617fe25a392f 100644 --- a/i18npool/source/transliteration/numtotext_cjk.cxx +++ b/i18npool/source/transliteration/numtotext_cjk.cxx @@ -17,11 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <com/sun/star/i18n/NativeNumberMode.hpp> -#define TRANSLITERATION_ALL #include <numtotext_cjk.hxx> #include <bullet.h> -#include <com/sun/star/i18n/NativeNumberMode.hpp> namespace com { namespace sun { namespace star { namespace i18n { @@ -54,6 +53,7 @@ TRANSLITERATION_NUMTOTEXT( KanjiLongModern_ja_JP, NATNUM4) TRANSLITERATION_NUMTOTEXT( Date_zh, NATNUM7) TRANSLITERATION_NUMTOTEXT( KanjiShortTraditional_ja_JP, NATNUM8) TRANSLITERATION_NUMTOTEXT( KanjiShortModern_ja_JP, NATNUM7) + #undef TRANSLITERATION_NUMTOTEXT #define TRANSLITERATION_NUMTOTEXT( name, _table, recycle ) \ @@ -77,6 +77,7 @@ TRANSLITERATION_NUMTOTEXT ( HangulJamo_ko, table_HangulJamo_ko, sal_True) TRANSLITERATION_NUMTOTEXT ( HangulSyllable_ko, table_HangulSyllable_ko, sal_True) TRANSLITERATION_NUMTOTEXT ( HangulCircledJamo_ko, table_HangulCircledJamo_ko, sal_True) TRANSLITERATION_NUMTOTEXT ( HangulCircledSyllable_ko, table_HangulCircledSyllable_ko, sal_True) + #undef TRANSLITERATION_NUMTOTEXT } } } } diff --git a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx index 7cd9eae51083..1ec47c0617f5 100644 --- a/i18npool/source/transliteration/smallToLarge_ja_JP.cxx +++ b/i18npool/source/transliteration/smallToLarge_ja_JP.cxx @@ -17,12 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <i18nutil/oneToOneMapping.hxx> -#define TRANSLITERATION_smallToLarge_ja_JP + #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/textToPronounce_zh.cxx b/i18npool/source/transliteration/textToPronounce_zh.cxx index 8fecdcb92e4b..cc2b8ee90da5 100644 --- a/i18npool/source/transliteration/textToPronounce_zh.cxx +++ b/i18npool/source/transliteration/textToPronounce_zh.cxx @@ -17,18 +17,13 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - -#include <rtl/string.hxx> +#include <rtl/ustring.hxx> #include <rtl/ustrbuf.hxx> -#define TRANSLITERATION_ALL + #include <textToPronounce_zh.hxx> using namespace com::sun::star::uno; - namespace com { namespace sun { namespace star { namespace i18n { sal_Int16 SAL_CALL TextToPronounce_zh::getType() throw (RuntimeException, std::exception) diff --git a/i18npool/source/transliteration/texttonum.cxx b/i18npool/source/transliteration/texttonum.cxx index 11d6513d0614..25301dded7a1 100644 --- a/i18npool/source/transliteration/texttonum.cxx +++ b/i18npool/source/transliteration/texttonum.cxx @@ -17,12 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#define TRANSLITERATION_ALL -#include <texttonum.hxx> #include <data/numberchar.h> #include <rtl/ustrbuf.hxx> +#include <texttonum.hxx> + using namespace com::sun::star::uno; namespace com { namespace sun { namespace star { namespace i18n { @@ -48,6 +47,7 @@ TRANSLITERATION_TEXTTONUM( InformalUpper_ko) TRANSLITERATION_TEXTTONUM( InformalHangul_ko) TRANSLITERATION_TEXTTONUM( KanjiLongTraditional_ja_JP) TRANSLITERATION_TEXTTONUM( KanjiLongModern_ja_JP) + #undef TRANSLITERATION_TEXTTONUM } } } } diff --git a/i18npool/source/transliteration/transliteration_Ignore.cxx b/i18npool/source/transliteration/transliteration_Ignore.cxx index f4633d1b6f25..dc2f251dd11f 100644 --- a/i18npool/source/transliteration/transliteration_Ignore.cxx +++ b/i18npool/source/transliteration/transliteration_Ignore.cxx @@ -17,9 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> #include <transliteration_Ignore.hxx> using namespace com::sun::star::uno; diff --git a/i18npool/source/transliteration/transliteration_OneToOne.cxx b/i18npool/source/transliteration/transliteration_OneToOne.cxx index 394a20c2b251..9b2277283272 100644 --- a/i18npool/source/transliteration/transliteration_OneToOne.cxx +++ b/i18npool/source/transliteration/transliteration_OneToOne.cxx @@ -17,14 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -#include <utility> -#include <comphelper/string.hxx> #include <transliteration_OneToOne.hxx> using namespace com::sun::star::uno; - namespace com { namespace sun { namespace star { namespace i18n { sal_Int16 SAL_CALL transliteration_OneToOne::getType() throw(RuntimeException, std::exception) diff --git a/i18npool/source/transliteration/transliteration_body.cxx b/i18npool/source/transliteration/transliteration_body.cxx index da795fdbc205..ec3f6fc9bfc4 100644 --- a/i18npool/source/transliteration/transliteration_body.cxx +++ b/i18npool/source/transliteration/transliteration_body.cxx @@ -30,7 +30,6 @@ #include "characterclassificationImpl.hxx" #include "breakiteratorImpl.hxx" -#define TRANSLITERATION_ALL #include "transliteration_body.hxx" #include <boost/scoped_array.hpp> diff --git a/i18npool/source/transliteration/transliteration_caseignore.cxx b/i18npool/source/transliteration/transliteration_caseignore.cxx index e537e3fe9294..5eb1cc6a5a50 100644 --- a/i18npool/source/transliteration/transliteration_caseignore.cxx +++ b/i18npool/source/transliteration/transliteration_caseignore.cxx @@ -17,14 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - -// prevent internal compiler error with MSVC6SP3 -#include <utility> - #include <com/sun/star/uno/XComponentContext.hpp> #include <i18nutil/oneToOneMapping.hxx> #include <i18nutil/casefolding.hxx> + #include "transliteration_caseignore.hxx" using namespace ::com::sun::star::uno; |