1*22e87013SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*22e87013SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*22e87013SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*22e87013SAndrew Rist  * distributed with this work for additional information
6*22e87013SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*22e87013SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*22e87013SAndrew Rist  * "License"); you may not use this file except in compliance
9*22e87013SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*22e87013SAndrew Rist  *
11*22e87013SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*22e87013SAndrew Rist  *
13*22e87013SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*22e87013SAndrew Rist  * software distributed under the License is distributed on an
15*22e87013SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*22e87013SAndrew Rist  * KIND, either express or implied.  See the License for the
17*22e87013SAndrew Rist  * specific language governing permissions and limitations
18*22e87013SAndrew Rist  * under the License.
19*22e87013SAndrew Rist  *
20*22e87013SAndrew Rist  *************************************************************/
21*22e87013SAndrew Rist 
22*22e87013SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // ============================================================================
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #ifndef INCLUDED_SVX_COUNTRYID_HXX
27cdf0e10cSrcweir #define INCLUDED_SVX_COUNTRYID_HXX
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <sal/types.h>
30cdf0e10cSrcweir #include <i18npool/lang.h>
31cdf0e10cSrcweir #include "filter/msfilter/msfilterdllapi.h"
32cdf0e10cSrcweir 
33cdf0e10cSrcweir // ----------------------------------------------------------------------------
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace msfilter {
36cdf0e10cSrcweir 
37cdf0e10cSrcweir // Windows Country IDs ========================================================
38cdf0e10cSrcweir 
39cdf0e10cSrcweir /** Represents a Windows country ID.
40cdf0e10cSrcweir 
41cdf0e10cSrcweir     The country IDs used in Windows are equal to the international calling
42cdf0e10cSrcweir     code of each country, i.e. the code 353 represents Ireland (+353).
43cdf0e10cSrcweir 
44cdf0e10cSrcweir     ATTENTION: These country codes are not supposed to be used anywhere in core
45cdf0e10cSrcweir     structures! They shall ONLY be used in the import/export filters for
46cdf0e10cSrcweir     Microsoft Office documents!
47cdf0e10cSrcweir  */
48cdf0e10cSrcweir typedef sal_uInt16 CountryId;
49cdf0e10cSrcweir 
50cdf0e10cSrcweir const CountryId COUNTRY_DONTKNOW            =   0;
51cdf0e10cSrcweir const CountryId COUNTRY_USA                 =   1;
52cdf0e10cSrcweir const CountryId COUNTRY_DOMINICAN_REPUBLIC  =   1;  // NANP
53cdf0e10cSrcweir const CountryId COUNTRY_GUAM                =   1;  // NANP
54cdf0e10cSrcweir const CountryId COUNTRY_JAMAICA             =   1;  // NANP
55cdf0e10cSrcweir const CountryId COUNTRY_PUERTO_RICO         =   1;  // NANP
56cdf0e10cSrcweir const CountryId COUNTRY_TRINIDAD_Y_TOBAGO   =   1;  // NANP
57cdf0e10cSrcweir const CountryId COUNTRY_CANADA              =   2;
58cdf0e10cSrcweir const CountryId COUNTRY_RUSSIA              =   7;
59cdf0e10cSrcweir const CountryId COUNTRY_KAZAKHSTAN          =   7;  // no own ID
60cdf0e10cSrcweir const CountryId COUNTRY_TATARSTAN           =   7;  // no own ID
61cdf0e10cSrcweir const CountryId COUNTRY_EGYPT               =  20;
62cdf0e10cSrcweir const CountryId COUNTRY_SOUTH_AFRICA        =  27;
63cdf0e10cSrcweir const CountryId COUNTRY_GREECE              =  30;
64cdf0e10cSrcweir const CountryId COUNTRY_NETHERLANDS         =  31;
65cdf0e10cSrcweir const CountryId COUNTRY_BELGIUM             =  32;
66cdf0e10cSrcweir const CountryId COUNTRY_FRANCE              =  33;
67cdf0e10cSrcweir const CountryId COUNTRY_SPAIN               =  34;
68cdf0e10cSrcweir const CountryId COUNTRY_HUNGARY             =  36;
69cdf0e10cSrcweir const CountryId COUNTRY_ITALY               =  39;
70cdf0e10cSrcweir const CountryId COUNTRY_ROMANIA             =  40;
71cdf0e10cSrcweir const CountryId COUNTRY_SWITZERLAND         =  41;
72cdf0e10cSrcweir const CountryId COUNTRY_AUSTRIA             =  43;
73cdf0e10cSrcweir const CountryId COUNTRY_UNITED_KINGDOM      =  44;
74cdf0e10cSrcweir const CountryId COUNTRY_DENMARK             =  45;
75cdf0e10cSrcweir const CountryId COUNTRY_SWEDEN              =  46;
76cdf0e10cSrcweir const CountryId COUNTRY_NORWAY              =  47;
77cdf0e10cSrcweir const CountryId COUNTRY_POLAND              =  48;
78cdf0e10cSrcweir const CountryId COUNTRY_GERMANY             =  49;
79cdf0e10cSrcweir const CountryId COUNTRY_PERU                =  51;
80cdf0e10cSrcweir const CountryId COUNTRY_MEXICO              =  52;
81cdf0e10cSrcweir const CountryId COUNTRY_CUBA                =  53;
82cdf0e10cSrcweir const CountryId COUNTRY_ARGENTINIA          =  54;
83cdf0e10cSrcweir const CountryId COUNTRY_BRAZIL              =  55;
84cdf0e10cSrcweir const CountryId COUNTRY_CHILE               =  56;
85cdf0e10cSrcweir const CountryId COUNTRY_COLOMBIA            =  57;
86cdf0e10cSrcweir const CountryId COUNTRY_VENEZUELA           =  58;
87cdf0e10cSrcweir const CountryId COUNTRY_MALAYSIA            =  60;
88cdf0e10cSrcweir const CountryId COUNTRY_AUSTRALIA           =  61;
89cdf0e10cSrcweir const CountryId COUNTRY_INDONESIA           =  62;
90cdf0e10cSrcweir const CountryId COUNTRY_PHILIPPINES         =  63;
91cdf0e10cSrcweir const CountryId COUNTRY_NEW_ZEALAND         =  64;
92cdf0e10cSrcweir const CountryId COUNTRY_SINGAPORE           =  65;
93cdf0e10cSrcweir const CountryId COUNTRY_THAILAND            =  66;
94cdf0e10cSrcweir const CountryId COUNTRY_JAPAN               =  81;
95cdf0e10cSrcweir const CountryId COUNTRY_SOUTH_KOREA         =  82;
96cdf0e10cSrcweir const CountryId COUNTRY_VIET_NAM            =  84;
97cdf0e10cSrcweir const CountryId COUNTRY_PR_CHINA            =  86;
98cdf0e10cSrcweir const CountryId COUNTRY_TIBET               =  86;  // no own ID
99cdf0e10cSrcweir const CountryId COUNTRY_TURKEY              =  90;
100cdf0e10cSrcweir const CountryId COUNTRY_INDIA               =  91;
101cdf0e10cSrcweir const CountryId COUNTRY_PAKISTAN            =  92;
102cdf0e10cSrcweir const CountryId COUNTRY_AFGHANISTAN         =  93;
103cdf0e10cSrcweir const CountryId COUNTRY_SRI_LANKA           =  94;
104cdf0e10cSrcweir const CountryId COUNTRY_MYANMAR             =  95;
105cdf0e10cSrcweir const CountryId COUNTRY_MOROCCO             = 212;
106cdf0e10cSrcweir const CountryId COUNTRY_ALGERIA             = 213;
107cdf0e10cSrcweir const CountryId COUNTRY_TUNISIA             = 216;
108cdf0e10cSrcweir const CountryId COUNTRY_LIBYA               = 218;
109cdf0e10cSrcweir const CountryId COUNTRY_GAMBIA              = 220;
110cdf0e10cSrcweir const CountryId COUNTRY_SENEGAL             = 221;
111cdf0e10cSrcweir const CountryId COUNTRY_MAURITANIA          = 222;
112cdf0e10cSrcweir const CountryId COUNTRY_MALI                = 223;
113cdf0e10cSrcweir const CountryId COUNTRY_GUINEA              = 224;
114cdf0e10cSrcweir const CountryId COUNTRY_COTE_D_IVOIRE       = 225;
115cdf0e10cSrcweir const CountryId COUNTRY_BURKINA_FARSO       = 226;
116cdf0e10cSrcweir const CountryId COUNTRY_NIGER               = 227;
117cdf0e10cSrcweir const CountryId COUNTRY_TOGO                = 228;
118cdf0e10cSrcweir const CountryId COUNTRY_BENIN               = 229;
119cdf0e10cSrcweir const CountryId COUNTRY_MAURITIUS           = 230;
120cdf0e10cSrcweir const CountryId COUNTRY_LIBERIA             = 231;
121cdf0e10cSrcweir const CountryId COUNTRY_SIERRA_LEONE        = 232;
122cdf0e10cSrcweir const CountryId COUNTRY_GHANA               = 233;
123cdf0e10cSrcweir const CountryId COUNTRY_NIGERIA             = 234;
124cdf0e10cSrcweir const CountryId COUNTRY_CHAD                = 235;
125cdf0e10cSrcweir const CountryId COUNTRY_CENTRAL_AFR_REP     = 236;
126cdf0e10cSrcweir const CountryId COUNTRY_CAMEROON            = 237;
127cdf0e10cSrcweir const CountryId COUNTRY_CAPE_VERDE          = 238;
128cdf0e10cSrcweir const CountryId COUNTRY_SAO_TOME            = 239;
129cdf0e10cSrcweir const CountryId COUNTRY_EQUATORIAL_GUINEA   = 240;
130cdf0e10cSrcweir const CountryId COUNTRY_GABON               = 241;
131cdf0e10cSrcweir const CountryId COUNTRY_CONGO               = 242;
132cdf0e10cSrcweir const CountryId COUNTRY_ZAIRE               = 243;
133cdf0e10cSrcweir const CountryId COUNTRY_ANGOLA              = 244;
134cdf0e10cSrcweir const CountryId COUNTRY_GUINEA_BISSAU       = 245;
135cdf0e10cSrcweir const CountryId COUNTRY_DIEGO_GARCIA        = 246;
136cdf0e10cSrcweir const CountryId COUNTRY_ASCENSION_ISLAND    = 247;
137cdf0e10cSrcweir const CountryId COUNTRY_SEYCHELLES          = 248;
138cdf0e10cSrcweir const CountryId COUNTRY_SUDAN               = 249;
139cdf0e10cSrcweir const CountryId COUNTRY_RWANDA              = 250;
140cdf0e10cSrcweir const CountryId COUNTRY_ETHIOPIA            = 251;
141cdf0e10cSrcweir const CountryId COUNTRY_SOMALIA             = 252;
142cdf0e10cSrcweir const CountryId COUNTRY_DJIBOUTI            = 253;
143cdf0e10cSrcweir const CountryId COUNTRY_KENYA               = 254;
144cdf0e10cSrcweir const CountryId COUNTRY_TANZANIA            = 255;
145cdf0e10cSrcweir const CountryId COUNTRY_UGANDA              = 256;
146cdf0e10cSrcweir const CountryId COUNTRY_BURUNDI             = 257;
147cdf0e10cSrcweir const CountryId COUNTRY_MOZAMBIQUE          = 258;
148cdf0e10cSrcweir const CountryId COUNTRY_ZANZIBAR            = 259;
149cdf0e10cSrcweir const CountryId COUNTRY_ZAMBIA              = 260;
150cdf0e10cSrcweir const CountryId COUNTRY_MADAGASKAR          = 261;
151cdf0e10cSrcweir const CountryId COUNTRY_REUNION             = 262;
152cdf0e10cSrcweir const CountryId COUNTRY_ZIMBABWE            = 263;
153cdf0e10cSrcweir const CountryId COUNTRY_NAMIBIA             = 264;
154cdf0e10cSrcweir const CountryId COUNTRY_MALAWI              = 265;
155cdf0e10cSrcweir const CountryId COUNTRY_LESOTHO             = 266;
156cdf0e10cSrcweir const CountryId COUNTRY_BOTSWANA            = 267;
157cdf0e10cSrcweir const CountryId COUNTRY_SWAZILAND           = 268;
158cdf0e10cSrcweir const CountryId COUNTRY_COMOROS_MAYOTTE     = 269;
159cdf0e10cSrcweir const CountryId COUNTRY_ST_HELENA           = 290;
160cdf0e10cSrcweir const CountryId COUNTRY_ERITREA             = 291;
161cdf0e10cSrcweir const CountryId COUNTRY_ARUBA               = 297;
162cdf0e10cSrcweir const CountryId COUNTRY_FAEROE_ISLANDS      = 298;
163cdf0e10cSrcweir const CountryId COUNTRY_GREEN_ISLAND        = 299;
164cdf0e10cSrcweir const CountryId COUNTRY_GIBRALTAR           = 350;
165cdf0e10cSrcweir const CountryId COUNTRY_PORTUGAL            = 351;
166cdf0e10cSrcweir const CountryId COUNTRY_LUXEMBOURG          = 352;
167cdf0e10cSrcweir const CountryId COUNTRY_IRELAND             = 353;
168cdf0e10cSrcweir const CountryId COUNTRY_ICELAND             = 354;
169cdf0e10cSrcweir const CountryId COUNTRY_ALBANIA             = 355;
170cdf0e10cSrcweir const CountryId COUNTRY_MALTA               = 356;
171cdf0e10cSrcweir const CountryId COUNTRY_CYPRUS              = 357;
172cdf0e10cSrcweir const CountryId COUNTRY_FINLAND             = 358;
173cdf0e10cSrcweir const CountryId COUNTRY_BULGARIA            = 359;
174cdf0e10cSrcweir const CountryId COUNTRY_LITHUANIA           = 370;
175cdf0e10cSrcweir const CountryId COUNTRY_LATVIA              = 371;
176cdf0e10cSrcweir const CountryId COUNTRY_ESTONIA             = 372;
177cdf0e10cSrcweir const CountryId COUNTRY_MOLDOVA             = 373;
178cdf0e10cSrcweir const CountryId COUNTRY_ARMENIA             = 374;
179cdf0e10cSrcweir const CountryId COUNTRY_BELARUS             = 375;
180cdf0e10cSrcweir const CountryId COUNTRY_ANDORRA             = 376;
181cdf0e10cSrcweir const CountryId COUNTRY_MONACO              = 377;
182cdf0e10cSrcweir const CountryId COUNTRY_SAN_MARINO          = 378;
183cdf0e10cSrcweir const CountryId COUNTRY_VATICAN_CITY        = 379;
184cdf0e10cSrcweir const CountryId COUNTRY_UKRAINE             = 380;
185cdf0e10cSrcweir const CountryId COUNTRY_SERBIA              = 381;
186cdf0e10cSrcweir const CountryId COUNTRY_CROATIA             = 385;
187cdf0e10cSrcweir const CountryId COUNTRY_SLOVENIA            = 386;
188cdf0e10cSrcweir const CountryId COUNTRY_BOSNIA              = 387;
189cdf0e10cSrcweir const CountryId COUNTRY_MACEDONIA           = 389;
190cdf0e10cSrcweir const CountryId COUNTRY_CZECH               = 420;
191cdf0e10cSrcweir const CountryId COUNTRY_SLOVAK              = 421;
192cdf0e10cSrcweir const CountryId COUNTRY_LIECHTENSTEIN       = 423;
193cdf0e10cSrcweir const CountryId COUNTRY_FALKLAND_ISLANDS    = 500;
194cdf0e10cSrcweir const CountryId COUNTRY_BELIZE              = 501;
195cdf0e10cSrcweir const CountryId COUNTRY_GUATEMALA           = 502;
196cdf0e10cSrcweir const CountryId COUNTRY_EL_SALVADOR         = 503;
197cdf0e10cSrcweir const CountryId COUNTRY_HONDURAS            = 504;
198cdf0e10cSrcweir const CountryId COUNTRY_NICARAGUA           = 505;
199cdf0e10cSrcweir const CountryId COUNTRY_COSTA_RICA          = 506;
200cdf0e10cSrcweir const CountryId COUNTRY_PANAMA              = 507;
201cdf0e10cSrcweir const CountryId COUNTRY_ST_PIERRE           = 508;
202cdf0e10cSrcweir const CountryId COUNTRY_HAITI               = 509;
203cdf0e10cSrcweir const CountryId COUNTRY_GUADELOUPE          = 590;
204cdf0e10cSrcweir const CountryId COUNTRY_BOLIVIA             = 591;
205cdf0e10cSrcweir const CountryId COUNTRY_GUYANA              = 592;
206cdf0e10cSrcweir const CountryId COUNTRY_ECUADOR             = 593;
207cdf0e10cSrcweir const CountryId COUNTRY_FRENCH_GUIANA       = 594;
208cdf0e10cSrcweir const CountryId COUNTRY_PARAGUAY            = 595;
209cdf0e10cSrcweir const CountryId COUNTRY_MARTINIQUE          = 596;
210cdf0e10cSrcweir const CountryId COUNTRY_SURINAME            = 597;
211cdf0e10cSrcweir const CountryId COUNTRY_URUGUAY             = 598;
212cdf0e10cSrcweir const CountryId COUNTRY_NETHERL_ANTILLES    = 599;
213cdf0e10cSrcweir const CountryId COUNTRY_EAST_TIMOR          = 670;
214cdf0e10cSrcweir const CountryId COUNTRY_ANTARCTICA          = 672;
215cdf0e10cSrcweir const CountryId COUNTRY_BRUNEI_DARUSSALAM   = 673;
216cdf0e10cSrcweir const CountryId COUNTRY_NARUPU              = 674;
217cdf0e10cSrcweir const CountryId COUNTRY_PAPUA_NEW_GUINEA    = 675;
218cdf0e10cSrcweir const CountryId COUNTRY_TONGA               = 676;
219cdf0e10cSrcweir const CountryId COUNTRY_SOLOMON_ISLANDS     = 677;
220cdf0e10cSrcweir const CountryId COUNTRY_VANUATU             = 678;
221cdf0e10cSrcweir const CountryId COUNTRY_FIJI                = 679;
222cdf0e10cSrcweir const CountryId COUNTRY_PALAU               = 680;
223cdf0e10cSrcweir const CountryId COUNTRY_WALLIS_AND_FUTUNA   = 681;
224cdf0e10cSrcweir const CountryId COUNTRY_COOK_ISLANDS        = 682;
225cdf0e10cSrcweir const CountryId COUNTRY_NIUE_ISLAND         = 683;
226cdf0e10cSrcweir const CountryId COUNTRY_AMERICAN_SAMOA      = 684;
227cdf0e10cSrcweir const CountryId COUNTRY_WESTERN_SAMOA       = 685;
228cdf0e10cSrcweir const CountryId COUNTRY_KIRIBATI            = 686;
229cdf0e10cSrcweir const CountryId COUNTRY_NEW_CALEDONIA       = 687;
230cdf0e10cSrcweir const CountryId COUNTRY_TUVALU              = 688;
231cdf0e10cSrcweir const CountryId COUNTRY_FRENCH_POLYNESIA    = 689;
232cdf0e10cSrcweir const CountryId COUNTRY_TOKELAU             = 690;
233cdf0e10cSrcweir const CountryId COUNTRY_MICRONESIA          = 691;
234cdf0e10cSrcweir const CountryId COUNTRY_MARSHALL_ISLANDS    = 692;
235cdf0e10cSrcweir const CountryId COUNTRY_NORTH_KOREA         = 850;
236cdf0e10cSrcweir const CountryId COUNTRY_HONG_KONG           = 852;
237cdf0e10cSrcweir const CountryId COUNTRY_MACAU               = 853;
238cdf0e10cSrcweir const CountryId COUNTRY_CAMBODIA            = 855;
239cdf0e10cSrcweir const CountryId COUNTRY_LAOS                = 856;
240cdf0e10cSrcweir const CountryId COUNTRY_BANGLADESH          = 880;
241cdf0e10cSrcweir const CountryId COUNTRY_TAIWAN              = 886;
242cdf0e10cSrcweir const CountryId COUNTRY_MALDIVES            = 960;
243cdf0e10cSrcweir const CountryId COUNTRY_LEBANON             = 961;
244cdf0e10cSrcweir const CountryId COUNTRY_JORDAN              = 962;
245cdf0e10cSrcweir const CountryId COUNTRY_SYRIA               = 963;
246cdf0e10cSrcweir const CountryId COUNTRY_IRAQ                = 964;
247cdf0e10cSrcweir const CountryId COUNTRY_KUWAIT              = 965;
248cdf0e10cSrcweir const CountryId COUNTRY_SAUDI_ARABIA        = 966;
249cdf0e10cSrcweir const CountryId COUNTRY_YEMEN               = 967;
250cdf0e10cSrcweir const CountryId COUNTRY_OMAN                = 968;
251cdf0e10cSrcweir const CountryId COUNTRY_PALESTINE           = 970;
252cdf0e10cSrcweir const CountryId COUNTRY_UAE                 = 971;
253cdf0e10cSrcweir const CountryId COUNTRY_ISRAEL              = 972;
254cdf0e10cSrcweir const CountryId COUNTRY_BAHRAIN             = 973;
255cdf0e10cSrcweir const CountryId COUNTRY_QATAR               = 974;
256cdf0e10cSrcweir const CountryId COUNTRY_BHUTAN              = 975;
257cdf0e10cSrcweir const CountryId COUNTRY_MONGOLIA            = 976;
258cdf0e10cSrcweir const CountryId COUNTRY_NEPAL               = 977;
259cdf0e10cSrcweir const CountryId COUNTRY_IRAN                = 981;
260cdf0e10cSrcweir const CountryId COUNTRY_TAJIKISTAN          = 992;
261cdf0e10cSrcweir const CountryId COUNTRY_TURKMENISTAN        = 993;
262cdf0e10cSrcweir const CountryId COUNTRY_AZERBAIJAN          = 994;
263cdf0e10cSrcweir const CountryId COUNTRY_GEORGIA             = 995;
264cdf0e10cSrcweir const CountryId COUNTRY_KYRGYZSTAN          = 996;
265cdf0e10cSrcweir const CountryId COUNTRY_UZBEKISTAN          = 998;
266cdf0e10cSrcweir 
267cdf0e10cSrcweir // Country ID <-> Language type conversion ====================================
268cdf0e10cSrcweir 
269cdf0e10cSrcweir /** Converts a language type to a Windows country ID.
270cdf0e10cSrcweir 
271cdf0e10cSrcweir     The function regards the sub type of the passed language, and tries to
272cdf0e10cSrcweir     return the appropriate country, i.e. COUNTRY_IRELAND for
273cdf0e10cSrcweir     LANGUAGE_ENGLISH_EIRE.
274cdf0e10cSrcweir 
275cdf0e10cSrcweir     A few countries do not have an own associated country ID. Most of these
276cdf0e10cSrcweir     countries are mapped to another related country, i.e. Kazakhstan is
277cdf0e10cSrcweir     mapped to Russia.
278cdf0e10cSrcweir 
279cdf0e10cSrcweir     If no country can be found, the value COUNTRY_DONTKNOW will be returned.
280cdf0e10cSrcweir 
281cdf0e10cSrcweir     @param eLanguage
282cdf0e10cSrcweir         A language type, defined in tools/lang.hxx.
283cdf0e10cSrcweir 
284cdf0e10cSrcweir     @return
285cdf0e10cSrcweir         The best Windows country ID for the passed language type, or
286cdf0e10cSrcweir         COUNTRY_DONTKNOW on error.
287cdf0e10cSrcweir  */
288cdf0e10cSrcweir MSFILTER_DLLPUBLIC CountryId ConvertLanguageToCountry( LanguageType eLanguage );
289cdf0e10cSrcweir 
290cdf0e10cSrcweir /** Converts a Windows country ID to a language type.
291cdf0e10cSrcweir 
292cdf0e10cSrcweir     The function returns the most used language for the passed country
293cdf0e10cSrcweir     (hopefully), i.e. LANGUAGE_ENGLISH_EIRE for COUNTRY_IRELAND.
294cdf0e10cSrcweir 
295cdf0e10cSrcweir     If the passed country ID is not valid, the value LANGUAGE_DONTKNOW will be
296cdf0e10cSrcweir     returned.
297cdf0e10cSrcweir 
298cdf0e10cSrcweir     @param eCountry
299cdf0e10cSrcweir         A Windows country ID, defined above.
300cdf0e10cSrcweir 
301cdf0e10cSrcweir     @return
302cdf0e10cSrcweir         The most used language type in the passed country, or LANGUAGE_DONTKNOW
303cdf0e10cSrcweir         on error.
304cdf0e10cSrcweir  */
305cdf0e10cSrcweir MSFILTER_DLLPUBLIC LanguageType ConvertCountryToLanguage( CountryId eCountry );
306cdf0e10cSrcweir 
307cdf0e10cSrcweir // ============================================================================
308cdf0e10cSrcweir 
309cdf0e10cSrcweir } // namespace svx
310cdf0e10cSrcweir 
311cdf0e10cSrcweir // ============================================================================
312cdf0e10cSrcweir 
313cdf0e10cSrcweir #endif
314cdf0e10cSrcweir 
315